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_typeString

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

Returns:

  • (String)

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



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

define_attribute :card_type, String

#exp_monthInteger

Returns Expiration month.

Returns:

  • (Integer)

    Expiration month.



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

define_attribute :exp_month, Integer

#exp_yearInteger

Returns Expiration year.

Returns:

  • (Integer)

    Expiration year.



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

define_attribute :exp_year, Integer

#first_sixString

Returns Credit card number's first six digits.

Returns:

  • (String)

    Credit card number's first six digits.



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

define_attribute :first_six, String

#gateway_codeString

Returns An identifier for a specific payment gateway.

Returns:

  • (String)

    An identifier for a specific payment gateway.



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

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.



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

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.



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

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.



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

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.



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

define_attribute :name_on_account, String

#objectString

Returns:

  • (String)


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

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.



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

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.



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

define_attribute :routing_number_bank, String