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,40 @@
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
+ <xsd:element name="PetSupplies">
14
+ <xsd:complexType>
15
+ <xsd:sequence>
16
+ <xsd:element name="ProductType">
17
+ <xsd:complexType>
18
+ <xsd:choice>
19
+ <xsd:element ref="PetSuppliesMisc"/>
20
+ </xsd:choice>
21
+ </xsd:complexType>
22
+ </xsd:element>
23
+ </xsd:sequence>
24
+ </xsd:complexType>
25
+ </xsd:element>
26
+ <xsd:element name="PetSuppliesMisc">
27
+ <xsd:complexType>
28
+ <xsd:sequence>
29
+ <xsd:element ref="ColorSpecification" minOccurs="0"/>
30
+ <xsd:element name="Ingredients" type="LongStringNotNull" minOccurs="0"/>
31
+ <xsd:element name="ItemPackageQuantity" type="xsd:positiveInteger" default="1" minOccurs="0"/>
32
+ <xsd:element name="Material" type="StringNotNull" minOccurs="0"/>
33
+ <xsd:element name="Size" type="StringNotNull" minOccurs="0"/>
34
+ <xsd:element name="Volume" type="VolumeDimension" minOccurs="0"/>
35
+ </xsd:sequence>
36
+ </xsd:complexType>
37
+ </xsd:element>
38
+ </xsd:schema>
39
+
40
+
@@ -0,0 +1,197 @@
1
+ <?xml version="1.0"?>
2
+ <!-- Revision="$Revision: #9 $" -->
3
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
4
+ <!--
5
+ $Date: 2007/07/18 $
6
+
7
+ AMAZON.COM CONFIDENTIAL. This document and the information contained in it are
8
+ confidential and proprietary information of Amazon.com and may not be reproduced,
9
+ distributed or used, in whole or in part, for any purpose other than as necessary
10
+ to list products for sale on the www.amazon.com web site pursuant to an agreement
11
+ with Amazon.com.
12
+ -->
13
+ <xsd:include schemaLocation="amzn-base.xsd"/>
14
+ <xsd:element name="Clothing">
15
+ <xsd:complexType>
16
+ <xsd:sequence>
17
+ <xsd:element name="VariationData" minOccurs="0">
18
+ <xsd:complexType>
19
+ <xsd:sequence>
20
+ <xsd:element name="Parentage" minOccurs="0">
21
+ <xsd:simpleType>
22
+ <xsd:restriction base="xsd:string">
23
+ <xsd:enumeration value="parent"/>
24
+ <xsd:enumeration value="child"/>
25
+ </xsd:restriction>
26
+ </xsd:simpleType>
27
+ </xsd:element>
28
+ <xsd:element name="Size" type="String" default="*" minOccurs="0"/>
29
+ <xsd:element name="Color" type="String" default="*" minOccurs="0"/>
30
+ <xsd:element name="VariationTheme" minOccurs="0">
31
+ <xsd:simpleType>
32
+ <xsd:restriction base="xsd:string">
33
+ <xsd:enumeration value="Size"/>
34
+ <xsd:enumeration value="Color"/>
35
+ <xsd:enumeration value="SizeColor"/>
36
+ </xsd:restriction>
37
+ </xsd:simpleType>
38
+ </xsd:element>
39
+ </xsd:sequence>
40
+ </xsd:complexType>
41
+ </xsd:element>
42
+ <xsd:element name="ClassificationData">
43
+ <xsd:complexType>
44
+ <xsd:sequence>
45
+ <xsd:element name="ClothingType">
46
+ <xsd:simpleType>
47
+ <xsd:restriction base="xsd:string">
48
+ <xsd:enumeration value="Shirt"/>
49
+ <xsd:enumeration value="Sweater"/>
50
+ <xsd:enumeration value="Pants"/>
51
+ <xsd:enumeration value="Shorts"/>
52
+ <xsd:enumeration value="Skirt"/>
53
+ <xsd:enumeration value="Dress"/>
54
+ <xsd:enumeration value="Suit"/>
55
+ <xsd:enumeration value="Blazer"/>
56
+ <xsd:enumeration value="Outerwear"/>
57
+ <xsd:enumeration value="SocksHosiery"/>
58
+ <xsd:enumeration value="Underwear"/>
59
+ <xsd:enumeration value="Bra"/>
60
+ <xsd:enumeration value="Shoes"/>
61
+ <xsd:enumeration value="Hat"/>
62
+ <xsd:enumeration value="Bag"/>
63
+ <xsd:enumeration value="Accessory"/>
64
+ <xsd:enumeration value="Jewelry"/>
65
+ <xsd:enumeration value="Sleepwear"/>
66
+ <xsd:enumeration value="Swimwear"/>
67
+ <xsd:enumeration value="PersonalBodyCare"/>
68
+ <xsd:enumeration value="HomeAccessory"/>
69
+ <xsd:enumeration value="NonApparelMisc"/>
70
+ <xsd:enumeration value="Kimono"/>
71
+ <xsd:enumeration value="Obi"/>
72
+ <xsd:enumeration value="Chanchanko"/>
73
+ <xsd:enumeration value="Jinbei"/>
74
+ <xsd:enumeration value="Yukata"/>
75
+ </xsd:restriction>
76
+ </xsd:simpleType>
77
+ </xsd:element>
78
+ <xsd:element name="Department" type="StringNotNull" maxOccurs="10"/>
79
+ <xsd:element name="StyleKeywords" type="LongStringNotNull" maxOccurs="10"/>
80
+ <xsd:element name="PlatinumKeywords" type="String" minOccurs="0" maxOccurs="20"/>
81
+ <xsd:element name="ColorMap" type="String" minOccurs="0"/>
82
+ <xsd:element name="SpecialSizeType" type="String" minOccurs="0" maxOccurs="10"/>
83
+ <xsd:element name="MaterialAndFabric" type="LongString" minOccurs="0" maxOccurs="4"/>
84
+ <xsd:element name="MaterialComposition" type="SuperLongStringNotNull" minOccurs="0"/>
85
+ <xsd:element name="MaterialOpacity" type="HundredString" minOccurs="0"/>
86
+ <xsd:element name="InnerMaterial" type="LongString" minOccurs="0"/>
87
+ <xsd:element name="OuterMaterial" type="LongString" minOccurs="0"/>
88
+ <xsd:element name="SoleMaterial" type="LongString" minOccurs="0"/>
89
+ <xsd:element name="ShoeClosureType" type="String" minOccurs="0"/>
90
+ <xsd:element name="ApparelClosureType" type="LongString" minOccurs="0"/>
91
+ <xsd:element name="CareInstructions" type="SuperLongStringNotNull" minOccurs="0"/>
92
+ <xsd:element name="OccasionAndLifestyle" type="LongString" minOccurs="0" maxOccurs="10"/>
93
+ <xsd:element name="EventKeywords" type="LongString" minOccurs="0" maxOccurs="10"/>
94
+ <xsd:element name="Season" type="HundredString" minOccurs="0"/>
95
+ <xsd:element name="SpecificUses" type="HundredString" minOccurs="0" maxOccurs="3"/>
96
+ <xsd:element name="ExternalTestingCertification" type="HundredString" minOccurs="0" maxOccurs="5"/>
97
+ <xsd:element name="PerformanceRating" minOccurs="0" maxOccurs="3">
98
+ <xsd:simpleType>
99
+ <xsd:restriction base="xsd:string">
100
+ <xsd:enumeration value="Sunproof"/>
101
+ <xsd:enumeration value="Waterproof"/>
102
+ <xsd:enumeration value="Weatherproof"/>
103
+ <xsd:enumeration value="Windproof"/>
104
+ </xsd:restriction>
105
+ </xsd:simpleType>
106
+ </xsd:element>
107
+ <xsd:element name="ProductSpecification" type="String" minOccurs="0"/>
108
+ <xsd:element name="Warnings" type="LongStringNotNull" minOccurs="0"/>
109
+ <xsd:element name="IsCustomizable" type="xsd:boolean" minOccurs="0"/>
110
+ <xsd:element name="StyleName" type="StringNotNull" minOccurs="0"/>
111
+ <xsd:element name="CollarType" type="String" minOccurs="0"/>
112
+ <xsd:element name="SleeveType" type="String" minOccurs="0"/>
113
+ <xsd:element name="WaistStyle" type="TwentyStringNotNull" minOccurs="0"/>
114
+ <xsd:element name="MinimumHeightRecommended" type="LengthDimension" minOccurs="0"/>
115
+ <xsd:element name="MaximumHeightRecommended" type="LengthDimension" minOccurs="0"/>
116
+ <xsd:element name="CountryOfOrigin" minOccurs="0">
117
+ <xsd:simpleType>
118
+ <xsd:restriction base="xsd:string">
119
+ <xsd:length value="2" fixed="true"/>
120
+ </xsd:restriction>
121
+ </xsd:simpleType>
122
+ </xsd:element>
123
+ <xsd:element name="ModelName" type="StringNotNull" minOccurs="0"/>
124
+ <xsd:element name="ModelNumber" type="FortyStringNotNull" minOccurs="0"/>
125
+ <xsd:element name="ModelYear" type="FourDigitYear" minOccurs="0"/>
126
+ <xsd:element name="IsAdultProduct" type="xsd:boolean" minOccurs="0"/>
127
+ <xsd:element name="SizeMap" type="StringNotNull" minOccurs="0"/>
128
+ <xsd:element name="WaistSize" type="ClothingSizeDimension" minOccurs="0"/>
129
+ <xsd:element name="InseamLength" type="ClothingSizeDimension" minOccurs="0"/>
130
+ <xsd:element name="SleeveLength" type="ClothingSizeDimension" minOccurs="0"/>
131
+ <xsd:element name="NeckSize" type="ClothingSizeDimension" minOccurs="0"/>
132
+ <xsd:element name="ChestSize" type="ClothingSizeDimension" minOccurs="0"/>
133
+ <xsd:element name="CupSize" minOccurs="0">
134
+ <xsd:simpleType>
135
+ <xsd:restriction base="xsd:string">
136
+ <xsd:enumeration value="A"/>
137
+ <xsd:enumeration value="AA"/>
138
+ <xsd:enumeration value="B"/>
139
+ <xsd:enumeration value="C"/>
140
+ <xsd:enumeration value="D"/>
141
+ <xsd:enumeration value="DD"/>
142
+ <xsd:enumeration value="DDD"/>
143
+ <xsd:enumeration value="E"/>
144
+ <xsd:enumeration value="EE"/>
145
+ <xsd:enumeration value="F"/>
146
+ <xsd:enumeration value="FF"/>
147
+ <xsd:enumeration value="G"/>
148
+ <xsd:enumeration value="GG"/>
149
+ <xsd:enumeration value="H"/>
150
+ <xsd:enumeration value="I"/>
151
+ <xsd:enumeration value="J"/>
152
+ <xsd:enumeration value="Free"/>
153
+ </xsd:restriction>
154
+ </xsd:simpleType>
155
+ </xsd:element>
156
+ <xsd:element name="BraBandSize" type="LengthDimension" minOccurs="0"/>
157
+ <xsd:element name="ShoeWidth" minOccurs="0">
158
+ <xsd:simpleType>
159
+ <xsd:restriction base="xsd:string">
160
+ <xsd:enumeration value="AAAA"/>
161
+ <xsd:enumeration value="AAA"/>
162
+ <xsd:enumeration value="AA"/>
163
+ <xsd:enumeration value="A"/>
164
+ <xsd:enumeration value="B"/>
165
+ <xsd:enumeration value="C"/>
166
+ <xsd:enumeration value="D"/>
167
+ <xsd:enumeration value="E"/>
168
+ <xsd:enumeration value="E"/>
169
+ <xsd:enumeration value="EE"/>
170
+ <xsd:enumeration value="EEE"/>
171
+ <xsd:enumeration value="EEEE"/>
172
+ <xsd:enumeration value="EEEEE"/>
173
+ <xsd:enumeration value="F"/>
174
+ <xsd:enumeration value="G"/>
175
+ </xsd:restriction>
176
+ </xsd:simpleType>
177
+ </xsd:element>
178
+ <xsd:element name="HeelHeight" type="LengthDimension" minOccurs="0"/>
179
+ <xsd:element name="HeelType" type="String" minOccurs="0"/>
180
+ <xsd:element name="ShaftHeight" type="StringLengthOptionalDimension" minOccurs="0"/>
181
+ <xsd:element name="ShaftDiameter" type="String" minOccurs="0"/>
182
+ <xsd:element name="BeltLength" type="LengthDimension" minOccurs="0"/>
183
+ <xsd:element name="BeltWidth" type="LengthDimension" minOccurs="0"/>
184
+ <xsd:element name="FurisodeLength" type="LengthDimension" minOccurs="0"/>
185
+ <xsd:element name="FurisodeWidth" type="LengthDimension" minOccurs="0"/>
186
+ <xsd:element name="ObiLength" type="LengthDimension" minOccurs="0"/>
187
+ <xsd:element name="ObiWidth" type="LengthDimension" minOccurs="0"/>
188
+ <xsd:element name="TsukeobiWidth" type="LengthDimension" minOccurs="0"/>
189
+ <xsd:element name="TsukeobiHeight" type="LengthDimension" minOccurs="0"/>
190
+ <xsd:element name="PillowSize" type="StringLengthOptionalDimension" minOccurs="0"/>
191
+ </xsd:sequence>
192
+ </xsd:complexType>
193
+ </xsd:element>
194
+ </xsd:sequence>
195
+ </xsd:complexType>
196
+ </xsd:element>
197
+ </xsd:schema>
@@ -0,0 +1,238 @@
1
+ <?xml version="1.0"?>
2
+ <!-- Revision="$Revision: #7 $" -->
3
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
4
+ <!--
5
+
6
+ $Date: 2007/09/28 $
7
+
8
+ AMAZON.COM CONFIDENTIAL. This document and the information contained in it are
9
+ confidential and proprietary information of Amazon.com and may not be reproduced,
10
+ distributed or used, in whole or in part, for any purpose other than as necessary
11
+ to list products for sale on the www.amazon.com web site pursuant to an agreement
12
+ with Amazon.com.
13
+
14
+ -->
15
+ <xsd:include schemaLocation="amzn-base.xsd"/>
16
+ <xsd:element name="SoftwareVideoGames">
17
+ <xsd:complexType>
18
+ <xsd:sequence>
19
+ <xsd:element name="ProductType">
20
+ <xsd:complexType>
21
+ <xsd:choice>
22
+ <xsd:element ref="Software"/>
23
+ <xsd:element ref="HandheldSoftwareDownloads"/>
24
+ <xsd:element ref="SoftwareGames"/>
25
+ <xsd:element ref="VideoGames"/>
26
+ <xsd:element ref="VideoGamesAccessories"/>
27
+ <xsd:element ref="VideoGamesHardware"/>
28
+ </xsd:choice>
29
+ </xsd:complexType>
30
+ </xsd:element>
31
+ <xsd:element name="IsAdultProduct" type="xsd:boolean" minOccurs="0"/>
32
+ </xsd:sequence>
33
+ </xsd:complexType>
34
+ </xsd:element>
35
+ <!--
36
+ ###############################################################
37
+ # Software Classification Data
38
+ ###############################################################
39
+ -->
40
+ <xsd:element name="Software">
41
+ <xsd:complexType>
42
+ <xsd:sequence>
43
+ <xsd:element name="MediaFormat" type="MediumStringNotNull" maxOccurs="3"/>
44
+ <xsd:element name="OperatingSystem" type="MediumStringNotNull" maxOccurs="7"/>
45
+ <xsd:element name="Bundles" type="ThirtyStringNotNull" minOccurs="0"/>
46
+ <xsd:element name="ChildrensSoftwareGenre" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
47
+ <xsd:choice minOccurs="0">
48
+ <xsd:element name="ESRBRating" type="FortyStringNotNull"/>
49
+ <xsd:element name="BBFCRating" type="BBFCRatingType"/>
50
+ <xsd:element name="PEGIRating" type="PEGIRatingType"/>
51
+ <xsd:element name="USKRating" type="USKRatingType"/>
52
+ </xsd:choice>
53
+ <xsd:element name="ESRBDescriptors" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
54
+ <xsd:element name="PEGIDetails" type="PEGIDetailsType" minOccurs="0"/>
55
+ <xsd:element name="MFGSuggestedAgeMin" type="xsd:positiveInteger" minOccurs="0"/>
56
+ <xsd:element name="MFGSuggestedAgeMax" type="xsd:positiveInteger" minOccurs="0"/>
57
+ <xsd:element ref="SoftwarePlatform" minOccurs="0" maxOccurs="4"/>
58
+ <xsd:element name="ApplicationVersion" type="StringNotNull" minOccurs="0"/>
59
+ <xsd:element name="NumberOfLicenses" type="xsd:positiveInteger" minOccurs="0"/>
60
+ </xsd:sequence>
61
+ </xsd:complexType>
62
+ </xsd:element>
63
+ <!--
64
+ ###############################################################
65
+ # HandheldSoftwareDownloads Classification Data
66
+ ###############################################################
67
+ -->
68
+ <xsd:element name="HandheldSoftwareDownloads">
69
+ <xsd:complexType>
70
+ <xsd:sequence>
71
+ <xsd:element name="ApplicationVersion" type="StringNotNull"/>
72
+ <xsd:element ref="DownloadableFile"/>
73
+ <xsd:element name="OperatingSystem" type="MediumStringNotNull" maxOccurs="7"/>
74
+ <xsd:element name="SystemRequirements" type="LongStringNotNull" minOccurs="0"/>
75
+ <xsd:element name="NumberOfLicenses" type="xsd:positiveInteger" minOccurs="0"/>
76
+ </xsd:sequence>
77
+ </xsd:complexType>
78
+ </xsd:element>
79
+ <!--
80
+ ###############################################################
81
+ # SoftwareGames Classification Data
82
+ ###############################################################
83
+ -->
84
+ <xsd:element name="SoftwareGames">
85
+ <xsd:complexType>
86
+ <xsd:sequence>
87
+ <xsd:element name="SoftwareVideoGamesGenre" type="StringNotNull" maxOccurs="5"/>
88
+ <xsd:choice>
89
+ <xsd:element name="ESRBRating" type="FortyStringNotNull"/>
90
+ <xsd:element name="BBFCRating" type="BBFCRatingType"/>
91
+ <xsd:element name="PEGIRating" type="PEGIRatingType"/>
92
+ <xsd:element name="USKRating" type="USKRatingType"/>
93
+ </xsd:choice>
94
+ <xsd:element name="MediaFormat" type="MediumStringNotNull" maxOccurs="3"/>
95
+ <xsd:element name="OperatingSystem" type="MediumStringNotNull" maxOccurs="7"/>
96
+ <xsd:element name="Bundles" type="ThirtyStringNotNull" minOccurs="0"/>
97
+ <xsd:element name="ESRBDescriptors" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
98
+ <xsd:element name="PEGIDetails" type="PEGIDetailsType" minOccurs="0"/>
99
+ <xsd:element name="MFGSuggestedAgeMin" type="xsd:positiveInteger" minOccurs="0"/>
100
+ <xsd:element name="MFGSuggestedAgeMax" type="xsd:positiveInteger" minOccurs="0"/>
101
+ <xsd:element name="MaxNumberOfPlayers" type="xsd:positiveInteger" minOccurs="0"/>
102
+ <xsd:element ref="SoftwarePlatform" minOccurs="0" maxOccurs="4"/>
103
+ <xsd:element name="OnlinePlay" type="xsd:boolean" minOccurs="0"/>
104
+ </xsd:sequence>
105
+ </xsd:complexType>
106
+ </xsd:element>
107
+ <!--
108
+ ###############################################################
109
+ # VideoGames Classification Data
110
+ ###############################################################
111
+ -->
112
+ <xsd:element name="VideoGames">
113
+ <xsd:complexType>
114
+ <xsd:sequence>
115
+ <xsd:element name="ConsoleVideoGamesGenre" type="StringNotNull" maxOccurs="5"/>
116
+ <xsd:choice>
117
+ <xsd:element name="ESRBRating" type="FortyStringNotNull"/>
118
+ <xsd:element name="BBFCRating" type="BBFCRatingType"/>
119
+ <xsd:element name="PEGIRating" type="PEGIRatingType"/>
120
+ <xsd:element name="USKRating" type="USKRatingType"/>
121
+ </xsd:choice>
122
+ <xsd:element name="HardwarePlatform" type="MediumStringNotNull"/>
123
+ <xsd:element name="Bundles" type="ThirtyStringNotNull" minOccurs="0"/>
124
+ <xsd:element name="ESRBDescriptors" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
125
+ <xsd:element name="PEGIDetails" type="PEGIDetailsType" minOccurs="0"/>
126
+ <xsd:element name="MaxNumberOfPlayers" type="xsd:positiveInteger" minOccurs="0"/>
127
+ </xsd:sequence>
128
+ </xsd:complexType>
129
+ </xsd:element>
130
+ <!--
131
+ ###############################################################
132
+ # VideoGamesAccessories Classification Data
133
+ ###############################################################
134
+ -->
135
+ <xsd:element name="VideoGamesAccessories">
136
+ <xsd:complexType>
137
+ <xsd:sequence>
138
+ <xsd:element name="HardwarePlatform" type="MediumStringNotNull" maxOccurs="5"/>
139
+ <xsd:element name="Bundles" type="ThirtyStringNotNull" minOccurs="0"/>
140
+ <xsd:element name="Color" type="StringNotNull" minOccurs="0"/>
141
+ <xsd:element ref="ColorMap" minOccurs="0"/>
142
+ <xsd:element name="AdditionalFeatures" type="LongStringNotNull" minOccurs="0"/>
143
+ <xsd:element name="ItemPackageQuantity" type="xsd:positiveInteger" minOccurs="0"/>
144
+ </xsd:sequence>
145
+ </xsd:complexType>
146
+ </xsd:element>
147
+ <!--
148
+ ###############################################################
149
+ # VideoGamesHardware Classification Data
150
+ ###############################################################
151
+ -->
152
+ <xsd:element name="VideoGamesHardware">
153
+ <xsd:complexType>
154
+ <xsd:sequence>
155
+ <xsd:element name="HardwarePlatform" type="MediumStringNotNull"/>
156
+ <xsd:element name="Bundles" type="ThirtyStringNotNull" minOccurs="0"/>
157
+ <xsd:element name="Color" type="StringNotNull" minOccurs="0"/>
158
+ <xsd:element ref="ColorMap" minOccurs="0"/>
159
+ <xsd:element name="AdditionalFeatures" type="LongStringNotNull" minOccurs="0"/>
160
+ <xsd:element name="ItemPackageQuantity" type="xsd:positiveInteger" minOccurs="0"/>
161
+ </xsd:sequence>
162
+ </xsd:complexType>
163
+ </xsd:element>
164
+ <!--
165
+ ###############################################################
166
+ # SWVG Data Types
167
+ ###############################################################
168
+ -->
169
+ <xsd:element name="SoftwarePlatform">
170
+ <xsd:complexType>
171
+ <xsd:sequence>
172
+ <xsd:element name="HardwarePlatform" type="HardwarePlatformType"/>
173
+ <xsd:element name="SystemRequirements" type="LongStringNotNull" default="N/A" minOccurs="0"/>
174
+ </xsd:sequence>
175
+ </xsd:complexType>
176
+ </xsd:element>
177
+ <xsd:simpleType name="HardwarePlatformType">
178
+ <xsd:restriction base="xsd:string">
179
+ <xsd:enumeration value="linux"/>
180
+ <xsd:enumeration value="mac"/>
181
+ <xsd:enumeration value="windows"/>
182
+ <xsd:enumeration value="unix"/>
183
+ </xsd:restriction>
184
+ </xsd:simpleType>
185
+ <xsd:element name="DownloadableFile">
186
+ <xsd:complexType>
187
+ <xsd:sequence>
188
+ <xsd:element name="DownloadableFileFormat" type="FortyStringNotNull"/>
189
+ <xsd:element name="FileSize" type="MemorySizeDimension"/>
190
+ </xsd:sequence>
191
+ </xsd:complexType>
192
+ </xsd:element>
193
+ <xsd:simpleType name="BBFCRatingType">
194
+ <xsd:restriction base="xsd:string">
195
+ <xsd:enumeration value="ages_12_and_over"/>
196
+ <xsd:enumeration value="ages_15_and_over"/>
197
+ <xsd:enumeration value="ages_18_and_over"/>
198
+ <xsd:enumeration value="exempt"/>
199
+ <xsd:enumeration value="parental_guidance"/>
200
+ <xsd:enumeration value="to_be_announced"/>
201
+ <xsd:enumeration value="universal_childrens"/>
202
+ </xsd:restriction>
203
+ </xsd:simpleType>
204
+ <xsd:simpleType name="PEGIRatingType">
205
+ <xsd:restriction base="xsd:string">
206
+ <xsd:enumeration value="ages_3_and_over"/>
207
+ <xsd:enumeration value="ages_7_and_over"/>
208
+ <xsd:enumeration value="ages_12_and_over"/>
209
+ <xsd:enumeration value="ages_16_and_over"/>
210
+ <xsd:enumeration value="ages_18_and_over"/>
211
+ <xsd:enumeration value="unknown"/>
212
+ </xsd:restriction>
213
+ </xsd:simpleType>
214
+ <xsd:complexType name="PEGIDetailsType">
215
+ <xsd:sequence>
216
+ <xsd:element name="BadLanguage" type="xsd:boolean" minOccurs="0"/>
217
+ <xsd:element name="Fear" type="xsd:boolean" minOccurs="0"/>
218
+ <xsd:element name="Violence" type="xsd:boolean" minOccurs="0"/>
219
+ <xsd:element name="Discrimination" type="xsd:boolean" minOccurs="0"/>
220
+ <xsd:element name="Drugs" type="xsd:boolean" minOccurs="0"/>
221
+ <xsd:element name="SexualContent" type="xsd:boolean" minOccurs="0"/>
222
+ </xsd:sequence>
223
+ </xsd:complexType>
224
+ <xsd:simpleType name="USKRatingType">
225
+ <xsd:restriction base="xsd:string">
226
+ <xsd:enumeration value="ages_6_and_over"/>
227
+ <xsd:enumeration value="ages_12_and_over"/>
228
+ <xsd:enumeration value="ages_16_and_over"/>
229
+ <xsd:enumeration value="ages_18_and_over"/>
230
+ <xsd:enumeration value="cannot_publicize"/>
231
+ <xsd:enumeration value="checked_by_legal_department"/>
232
+ <xsd:enumeration value="not_checked"/>
233
+ <xsd:enumeration value="without_age_limitation"/>
234
+ <xsd:enumeration value="unknown"/>
235
+ </xsd:restriction>
236
+ </xsd:simpleType>
237
+ </xsd:schema>
238
+