Class: Recurly::Resources::CouponRedemption

Inherits:
Recurly::Resource show all
Defined in:
lib/recurly/resources/coupon_redemption.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

#account ⇒ AccountMini

Returns The Account on which the coupon was applied.

Returns:

  • (AccountMini) —

    The Account on which the coupon was applied.



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

define_attribute :account, :AccountMini

#coupon ⇒ Coupon

Returns:



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

define_attribute :coupon, :Coupon

#created_at ⇒ DateTime

Returns Created at.

Returns:

  • (DateTime) —

    Created at



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

define_attribute :created_at, DateTime

#currency ⇒ String

Returns 3-letter ISO 4217 currency code.

Returns:

  • (String) —

    3-letter ISO 4217 currency code.



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

define_attribute :currency, String

#discounted ⇒ Float

Returns The amount that was discounted upon the application of the coupon, formatted with the currency.

Returns:

  • (Float) —

    The amount that was discounted upon the application of the coupon, formatted with the currency.



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

define_attribute :discounted, Float

#id ⇒ String

Returns Coupon Redemption ID.

Returns:

  • (String) —

    Coupon Redemption ID



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

define_attribute :id, String

#object ⇒ String

Returns Will always be coupon.

Returns:

  • (String) —

    Will always be coupon.



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

define_attribute :object, String

#removed_at ⇒ DateTime

Returns The date and time the redemption was removed from the account (un-redeemed).

Returns:

  • (DateTime) —

    The date and time the redemption was removed from the account (un-redeemed).



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

define_attribute :removed_at, DateTime

#state ⇒ String

Returns Coupon Redemption state.

Returns:

  • (String) —

    Coupon Redemption state



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

define_attribute :state, String

#subscription_id ⇒ String

Returns Subscription ID.

Returns:

  • (String) —

    Subscription ID



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

define_attribute :subscription_id, String

#updated_at ⇒ DateTime

Returns Last updated at.

Returns:

  • (DateTime) —

    Last updated at



51
# File 'lib/recurly/resources/coupon_redemption.rb', line 51

define_attribute :updated_at, DateTime