-
Notifications
You must be signed in to change notification settings - Fork 0
/
oiab2b_v2.xsd
1394 lines (1393 loc) · 76.5 KB
/
oiab2b_v2.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8" ?>
<!--
Outdoor B2B Spec Version 2.0
-->
<!--
Personal information - including credit card data - can be transmitted in a document derived from this schema.
Obey local, state, and federal laws and regulations regarding transmission and use of such data and documents.
-->
<!--
TO ENSURE PROPER VALIDATION AND ERROR HANDLING, OIA B2B PARTNERS ARE REQUIRED TO ENSURE THAT ALL RELATED
DOCUMENTS ARE VALIDATED AGAINST THE OFFICIAL NAMESPACE URI. THIS GUARANTEES ACCURATE VALIDATION, EVEN IF
THE MAPPED MinorVersion IS OLDER THAN THE VERSION USED BY THE SYSTEM GENERATING THE REQUEST/RESPONSE.
-->
<!--
OIA B2B V2 specifications extend beyond the .wsdl and .xsd documents and include standards for format,
transport, authentication, and security. All additional standards and specification information is
available in the OIA B2B whitepaper document on the OIA website at
http://www.outdoorindustry.org/research.industry.php?action=detail&research_id=36
-->
<xs:schema xmlns="http://ws.outdoorindustry.org/v2" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://ws.outdoorindustry.org/v2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:documentation>Outdoor Industry Association B2B XML schema, version 2.0</xs:documentation>
</xs:annotation>
<!-- Predefined Types -->
<xs:simpleType name="MajorVersion">
<xs:restriction base="xs:integer">
<xs:enumeration value="2" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="MinorVersion">
<xs:restriction base="xs:integer">
<xs:enumeration value="0" />
<xs:enumeration value="1" />
<xs:enumeration value="2" />
<xs:enumeration value="3" />
<xs:enumeration value="4" />
<xs:enumeration value="5" />
<xs:enumeration value="6" />
<xs:enumeration value="7" />
<xs:enumeration value="8" />
<xs:enumeration value="9" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="BetaReleaseName">
<xs:annotation>
<xs:documentation>Optional designation for beta development</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token" />
</xs:simpleType>
<xs:simpleType name="BetaSubVersion">
<xs:annotation>
<xs:documentation>Optional designation for beta development</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:integer" />
</xs:simpleType>
<xs:complexType name="OIAVersion">
<xs:annotation>
<xs:documentation>Required - contains both major and minor version numbers of the OIA SPEC with optional BetaSubVersion for SPEC development.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="MajorVersion" type="MajorVersion" />
<xs:element name="MinorVersion" type="MinorVersion" />
<xs:element minOccurs="0" name="BetaReleaseName" type="BetaReleaseName" />
<xs:element minOccurs="0" name="BetaSubVersion" type="BetaSubVersion" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="BaseID">
<xs:annotation>
<xs:documentation>A unique identifier.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:token" />
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="ID">
<xs:annotation>
<xs:documentation>A globally unique identifier. The ID should never be repeated. GUID's work well for this field.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:restriction base="BaseID">
<xs:minLength value="1" />
<xs:maxLength value="200" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="UPC_EAN">
<xs:annotation>
<xs:documentation>The UPC or EAN number that is assigned to a product. All parties are expected to use the UPC/EAN code and their descendants as the primary identifier of an item. In general, each catalog should only have one occurrence of a UPC. Or another way of saying it, there should not be multiple occurrences of the same UPC for different products in the catalog. The UPC field is the main unique product identifier used in most of the B2B documents. UPC's should also not be reused over time. Once it is assigned to a specific product, it should not be reassigned to a new product, even if the old product is no longer available.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:pattern value="[0-9]{6,14}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Gender">
<xs:restriction base="xs:token">
<xs:enumeration value="Mens" />
<xs:enumeration value="Womens" />
<xs:enumeration value="Boys" />
<xs:enumeration value="Girls" />
<xs:enumeration value="Unisex" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ColorCode">
<xs:annotation>
<xs:documentation>Accomodates a color code and allows for specification of the color code type. Examples: RGB, Pantone, etc.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="ColorCodeType" type="xs:token" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="Currency">
<xs:restriction base="xs:token">
<xs:enumeration value="USD" />
<xs:enumeration value="CAD" />
<xs:enumeration value="EUR" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="WeightUnits">
<xs:restriction base="xs:token">
<xs:enumeration value="lb" />
<xs:enumeration value="kg" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="MonetaryAmount">
<xs:annotation>
<xs:documentation>Type for money fields - requires currency attribute according to ISO 4217 Currency Abbreviation</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute name="Currency" type="Currency" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="Weight">
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute name="WeightUnits" type="WeightUnits" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="POType">
<xs:annotation>
<xs:documentation>Indicates what the purpose of this PO is.</xs:documentation>
<xs:documentation>'Standalone' is a standard PO (often also referred to as an 'ASAP' order).</xs:documentation>
<xs:documentation>'Dropship' indicates that the PO is to be shipped to an address other than a known retailer address, usually the end customer.</xs:documentation>
<xs:documentation>'Preseason' is a standard preseason order. If intending to 'release' POs against a master PO at a latter date, use the 'Bulk' POType
</xs:documentation>
<xs:documentation>'EmployeePurchase' indicates a PO for a retail store employee using a vendor EP purchase plan, usually but not always sent to retailer address
</xs:documentation>
<xs:documentation>'ProPurchase' indicates an order for Pro Purchase, not a retail store employee. More often used internally by vendors. </xs:documentation>
<xs:documentation>'Bulk' is similar to Preseason but 'reserves' product and doesn't ship as ordered by quantity or ship date, requires a 'Release' PO that specifies partial or complete release of the reserved quantities from the original Bulk; more than one 'Release' event / PO may be allowed against each Bulk</xs:documentation>
<xs:documentation>'Release'</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:enumeration value="Standalone" />
<xs:enumeration value="Dropship" />
<xs:enumeration value="Preseason" />
<xs:enumeration value="EmployeePurchase" />
<xs:enumeration value="ProPurchase" />
<xs:enumeration value="Bulk" />
<xs:enumeration value="Release" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FOBPoint">
<xs:annotation>
<xs:documentation>Freight On Board</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:enumeration value="Origin" />
<xs:enumeration value="Destination" />
<xs:enumeration value="PerContract" />
<xs:enumeration value="Other" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ShippingAgent">
<xs:restriction base="xs:token">
<xs:enumeration value="UPS" />
<xs:enumeration value="FedEx" />
<xs:enumeration value="Purolator" />
<xs:enumeration value="PostalService" />
<xs:enumeration value="CustomerPickup" />
<xs:enumeration value="VendorDelivery" />
<xs:enumeration value="PerContract" />
<xs:enumeration value="Other" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DeliverySpecification">
<xs:annotation>
<xs:documentation>Used to specify the class of shipping to be used.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:enumeration value="NextAMAir" />
<xs:enumeration value="NextDayAir" />
<xs:enumeration value="2DayAir" />
<xs:enumeration value="3DayAir" />
<xs:enumeration value="Ground" />
<xs:enumeration value="ParcelPost" />
<xs:enumeration value="CustomerPickup" />
<xs:enumeration value="PerContract" />
<xs:enumeration value="Other" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FreightBillingMethod">
<xs:restriction base="xs:token">
<xs:enumeration value="Prepaid" />
<xs:enumeration value="PrepayAndAdd" />
<xs:enumeration value="Collect" />
<xs:enumeration value="BillToRetailerAccount" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Attribute">
<xs:sequence>
<xs:element name="AttributeName" type="xs:token" />
<xs:element name="AttributeValue" type="xs:token" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="AttributesExtended">
<xs:annotation>
<xs:documentation>Optional: This element provides a method for the retailer to include more attributes for the product than just color and size.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="Attribute" type="Attribute" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="BaseTerms">
<xs:annotation>
<xs:documentation>Optional. </xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="NetDays" type="xs:integer">
<xs:annotation>
<xs:documentation>Number of days from the invoice date that the net value of the invoice is due.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="TermsDescription" type="xs:token">
<xs:annotation>
<xs:documentation>Freeform description of the payment terms for this PO</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="DueDate" type="xs:date" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="BaseDiscount">
<xs:sequence>
<xs:element name="DiscountPercent" type="xs:decimal">
<xs:annotation>
<xs:documentation>Percent discount of the net invoice to be deducted if invoice is paid DiscountDays (see below) after the invoice date</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DiscountDays" type="xs:integer" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="Vendor">
<xs:annotation>
<xs:documentation>Base type for vendor information.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="VendorID" type="xs:token">
<xs:annotation>
<xs:documentation>Vendor identifier. This identifier is agreed upon between the retailer and the vendor. Often, this matches the vendor identifier found in the retailer's system. If no such identifier has been agreed upon, use a string derived from vendor's international phone number, i.e. +1-555-666-7777 becomes 15556667777.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VendorName" type="xs:token">
<xs:annotation>
<xs:documentation>Vendor name. Use the name of the business.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorNumber" type="xs:token">
<xs:annotation>
<xs:documentation>Vendor number (optional). If used, this number is agreed upon between the retailer and the vendor; typically assigned by the retailer based on information in retailer's system.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="AttributesExtended" type="AttributesExtended" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="Retailer">
<xs:annotation>
<xs:documentation>Base type for retailer information.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="RetailerID" type="xs:token">
<xs:annotation>
<xs:documentation>Retailer identifier. This identifier is agreed upon between the retailer and the vendor. Often, this matches the retailer identifier found in the vendor's system. If no such identifier has been agreed upon, use a string derived from retailer's international phone number, i.e. +1-555-666-7777 becomes 15556667777.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RetailerName" type="xs:token">
<xs:annotation>
<xs:documentation>Retailer name. Use the name of the business.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="RetailerCustomerNumber" type="xs:token">
<xs:annotation>
<xs:documentation>Retailer number (optional). If used, this number is agreed upon betwee the retailer and the vendor; typically assigned by the vendor based on information in vendor's system.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="AttributesExtended" type="AttributesExtended" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="OIAHeader">
<xs:annotation>
<xs:documentation>Combined header information for all document exchanges</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="DocumentID" type="ID" />
<xs:element name="DocumentVersion" type="OIAVersion">
<xs:annotation>
<xs:documentation>Schema version used by the system generating the document. If the server supports multiple schema versions, responses should (but are not required to) be returned according to the same schema version. If a request is submitted using a greater MinorVersion than supported by the server, the server may choose to reject the request with an appropriate message. The server may also, however, choose to accept such documents and attempt parsing. TO ENSURE PROPER VALIDATION AND ERROR HANDLING, OIA B2B PARTNERS ARE REQUIRED TO ENSURE THAT ALL RELATED DOCUMENTS ARE VALIDATED AGAINST THE OFFICIAL NAMESPACE URI. THIS GUARANTEES ACCURATE VALIDATION, EVEN IF THE MAPPED MinorVersion IS OLDER THAN THE VERSION USED BY THE SYSTEM GENERATING THE REQUEST/RESPONSE.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="RequestDateTime" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Date and time of the generated request.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ResponseDateTime" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Date and time of the generated response.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Vendor" type="Vendor" />
<xs:element name="Retailer" type="Retailer" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="Address">
<xs:annotation>
<xs:documentation>Base type for physical street address.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="LocationName" type="xs:token">
<xs:annotation>
<xs:documentation>Addressee name (optional). Often the name of a company or individual.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Attn" type="xs:token">
<xs:annotation>
<xs:documentation>Attention of individual or department (optional).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Address1" type="xs:token">
<xs:annotation>
<xs:documentation>First address line.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Address2" type="xs:token">
<xs:annotation>
<xs:documentation>Second address line (optional).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Address3" type="xs:token">
<xs:annotation>
<xs:documentation>Third address line (optional).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ResidentialAddress" type="xs:boolean">
<xs:annotation>
<xs:documentation>Optional. Indicates whether the address is residential or not. Note: If absent on a PO, it will be interpreted according to context; 'true' if POType is 'Dropship', 'false' if POType is 'Standalone', 'Forecast', or 'Preseason'. For any other POType it will be interpreted according to initial PO.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="City" type="xs:token">
<xs:annotation>
<xs:documentation>Name of city, town, or equivalent for this address.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="State" type="xs:token">
<xs:annotation>
<xs:documentation>Standardized code or abbreviation of the state or province name for this address. For U.S. states, use the 2 letter state code, i.e. 'CO' for Colorado. Note: Certain countries do not normally include the name, code, or abbreviation of the state or province with the address. In such cases, leave this element blank.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PostalCode" type="xs:token">
<xs:annotation>
<xs:documentation>ZIP or Postal code.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Country">
<xs:annotation>
<xs:documentation>ISO 3166 three-letter country code (optional). Assumed to be 'USA' if empty or omitted.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:pattern value="[A-Z]{3}" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element minOccurs="0" name="PhoneNumber" type="xs:token">
<xs:annotation>
<xs:documentation>Phone number associated with address (optional).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="AttributesExtended" type="AttributesExtended" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="BaseLineItem">
<xs:annotation>
<xs:documentation>Note: If a particular UPC does not appear in this list, the assumption is that it is not available for purchase. Most common reasons for this are: 1) the stock level currently is zero, 2) an incorrect UPC code was supplied in the request, or 3) the supplied UPC code is no longer available for unspecified reasons. The list shows the current inventory levels based on the request and does not in any way indicate recent changes in inventory.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Description" type="xs:token">
<xs:annotation>
<xs:documentation>Describes what the product is. Ex/ Water Bottle</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UPC_EAN" type="UPC_EAN" />
<xs:element minOccurs="0" name="Gender" type="Gender" />
<xs:element minOccurs="0" name="VendorStyleNumber" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. Vendor Style number or identifier. Generally, the style will designate a group of products like a jacket. Allows the grouping of items when there are size runs and/or multiple colors.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorSKU" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. Vendor assigned Stock Keeping Unit</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorColor" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. Vendor assigned color for the item.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorColorCode" type="ColorCode">
<xs:annotation>
<xs:documentation>Optional. Vendor assigned color code for the item.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorSize" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. Vendor assigned size for the item.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="BuyerSKU" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. Buyer assigned Stock Keeping Unit</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="BuyerColor" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. Color assigned to product by the retailer. May be different from VendorColor.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="BuyerColorCode" type="ColorCode">
<xs:annotation>
<xs:documentation>Optional. Buyer assigned color code for the item.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="BuyerSize" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. Size assigned to product by the retailer. May be different from VendorSize.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="UnitOfMeasure" type="xs:token">
<xs:annotation>
<xs:documentation>The unit of measure of the product.</xs:documentation>
<xs:documentation>It is highly recommended that this field is consistent. Use EA for each, PR for pair, DZ for dozen. Other units may be used upon coordination between the retailer and vendor</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="AttributesExtended" type="AttributesExtended" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="BaseCatalog">
<xs:sequence>
<xs:element name="CatalogID" type="ID" />
<xs:element name="CatalogDescription">
<xs:annotation>
<xs:documentation>Short description of what the catalog represents. Keep in mind that this field will probably be displayed to an end user. Please in include information that will allow the user to choose one catalog over another.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:minLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CatalogEffectiveDate" type="xs:date">
<xs:annotation>
<xs:documentation>The date that the retailer can start to order product from this catalog. This date does not mean the available ship date. Essentially the vendor systems need to be ready to accept a PO based on this catalog by the CatalogEffectiveDate. This date must match the date in the CatalogEffectiveDate in the Catalog document itself.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CatalogEndDate" type="xs:date">
<xs:annotation>
<xs:documentation>Represents the date that the retailer may no longer place a PO with the vendor based on this catalog. This date must match the date in the CatalogEndDate in the Catalog document itself.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="CatalogAvailableToShipDate" type="xs:date">
<xs:annotation>
<xs:documentation>The date the product listed in the catalog will be available to ship. This date can be overridden by the same field in the product element below.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="LastAvailableToShipDate" type="xs:date">
<xs:annotation>
<xs:documentation>The date the product listed in the catalog will no longer be available to be shipped. This date can be overridden by the same field in the product element below. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="PublicationDate" type="xs:date">
<xs:annotation>
<xs:documentation>The date that the catalog was published and made available to retailers or consumers of the catalog. May be different from the GenerationDate element. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ContractReference" type="xs:token">
<xs:annotation>
<xs:documentation>If the catalog is based on a particular contractual agreement, the agreement can be referenced with this field.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ContractDate" type="xs:date">
<xs:annotation>
<xs:documentation>If the catalog is based on a particular contractual agreement, the date agreement can be referenced with this field.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Comment" type="xs:token" />
<xs:element minOccurs="0" name="AttributesExtended" type="AttributesExtended" />
</xs:sequence>
</xs:complexType>
<!-- Documents -->
<xs:complexType name="AvailableToSell">
<xs:annotation>
<xs:documentation>Document listing product availability by UPC. Reported availability should reflect the current and actual 'ready to ship' inventory levels and not include restricted/reserved/future inventory. Rsponse DateTime is the actual date and time when supplied ATS data was recorded. Availability in this document must be current as of this date.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Header" type="OIAHeader" />
<xs:element name="Products">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="LineItem">
<xs:annotation>
<xs:documentation>Note: If a particular UPC does not appear in this list, the assumption is that it is not available for purchase. Most common reasons for this are: 1) the stock level currently is zero, 2) an incorrect UPC code was supplied in the request, or 3) the supplied UPC code is no longer available for unspecified reasons. The list shows the current inventory levels based on the request and does not in any way indicate recent changes in inventory.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent mixed="false">
<xs:extension base="BaseLineItem">
<xs:sequence>
<xs:element name="AvailableQuantity" type="xs:integer">
<xs:annotation>
<xs:documentation>The actual quantity of the above UPC/EAN that is available for immediate shipment. The quantity is subject to change at any time. A buyer should query the vendor's systems before final order placement as necessary. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="NextAvailableDate" type="xs:date">
<xs:annotation>
<xs:documentation>The next date that a new quantity of the item is expected to be available. ex/ The current AvailableQuantity might be zero, but in 2 weeks (specified by this date), there should be 20 more available (see NextAvailableQuantity)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="NextAvailableQuantity" type="xs:integer">
<xs:annotation>
<xs:documentation>The quantity expected to be available on NextAvailableDate.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="AttributesExtended" type="AttributesExtended" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="Invoice">
<xs:annotation>
<xs:documentation>Invoice document</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Header" type="OIAHeader" />
<xs:element name="InvoiceNumber" type="xs:token" />
<xs:element name="PONumber" type="xs:token">
<xs:annotation>
<xs:documentation>PONumber is an identifier that the retailer assigns to the PO. Often, this identifier will be referenced in verbal or written communication between the retailer and vendor. The PONumber needs to be unique in the interactions for one vendor/retailer partnership. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TrackingNumber" type="xs:token" />
<xs:element name="PODate" type="xs:date">
<xs:annotation>
<xs:documentation>Date the PO was submitted</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ShipDate" type="xs:date">
<xs:annotation>
<xs:documentation>Date the items were shipped</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="InvoiceDate" type="xs:date">
<xs:annotation>
<xs:documentation>Date of the Invoice</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DueDays" type="xs:integer">
<xs:annotation>
<xs:documentation>Number of days from the invoice date that the invoice is due.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DueDate" type="xs:date">
<xs:annotation>
<xs:documentation>Date that payment is due</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalLineItems" type="xs:integer">
<xs:annotation>
<xs:documentation>Number of line items included in the Invoice. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalQuantity" type="xs:integer">
<xs:annotation>
<xs:documentation>The total number of items that are being invoiced.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalWeight" type="Weight">
<xs:annotation>
<xs:documentation>The total weight of the items that are being invoiced.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="InvoiceTotal" type="MonetaryAmount">
<xs:annotation>
<xs:documentation>The total monetary value represented by this Invoice.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Taxes">
<xs:annotation>
<xs:documentation>Tax amounts included in the InvoiceTotal.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="TaxAmount" type="MonetaryAmount" />
<xs:element name="TaxPercent" type="xs:decimal" />
<xs:element name="TaxID" type="xs:token" />
<xs:element name="TaxableAmount" type="MonetaryAmount">
<xs:annotation>
<xs:documentation>The monetary amount that the TaxPercent is applied to.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PaidTotal" type="MonetaryAmount">
<xs:annotation>
<xs:documentation>The total amount paid.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="OutstandingTotal" type="MonetaryAmount">
<xs:annotation>
<xs:documentation>The total amount outstanding.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Buyer">
<xs:annotation>
<xs:documentation>The buyer responsible for this purchase order. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="BuyerName" type="xs:token" />
<xs:element name="BuyerPhone" type="xs:token" />
<xs:element minOccurs="0" name="BuyerEMail" type="xs:token" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ShipTo" type="Address">
<xs:annotation>
<xs:documentation>The ship to address for the items on this PO</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorShipToID" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. The vendor system will sometimes have a shipping address identifier for the retailers locations. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BillTo" type="Address">
<xs:annotation>
<xs:documentation>The billing address that the invoice for this PO should be mailed to. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorBillToID" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. The vendor system will sometimes have a billing address identifier for the retailers locations. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RemitTo" type="Address">
<xs:annotation>
<xs:documentation>The address where payment should be sent. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="InvoiceNote" type="xs:token">
<xs:annotation>
<xs:documentation>Free form notes about the invoice. If included, they should be read by the vendor.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Products">
<xs:annotation>
<xs:documentation>Product section of the PO</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="LineItem">
<xs:annotation>
<xs:documentation>Repeating element that contains an individual item</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent mixed="false">
<xs:extension base="BaseLineItem">
<xs:sequence>
<xs:element name="Quantity" type="xs:integer">
<xs:annotation>
<xs:documentation>The number of items (designated by the UPC_EAN) that are being ordered. If the POType is Change, this field is used to indicate the new quantity to be ordered. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UnitPrice" type="MonetaryAmount">
<xs:annotation>
<xs:documentation>The price per item (designated by the UPC_EAN).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LineNumber" type="xs:integer">
<xs:annotation>
<xs:documentation>Sequential number for each item in the PO. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="LineComment" type="xs:token" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="AttributesExtended" type="AttributesExtended" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="PO">
<xs:annotation>
<xs:documentation>Purchase Order document</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Header" type="OIAHeader" />
<xs:element name="POType" type="POType" />
<xs:element name="PONumber" type="xs:token">
<xs:annotation>
<xs:documentation>PONumber is an identifier that the retailer assigns to the PO. Often, this identifier will be referenced in verbal or written communication between the retailer and vendor. The PONumber needs to be unique in the interactions for one vendor/retailer partnership. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="CatalogID" type="ID">
<xs:annotation>
<xs:documentation>References the Catalog DocumentID that was used to determine products, description, pricing, etc. for items on this PO. </xs:documentation>
<xs:documentation>Some vendors may require this field so that they can link the PO back to the catalog the PO was written against. Could be used to validate product pricing and accessibility. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PODate" type="xs:date">
<xs:annotation>
<xs:documentation>Date the PO was submitted</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalLineItems" type="xs:integer">
<xs:annotation>
<xs:documentation>Number of line items included in the PO. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="POTotal" type="MonetaryAmount">
<xs:annotation>
<xs:documentation>The total monetary value represented by this PO.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Promo" type="xs:token">
<xs:annotation>
<xs:documentation>Optional: Promotional code used on a per relationship basis. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Buyer">
<xs:annotation>
<xs:documentation>The buyer responsible for this purchase order. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="BuyerName" type="xs:token" />
<xs:element name="BuyerPhone" type="xs:token" />
<xs:element minOccurs="0" name="BuyerEMail" type="xs:token" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Transport">
<xs:annotation>
<xs:documentation>Specifies the shipping and transportation parameters to be used.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="FOBPoint" type="FOBPoint" />
<xs:element minOccurs="0" name="FOBPointOther" type="xs:token" />
<xs:element name="ShippingAgent" type="ShippingAgent" />
<xs:element minOccurs="0" name="ShippingAgentOther" type="xs:token" />
<xs:element name="DeliverySpecification" type="DeliverySpecification" />
<xs:element minOccurs="0" name="DeliverySpecificationOther" type="xs:token" />
<xs:element name="FreightBillingMethod" type="FreightBillingMethod" />
<xs:element minOccurs="0" name="BillToRetailerAccountInfo" type="xs:token">
<xs:annotation>
<xs:documentation>Used to provide account information to the vendor about the retailer's shipping account. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="TransportComments" type="xs:token" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="Terms">
<xs:annotation>
<xs:documentation>Optional. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent mixed="false">
<xs:extension base="BaseTerms">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Discounts" type="BaseDiscount" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="CCPayment">
<xs:annotation>
<xs:documentation>Optional</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="CCType">
<xs:annotation>
<xs:documentation>What type of credit card. visa, mc, etc.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="visa" />
<xs:enumeration value="mc" />
<xs:enumeration value="amex" />
<xs:enumeration value="discover" />
<xs:enumeration value="other" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element minOccurs="0" name="CCTypeOther" type="xs:token">
<xs:annotation>
<xs:documentation>If 'other' is specified above this needs to have a value. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CCNumber" type="xs:token">
<xs:annotation>
<xs:documentation>The Credit Card number</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CCExpiration">
<xs:annotation>
<xs:documentation>Credit Card expiration date in the form MM/YY</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:pattern value="[0-1]{1}[0-9]{1}/[0-9]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element minOccurs="0" name="CCSecurityCode">
<xs:annotation>
<xs:documentation>Optional. The Credit Card security code.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:pattern value="[0-9]{3,4}" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CCName" type="xs:token">
<xs:annotation>
<xs:documentation>The name, as it appears, on the credit card. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CCAddress" type="Address">
<xs:annotation>
<xs:documentation>The billing address contact email address.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="CCPhone" type="xs:token">
<xs:annotation>
<xs:documentation>The billing address phone number</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="CCEMail" type="xs:token">
<xs:annotation>
<xs:documentation>The billing address contact email address.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ShipTo" type="Address">
<xs:annotation>
<xs:documentation>The ship to address for the items on this PO</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorShipToID" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. The vendor system will sometimes have a shipping address identifier for the retailers locations. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BillTo" type="Address">
<xs:annotation>
<xs:documentation>The billing address that the invoice for this PO should be mailed to. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="VendorBillToID" type="xs:token">
<xs:annotation>
<xs:documentation>Optional. The vendor system will sometimes have a billing address identifier for the retailers locations. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="CancelAfter" type="xs:date">
<xs:annotation>
<xs:documentation>This PO should be cancelled on this date</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="DeliveryRequested" type="xs:date">
<xs:annotation>
<xs:documentation>The PO shipment is requested to arrive on this date.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ShipNotBefore" type="xs:date">
<xs:annotation>
<xs:documentation>Do not ship the PO before this date.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="DeliverNotBefore" type="xs:date">
<xs:annotation>
<xs:documentation>The PO shipment should not be delivered before this date</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="DeliverNoLater" type="xs:date">
<xs:annotation>
<xs:documentation>The PO shipment should not be delivered after this date</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="RequestedShipDate" type="xs:date">
<xs:annotation>
<xs:documentation>A request that the PO shipment be shipped on this date.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="OrderNote" type="xs:token">
<xs:annotation>
<xs:documentation>Free form notes about the order. If included, they should be read by the vendor.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ShippingNote" type="xs:token">
<xs:annotation>
<xs:documentation>Free form notes about the order. If included, they should be read by the vendor.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Products">
<xs:annotation>
<xs:documentation>Product section of the PO</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="LineItem">
<xs:annotation>
<xs:documentation>Repeating element that contains an individual item</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent mixed="false">
<xs:extension base="BaseLineItem">
<xs:sequence>
<xs:element name="Quantity" type="xs:integer">
<xs:annotation>
<xs:documentation>The number of items (designated by the UPC_EAN) that are being ordered. If the POType is Change, this field is used to indicate the new quantity to be ordered. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UnitPrice" type="MonetaryAmount">
<xs:annotation>
<xs:documentation>The price per item (designated by the UPC_EAN).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LineNumber" type="xs:integer">
<xs:annotation>
<xs:documentation>Sequential number for each item in the PO. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="LineComment" type="xs:token" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="AttributesExtended" type="AttributesExtended" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="DocumentReceipt">
<xs:annotation>
<xs:documentation>Basic acknowledgement that a document was received and properly parsed.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Header" type="OIAHeader" />
<xs:element name="DocType">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="PO" />
<xs:enumeration value="Invoice" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="AcknowledgedDocumentID" type="ID">