Class: EInvoiceAPI::Models::DocumentResponse::Charge
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- EInvoiceAPI::Models::DocumentResponse::Charge
- Defined in:
- lib/e_invoice_api/models/document_response.rb
Defined Under Namespace
Modules: TaxCode
Instance Attribute Summary collapse
-
#amount ⇒ String?
The charge amount, without VAT.
-
#base_amount ⇒ String?
The base amount that may be used, in conjunction with the charge percentage, to calculate the charge amount.
-
#multiplier_factor ⇒ String?
The percentage that may be used, in conjunction with the charge base amount, to calculate the charge amount.
-
#reason ⇒ String?
The reason for the charge.
-
#reason_code ⇒ String?
The code for the charge reason.
-
#tax_code ⇒ Symbol, ...
Duty or tax or fee category codes (Subset of UNCL5305).
-
#tax_rate ⇒ String?
The VAT rate, represented as percentage that applies to the charge.
Instance Method Summary collapse
-
#initialize(amount: nil, base_amount: nil, multiplier_factor: nil, reason: nil, reason_code: nil, tax_code: nil, tax_rate: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Charge for more details.
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(amount: nil, base_amount: nil, multiplier_factor: nil, reason: nil, reason_code: nil, tax_code: nil, tax_rate: nil) ⇒ Object
Some parameter documentations has been truncated, see EInvoiceAPI::Models::DocumentResponse::Charge for more details.
|
|
# File 'lib/e_invoice_api/models/document_response.rb', line 506
|
Instance Attribute Details
#amount ⇒ String?
The charge amount, without VAT. Must be rounded to maximum 2 decimals
464 |
# File 'lib/e_invoice_api/models/document_response.rb', line 464 optional :amount, String, nil?: true |
#base_amount ⇒ String?
The base amount that may be used, in conjunction with the charge percentage, to calculate the charge amount. Must be rounded to maximum 2 decimals
471 |
# File 'lib/e_invoice_api/models/document_response.rb', line 471 optional :base_amount, String, nil?: true |
#multiplier_factor ⇒ String?
The percentage that may be used, in conjunction with the charge base amount, to calculate the charge amount. To state 20%, use value 20
478 |
# File 'lib/e_invoice_api/models/document_response.rb', line 478 optional :multiplier_factor, String, nil?: true |
#reason ⇒ String?
The reason for the charge
484 |
# File 'lib/e_invoice_api/models/document_response.rb', line 484 optional :reason, String, nil?: true |
#reason_code ⇒ String?
The code for the charge reason
490 |
# File 'lib/e_invoice_api/models/document_response.rb', line 490 optional :reason_code, String, nil?: true |
#tax_code ⇒ Symbol, ...
Duty or tax or fee category codes (Subset of UNCL5305)
Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
498 |
# File 'lib/e_invoice_api/models/document_response.rb', line 498 optional :tax_code, enum: -> { EInvoiceAPI::DocumentResponse::Charge::TaxCode }, nil?: true |
#tax_rate ⇒ String?
The VAT rate, represented as percentage that applies to the charge
504 |
# File 'lib/e_invoice_api/models/document_response.rb', line 504 optional :tax_rate, String, nil?: true |