Class: GOBL::Regimes::Mx::FuelAccountBalance
- 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
-
#account_number ⇒ String
readonly
Customer’s account number (maps to ‘NumeroDeCuenta`).
-
#lines ⇒ Array<FuelAccountLine>
readonly
List of fuel purchases made with the customer’s e-wallets (maps to ‘Conceptos`).
-
#subtotal ⇒ GOBL::Num::Amount
readonly
Sum of all line totals (i.e. taxes not included) (calculated, maps to ‘SubTotal`).
-
#total ⇒ GOBL::Num::Amount
readonly
Grand total after taxes have been applied (calculated, maps to ‘Total`).
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#account_number ⇒ String (readonly)
Customer’s account number (maps to ‘NumeroDeCuenta`).
19 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_balance.rb', line 19 property :account_number, String |
#lines ⇒ Array<FuelAccountLine> (readonly)
List of fuel purchases made with the customer’s e-wallets (maps to ‘Conceptos`).
35 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_balance.rb', line 35 property :lines, [FuelAccountLine] |
#subtotal ⇒ GOBL::Num::Amount (readonly)
Sum of all line totals (i.e. taxes not included) (calculated, maps to ‘SubTotal`).
25 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_balance.rb', line 25 property :subtotal, GOBL::Num::Amount |
#total ⇒ GOBL::Num::Amount (readonly)
Grand total after taxes have been applied (calculated, maps to ‘Total`).
30 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_balance.rb', line 30 property :total, GOBL::Num::Amount |