Class: EInvoiceAPI::Models::DocumentResponse::Item

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from EInvoiceAPI::Internal::Type::BaseModel

Instance Attribute Details

#allowancesArray<EInvoiceAPI::Models::Allowance>?

The allowances of the line item.

Returns:



553
# File 'lib/e_invoice_api/models/document_response.rb', line 553

optional :allowances, -> { EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::Allowance] }, nil?: true

#amountString?

The total amount of the line item, exclusive of VAT, after subtracting line level allowances and adding line level charges. Must be rounded to maximum 2 decimals

Returns:

  • (String, nil)


561
# File 'lib/e_invoice_api/models/document_response.rb', line 561

optional :amount, String, nil?: true

#chargesArray<EInvoiceAPI::Models::Charge>?

The charges of the line item.

Returns:



567
# File 'lib/e_invoice_api/models/document_response.rb', line 567

optional :charges, -> { EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::Charge] }, nil?: true

#datenil

Returns:

  • (nil)


572
# File 'lib/e_invoice_api/models/document_response.rb', line 572

optional :date, NilClass

#descriptionString?

The description of the line item.

Returns:

  • (String, nil)


578
# File 'lib/e_invoice_api/models/document_response.rb', line 578

optional :description, String, nil?: true

#product_codeString?

The product code of the line item.

Returns:

  • (String, nil)


584
# File 'lib/e_invoice_api/models/document_response.rb', line 584

optional :product_code, String, nil?: true

#quantityString?

The quantity of items (goods or services) that is the subject of the line item. Must be rounded to maximum 4 decimals

Returns:

  • (String, nil)


591
# File 'lib/e_invoice_api/models/document_response.rb', line 591

optional :quantity, String, nil?: true

#taxString?

The total VAT amount for the line item. Must be rounded to maximum 2 decimals

Returns:

  • (String, nil)


597
# File 'lib/e_invoice_api/models/document_response.rb', line 597

optional :tax, String, nil?: true

#tax_rateString?

The VAT rate of the line item expressed as percentage with 2 decimals

Returns:

  • (String, nil)


603
# File 'lib/e_invoice_api/models/document_response.rb', line 603

optional :tax_rate, String, nil?: true

#unitSymbol, ...

Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.

Returns:



609
# File 'lib/e_invoice_api/models/document_response.rb', line 609

optional :unit, enum: -> { EInvoiceAPI::UnitOfMeasureCode }, nil?: true

#unit_priceString?

The unit price of the line item. Must be rounded to maximum 2 decimals

Returns:

  • (String, nil)


615
# File 'lib/e_invoice_api/models/document_response.rb', line 615

optional :unit_price, String, nil?: true