Class: Recurly::Resources::GiftCard
- Inherits:
-
Recurly::Resource
- Object
- Recurly::Resource
- Recurly::Resources::GiftCard
- Defined in:
- lib/recurly/resources/gift_card.rb
Instance Attribute Summary collapse
-
#balance ⇒ Float
The remaining credit on the recipient account associated with this gift card.
-
#canceled_at ⇒ DateTime
When the gift card was canceled.
-
#created_at ⇒ DateTime
Created at.
-
#currency ⇒ String
3-letter ISO 4217 currency code.
-
#delivered_at ⇒ DateTime
When the gift card was sent to the recipient by Recurly via email, if method was email and the “Gift Card Delivery” email template was enabled.
-
#delivery ⇒ GiftCardDelivery
The delivery details for the gift card.
-
#gifter_account_id ⇒ String
The ID of the account that purchased the gift card.
-
#id ⇒ String
Gift card ID.
-
#liability_gl_account_id ⇒ String
The ID of a general ledger account.
-
#object ⇒ String
Object type.
-
#performance_obligation_id ⇒ String
The ID of a performance obligation.
-
#product_code ⇒ String
The product code or SKU of the gift card product.
-
#purchase_invoice_id ⇒ String
The ID of the invoice for the gift card purchase made by the gifter.
-
#recipient_account_id ⇒ String
The ID of the account that redeemed the gift card redemption code.
-
#redeemed_at ⇒ DateTime
When the gift card was redeemed by the recipient.
-
#redemption_code ⇒ String
The unique redemption code for the gift card, generated by Recurly.
-
#redemption_invoice_id ⇒ String
The ID of the invoice for the gift card redemption made by the recipient.
-
#revenue_gl_account_id ⇒ String
The ID of a general ledger account.
-
#unit_amount ⇒ Float
The amount of the gift card, which is the amount of the charge to the gifter account and the amount of credit that is applied to the recipient account upon successful redemption.
-
#updated_at ⇒ DateTime
Last updated at.
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
#balance ⇒ Float
11 |
# File 'lib/recurly/resources/gift_card.rb', line 11 define_attribute :balance, Float |
#canceled_at ⇒ DateTime
15 |
# File 'lib/recurly/resources/gift_card.rb', line 15 define_attribute :canceled_at, DateTime |
#created_at ⇒ DateTime
19 |
# File 'lib/recurly/resources/gift_card.rb', line 19 define_attribute :created_at, DateTime |
#currency ⇒ String
23 |
# File 'lib/recurly/resources/gift_card.rb', line 23 define_attribute :currency, String |
#delivered_at ⇒ DateTime
27 |
# File 'lib/recurly/resources/gift_card.rb', line 27 define_attribute :delivered_at, DateTime |
#delivery ⇒ GiftCardDelivery
31 |
# File 'lib/recurly/resources/gift_card.rb', line 31 define_attribute :delivery, :GiftCardDelivery |
#gifter_account_id ⇒ String
35 |
# File 'lib/recurly/resources/gift_card.rb', line 35 define_attribute :gifter_account_id, String |
#id ⇒ String
39 |
# File 'lib/recurly/resources/gift_card.rb', line 39 define_attribute :id, String |
#liability_gl_account_id ⇒ String
43 |
# File 'lib/recurly/resources/gift_card.rb', line 43 define_attribute :liability_gl_account_id, String |
#object ⇒ String
47 |
# File 'lib/recurly/resources/gift_card.rb', line 47 define_attribute :object, String |
#performance_obligation_id ⇒ String
51 |
# File 'lib/recurly/resources/gift_card.rb', line 51 define_attribute :performance_obligation_id, String |
#product_code ⇒ String
55 |
# File 'lib/recurly/resources/gift_card.rb', line 55 define_attribute :product_code, String |
#purchase_invoice_id ⇒ String
59 |
# File 'lib/recurly/resources/gift_card.rb', line 59 define_attribute :purchase_invoice_id, String |
#recipient_account_id ⇒ String
63 |
# File 'lib/recurly/resources/gift_card.rb', line 63 define_attribute :recipient_account_id, String |
#redeemed_at ⇒ DateTime
67 |
# File 'lib/recurly/resources/gift_card.rb', line 67 define_attribute :redeemed_at, DateTime |
#redemption_code ⇒ String
71 |
# File 'lib/recurly/resources/gift_card.rb', line 71 define_attribute :redemption_code, String |
#redemption_invoice_id ⇒ String
75 |
# File 'lib/recurly/resources/gift_card.rb', line 75 define_attribute :redemption_invoice_id, String |
#revenue_gl_account_id ⇒ String
79 |
# File 'lib/recurly/resources/gift_card.rb', line 79 define_attribute :revenue_gl_account_id, String |
#unit_amount ⇒ Float
83 |
# File 'lib/recurly/resources/gift_card.rb', line 83 define_attribute :unit_amount, Float |
#updated_at ⇒ DateTime
87 |
# File 'lib/recurly/resources/gift_card.rb', line 87 define_attribute :updated_at, DateTime |