Skip to content

Commit e3e9378

Browse files
Merge pull request #32 from sine-fdn/enumerations
Enumerations
2 parents fdb4f36 + ab7cd63 commit e3e9378

File tree

1 file changed

+80
-11
lines changed

1 file changed

+80
-11
lines changed

specs/index.bs

+80-11
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,9 @@ Note: The properties `tocId` and `hocId` are mutually exclusive, but one of them
686686

687687
<tr>
688688
<td><dfn>packagingOrTrEqType</dfn>
689-
<td>String
689+
<td><{PackagingOrTrEqType}>
690690
<td>O
691-
<td>Category of relevant packaging or transport equipment units utilized for the transport of the consignment (e.g. box, pallet, container) by the [=Transport Operator=] or [=Transport Service Organizer=].
691+
<td>Category of relevant packaging or transport equipment units utilized for the transport of the consignment. See data type <{PackagingOrTrEqType}> for further information.
692692

693693
<tr>
694694
<td><dfn>packagingOrTrEqAmount</dfn>
@@ -1089,7 +1089,7 @@ The Data Type <{HOC}> has the following properties:
10891089
<td><dfn>packagingOrTrEqType</dfn>
10901090
<td>String
10911091
<td>O
1092-
<td>Category of relevant packaging or transport equipment units utilized for the transport of the consignment (e.g. box, pallet, container) by the [=Transport Operator=] or [=Transport Service Organizer=].
1092+
<td>Category of relevant packaging or transport equipment units utilized for the transport of the consignment. See data type <{PackagingOrTrEqType}> for further information.
10931093

10941094
<tr>
10951095
<td><dfn>packagingOrTrEqAmount</dfn>
@@ -1230,19 +1230,19 @@ both SHOULD be defined.
12301230
<td><dfn>packagingOrTrEqType</dfn>
12311231
<td>String
12321232
<td>O
1233-
<td>Category of relevant packaging or transport equipment units utilized for the transport of the consignment (e.g. box, pallet, container) by the [=Transport Operator=] or [=Transport Service Organizer=].
1233+
<td>Category of relevant packaging or transport equipment units utilized for the transport of the consignment. See data type <{PackagingOrTrEqType}> for further information.
12341234
<tr>
12351235
<td><dfn>packagingOrTrEqAmount</dfn>
12361236
<td>Number
12371237
<td>O
12381238
<td>Number of packaging or transport equipment units utilized to transport the related consignment by the [=Transport Operator=] or [=Transport Service Organizer=].
12391239
<tr>
12401240
<td><dfn>energyCarrier</dfn>
1241-
<td>String
1241+
<td><{EnergyCarrierType}>
12421242
<td>O
12431243
<td>
12441244
The substance used to generate mechanical movement or heat and to generate chemical or
1245-
physical processes as per the [[!GLEC]] Framework. For example: Diesel, HVO, petrol, CNG, LNG, LPG, HFO, MGO, Aviation fuel, Hydrogen, Methanol, Electric, etc.
1245+
physical processes as per the [[!GLEC]] Framework. See data type <{EnergyCarrierType}> for further information.
12461246

12471247
If <{TAD/energyCarrier}> is not defined, then <{TAD/feedstocks}> MUST be defined. If possible, both SHOULD be defined.
12481248
<tr>
@@ -1458,10 +1458,10 @@ The following properties are defined for data type <dfn element>EnergyCarrier</d
14581458
<tbody>
14591459
<tr>
14601460
<td><dfn>energyCarrier</dfn>
1461-
<td>String
1461+
<td><{EnergyCarrierType}>
14621462
<td>M
14631463
<td>The substance used to generate mechanical movement or heat and to generate chemical or
1464-
physical processes as per the [[!GLEC]] Framework. For example: Diesel, HVO, petrol, CNG, LNG, LPG, HFO, MGO, Aviation fuel, Hydrogen, Methanol, Electric, etc.
1464+
physical processes as per the [[!GLEC]] Framework. See data type <{EnergyCarrierType}> for further information.
14651465
<tr>
14661466
<td><dfn>feedstocks</dfn>
14671467
<td><{Feedstock}>[]
@@ -1496,7 +1496,43 @@ The following properties are defined for data type <dfn element>EnergyCarrier</d
14961496
</table>
14971497
</figure>
14981498

1499-
### Data Type <dfn>Feedstock</dfn> ### {#dt-feed-stock}
1499+
### Data Type <dfn>EnergyCarrierType</dfn> ### {#dt-energy-carrier-type}
1500+
1501+
Data type <dfn element>EnergyCarrierType</dfn> represents the substance used to generate mechanical
1502+
movement or heat and to generate chemical or physical processes as per the [[!GLEC]] Framework.
1503+
1504+
It MUST be encoded as a String using one of the following values:
1505+
1506+
Advisement: The enumeration of energy carrier types below will be evolved in future revisions.
1507+
Account for this when implementing the validation of this property.
1508+
1509+
: Diesel
1510+
:: refers to diesel
1511+
: HVO
1512+
:: refers to Hydrotreated Vegetable Oil
1513+
: Petrol
1514+
:: refers to petrol
1515+
: CNG
1516+
:: refers to Compressed Natural Gas
1517+
: LNG
1518+
:: refers to Liquefied Natural Gas
1519+
: LPG
1520+
:: refers to Liquefied Petroleum Gas
1521+
: HFO
1522+
:: refers to Heavy Fuel Oil
1523+
: MGO
1524+
:: refers to Marine Gas Oil
1525+
: Aviation fuel
1526+
:: refers to aviation fuel
1527+
: Hydrogen
1528+
:: refers to hydrogen
1529+
: Methanol
1530+
:: refers to methanol
1531+
: Electric
1532+
:: refers to electricity
1533+
1534+
1535+
### Data Type <dfn>Feedstock</dfn> ### {#dt-feedstock}
15001536

15011537
Data type `Feedstock` represents one feedstock of an [=EnergyCarrier=].
15021538

@@ -1517,8 +1553,23 @@ The following properties are defined for data type <dfn element>Feedstock</dfn>:
15171553
<td><dfn>feedstock</dfn>
15181554
<td>String
15191555
<td>M
1520-
<td>A feedstock of an [=EnergyCarrier=], e.g., fossil, natural gas, grid, renewable electricity, waste.
1521-
1556+
<td>A feedstock of an [=EnergyCarrier=].
1557+
1558+
The value MUST be one of the following:
1559+
1560+
Advisement: The enumeration of feedstocks below will be evolved in future revisions.
1561+
Account for this when implementing the validation of this property.
1562+
1563+
: Fossil
1564+
:: refers to fossil sources
1565+
: Natural gas
1566+
:: refers to natural gas
1567+
: Grid
1568+
:: refers to grid electricity
1569+
: Renewable electricity
1570+
:: refers to renewable sources of electricity
1571+
: Cooking oil
1572+
:: refers to cooking (e.g., vegetable) oil
15221573
<tr>
15231574
<td><dfn>feedstockPercentage</dfn> : [0..1]
15241575
<td>Number
@@ -1532,6 +1583,24 @@ The following properties are defined for data type <dfn element>Feedstock</dfn>:
15321583
</table>
15331584
</figure>
15341585

1586+
### Data Type <dfn>PackagingOrTrEqType</dfn> ### {#dt-packaging-or-tr-eq-type}
1587+
1588+
Data type <dfn element>PackagingOrTrEqType</dfn> represents the category of relevant packaging or transport equipment
1589+
units utilized for the transport of the consignment by the [=Transport Operator=] or [=Transport
1590+
Service Organizer=].
1591+
1592+
It MUST be encoded as a String using one of the following values:
1593+
1594+
Advisement: The enumeration of packaging or transport equipment units below will be evolved in future revisions. Account for this when
1595+
implementing the validation of this property.
1596+
1597+
: Box
1598+
:: refers to boxes
1599+
: Pallet
1600+
:: refers to pallets
1601+
: Container
1602+
:: refers to containers
1603+
15351604
# HTTP REST API # {#http-rest-api}
15361605

15371606
A [=host system=] MUST implement:

0 commit comments

Comments
 (0)