Class: Recurly::Resources::PaymentMethod

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

#account_typeString

Returns The bank account type. Only present for ACH payment methods.

Returns:

  • (String)

    The bank account type. Only present for ACH payment methods.



11
# File 'lib/recurly/resources/payment_method.rb', line 11

define_attribute :account_type, String

#billing_agreement_idString

Returns Billing Agreement identifier. Only present for Amazon or Paypal payment methods.

Returns:

  • (String)

    Billing Agreement identifier. Only present for Amazon or Paypal payment methods.



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

define_attribute :billing_agreement_id, String

#card_network_preferenceString

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.



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

define_attribute :card_network_preference, String

#card_typeString

Returns Visa, MasterCard, American Express, Discover, JCB, etc.

Returns:

  • (String)

    Visa, MasterCard, American Express, Discover, JCB, etc.



23
# File 'lib/recurly/resources/payment_method.rb', line 23

define_attribute :card_type, String

#cc_bin_countryString

Returns The 2-letter ISO 3166-1 alpha-2 country code associated with the credit card BIN, if known by Recurly. Available on the BillingInfo object only. Available when the BIN country lookup feature is enabled.

Returns:

  • (String)

    The 2-letter ISO 3166-1 alpha-2 country code associated with the credit card BIN, if known by Recurly. Available on the BillingInfo object only. Available when the BIN country lookup feature is enabled.



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

define_attribute :cc_bin_country, String

#exp_monthInteger

Returns Expiration month.

Returns:

  • (Integer)

    Expiration month.



31
# File 'lib/recurly/resources/payment_method.rb', line 31

define_attribute :exp_month, Integer

#exp_yearInteger

Returns Expiration year.

Returns:

  • (Integer)

    Expiration year.



35
# File 'lib/recurly/resources/payment_method.rb', line 35

define_attribute :exp_year, Integer

#first_sixString

Returns Credit card number's first six digits.

Returns:

  • (String)

    Credit card number's first six digits.



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

define_attribute :first_six, String

#gateway_attributesGatewayAttributes

Returns Gateway specific attributes associated with this PaymentMethod.

Returns:

  • (GatewayAttributes)

    Gateway specific attributes associated with this PaymentMethod



43
# File 'lib/recurly/resources/payment_method.rb', line 43

define_attribute :gateway_attributes, :GatewayAttributes

#gateway_codeString

Returns An identifier for a specific payment gateway.

Returns:

  • (String)

    An identifier for a specific payment gateway.



47
# File 'lib/recurly/resources/payment_method.rb', line 47

define_attribute :gateway_code, String

#gateway_tokenString

Returns A token used in place of a credit card in order to perform transactions.

Returns:

  • (String)

    A token used in place of a credit card in order to perform transactions.



51
# File 'lib/recurly/resources/payment_method.rb', line 51

define_attribute :gateway_token, String

#last_fourString

Returns Credit card number's last four digits. Will refer to bank account if payment method is ACH.

Returns:

  • (String)

    Credit card number's last four digits. Will refer to bank account if payment method is ACH.



55
# File 'lib/recurly/resources/payment_method.rb', line 55

define_attribute :last_four, String

#last_twoString

Returns The IBAN bank account's last two digits.

Returns:

  • (String)

    The IBAN bank account's last two digits.



59
# File 'lib/recurly/resources/payment_method.rb', line 59

define_attribute :last_two, String

#name_on_accountString

Returns The name associated with the bank account.

Returns:

  • (String)

    The name associated with the bank account.



63
# File 'lib/recurly/resources/payment_method.rb', line 63

define_attribute :name_on_account, String

#objectString

Returns:

  • (String)


67
# File 'lib/recurly/resources/payment_method.rb', line 67

define_attribute :object, String

#routing_numberString

Returns The bank account's routing number. Only present for ACH payment methods.

Returns:

  • (String)

    The bank account's routing number. Only present for ACH payment methods.



71
# File 'lib/recurly/resources/payment_method.rb', line 71

define_attribute :routing_number, String

#routing_number_bankString

Returns The bank name of this routing number.

Returns:

  • (String)

    The bank name of this routing number.



75
# File 'lib/recurly/resources/payment_method.rb', line 75

define_attribute :routing_number_bank, String

#usernameString

Returns Username of the associated payment method. Currently only associated with Venmo.

Returns:

  • (String)

    Username of the associated payment method. Currently only associated with Venmo.



79
# File 'lib/recurly/resources/payment_method.rb', line 79

define_attribute :username, String