Class: Increase::Models::CardToken
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::CardToken
- Defined in:
- lib/increase/models/card_token.rb
Overview
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#created_at ⇒ Time
The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date and time at which the card token was created.
-
#expiration_date ⇒ Date
The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date when the card expires.
-
#id ⇒ String
The Card Token’s identifier.
-
#last4 ⇒ String
The last 4 digits of the card number.
-
#length ⇒ Integer
The length of the card number.
-
#prefix ⇒ String
The prefix of the card number, usually 8 digits.
-
#type ⇒ Symbol, Increase::Models::CardToken::Type
A constant representing the object’s type.
Instance Method Summary collapse
-
#initialize(id: , created_at: , expiration_date: , last4: , length: , prefix: , type: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see CardToken for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: , created_at: , expiration_date: , last4: , length: , prefix: , type: ) ⇒ Object
Some parameter documentations has been truncated, see Increase::Models::CardToken for more details.
Card Tokens represent a tokenized card number that can be used for Card Push Transfers and Card Validations.
|
|
# File 'lib/increase/models/card_token.rb', line 52
|
Instance Attribute Details
#created_at ⇒ Time
The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date and time at which the card token was created.
18 |
# File 'lib/increase/models/card_token.rb', line 18 required :created_at, Time |
#expiration_date ⇒ Date
The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date when the card expires.
25 |
# File 'lib/increase/models/card_token.rb', line 25 required :expiration_date, Date |
#id ⇒ String
The Card Token’s identifier.
11 |
# File 'lib/increase/models/card_token.rb', line 11 required :id, String |
#last4 ⇒ String
The last 4 digits of the card number.
31 |
# File 'lib/increase/models/card_token.rb', line 31 required :last4, String |
#length ⇒ Integer
The length of the card number.
37 |
# File 'lib/increase/models/card_token.rb', line 37 required :length, Integer |
#prefix ⇒ String
The prefix of the card number, usually 8 digits.
43 |
# File 'lib/increase/models/card_token.rb', line 43 required :prefix, String |
#type ⇒ Symbol, Increase::Models::CardToken::Type
A constant representing the object’s type. For this resource it will always be ‘card_token`.
50 |
# File 'lib/increase/models/card_token.rb', line 50 required :type, enum: -> { Increase::CardToken::Type } |