Class: EInvoiceAPI::Models::DocumentResponse::Item
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- EInvoiceAPI::Models::DocumentResponse::Item
- Defined in:
- lib/e_invoice_api/models/document_response.rb
Instance Attribute Summary collapse
-
#allowances ⇒ Array<EInvoiceAPI::Models::Allowance>?
The allowances of the line item.
-
#amount ⇒ String?
The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level allowances and charges.
-
#charges ⇒ Array<EInvoiceAPI::Models::Charge>?
The charges of the line item.
- #date ⇒ nil
-
#description ⇒ String?
The description of the line item.
-
#product_code ⇒ String?
The product code of the line item.
-
#quantity ⇒ String?
The quantity of items (goods or services) that is the subject of the line item.
-
#tax ⇒ String?
The total VAT amount for the line item.
-
#tax_rate ⇒ String?
The VAT rate of the line item expressed as percentage with 2 decimals.
-
#unit ⇒ Symbol, ...
Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
-
#unit_price ⇒ String?
The item net price (BT-146).
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
#allowances ⇒ Array<EInvoiceAPI::Models::Allowance>?
The allowances of the line item.
813 |
# File 'lib/e_invoice_api/models/document_response.rb', line 813 optional :allowances, -> { EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::Allowance] }, nil?: true |
#amount ⇒ String?
The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level allowances and charges. Calculated as: ((unit_price / price_base_quantity) * quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be negative for credit notes or corrections.
822 |
# File 'lib/e_invoice_api/models/document_response.rb', line 822 optional :amount, String, nil?: true |
#charges ⇒ Array<EInvoiceAPI::Models::Charge>?
The charges of the line item.
828 |
# File 'lib/e_invoice_api/models/document_response.rb', line 828 optional :charges, -> { EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::Charge] }, nil?: true |
#date ⇒ nil
833 |
# File 'lib/e_invoice_api/models/document_response.rb', line 833 optional :date, NilClass |
#description ⇒ String?
The description of the line item.
839 |
# File 'lib/e_invoice_api/models/document_response.rb', line 839 optional :description, String, nil?: true |
#product_code ⇒ String?
The product code of the line item.
845 |
# File 'lib/e_invoice_api/models/document_response.rb', line 845 optional :product_code, String, nil?: true |
#quantity ⇒ String?
The quantity of items (goods or services) that is the subject of the line item. Must be rounded to maximum 4 decimals. Can be negative for credit notes or corrections.
853 |
# File 'lib/e_invoice_api/models/document_response.rb', line 853 optional :quantity, String, nil?: true |
#tax ⇒ String?
The total VAT amount for the line item. Must be rounded to maximum 2 decimals. Can be negative for credit notes or corrections.
860 |
# File 'lib/e_invoice_api/models/document_response.rb', line 860 optional :tax, String, nil?: true |
#tax_rate ⇒ String?
The VAT rate of the line item expressed as percentage with 2 decimals
866 |
# File 'lib/e_invoice_api/models/document_response.rb', line 866 optional :tax_rate, String, nil?: true |
#unit ⇒ Symbol, ...
Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
872 |
# File 'lib/e_invoice_api/models/document_response.rb', line 872 optional :unit, enum: -> { EInvoiceAPI::UnitOfMeasureCode }, nil?: true |
#unit_price ⇒ String?
The item net price (BT-146). The price of an item, exclusive of VAT, after subtracting item price discount. Must be rounded to maximum 4 decimals
879 |
# File 'lib/e_invoice_api/models/document_response.rb', line 879 optional :unit_price, String, nil?: true |