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)


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

property :name, String

#priceGOBL::Num::Amount (readonly)

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

Returns:



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

property :price, GOBL::Num::Amount

#typeGOBL::CBC::Code (readonly)

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

Returns:



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

property :type, GOBL::CBC::Code

#unitGOBL::Org::Unit (readonly)

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

Returns:



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

property :unit, GOBL::Org::Unit