Class: Recurly::Resources::GiftCardDelivery

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

#deliver_at ⇒ DateTime

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/resources/gift_card_delivery.rb', line 11

define_attribute :deliver_at, DateTime

#email_address ⇒ String

Returns The email address of the recipient.

Returns:

  • (String) —

    The email address of the recipient.



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

define_attribute :email_address, String

#first_name ⇒ String

Returns The first name of the recipient.

Returns:

  • (String) —

    The first name of the recipient.



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

define_attribute :first_name, String

#gifter_name ⇒ String

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/resources/gift_card_delivery.rb', line 23

define_attribute :gifter_name, String

#last_name ⇒ String

Returns The last name of the recipient.

Returns:

  • (String) —

    The last name of the recipient.



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

define_attribute :last_name, String

#method ⇒ String

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/resources/gift_card_delivery.rb', line 31

define_attribute :method, String

#personal_message ⇒ String

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/resources/gift_card_delivery.rb', line 35

define_attribute :personal_message, String

#recipient_address ⇒ Address

Returns Address information for the recipient.

Returns:

  • (Address) —

    Address information for the recipient.



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

define_attribute :recipient_address, :Address