Class: TerminalShop::Models::OrderAPI::Shipping
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- TerminalShop::Models::OrderAPI::Shipping
- Defined in:
- lib/terminal_shop/models/order.rb,
sig/terminal_shop/models/order.rbs
Overview
Instance Attribute Summary collapse
-
#city ⇒ String
City of the address.
-
#country ⇒ String
ISO 3166-1 alpha-2 country code of the address.
-
#name ⇒ String
The recipient's name.
-
#phone ⇒ String?
Phone number of the recipient.
-
#province ⇒ String?
Province or state of the address.
-
#street1 ⇒ String
Street of the address.
-
#street2 ⇒ String?
Apartment, suite, etc.
-
#zip ⇒ String
Zip code of the address.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
139 |
# File 'sig/terminal_shop/models/order.rbs', line 139
def initialize: (
|
Instance Attribute Details
#city ⇒ String
City of the address.
142 |
# File 'lib/terminal_shop/models/order.rb', line 142 required :city, String |
#country ⇒ String
ISO 3166-1 alpha-2 country code of the address.
148 |
# File 'lib/terminal_shop/models/order.rb', line 148 required :country, String |
#name ⇒ String
The recipient's name.
154 |
# File 'lib/terminal_shop/models/order.rb', line 154 required :name, String |
#phone ⇒ String?
Phone number of the recipient.
172 |
# File 'lib/terminal_shop/models/order.rb', line 172 optional :phone, String |
#province ⇒ String?
Province or state of the address.
178 |
# File 'lib/terminal_shop/models/order.rb', line 178 optional :province, String |
#street1 ⇒ String
Street of the address.
160 |
# File 'lib/terminal_shop/models/order.rb', line 160 required :street1, String |
#street2 ⇒ String?
Apartment, suite, etc. of the address.
184 |
# File 'lib/terminal_shop/models/order.rb', line 184 optional :street2, String |
#zip ⇒ String
Zip code of the address.
166 |
# File 'lib/terminal_shop/models/order.rb', line 166 required :zip, String |
Instance Method Details
#to_hash ⇒ {
150 |
# File 'sig/terminal_shop/models/order.rbs', line 150
def to_hash: -> {
|