Class: EInvoiceAPI::Models::DocumentAttachmentCreate

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

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(file_name:, file_data: nil, file_size: nil, file_type: nil) ⇒ Object



# File 'lib/e_invoice_api/models/document_attachment_create.rb', line 27


Instance Attribute Details

#file_data ⇒ String?

Base64 encoded file data



15
# File 'lib/e_invoice_api/models/document_attachment_create.rb', line 15

optional :file_data, String, nil?: true

#file_name ⇒ String



9
# File 'lib/e_invoice_api/models/document_attachment_create.rb', line 9

required :file_name, String

#file_size ⇒ Integer?



20
# File 'lib/e_invoice_api/models/document_attachment_create.rb', line 20

optional :file_size, Integer

#file_type ⇒ String?



25
# File 'lib/e_invoice_api/models/document_attachment_create.rb', line 25

optional :file_type, String

Instance Method Details

#to_hash ⇒ {



31
# File 'sig/e_invoice_api/models/document_attachment_create.rbs', line 31

def to_hash: -> {