Class: CheckoutSdk::NetworkTokens::NetworkTokenSourceId
- Inherits:
-
Object
- Object
- CheckoutSdk::NetworkTokens::NetworkTokenSourceId
- Defined in:
- lib/checkout_sdk/network_tokens/network_token_source_id.rb
Overview
Existing-instrument source for provisioning a network token. Set ‘type = “id”`.
Instance Attribute Summary collapse
-
#id ⇒ String
The source instrument id (e.g. “src_…”).
-
#type ⇒ String
Always “id”.
Instance Method Summary collapse
-
#initialize ⇒ NetworkTokenSourceId
constructor
A new instance of NetworkTokenSourceId.
Constructor Details
#initialize ⇒ NetworkTokenSourceId
Returns a new instance of NetworkTokenSourceId.
14 15 16 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_id.rb', line 14 def initialize @type = 'id' end |
Instance Attribute Details
#id ⇒ String
Returns The source instrument id (e.g. “src_…”).
11 12 13 14 15 16 17 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_id.rb', line 11 class NetworkTokenSourceId attr_accessor :type, :id def initialize @type = 'id' end end |
#type ⇒ String
Returns Always “id”.
11 12 13 14 15 16 17 |
# File 'lib/checkout_sdk/network_tokens/network_token_source_id.rb', line 11 class NetworkTokenSourceId attr_accessor :type, :id def initialize @type = 'id' end end |