Class: Recurly::Resources::GiftCard

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

#balanceFloat

Returns The remaining credit on the recipient account associated with this gift card. Only has a value once the gift card has been redeemed. Can be used to create gift card balance displays for your customers.

Returns:

  • (Float)

    The remaining credit on the recipient account associated with this gift card. Only has a value once the gift card has been redeemed. Can be used to create gift card balance displays for your customers.



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

define_attribute :balance, Float

#canceled_atDateTime

Returns When the gift card was canceled.

Returns:

  • (DateTime)

    When the gift card was canceled.



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

define_attribute :canceled_at, DateTime

#created_atDateTime

Returns Created at.

Returns:

  • (DateTime)

    Created at



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

define_attribute :created_at, DateTime

#currencyString

Returns 3-letter ISO 4217 currency code.

Returns:

  • (String)

    3-letter ISO 4217 currency code.



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

define_attribute :currency, String

#delivered_atDateTime

Returns 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. This will be empty for post delivery or email delivery where the email template was disabled.

Returns:

  • (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. This will be empty for post delivery or email delivery where the email template was disabled.



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

define_attribute :delivered_at, DateTime

#deliveryGiftCardDelivery

Returns The delivery details for the gift card.

Returns:



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

define_attribute :delivery, :GiftCardDelivery

#gifter_account_idString

Returns The ID of the account that purchased the gift card.

Returns:

  • (String)

    The ID of the account that purchased the gift card.



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

define_attribute :gifter_account_id, String

#idString

Returns Gift card ID.

Returns:

  • (String)

    Gift card ID



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

define_attribute :id, String

#liability_gl_account_idString

Returns The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

Returns:

  • (String)

    The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.



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

define_attribute :liability_gl_account_id, String

#objectString

Returns Object type.

Returns:

  • (String)

    Object type



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

define_attribute :object, String

#performance_obligation_idString

Returns The ID of a performance obligation. Performance obligations are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

Returns:

  • (String)

    The ID of a performance obligation. Performance obligations are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.



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

define_attribute :performance_obligation_id, String

#product_codeString

Returns The product code or SKU of the gift card product.

Returns:

  • (String)

    The product code or SKU of the gift card product.



55
# File 'lib/recurly/resources/gift_card.rb', line 55

define_attribute :product_code, String

#purchase_invoice_idString

Returns The ID of the invoice for the gift card purchase made by the gifter.

Returns:

  • (String)

    The ID of the invoice for the gift card purchase made by the gifter.



59
# File 'lib/recurly/resources/gift_card.rb', line 59

define_attribute :purchase_invoice_id, String

#recipient_account_idString

Returns The ID of the account that redeemed the gift card redemption code. Does not have a value until gift card is redeemed.

Returns:

  • (String)

    The ID of the account that redeemed the gift card redemption code. Does not have a value until gift card is redeemed.



63
# File 'lib/recurly/resources/gift_card.rb', line 63

define_attribute :recipient_account_id, String

#redeemed_atDateTime

Returns When the gift card was redeemed by the recipient.

Returns:

  • (DateTime)

    When the gift card was redeemed by the recipient.



67
# File 'lib/recurly/resources/gift_card.rb', line 67

define_attribute :redeemed_at, DateTime

#redemption_codeString

Returns The unique redemption code for the gift card, generated by Recurly. Will be 16 characters, alphanumeric, displayed uppercase, but accepted in any case at redemption. Used by the recipient account to create a credit in the amount of the `unit_amount` on their account.

Returns:

  • (String)

    The unique redemption code for the gift card, generated by Recurly. Will be 16 characters, alphanumeric, displayed uppercase, but accepted in any case at redemption. Used by the recipient account to create a credit in the amount of the `unit_amount` on their account.



71
# File 'lib/recurly/resources/gift_card.rb', line 71

define_attribute :redemption_code, String

#redemption_invoice_idString

Returns The ID of the invoice for the gift card redemption made by the recipient. Does not have a value until gift card is redeemed.

Returns:

  • (String)

    The ID of the invoice for the gift card redemption made by the recipient. Does not have a value until gift card is redeemed.



75
# File 'lib/recurly/resources/gift_card.rb', line 75

define_attribute :redemption_invoice_id, String

#revenue_gl_account_idString

Returns The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

Returns:

  • (String)

    The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.



79
# File 'lib/recurly/resources/gift_card.rb', line 79

define_attribute :revenue_gl_account_id, String

#unit_amountFloat

Returns 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.

Returns:

  • (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.



83
# File 'lib/recurly/resources/gift_card.rb', line 83

define_attribute :unit_amount, Float

#updated_atDateTime

Returns Last updated at.

Returns:

  • (DateTime)

    Last updated at



87
# File 'lib/recurly/resources/gift_card.rb', line 87

define_attribute :updated_at, DateTime