Class: GOBL::Regimes::Mx::FuelAccountItem

Inherits:
Object show all
Defined in:
lib/generated/gobl/regimes/mx/fuel_account_item.rb

Overview

FuelAccountItem provides the details of a fuel purchase.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL FuelAccountItem structure

'https://gobl.org/draft-0/regimes/mx/fuel-account-balance#/$defs/FuelAccountItem'

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

#nameString (readonly)

Name of the fuel (maps to ‘NombreCombustible`).

Returns:

  • (String)


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

property :name, String

#priceGOBL::Num::Amount (readonly)

Base price of a single unit of the fuel without taxes (maps to ‘ValorUnitario`).

Returns:



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

property :price, GOBL::Num::Amount

#typeGOBL::CBC::Code (readonly)

Type of fuel (one of ‘c_ClaveTipoCombustible` codes, maps to `TipoCombustible`).

Returns:



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

property :type, GOBL::CBC::Code

#unitGOBL::Org::Unit (readonly)

Reference unit of measure used in the price and the quantity (maps to ‘Unidad`).

Returns:



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

property :unit, GOBL::Org::Unit