Module: ModernTreasury::Models::LegalEntity::Address::AddressType

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

Constant Summary collapse

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

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

Instance Method Details

#initialize(id: , address_types: , country: , created_at: , discarded_at: , line1: , line2: , live_mode: , locality: , object: , postal_code: , region: , updated_at: ) ⇒ Object

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

Parameters:

  • id (String) (defaults to: )
  • address_types (Array<Symbol, ModernTreasury::Models::LegalEntity::Address::AddressType>) (defaults to: )

    The types of this address.

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

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

  • created_at (Time) (defaults to: )
  • discarded_at (Time, nil) (defaults to: )
  • line1 (String, nil) (defaults to: )
  • line2 (String, nil) (defaults to: )
  • live_mode (Boolean) (defaults to: )

    This field will be true if this object exists in the live environment or false i

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

    Locality or City.

  • object (String) (defaults to: )
  • postal_code (String, nil) (defaults to: )

    The postal code of the address.

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

    Region or State.

  • updated_at (Time) (defaults to: )


370
371
372
373
374
375
376
377
378
379
380
381
# File 'lib/modern_treasury/models/legal_entity.rb', line 370

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

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

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