Class: CheckoutSdk::Payments::TokenSource

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

Instance Attribute Summary collapse

Attributes inherited from PaymentSource

#type

Instance Method Summary collapse

Constructor Details

#initializeTokenSource

Returns a new instance of TokenSource.



25
26
27
# File 'lib/checkout_sdk/payments/source/token_source.rb', line 25

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

Instance Attribute Details

#account_holderCheckoutSdk::Common::AccountHolder



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/payments/source/token_source.rb', line 17

class TokenSource < PaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :stored,
                :store_for_future_use,
                :account_holder

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

#billing_addressCheckoutSdk::Common::Address



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/payments/source/token_source.rb', line 17

class TokenSource < PaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :stored,
                :store_for_future_use,
                :account_holder

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

#phoneCheckoutSdk::Common::Phone



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/payments/source/token_source.rb', line 17

class TokenSource < PaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :stored,
                :store_for_future_use,
                :account_holder

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

#store_for_future_useTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/payments/source/token_source.rb', line 17

class TokenSource < PaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :stored,
                :store_for_future_use,
                :account_holder

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

#storedTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/payments/source/token_source.rb', line 17

class TokenSource < PaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :stored,
                :store_for_future_use,
                :account_holder

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

#tokenString

Returns:

  • (String)


17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/payments/source/token_source.rb', line 17

class TokenSource < PaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :stored,
                :store_for_future_use,
                :account_holder

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