amazon-mws 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.markdown +31 -0
- data/Rakefile +14 -0
- data/VERSION +1 -0
- data/amazon-mws.gemspec +164 -0
- data/examples/xml/cancel_feed_submissions.xml +16 -0
- data/examples/xml/cancel_report_requests.xml +18 -0
- data/examples/xml/error.xml +10 -0
- data/examples/xml/get_feed_submission_count.xml +10 -0
- data/examples/xml/get_feed_submission_list.xml +16 -0
- data/examples/xml/get_feed_submission_list_by_next_token.xml +16 -0
- data/examples/xml/get_feed_submission_result.xml +30 -0
- data/examples/xml/get_report_count.xml +9 -0
- data/examples/xml/get_report_list.xml +17 -0
- data/examples/xml/get_report_request_count.xml +8 -0
- data/examples/xml/get_report_request_list.xml +120 -0
- data/examples/xml/get_report_request_list_by_next_token.xml +20 -0
- data/examples/xml/get_report_schedule_count.xml +10 -0
- data/examples/xml/get_report_schedule_list.xml +15 -0
- data/examples/xml/get_report_schedule_list_by_next_token.xml +15 -0
- data/examples/xml/manage_report_schedule.xml +14 -0
- data/examples/xml/request_report.xml +17 -0
- data/examples/xml/submit_feed.xml +14 -0
- data/examples/xml/update_report_acknowledgements.xml +18 -0
- data/examples/xsd/Inventory.xsd +49 -0
- data/examples/xsd/Item.xsd +285 -0
- data/examples/xsd/Listings.xsd +32 -0
- data/examples/xsd/OrderAcknowledgement.xsd +55 -0
- data/examples/xsd/OrderAdjustment.xsd +94 -0
- data/examples/xsd/OrderFulfillment.xsd +57 -0
- data/examples/xsd/Override.xsd +48 -0
- data/examples/xsd/Price.xsd +59 -0
- data/examples/xsd/ProcessingReport.xsd +87 -0
- data/examples/xsd/Product.xsd +220 -0
- data/examples/xsd/Product/AutoAccessory.xsd +807 -0
- data/examples/xsd/Product/Beauty.xsd +114 -0
- data/examples/xsd/Product/CE.xsd +544 -0
- data/examples/xsd/Product/CameraPhoto.xsd +2410 -0
- data/examples/xsd/Product/FoodAndBeverages.xsd +270 -0
- data/examples/xsd/Product/Gourmet.xsd +85 -0
- data/examples/xsd/Product/Health.xsd +189 -0
- data/examples/xsd/Product/Home.xsd +654 -0
- data/examples/xsd/Product/Jewelry.xsd +603 -0
- data/examples/xsd/Product/Miscellaneous.xsd +157 -0
- data/examples/xsd/Product/MusicalInstruments.xsd +853 -0
- data/examples/xsd/Product/Office.xsd +550 -0
- data/examples/xsd/Product/PetSupplies.xsd +40 -0
- data/examples/xsd/Product/ProductClothing.xsd +197 -0
- data/examples/xsd/Product/SWVG.xsd +238 -0
- data/examples/xsd/Product/Sports.xsd +308 -0
- data/examples/xsd/Product/TiresAndWheels.xsd +159 -0
- data/examples/xsd/Product/Tools.xsd +66 -0
- data/examples/xsd/Product/ToysBaby.xsd +241 -0
- data/examples/xsd/Product/Wireless.xsd +77 -0
- data/examples/xsd/ProductImage.xsd +39 -0
- data/examples/xsd/Relationship.xsd +47 -0
- data/examples/xsd/SettlementReport.xsd +158 -0
- data/examples/xsd/amzn-base.xsd +1601 -0
- data/examples/xsd/amzn-envelope.xsd +98 -0
- data/examples/xsd/amzn-header.xsd +45 -0
- data/lib/amazon/mws.rb +86 -0
- data/lib/amazon/mws/authentication.rb +9 -0
- data/lib/amazon/mws/authentication/query_string.rb +28 -0
- data/lib/amazon/mws/authentication/signature.rb +43 -0
- data/lib/amazon/mws/base.rb +61 -0
- data/lib/amazon/mws/connection.rb +99 -0
- data/lib/amazon/mws/connection/management.rb +94 -0
- data/lib/amazon/mws/connection/request_builder.rb +67 -0
- data/lib/amazon/mws/exceptions.rb +80 -0
- data/lib/amazon/mws/feed.rb +223 -0
- data/lib/amazon/mws/feed_builder.rb +67 -0
- data/lib/amazon/mws/feed_enumerations.rb +46 -0
- data/lib/amazon/mws/feed_submission.rb +14 -0
- data/lib/amazon/mws/lib/extensions.rb +162 -0
- data/lib/amazon/mws/lib/memoizable.rb +10 -0
- data/lib/amazon/mws/orders.rb +9 -0
- data/lib/amazon/mws/report.rb +310 -0
- data/lib/amazon/mws/report_enumerations.rb +44 -0
- data/lib/amazon/mws/report_info.rb +16 -0
- data/lib/amazon/mws/report_request.rb +19 -0
- data/lib/amazon/mws/report_schedule.rb +13 -0
- data/lib/amazon/mws/response.rb +32 -0
- data/lib/amazon/mws/response/cancel_feed_submissions_response.rb +14 -0
- data/lib/amazon/mws/response/cancel_report_requests_response.rb +14 -0
- data/lib/amazon/mws/response/get_feed_submission_count_response.rb +13 -0
- data/lib/amazon/mws/response/get_feed_submission_list_by_next_token_response.rb +15 -0
- data/lib/amazon/mws/response/get_feed_submission_list_response.rb +15 -0
- data/lib/amazon/mws/response/get_feed_submission_result_response.rb +54 -0
- data/lib/amazon/mws/response/get_report_count_response.rb +13 -0
- data/lib/amazon/mws/response/get_report_list_response.rb +15 -0
- data/lib/amazon/mws/response/get_report_request_count_response.rb +13 -0
- data/lib/amazon/mws/response/get_report_request_list_by_next_token_response.rb +15 -0
- data/lib/amazon/mws/response/get_report_request_list_response.rb +15 -0
- data/lib/amazon/mws/response/get_report_schedule_count_response.rb +13 -0
- data/lib/amazon/mws/response/get_report_schedule_list_by_next_token_response.rb +15 -0
- data/lib/amazon/mws/response/get_report_schedule_list_response.rb +15 -0
- data/lib/amazon/mws/response/manage_report_schedule_response.rb +14 -0
- data/lib/amazon/mws/response/request_report_response.rb +14 -0
- data/lib/amazon/mws/response/response_error.rb +15 -0
- data/lib/amazon/mws/response/submit_feed_response.rb +13 -0
- data/lib/amazon/mws/response/update_reports_acknowledgements_response.rb +14 -0
- data/lib/amazon/mws/version.rb +12 -0
- data/pkg/amazon-mws-0.1.0.gem +0 -0
- data/test/authentication_test.rb +15 -0
- data/test/connection_test.rb +5 -0
- data/test/feed_builder_test.rb +15 -0
- data/test/feed_submission_test.rb +32 -0
- data/test/feed_test.rb +64 -0
- data/test/query_string_test.rb +21 -0
- data/test/report_test.rb +29 -0
- data/test/request_test.rb +18 -0
- data/test/response_test.rb +197 -0
- data/test/signature_test.rb +30 -0
- data/test/test_config.yml +5 -0
- data/test/test_helper.rb +22 -0
- metadata +179 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- Revision="$Revision: #2 $" -->
|
3
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
4
|
+
<!--
|
5
|
+
$Date: 2005/04/01 $
|
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:include schemaLocation="Inventory.xsd"/>
|
15
|
+
<xsd:include schemaLocation="Override.xsd"/>
|
16
|
+
<xsd:include schemaLocation="Price.xsd"/>
|
17
|
+
<xsd:include schemaLocation="Product.xsd"/>
|
18
|
+
<xsd:include schemaLocation="ProductImage.xsd"/>
|
19
|
+
<xsd:include schemaLocation="Relationship.xsd"/>
|
20
|
+
<xsd:element name="Listings">
|
21
|
+
<xsd:complexType>
|
22
|
+
<xsd:sequence>
|
23
|
+
<xsd:element ref="Product" minOccurs="0"/>
|
24
|
+
<xsd:element ref="Relationship" minOccurs="0"/>
|
25
|
+
<xsd:element ref="ProductImage" minOccurs="0" maxOccurs="10"/>
|
26
|
+
<xsd:element ref="Price" minOccurs="0"/>
|
27
|
+
<xsd:element ref="Inventory" minOccurs="0"/>
|
28
|
+
<xsd:element ref="Override" minOccurs="0"/>
|
29
|
+
</xsd:sequence>
|
30
|
+
</xsd:complexType>
|
31
|
+
</xsd:element>
|
32
|
+
</xsd:schema>
|
@@ -0,0 +1,55 @@
|
|
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/03/08 $
|
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="OrderAcknowledgement">
|
15
|
+
<xsd:complexType>
|
16
|
+
<xsd:sequence>
|
17
|
+
<xsd:element ref="AmazonOrderID"/>
|
18
|
+
<xsd:element ref="MerchantOrderID" minOccurs="0"/>
|
19
|
+
<xsd:element name="StatusCode">
|
20
|
+
<xsd:simpleType>
|
21
|
+
<xsd:restriction base="xsd:string">
|
22
|
+
<xsd:enumeration value="Success"/>
|
23
|
+
<xsd:enumeration value="Failure"/>
|
24
|
+
</xsd:restriction>
|
25
|
+
</xsd:simpleType>
|
26
|
+
</xsd:element>
|
27
|
+
<xsd:element name="Item" minOccurs="0" maxOccurs="unbounded">
|
28
|
+
<xsd:complexType>
|
29
|
+
<xsd:sequence>
|
30
|
+
<xsd:element ref="AmazonOrderItemCode"/>
|
31
|
+
<xsd:element ref="MerchantOrderItemID" minOccurs="0"/>
|
32
|
+
<xsd:element name="CancelReason" minOccurs="0">
|
33
|
+
<xsd:simpleType>
|
34
|
+
<xsd:restriction base="xsd:string">
|
35
|
+
<xsd:enumeration value="NoInventory"/>
|
36
|
+
<xsd:enumeration value="ShippingAddressUndeliverable"/>
|
37
|
+
<xsd:enumeration value="CustomerExchange"/>
|
38
|
+
<xsd:enumeration value="BuyerCanceled"/>
|
39
|
+
<xsd:enumeration value="GeneralAdjustment"/>
|
40
|
+
<xsd:enumeration value="CarrierCreditDecision"/>
|
41
|
+
<xsd:enumeration value="RiskAssessmentInformationNotValid"/>
|
42
|
+
<xsd:enumeration value="CarrierCoverageFailure"/>
|
43
|
+
<xsd:enumeration value="CustomerReturn"/>
|
44
|
+
<xsd:enumeration value="MerchandiseNotReceived"/>
|
45
|
+
</xsd:restriction>
|
46
|
+
</xsd:simpleType>
|
47
|
+
</xsd:element>
|
48
|
+
</xsd:sequence>
|
49
|
+
</xsd:complexType>
|
50
|
+
</xsd:element>
|
51
|
+
</xsd:sequence>
|
52
|
+
</xsd:complexType>
|
53
|
+
</xsd:element>
|
54
|
+
</xsd:schema>
|
55
|
+
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- Revision="$Revision: #11 $" -->
|
3
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
4
|
+
|
5
|
+
<!--
|
6
|
+
$Date: 2007/10/26 $
|
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
|
+
|
17
|
+
<xsd:element name="OrderAdjustment">
|
18
|
+
<xsd:complexType>
|
19
|
+
<xsd:sequence>
|
20
|
+
|
21
|
+
<xsd:choice>
|
22
|
+
<xsd:element ref="AmazonOrderID"/>
|
23
|
+
<xsd:element ref="MerchantOrderID"/>
|
24
|
+
</xsd:choice>
|
25
|
+
|
26
|
+
<xsd:element name="AdjustedItem" maxOccurs="unbounded">
|
27
|
+
<xsd:complexType>
|
28
|
+
<xsd:sequence>
|
29
|
+
|
30
|
+
<xsd:choice>
|
31
|
+
<xsd:element ref="AmazonOrderItemCode"/>
|
32
|
+
<xsd:element ref="MerchantOrderItemID"/>
|
33
|
+
</xsd:choice>
|
34
|
+
|
35
|
+
<xsd:element name="MerchantAdjustmentItemID" type="StringNotNull" minOccurs="0"/>
|
36
|
+
|
37
|
+
<xsd:element name="AdjustmentReason">
|
38
|
+
<xsd:simpleType>
|
39
|
+
<xsd:restriction base="xsd:string">
|
40
|
+
<xsd:enumeration value="NoInventory"/>
|
41
|
+
<xsd:enumeration value="CustomerReturn"/>
|
42
|
+
<xsd:enumeration value="GeneralAdjustment"/>
|
43
|
+
<xsd:enumeration value="CouldNotShip"/>
|
44
|
+
<xsd:enumeration value="DifferentItem"/>
|
45
|
+
<xsd:enumeration value="Abandoned"/>
|
46
|
+
<xsd:enumeration value="CustomerCancel"/>
|
47
|
+
<xsd:enumeration value="PriceError"/>
|
48
|
+
<xsd:enumeration value="ProductOutofStock"/>
|
49
|
+
<xsd:enumeration value="CustomerAddressIncorrect"/>
|
50
|
+
<xsd:enumeration value="Exchange"/>
|
51
|
+
<xsd:enumeration value="Other"/>
|
52
|
+
<xsd:enumeration value="CarrierCreditDecision"/>
|
53
|
+
<xsd:enumeration value="RiskAssessmentInformationNotValid"/>
|
54
|
+
<xsd:enumeration value="CarrierCoverageFailure"/>
|
55
|
+
<xsd:enumeration value="TransactionRecord"/>
|
56
|
+
</xsd:restriction>
|
57
|
+
</xsd:simpleType>
|
58
|
+
</xsd:element>
|
59
|
+
|
60
|
+
<xsd:element name="ItemPriceAdjustments" type="BuyerPrice"/>
|
61
|
+
|
62
|
+
<xsd:element name="PromotionAdjustments" minOccurs="0" maxOccurs="unbounded">
|
63
|
+
<xsd:complexType>
|
64
|
+
<xsd:sequence>
|
65
|
+
|
66
|
+
<xsd:element ref="PromotionClaimCode" minOccurs="0"/>
|
67
|
+
<xsd:element ref="MerchantPromotionID" minOccurs="0"/>
|
68
|
+
|
69
|
+
<xsd:element name="Component" maxOccurs="unbounded">
|
70
|
+
<xsd:complexType>
|
71
|
+
<xsd:sequence>
|
72
|
+
|
73
|
+
<xsd:element name="Type" type="PromotionApplicationType"/>
|
74
|
+
<xsd:element name="Amount" type="CurrencyAmount"/>
|
75
|
+
|
76
|
+
</xsd:sequence>
|
77
|
+
</xsd:complexType>
|
78
|
+
</xsd:element>
|
79
|
+
|
80
|
+
</xsd:sequence>
|
81
|
+
</xsd:complexType>
|
82
|
+
</xsd:element>
|
83
|
+
<xsd:element name="DirectPaymentAdjustments" type="DirectPaymentType" minOccurs="0"/>
|
84
|
+
<xsd:element name="QuantityCancelled" type="xsd:positiveInteger" minOccurs="0"/>
|
85
|
+
</xsd:sequence>
|
86
|
+
</xsd:complexType>
|
87
|
+
</xsd:element>
|
88
|
+
|
89
|
+
</xsd:sequence>
|
90
|
+
</xsd:complexType>
|
91
|
+
</xsd:element>
|
92
|
+
|
93
|
+
</xsd:schema>
|
94
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- Revision="$Revision: #2 $" -->
|
3
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
4
|
+
|
5
|
+
<!--
|
6
|
+
$Date: 2005/04/01 $
|
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
|
+
|
17
|
+
<xsd:element name="OrderFulfillment">
|
18
|
+
<xsd:complexType>
|
19
|
+
<xsd:sequence>
|
20
|
+
<xsd:choice>
|
21
|
+
<xsd:element ref="AmazonOrderID"/>
|
22
|
+
<xsd:element ref="MerchantOrderID"/>
|
23
|
+
</xsd:choice>
|
24
|
+
<xsd:element name="MerchantFulfillmentID" type="IDNumber" minOccurs="0"/>
|
25
|
+
<xsd:element name="FulfillmentDate" type="xsd:dateTime"/>
|
26
|
+
<xsd:element name="FulfillmentData" minOccurs="0">
|
27
|
+
<xsd:complexType>
|
28
|
+
<xsd:sequence>
|
29
|
+
<xsd:choice>
|
30
|
+
<xsd:element ref="CarrierCode"/>
|
31
|
+
<xsd:element name="CarrierName" type="String"/>
|
32
|
+
</xsd:choice>
|
33
|
+
<xsd:element name="ShippingMethod" type="String" minOccurs="0"/>
|
34
|
+
<xsd:element name="ShipperTrackingNumber" type="String" minOccurs="0"/>
|
35
|
+
</xsd:sequence>
|
36
|
+
</xsd:complexType>
|
37
|
+
</xsd:element>
|
38
|
+
|
39
|
+
<xsd:element name="Item" minOccurs="0" maxOccurs="unbounded">
|
40
|
+
<xsd:complexType>
|
41
|
+
<xsd:sequence>
|
42
|
+
<xsd:choice>
|
43
|
+
<xsd:element ref="AmazonOrderItemCode"/>
|
44
|
+
<xsd:element ref="MerchantOrderItemID"/>
|
45
|
+
</xsd:choice>
|
46
|
+
<xsd:element name="MerchantFulfillmentItemID" type="IDNumber" minOccurs="0"/>
|
47
|
+
<xsd:element name="Quantity" type="xsd:positiveInteger" minOccurs="0"/>
|
48
|
+
</xsd:sequence>
|
49
|
+
</xsd:complexType>
|
50
|
+
</xsd:element>
|
51
|
+
|
52
|
+
</xsd:sequence>
|
53
|
+
</xsd:complexType>
|
54
|
+
</xsd:element>
|
55
|
+
|
56
|
+
</xsd:schema>
|
57
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- Revision="$Revision: #2 $" -->
|
3
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
4
|
+
|
5
|
+
<!--
|
6
|
+
$Date: 2005/04/01 $
|
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="Override">
|
17
|
+
<xsd:complexType>
|
18
|
+
<xsd:sequence>
|
19
|
+
<xsd:element ref="SKU"/>
|
20
|
+
|
21
|
+
<xsd:element name="ShippingOverride" minOccurs="0" maxOccurs="unbounded">
|
22
|
+
<xsd:complexType>
|
23
|
+
<xsd:sequence>
|
24
|
+
<xsd:element ref="ShipOption"/>
|
25
|
+
|
26
|
+
<xsd:choice>
|
27
|
+
<xsd:element name="IsShippingRestricted" type="xsd:boolean"/>
|
28
|
+
<xsd:sequence>
|
29
|
+
<xsd:element name="Type">
|
30
|
+
<xsd:simpleType>
|
31
|
+
<xsd:restriction base="xsd:string">
|
32
|
+
<xsd:enumeration value="Additive"/>
|
33
|
+
<xsd:enumeration value="Exclusive"/>
|
34
|
+
</xsd:restriction>
|
35
|
+
</xsd:simpleType>
|
36
|
+
</xsd:element>
|
37
|
+
<xsd:element name="ShipAmount" type="CurrencyAmount"/>
|
38
|
+
</xsd:sequence>
|
39
|
+
</xsd:choice>
|
40
|
+
|
41
|
+
</xsd:sequence>
|
42
|
+
</xsd:complexType>
|
43
|
+
</xsd:element>
|
44
|
+
|
45
|
+
</xsd:sequence>
|
46
|
+
</xsd:complexType>
|
47
|
+
</xsd:element>
|
48
|
+
</xsd:schema>
|
@@ -0,0 +1,59 @@
|
|
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: 2006/11/17 $
|
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="Price">
|
15
|
+
<xsd:complexType>
|
16
|
+
<xsd:sequence>
|
17
|
+
<xsd:element ref="SKU"/>
|
18
|
+
<xsd:element name="StandardPrice" type="OverrideCurrencyAmount"/>
|
19
|
+
<xsd:element name="MAP" type="OverrideCurrencyAmount" minOccurs="0"/>
|
20
|
+
<xsd:element name="DepositAmount" type="CurrencyAmountWithDefault" minOccurs="0"/>
|
21
|
+
<xsd:element name="Sale" minOccurs="0">
|
22
|
+
<xsd:complexType>
|
23
|
+
<xsd:sequence>
|
24
|
+
<xsd:element name="StartDate" type="xsd:dateTime"/>
|
25
|
+
<xsd:element name="EndDate" type="xsd:dateTime"/>
|
26
|
+
<xsd:element name="SalePrice" type="OverrideCurrencyAmount"/>
|
27
|
+
</xsd:sequence>
|
28
|
+
</xsd:complexType>
|
29
|
+
</xsd:element>
|
30
|
+
<xsd:element name="Previous" type="DatedPrice" minOccurs="0"/>
|
31
|
+
</xsd:sequence>
|
32
|
+
</xsd:complexType>
|
33
|
+
</xsd:element>
|
34
|
+
<xsd:simpleType name="BaseCurrencyCodeWithDefault">
|
35
|
+
<xsd:restriction base="xsd:string">
|
36
|
+
<xsd:enumeration value="USD"/>
|
37
|
+
<xsd:enumeration value="GBP"/>
|
38
|
+
<xsd:enumeration value="EUR"/>
|
39
|
+
<xsd:enumeration value="JPY"/>
|
40
|
+
<xsd:enumeration value="CAD"/>
|
41
|
+
<xsd:enumeration value="DEFAULT"/>
|
42
|
+
</xsd:restriction>
|
43
|
+
</xsd:simpleType>
|
44
|
+
<xsd:complexType name="CurrencyAmountWithDefault">
|
45
|
+
<xsd:simpleContent>
|
46
|
+
<xsd:extension base="BaseCurrencyAmount">
|
47
|
+
<xsd:attribute name="currency" type="BaseCurrencyCodeWithDefault" use="required"/>
|
48
|
+
</xsd:extension>
|
49
|
+
</xsd:simpleContent>
|
50
|
+
</xsd:complexType>
|
51
|
+
<xsd:complexType name="OverrideCurrencyAmount">
|
52
|
+
<xsd:simpleContent>
|
53
|
+
<xsd:extension base="CurrencyAmountWithDefault">
|
54
|
+
<xsd:attribute name="zero" type="xsd:boolean" use="optional"/>
|
55
|
+
</xsd:extension>
|
56
|
+
</xsd:simpleContent>
|
57
|
+
</xsd:complexType>
|
58
|
+
</xsd:schema>
|
59
|
+
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- Revision="$Revision: #2 $" -->
|
3
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
4
|
+
|
5
|
+
<!--
|
6
|
+
$Date: 2005/04/01 $
|
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
|
+
|
17
|
+
<xsd:element name="ProcessingReport">
|
18
|
+
<xsd:complexType>
|
19
|
+
<xsd:sequence>
|
20
|
+
|
21
|
+
<xsd:element name="DocumentTransactionID" type="IDNumber"/>
|
22
|
+
|
23
|
+
<xsd:element name="StatusCode">
|
24
|
+
<xsd:simpleType>
|
25
|
+
<xsd:restriction base="xsd:string">
|
26
|
+
<xsd:enumeration value="Complete"/>
|
27
|
+
<xsd:enumeration value="Processing"/>
|
28
|
+
<xsd:enumeration value="Rejected"/>
|
29
|
+
</xsd:restriction>
|
30
|
+
</xsd:simpleType>
|
31
|
+
</xsd:element>
|
32
|
+
|
33
|
+
<xsd:element name="ProcessingSummary" minOccurs="0">
|
34
|
+
<xsd:complexType>
|
35
|
+
<xsd:sequence>
|
36
|
+
<xsd:element name="MessagesProcessed" type="xsd:nonNegativeInteger"/>
|
37
|
+
<xsd:element name="MessagesSuccessful" type="xsd:nonNegativeInteger"/>
|
38
|
+
<xsd:element name="MessagesWithError" type="xsd:nonNegativeInteger"/>
|
39
|
+
<xsd:element name="MessagesWithWarning" type="xsd:nonNegativeInteger"/>
|
40
|
+
</xsd:sequence>
|
41
|
+
</xsd:complexType>
|
42
|
+
</xsd:element>
|
43
|
+
|
44
|
+
<xsd:element name="Result" minOccurs="0" maxOccurs="unbounded">
|
45
|
+
<xsd:complexType>
|
46
|
+
<xsd:sequence>
|
47
|
+
|
48
|
+
<xsd:element name="MessageID">
|
49
|
+
<xsd:simpleType>
|
50
|
+
<xsd:restriction base="xsd:nonNegativeInteger">
|
51
|
+
<xsd:pattern value="\d{1,20}"/>
|
52
|
+
</xsd:restriction>
|
53
|
+
</xsd:simpleType>
|
54
|
+
</xsd:element>
|
55
|
+
|
56
|
+
<xsd:element name="ResultCode">
|
57
|
+
<xsd:simpleType>
|
58
|
+
<xsd:restriction base="xsd:string">
|
59
|
+
<xsd:enumeration value="Error"/>
|
60
|
+
<xsd:enumeration value="Warning"/>
|
61
|
+
</xsd:restriction>
|
62
|
+
</xsd:simpleType>
|
63
|
+
</xsd:element>
|
64
|
+
|
65
|
+
<xsd:element name="ResultMessageCode" type="IDNumber"/>
|
66
|
+
<xsd:element name="ResultDescription" type="xsd:string"/>
|
67
|
+
|
68
|
+
<xsd:element name="AdditionalInfo" minOccurs="0">
|
69
|
+
<xsd:complexType>
|
70
|
+
<xsd:sequence>
|
71
|
+
<xsd:element ref="SKU" minOccurs="0"/>
|
72
|
+
<xsd:element ref="FulfillmentCenterID" minOccurs="0"/>
|
73
|
+
<xsd:element ref="AmazonOrderID" minOccurs="0"/>
|
74
|
+
<xsd:element ref="AmazonOrderItemCode" minOccurs="0"/>
|
75
|
+
</xsd:sequence>
|
76
|
+
</xsd:complexType>
|
77
|
+
</xsd:element>
|
78
|
+
|
79
|
+
</xsd:sequence>
|
80
|
+
</xsd:complexType>
|
81
|
+
</xsd:element>
|
82
|
+
|
83
|
+
</xsd:sequence>
|
84
|
+
</xsd:complexType>
|
85
|
+
</xsd:element>
|
86
|
+
|
87
|
+
</xsd:schema>
|
@@ -0,0 +1,220 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- Revision="$Revision: #12 $" -->
|
3
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
4
|
+
<!--
|
5
|
+
$Date: 2007/10/31 $
|
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:include schemaLocation="ProductClothing.xsd"/>
|
15
|
+
<xsd:include schemaLocation="Miscellaneous.xsd"/>
|
16
|
+
<xsd:include schemaLocation="CameraPhoto.xsd"/>
|
17
|
+
<xsd:include schemaLocation="Home.xsd"/>
|
18
|
+
<xsd:include schemaLocation="Sports.xsd"/>
|
19
|
+
<xsd:include schemaLocation="Tools.xsd"/>
|
20
|
+
<xsd:include schemaLocation="FoodAndBeverages.xsd"/>
|
21
|
+
<xsd:include schemaLocation="Gourmet.xsd"/>
|
22
|
+
<xsd:include schemaLocation="Jewelry.xsd"/>
|
23
|
+
<xsd:include schemaLocation="Health.xsd"/>
|
24
|
+
<xsd:include schemaLocation="CE.xsd"/>
|
25
|
+
<xsd:include schemaLocation="SWVG.xsd"/>
|
26
|
+
<xsd:include schemaLocation="Wireless.xsd"/>
|
27
|
+
<xsd:include schemaLocation="Beauty.xsd"/>
|
28
|
+
<xsd:include schemaLocation="Office.xsd"/>
|
29
|
+
<xsd:include schemaLocation="MusicalInstruments.xsd"/>
|
30
|
+
<xsd:include schemaLocation="AutoAccessory.xsd"/>
|
31
|
+
<xsd:include schemaLocation="PetSupplies.xsd"/>
|
32
|
+
<xsd:include schemaLocation="ToysBaby.xsd"/>
|
33
|
+
<xsd:include schemaLocation="TiresAndWheels.xsd"/>
|
34
|
+
<!--
|
35
|
+
Please read the corresponding documentation that contains the recommended values for UsedFor, ItemType,
|
36
|
+
OtherItemAttributes, TargetAudience, and SubjectContent.
|
37
|
+
-->
|
38
|
+
<xsd:element name="Product">
|
39
|
+
<xsd:complexType>
|
40
|
+
<xsd:sequence>
|
41
|
+
<xsd:element ref="SKU"/>
|
42
|
+
<xsd:element ref="StandardProductID" minOccurs="0"/>
|
43
|
+
<xsd:element ref="ProductTaxCode" minOccurs="0"/>
|
44
|
+
<xsd:element name="LaunchDate" type="xsd:dateTime" minOccurs="0"/>
|
45
|
+
<xsd:element name="DiscontinueDate" type="xsd:dateTime" minOccurs="0"/>
|
46
|
+
<xsd:element name="ReleaseDate" type="xsd:dateTime" minOccurs="0"/>
|
47
|
+
<xsd:element name="Condition" type="ConditionInfo" minOccurs="0"/>
|
48
|
+
<xsd:element name="Rebate" type="RebateType" minOccurs="0" maxOccurs="2"/>
|
49
|
+
<xsd:element name="ItemPackageQuantity" type="xsd:positiveInteger" minOccurs="0">
|
50
|
+
<xsd:annotation>
|
51
|
+
<xsd:documentation>
|
52
|
+
Use this field to indicate the number of units included in
|
53
|
+
the item you are offering for sale, such that each unit
|
54
|
+
is packaged for individual sale.
|
55
|
+
</xsd:documentation>
|
56
|
+
</xsd:annotation>
|
57
|
+
</xsd:element>
|
58
|
+
<xsd:element name="NumberOfItems" type="xsd:positiveInteger" minOccurs="0">
|
59
|
+
<xsd:annotation>
|
60
|
+
<xsd:documentation>
|
61
|
+
Use this field to indicate the number of discrete items
|
62
|
+
included in the item you are offering for sale, such that each
|
63
|
+
item is not packaged for individual sale.
|
64
|
+
|
65
|
+
For example, if you are selling a case of 10 packages of socks,
|
66
|
+
and each package contains 3 pairs of socks, the case would have
|
67
|
+
ItemPackageQuantity = 10 and NumberOfItems = 30.
|
68
|
+
</xsd:documentation>
|
69
|
+
</xsd:annotation>
|
70
|
+
</xsd:element>
|
71
|
+
<xsd:element name="DescriptionData" minOccurs="0">
|
72
|
+
<xsd:complexType>
|
73
|
+
<xsd:sequence>
|
74
|
+
<xsd:element name="Title" type="LongStringNotNull"/>
|
75
|
+
<xsd:element name="Brand" type="StringNotNull" minOccurs="0"/>
|
76
|
+
<xsd:element name="Designer" type="StringNotNull" minOccurs="0"/>
|
77
|
+
<xsd:element name="Description" minOccurs="0">
|
78
|
+
<xsd:simpleType>
|
79
|
+
<xsd:restriction base="xsd:normalizedString">
|
80
|
+
<xsd:maxLength value="2000"/>
|
81
|
+
</xsd:restriction>
|
82
|
+
</xsd:simpleType>
|
83
|
+
</xsd:element>
|
84
|
+
<xsd:element name="BulletPoint" type="LongStringNotNull" minOccurs="0" maxOccurs="5"/>
|
85
|
+
<xsd:element name="ItemDimensions" type="Dimensions" minOccurs="0"/>
|
86
|
+
<xsd:element name="PackageDimensions" type="SpatialDimensions" minOccurs="0"/>
|
87
|
+
<xsd:element name="PackageWeight" type="PositiveWeightDimension" minOccurs="0"/>
|
88
|
+
<xsd:element name="ShippingWeight" type="PositiveWeightDimension" minOccurs="0"/>
|
89
|
+
<xsd:element name="MerchantCatalogNumber" type="FortyStringNotNull" minOccurs="0"/>
|
90
|
+
<xsd:element name="MSRP" type="CurrencyAmount" minOccurs="0"/>
|
91
|
+
<xsd:element name="MaxOrderQuantity" type="xsd:positiveInteger" minOccurs="0"/>
|
92
|
+
<xsd:element name="SerialNumberRequired" type="xsd:boolean" minOccurs="0"/>
|
93
|
+
<xsd:element name="Prop65" type="xsd:boolean" minOccurs="0"/>
|
94
|
+
<xsd:element name="CPSIAWarning" minOccurs="0" maxOccurs="4">
|
95
|
+
<xsd:simpleType>
|
96
|
+
<xsd:restriction base="xsd:string">
|
97
|
+
<xsd:enumeration value="choking_hazard_balloon"/>
|
98
|
+
<xsd:enumeration value="choking_hazard_contains_a_marble"/>
|
99
|
+
<xsd:enumeration value="choking_hazard_contains_small_ball"/>
|
100
|
+
<xsd:enumeration value="choking_hazard_is_a_marble"/>
|
101
|
+
<xsd:enumeration value="choking_hazard_is_a_small_ball"/>
|
102
|
+
<xsd:enumeration value="choking_hazard_small_parts"/>
|
103
|
+
<xsd:enumeration value="no_warning_applicable"/>
|
104
|
+
</xsd:restriction>
|
105
|
+
</xsd:simpleType>
|
106
|
+
</xsd:element>
|
107
|
+
<xsd:element name="CPSIAWarningDescription" type="TwoFiftyStringNotNull" minOccurs="0"/>
|
108
|
+
<xsd:element name="LegalDisclaimer" minOccurs="0">
|
109
|
+
<xsd:simpleType>
|
110
|
+
<xsd:restriction base="xsd:normalizedString">
|
111
|
+
<xsd:maxLength value="1000"/>
|
112
|
+
</xsd:restriction>
|
113
|
+
</xsd:simpleType>
|
114
|
+
</xsd:element>
|
115
|
+
<xsd:element name="Manufacturer" type="StringNotNull" minOccurs="0"/>
|
116
|
+
<xsd:element name="MfrPartNumber" type="FortyStringNotNull" minOccurs="0"/>
|
117
|
+
<xsd:element name="SearchTerms" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
|
118
|
+
<xsd:element name="PlatinumKeywords" type="StringNotNull" minOccurs="0" maxOccurs="20"/>
|
119
|
+
<xsd:element name="Memorabilia" type="xsd:boolean" minOccurs="0"/>
|
120
|
+
<xsd:element name="Autographed" type="xsd:boolean" minOccurs="0"/>
|
121
|
+
<xsd:element name="UsedFor" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
|
122
|
+
<xsd:element name="ItemType" type="LongStringNotNull" minOccurs="0"/>
|
123
|
+
<xsd:element name="OtherItemAttributes" type="LongStringNotNull" minOccurs="0" maxOccurs="5"/>
|
124
|
+
<xsd:element name="TargetAudience" type="StringNotNull" minOccurs="0" maxOccurs="3"/>
|
125
|
+
<xsd:element name="SubjectContent" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
|
126
|
+
<xsd:element name="IsGiftWrapAvailable" type="xsd:boolean" minOccurs="0"/>
|
127
|
+
<xsd:element name="IsGiftMessageAvailable" type="xsd:boolean" minOccurs="0"/>
|
128
|
+
<xsd:element name="PromotionKeywords" type="StringNotNull" minOccurs="0" maxOccurs="10"/>
|
129
|
+
<xsd:element name="IsDiscontinuedByManufacturer" type="xsd:boolean" minOccurs="0"/>
|
130
|
+
<xsd:element ref="DeliveryChannel" minOccurs="0" maxOccurs="2"/>
|
131
|
+
<xsd:element name="MaxAggregateShipQuantity" type="xsd:positiveInteger" minOccurs="0"/>
|
132
|
+
<!-- RecommendedBrowseNode and FEDAS_ID are for use by European merchants only. -->
|
133
|
+
<xsd:element name="RecommendedBrowseNode" type="xsd:positiveInteger" minOccurs="0" maxOccurs="2"/>
|
134
|
+
<xsd:element name="FEDAS_ID" minOccurs="0">
|
135
|
+
<!-- Please do not include periods or delimiters. -->
|
136
|
+
<xsd:simpleType>
|
137
|
+
<xsd:restriction base="xsd:normalizedString">
|
138
|
+
<xsd:length value="6" fixed="true"/>
|
139
|
+
</xsd:restriction>
|
140
|
+
</xsd:simpleType>
|
141
|
+
</xsd:element>
|
142
|
+
</xsd:sequence>
|
143
|
+
</xsd:complexType>
|
144
|
+
</xsd:element>
|
145
|
+
<xsd:element name="DiscoveryData" minOccurs="0">
|
146
|
+
<xsd:complexType>
|
147
|
+
<xsd:sequence>
|
148
|
+
<xsd:element name="Priority" minOccurs="0">
|
149
|
+
<xsd:simpleType>
|
150
|
+
<xsd:restriction base="xsd:positiveInteger">
|
151
|
+
<xsd:minInclusive value="1"/>
|
152
|
+
<xsd:maxInclusive value="10"/>
|
153
|
+
</xsd:restriction>
|
154
|
+
</xsd:simpleType>
|
155
|
+
</xsd:element>
|
156
|
+
<xsd:element name="BrowseExclusion" type="xsd:boolean" minOccurs="0"/>
|
157
|
+
<xsd:element name="RecommendationExclusion" type="xsd:boolean" minOccurs="0"/>
|
158
|
+
</xsd:sequence>
|
159
|
+
</xsd:complexType>
|
160
|
+
</xsd:element>
|
161
|
+
<xsd:element name="ProductData" minOccurs="0">
|
162
|
+
<xsd:complexType>
|
163
|
+
<xsd:choice>
|
164
|
+
<xsd:element ref="Clothing"/>
|
165
|
+
<xsd:element ref="Miscellaneous"/>
|
166
|
+
<xsd:element ref="CameraPhoto"/>
|
167
|
+
<xsd:element ref="Home"/>
|
168
|
+
<xsd:element ref="Sports"/>
|
169
|
+
<xsd:element ref="Tools"/>
|
170
|
+
<xsd:element ref="FoodAndBeverages"/>
|
171
|
+
<xsd:element ref="Gourmet"/>
|
172
|
+
<xsd:element ref="Jewelry"/>
|
173
|
+
<xsd:element ref="Health"/>
|
174
|
+
<xsd:element ref="CE"/>
|
175
|
+
<xsd:element ref="SoftwareVideoGames"/>
|
176
|
+
<xsd:element ref="Wireless"/>
|
177
|
+
<xsd:element ref="Beauty"/>
|
178
|
+
<xsd:element ref="Office"/>
|
179
|
+
<xsd:element ref="MusicalInstruments"/>
|
180
|
+
<xsd:element ref="AutoAccessory"/>
|
181
|
+
<xsd:element ref="PetSupplies"/>
|
182
|
+
<xsd:element ref="ToysBaby"/>
|
183
|
+
<xsd:element ref="TiresAndWheels"/>
|
184
|
+
</xsd:choice>
|
185
|
+
</xsd:complexType>
|
186
|
+
</xsd:element>
|
187
|
+
<xsd:element name="RegisteredParameter" minOccurs="0">
|
188
|
+
<xsd:simpleType>
|
189
|
+
<xsd:restriction base="xsd:string">
|
190
|
+
<xsd:enumeration value="PrivateLabel"/>
|
191
|
+
<xsd:enumeration value="Specialized"/>
|
192
|
+
<xsd:enumeration value="NonConsumer"/>
|
193
|
+
<xsd:enumeration value="PreConfigured"/>
|
194
|
+
</xsd:restriction>
|
195
|
+
</xsd:simpleType>
|
196
|
+
</xsd:element>
|
197
|
+
</xsd:sequence>
|
198
|
+
</xsd:complexType>
|
199
|
+
</xsd:element>
|
200
|
+
<!--
|
201
|
+
##################################################
|
202
|
+
# Dimensions types
|
203
|
+
##################################################
|
204
|
+
-->
|
205
|
+
<xsd:complexType name="Dimensions">
|
206
|
+
<xsd:sequence>
|
207
|
+
<xsd:element name="Length" type="LengthDimension" minOccurs="0"/>
|
208
|
+
<xsd:element name="Width" type="LengthDimension" minOccurs="0"/>
|
209
|
+
<xsd:element name="Height" type="LengthDimension" minOccurs="0"/>
|
210
|
+
<xsd:element name="Weight" type="WeightDimension" minOccurs="0"/>
|
211
|
+
</xsd:sequence>
|
212
|
+
</xsd:complexType>
|
213
|
+
<xsd:complexType name="SpatialDimensions">
|
214
|
+
<xsd:sequence>
|
215
|
+
<xsd:element name="Length" type="LengthDimension" minOccurs="0"/>
|
216
|
+
<xsd:element name="Width" type="LengthDimension" minOccurs="0"/>
|
217
|
+
<xsd:element name="Height" type="LengthDimension" minOccurs="0"/>
|
218
|
+
</xsd:sequence>
|
219
|
+
</xsd:complexType>
|
220
|
+
</xsd:schema>
|