Module: ModernTreasury::Models::LegalEntityAddressCreateRequest::AddressType

Extended by:
Internal::Type::Enum
Defined in:
lib/modern_treasury/models/legal_entity_address_create_request.rb

Constant Summary collapse

BUSINESS =
:business
BUSINESS_REGISTERED =
:business_registered
MAILING =
:mailing
OTHER =
:other
PO_BOX =
:po_box
RESIDENTIAL =
:residential

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/legal_entity_address_create_request.rb', line 72

Instance Method Details

#initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil) ⇒ Object

Parameters:

  • country (String, nil)

    Country code conforms to [ISO 3166-1 alpha-2]

  • line1 (String, nil)
  • locality (String, nil)

    Locality or City.

  • postal_code (String, nil)

    The postal code of the address.

  • region (String, nil)

    Region or State.

  • address_types (Array<Symbol, ModernTreasury::Models::LegalEntityAddressCreateRequest::AddressType>) (defaults to: nil)

    The types of this address.

  • line2 (String, nil) (defaults to: nil)


62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/modern_treasury/models/legal_entity_address_create_request.rb', line 62

module AddressType
  extend ModernTreasury::Internal::Type::Enum

  BUSINESS = :business
  BUSINESS_REGISTERED = :business_registered
  MAILING = :mailing
  OTHER = :other
  PO_BOX = :po_box
  RESIDENTIAL = :residential

  # @!method self.values
  #   @return [Array<Symbol>]
end