Class: CheckoutSdk::Payments::CustomerSource

Inherits:
PaymentSource show all
Defined in:
lib/checkout_sdk/payments/source/customer_source.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentSource

#type

Instance Method Summary collapse

Constructor Details

#initializeCustomerSource

Returns a new instance of CustomerSource.



13
14
15
# File 'lib/checkout_sdk/payments/source/customer_source.rb', line 13

def initialize
  super CheckoutSdk::Common::PaymentSourceType::CUSTOMER
end

Instance Attribute Details

#account_holderCheckoutSdk::Common::AccountHolder



9
10
11
12
13
14
15
16
# File 'lib/checkout_sdk/payments/source/customer_source.rb', line 9

class CustomerSource < PaymentSource
  attr_accessor :id,
                :account_holder

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CUSTOMER
  end
end

#idString

Returns:

  • (String)


9
10
11
12
13
14
15
16
# File 'lib/checkout_sdk/payments/source/customer_source.rb', line 9

class CustomerSource < PaymentSource
  attr_accessor :id,
                :account_holder

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CUSTOMER
  end
end