Class: Recurly::Resources::CouponMini
- Inherits:
-
Recurly::Resource
- Object
- Recurly::Resource
- Recurly::Resources::CouponMini
- Defined in:
- lib/recurly/resources/coupon_mini.rb
Instance Attribute Summary collapse
-
#code ⇒ String
The code the customer enters to redeem the coupon.
-
#coupon_type ⇒ String
Whether the coupon is “single_code” or “bulk”.
-
#discount ⇒ CouponDiscount
Details of the discount a coupon applies.
-
#expired_at ⇒ DateTime
The date and time the coupon was expired early or reached its `max_redemptions`.
-
#id ⇒ String
Coupon ID.
-
#name ⇒ String
The internal name for the coupon.
-
#object ⇒ String
Object type.
-
#state ⇒ String
Indicates if the coupon is redeemable, and if it is not, why.
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
#code ⇒ String
Returns The code the customer enters to redeem the coupon.
11 |
# File 'lib/recurly/resources/coupon_mini.rb', line 11 define_attribute :code, String |
#coupon_type ⇒ String
Returns Whether the coupon is “single_code” or “bulk”. Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.
15 |
# File 'lib/recurly/resources/coupon_mini.rb', line 15 define_attribute :coupon_type, String |
#discount ⇒ CouponDiscount
Returns Details of the discount a coupon applies. Will contain a `type` property and one of the following properties: `percent`, `fixed`, `trial`.
19 |
# File 'lib/recurly/resources/coupon_mini.rb', line 19 define_attribute :discount, :CouponDiscount |
#expired_at ⇒ DateTime
Returns The date and time the coupon was expired early or reached its `max_redemptions`.
23 |
# File 'lib/recurly/resources/coupon_mini.rb', line 23 define_attribute :expired_at, DateTime |
#id ⇒ String
Returns Coupon ID.
27 |
# File 'lib/recurly/resources/coupon_mini.rb', line 27 define_attribute :id, String |
#name ⇒ String
Returns The internal name for the coupon.
31 |
# File 'lib/recurly/resources/coupon_mini.rb', line 31 define_attribute :name, String |
#object ⇒ String
Returns Object type.
35 |
# File 'lib/recurly/resources/coupon_mini.rb', line 35 define_attribute :object, String |
#state ⇒ String
Returns Indicates if the coupon is redeemable, and if it is not, why.
39 |
# File 'lib/recurly/resources/coupon_mini.rb', line 39 define_attribute :state, String |