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:



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

property :e_wallet_id, GOBL::CBC::Code

#itemFuelAccountItem (readonly)

Details of the fuel purchased.

Returns:



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

property :item, FuelAccountItem

#purchase_codeGOBL::CBC::Code (readonly)

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

Returns:



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

property :purchase_code, GOBL::CBC::Code

#purchase_date_timeGOBL::Cal::DateTime (readonly)

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

Returns:



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

property :purchase_date_time, GOBL::Cal::DateTime

#quantityGOBL::Num::Amount (readonly)

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

Returns:



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

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:



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

property :service_station_code, GOBL::CBC::Code

#taxesArray<FuelAccountTax> (readonly)

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

Returns:



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

property :taxes, [FuelAccountTax]

#totalGOBL::Num::Amount (readonly)

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

Returns:



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

property :total, GOBL::Num::Amount

#vendor_tax_codeGOBL::CBC::Code (readonly)

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

Returns:



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

property :vendor_tax_code, GOBL::CBC::Code