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,475 @@
|
|
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"/>
|
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="ItemRelatedParty" minOccurs="0" maxOccurs="unbounded">
|
100
|
+
<xs:complexType>
|
101
|
+
<xs:sequence>
|
102
|
+
<xs:element name="PartyRole" type="xs:string" minOccurs="0"/>
|
103
|
+
<xs:element name="PartyID" type="PartyID"/>
|
104
|
+
<xs:element name="AdditionalPartyID" type="AdditionalPartyID" minOccurs="0" maxOccurs="unbounded"/>
|
105
|
+
<xs:element name="PartyName" type="PartyName" minOccurs="0"/>
|
106
|
+
<xs:element name="PostalAddress" type="PostalAddress" minOccurs="0"/>
|
107
|
+
<xs:element name="CommunicationDetails" type="CommunicationDetails" minOccurs="0" maxOccurs="unbounded"/>
|
108
|
+
<xs:element name="ContactPerson" type="ContactPerson" minOccurs="0" maxOccurs="unbounded"/>
|
109
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
110
|
+
</xs:sequence>
|
111
|
+
</xs:complexType>
|
112
|
+
</xs:element>
|
113
|
+
<xs:element name="OrderQuantity" type="xs:int"/>
|
114
|
+
<xs:element name="BatchBonus" minOccurs="0">
|
115
|
+
<xs:complexType>
|
116
|
+
<xs:sequence>
|
117
|
+
<xs:element name="BatchBonusType" type="xs:string"/>
|
118
|
+
<xs:element name="BatchBonusQuantity" type="xs:int"/>
|
119
|
+
</xs:sequence>
|
120
|
+
</xs:complexType>
|
121
|
+
</xs:element>
|
122
|
+
<xs:element name="ReferenceCoded" minOccurs="0" maxOccurs="unbounded">
|
123
|
+
<xs:complexType>
|
124
|
+
<xs:sequence>
|
125
|
+
<xs:element name="ReferenceTypeCode" type="OrderItemReferenceTypeCode"/>
|
126
|
+
<xs:choice>
|
127
|
+
<xs:sequence>
|
128
|
+
<xs:element name="ReferenceNumber" type="xs:string"/>
|
129
|
+
<xs:element name="ReferenceDate" type="Date" minOccurs="0"/>
|
130
|
+
</xs:sequence>
|
131
|
+
<xs:element name="ReferenceDate" type="Date">
|
132
|
+
<?editx nodoc?>
|
133
|
+
</xs:element>
|
134
|
+
</xs:choice>
|
135
|
+
</xs:sequence>
|
136
|
+
</xs:complexType>
|
137
|
+
</xs:element>
|
138
|
+
<xs:element name="DateCoded" minOccurs="0" maxOccurs="unbounded">
|
139
|
+
<xs:complexType>
|
140
|
+
<xs:sequence>
|
141
|
+
<xs:element name="Date" type="Date"/>
|
142
|
+
<xs:element name="DateQualifierCode" type="OrderDateQualifierCode"/>
|
143
|
+
</xs:sequence>
|
144
|
+
</xs:complexType>
|
145
|
+
</xs:element>
|
146
|
+
<xs:element name="FillTermsCode" type="ItemFillTermsCode" minOccurs="0"/>
|
147
|
+
<xs:element name="OrderItemQualifierCoded" minOccurs="0" maxOccurs="unbounded">
|
148
|
+
<xs:complexType>
|
149
|
+
<xs:sequence>
|
150
|
+
<xs:element name="OrderItemQualifierCodeType" type="OrderItemQualifierCodeTypeCode"/>
|
151
|
+
<xs:element name="OrderItemQualifierCode" type="xs:string"/>
|
152
|
+
</xs:sequence>
|
153
|
+
</xs:complexType>
|
154
|
+
</xs:element>
|
155
|
+
<xs:element name="PricingDetail" minOccurs="0" maxOccurs="unbounded">
|
156
|
+
<xs:complexType>
|
157
|
+
<xs:sequence>
|
158
|
+
<xs:element name="Price">
|
159
|
+
<xs:complexType>
|
160
|
+
<xs:sequence>
|
161
|
+
<xs:element name="MonetaryAmount" type="xs:decimal"/>
|
162
|
+
<xs:element name="CurrencyCode" type="CurrencyCode" minOccurs="0"/>
|
163
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
164
|
+
<xs:element name="PriceQualifierCode" type="OrderPriceQualifierCode"/>
|
165
|
+
</xs:sequence>
|
166
|
+
</xs:complexType>
|
167
|
+
</xs:element>
|
168
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
169
|
+
<xs:element name="DiscountDetail" minOccurs="0" maxOccurs="unbounded">
|
170
|
+
<xs:complexType>
|
171
|
+
<xs:sequence>
|
172
|
+
<xs:element name="DiscountCodeType" type="DiscountCodeTypeCode"/>
|
173
|
+
<xs:element name="DiscountPart" maxOccurs="unbounded">
|
174
|
+
<xs:complexType>
|
175
|
+
<xs:sequence>
|
176
|
+
<xs:element name="DiscountCode" type="xs:string"/>
|
177
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
178
|
+
</xs:sequence>
|
179
|
+
</xs:complexType>
|
180
|
+
</xs:element>
|
181
|
+
</xs:sequence>
|
182
|
+
</xs:complexType>
|
183
|
+
</xs:element>
|
184
|
+
</xs:sequence>
|
185
|
+
</xs:complexType>
|
186
|
+
</xs:element>
|
187
|
+
<xs:element name="ReturnsConditions" minOccurs="0">
|
188
|
+
<xs:complexType>
|
189
|
+
<xs:sequence>
|
190
|
+
<xs:element name="LastDateForReturns" type="Date" minOccurs="0"/>
|
191
|
+
<xs:choice minOccurs="0">
|
192
|
+
<xs:element name="MaximumReturnsPercentage" type="xs:decimal"/>
|
193
|
+
<xs:element name="MaximumReturnsQuantity" type="xs:int"/>
|
194
|
+
</xs:choice>
|
195
|
+
<xs:element name="ReturnsConditionCoded" minOccurs="0" maxOccurs="unbounded">
|
196
|
+
<xs:complexType>
|
197
|
+
<xs:sequence>
|
198
|
+
<xs:element name="ReturnsConditionCodeType" type="ReturnsConditionCodeTypeCode"/>
|
199
|
+
<xs:element name="ReturnsConditionCode" type="xs:string"/>
|
200
|
+
</xs:sequence>
|
201
|
+
</xs:complexType>
|
202
|
+
</xs:element>
|
203
|
+
</xs:sequence>
|
204
|
+
</xs:complexType>
|
205
|
+
</xs:element>
|
206
|
+
<xs:element name="AdditionalService" type="AdditionalService" minOccurs="0" maxOccurs="unbounded"/>
|
207
|
+
<xs:element name="Message" type="Message" minOccurs="0" maxOccurs="unbounded"/>
|
208
|
+
</xs:sequence>
|
209
|
+
</xs:complexType>
|
210
|
+
</xs:element>
|
211
|
+
<xs:element name="Summary">
|
212
|
+
<xs:complexType>
|
213
|
+
<xs:sequence>
|
214
|
+
<xs:element name="NumberOfLines" type="xs:int"/>
|
215
|
+
<xs:element name="UnitsOrdered" type="xs:int" minOccurs="0"/>
|
216
|
+
</xs:sequence>
|
217
|
+
</xs:complexType>
|
218
|
+
</xs:element>
|
219
|
+
</xs:sequence>
|
220
|
+
<xs:attribute name="version" type="xs:string" use="required" fixed="1.1">
|
221
|
+
<?editx nodoc?>
|
222
|
+
</xs:attribute>
|
223
|
+
</xs:complexType>
|
224
|
+
<?editx title=Order?>
|
225
|
+
</xs:element>
|
226
|
+
<xs:complexType name="AdditionalPartyID">
|
227
|
+
<xs:sequence>
|
228
|
+
<xs:element name="PartyIDType" type="OtherPartyIDAgencyCode"/>
|
229
|
+
<xs:element name="Identifier" type="xs:string"/>
|
230
|
+
</xs:sequence>
|
231
|
+
</xs:complexType>
|
232
|
+
<xs:complexType name="AdditionalService">
|
233
|
+
<xs:sequence>
|
234
|
+
<xs:element name="ServiceDescriptionCoded">
|
235
|
+
<xs:complexType>
|
236
|
+
<xs:sequence>
|
237
|
+
<xs:element name="ServiceDescriptionCodeType" type="ServiceDescriptionCodeTypeCode"/>
|
238
|
+
<xs:element name="ServiceDescriptionCode" type="xs:string"/>
|
239
|
+
</xs:sequence>
|
240
|
+
</xs:complexType>
|
241
|
+
</xs:element>
|
242
|
+
<xs:element name="ServiceQuantity" minOccurs="0">
|
243
|
+
<xs:complexType>
|
244
|
+
<xs:sequence>
|
245
|
+
<xs:element name="ServiceQuantityDescription" type="xs:string" minOccurs="0"/>
|
246
|
+
<xs:element name="QuantityDetail">
|
247
|
+
<xs:complexType>
|
248
|
+
<xs:sequence>
|
249
|
+
<xs:element name="Value" type="xs:string"/>
|
250
|
+
<xs:element name="ReferenceUnit" type="xs:string" minOccurs="0"/>
|
251
|
+
</xs:sequence>
|
252
|
+
</xs:complexType>
|
253
|
+
</xs:element>
|
254
|
+
</xs:sequence>
|
255
|
+
</xs:complexType>
|
256
|
+
</xs:element>
|
257
|
+
<xs:element name="AdditionalServiceDescription" type="xs:string" minOccurs="0"/>
|
258
|
+
<xs:element name="ReferenceCoded" minOccurs="0" maxOccurs="unbounded">
|
259
|
+
<xs:complexType>
|
260
|
+
<xs:sequence>
|
261
|
+
<xs:element name="ReferenceTypeCode" type="ServiceReferenceTypeCode"/>
|
262
|
+
<xs:choice>
|
263
|
+
<xs:sequence>
|
264
|
+
<xs:element name="ReferenceNumber" type="xs:string"/>
|
265
|
+
<xs:element name="ReferenceDate" type="Date" minOccurs="0"/>
|
266
|
+
</xs:sequence>
|
267
|
+
<xs:element name="ReferenceDate" type="Date">
|
268
|
+
<?editx nodoc?>
|
269
|
+
</xs:element>
|
270
|
+
</xs:choice>
|
271
|
+
</xs:sequence>
|
272
|
+
</xs:complexType>
|
273
|
+
</xs:element>
|
274
|
+
<xs:element name="PricingDetail" minOccurs="0" maxOccurs="unbounded">
|
275
|
+
<xs:complexType>
|
276
|
+
<xs:sequence>
|
277
|
+
<xs:element name="Price">
|
278
|
+
<xs:complexType>
|
279
|
+
<xs:sequence>
|
280
|
+
<xs:element name="MonetaryAmount" type="xs:decimal"/>
|
281
|
+
<xs:element name="CurrencyCode" type="CurrencyCode" minOccurs="0"/>
|
282
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
283
|
+
<xs:element name="PriceQualifierCode" type="ServicePriceQualifierCode"/>
|
284
|
+
<xs:element name="Tax" type="Tax" minOccurs="0" maxOccurs="unbounded"/>
|
285
|
+
</xs:sequence>
|
286
|
+
</xs:complexType>
|
287
|
+
</xs:element>
|
288
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
289
|
+
<xs:element name="DiscountDetail" minOccurs="0" maxOccurs="unbounded">
|
290
|
+
<xs:complexType>
|
291
|
+
<xs:sequence>
|
292
|
+
<xs:element name="DiscountCodeType" type="DiscountCodeTypeCode"/>
|
293
|
+
<xs:element name="DiscountPart" maxOccurs="unbounded">
|
294
|
+
<xs:complexType>
|
295
|
+
<xs:sequence>
|
296
|
+
<xs:element name="DiscountCode" type="xs:string"/>
|
297
|
+
<xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0"/>
|
298
|
+
</xs:sequence>
|
299
|
+
</xs:complexType>
|
300
|
+
</xs:element>
|
301
|
+
</xs:sequence>
|
302
|
+
</xs:complexType>
|
303
|
+
</xs:element>
|
304
|
+
</xs:sequence>
|
305
|
+
</xs:complexType>
|
306
|
+
</xs:element>
|
307
|
+
</xs:sequence>
|
308
|
+
</xs:complexType>
|
309
|
+
<xs:complexType name="Carrier">
|
310
|
+
<xs:sequence>
|
311
|
+
<xs:choice>
|
312
|
+
<xs:sequence>
|
313
|
+
<xs:element name="CarrierNameCoded">
|
314
|
+
<xs:complexType>
|
315
|
+
<xs:sequence>
|
316
|
+
<xs:element name="CarrierNameCodeType" type="CarrierNameCodeTypeCode"/>
|
317
|
+
<xs:element name="CarrierNameCode" type="xs:string"/>
|
318
|
+
</xs:sequence>
|
319
|
+
</xs:complexType>
|
320
|
+
</xs:element>
|
321
|
+
<xs:element name="CarrierName" type="CarrierName" minOccurs="0"/>
|
322
|
+
</xs:sequence>
|
323
|
+
<xs:element name="CarrierName" type="CarrierName"/>
|
324
|
+
</xs:choice>
|
325
|
+
<xs:element name="CarrierService" type="xs:string" minOccurs="0"/>
|
326
|
+
</xs:sequence>
|
327
|
+
</xs:complexType>
|
328
|
+
<xs:complexType name="CommunicationDetails">
|
329
|
+
<xs:sequence>
|
330
|
+
<xs:element name="CommunicationTypeCode" type="CommunicationTypeCode"/>
|
331
|
+
<xs:element name="CommunicationLocator" type="xs:string"/>
|
332
|
+
</xs:sequence>
|
333
|
+
</xs:complexType>
|
334
|
+
<xs:complexType name="ContactPerson">
|
335
|
+
<xs:sequence>
|
336
|
+
<xs:element name="ContactRoleCode" type="xs:string" minOccurs="0"/>
|
337
|
+
<xs:element name="PersonName" type="xs:string"/>
|
338
|
+
<xs:element name="CommunicationDetails" minOccurs="0" maxOccurs="unbounded">
|
339
|
+
<xs:complexType>
|
340
|
+
<xs:sequence>
|
341
|
+
<xs:element name="CommunicationTypeCode" type="CommunicationTypeCode"/>
|
342
|
+
<xs:element name="CommunicationLocator" type="xs:string"/>
|
343
|
+
</xs:sequence>
|
344
|
+
</xs:complexType>
|
345
|
+
</xs:element>
|
346
|
+
</xs:sequence>
|
347
|
+
</xs:complexType>
|
348
|
+
<xs:complexType name="Delivery">
|
349
|
+
<xs:choice>
|
350
|
+
<xs:sequence>
|
351
|
+
<xs:element name="DeliveryTimeCode" type="DeliveryTimeCode"/>
|
352
|
+
<xs:element name="VendorDeliveryService" type="VendorDeliveryService" minOccurs="0"/>
|
353
|
+
<xs:element name="Carrier" type="Carrier" minOccurs="0"/>
|
354
|
+
<xs:element name="DeliveryNotes" type="DeliveryNotes" minOccurs="0"/>
|
355
|
+
</xs:sequence>
|
356
|
+
<xs:sequence>
|
357
|
+
<xs:element name="VendorDeliveryService" type="VendorDeliveryService"/>
|
358
|
+
<xs:element name="Carrier" type="Carrier" minOccurs="0"/>
|
359
|
+
<xs:element name="DeliveryNotes" type="DeliveryNotes" minOccurs="0"/>
|
360
|
+
</xs:sequence>
|
361
|
+
<xs:sequence>
|
362
|
+
<xs:element name="Carrier" type="Carrier"/>
|
363
|
+
<xs:element name="DeliveryNotes" type="DeliveryNotes" minOccurs="0"/>
|
364
|
+
</xs:sequence>
|
365
|
+
<xs:element name="DeliveryNotes" type="DeliveryNotes"/>
|
366
|
+
</xs:choice>
|
367
|
+
</xs:complexType>
|
368
|
+
<xs:complexType name="Location">
|
369
|
+
<xs:choice>
|
370
|
+
<xs:sequence>
|
371
|
+
<xs:element name="LocationIdentifier" maxOccurs="unbounded">
|
372
|
+
<xs:complexType>
|
373
|
+
<xs:sequence>
|
374
|
+
<xs:element name="LocationIDType" type="LocationIDAgencyCode"/>
|
375
|
+
<xs:element name="IDTypeName" type="xs:string" minOccurs="0"/>
|
376
|
+
<xs:element name="IDValue" type="xs:string"/>
|
377
|
+
</xs:sequence>
|
378
|
+
</xs:complexType>
|
379
|
+
</xs:element>
|
380
|
+
<xs:element name="LocationName" type="LocationName" minOccurs="0"/>
|
381
|
+
</xs:sequence>
|
382
|
+
<xs:element name="LocationName" type="LocationName"/>
|
383
|
+
</xs:choice>
|
384
|
+
</xs:complexType>
|
385
|
+
<xs:complexType name="Message">
|
386
|
+
<xs:sequence>
|
387
|
+
<xs:element name="MessageType" type="MessageTypeCode"/>
|
388
|
+
<xs:element name="MessageLine" type="xs:string" maxOccurs="unbounded"/>
|
389
|
+
</xs:sequence>
|
390
|
+
</xs:complexType>
|
391
|
+
<xs:complexType name="Party">
|
392
|
+
<xs:sequence>
|
393
|
+
<xs:element name="PartyID" type="PartyID"/>
|
394
|
+
<xs:element name="AdditionalPartyID" type="AdditionalPartyID" minOccurs="0" maxOccurs="unbounded"/>
|
395
|
+
<xs:element name="PartyName" type="PartyName" minOccurs="0"/>
|
396
|
+
<xs:element name="PostalAddress" type="PostalAddress" minOccurs="0"/>
|
397
|
+
<xs:element name="CommunicationDetails" type="CommunicationDetails" minOccurs="0" maxOccurs="unbounded"/>
|
398
|
+
<xs:element name="ContactPerson" type="ContactPerson" minOccurs="0" maxOccurs="unbounded"/>
|
399
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
400
|
+
</xs:sequence>
|
401
|
+
</xs:complexType>
|
402
|
+
<xs:complexType name="PartyID">
|
403
|
+
<xs:sequence>
|
404
|
+
<xs:element name="PartyIDType" type="PartyIDAgencyCode"/>
|
405
|
+
<xs:element name="Identifier" type="xs:string"/>
|
406
|
+
</xs:sequence>
|
407
|
+
</xs:complexType>
|
408
|
+
<xs:complexType name="PartyName">
|
409
|
+
<xs:sequence>
|
410
|
+
<xs:element name="NameLine" type="xs:string" maxOccurs="unbounded"/>
|
411
|
+
</xs:sequence>
|
412
|
+
</xs:complexType>
|
413
|
+
<xs:complexType name="PaymentTerms">
|
414
|
+
<xs:choice>
|
415
|
+
<xs:element name="NetDaysDue" type="xs:int"/>
|
416
|
+
<xs:element name="NetDueDate" type="Date"/>
|
417
|
+
<xs:element name="ExtendedDays" type="xs:int"/>
|
418
|
+
</xs:choice>
|
419
|
+
</xs:complexType>
|
420
|
+
<xs:complexType name="PostalAddress">
|
421
|
+
<xs:sequence>
|
422
|
+
<xs:element name="AddressLine" type="xs:string" maxOccurs="unbounded"/>
|
423
|
+
<xs:element name="PostalTownCity" type="xs:string" minOccurs="0"/>
|
424
|
+
<xs:element name="PostalCode" type="xs:string" minOccurs="0"/>
|
425
|
+
<xs:element name="CountrySubdivision" type="xs:string" minOccurs="0"/>
|
426
|
+
<xs:element name="CountrySubdivisionCode" type="CountrySubEntityCode" minOccurs="0"/>
|
427
|
+
<xs:element name="Country" type="xs:string" minOccurs="0"/>
|
428
|
+
<xs:element name="CountryCode" type="CountryCode" minOccurs="0"/>
|
429
|
+
</xs:sequence>
|
430
|
+
</xs:complexType>
|
431
|
+
<xs:complexType name="Tax">
|
432
|
+
<xs:sequence>
|
433
|
+
<xs:element name="TaxTypeCode" type="xs:string"/>
|
434
|
+
<xs:element name="TaxRateCode" type="xs:string" minOccurs="0"/>
|
435
|
+
<xs:element name="Percent" type="xs:decimal" minOccurs="0"/>
|
436
|
+
<xs:element name="AmountTaxable" type="xs:decimal" minOccurs="0"/>
|
437
|
+
<xs:element name="TaxAmount" type="xs:decimal" minOccurs="0"/>
|
438
|
+
</xs:sequence>
|
439
|
+
</xs:complexType>
|
440
|
+
<xs:simpleType name="Date">
|
441
|
+
<xs:restriction base="xs:string">
|
442
|
+
<xs:pattern value="2\d\d\d(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-8])"/>
|
443
|
+
<xs:pattern value="200[048]0229"/>
|
444
|
+
<xs:pattern value="2[1-9]0[48]0229"/>
|
445
|
+
<xs:pattern value="2\d([2468][048]|[13579][26])0229"/>
|
446
|
+
<xs:pattern value="2\d\d\d(0[13-9]|1[0-2])(29|30)"/>
|
447
|
+
<xs:pattern value="2\d\d\d(0[13578]|1[02])31"/>
|
448
|
+
</xs:restriction>
|
449
|
+
</xs:simpleType>
|
450
|
+
<xs:simpleType name="DateOrDateTime">
|
451
|
+
<xs:union memberTypes="Date DateTime"/>
|
452
|
+
</xs:simpleType>
|
453
|
+
<xs:simpleType name="DateTime">
|
454
|
+
<xs:restriction base="xs:string">
|
455
|
+
<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))?"/>
|
456
|
+
<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))?"/>
|
457
|
+
<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))?"/>
|
458
|
+
<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))?"/>
|
459
|
+
<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))?"/>
|
460
|
+
<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))?"/>
|
461
|
+
</xs:restriction>
|
462
|
+
</xs:simpleType>
|
463
|
+
<xs:simpleType name="DeliveryNotes">
|
464
|
+
<xs:restriction base="xs:string"/>
|
465
|
+
</xs:simpleType>
|
466
|
+
<xs:simpleType name="LocationName">
|
467
|
+
<xs:restriction base="xs:string"/>
|
468
|
+
</xs:simpleType>
|
469
|
+
<xs:simpleType name="CarrierName">
|
470
|
+
<xs:restriction base="xs:string"/>
|
471
|
+
</xs:simpleType>
|
472
|
+
<xs:simpleType name="VendorDeliveryService">
|
473
|
+
<xs:restriction base="xs:string"/>
|
474
|
+
</xs:simpleType>
|
475
|
+
</xs:schema>
|