Class: TerminalShop::Models::OrderAPI::Shipping

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/terminal_shop/models/order.rb

Overview

See Also:

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from TerminalShop::Internal::Type::BaseModel

Instance Attribute Details

#cityString

City of the address.

Returns:

  • (String)


142
# File 'lib/terminal_shop/models/order.rb', line 142

required :city, String

#countryString

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

Returns:

  • (String)


148
# File 'lib/terminal_shop/models/order.rb', line 148

required :country, String

#nameString

The recipient’s name.

Returns:

  • (String)


154
# File 'lib/terminal_shop/models/order.rb', line 154

required :name, String

#phoneString?

Phone number of the recipient.

Returns:

  • (String, nil)


172
# File 'lib/terminal_shop/models/order.rb', line 172

optional :phone, String

#provinceString?

Province or state of the address.

Returns:

  • (String, nil)


178
# File 'lib/terminal_shop/models/order.rb', line 178

optional :province, String

#street1String

Street of the address.

Returns:

  • (String)


160
# File 'lib/terminal_shop/models/order.rb', line 160

required :street1, String

#street2String?

Apartment, suite, etc. of the address.

Returns:

  • (String, nil)


184
# File 'lib/terminal_shop/models/order.rb', line 184

optional :street2, String

#zipString

Zip code of the address.

Returns:

  • (String)


166
# File 'lib/terminal_shop/models/order.rb', line 166

required :zip, String