Class: TerminalShop::Models::CardAPI
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- TerminalShop::Models::CardAPI
- Defined in:
- lib/terminal_shop/models/card.rb
Defined Under Namespace
Classes: Expiration
Instance Attribute Summary collapse
-
#brand ⇒ String
Brand of the card.
-
#created ⇒ String
Date the card was created.
-
#expiration ⇒ TerminalShop::Models::CardAPI::Expiration
Expiration of the card.
-
#id ⇒ String
Unique object identifier.
-
#last4 ⇒ String
Last four digits of the card.
Instance Method Summary collapse
-
#initialize(id: , brand: , created: , expiration: , last4: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see CardAPI 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: , brand: , created: , expiration: , last4: ) ⇒ Object
Some parameter documentations has been truncated, see TerminalShop::Models::CardAPI for more details.
Credit card used for payments in the Terminal shop.
|
|
# File 'lib/terminal_shop/models/card.rb', line 36
|
Instance Attribute Details
#brand ⇒ String
Brand of the card.
16 |
# File 'lib/terminal_shop/models/card.rb', line 16 required :brand, String |
#created ⇒ String
Date the card was created.
22 |
# File 'lib/terminal_shop/models/card.rb', line 22 required :created, String |
#expiration ⇒ TerminalShop::Models::CardAPI::Expiration
Expiration of the card.
28 |
# File 'lib/terminal_shop/models/card.rb', line 28 required :expiration, -> { TerminalShop::CardAPI::Expiration } |
#id ⇒ String
Unique object identifier. The format and length of IDs may change over time.
10 |
# File 'lib/terminal_shop/models/card.rb', line 10 required :id, String |
#last4 ⇒ String
Last four digits of the card.
34 |
# File 'lib/terminal_shop/models/card.rb', line 34 required :last4, String |