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`).
-
#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`).
19 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 19 property :e_wallet_id, GOBL::CBC::Code |
#item ⇒ FuelAccountItem (readonly)
Details of the fuel purchased.
49 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 49 property :item, FuelAccountItem |
#purchase_code ⇒ GOBL::CBC::Code (readonly)
Identifier of the purchase (maps to ‘FolioOperacion`).
55 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 55 property :purchase_code, GOBL::CBC::Code |
#purchase_date_time ⇒ GOBL::Cal::DateTime (readonly)
Date and time of the purchase (maps to ‘Fecha`).
25 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 25 property :purchase_date_time, GOBL::Cal::DateTime |
#quantity ⇒ GOBL::Num::Amount (readonly)
Amount of fuel units purchased (maps to ‘Cantidad`)
43 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 43 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`).
37 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 37 property :service_station_code, GOBL::CBC::Code |
#taxes ⇒ Array<FuelAccountTax> (readonly)
Map of taxes applied to the purchase (maps to ‘Traslados`).
66 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 66 property :taxes, [FuelAccountTax] |
#total ⇒ GOBL::Num::Amount (readonly)
Result of quantity multiplied by the unit price (maps to ‘Importe`).
61 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 61 property :total, GOBL::Num::Amount |
#vendor_tax_code ⇒ GOBL::CBC::Code (readonly)
Tax Identity Code of the fuel’s vendor (maps to ‘Rfc`)
31 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 31 property :vendor_tax_code, GOBL::CBC::Code |