Class: TerminalShop::Models::OrderAPI
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- TerminalShop::Models::OrderAPI
- Defined in:
- lib/terminal_shop/models/order.rb
Defined Under Namespace
Classes: Amount, Item, Shipping, Tracking
Instance Attribute Summary collapse
-
#amount ⇒ TerminalShop::Models::OrderAPI::Amount
The subtotal and shipping amounts of the order.
-
#created ⇒ String
Date the order was created.
-
#id ⇒ String
Unique object identifier.
-
#index ⇒ Integer?
Zero-based index of the order for this user only.
-
#items ⇒ Array<TerminalShop::Models::OrderAPI::Item>
Items in the order.
-
#shipping ⇒ TerminalShop::Models::OrderAPI::Shipping
Shipping address of the order.
-
#tracking ⇒ TerminalShop::Models::OrderAPI::Tracking
Tracking information of the order.
Instance Method Summary collapse
-
#initialize(city: , country: , name: , street1: , zip: , phone: nil, province: nil, street2: nil) ⇒ Object
constructor
Shipping address of the order.
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(city: , country: , name: , street1: , zip: , phone: nil, province: nil, street2: nil) ⇒ Object
Shipping address of the order.
|
|
# File 'lib/terminal_shop/models/order.rb', line 48
|
Instance Attribute Details
#amount ⇒ TerminalShop::Models::OrderAPI::Amount
The subtotal and shipping amounts of the order.
16 |
# File 'lib/terminal_shop/models/order.rb', line 16 required :amount, -> { TerminalShop::OrderAPI::Amount } |
#created ⇒ String
Date the order was created.
22 |
# File 'lib/terminal_shop/models/order.rb', line 22 required :created, String |
#id ⇒ String
Unique object identifier. The format and length of IDs may change over time.
10 |
# File 'lib/terminal_shop/models/order.rb', line 10 required :id, String |
#index ⇒ Integer?
Zero-based index of the order for this user only.
46 |
# File 'lib/terminal_shop/models/order.rb', line 46 optional :index, Integer |
#items ⇒ Array<TerminalShop::Models::OrderAPI::Item>
Items in the order.
28 |
# File 'lib/terminal_shop/models/order.rb', line 28 required :items, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::OrderAPI::Item] } |
#shipping ⇒ TerminalShop::Models::OrderAPI::Shipping
Shipping address of the order.
34 |
# File 'lib/terminal_shop/models/order.rb', line 34 required :shipping, -> { TerminalShop::OrderAPI::Shipping } |
#tracking ⇒ TerminalShop::Models::OrderAPI::Tracking
Tracking information of the order.
40 |
# File 'lib/terminal_shop/models/order.rb', line 40 required :tracking, -> { TerminalShop::OrderAPI::Tracking } |