Class: CheckoutSdk::Previous::Payments::TokenSource

Inherits:
PaymentSource
  • Object
show all
Defined in:
lib/checkout_sdk/payments/previous/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.



23
24
25
# File 'lib/checkout_sdk/payments/previous/source/token_source.rb', line 23

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

Instance Attribute Details

#billing_addressCheckoutSdk::Common::Address



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

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

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

#phoneCheckoutSdk::Common::Phone



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

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

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

#store_for_future_useTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


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

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

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

#storedTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


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

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

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

#tokenString

Returns:

  • (String)


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

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

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