Class: GOBL::Regimes::Mx::FuelAccountTax
- Defined in:
- lib/generated/gobl/regimes/mx/fuel_account_tax.rb
Overview
FuelAccountTax represents a single tax applied to a fuel purchase.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL FuelAccountTax structure
'https://gobl.org/draft-0/regimes/mx/fuel-account-balance#/$defs/FuelAccountTax'
Instance Attribute Summary collapse
-
#amount ⇒ GOBL::Num::Amount
readonly
Total amount of the tax once the percent or rate has been applied (maps to ‘Importe`).
-
#cat ⇒ GOBL::CBC::Code
readonly
Category that identifies the tax (“VAT” or “IEPS”, maps to ‘Impuesto`).
-
#percent ⇒ GOBL::Num::Percentage
readonly
Percent applicable to the line total (tasa) to use instead of Rate (maps to ‘TasaoCuota`).
-
#rate ⇒ GOBL::Num::Amount
readonly
Rate is a fixed fee to apply to the line quantity (cuota) (maps to ‘TasaOCuota`).
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#amount ⇒ GOBL::Num::Amount (readonly)
Total amount of the tax once the percent or rate has been applied (maps to ‘Importe`).
35 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_tax.rb', line 35 property :amount, GOBL::Num::Amount |
#cat ⇒ GOBL::CBC::Code (readonly)
Category that identifies the tax (“VAT” or “IEPS”, maps to ‘Impuesto`)
19 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_tax.rb', line 19 property :cat, GOBL::CBC::Code |
#percent ⇒ GOBL::Num::Percentage (readonly)
Percent applicable to the line total (tasa) to use instead of Rate (maps to ‘TasaoCuota`)
25 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_tax.rb', line 25 property :percent, GOBL::Num::Percentage |
#rate ⇒ GOBL::Num::Amount (readonly)
Rate is a fixed fee to apply to the line quantity (cuota) (maps to ‘TasaOCuota`)
30 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_tax.rb', line 30 property :rate, GOBL::Num::Amount |