-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xsd
157 lines (157 loc) · 6.27 KB
/
feed.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="percent">
<xs:annotation>
<xs:documentation>The percent type specifies a value from 0 to 100.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="catalog" type="catalogType"/>
<xs:complexType name="catalogType">
<xs:sequence>
<xs:element type="productsType" name="products"/>
<xs:element type="metadataType" name="metadata" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="shippingType">
<xs:all>
<xs:element type="xs:decimal" name="amount"/>
<xs:element type="xs:normalizedString" name="label" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="discountsType">
<xs:sequence>
<xs:element type="discountType" name="discount" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="categoryType">
<xs:all>
<xs:element type="xs:token" name="name"/>
<xs:element type="xs:token" name="link" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="shippingsType">
<xs:sequence>
<xs:element type="shippingType" name="shipping"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="brandType">
<xs:all>
<xs:element type="xs:token" name="name"/>
<xs:element type="xs:token" name="link" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="attributesType">
<xs:sequence>
<xs:element type="attributeType" name="attribute" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="descriptionType">
<xs:all>
<xs:element type="xs:string" name="full"/>
<xs:element type="xs:string" name="short"/>
</xs:all>
</xs:complexType>
<xs:complexType name="attributeType">
<xs:sequence>
<xs:element type="xs:token" name="name"/>
<xs:element type="xs:token" name="value"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="productsType">
<xs:sequence>
<xs:element type="productType" name="product" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute type="xs:token" name="version" fixed="1.0.0"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>
<xs:complexType name="discountType">
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute name="type" default="price">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="price"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="start-datetime" type="xs:dateTime"/>
<xs:attribute name="end-datetime" type="xs:dateTime"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="variationsType">
<xs:sequence>
<xs:element type="variationType" name="variation" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="variationType">
<xs:all>
<xs:element type="xs:token" name="reference"/>
<xs:element type="xs:token" name="gtin" minOccurs="0"/>
<xs:element type="xs:integer" name="quantity"/>
<xs:element type="xs:decimal" name="price"/>
<xs:element type="shippingsType" name="shippings" minOccurs="0"/>
<xs:element type="discountsType" name="discounts" minOccurs="0"/>
<xs:element type="shippingType" name="shipping" minOccurs="0"/>
<xs:element type="imagesType" name="images" minOccurs="0"/>
<xs:element type="attributesType" name="attributes" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="imagesType">
<xs:sequence>
<xs:element type="imageType" name="image" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="imageType">
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="type" default="additional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="main"/>
<xs:enumeration value="additional"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="productType">
<xs:all>
<xs:element type="xs:token" name="reference"/>
<xs:element type="xs:token" name="gtin" minOccurs="0"/>
<xs:element type="xs:token" name="name"/>
<xs:element type="xs:token" name="link" minOccurs="0"/>
<xs:element type="xs:integer" name="quantity"/>
<xs:element type="xs:decimal" name="price"/>
<!-- the vat value below represents a percentage value -->
<xs:element type="percent" name="vat" minOccurs="0" />
<xs:element type="xs:decimal" name="weight" minOccurs="0" />
<xs:element type="xs:decimal" name="ecotax" minOccurs="0" />
<xs:element type="brandType" name="brand" minOccurs="0"/>
<xs:element type="categoryType" name="category" minOccurs="0"/>
<xs:element type="shippingsType" name="shippings" minOccurs="0"/>
<xs:element type="discountsType" name="discounts" minOccurs="0"/>
<xs:element type="descriptionType" name="description" minOccurs="0"/>
<xs:element type="shippingType" name="shipping" minOccurs="0"/>
<xs:element type="imagesType" name="images" minOccurs="0"/>
<xs:element type="attributesType" name="attributes" minOccurs="0"/>
<xs:element type="variationsType" name="variations" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="metadataType">
<xs:all>
<xs:element type="xs:token" name="agent" minOccurs="0"/>
<xs:element type="xs:token" name="platform" minOccurs="0"/>
<xs:element type="xs:dateTime" name="startedAt" minOccurs="0"/>
<xs:element type="xs:dateTime" name="finishedAt" minOccurs="0"/>
<xs:element type="xs:integer" name="invalid" minOccurs="0"/>
<xs:element type="xs:integer" name="ignored" minOccurs="0"/>
<xs:element type="xs:integer" name="written" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:schema>