Class: GOBL::Regimes::Mx::FuelAccountLine

Inherits:
Object show all
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

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#e_wallet_idGOBL::CBC::Code (readonly)

Identifier of the e-wallet used to make the purchase (maps to ‘Identificador`).

Returns:



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

property :e_wallet_id, GOBL::CBC::Code

#itemFuelAccountItem (readonly)

Details of the fuel purchased.

Returns:



50
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 50

property :item, FuelAccountItem

#purchase_codeGOBL::CBC::Code (readonly)

Identifier of the purchase (maps to ‘FolioOperacion`).

Returns:



56
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 56

property :purchase_code, GOBL::CBC::Code

#purchase_date_timeGOBL::Cal::DateTime (readonly)

Date and time of the purchase (maps to ‘Fecha`).

Returns:



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

property :purchase_date_time, GOBL::Cal::DateTime

#quantityGOBL::Num::Amount (readonly)

Amount of fuel units purchased (maps to ‘Cantidad`)

Returns:



44
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 44

property :quantity, GOBL::Num::Amount

#service_station_codeGOBL::CBC::Code (readonly)

Code of the service station where the purchase was made (maps to ‘ClaveEstacion`).

Returns:



38
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 38

property :service_station_code, GOBL::CBC::Code

#taxesArray<FuelAccountTax> (readonly)

Map of taxes applied to the purchase (maps to ‘Traslados`).

Returns:



68
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 68

property :taxes, [FuelAccountTax]

#totalGOBL::Num::Amount (readonly)

Result of quantity multiplied by the unit price (maps to ‘Importe`).

Returns:



62
# File 'lib/generated/gobl/regimes/mx/fuel_account_line.rb', line 62

property :total, GOBL::Num::Amount

#vendor_tax_codeGOBL::CBC::Code (readonly)

Tax Identity Code of the fuel’s vendor (maps to ‘Rfc`)

Returns:



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

property :vendor_tax_code, GOBL::CBC::Code