Class: Recurly::Requests::GiftCardCreate

Inherits:
Recurly::Request show all
Defined in:
lib/recurly/requests/gift_card_create.rb

Instance Attribute Summary collapse

Attributes inherited from Recurly::Request

#attributes

Method Summary

Methods inherited from Recurly::Request

#==, #to_s

Methods included from Schema::SchemaFactory

#schema

Methods included from Schema::RequestCaster

#cast_request

Methods included from Schema::ResourceCaster

#cast

Methods included from Schema::SchemaValidator

#get_did_you_mean, #validate!, #validate_attribute!

Instance Attribute Details

#currencyString

Returns 3-letter ISO 4217 currency code.

Returns:

  • (String)

    3-letter ISO 4217 currency code.



11
# File 'lib/recurly/requests/gift_card_create.rb', line 11

define_attribute :currency, String

#deliveryGiftCardDeliveryCreate

Returns The delivery details for the gift card.

Returns:



15
# File 'lib/recurly/requests/gift_card_create.rb', line 15

define_attribute :delivery, :GiftCardDeliveryCreate

#gifter_accountAccountPurchase

Returns Block of account details for the gifter. This references an existing account_code.

Returns:

  • (AccountPurchase)

    Block of account details for the gifter. This references an existing account_code.



19
# File 'lib/recurly/requests/gift_card_create.rb', line 19

define_attribute :gifter_account, :AccountPurchase

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



23
# File 'lib/recurly/requests/gift_card_create.rb', line 23

define_attribute :product_code, 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.



27
# File 'lib/recurly/requests/gift_card_create.rb', line 27

define_attribute :unit_amount, Float