Class: CheckoutSdk::NetworkTokens::NetworkTokenSourceCard
- Inherits:
-
Object
- Object
- CheckoutSdk::NetworkTokens::NetworkTokenSourceCard
- Defined in:
- lib/checkout_sdk/network_tokens/network_token_source_card.rb
Overview
Card-based source for provisioning a network token. Set ‘type = “card”`.
Instance Attribute Summary collapse
- #cvv ⇒ String
-
#expiry_month ⇒ String
1- or 2-digit month.
-
#expiry_year ⇒ String
Four-digit year.
-
#number ⇒ String
The card number.
-
#type ⇒ String
Always “card”.
Instance Method Summary collapse
-
#initialize ⇒ NetworkTokenSourceCard
constructor
A new instance of NetworkTokenSourceCard.
Constructor Details
#initialize ⇒ NetworkTokenSourceCard
Returns a new instance of NetworkTokenSourceCard.
20 21 22 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 20 def initialize @type = 'card' end |
Instance Attribute Details
#cvv ⇒ String
17 18 19 20 21 22 23 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17 class NetworkTokenSourceCard attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year def initialize @type = 'card' end end |
#expiry_month ⇒ String
Returns 1- or 2-digit month.
17 18 19 20 21 22 23 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17 class NetworkTokenSourceCard attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year def initialize @type = 'card' end end |
#expiry_year ⇒ String
Returns Four-digit year.
17 18 19 20 21 22 23 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17 class NetworkTokenSourceCard attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year def initialize @type = 'card' end end |
#number ⇒ String
Returns The card number.
17 18 19 20 21 22 23 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17 class NetworkTokenSourceCard attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year def initialize @type = 'card' end end |
#type ⇒ String
Returns Always “card”.
17 18 19 20 21 22 23 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_card.rb', line 17 class NetworkTokenSourceCard attr_accessor :type, :number, :cvv, :expiry_month, :expiry_year def initialize @type = 'card' end end |