Class: GOBL::Regimes::Mx::FuelAccountLine
- Defined in:
- lib/generated/gobl/regimes/mx/fuel_account_line.rb
Overview
FuelAccountLine represents a single fuel purchase made with an e-wallet issued by the invoice’s supplier.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL FuelAccountLine structure
'https://gobl.org/draft-0/regimes/mx/fuel-account-balance#/$defs/FuelAccountLine'
Instance Attribute Summary collapse
-
#e_wallet_id ⇒ GOBL::CBC::Code
readonly
Identifier of the e-wallet used to make the purchase (maps to ‘Identificador`).
-
#i ⇒ Integer
readonly
Index of the line starting from 1 (calculated).
-
#item ⇒ FuelAccountItem
readonly
Details of the fuel purchased.
-
#purchase_code ⇒ GOBL::CBC::Code
readonly
Identifier of the purchase (maps to ‘FolioOperacion`).
-
#purchase_date_time ⇒ GOBL::Cal::DateTime
readonly
Date and time of the purchase (maps to ‘Fecha`).
-
#quantity ⇒ GOBL::Num::Amount
readonly
Amount of fuel units purchased (maps to ‘Cantidad`).
-
#service_station_code ⇒ GOBL::CBC::Code
readonly
Code of the service station where the purchase was made (maps to ‘ClaveEstacion`).
-
#taxes ⇒ Array<FuelAccountTax>
readonly
Map of taxes applied to the purchase (maps to ‘Traslados`).
-
#total ⇒ GOBL::Num::Amount
readonly
Result of quantity multiplied by the unit price (maps to ‘Importe`).
-
#vendor_tax_code ⇒ GOBL::CBC::Code
readonly
Tax Identity Code of the fuel’s vendor (maps to ‘Rfc`).
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#e_wallet_id ⇒ GOBL::CBC::Code (readonly)
Identifier of the e-wallet used to make the purchase (maps to ‘Identificador`).
24 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 24 property :e_wallet_id, GOBL::CBC::Code |
#i ⇒ Integer (readonly)
Index of the line starting from 1 (calculated)
19 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 19 property :i, Integer |
#item ⇒ FuelAccountItem (readonly)
Details of the fuel purchased.
54 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 54 property :item, FuelAccountItem |
#purchase_code ⇒ GOBL::CBC::Code (readonly)
Identifier of the purchase (maps to ‘FolioOperacion`).
60 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 60 property :purchase_code, GOBL::CBC::Code |
#purchase_date_time ⇒ GOBL::Cal::DateTime (readonly)
Date and time of the purchase (maps to ‘Fecha`).
30 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 30 property :purchase_date_time, GOBL::Cal::DateTime |
#quantity ⇒ GOBL::Num::Amount (readonly)
Amount of fuel units purchased (maps to ‘Cantidad`)
48 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 48 property :quantity, GOBL::Num::Amount |
#service_station_code ⇒ GOBL::CBC::Code (readonly)
Code of the service station where the purchase was made (maps to ‘ClaveEstacion`).
42 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 42 property :service_station_code, GOBL::CBC::Code |
#taxes ⇒ Array<FuelAccountTax> (readonly)
Map of taxes applied to the purchase (maps to ‘Traslados`).
71 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 71 property :taxes, [FuelAccountTax] |
#total ⇒ GOBL::Num::Amount (readonly)
Result of quantity multiplied by the unit price (maps to ‘Importe`).
66 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 66 property :total, GOBL::Num::Amount |
#vendor_tax_code ⇒ GOBL::CBC::Code (readonly)
Tax Identity Code of the fuel’s vendor (maps to ‘Rfc`)
36 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 36 property :vendor_tax_code, GOBL::CBC::Code |