Class: Recurly::Requests::GiftCardDeliveryCreate

Inherits:
Recurly::Request show all
Defined in:
lib/recurly/requests/gift_card_delivery_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

#deliver_atDateTime

Returns When the gift card should be delivered to the recipient. If null, the gift card will be delivered immediately. If a datetime is provided, the delivery will be in an hourly window, rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.

Returns:

  • (DateTime)

    When the gift card should be delivered to the recipient. If null, the gift card will be delivered immediately. If a datetime is provided, the delivery will be in an hourly window, rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.



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

define_attribute :deliver_at, DateTime

#email_addressString

Returns The email address of the recipient. Required if `method` is `email`.

Returns:

  • (String)

    The email address of the recipient. Required if `method` is `email`.



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

define_attribute :email_address, String

#first_nameString

Returns The first name of the recipient.

Returns:

  • (String)

    The first name of the recipient.



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

define_attribute :first_name, String

#gifter_nameString

Returns The name of the gifter for the purpose of a message displayed to the recipient.

Returns:

  • (String)

    The name of the gifter for the purpose of a message displayed to the recipient.



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

define_attribute :gifter_name, String

#last_nameString

Returns The last name of the recipient.

Returns:

  • (String)

    The last name of the recipient.



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

define_attribute :last_name, String

#methodString

Returns Whether the delivery method is email or postal service.

Returns:

  • (String)

    Whether the delivery method is email or postal service.



31
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 31

define_attribute :method, String

#personal_messageString

Returns The personal message from the gifter to the recipient.

Returns:

  • (String)

    The personal message from the gifter to the recipient.



35
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 35

define_attribute :personal_message, String

#recipient_addressAddress

Returns Address information for the recipient. Required if `method` is `post`.

Returns:

  • (Address)

    Address information for the recipient. Required if `method` is `post`.



39
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 39

define_attribute :recipient_address, :Address