Class: Recurly::Resources::CouponRedemptionMini

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

#couponCouponMini

Returns:



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

define_attribute :coupon, :CouponMini

#created_atDateTime

Returns Created at.

Returns:

  • (DateTime)

    Created at



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

define_attribute :created_at, DateTime

#discountedFloat

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.



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

define_attribute :discounted, Float

#idString

Returns Coupon Redemption ID.

Returns:

  • (String)

    Coupon Redemption ID



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

define_attribute :id, String

#objectString

Returns Will always be ‘coupon`.

Returns:

  • (String)

    Will always be ‘coupon`.



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

define_attribute :object, String

#stateString

Returns Invoice state.

Returns:

  • (String)

    Invoice state



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

define_attribute :state, String