Class: Recurly::Resources::UniqueCouponCode

Inherits:
Recurly::Resource show all
Defined in:
lib/recurly/resources/unique_coupon_code.rb

Instance Attribute Summary collapse

Attributes inherited from Recurly::Resource

#attributes

Method Summary

Methods inherited from Recurly::Resource

#==, #get_response, #inspect, #requires_client?, #to_json, #to_s

Methods included from Schema::SchemaFactory

#schema

Methods included from Schema::ResourceCaster

#cast

Methods included from Schema::SchemaValidator

#get_did_you_mean, #validate!, #validate_attribute!

Instance Attribute Details

#bulk_coupon_codeString

Returns The Coupon code of the parent Bulk Coupon.

Returns:

  • (String)

    The Coupon code of the parent Bulk Coupon



11
# File 'lib/recurly/resources/unique_coupon_code.rb', line 11

define_attribute :bulk_coupon_code, String

#bulk_coupon_idString

Returns The Coupon ID of the parent Bulk Coupon.

Returns:

  • (String)

    The Coupon ID of the parent Bulk Coupon



15
# File 'lib/recurly/resources/unique_coupon_code.rb', line 15

define_attribute :bulk_coupon_id, String

#codeString

Returns The code the customer enters to redeem the coupon.

Returns:

  • (String)

    The code the customer enters to redeem the coupon.



19
# File 'lib/recurly/resources/unique_coupon_code.rb', line 19

define_attribute :code, String

#created_atDateTime

Returns Created at.

Returns:

  • (DateTime)

    Created at



23
# File 'lib/recurly/resources/unique_coupon_code.rb', line 23

define_attribute :created_at, DateTime

#expired_atDateTime

Returns The date and time the coupon was expired early or reached its `max_redemptions`.

Returns:

  • (DateTime)

    The date and time the coupon was expired early or reached its `max_redemptions`.



27
# File 'lib/recurly/resources/unique_coupon_code.rb', line 27

define_attribute :expired_at, DateTime

#idString

Returns Unique Coupon Code ID.

Returns:

  • (String)

    Unique Coupon Code ID



31
# File 'lib/recurly/resources/unique_coupon_code.rb', line 31

define_attribute :id, String

#objectString

Returns Object type.

Returns:

  • (String)

    Object type



35
# File 'lib/recurly/resources/unique_coupon_code.rb', line 35

define_attribute :object, String

#redeemed_atDateTime

Returns The date and time the unique coupon code was redeemed.

Returns:

  • (DateTime)

    The date and time the unique coupon code was redeemed.



39
# File 'lib/recurly/resources/unique_coupon_code.rb', line 39

define_attribute :redeemed_at, DateTime

#stateString

Returns Indicates if the unique coupon code is redeemable or why not.

Returns:

  • (String)

    Indicates if the unique coupon code is redeemable or why not.



43
# File 'lib/recurly/resources/unique_coupon_code.rb', line 43

define_attribute :state, String

#updated_atDateTime

Returns Updated at.

Returns:

  • (DateTime)

    Updated at



47
# File 'lib/recurly/resources/unique_coupon_code.rb', line 47

define_attribute :updated_at, DateTime