Class: GOBL::Regimes::Mx::FuelAccountItem
- 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
-
#name ⇒ String
readonly
Name of the fuel (maps to ‘NombreCombustible`).
-
#price ⇒ GOBL::Num::Amount
readonly
Base price of a single unit of the fuel without taxes (maps to ‘ValorUnitario`).
-
#type ⇒ GOBL::CBC::Code
readonly
Type of fuel (one of ‘c_ClaveTipoCombustible` codes, maps to `TipoCombustible`).
-
#unit ⇒ GOBL::Org::Unit
readonly
Reference unit of measure used in the price and the quantity (maps to ‘Unidad`).
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#name ⇒ String (readonly)
Name of the fuel (maps to ‘NombreCombustible`).
30 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_item.rb', line 30 property :name, String |
#price ⇒ GOBL::Num::Amount (readonly)
Base price of a single unit of the fuel without taxes (maps to ‘ValorUnitario`).
36 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_item.rb', line 36 property :price, GOBL::Num::Amount |
#type ⇒ GOBL::CBC::Code (readonly)
Type of fuel (one of ‘c_ClaveTipoCombustible` codes, maps to `TipoCombustible`).
19 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_item.rb', line 19 property :type, GOBL::CBC::Code |
#unit ⇒ GOBL::Org::Unit (readonly)
Reference unit of measure used in the price and the quantity (maps to ‘Unidad`).
25 |
# File 'lib/generated/gobl/regimes/mx/fuel_account_item.rb', line 25 property :unit, GOBL::Org::Unit |