Class: TerminalShop::Models::AddressCreateParams

Inherits:
Internal::Type::BaseModel show all
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

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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

Parameters:

  • city (String) (defaults to: )

    City of the address.

  • country (String) (defaults to: )

    ISO 3166-1 alpha-2 country code of the address.

  • name (String) (defaults to: )

    The recipient’s name.

  • street1 (String) (defaults to: )

    Street of the address.

  • zip (String) (defaults to: )

    Zip code of the address.

  • phone (String) (defaults to: nil)

    Phone number of the recipient.

  • province (String) (defaults to: nil)

    Province or state of the address.

  • street2 (String) (defaults to: nil)

    Apartment, suite, etc. of the address.

  • request_options (TerminalShop::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/terminal_shop/models/address_create_params.rb', line 58

Instance Attribute Details

#cityString

City of the address.

Returns:

  • (String)


14
# File 'lib/terminal_shop/models/address_create_params.rb', line 14

required :city, String

#countryString

ISO 3166-1 alpha-2 country code of the address.

Returns:

  • (String)


20
# File 'lib/terminal_shop/models/address_create_params.rb', line 20

required :country, String

#nameString

The recipient’s name.

Returns:

  • (String)


26
# File 'lib/terminal_shop/models/address_create_params.rb', line 26

required :name, String

#phoneString?

Phone number of the recipient.

Returns:

  • (String, nil)


44
# File 'lib/terminal_shop/models/address_create_params.rb', line 44

optional :phone, String

#provinceString?

Province or state of the address.

Returns:

  • (String, nil)


50
# File 'lib/terminal_shop/models/address_create_params.rb', line 50

optional :province, String

#street1String

Street of the address.

Returns:

  • (String)


32
# File 'lib/terminal_shop/models/address_create_params.rb', line 32

required :street1, String

#street2String?

Apartment, suite, etc. of the address.

Returns:

  • (String, nil)


56
# File 'lib/terminal_shop/models/address_create_params.rb', line 56

optional :street2, String

#zipString

Zip code of the address.

Returns:

  • (String)


38
# File 'lib/terminal_shop/models/address_create_params.rb', line 38

required :zip, String