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

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

Defined Under Namespace

Modules: Amount, Quantity, Tax, UnitPrice Classes: Allowance, Charge

Instance Attribute Summary collapse

Class Method Summary collapse

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::DocumentCreate::Item::Allowance>?

The allowances of the line item.



672
673
674
# File 'lib/e_invoice_api/models/document_create.rb', line 672

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

#amountFloat, ...

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:

  • (Float, String, nil)


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

optional :amount, union: -> { EInvoiceAPI::DocumentCreate::Item::Amount }, nil?: true

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

The charges of the line item.



688
689
690
# File 'lib/e_invoice_api/models/document_create.rb', line 688

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

#datenil

Returns:

  • (nil)


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

optional :date, NilClass

#descriptionString?

The description of the line item.

Returns:

  • (String, nil)


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

optional :description, String, nil?: true

#product_codeString?

The product code of the line item.

Returns:

  • (String, nil)


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

optional :product_code, String, nil?: true

#quantityFloat, ...

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

Returns:

  • (Float, String, nil)


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

optional :quantity, union: -> { EInvoiceAPI::DocumentCreate::Item::Quantity }, nil?: true

#taxFloat, ...

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

Returns:

  • (Float, String, nil)


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

optional :tax, union: -> { EInvoiceAPI::DocumentCreate::Item::Tax }, nil?: true

#tax_rateString?

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

Returns:

  • (String, nil)


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

optional :tax_rate, String, nil?: true

#unitSymbol, ...

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

Returns:



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

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

#unit_priceFloat, ...

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

Returns:

  • (Float, String, nil)


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

optional :unit_price, union: -> { EInvoiceAPI::DocumentCreate::Item::UnitPrice }, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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

.variantsArray(Float, String)

Returns:

  • (Array(Float, String))


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