aboutsummaryrefslogtreecommitdiff
path: root/xsd
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-14 12:23:57 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-15 08:22:01 +0100
commita8ec679349c3eb9c33a9d33e247fd86cb8e53f81 (patch)
tree094a498b7b30e402c419e8a588e86769f7d408c9 /xsd
parent3a90ab0dbf5826bc7476971cd163c9a080d2fb2f (diff)
downloadee-python-a8ec679349c3eb9c33a9d33e247fd86cb8e53f81.tar.gz
ee-python-a8ec679349c3eb9c33a9d33e247fd86cb8e53f81.tar.bz2
ee-python-a8ec679349c3eb9c33a9d33e247fd86cb8e53f81.tar.xz
ee-python-a8ec679349c3eb9c33a9d33e247fd86cb8e53f81.zip
o Adding PriceBreak. Parsing price breaks from DK.
o Adding Money type with parsing.
Diffstat (limited to 'xsd')
-rw-r--r--xsd/ee-bom.xsd19
1 files changed, 19 insertions, 0 deletions
diff --git a/xsd/ee-bom.xsd b/xsd/ee-bom.xsd
index e0c523e..dddfa8a 100644
--- a/xsd/ee-bom.xsd
+++ b/xsd/ee-bom.xsd
@@ -21,6 +21,7 @@
<xs:element name="part-numbers" type="PartNumberList"/>
<xs:element name="distributor-info" type="DistributorInfo"/>
<xs:element name="facts" type="FactList"/>
+ <xs:element name="price-breaks" type="PriceBreakList"/>
</xs:sequence>
<xs:attribute ref="id" use="required"/>
</xs:complexType>
@@ -64,4 +65,22 @@
</xs:sequence>
</xs:complexType>
+ <xs:complexType name="Amount">
+ <xs:attribute name="value" use="required"/>
+ <xs:attribute name="currency"/>
+ </xs:complexType>
+
+ <xs:complexType name="PriceBreak">
+ <xs:sequence>
+ <xs:element name="quantity" type="xs:anyURI"/>
+ <xs:element name="amount" type="Amount"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="PriceBreakList">
+ <xs:sequence>
+ <xs:element name="price-break" type="PriceBreak" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
</xs:schema>