Class: TerminalShop::Models::AddressAPI
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- TerminalShop::Models::AddressAPI
- Defined in:
- lib/terminal_shop/models/address.rb
Instance Attribute Summary collapse
-
#city ⇒ String
City of the address.
-
#country ⇒ String
ISO 3166-1 alpha-2 country code of the address.
-
#created ⇒ String
Date the address was created.
-
#id ⇒ String
Unique object identifier.
-
#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(id: , city: , country: , created: , name: , street1: , zip: , phone: nil, province: nil, street2: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see AddressAPI 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: , city: , country: , created: , name: , street1: , zip: , phone: nil, province: nil, street2: nil) ⇒ Object
Some parameter documentations has been truncated, see TerminalShop::Models::AddressAPI for more details.
Physical address associated with a Terminal shop user.
|
|
# File 'lib/terminal_shop/models/address.rb', line 66
|
Instance Attribute Details
#city ⇒ String
City of the address.
16 |
# File 'lib/terminal_shop/models/address.rb', line 16 required :city, String |
#country ⇒ String
ISO 3166-1 alpha-2 country code of the address.
22 |
# File 'lib/terminal_shop/models/address.rb', line 22 required :country, String |
#created ⇒ String
Date the address was created.
28 |
# File 'lib/terminal_shop/models/address.rb', line 28 required :created, String |
#id ⇒ String
Unique object identifier. The format and length of IDs may change over time.
10 |
# File 'lib/terminal_shop/models/address.rb', line 10 required :id, String |
#name ⇒ String
The recipient’s name.
34 |
# File 'lib/terminal_shop/models/address.rb', line 34 required :name, String |
#phone ⇒ String?
Phone number of the recipient.
52 |
# File 'lib/terminal_shop/models/address.rb', line 52 optional :phone, String |
#province ⇒ String?
Province or state of the address.
58 |
# File 'lib/terminal_shop/models/address.rb', line 58 optional :province, String |
#street1 ⇒ String
Street of the address.
40 |
# File 'lib/terminal_shop/models/address.rb', line 40 required :street1, String |
#street2 ⇒ String?
Apartment, suite, etc. of the address.
64 |
# File 'lib/terminal_shop/models/address.rb', line 64 optional :street2, String |
#zip ⇒ String
Zip code of the address.
46 |
# File 'lib/terminal_shop/models/address.rb', line 46 required :zip, String |