Class: EInvoiceAPI::Models::DocumentCreate::Item::ItemAttribute

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/e_invoice_api/models/document_create.rb,
sig/e_invoice_api/models/document_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

#initializeItemAttribute

Returns a new instance of ItemAttribute.

Parameters:

  • name: (String)
  • value: (String, nil)


1609
# File 'sig/e_invoice_api/models/document_create.rbs', line 1609

def initialize: (name: String, ?value: String?) -> void

Instance Attribute Details

#nameString

Attribute name (BT-160).

Parameters:

  • value (String)

Returns:

  • (String)


1647
# File 'lib/e_invoice_api/models/document_create.rb', line 1647

required :name, String

#valueString?

Attribute value (BT-161).

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1653
# File 'lib/e_invoice_api/models/document_create.rb', line 1653

optional :value, String, nil?: true

Instance Method Details

#to_hash{ name: String, value: String? }

Returns:

  • ({ name: String, value: String? })


1611
# File 'sig/e_invoice_api/models/document_create.rbs', line 1611

def to_hash: -> { name: String, value: String? }