Class: GOBL::Regimes::Mx::FuelAccountTax

Inherits:
Object show all
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

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#amountGOBL::Num::Amount (readonly)

Total amount of the tax once the percent or rate has been applied (maps to ‘Importe`).

Returns:



35
# File 'lib/generated/gobl/regimes/mx/fuel_account_tax.rb', line 35

property :amount, GOBL::Num::Amount

#catGOBL::CBC::Code (readonly)

Category that identifies the tax (“VAT” or “IEPS”, maps to ‘Impuesto`)

Returns:



19
# File 'lib/generated/gobl/regimes/mx/fuel_account_tax.rb', line 19

property :cat, GOBL::CBC::Code

#percentGOBL::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

#rateGOBL::Num::Amount (readonly)

Rate is a fixed fee to apply to the line quantity (cuota) (maps to ‘TasaOCuota`)

Returns:



30
# File 'lib/generated/gobl/regimes/mx/fuel_account_tax.rb', line 30

property :rate, GOBL::Num::Amount