Class: EInvoiceAPI::Models::DocumentAttachmentCreate

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

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

Parameters:

  • file_name (String) (defaults to: )
  • file_data (String, nil) (defaults to: nil)

    Base64 encoded file data

  • file_size (Integer) (defaults to: nil)
  • file_type (String) (defaults to: nil)


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

Instance Attribute Details

#file_dataString?

Base64 encoded file data

Returns:

  • (String, nil)


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

optional :file_data, String, nil?: true

#file_nameString

Returns:

  • (String)


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

required :file_name, String

#file_sizeInteger?

Returns:

  • (Integer, nil)


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

optional :file_size, Integer

#file_typeString?

Returns:

  • (String, nil)


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

optional :file_type, String