Class: ModernTreasury::Models::IdentificationCreateRequest

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/identification_create_request.rb

Defined Under Namespace

Modules: IDType

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

#initialize(id_number: , id_type: , expiration_date: nil, issuing_country: nil, issuing_region: nil) ⇒ Object

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

Parameters:

  • id_number (String) (defaults to: )

    The ID number of identification document.

  • id_type (Symbol, ModernTreasury::Models::IdentificationCreateRequest::IDType) (defaults to: )

    The type of ID number.

  • expiration_date (Date, nil) (defaults to: nil)

    The date when the Identification is no longer considered valid by the issuing au

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

    The ISO 3166-1 alpha-2 country code of the country that issued the identificatio

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

    The region in which the identifcation was issued.



# File 'lib/modern_treasury/models/identification_create_request.rb', line 38


Instance Attribute Details

#expiration_dateDate?

The date when the Identification is no longer considered valid by the issuing authority.

Returns:

  • (Date, nil)


23
# File 'lib/modern_treasury/models/identification_create_request.rb', line 23

optional :expiration_date, Date, nil?: true

#id_numberString

The ID number of identification document.

Returns:

  • (String)


10
# File 'lib/modern_treasury/models/identification_create_request.rb', line 10

required :id_number, String

#id_typeSymbol, ModernTreasury::Models::IdentificationCreateRequest::IDType

The type of ID number.



16
# File 'lib/modern_treasury/models/identification_create_request.rb', line 16

required :id_type, enum: -> { ModernTreasury::IdentificationCreateRequest::IDType }

#issuing_countryString?

The ISO 3166-1 alpha-2 country code of the country that issued the identification

Returns:

  • (String, nil)


30
# File 'lib/modern_treasury/models/identification_create_request.rb', line 30

optional :issuing_country, String, nil?: true

#issuing_regionString?

The region in which the identifcation was issued.

Returns:

  • (String, nil)


36
# File 'lib/modern_treasury/models/identification_create_request.rb', line 36

optional :issuing_region, String, nil?: true