Class: EInvoiceAPI::Models::Allowance
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- EInvoiceAPI::Models::Allowance
- Defined in:
- lib/e_invoice_api/models/allowance.rb
Defined Under Namespace
Modules: ReasonCode, TaxCode
Instance Attribute Summary collapse
-
#amount ⇒ String?
The allowance amount, without VAT.
-
#base_amount ⇒ String?
The base amount that may be used, in conjunction with the allowance percentage, to calculate the allowance amount.
-
#multiplier_factor ⇒ String?
The percentage that may be used, in conjunction with the allowance base amount, to calculate the allowance amount.
-
#reason ⇒ String?
The reason for the allowance.
-
#reason_code ⇒ Symbol, ...
Allowance reason codes for invoice discounts and charges.
-
#tax_code ⇒ Symbol, ...
The VAT category code that applies to the allowance.
-
#tax_rate ⇒ String?
The VAT rate, represented as percentage that applies to the allowance.
Class Method Summary collapse
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 Allowance 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::Allowance for more details.
An allowance is a discount for example for early payment, volume discount, etc.
|
|
# File 'lib/e_invoice_api/models/allowance.rb', line 52
|
Instance Attribute Details
#amount ⇒ String?
The allowance amount, without VAT. Must be rounded to maximum 2 decimals
10 |
# File 'lib/e_invoice_api/models/allowance.rb', line 10 optional :amount, String, nil?: true |
#base_amount ⇒ String?
The base amount that may be used, in conjunction with the allowance percentage, to calculate the allowance amount. Must be rounded to maximum 2 decimals
17 |
# File 'lib/e_invoice_api/models/allowance.rb', line 17 optional :base_amount, String, nil?: true |
#multiplier_factor ⇒ String?
The percentage that may be used, in conjunction with the allowance base amount, to calculate the allowance amount. To state 20%, use value 20. Must be rounded to maximum 2 decimals
25 |
# File 'lib/e_invoice_api/models/allowance.rb', line 25 optional :multiplier_factor, String, nil?: true |
#reason ⇒ String?
The reason for the allowance
31 |
# File 'lib/e_invoice_api/models/allowance.rb', line 31 optional :reason, String, nil?: true |
#reason_code ⇒ Symbol, ...
Allowance reason codes for invoice discounts and charges
37 |
# File 'lib/e_invoice_api/models/allowance.rb', line 37 optional :reason_code, enum: -> { EInvoiceAPI::Allowance::ReasonCode }, nil?: true |
#tax_code ⇒ Symbol, ...
The VAT category code that applies to the allowance
43 |
# File 'lib/e_invoice_api/models/allowance.rb', line 43 optional :tax_code, enum: -> { EInvoiceAPI::Allowance::TaxCode } |
#tax_rate ⇒ String?
The VAT rate, represented as percentage that applies to the allowance. Must be rounded to maximum 2 decimals
50 |
# File 'lib/e_invoice_api/models/allowance.rb', line 50 optional :tax_rate, String, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/e_invoice_api/models/allowance.rb', line 98
|