amazon-mws 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. data/.gitignore +1 -0
  2. data/README.markdown +31 -0
  3. data/Rakefile +14 -0
  4. data/VERSION +1 -0
  5. data/amazon-mws.gemspec +164 -0
  6. data/examples/xml/cancel_feed_submissions.xml +16 -0
  7. data/examples/xml/cancel_report_requests.xml +18 -0
  8. data/examples/xml/error.xml +10 -0
  9. data/examples/xml/get_feed_submission_count.xml +10 -0
  10. data/examples/xml/get_feed_submission_list.xml +16 -0
  11. data/examples/xml/get_feed_submission_list_by_next_token.xml +16 -0
  12. data/examples/xml/get_feed_submission_result.xml +30 -0
  13. data/examples/xml/get_report_count.xml +9 -0
  14. data/examples/xml/get_report_list.xml +17 -0
  15. data/examples/xml/get_report_request_count.xml +8 -0
  16. data/examples/xml/get_report_request_list.xml +120 -0
  17. data/examples/xml/get_report_request_list_by_next_token.xml +20 -0
  18. data/examples/xml/get_report_schedule_count.xml +10 -0
  19. data/examples/xml/get_report_schedule_list.xml +15 -0
  20. data/examples/xml/get_report_schedule_list_by_next_token.xml +15 -0
  21. data/examples/xml/manage_report_schedule.xml +14 -0
  22. data/examples/xml/request_report.xml +17 -0
  23. data/examples/xml/submit_feed.xml +14 -0
  24. data/examples/xml/update_report_acknowledgements.xml +18 -0
  25. data/examples/xsd/Inventory.xsd +49 -0
  26. data/examples/xsd/Item.xsd +285 -0
  27. data/examples/xsd/Listings.xsd +32 -0
  28. data/examples/xsd/OrderAcknowledgement.xsd +55 -0
  29. data/examples/xsd/OrderAdjustment.xsd +94 -0
  30. data/examples/xsd/OrderFulfillment.xsd +57 -0
  31. data/examples/xsd/Override.xsd +48 -0
  32. data/examples/xsd/Price.xsd +59 -0
  33. data/examples/xsd/ProcessingReport.xsd +87 -0
  34. data/examples/xsd/Product.xsd +220 -0
  35. data/examples/xsd/Product/AutoAccessory.xsd +807 -0
  36. data/examples/xsd/Product/Beauty.xsd +114 -0
  37. data/examples/xsd/Product/CE.xsd +544 -0
  38. data/examples/xsd/Product/CameraPhoto.xsd +2410 -0
  39. data/examples/xsd/Product/FoodAndBeverages.xsd +270 -0
  40. data/examples/xsd/Product/Gourmet.xsd +85 -0
  41. data/examples/xsd/Product/Health.xsd +189 -0
  42. data/examples/xsd/Product/Home.xsd +654 -0
  43. data/examples/xsd/Product/Jewelry.xsd +603 -0
  44. data/examples/xsd/Product/Miscellaneous.xsd +157 -0
  45. data/examples/xsd/Product/MusicalInstruments.xsd +853 -0
  46. data/examples/xsd/Product/Office.xsd +550 -0
  47. data/examples/xsd/Product/PetSupplies.xsd +40 -0
  48. data/examples/xsd/Product/ProductClothing.xsd +197 -0
  49. data/examples/xsd/Product/SWVG.xsd +238 -0
  50. data/examples/xsd/Product/Sports.xsd +308 -0
  51. data/examples/xsd/Product/TiresAndWheels.xsd +159 -0
  52. data/examples/xsd/Product/Tools.xsd +66 -0
  53. data/examples/xsd/Product/ToysBaby.xsd +241 -0
  54. data/examples/xsd/Product/Wireless.xsd +77 -0
  55. data/examples/xsd/ProductImage.xsd +39 -0
  56. data/examples/xsd/Relationship.xsd +47 -0
  57. data/examples/xsd/SettlementReport.xsd +158 -0
  58. data/examples/xsd/amzn-base.xsd +1601 -0
  59. data/examples/xsd/amzn-envelope.xsd +98 -0
  60. data/examples/xsd/amzn-header.xsd +45 -0
  61. data/lib/amazon/mws.rb +86 -0
  62. data/lib/amazon/mws/authentication.rb +9 -0
  63. data/lib/amazon/mws/authentication/query_string.rb +28 -0
  64. data/lib/amazon/mws/authentication/signature.rb +43 -0
  65. data/lib/amazon/mws/base.rb +61 -0
  66. data/lib/amazon/mws/connection.rb +99 -0
  67. data/lib/amazon/mws/connection/management.rb +94 -0
  68. data/lib/amazon/mws/connection/request_builder.rb +67 -0
  69. data/lib/amazon/mws/exceptions.rb +80 -0
  70. data/lib/amazon/mws/feed.rb +223 -0
  71. data/lib/amazon/mws/feed_builder.rb +67 -0
  72. data/lib/amazon/mws/feed_enumerations.rb +46 -0
  73. data/lib/amazon/mws/feed_submission.rb +14 -0
  74. data/lib/amazon/mws/lib/extensions.rb +162 -0
  75. data/lib/amazon/mws/lib/memoizable.rb +10 -0
  76. data/lib/amazon/mws/orders.rb +9 -0
  77. data/lib/amazon/mws/report.rb +310 -0
  78. data/lib/amazon/mws/report_enumerations.rb +44 -0
  79. data/lib/amazon/mws/report_info.rb +16 -0
  80. data/lib/amazon/mws/report_request.rb +19 -0
  81. data/lib/amazon/mws/report_schedule.rb +13 -0
  82. data/lib/amazon/mws/response.rb +32 -0
  83. data/lib/amazon/mws/response/cancel_feed_submissions_response.rb +14 -0
  84. data/lib/amazon/mws/response/cancel_report_requests_response.rb +14 -0
  85. data/lib/amazon/mws/response/get_feed_submission_count_response.rb +13 -0
  86. data/lib/amazon/mws/response/get_feed_submission_list_by_next_token_response.rb +15 -0
  87. data/lib/amazon/mws/response/get_feed_submission_list_response.rb +15 -0
  88. data/lib/amazon/mws/response/get_feed_submission_result_response.rb +54 -0
  89. data/lib/amazon/mws/response/get_report_count_response.rb +13 -0
  90. data/lib/amazon/mws/response/get_report_list_response.rb +15 -0
  91. data/lib/amazon/mws/response/get_report_request_count_response.rb +13 -0
  92. data/lib/amazon/mws/response/get_report_request_list_by_next_token_response.rb +15 -0
  93. data/lib/amazon/mws/response/get_report_request_list_response.rb +15 -0
  94. data/lib/amazon/mws/response/get_report_schedule_count_response.rb +13 -0
  95. data/lib/amazon/mws/response/get_report_schedule_list_by_next_token_response.rb +15 -0
  96. data/lib/amazon/mws/response/get_report_schedule_list_response.rb +15 -0
  97. data/lib/amazon/mws/response/manage_report_schedule_response.rb +14 -0
  98. data/lib/amazon/mws/response/request_report_response.rb +14 -0
  99. data/lib/amazon/mws/response/response_error.rb +15 -0
  100. data/lib/amazon/mws/response/submit_feed_response.rb +13 -0
  101. data/lib/amazon/mws/response/update_reports_acknowledgements_response.rb +14 -0
  102. data/lib/amazon/mws/version.rb +12 -0
  103. data/pkg/amazon-mws-0.1.0.gem +0 -0
  104. data/test/authentication_test.rb +15 -0
  105. data/test/connection_test.rb +5 -0
  106. data/test/feed_builder_test.rb +15 -0
  107. data/test/feed_submission_test.rb +32 -0
  108. data/test/feed_test.rb +64 -0
  109. data/test/query_string_test.rb +21 -0
  110. data/test/report_test.rb +29 -0
  111. data/test/request_test.rb +18 -0
  112. data/test/response_test.rb +197 -0
  113. data/test/signature_test.rb +30 -0
  114. data/test/test_config.yml +5 -0
  115. data/test/test_helper.rb +22 -0
  116. metadata +179 -0
@@ -0,0 +1,270 @@
1
+ <?xml version="1.0"?>
2
+ <!-- Revision="$Revision: #4 $" -->
3
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
4
+ <!--
5
+ $Date: 2008/08/14/ $
6
+ AMAZON.COM CONFIDENTIAL. This document and the information contained in it are
7
+ confidential and proprietary information of Amazon.com and may not be reproduced,
8
+ distributed or used, in whole or in part, for any purpose other than as necessary
9
+ to list products for sale on the www.amazon.com web site pursuant to an agreement
10
+ with Amazon.com.
11
+ -->
12
+ <xsd:include schemaLocation="amzn-base.xsd"/>
13
+ <!--
14
+ Please read the corresponding documentation that contains the recommended values for elements
15
+ of type StringNotNull.
16
+ -->
17
+ <xsd:element name="FoodAndBeverages">
18
+ <xsd:complexType>
19
+ <xsd:sequence>
20
+ <xsd:element name="ProductType">
21
+ <xsd:complexType>
22
+ <xsd:choice>
23
+ <xsd:element ref="Food"/>
24
+ <xsd:element ref="Beverages"/>
25
+ <xsd:element ref="AlcoholicBeverages"/>
26
+ </xsd:choice>
27
+ </xsd:complexType>
28
+ </xsd:element>
29
+ </xsd:sequence>
30
+ </xsd:complexType>
31
+ </xsd:element>
32
+ <!--
33
+ ###############################################################
34
+ # Food Classification Data
35
+ ###############################################################
36
+ -->
37
+ <xsd:element name="Food">
38
+ <xsd:complexType>
39
+ <xsd:sequence>
40
+ <xsd:element name="VariationData" minOccurs="0">
41
+ <xsd:complexType>
42
+ <xsd:sequence>
43
+ <xsd:element name="Parentage">
44
+ <xsd:simpleType>
45
+ <xsd:restriction base="xsd:string">
46
+ <xsd:enumeration value="parent"/>
47
+ <xsd:enumeration value="child"/>
48
+ </xsd:restriction>
49
+ </xsd:simpleType>
50
+ </xsd:element>
51
+ <xsd:element name="VariationTheme" minOccurs="0">
52
+ <xsd:simpleType>
53
+ <xsd:restriction base="xsd:string">
54
+ <xsd:enumeration value="Size"/>
55
+ <xsd:enumeration value="Flavor"/>
56
+ <xsd:enumeration value="Flavor-Size"/>
57
+ <xsd:enumeration value="PatternName"/>
58
+ </xsd:restriction>
59
+ </xsd:simpleType>
60
+ </xsd:element>
61
+ <xsd:element name="Size" type="StringNotNull" minOccurs="0"/>
62
+ <xsd:element name="Flavor" type="StringNotNull" minOccurs="0"/>
63
+ <xsd:element name="PatternName" type="HundredString" minOccurs="0"/>
64
+ </xsd:sequence>
65
+ </xsd:complexType>
66
+ </xsd:element>
67
+ <xsd:element name="CountryProducedIn" type="LongStringNotNull" minOccurs="0"/>
68
+ <xsd:element name="RegionOfOrigin" type="StringNotNull" minOccurs="0"/>
69
+ <xsd:element name="Prefecture" type="StringNotNull" minOccurs="0"/>
70
+ <xsd:element name="ItemForm" type="String" minOccurs="0"/>
71
+ <xsd:element name="Ingredients" type="LongStringNotNull" minOccurs="0"/>
72
+ <xsd:element name="NutritionalFacts" type="LongStringNotNull" minOccurs="0"/>
73
+ <xsd:element name="KosherCertification" type="HundredString" minOccurs="0" maxOccurs="5"/>
74
+ <xsd:element name="OrganicCertification" type="HundredString" minOccurs="0" maxOccurs="5"/>
75
+ <xsd:element name="TokuhoCertification" type="String" minOccurs="0" maxOccurs="5"/>
76
+ <xsd:element name="ItemSpecialty" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
77
+ <xsd:element name="CaffeineContent" type="String" minOccurs="0"/>
78
+ <xsd:element name="Warnings" type="LongStringNotNull" minOccurs="0"/>
79
+ <xsd:element name="IsPerishable" type="xsd:boolean" minOccurs="0"/>
80
+ <xsd:element name="StorageInstructions" type="HundredString" minOccurs="0"/>
81
+ <xsd:element name="Directions" type="LongStringNotNull" minOccurs="0"/>
82
+ <xsd:element name="Occasion" type="MediumStringNotNull" minOccurs="0"/>
83
+ <xsd:element name="AwardsWon" type="HundredString" minOccurs="0" maxOccurs="5"/>
84
+ <xsd:element name="AgeRangeDescription" type="String" minOccurs="0"/>
85
+ <xsd:element name="ItemPackageQuantity" type="xsd:positiveInteger" minOccurs="0"/>
86
+ <xsd:element name="NumberOfItems" type="xsd:positiveInteger" minOccurs="0"/>
87
+ <xsd:element name="DisplayLength" type="LengthDimension" minOccurs="0"/>
88
+ <xsd:element name="DisplayWeight" type="WeightDimension" minOccurs="0"/>
89
+ <xsd:element name="DisplayVolume" type="VolumeDimension" minOccurs="0"/>
90
+ <xsd:element name="ContainerType" type="String" minOccurs="0"/>
91
+ <xsd:element name="UnitCount" minOccurs="0">
92
+ <xsd:complexType>
93
+ <xsd:simpleContent>
94
+ <xsd:extension base="xsd:positiveInteger">
95
+ <xsd:attribute name="unitOfMeasure" type="StringNotNull" use="required"/>
96
+ </xsd:extension>
97
+ </xsd:simpleContent>
98
+ </xsd:complexType>
99
+ </xsd:element>
100
+ </xsd:sequence>
101
+ </xsd:complexType>
102
+ </xsd:element>
103
+ <!--
104
+ ###############################################################
105
+ # Beverages Classification Data
106
+ ###############################################################
107
+ -->
108
+ <xsd:element name="Beverages">
109
+ <xsd:complexType>
110
+ <xsd:sequence>
111
+ <xsd:element name="VariationData" minOccurs="0">
112
+ <xsd:complexType>
113
+ <xsd:sequence>
114
+ <xsd:element name="Parentage">
115
+ <xsd:simpleType>
116
+ <xsd:restriction base="xsd:string">
117
+ <xsd:enumeration value="parent"/>
118
+ <xsd:enumeration value="child"/>
119
+ </xsd:restriction>
120
+ </xsd:simpleType>
121
+ </xsd:element>
122
+ <xsd:element name="VariationTheme" minOccurs="0">
123
+ <xsd:simpleType>
124
+ <xsd:restriction base="xsd:string">
125
+ <xsd:enumeration value="Size"/>
126
+ <xsd:enumeration value="Flavor"/>
127
+ <xsd:enumeration value="Flavor-Size"/>
128
+ <xsd:enumeration value="PatternName"/>
129
+ </xsd:restriction>
130
+ </xsd:simpleType>
131
+ </xsd:element>
132
+ <xsd:element name="Size" type="StringNotNull" minOccurs="0"/>
133
+ <xsd:element name="Flavor" type="StringNotNull" minOccurs="0"/>
134
+ <xsd:element name="PatternName" type="HundredString" minOccurs="0"/>
135
+ </xsd:sequence>
136
+ </xsd:complexType>
137
+ </xsd:element>
138
+ <xsd:element name="CountryProducedIn" type="LongStringNotNull" minOccurs="0"/>
139
+ <xsd:element name="RegionOfOrigin" type="StringNotNull" minOccurs="0"/>
140
+ <xsd:element name="Prefecture" type="StringNotNull" minOccurs="0"/>
141
+ <xsd:element name="ItemForm" type="String" minOccurs="0"/>
142
+ <xsd:element name="Ingredients" type="LongStringNotNull" minOccurs="0"/>
143
+ <xsd:element name="NutritionalFacts" type="LongStringNotNull" minOccurs="0"/>
144
+ <xsd:element name="KosherCertification" type="HundredString" minOccurs="0" maxOccurs="5"/>
145
+ <xsd:element name="OrganicCertification" type="HundredString" minOccurs="0" maxOccurs="5"/>
146
+ <xsd:element name="TokuhoCertification" type="String" minOccurs="0" maxOccurs="5"/>
147
+ <xsd:element name="ItemSpecialty" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
148
+ <xsd:element name="BodyDescription" type="String" minOccurs="0"/>
149
+ <xsd:element name="TasteDescription" type="String" minOccurs="0"/>
150
+ <xsd:element name="CaffeineContent" type="String" minOccurs="0"/>
151
+ <xsd:element name="Warnings" type="LongStringNotNull" minOccurs="0"/>
152
+ <xsd:element name="IsPerishable" type="xsd:boolean" minOccurs="0"/>
153
+ <xsd:element name="StorageInstructions" type="HundredString" minOccurs="0"/>
154
+ <xsd:element name="Directions" type="LongStringNotNull" minOccurs="0"/>
155
+ <xsd:element name="RecommendedServingInstructions" type="String" minOccurs="0"/>
156
+ <xsd:element name="Occasion" type="MediumStringNotNull" minOccurs="0"/>
157
+ <xsd:element name="AwardsWon" type="HundredString" minOccurs="0" maxOccurs="5"/>
158
+ <xsd:element name="AgeRangeDescription" type="String" minOccurs="0"/>
159
+ <xsd:element name="ItemPackageQuantity" type="xsd:positiveInteger" minOccurs="0"/>
160
+ <xsd:element name="NumberOfItems" type="xsd:positiveInteger" minOccurs="0"/>
161
+ <xsd:element name="DisplayLength" type="LengthDimension" minOccurs="0"/>
162
+ <xsd:element name="DisplayWeight" type="WeightDimension" minOccurs="0"/>
163
+ <xsd:element name="DisplayVolume" type="VolumeDimension" minOccurs="0"/>
164
+ <xsd:element name="ContainerType" type="String" minOccurs="0"/>
165
+ <xsd:element name="UnitCount" minOccurs="0">
166
+ <xsd:complexType>
167
+ <xsd:simpleContent>
168
+ <xsd:extension base="xsd:positiveInteger">
169
+ <xsd:attribute name="unitOfMeasure" type="StringNotNull" use="required"/>
170
+ </xsd:extension>
171
+ </xsd:simpleContent>
172
+ </xsd:complexType>
173
+ </xsd:element>
174
+ </xsd:sequence>
175
+ </xsd:complexType>
176
+ </xsd:element>
177
+ <!--
178
+ ###############################################################
179
+ # AlcoholicBeverages Classification Data
180
+ ###############################################################
181
+ -->
182
+ <xsd:element name="AlcoholicBeverages">
183
+ <xsd:complexType>
184
+ <xsd:sequence>
185
+ <xsd:element name="VariationData" minOccurs="0">
186
+ <xsd:complexType>
187
+ <xsd:sequence>
188
+ <xsd:element name="Parentage">
189
+ <xsd:simpleType>
190
+ <xsd:restriction base="xsd:string">
191
+ <xsd:enumeration value="parent"/>
192
+ <xsd:enumeration value="child"/>
193
+ </xsd:restriction>
194
+ </xsd:simpleType>
195
+ </xsd:element>
196
+ <xsd:element name="VariationTheme" minOccurs="0">
197
+ <xsd:simpleType>
198
+ <xsd:restriction base="xsd:string">
199
+ <xsd:enumeration value="Size"/>
200
+ <xsd:enumeration value="Flavor"/>
201
+ <xsd:enumeration value="Flavor-Size"/>
202
+ <xsd:enumeration value="PatternName"/>
203
+ </xsd:restriction>
204
+ </xsd:simpleType>
205
+ </xsd:element>
206
+ <xsd:element name="Size" type="StringNotNull" minOccurs="0"/>
207
+ <xsd:element name="Flavor" type="StringNotNull" minOccurs="0"/>
208
+ <xsd:element name="PatternName" type="HundredString" minOccurs="0"/>
209
+ </xsd:sequence>
210
+ </xsd:complexType>
211
+ </xsd:element>
212
+ <xsd:element name="CountryProducedIn" type="LongStringNotNull" minOccurs="0"/>
213
+ <xsd:element name="RegionOfOrigin" type="StringNotNull" minOccurs="0"/>
214
+ <xsd:element name="Prefecture" type="StringNotNull" minOccurs="0"/>
215
+ <xsd:element name="ItemForm" type="String" minOccurs="0"/>
216
+ <xsd:element name="Ingredients" type="LongStringNotNull" minOccurs="0"/>
217
+ <xsd:element name="NutritionalFacts" type="LongStringNotNull" minOccurs="0"/>
218
+ <xsd:element name="KosherCertification" type="HundredString" minOccurs="0" maxOccurs="5"/>
219
+ <xsd:element name="OrganicCertification" type="HundredString" minOccurs="0" maxOccurs="5"/>
220
+ <xsd:element name="ItemSpecialty" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
221
+ <xsd:element name="VarietalComposition" type="String" minOccurs="0"/>
222
+ <xsd:element name="Vintage" type="FourDigitYear" minOccurs="0"/>
223
+ <xsd:element name="BodyDescription" type="String" minOccurs="0"/>
224
+ <xsd:element name="TasteDescription" type="String" minOccurs="0"/>
225
+ <xsd:element name="AlcoholContent" minOccurs="0">
226
+ <xsd:complexType>
227
+ <xsd:simpleContent>
228
+ <xsd:extension base="Dimension">
229
+ <xsd:attribute name="unitOfMeasure" use="required">
230
+ <xsd:simpleType>
231
+ <xsd:restriction base="xsd:string">
232
+ <xsd:enumeration value="percent_by_volume"/>
233
+ <xsd:enumeration value="percent_by_weight"/>
234
+ <xsd:enumeration value="proof"/>
235
+ <xsd:enumeration value="unit_of_alcohol"/>
236
+ </xsd:restriction>
237
+ </xsd:simpleType>
238
+ </xsd:attribute>
239
+ </xsd:extension>
240
+ </xsd:simpleContent>
241
+ </xsd:complexType>
242
+ </xsd:element>
243
+ <xsd:element name="CaffeineContent" type="String" minOccurs="0"/>
244
+ <xsd:element name="Warnings" type="LongStringNotNull" minOccurs="0"/>
245
+ <xsd:element name="IsPerishable" type="xsd:boolean" minOccurs="0"/>
246
+ <xsd:element name="StorageInstructions" type="HundredString" minOccurs="0"/>
247
+ <xsd:element name="Directions" type="LongStringNotNull" minOccurs="0"/>
248
+ <xsd:element name="RecommendedServingInstructions" type="String" minOccurs="0"/>
249
+ <xsd:element name="Occasion" type="MediumStringNotNull" minOccurs="0"/>
250
+ <xsd:element name="AwardsWon" type="HundredString" minOccurs="0" maxOccurs="5"/>
251
+ <xsd:element name="AgeRangeDescription" type="String" minOccurs="0"/>
252
+ <xsd:element name="ItemPackageQuantity" type="xsd:positiveInteger" minOccurs="0"/>
253
+ <xsd:element name="NumberOfItems" type="xsd:positiveInteger" minOccurs="0"/>
254
+ <xsd:element name="DisplayLength" type="LengthDimension" minOccurs="0"/>
255
+ <xsd:element name="DisplayWeight" type="WeightDimension" minOccurs="0"/>
256
+ <xsd:element name="DisplayVolume" type="VolumeDimension" minOccurs="0"/>
257
+ <xsd:element name="ContainerType" type="String" minOccurs="0"/>
258
+ <xsd:element name="UnitCount" minOccurs="0">
259
+ <xsd:complexType>
260
+ <xsd:simpleContent>
261
+ <xsd:extension base="xsd:positiveInteger">
262
+ <xsd:attribute name="unitOfMeasure" type="StringNotNull" use="required"/>
263
+ </xsd:extension>
264
+ </xsd:simpleContent>
265
+ </xsd:complexType>
266
+ </xsd:element>
267
+ </xsd:sequence>
268
+ </xsd:complexType>
269
+ </xsd:element>
270
+ </xsd:schema>
@@ -0,0 +1,85 @@
1
+ <?xml version="1.0"?>
2
+ <!-- Revision="$Revision: #3 $" -->
3
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
4
+ <!--
5
+ $Date: 2005/04/01 $
6
+ AMAZON.COM CONFIDENTIAL. This document and the information contained in it are
7
+ confidential and proprietary information of Amazon.com and may not be reproduced,
8
+ distributed or used, in whole or in part, for any purpose other than as necessary
9
+ to list products for sale on the www.amazon.com web site pursuant to an agreement
10
+ with Amazon.com.
11
+ -->
12
+ <xsd:include schemaLocation="amzn-base.xsd"/>
13
+ <!--
14
+ Please read the corresponding documentation that contains the recommended values for elements
15
+ of type StringNotNull.
16
+ -->
17
+ <xsd:element name="Gourmet">
18
+ <xsd:complexType>
19
+ <xsd:sequence>
20
+ <xsd:element name="ProductType">
21
+ <xsd:complexType>
22
+ <xsd:choice>
23
+ <xsd:element ref="GourmetMisc"/>
24
+ </xsd:choice>
25
+ </xsd:complexType>
26
+ </xsd:element>
27
+ </xsd:sequence>
28
+ </xsd:complexType>
29
+ </xsd:element>
30
+ <xsd:element name="GourmetMisc">
31
+ <xsd:complexType>
32
+ <xsd:sequence>
33
+ <xsd:element name="VariationData" minOccurs="0">
34
+ <xsd:complexType>
35
+ <xsd:sequence>
36
+ <xsd:element name="Parentage">
37
+ <xsd:simpleType>
38
+ <xsd:restriction base="xsd:string">
39
+ <xsd:enumeration value="parent"/>
40
+ <xsd:enumeration value="child"/>
41
+ </xsd:restriction>
42
+ </xsd:simpleType>
43
+ </xsd:element>
44
+ <xsd:element name="VariationTheme" minOccurs="0">
45
+ <xsd:simpleType>
46
+ <xsd:restriction base="xsd:string">
47
+ <xsd:enumeration value="Size"/>
48
+ <xsd:enumeration value="Color"/>
49
+ <xsd:enumeration value="Flavor"/>
50
+ <xsd:enumeration value="Flavor-Size"/>
51
+ </xsd:restriction>
52
+ </xsd:simpleType>
53
+ </xsd:element>
54
+ <xsd:element name="Size" type="StringNotNull" minOccurs="0"/>
55
+ <xsd:element name="Color" type="StringNotNull" minOccurs="0"/>
56
+ <xsd:element name="Flavor" type="StringNotNull" minOccurs="0"/>
57
+ </xsd:sequence>
58
+ </xsd:complexType>
59
+ </xsd:element>
60
+ <xsd:element name="CountryProducedIn" type="LongStringNotNull" minOccurs="0"/>
61
+ <xsd:element name="Ingredients" type="LongStringNotNull" minOccurs="0"/>
62
+ <xsd:element name="NutritionalFacts" type="LongStringNotNull" minOccurs="0"/>
63
+ <xsd:element name="KosherCertification" type="HundredString" minOccurs="0" maxOccurs="5"/>
64
+ <xsd:element name="OrganicCertification" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
65
+ <xsd:element name="ItemSpecialty" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
66
+ <xsd:element name="Warnings" type="LongStringNotNull" minOccurs="0"/>
67
+ <xsd:element name="Directions" type="LongStringNotNull" minOccurs="0"/>
68
+ <xsd:element name="ItemPackageQuantity" type="xsd:positiveInteger" minOccurs="0"/>
69
+ <xsd:element name="NumberOfItems" type="xsd:positiveInteger" minOccurs="0"/>
70
+ <xsd:element name="DisplayLength" type="LengthDimension" minOccurs="0"/>
71
+ <xsd:element name="DisplayWeight" type="WeightDimension" minOccurs="0"/>
72
+ <xsd:element name="DisplayVolume" type="VolumeDimension" minOccurs="0"/>
73
+ <xsd:element name="UnitCount" minOccurs="0">
74
+ <xsd:complexType>
75
+ <xsd:simpleContent>
76
+ <xsd:extension base="xsd:positiveInteger">
77
+ <xsd:attribute name="unitOfMeasure" type="StringNotNull" use="required"/>
78
+ </xsd:extension>
79
+ </xsd:simpleContent>
80
+ </xsd:complexType>
81
+ </xsd:element>
82
+ </xsd:sequence>
83
+ </xsd:complexType>
84
+ </xsd:element>
85
+ </xsd:schema>
@@ -0,0 +1,189 @@
1
+ <?xml version="1.0"?>
2
+ <!-- Revision="$Revision: #7 $" -->
3
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
4
+ <!--
5
+ $Date: 2007/10/30 $
6
+ AMAZON.COM CONFIDENTIAL. This document and the information contained in it are
7
+ confidential and proprietary information of Amazon.com and may not be reproduced,distributed or used, in whole or in part, for any purpose other than as necessary to list products for sale on the www.amazon.com web site pursuant to an agreement with Amazon.com.
8
+ -->
9
+ <xsd:include schemaLocation="amzn-base.xsd"/>
10
+ <xsd:element name="Health">
11
+ <xsd:complexType>
12
+ <xsd:sequence>
13
+ <xsd:element name="ProductType">
14
+ <xsd:complexType>
15
+ <xsd:choice>
16
+ <xsd:element ref="HealthMisc"/>
17
+ <xsd:element ref="PersonalCareAppliances"/>
18
+ </xsd:choice>
19
+ </xsd:complexType>
20
+ </xsd:element>
21
+ </xsd:sequence>
22
+ </xsd:complexType>
23
+ </xsd:element>
24
+ <xsd:element name="HealthMisc">
25
+ <xsd:complexType>
26
+ <xsd:sequence>
27
+ <xsd:element name="VariationData" minOccurs="0">
28
+ <xsd:complexType>
29
+ <xsd:sequence>
30
+ <xsd:element name="Parentage">
31
+ <xsd:simpleType>
32
+ <xsd:restriction base="xsd:string">
33
+ <xsd:enumeration value="parent"/>
34
+ <xsd:enumeration value="child"/>
35
+ </xsd:restriction>
36
+ </xsd:simpleType>
37
+ </xsd:element>
38
+ <xsd:element name="VariationTheme" minOccurs="0">
39
+ <xsd:simpleType>
40
+ <xsd:restriction base="xsd:string">
41
+ <xsd:enumeration value="Size"/>
42
+ <xsd:enumeration value="Color"/>
43
+ <xsd:enumeration value="Count"/>
44
+ <xsd:enumeration value="Scent"/>
45
+ <xsd:enumeration value="Flavor"/>
46
+ <xsd:enumeration value="Size-Color"/>
47
+ <xsd:enumeration value="Flavor-Count"/>
48
+ <xsd:enumeration value="Flavor-Size"/>
49
+ <xsd:enumeration value="Size-Scent"/>
50
+ </xsd:restriction>
51
+ </xsd:simpleType>
52
+ </xsd:element>
53
+ <xsd:element name="Size" type="StringNotNull" minOccurs="0"/>
54
+ <xsd:element name="Color" type="StringNotNull" minOccurs="0"/>
55
+ <xsd:element ref="ColorMap" minOccurs="0"/>
56
+ <!-- Count represents the number of individually packaged items (a.k.a.
57
+ units) included, such that each item is the smallest unit with a
58
+ scannable bar code (UPC / EAN), and each item is packaged for
59
+ individual sale. For example, a box of 12 health bars, each
60
+ of which can be sold individually, would have a Count of 12. -->
61
+ <xsd:element name="Count" type="xsd:positiveInteger" minOccurs="0"/>
62
+ <!-- NumberOfItems represents the number of discrete items included,
63
+ such that the items are not packaged for individual sale. For example,
64
+ a bottle of 100 aspirin tablets would have a NumberOfItems of 100.
65
+ A box of 10 individually packaged bottles, each with 20 tablets, would
66
+ have a Count of 10 and a NumberOfItems of 200. -->
67
+ <xsd:element name="NumberOfItems" type="xsd:positiveInteger" minOccurs="0"/>
68
+ <xsd:element name="Flavor" type="StringNotNull" minOccurs="0"/>
69
+ <xsd:element name="Scent" type="StringNotNull" minOccurs="0"/>
70
+ </xsd:sequence>
71
+ </xsd:complexType>
72
+ </xsd:element>
73
+ <xsd:element name="DisplayLength" type="LengthDimension" minOccurs="0"/>
74
+ <xsd:element name="DisplayWeight" type="WeightDimension" minOccurs="0"/>
75
+ <xsd:element name="DisplayVolume" type="VolumeDimension" minOccurs="0"/>
76
+ <xsd:element name="Indications" type="LongStringNotNull" minOccurs="0"/>
77
+ <xsd:element name="HairType" type="LongStringNotNull" minOccurs="0" maxOccurs="5">
78
+ </xsd:element>
79
+ <xsd:element name="SkinType" type="LongStringNotNull" minOccurs="0" maxOccurs="5"/>
80
+ <xsd:element name="SkinTone" minOccurs="0" maxOccurs="5">
81
+ <xsd:simpleType>
82
+ <xsd:restriction base="StringNotNull">
83
+ <xsd:enumeration value="Dark"/>
84
+ <xsd:enumeration value="Fair"/>
85
+ <xsd:enumeration value="Medium"/>
86
+ <xsd:enumeration value="MediumDark"/>
87
+ <xsd:enumeration value="VeryDark"/>
88
+ <xsd:enumeration value="VeryFair"/>
89
+ </xsd:restriction>
90
+ </xsd:simpleType>
91
+ </xsd:element>
92
+ <xsd:element name="Ingredients" type="LongStringNotNull" minOccurs="0" maxOccurs="3"/>
93
+ <xsd:element name="MaterialType" type="LongStringNotNull" minOccurs="0" maxOccurs="3"/>
94
+ <xsd:element name="Directions" type="LongStringNotNull" minOccurs="0"/>
95
+ <xsd:element name="Warnings" type="LongStringNotNull" minOccurs="0"/>
96
+ <xsd:element name="ItemForm" type="String" minOccurs="0"/>
97
+ <xsd:element name="Coverage" type="String" minOccurs="0"/>
98
+ <xsd:element name="FinishType" type="String" minOccurs="0" maxOccurs="5"/>
99
+ <xsd:element name="ItemSpecialty" type="String" minOccurs="0" maxOccurs="5"/>
100
+ <xsd:element name="IsAdultProduct" type="xsd:boolean" minOccurs="0"/>
101
+ <xsd:element name="TargetGender" minOccurs="0">
102
+ <xsd:simpleType>
103
+ <xsd:restriction base="xsd:string">
104
+ <xsd:enumeration value="male"/>
105
+ <xsd:enumeration value="female"/>
106
+ <xsd:enumeration value="unisex"/>
107
+ </xsd:restriction>
108
+ </xsd:simpleType>
109
+ </xsd:element>
110
+ </xsd:sequence>
111
+ </xsd:complexType>
112
+ </xsd:element>
113
+ <xsd:element name="PersonalCareAppliances">
114
+ <xsd:complexType>
115
+ <xsd:sequence>
116
+ <xsd:element name="VariationData" minOccurs="0">
117
+ <xsd:complexType>
118
+ <xsd:sequence>
119
+ <xsd:element name="Parentage">
120
+ <xsd:simpleType>
121
+ <xsd:restriction base="xsd:string">
122
+ <xsd:enumeration value="parent"/>
123
+ <xsd:enumeration value="child"/>
124
+ </xsd:restriction>
125
+ </xsd:simpleType>
126
+ </xsd:element>
127
+ <xsd:element name="VariationTheme" minOccurs="0">
128
+ <xsd:simpleType>
129
+ <xsd:restriction base="xsd:string">
130
+ <xsd:enumeration value="Size"/>
131
+ <xsd:enumeration value="Color"/>
132
+ <xsd:enumeration value="Count"/>
133
+ <xsd:enumeration value="Size-Color"/>
134
+ </xsd:restriction>
135
+ </xsd:simpleType>
136
+ </xsd:element>
137
+ <xsd:element name="Size" type="StringNotNull" minOccurs="0"/>
138
+ <xsd:element name="Color" type="StringNotNull" minOccurs="0"/>
139
+ <xsd:element ref="ColorMap" minOccurs="0"/>
140
+ <!-- Count represents the number of individually packaged items (a.k.a.
141
+ units) included, such that each item is the smallest unit with a
142
+ scannable bar code (UPC / EAN), and each item is packaged for
143
+ individual sale. For example, a box of 12 health bars, each
144
+ of which can be sold individually, would have a Count of 12. -->
145
+ <xsd:element name="Count" type="xsd:positiveInteger" minOccurs="0"/>
146
+ </xsd:sequence>
147
+ </xsd:complexType>
148
+ </xsd:element>
149
+ <xsd:element name="Indications" type="LongStringNotNull" minOccurs="0"/>
150
+ <xsd:element name="HairType" type="LongStringNotNull" minOccurs="0" maxOccurs="5">
151
+ </xsd:element>
152
+ <xsd:element name="SkinType" type="LongStringNotNull" minOccurs="0" maxOccurs="5"/>
153
+ <xsd:element name="SkinTone" minOccurs="0" maxOccurs="5">
154
+ <xsd:simpleType>
155
+ <xsd:restriction base="StringNotNull">
156
+ <xsd:enumeration value="Dark"/>
157
+ <xsd:enumeration value="Fair"/>
158
+ <xsd:enumeration value="Medium"/>
159
+ <xsd:enumeration value="MediumDark"/>
160
+ <xsd:enumeration value="VeryDark"/>
161
+ <xsd:enumeration value="VeryFair"/>
162
+ </xsd:restriction>
163
+ </xsd:simpleType>
164
+ </xsd:element>
165
+ <xsd:element name="MaterialType" type="LongStringNotNull" minOccurs="0" maxOccurs="3"/>
166
+ <xsd:element name="Directions" type="LongStringNotNull" minOccurs="0"/>
167
+ <xsd:element name="Warnings" type="LongStringNotNull" minOccurs="0"/>
168
+ <xsd:element name="ItemForm" type="String" minOccurs="0"/>
169
+ <xsd:element name="Flavor" type="String" minOccurs="0"/>
170
+ <xsd:element name="Coverage" type="String" minOccurs="0"/>
171
+ <xsd:element name="FinishType" type="String" minOccurs="0" maxOccurs="5"/>
172
+ <xsd:element name="ItemSpecialty" type="String" minOccurs="0" maxOccurs="5"/>
173
+ <xsd:element name="IsAdultProduct" type="xsd:boolean" minOccurs="0"/>
174
+ <xsd:element name="TargetGender" minOccurs="0">
175
+ <xsd:simpleType>
176
+ <xsd:restriction base="xsd:string">
177
+ <xsd:enumeration value="male"/>
178
+ <xsd:enumeration value="female"/>
179
+ <xsd:enumeration value="unisex"/>
180
+ </xsd:restriction>
181
+ </xsd:simpleType>
182
+ </xsd:element>
183
+ <xsd:element name="PowerSource" type="FortyStringNotNull" minOccurs="0"/>
184
+ <xsd:element name="IsACAdapterIncluded" type="xsd:boolean" minOccurs="0"/>
185
+ <xsd:element ref="Battery" minOccurs="0"/>
186
+ </xsd:sequence>
187
+ </xsd:complexType>
188
+ </xsd:element>
189
+ </xsd:schema>