editx 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/README.markdown +33 -0
- data/lib/editx.rb +78 -0
- data/lib/editx/order.rb +116 -0
- data/lib/editx/order/date_coded.rb +13 -0
- data/lib/editx/order/discount_detail.rb +18 -0
- data/lib/editx/order/discount_part.rb +14 -0
- data/lib/editx/order/item_detail.rb +33 -0
- data/lib/editx/order/message.rb +18 -0
- data/lib/editx/order/order_item_qualifier_coded.rb +14 -0
- data/lib/editx/order/party.rb +12 -0
- data/lib/editx/order/price.rb +16 -0
- data/lib/editx/order/product_id.rb +15 -0
- data/lib/editx/order/reference_coded.rb +15 -0
- data/lib/editx/order/returns_condition_coded.rb +14 -0
- data/lib/editx/order/returns_conditions.rb +19 -0
- data/schemas/editx_codelists.xsd +1753 -0
- data/schemas/order_1_1.xsd +475 -0
- data/schemas/order_1_2.xsd +487 -0
- data/spec/order_spec.rb +97 -0
- data/spec/sample_data_spec.rb +37 -0
- metadata +103 -0
@@ -0,0 +1,487 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="editx_codelists.xsd"/>
|
4
|
+
<xs:element name="Order">
|
5
|
+
<xs:complexType>
|
6
|
+
<xs:sequence>
|
7
|
+
<xs:element name="Header">
|
8
|
+
<xs:complexType>
|
9
|
+
<xs:sequence>
|
10
|
+
<xs:element name="OrderNumber" type="xs:string"/>
|
11
|
+
<xs:element name="IssueDateTime" type="DateOrDateTime"/>
|
12
|
+
<xs:element name="ReferenceCoded" minOccurs="0" maxOccurs="unbounded">
|
13
|
+
<xs:complexType>
|
14
|
+
<xs:sequence>
|
15
|
+
<xs:element name="ReferenceTypeCode" type="OrderReferenceTypeCode"/>
|
16
|
+
<xs:choice>
|
17
|
+
<xs:sequence>
|
18
|
+
<xs:element name="ReferenceNumber" type="xs:string"/>
|
19
|
+
<xs:element name="ReferenceDate" type="Date" minOccurs="0"/>
|
20
|
+
</xs:sequence>
|
21
|
+
<xs:element name="ReferenceDate" type="Date">
|
22
|
+
<?editx nodoc?>
|
23
|
+
</xs:element>
|
24
|
+
</xs:choice>
|
25
|
+
</xs:sequence>
|
26
|
+
</xs:complexType>
|
27
|
+
</xs:element>
|
28
|
+
<xs:element name="PurposeCode" type="PurposeCode"/>
|
29
|
+
<xs:element name="CurrencyCode" type="CurrencyCode" minOccurs="0"/>
|
30
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
31
|
+
<xs:element name="DateCoded" minOccurs="0" maxOccurs="unbounded">
|
32
|
+
<xs:complexType>
|
33
|
+
<xs:sequence>
|
34
|
+
<xs:element name="Date" type="Date"/>
|
35
|
+
<xs:element name="DateQualifierCode" type="OrderDateQualifierCode"/>
|
36
|
+
</xs:sequence>
|
37
|
+
</xs:complexType>
|
38
|
+
</xs:element>
|
39
|
+
<xs:element name="FillTermsCode" type="FillTermsCode" minOccurs="0"/>
|
40
|
+
<xs:element name="BuyerParty" type="Party"/>
|
41
|
+
<xs:element name="SellerParty" type="Party" minOccurs="0"/>
|
42
|
+
<xs:element name="ShipToParty" type="Party" minOccurs="0"/>
|
43
|
+
<xs:element name="BillToParty" type="Party" minOccurs="0"/>
|
44
|
+
<xs:element name="ShipFrom" minOccurs="0">
|
45
|
+
<xs:complexType>
|
46
|
+
<xs:sequence>
|
47
|
+
<xs:element name="Location" type="Location"/>
|
48
|
+
</xs:sequence>
|
49
|
+
</xs:complexType>
|
50
|
+
</xs:element>
|
51
|
+
<xs:element name="OrderQualifierCoded" minOccurs="0" maxOccurs="unbounded">
|
52
|
+
<xs:complexType>
|
53
|
+
<xs:sequence>
|
54
|
+
<xs:element name="OrderQualifierCodeType" type="OrderQualifierCodeTypeCode"/>
|
55
|
+
<xs:element name="OrderQualifierCode" type="xs:string"/>
|
56
|
+
</xs:sequence>
|
57
|
+
</xs:complexType>
|
58
|
+
</xs:element>
|
59
|
+
<xs:element name="Delivery" type="Delivery" minOccurs="0"/>
|
60
|
+
<xs:element name="ShippingInstructionsCode" type="ShippingInstructionsCode" minOccurs="0"/>
|
61
|
+
<xs:element name="InvoiceInstructionsCode" type="InvoiceInstructionsCode" minOccurs="0"/>
|
62
|
+
<xs:choice minOccurs="0">
|
63
|
+
<xs:element name="PaymentTerms" type="PaymentTerms"/>
|
64
|
+
<xs:element name="PaymentTermsCoded">
|
65
|
+
<xs:complexType>
|
66
|
+
<xs:sequence>
|
67
|
+
<xs:element name="PaymentTermsCodeType" type="PaymentTermsCodeTypeCode"/>
|
68
|
+
<xs:element name="PaymentTermsCode"/>
|
69
|
+
</xs:sequence>
|
70
|
+
</xs:complexType>
|
71
|
+
</xs:element>
|
72
|
+
</xs:choice>
|
73
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
74
|
+
<xs:element name="AdditionalService" type="AdditionalService" minOccurs="0" maxOccurs="unbounded"/>
|
75
|
+
<xs:element name="Message" type="Message" minOccurs="0" maxOccurs="unbounded"/>
|
76
|
+
</xs:sequence>
|
77
|
+
</xs:complexType>
|
78
|
+
</xs:element>
|
79
|
+
<xs:element name="ItemDetail" maxOccurs="unbounded">
|
80
|
+
<xs:complexType>
|
81
|
+
<xs:sequence>
|
82
|
+
<xs:element name="LineNumber" type="xs:int"/>
|
83
|
+
<xs:element name="ProductID" maxOccurs="unbounded">
|
84
|
+
<xs:complexType>
|
85
|
+
<xs:sequence>
|
86
|
+
<xs:element name="ProductIDType" type="ProductIDAgencyCode"/>
|
87
|
+
<xs:element name="IDTypeName" type="xs:string" minOccurs="0"/>
|
88
|
+
<xs:element name="Identifier" type="xs:string"/>
|
89
|
+
</xs:sequence>
|
90
|
+
</xs:complexType>
|
91
|
+
</xs:element>
|
92
|
+
<xs:element name="ItemDescription" minOccurs="0">
|
93
|
+
<xs:complexType>
|
94
|
+
<xs:sequence>
|
95
|
+
<xs:element name="TitleDetail" type="xs:string"/>
|
96
|
+
</xs:sequence>
|
97
|
+
</xs:complexType>
|
98
|
+
</xs:element>
|
99
|
+
<xs:element name="SellerParty" type="OrderItemSellerParty" minOccurs="0"/>
|
100
|
+
<xs:element name="ItemRelatedParty" minOccurs="0" maxOccurs="unbounded">
|
101
|
+
<xs:complexType>
|
102
|
+
<xs:sequence>
|
103
|
+
<xs:element name="PartyRole" type="xs:string" minOccurs="0"/>
|
104
|
+
<xs:element name="PartyID" type="PartyID"/>
|
105
|
+
<xs:element name="AdditionalPartyID" type="AdditionalPartyID" minOccurs="0" maxOccurs="unbounded"/>
|
106
|
+
<xs:element name="PartyName" type="PartyName" minOccurs="0"/>
|
107
|
+
<xs:element name="PostalAddress" type="PostalAddress" minOccurs="0"/>
|
108
|
+
<xs:element name="CommunicationDetails" type="CommunicationDetails" minOccurs="0" maxOccurs="unbounded"/>
|
109
|
+
<xs:element name="ContactPerson" type="ContactPerson" minOccurs="0" maxOccurs="unbounded"/>
|
110
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
111
|
+
</xs:sequence>
|
112
|
+
</xs:complexType>
|
113
|
+
</xs:element>
|
114
|
+
<xs:element name="OrderQuantity" type="xs:int"/>
|
115
|
+
<xs:element name="BatchBonus" minOccurs="0">
|
116
|
+
<xs:complexType>
|
117
|
+
<xs:sequence>
|
118
|
+
<xs:element name="BatchBonusType" type="xs:string"/>
|
119
|
+
<xs:element name="BatchBonusQuantity" type="xs:int"/>
|
120
|
+
</xs:sequence>
|
121
|
+
</xs:complexType>
|
122
|
+
</xs:element>
|
123
|
+
<xs:element name="ReferenceCoded" minOccurs="0" maxOccurs="unbounded">
|
124
|
+
<xs:complexType>
|
125
|
+
<xs:sequence>
|
126
|
+
<xs:element name="ReferenceTypeCode" type="OrderItemReferenceTypeCode"/>
|
127
|
+
<xs:choice>
|
128
|
+
<xs:sequence>
|
129
|
+
<xs:element name="ReferenceNumber" type="xs:string"/>
|
130
|
+
<xs:element name="ReferenceDate" type="Date" minOccurs="0"/>
|
131
|
+
</xs:sequence>
|
132
|
+
<xs:element name="ReferenceDate" type="Date">
|
133
|
+
<?editx nodoc?>
|
134
|
+
</xs:element>
|
135
|
+
</xs:choice>
|
136
|
+
</xs:sequence>
|
137
|
+
</xs:complexType>
|
138
|
+
</xs:element>
|
139
|
+
<xs:element name="DateCoded" minOccurs="0" maxOccurs="unbounded">
|
140
|
+
<xs:complexType>
|
141
|
+
<xs:sequence>
|
142
|
+
<xs:element name="Date" type="Date"/>
|
143
|
+
<xs:element name="DateQualifierCode" type="OrderDateQualifierCode"/>
|
144
|
+
</xs:sequence>
|
145
|
+
</xs:complexType>
|
146
|
+
</xs:element>
|
147
|
+
<xs:element name="FillTermsCode" type="ItemFillTermsCode" minOccurs="0"/>
|
148
|
+
<xs:element name="OrderItemQualifierCoded" minOccurs="0" maxOccurs="unbounded">
|
149
|
+
<xs:complexType>
|
150
|
+
<xs:sequence>
|
151
|
+
<xs:element name="OrderItemQualifierCodeType" type="OrderItemQualifierCodeTypeCode"/>
|
152
|
+
<xs:element name="OrderItemQualifierCode" type="xs:string"/>
|
153
|
+
</xs:sequence>
|
154
|
+
</xs:complexType>
|
155
|
+
</xs:element>
|
156
|
+
<xs:element name="PricingDetail" minOccurs="0" maxOccurs="unbounded">
|
157
|
+
<xs:complexType>
|
158
|
+
<xs:sequence>
|
159
|
+
<xs:element name="Price">
|
160
|
+
<xs:complexType>
|
161
|
+
<xs:sequence>
|
162
|
+
<xs:element name="MonetaryAmount" type="xs:decimal"/>
|
163
|
+
<xs:element name="CurrencyCode" type="CurrencyCode" minOccurs="0"/>
|
164
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
165
|
+
<xs:element name="PriceQualifierCode" type="OrderPriceQualifierCode"/>
|
166
|
+
</xs:sequence>
|
167
|
+
</xs:complexType>
|
168
|
+
</xs:element>
|
169
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
170
|
+
<xs:element name="DiscountDetail" minOccurs="0" maxOccurs="unbounded">
|
171
|
+
<xs:complexType>
|
172
|
+
<xs:sequence>
|
173
|
+
<xs:element name="DiscountCodeType" type="DiscountCodeTypeCode"/>
|
174
|
+
<xs:element name="DiscountPart" maxOccurs="unbounded">
|
175
|
+
<xs:complexType>
|
176
|
+
<xs:sequence>
|
177
|
+
<xs:element name="DiscountCode" type="xs:string"/>
|
178
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
179
|
+
</xs:sequence>
|
180
|
+
</xs:complexType>
|
181
|
+
</xs:element>
|
182
|
+
</xs:sequence>
|
183
|
+
</xs:complexType>
|
184
|
+
</xs:element>
|
185
|
+
</xs:sequence>
|
186
|
+
</xs:complexType>
|
187
|
+
</xs:element>
|
188
|
+
<xs:element name="ReturnsConditions" minOccurs="0">
|
189
|
+
<xs:complexType>
|
190
|
+
<xs:sequence>
|
191
|
+
<xs:element name="LastDateForReturns" type="Date" minOccurs="0"/>
|
192
|
+
<xs:choice minOccurs="0">
|
193
|
+
<xs:element name="MaximumReturnsPercentage" type="xs:decimal"/>
|
194
|
+
<xs:element name="MaximumReturnsQuantity" type="xs:int"/>
|
195
|
+
</xs:choice>
|
196
|
+
<xs:element name="ReturnsConditionCoded" minOccurs="0" maxOccurs="unbounded">
|
197
|
+
<xs:complexType>
|
198
|
+
<xs:sequence>
|
199
|
+
<xs:element name="ReturnsConditionCodeType" type="ReturnsConditionCodeTypeCode"/>
|
200
|
+
<xs:element name="ReturnsConditionCode" type="xs:string"/>
|
201
|
+
</xs:sequence>
|
202
|
+
</xs:complexType>
|
203
|
+
</xs:element>
|
204
|
+
</xs:sequence>
|
205
|
+
</xs:complexType>
|
206
|
+
</xs:element>
|
207
|
+
<xs:element name="AdditionalService" type="AdditionalService" minOccurs="0" maxOccurs="unbounded"/>
|
208
|
+
<xs:element name="Message" type="Message" minOccurs="0" maxOccurs="unbounded"/>
|
209
|
+
</xs:sequence>
|
210
|
+
</xs:complexType>
|
211
|
+
</xs:element>
|
212
|
+
<xs:element name="Summary">
|
213
|
+
<xs:complexType>
|
214
|
+
<xs:sequence>
|
215
|
+
<xs:element name="NumberOfLines" type="xs:int"/>
|
216
|
+
<xs:element name="UnitsOrdered" type="xs:int" minOccurs="0"/>
|
217
|
+
</xs:sequence>
|
218
|
+
</xs:complexType>
|
219
|
+
</xs:element>
|
220
|
+
</xs:sequence>
|
221
|
+
<xs:attribute name="version" type="xs:string" use="required" fixed="1.2">
|
222
|
+
<?editx nodoc?>
|
223
|
+
</xs:attribute>
|
224
|
+
</xs:complexType>
|
225
|
+
<?editx title=Order?>
|
226
|
+
</xs:element>
|
227
|
+
<xs:complexType name="AdditionalPartyID">
|
228
|
+
<xs:sequence>
|
229
|
+
<xs:element name="PartyIDType" type="OtherPartyIDAgencyCode"/>
|
230
|
+
<xs:element name="Identifier" type="xs:string"/>
|
231
|
+
</xs:sequence>
|
232
|
+
</xs:complexType>
|
233
|
+
<xs:complexType name="AdditionalService">
|
234
|
+
<xs:sequence>
|
235
|
+
<xs:element name="ServiceDescriptionCoded">
|
236
|
+
<xs:complexType>
|
237
|
+
<xs:sequence>
|
238
|
+
<xs:element name="ServiceDescriptionCodeType" type="ServiceDescriptionCodeTypeCode"/>
|
239
|
+
<xs:element name="ServiceDescriptionCode" type="xs:string"/>
|
240
|
+
</xs:sequence>
|
241
|
+
</xs:complexType>
|
242
|
+
</xs:element>
|
243
|
+
<xs:element name="ServiceQuantity" minOccurs="0">
|
244
|
+
<xs:complexType>
|
245
|
+
<xs:sequence>
|
246
|
+
<xs:element name="ServiceQuantityDescription" type="xs:string" minOccurs="0"/>
|
247
|
+
<xs:element name="QuantityDetail">
|
248
|
+
<xs:complexType>
|
249
|
+
<xs:sequence>
|
250
|
+
<xs:element name="Value" type="xs:string"/>
|
251
|
+
<xs:element name="ReferenceUnit" type="xs:string" minOccurs="0"/>
|
252
|
+
</xs:sequence>
|
253
|
+
</xs:complexType>
|
254
|
+
</xs:element>
|
255
|
+
</xs:sequence>
|
256
|
+
</xs:complexType>
|
257
|
+
</xs:element>
|
258
|
+
<xs:element name="AdditionalServiceDescription" type="xs:string" minOccurs="0"/>
|
259
|
+
<xs:element name="ReferenceCoded" minOccurs="0" maxOccurs="unbounded">
|
260
|
+
<xs:complexType>
|
261
|
+
<xs:sequence>
|
262
|
+
<xs:element name="ReferenceTypeCode" type="ServiceReferenceTypeCode"/>
|
263
|
+
<xs:choice>
|
264
|
+
<xs:sequence>
|
265
|
+
<xs:element name="ReferenceNumber" type="xs:string"/>
|
266
|
+
<xs:element name="ReferenceDate" type="Date" minOccurs="0"/>
|
267
|
+
</xs:sequence>
|
268
|
+
<xs:element name="ReferenceDate" type="Date">
|
269
|
+
<?editx nodoc?>
|
270
|
+
</xs:element>
|
271
|
+
</xs:choice>
|
272
|
+
</xs:sequence>
|
273
|
+
</xs:complexType>
|
274
|
+
</xs:element>
|
275
|
+
<xs:element name="PricingDetail" minOccurs="0" maxOccurs="unbounded">
|
276
|
+
<xs:complexType>
|
277
|
+
<xs:sequence>
|
278
|
+
<xs:element name="Price">
|
279
|
+
<xs:complexType>
|
280
|
+
<xs:sequence>
|
281
|
+
<xs:element name="MonetaryAmount" type="xs:decimal"/>
|
282
|
+
<xs:element name="CurrencyCode" type="CurrencyCode" minOccurs="0"/>
|
283
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
284
|
+
<xs:element name="PriceQualifierCode" type="ServicePriceQualifierCode"/>
|
285
|
+
<xs:element name="Tax" type="Tax" minOccurs="0" maxOccurs="unbounded"/>
|
286
|
+
</xs:sequence>
|
287
|
+
</xs:complexType>
|
288
|
+
</xs:element>
|
289
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
290
|
+
<xs:element name="DiscountDetail" minOccurs="0" maxOccurs="unbounded">
|
291
|
+
<xs:complexType>
|
292
|
+
<xs:sequence>
|
293
|
+
<xs:element name="DiscountCodeType" type="DiscountCodeTypeCode"/>
|
294
|
+
<xs:element name="DiscountPart" maxOccurs="unbounded">
|
295
|
+
<xs:complexType>
|
296
|
+
<xs:sequence>
|
297
|
+
<xs:element name="DiscountCode" type="xs:string"/>
|
298
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
299
|
+
</xs:sequence>
|
300
|
+
</xs:complexType>
|
301
|
+
</xs:element>
|
302
|
+
</xs:sequence>
|
303
|
+
</xs:complexType>
|
304
|
+
</xs:element>
|
305
|
+
</xs:sequence>
|
306
|
+
</xs:complexType>
|
307
|
+
</xs:element>
|
308
|
+
</xs:sequence>
|
309
|
+
</xs:complexType>
|
310
|
+
<xs:complexType name="Carrier">
|
311
|
+
<xs:sequence>
|
312
|
+
<xs:choice>
|
313
|
+
<xs:sequence>
|
314
|
+
<xs:element name="CarrierNameCoded">
|
315
|
+
<xs:complexType>
|
316
|
+
<xs:sequence>
|
317
|
+
<xs:element name="CarrierNameCodeType" type="CarrierNameCodeTypeCode"/>
|
318
|
+
<xs:element name="CarrierNameCode" type="xs:string"/>
|
319
|
+
</xs:sequence>
|
320
|
+
</xs:complexType>
|
321
|
+
</xs:element>
|
322
|
+
<xs:element name="CarrierName" type="CarrierName" minOccurs="0"/>
|
323
|
+
</xs:sequence>
|
324
|
+
<xs:element name="CarrierName" type="CarrierName"/>
|
325
|
+
</xs:choice>
|
326
|
+
<xs:element name="CarrierService" type="xs:string" minOccurs="0"/>
|
327
|
+
</xs:sequence>
|
328
|
+
</xs:complexType>
|
329
|
+
<xs:complexType name="CommunicationDetails">
|
330
|
+
<xs:sequence>
|
331
|
+
<xs:element name="CommunicationTypeCode" type="CommunicationTypeCode"/>
|
332
|
+
<xs:element name="CommunicationLocator" type="xs:string"/>
|
333
|
+
</xs:sequence>
|
334
|
+
</xs:complexType>
|
335
|
+
<xs:complexType name="ContactPerson">
|
336
|
+
<xs:sequence>
|
337
|
+
<xs:element name="ContactRoleCode" type="xs:string" minOccurs="0"/>
|
338
|
+
<xs:element name="PersonName" type="xs:string"/>
|
339
|
+
<xs:element name="CommunicationDetails" minOccurs="0" maxOccurs="unbounded">
|
340
|
+
<xs:complexType>
|
341
|
+
<xs:sequence>
|
342
|
+
<xs:element name="CommunicationTypeCode" type="CommunicationTypeCode"/>
|
343
|
+
<xs:element name="CommunicationLocator" type="xs:string"/>
|
344
|
+
</xs:sequence>
|
345
|
+
</xs:complexType>
|
346
|
+
</xs:element>
|
347
|
+
</xs:sequence>
|
348
|
+
</xs:complexType>
|
349
|
+
<xs:complexType name="Delivery">
|
350
|
+
<xs:choice>
|
351
|
+
<xs:sequence>
|
352
|
+
<xs:element name="DeliveryTimeCode" type="DeliveryTimeCode"/>
|
353
|
+
<xs:element name="VendorDeliveryService" type="VendorDeliveryService" minOccurs="0"/>
|
354
|
+
<xs:element name="Carrier" type="Carrier" minOccurs="0"/>
|
355
|
+
<xs:element name="DeliveryNotes" type="DeliveryNotes" minOccurs="0"/>
|
356
|
+
</xs:sequence>
|
357
|
+
<xs:sequence>
|
358
|
+
<xs:element name="VendorDeliveryService" type="VendorDeliveryService"/>
|
359
|
+
<xs:element name="Carrier" type="Carrier" minOccurs="0"/>
|
360
|
+
<xs:element name="DeliveryNotes" type="DeliveryNotes" minOccurs="0"/>
|
361
|
+
</xs:sequence>
|
362
|
+
<xs:sequence>
|
363
|
+
<xs:element name="Carrier" type="Carrier"/>
|
364
|
+
<xs:element name="DeliveryNotes" type="DeliveryNotes" minOccurs="0"/>
|
365
|
+
</xs:sequence>
|
366
|
+
<xs:element name="DeliveryNotes" type="DeliveryNotes"/>
|
367
|
+
</xs:choice>
|
368
|
+
</xs:complexType>
|
369
|
+
<xs:complexType name="Location">
|
370
|
+
<xs:choice>
|
371
|
+
<xs:sequence>
|
372
|
+
<xs:element name="LocationIdentifier" maxOccurs="unbounded">
|
373
|
+
<xs:complexType>
|
374
|
+
<xs:sequence>
|
375
|
+
<xs:element name="LocationIDType" type="LocationIDAgencyCode"/>
|
376
|
+
<xs:element name="IDTypeName" type="xs:string" minOccurs="0"/>
|
377
|
+
<xs:element name="IDValue" type="xs:string"/>
|
378
|
+
</xs:sequence>
|
379
|
+
</xs:complexType>
|
380
|
+
</xs:element>
|
381
|
+
<xs:element name="LocationName" type="LocationName" minOccurs="0"/>
|
382
|
+
</xs:sequence>
|
383
|
+
<xs:element name="LocationName" type="LocationName"/>
|
384
|
+
</xs:choice>
|
385
|
+
</xs:complexType>
|
386
|
+
<xs:complexType name="Message">
|
387
|
+
<xs:sequence>
|
388
|
+
<xs:element name="MessageType" type="MessageTypeCode"/>
|
389
|
+
<xs:element name="MessageLine" type="xs:string" maxOccurs="unbounded"/>
|
390
|
+
</xs:sequence>
|
391
|
+
</xs:complexType>
|
392
|
+
<xs:complexType name="OrderItemSellerParty">
|
393
|
+
<xs:sequence>
|
394
|
+
<xs:element name="PartyID" type="OrderItemSellerPartyID"/>
|
395
|
+
</xs:sequence>
|
396
|
+
</xs:complexType>
|
397
|
+
<xs:complexType name="OrderItemSellerPartyID">
|
398
|
+
<xs:sequence>
|
399
|
+
<xs:element name="PartyIDType" type="OrderItemSellerPartyIDAgencyCode"/>
|
400
|
+
<xs:element name="Identifier" type="xs:string"/>
|
401
|
+
</xs:sequence>
|
402
|
+
</xs:complexType>
|
403
|
+
<xs:complexType name="Party">
|
404
|
+
<xs:sequence>
|
405
|
+
<xs:element name="PartyID" type="PartyID"/>
|
406
|
+
<xs:element name="AdditionalPartyID" type="AdditionalPartyID" minOccurs="0" maxOccurs="unbounded"/>
|
407
|
+
<xs:element name="PartyName" type="PartyName" minOccurs="0"/>
|
408
|
+
<xs:element name="PostalAddress" type="PostalAddress" minOccurs="0"/>
|
409
|
+
<xs:element name="CommunicationDetails" type="CommunicationDetails" minOccurs="0" maxOccurs="unbounded"/>
|
410
|
+
<xs:element name="ContactPerson" type="ContactPerson" minOccurs="0" maxOccurs="unbounded"/>
|
411
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
412
|
+
</xs:sequence>
|
413
|
+
</xs:complexType>
|
414
|
+
<xs:complexType name="PartyID">
|
415
|
+
<xs:sequence>
|
416
|
+
<xs:element name="PartyIDType" type="PartyIDAgencyCode"/>
|
417
|
+
<xs:element name="Identifier" type="xs:string"/>
|
418
|
+
</xs:sequence>
|
419
|
+
</xs:complexType>
|
420
|
+
<xs:complexType name="PartyName">
|
421
|
+
<xs:sequence>
|
422
|
+
<xs:element name="NameLine" type="xs:string" maxOccurs="unbounded"/>
|
423
|
+
</xs:sequence>
|
424
|
+
</xs:complexType>
|
425
|
+
<xs:complexType name="PaymentTerms">
|
426
|
+
<xs:choice>
|
427
|
+
<xs:element name="NetDaysDue" type="xs:int"/>
|
428
|
+
<xs:element name="NetDueDate" type="Date"/>
|
429
|
+
<xs:element name="ExtendedDays" type="xs:int"/>
|
430
|
+
</xs:choice>
|
431
|
+
</xs:complexType>
|
432
|
+
<xs:complexType name="PostalAddress">
|
433
|
+
<xs:sequence>
|
434
|
+
<xs:element name="AddressLine" type="xs:string" maxOccurs="unbounded"/>
|
435
|
+
<xs:element name="PostalTownCity" type="xs:string" minOccurs="0"/>
|
436
|
+
<xs:element name="PostalCode" type="xs:string" minOccurs="0"/>
|
437
|
+
<xs:element name="CountrySubdivision" type="xs:string" minOccurs="0"/>
|
438
|
+
<xs:element name="CountrySubdivisionCode" type="CountrySubEntityCode" minOccurs="0"/>
|
439
|
+
<xs:element name="Country" type="xs:string" minOccurs="0"/>
|
440
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
441
|
+
</xs:sequence>
|
442
|
+
</xs:complexType>
|
443
|
+
<xs:complexType name="Tax">
|
444
|
+
<xs:sequence>
|
445
|
+
<xs:element name="TaxTypeCode" type="TaxTypeCode"/>
|
446
|
+
<xs:element name="TaxRateCode" type="xs:string" minOccurs="0"/>
|
447
|
+
<xs:element name="Percent" type="xs:decimal" minOccurs="0"/>
|
448
|
+
<xs:element name="AmountTaxable" type="xs:decimal" minOccurs="0"/>
|
449
|
+
<xs:element name="TaxAmount" type="xs:decimal" minOccurs="0"/>
|
450
|
+
</xs:sequence>
|
451
|
+
</xs:complexType>
|
452
|
+
<xs:simpleType name="Date">
|
453
|
+
<xs:restriction base="xs:string">
|
454
|
+
<xs:pattern value="2\d\d\d(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-8])"/>
|
455
|
+
<xs:pattern value="200[048]0229"/>
|
456
|
+
<xs:pattern value="2[1-9]0[48]0229"/>
|
457
|
+
<xs:pattern value="2\d([2468][048]|[13579][26])0229"/>
|
458
|
+
<xs:pattern value="2\d\d\d(0[13-9]|1[0-2])(29|30)"/>
|
459
|
+
<xs:pattern value="2\d\d\d(0[13578]|1[02])31"/>
|
460
|
+
</xs:restriction>
|
461
|
+
</xs:simpleType>
|
462
|
+
<xs:simpleType name="DateOrDateTime">
|
463
|
+
<xs:union memberTypes="Date DateTime"/>
|
464
|
+
</xs:simpleType>
|
465
|
+
<xs:simpleType name="DateTime">
|
466
|
+
<xs:restriction base="xs:string">
|
467
|
+
<xs:pattern value="2\d\d\d(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-8])T([01][0-9]|2[0-3])[0-5][0-9](Z|[+\-](0[0-9]|1[0-2])(00|15|30|45))?"/>
|
468
|
+
<xs:pattern value="200[048]0229T([01][0-9]|2[0-3])[0-5][0-9](Z|[+\-](0[0-9]|1[0-2])(00|15|30|45))?"/>
|
469
|
+
<xs:pattern value="2[1-9]0[48]0229T([01][0-9]|2[0-3])[0-5][0-9](Z|[+\-](0[0-9]|1[0-2])(00|15|30|45))?"/>
|
470
|
+
<xs:pattern value="2\d([2468][048]|[13579][26])0229T([01][0-9]|2[0-3])[0-5][0-9](Z|[+\-](0[0-9]|1[0-2])(00|15|30|45))?"/>
|
471
|
+
<xs:pattern value="2\d\d\d(0[13-9]|1[0-2])(29|30)T([01][0-9]|2[0-3])[0-5][0-9](Z|[+\-](0[0-9]|1[0-2])(00|15|30|45))?"/>
|
472
|
+
<xs:pattern value="2\d\d\d(0[13578]|1[02])31T([01][0-9]|2[0-3])[0-5][0-9](Z|[+\-](0[0-9]|1[0-2])(00|15|30|45))?"/>
|
473
|
+
</xs:restriction>
|
474
|
+
</xs:simpleType>
|
475
|
+
<xs:simpleType name="DeliveryNotes">
|
476
|
+
<xs:restriction base="xs:string"/>
|
477
|
+
</xs:simpleType>
|
478
|
+
<xs:simpleType name="LocationName">
|
479
|
+
<xs:restriction base="xs:string"/>
|
480
|
+
</xs:simpleType>
|
481
|
+
<xs:simpleType name="CarrierName">
|
482
|
+
<xs:restriction base="xs:string"/>
|
483
|
+
</xs:simpleType>
|
484
|
+
<xs:simpleType name="VendorDeliveryService">
|
485
|
+
<xs:restriction base="xs:string"/>
|
486
|
+
</xs:simpleType>
|
487
|
+
</xs:schema>
|