Class: Recurly::Resources::CouponDiscount
- Inherits:
-
Recurly::Resource
- Object
- Recurly::Resource
- Recurly::Resources::CouponDiscount
- Defined in:
- lib/recurly/resources/coupon_discount.rb
Instance Attribute Summary collapse
-
#currencies ⇒ Array[CouponDiscountPricing]
This is only present when
type=fixed. -
#percent ⇒ Integer
This is only present when
type=percent. -
#trial ⇒ CouponDiscountTrial
This is only present when
type=free_trial. - #type ⇒ String
Attributes inherited from Recurly::Resource
Method Summary
Methods inherited from Recurly::Resource
#==, #get_response, #inspect, #requires_client?, #to_json, #to_s
Methods included from Schema::SchemaFactory
Methods included from Schema::ResourceCaster
Methods included from Schema::SchemaValidator
#get_did_you_mean, #validate!, #validate_attribute!
Instance Attribute Details
#currencies ⇒ Array[CouponDiscountPricing]
Returns This is only present when type=fixed.
11 |
# File 'lib/recurly/resources/coupon_discount.rb', line 11 define_attribute :currencies, Array, { :item_type => :CouponDiscountPricing } |
#percent ⇒ Integer
Returns This is only present when type=percent.
15 |
# File 'lib/recurly/resources/coupon_discount.rb', line 15 define_attribute :percent, Integer |
#trial ⇒ CouponDiscountTrial
Returns This is only present when type=free_trial.
19 |
# File 'lib/recurly/resources/coupon_discount.rb', line 19 define_attribute :trial, :CouponDiscountTrial |
#type ⇒ String
23 |
# File 'lib/recurly/resources/coupon_discount.rb', line 23 define_attribute :type, String |