Class: GOBL::Regimes::Mx::FuelAccountBalance

Inherits:
Object
  • Object
show all
Defined in:
lib/generated/gobl/regimes/mx/fuel_account_balance.rb

Overview

FuelAccountBalance carries the data to produce a CFDI’s “Complemento de Estado de Cuenta de Combustibles para Monederos Electrónicos” (version 1.2 revision B) providing detailed information about fuel purchases made with electronic wallets.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL FuelAccountBalance structure

'https://gobl.org/draft-0/regimes/mx/fuel-account-balance'

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

#account_numberString (readonly)

Customer’s account number (maps to ‘NumeroDeCuenta`).

Returns:

  • (String)


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

property :account_number, String

#linesArray<FuelAccountLine> (readonly)

List of fuel purchases made with the customer’s e-wallets (maps to ‘Conceptos`).

Returns:



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

property :lines, [FuelAccountLine]

#subtotalGOBL::Num::Amount (readonly)

Sum of all line totals (i.e. taxes not included) (calculated, maps to ‘SubTotal`).

Returns:



25
# File 'lib/generated/gobl/regimes/mx/fuel_account_balance.rb', line 25

property :subtotal, GOBL::Num::Amount

#totalGOBL::Num::Amount (readonly)

Grand total after taxes have been applied (calculated, maps to ‘Total`).

Returns:



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

property :total, GOBL::Num::Amount