Class: TerminalShop::Models::AddressCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- TerminalShop::Models::AddressCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/terminal_shop/models/address_create_params.rb
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.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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, request_options: {}) ⇒ Object
|
|
# File 'lib/terminal_shop/models/address_create_params.rb', line 58
|
Instance Attribute Details
#city ⇒ String
City of the address.
14 |
# File 'lib/terminal_shop/models/address_create_params.rb', line 14 required :city, String |
#country ⇒ String
ISO 3166-1 alpha-2 country code of the address.
20 |
# File 'lib/terminal_shop/models/address_create_params.rb', line 20 required :country, String |
#name ⇒ String
The recipient’s name.
26 |
# File 'lib/terminal_shop/models/address_create_params.rb', line 26 required :name, String |
#phone ⇒ String?
Phone number of the recipient.
44 |
# File 'lib/terminal_shop/models/address_create_params.rb', line 44 optional :phone, String |
#province ⇒ String?
Province or state of the address.
50 |
# File 'lib/terminal_shop/models/address_create_params.rb', line 50 optional :province, String |
#street1 ⇒ String
Street of the address.
32 |
# File 'lib/terminal_shop/models/address_create_params.rb', line 32 required :street1, String |
#street2 ⇒ String?
Apartment, suite, etc. of the address.
56 |
# File 'lib/terminal_shop/models/address_create_params.rb', line 56 optional :street2, String |
#zip ⇒ String
Zip code of the address.
38 |
# File 'lib/terminal_shop/models/address_create_params.rb', line 38 required :zip, String |