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

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

Constant Summary collapse

BUSINESS =

Returns:

  • (:business)
:business
BUSINESS_PHYSICAL =

Returns:

  • (:business_physical)
:business_physical
BUSINESS_REGISTERED =

Returns:

  • (:business_registered)
:business_registered
MAILING =

Returns:

  • (:mailing)
:mailing
OTHER =

Returns:

  • (:other)
:other
PO_BOX =

Returns:

  • (:po_box)
:po_box
RESIDENTIAL =

Returns:

  • (: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 85

Instance Method Details

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

Some parameter documentations has been truncated, see ModernTreasury::Models::LegalEntityAddressCreateRequest for more details.

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)
  • primary (Boolean, nil) (defaults to: nil)

    Whether this address is the primary address for the legal entity. Optional; when



74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/modern_treasury/models/legal_entity_address_create_request.rb', line 74

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

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

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

#self?.values::Array[ModernTreasury::Models::LegalEntityAddressCreateRequest::address_type]

Returns:

  • (::Array[ModernTreasury::Models::LegalEntityAddressCreateRequest::address_type])


78
# File 'sig/modern_treasury/models/legal_entity_address_create_request.rbs', line 78

def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityAddressCreateRequest::address_type]