Class: DeliveryFivePostClient::Models::API::V1::Address

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/delivery_five_post_client/models/api/v1/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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:, house:, region:, street:, zip_code:, flat: nil) ⇒ Object

Адрес / Address

Parameters:

  • city (String) —

    Город / City

  • country (String) —

    Страна / Country

  • house (String) —

    Номер дома / House number

  • region (String) —

    Регион / Region

  • street (String) —

    Улица / Street

  • zip_code (String) —

    Почтовый индекс / ZIP code

  • flat (String) (defaults to: nil) —

    Квартира/офис / Apartment/office



# File 'lib/delivery_five_post_client/models/api/v1/address.rb', line 50

Instance Attribute Details

#city ⇒ String

Город / City

Returns:

  • (String)


12
# File 'lib/delivery_five_post_client/models/api/v1/address.rb', line 12

required :city, String

#country ⇒ String

Страна / Country

Returns:

  • (String)


18
# File 'lib/delivery_five_post_client/models/api/v1/address.rb', line 18

required :country, String

#flat ⇒ String?

Квартира/офис / Apartment/office

Returns:

  • (String, nil)


48
# File 'lib/delivery_five_post_client/models/api/v1/address.rb', line 48

optional :flat, String

#house ⇒ String

Номер дома / House number

Returns:

  • (String)


24
# File 'lib/delivery_five_post_client/models/api/v1/address.rb', line 24

required :house, String

#region ⇒ String

Регион / Region

Returns:

  • (String)


30
# File 'lib/delivery_five_post_client/models/api/v1/address.rb', line 30

required :region, String

#street ⇒ String

Улица / Street

Returns:

  • (String)


36
# File 'lib/delivery_five_post_client/models/api/v1/address.rb', line 36

required :street, String

#zip_code ⇒ String

Почтовый индекс / ZIP code

Returns:

  • (String)


42
# File 'lib/delivery_five_post_client/models/api/v1/address.rb', line 42

required :zip_code, String, api_name: :zipCode