Skip to content

Commit

Permalink
Merge pull request #120 from OpenPEPPOL/2024-q4-release-fix
Browse files Browse the repository at this point in the history
fix AdditionalItemproperty/ID attributes implementation
  • Loading branch information
jerouris authored Feb 6, 2025
2 parents beb242e + 9383e0c commit 4269574
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 95 deletions.
18 changes: 9 additions & 9 deletions structure/syntax/ubl-catalogue.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1695,24 +1695,24 @@
<Name>ID</Name>
<Description>ID of the property if assigned by an Agency</Description>
<Value type="EXAMPLE">77e416eb-a363-4258-a04e-171d843a6460</Value>
<Element cardinality="O">
<Term>@schemeDataURI</Term>
<Attribute usage="Optional">
<Term>schemeDataURI</Term>
<Name>Scheme Data URI</Name>
<Description>Scheme Data URI</Description>
<Value type="EXAMPLE">sdfdf</Value>
</Element>
<Element cardinality="O">
<Term>@schemeID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeID</Term>
<Name>Scheme identifier</Name>
<Description>Scheme identifier</Description>
<Value type="EXAMPLE">ISO22057</Value>
</Element>
<Element cardinality="O">
<Term>@schemeVersionID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeVersionID</Term>
<Name>Scheme version identifier</Name>
<Description>Scheme version identifier</Description>
<Value type="EXAMPLE">2022</Value>
</Element>
</Attribute>
</Element>
<Element>
<Term>cbc:Name</Term>
Expand Down
18 changes: 9 additions & 9 deletions structure/syntax/ubl-despatch-advice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1476,24 +1476,24 @@
<Name>ID</Name>
<Description>ID of the property if assigned by an Agency</Description>
<Value type="EXAMPLE">77e416eb-a363-4258-a04e-171d843a6460</Value>
<Element cardinality="O">
<Term>@schemeDataURI</Term>
<Attribute usage="Optional">
<Term>schemeDataURI</Term>
<Name>Scheme Data URI</Name>
<Description>Scheme Data URI</Description>
<Value type="EXAMPLE">sdfdf</Value>
</Element>
<Element cardinality="O">
<Term>@schemeID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeID</Term>
<Name>Scheme identifier</Name>
<Description>Scheme identifier</Description>
<Value type="EXAMPLE">ISO22057</Value>
</Element>
<Element cardinality="O">
<Term>@schemeVersionID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeVersionID</Term>
<Name>Scheme version identifier</Name>
<Description>Scheme version identifier</Description>
<Value type="EXAMPLE">2022</Value>
</Element>
</Attribute>
</Element>
<Element>
<Term>cbc:Name</Term>
Expand Down
18 changes: 9 additions & 9 deletions structure/syntax/ubl-order-change.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2226,24 +2226,24 @@
<Name>ID</Name>
<Description>ID of the property if assigned by an Agency</Description>
<Value type="EXAMPLE">77e416eb-a363-4258-a04e-171d843a6460</Value>
<Element cardinality="O">
<Term>@schemeDataURI</Term>
<Attribute usage="Optional">
<Term>schemeDataURI</Term>
<Name>Scheme Data URI</Name>
<Description>Scheme Data URI</Description>
<Value type="EXAMPLE">sdfdf</Value>
</Element>
<Element cardinality="O">
<Term>@schemeID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeID</Term>
<Name>Scheme identifier</Name>
<Description>Scheme identifier</Description>
<Value type="EXAMPLE">ISO22057</Value>
</Element>
<Element cardinality="O">
<Term>@schemeVersionID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeVersionID</Term>
<Name>Scheme version identifier</Name>
<Description>Scheme version identifier</Description>
<Value type="EXAMPLE">2022</Value>
</Element>
</Attribute>
</Element>
<Element>
<Term>cbc:Name</Term>
Expand Down
70 changes: 35 additions & 35 deletions structure/syntax/ubl-order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<Name>Attached document</Name>
<Description>The attached document embeded as binary object, coded as Base64.
The binary object has two supplementary components: a Mime Code, which specifies the Mime type of the attachment and a Filename
that is provided by (or on behalf of) the sender of the document</Description>
that is provided by (or on behalf of) the sender of the document</Description>
<DataType>Binary object</DataType>
<Reference type="BUSINESS_TERM">tir01-017</Reference>
<Attribute>
Expand Down Expand Up @@ -252,18 +252,18 @@
</Element>

<Element cardinality="0..1">
<Term>cac:ProjectReference</Term>
<Name>PROJECT REFERENCE</Name>
<Term>cac:ProjectReference</Term>
<Name>PROJECT REFERENCE</Name>

<Element>
<Term>cbc:ID</Term>
<Name>Project reference</Name>
<Description>The identification of the project the order refers to.</Description>
<DataType>Document Reference</DataType>
<Reference type="BUSINESS_TERM"> tir01-p044</Reference>
<Value type="EXAMPLE">PID33</Value>
</Element>
</Element>
<Element>
<Term>cbc:ID</Term>
<Name>Project reference</Name>
<Description>The identification of the project the order refers to.</Description>
<DataType>Document Reference</DataType>
<Reference type="BUSINESS_TERM"> tir01-p044</Reference>
<Value type="EXAMPLE">PID33</Value>
</Element>
</Element>

<Element>
<Term>cac:BuyerCustomerParty</Term>
Expand Down Expand Up @@ -1245,41 +1245,41 @@
<Term>cbc:StreetName</Term>
<Name>Address line 1</Name>
<Description>The main address line in a postal address usually the street
name and number.</Description>
name and number.</Description>
<DataType>Text</DataType>
<Reference type="BUSINESS_TERM">tir01-p029</Reference>
</Element>
<Element cardinality="0..1">
<Term>cbc:AdditionalStreetName</Term>
<Name>Address line 2</Name>
<Description>An additional address line in a postal address that can be used
to give further details supplementing the main line. Common use are
secondary house number in a complex or in a building.</Description>
to give further details supplementing the main line. Common use are
secondary house number in a complex or in a building.</Description>
<DataType>Text</DataType>
<Reference type="BUSINESS_TERM">tir01-p030</Reference>
</Element>
<Element cardinality="0..1">
<Term>cbc:CityName</Term>
<Name>City</Name>
<Description>The common name of the city where the postal address is. The
name is written in full rather than as a code.</Description>
name is written in full rather than as a code.</Description>
<DataType>Text</DataType>
<Reference type="BUSINESS_TERM">tir01-p031</Reference>
</Element>
<Element cardinality="0..1">
<Term>cbc:PostalZone</Term>
<Name>Post code</Name>
<Description>The identifier for an addressable group of properties according
to the relevant national postal service, such as a ZIP code or Post
Code.</Description>
to the relevant national postal service, such as a ZIP code or Post
Code.</Description>
<DataType>Text</DataType>
<Reference type="BUSINESS_TERM">tir01-p032</Reference>
</Element>
<Element cardinality="0..1">
<Term>cbc:CountrySubentity</Term>
<Name>Country subdivision</Name>
<Description>For specifying a region, county, state, province etc. within a
country by using text.</Description>
country by using text.</Description>
<DataType>Text</DataType>
<Reference type="BUSINESS_TERM">tir01-p033</Reference>
</Element>
Expand All @@ -1290,7 +1290,7 @@
<Term>cbc:Line</Term>
<Name>Address line 3</Name>
<Description>An additional address line in an address that can be used
to give further details supplementing the main line.</Description>
to give further details supplementing the main line.</Description>
<DataType>Text</DataType>
<Reference type="BUSINESS_TERM">tir01-p034</Reference>
<Value type="EXAMPLE">Gate 34</Value>
Expand All @@ -1303,10 +1303,10 @@
<Term>cbc:IdentificationCode</Term>
<Name>Country code</Name>
<Description>A code that identifies the country.The lists of valid
countries are registered with the ISO 3166-1 Maintenance agency,
"Codes for the representation of names of countries and their
subdivisions". Codes must be according to the alpha-2
representation.</Description>
countries are registered with the ISO 3166-1 Maintenance agency,
"Codes for the representation of names of countries and their
subdivisions". Codes must be according to the alpha-2
representation.</Description>
<DataType>Code</DataType>
<Reference type="BUSINESS_TERM">tir01-p035</Reference>
<Reference type="CODE_LIST">ISO3166</Reference>
Expand Down Expand Up @@ -1341,7 +1341,7 @@
<DataType>Text</DataType>
<Reference type="BUSINESS_TERM">tir01-106</Reference>
</Element>
</Element>
</Element>
</Element>
<Element cardinality="0..1">
<Term>cac:Shipment</Term>
Expand Down Expand Up @@ -2220,7 +2220,7 @@
<Term>name</Term>
<Name>Clear text name equivalent of classification code</Name>
<Description>The textual equivalent of the code value</Description>
<Value type="EXAMPLE">Office furniture</Value>
<Value type="EXAMPLE">Office furniture</Value>
</Attribute>
<Value type="EXAMPLE">9873242</Value>
</Element>
Expand Down Expand Up @@ -2268,24 +2268,24 @@
<Name>ID</Name>
<Description>ID of the property if assigned by an Agency</Description>
<Value type="EXAMPLE">77e416eb-a363-4258-a04e-171d843a6460</Value>
<Element cardinality="O">
<Term>@schemeDataURI</Term>
<Attribute usage="Optional">
<Term>schemeDataURI</Term>
<Name>Scheme Data URI</Name>
<Description>Scheme Data URI</Description>
<Value type="EXAMPLE">sdfdf</Value>
</Element>
<Element cardinality="O">
<Term>@schemeID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeID</Term>
<Name>Scheme identifier</Name>
<Description>Scheme identifier</Description>
<Value type="EXAMPLE">ISO22057</Value>
</Element>
<Element cardinality="O">
<Term>@schemeVersionID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeVersionID</Term>
<Name>Scheme version identifier</Name>
<Description>Scheme version identifier</Description>
<Value type="EXAMPLE">2022</Value>
</Element>
</Attribute>
</Element>
<Element>
<Term>cbc:Name</Term>
Expand Down
18 changes: 9 additions & 9 deletions structure/syntax/ubl-orderagreement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1710,24 +1710,24 @@
<Name>ID</Name>
<Description>ID of the property if assigned by an Agency</Description>
<Value type="EXAMPLE">77e416eb-a363-4258-a04e-171d843a6460</Value>
<Element cardinality="O">
<Term>@schemeDataURI</Term>
<Attribute usage="Optional">
<Term>schemeDataURI</Term>
<Name>Scheme Data URI</Name>
<Description>Scheme Data URI</Description>
<Value type="EXAMPLE">sdfdf</Value>
</Element>
<Element cardinality="O">
<Term>@schemeID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeID</Term>
<Name>Scheme identifier</Name>
<Description>Scheme identifier</Description>
<Value type="EXAMPLE">ISO22057</Value>
</Element>
<Element cardinality="O">
<Term>@schemeVersionID</Term>
</Attribute>
<Attribute usage="Optional">
<Term>schemeVersionID</Term>
<Name>Scheme version identifier</Name>
<Description>Scheme version identifier</Description>
<Value type="EXAMPLE">2022</Value>
</Element>
</Attribute>
</Element>
<Element>
<Term>cbc:Name</Term>
Expand Down
49 changes: 25 additions & 24 deletions structure/syntax/ubl-shoppingcart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -741,31 +741,32 @@
<Element cardinality="0..n">
<Term>cac:AdditionalItemProperty</Term>
<Name>Additional item property information</Name>
<Description>Used to for item properties and also configured product identifier and item is service indicator</Description>
<Description>Used to for item properties and also configured product identifier
and item is service indicator</Description>
<Element cardinality="0..1">
<Term>cbc:ID</Term>
<Name>ID</Name>
<Description>ID of the property if assigned by an Agency</Description>
<Value type="EXAMPLE">77e416eb-a363-4258-a04e-171d843a6460</Value>
<Element cardinality="O">
<Term>@schemeDataURI</Term>
<Name>Scheme Data URI</Name>
<Description>Scheme Data URI</Description>
<Value type="EXAMPLE">sdfdf</Value>
</Element>
<Element cardinality="O">
<Term>@schemeID</Term>
<Name>Scheme identifier</Name>
<Description>Scheme identifier</Description>
<Value type="EXAMPLE">ISO22057</Value>
</Element>
<Element cardinality="O">
<Term>@schemeVersionID</Term>
<Name>Scheme version identifier</Name>
<Description>Scheme version identifier</Description>
<Value type="EXAMPLE">2022</Value>
</Element>
</Element>
<Term>cbc:ID</Term>
<Name>ID</Name>
<Description>ID of the property if assigned by an Agency</Description>
<Value type="EXAMPLE">77e416eb-a363-4258-a04e-171d843a6460</Value>
<Attribute usage="Optional">
<Term>schemeDataURI</Term>
<Name>Scheme Data URI</Name>
<Description>Scheme Data URI</Description>
<Value type="EXAMPLE">sdfdf</Value>
</Attribute>
<Attribute usage="Optional">
<Term>schemeID</Term>
<Name>Scheme identifier</Name>
<Description>Scheme identifier</Description>
<Value type="EXAMPLE">ISO22057</Value>
</Attribute>
<Attribute usage="Optional">
<Term>schemeVersionID</Term>
<Name>Scheme version identifier</Name>
<Description>Scheme version identifier</Description>
<Value type="EXAMPLE">2022</Value>
</Attribute>
</Element>
<Element>
<Term>cbc:Name</Term>
<Name>Item property name</Name>
Expand Down

0 comments on commit 4269574

Please sign in to comment.