Class: Recurly::Requests::BillingInfoCreate

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

#account_number ⇒ String

Returns The bank account number. (ACH, Bacs only).

Returns:

  • (String) —

    The bank account number. (ACH, Bacs only)



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

define_attribute :account_number, String

#account_type ⇒ String

Returns The bank account type. (ACH only).

Returns:

  • (String) —

    The bank account type. (ACH only)



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

define_attribute :account_type, String

#address ⇒ Address

Returns:



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

define_attribute :address, :Address

#amazon_billing_agreement_id ⇒ String

Returns Amazon billing agreement ID.

Returns:

  • (String) —

    Amazon billing agreement ID



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

define_attribute :amazon_billing_agreement_id, String

#backup_payment_method ⇒ Boolean

Returns The backup_payment_method field is used to designate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined. All payment methods, including the billing info marked primary_payment_method can be set as a backup. An account can have a maximum of 1 backup, if a user sets a different payment method as a backup, the existing backup will no longer be marked as such.

Returns:

  • (Boolean) —

    The backup_payment_method field is used to designate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined. All payment methods, including the billing info marked primary_payment_method can be set as a backup. An account can have a maximum of 1 backup, if a user sets a different payment method as a backup, the existing backup will no longer be marked as such.



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

define_attribute :backup_payment_method, :Boolean

#card_network_preference ⇒ String

Returns Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.

Returns:

  • (String) —

    Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.



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

define_attribute :card_network_preference, String

#company ⇒ String

Returns Company name.

Returns:

  • (String) —

    Company name



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

define_attribute :company, String

#currency ⇒ String

Returns 3-letter ISO 4217 currency code.

Returns:

  • (String) —

    3-letter ISO 4217 currency code.



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

define_attribute :currency, String

#cvv ⇒ String

Returns STRONGLY RECOMMENDED.

Returns:

  • (String) —

    STRONGLY RECOMMENDED



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

define_attribute :cvv, String

#first_name ⇒ String

Returns First name.

Returns:

  • (String) —

    First name



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

define_attribute :first_name, String

#fraud_session_id ⇒ String

Returns Fraud Session ID.

Returns:

  • (String) —

    Fraud Session ID



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

define_attribute :fraud_session_id, String

#gateway_attributes ⇒ GatewayAttributes

Returns Additional attributes to send to the gateway.

Returns:



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

define_attribute :gateway_attributes, :GatewayAttributes

#gateway_code ⇒ String

Returns An identifier for a specific payment gateway.

Returns:

  • (String) —

    An identifier for a specific payment gateway.



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

define_attribute :gateway_code, String

#gateway_token ⇒ String

Returns A token used in place of a credit card in order to perform transactions. Must be used in conjunction with gateway_code.

Returns:

  • (String) —

    A token used in place of a credit card in order to perform transactions. Must be used in conjunction with gateway_code.



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

define_attribute :gateway_token, String

#iban ⇒ String

Returns The International Bank Account Number, up to 34 alphanumeric characters comprising a country code; two check digits; and a number that includes the domestic bank account number, branch identifier, and potential routing information. (SEPA only).

Returns:

  • (String) —

    The International Bank Account Number, up to 34 alphanumeric characters comprising a country code; two check digits; and a number that includes the domestic bank account number, branch identifier, and potential routing information. (SEPA only)



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

define_attribute :iban, String

#ip_address ⇒ String

Returns STRONGLY RECOMMENDED Customer's IP address when updating their billing information.

Returns:

  • (String) —

    STRONGLY RECOMMENDED Customer's IP address when updating their billing information.



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

define_attribute :ip_address, String

#last_name ⇒ String

Returns Last name.

Returns:

  • (String) —

    Last name



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

define_attribute :last_name, String

#month ⇒ String

Returns Expiration month.

Returns:

  • (String) —

    Expiration month



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

define_attribute :month, String

#name_on_account ⇒ String

Returns The name associated with the bank account (ACH, SEPA, Bacs only).

Returns:

  • (String) —

    The name associated with the bank account (ACH, SEPA, Bacs only)



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

define_attribute :name_on_account, String

#number ⇒ String

Returns Credit card number, spaces and dashes are accepted.

Returns:

  • (String) —

    Credit card number, spaces and dashes are accepted.



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

define_attribute :number, String

#paypal_billing_agreement_id ⇒ String

Returns PayPal billing agreement ID.

Returns:

  • (String) —

    PayPal billing agreement ID



91
# File 'lib/recurly/requests/billing_info_create.rb', line 91

define_attribute :paypal_billing_agreement_id, String

#primary_payment_method ⇒ Boolean

Returns The primary_payment_method field is used to designate the primary billing info on the account. The first billing info created on an account will always become primary. Adding additional billing infos provides the flexibility to mark another billing info as primary, or adding additional non-primary billing infos. This can be accomplished by passing the primary_payment_method with a value of true. When adding billing infos via the billing_info and /accounts endpoints, this value is not permitted, and will return an error if provided.

Returns:

  • (Boolean) —

    The primary_payment_method field is used to designate the primary billing info on the account. The first billing info created on an account will always become primary. Adding additional billing infos provides the flexibility to mark another billing info as primary, or adding additional non-primary billing infos. This can be accomplished by passing the primary_payment_method with a value of true. When adding billing infos via the billing_info and /accounts endpoints, this value is not permitted, and will return an error if provided.



95
# File 'lib/recurly/requests/billing_info_create.rb', line 95

define_attribute :primary_payment_method, :Boolean

#roku_billing_agreement_id ⇒ String

Returns Roku's CIB if billing through Roku.

Returns:

  • (String) —

    Roku's CIB if billing through Roku



99
# File 'lib/recurly/requests/billing_info_create.rb', line 99

define_attribute :roku_billing_agreement_id, String

#routing_number ⇒ String

Returns The bank's rounting number. (ACH only).

Returns:

  • (String) —

    The bank's rounting number. (ACH only)



103
# File 'lib/recurly/requests/billing_info_create.rb', line 103

define_attribute :routing_number, String

#sort_code ⇒ String

Returns Bank identifier code for UK based banks. Required for Bacs based billing infos. (Bacs only).

Returns:

  • (String) —

    Bank identifier code for UK based banks. Required for Bacs based billing infos. (Bacs only)



107
# File 'lib/recurly/requests/billing_info_create.rb', line 107

define_attribute :sort_code, String

#store_billing_info ⇒ Boolean

Returns Whether to store this billing info onto its associated account. Defaults to true.

Returns:

  • (Boolean) —

    Whether to store this billing info onto its associated account. Defaults to true.



111
# File 'lib/recurly/requests/billing_info_create.rb', line 111

define_attribute :store_billing_info, :Boolean

#tax_identifier ⇒ String

Returns Tax identifier is required if adding a billing info that is a consumer card in Brazil. This would be the customer's CPF, CPF is a Brazilian tax identifier for all tax paying residents.

Returns:

  • (String) —

    Tax identifier is required if adding a billing info that is a consumer card in Brazil. This would be the customer's CPF, CPF is a Brazilian tax identifier for all tax paying residents.



115
# File 'lib/recurly/requests/billing_info_create.rb', line 115

define_attribute :tax_identifier, String

#tax_identifier_type ⇒ String

Returns this field and a value of 'cpf' are required if adding a billing info that is an elo or hipercard type in Brazil.

Returns:

  • (String) —

    this field and a value of 'cpf' are required if adding a billing info that is an elo or hipercard type in Brazil.



119
# File 'lib/recurly/requests/billing_info_create.rb', line 119

define_attribute :tax_identifier_type, String

#three_d_secure_action_result_token_id ⇒ String

Returns A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

Returns:

  • (String) —

    A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.



123
# File 'lib/recurly/requests/billing_info_create.rb', line 123

define_attribute :three_d_secure_action_result_token_id, String

#token_id ⇒ String

Returns A token generated by Recurly.js.

Returns:



127
# File 'lib/recurly/requests/billing_info_create.rb', line 127

define_attribute :token_id, String

#transaction_type ⇒ String

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.



131
# File 'lib/recurly/requests/billing_info_create.rb', line 131

define_attribute :transaction_type, String

#type ⇒ String

Returns The payment method type for a non-credit card based billing info. bacs and becs are the only accepted values.

Returns:

  • (String) —

    The payment method type for a non-credit card based billing info. bacs and becs are the only accepted values.



135
# File 'lib/recurly/requests/billing_info_create.rb', line 135

define_attribute :type, String

#vat_number ⇒ String

Returns VAT number.

Returns:

  • (String) —

    VAT number



139
# File 'lib/recurly/requests/billing_info_create.rb', line 139

define_attribute :vat_number, String

#year ⇒ String

Returns Expiration year.

Returns:

  • (String) —

    Expiration year



143
# File 'lib/recurly/requests/billing_info_create.rb', line 143

define_attribute :year, String