Class: Increase::Models::Entity::NaturalPerson::Address

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/entity.rb,
sig/increase/models/entity.rbs

Overview

See Also:

  • Increase::Models::Entity::NaturalPerson#address

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

#initializeObject



755
# File 'sig/increase/models/entity.rbs', line 755

def initialize: (

Instance Attribute Details

#cityString?

The city, district, town, or village of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


965
# File 'lib/increase/models/entity.rb', line 965

required :city, String, nil?: true

#countryString

The two-letter ISO 3166-1 alpha-2 code for the country of the address.

Parameters:

  • value (String)

Returns:

  • (String)


971
# File 'lib/increase/models/entity.rb', line 971

required :country, String

#line1String

The first line of the address.

Parameters:

  • value (String)

Returns:

  • (String)


977
# File 'lib/increase/models/entity.rb', line 977

required :line1, String

#line2String?

The second line of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


983
# File 'lib/increase/models/entity.rb', line 983

required :line2, String, nil?: true

#stateString?

The two-letter United States Postal Service (USPS) abbreviation for the US state, province, or region of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


990
# File 'lib/increase/models/entity.rb', line 990

required :state, String, nil?: true

#zipString?

The ZIP or postal code of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


996
# File 'lib/increase/models/entity.rb', line 996

required :zip, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


764
# File 'sig/increase/models/entity.rbs', line 764

def to_hash: -> {