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:



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

property :e_wallet_id, GOBL::CBC::Code

#iInteger (readonly)

Index of the line starting from 1 (calculated)

Returns:

  • (Integer)


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

property :i, Integer

#itemFuelAccountItem (readonly)

Details of the fuel purchased.

Returns:



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

property :item, FuelAccountItem

#purchase_codeGOBL::CBC::Code (readonly)

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

Returns:



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

property :purchase_code, GOBL::CBC::Code

#purchase_date_timeGOBL::Cal::DateTime (readonly)

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

Returns:



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

property :purchase_date_time, GOBL::Cal::DateTime

#quantityGOBL::Num::Amount (readonly)

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

Returns:



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

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:



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

property :service_station_code, GOBL::CBC::Code

#taxesArray<FuelAccountTax> (readonly)

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

Returns:



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

property :taxes, [FuelAccountTax]

#totalGOBL::Num::Amount (readonly)

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

Returns:



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

property :total, GOBL::Num::Amount

#vendor_tax_codeGOBL::CBC::Code (readonly)

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

Returns:



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

property :vendor_tax_code, GOBL::CBC::Code