Class: Recurly::Requests::AccountPurchase

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

#acquisitionAccountAcquisitionUpdate



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

define_attribute :acquisition, :AccountAcquisitionUpdate

#addressAddress

Returns:



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

define_attribute :address, :Address

#bill_toString

Returns An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

Returns:

  • (String)

    An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.



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

define_attribute :bill_to, String

#billing_infoBillingInfoCreate

Returns:



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

define_attribute :billing_info, :BillingInfoCreate

#cc_emailsString

Returns Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

Returns:

  • (String)

    Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.



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

define_attribute :cc_emails, String

#codeString

Returns The unique identifier of the account. This cannot be changed once the account is created.

Returns:

  • (String)

    The unique identifier of the account. This cannot be changed once the account is created.



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

define_attribute :code, String

#companyString

Returns:

  • (String)


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

define_attribute :company, String

#custom_fieldsArray[CustomField]

Returns The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.

Returns:

  • (Array[CustomField])

    The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.



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

define_attribute :custom_fields, Array, { :item_type => :CustomField }

#emailString

Returns The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

Returns:

  • (String)

    The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.



43
# File 'lib/recurly/requests/account_purchase.rb', line 43

define_attribute :email, String

#exemption_certificateString

Returns The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

Returns:

  • (String)

    The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.



47
# File 'lib/recurly/requests/account_purchase.rb', line 47

define_attribute :exemption_certificate, String

#first_nameString

Returns:

  • (String)


51
# File 'lib/recurly/requests/account_purchase.rb', line 51

define_attribute :first_name, String

#idString

Returns Optional, but if present allows an existing account to be used and updated as part of the purchase.

Returns:

  • (String)

    Optional, but if present allows an existing account to be used and updated as part of the purchase.



55
# File 'lib/recurly/requests/account_purchase.rb', line 55

define_attribute :id, String

#last_nameString

Returns:

  • (String)


59
# File 'lib/recurly/requests/account_purchase.rb', line 59

define_attribute :last_name, String

#parent_account_codeString

Returns The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

Returns:

  • (String)

    The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.



63
# File 'lib/recurly/requests/account_purchase.rb', line 63

define_attribute :parent_account_code, String

#parent_account_idString

Returns The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

Returns:

  • (String)

    The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.



67
# File 'lib/recurly/requests/account_purchase.rb', line 67

define_attribute :parent_account_id, String

#preferred_localeString

Returns Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

Returns:

  • (String)

    Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.



71
# File 'lib/recurly/requests/account_purchase.rb', line 71

define_attribute :preferred_locale, String

#tax_exemptBoolean

Returns The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.

Returns:

  • (Boolean)

    The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.



75
# File 'lib/recurly/requests/account_purchase.rb', line 75

define_attribute :tax_exempt, :Boolean

#transaction_typeString

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

Returns:

  • (String)

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.



79
# File 'lib/recurly/requests/account_purchase.rb', line 79

define_attribute :transaction_type, String

#usernameString

Returns A secondary value for the account.

Returns:

  • (String)

    A secondary value for the account.



83
# File 'lib/recurly/requests/account_purchase.rb', line 83

define_attribute :username, String

#vat_numberString

Returns The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.

Returns:

  • (String)

    The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.



87
# File 'lib/recurly/requests/account_purchase.rb', line 87

define_attribute :vat_number, String