Class: EInvoiceAPI::Models::DocumentResponse::Allowance
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- EInvoiceAPI::Models::DocumentResponse::Allowance
- Defined in:
- lib/e_invoice_api/models/document_response.rb
Defined Under Namespace
Modules: 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 ⇒ String?
The code for the allowance 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 allowance.
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::DocumentResponse::Allowance for more details.
370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/e_invoice_api/models/document_response.rb', line 370 class Allowance < EInvoiceAPI::Internal::Type::BaseModel # @!attribute amount # The allowance amount, without VAT. Must be rounded to maximum 2 decimals # # @return [String, nil] optional :amount, String, nil?: true # @!attribute base_amount # 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 # # @return [String, nil] optional :base_amount, String, nil?: true # @!attribute multiplier_factor # The percentage that may be used, in conjunction with the allowance base amount, # to calculate the allowance amount. To state 20%, use value 20 # # @return [String, nil] optional :multiplier_factor, String, nil?: true # @!attribute reason # The reason for the allowance # # @return [String, nil] optional :reason, String, nil?: true # @!attribute reason_code # The code for the allowance reason # # @return [String, nil] optional :reason_code, String, nil?: true # @!attribute tax_code # Duty or tax or fee category codes (Subset of UNCL5305) # # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL # # @return [Symbol, EInvoiceAPI::Models::DocumentResponse::Allowance::TaxCode, nil] optional :tax_code, enum: -> { EInvoiceAPI::DocumentResponse::Allowance::TaxCode }, nil?: true # @!attribute tax_rate # The VAT rate, represented as percentage that applies to the allowance # # @return [String, nil] optional :tax_rate, String, nil?: true # @!method initialize(amount: nil, base_amount: nil, multiplier_factor: nil, reason: nil, reason_code: nil, tax_code: nil, tax_rate: nil) # Some parameter documentations has been truncated, see # {EInvoiceAPI::Models::DocumentResponse::Allowance} for more details. # # @param amount [String, nil] The allowance amount, without VAT. Must be rounded to maximum 2 decimals # # @param base_amount [String, nil] The base amount that may be used, in conjunction with the allowance percentage, # # @param multiplier_factor [String, nil] The percentage that may be used, in conjunction with the allowance base amount, # # @param reason [String, nil] The reason for the allowance # # @param reason_code [String, nil] The code for the allowance reason # # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentResponse::Allowance::TaxCode, nil] Duty or tax or fee category codes (Subset of UNCL5305) # # @param tax_rate [String, nil] The VAT rate, represented as percentage that applies to the allowance # Duty or tax or fee category codes (Subset of UNCL5305) # # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL # # @see EInvoiceAPI::Models::DocumentResponse::Allowance#tax_code module TaxCode extend EInvoiceAPI::Internal::Type::Enum AE = :AE E = :E S = :S Z = :Z G = :G O = :O K = :K L = :L M = :M B = :B # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#amount ⇒ String?
The allowance amount, without VAT. Must be rounded to maximum 2 decimals
375 |
# File 'lib/e_invoice_api/models/document_response.rb', line 375 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
382 |
# File 'lib/e_invoice_api/models/document_response.rb', line 382 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
389 |
# File 'lib/e_invoice_api/models/document_response.rb', line 389 optional :multiplier_factor, String, nil?: true |
#reason ⇒ String?
The reason for the allowance
395 |
# File 'lib/e_invoice_api/models/document_response.rb', line 395 optional :reason, String, nil?: true |
#reason_code ⇒ String?
The code for the allowance reason
401 |
# File 'lib/e_invoice_api/models/document_response.rb', line 401 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
409 |
# File 'lib/e_invoice_api/models/document_response.rb', line 409 optional :tax_code, enum: -> { EInvoiceAPI::DocumentResponse::Allowance::TaxCode }, nil?: true |
#tax_rate ⇒ String?
The VAT rate, represented as percentage that applies to the allowance
415 |
# File 'lib/e_invoice_api/models/document_response.rb', line 415 optional :tax_rate, String, nil?: true |