Class: Increase::Models::Entity::GovernmentAuthority::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::GovernmentAuthority#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



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

def initialize: (

Instance Attribute Details

#cityString?

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

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

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)


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

required :country, String

#line1String

The first line of the address.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :line1, String

#line2String?

The second line of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

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)


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

required :state, String, nil?: true

#zipString?

The ZIP or postal code of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :zip, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {