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 rate has been applied (maps to ‘Importe`).

Returns:



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

property :amount, GOBL::Num::Amount

#codeGOBL::CBC::Code (readonly)

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

Returns:



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

property :code, GOBL::CBC::Code

#rateGOBL::Num::Amount (readonly)

Rate applicable to either the line total (tasa) or the line quantity (cuota) (maps to ‘TasaOCuota`).

Returns:



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

property :rate, GOBL::Num::Amount