Class: ModernTreasury::Models::ChildLegalEntityCreate::Document

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/child_legal_entity_create.rb,
sig/modern_treasury/models/child_legal_entity_create.rbs

Defined Under Namespace

Modules: DocumentType

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(document_type:, file_data:, filename: nil) ⇒ Object

Parameters:



# File 'lib/modern_treasury/models/child_legal_entity_create.rb', line 414

Instance Attribute Details

#document_type ⇒ Symbol, ModernTreasury::Models::ChildLegalEntityCreate::Document::DocumentType

A category given to the document, can be null.

Parameters:

  • value (ModernTreasury::Models::ChildLegalEntityCreate::Document::document_type)

Returns:



400
# File 'lib/modern_treasury/models/child_legal_entity_create.rb', line 400

required :document_type, enum: -> { ModernTreasury::ChildLegalEntityCreate::Document::DocumentType }

#file_data ⇒ String

Base64-encoded file content for the document.

Parameters:

  • value (String)

Returns:

  • (String)


406
# File 'lib/modern_treasury/models/child_legal_entity_create.rb', line 406

required :file_data, String

#filename ⇒ String?

The original filename of the document.

Parameters:

  • (String)

Returns:

  • (String, nil)


412
# File 'lib/modern_treasury/models/child_legal_entity_create.rb', line 412

optional :filename, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


299
# File 'sig/modern_treasury/models/child_legal_entity_create.rbs', line 299

def to_hash: -> {