amazon-mws-plus 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.project +12 -0
- data/Gemfile +13 -0
- data/README.markdown +30 -0
- data/Rakefile +50 -0
- data/amazon-mws-plus.gemspec +23 -0
- data/amazon-mws.tmproj +27 -0
- data/examples/xml/cancel_feed_submissions.xml +16 -0
- data/examples/xml/cancel_fulfillment_order.xml +6 -0
- data/examples/xml/cancel_report_requests.xml +18 -0
- data/examples/xml/create_fulfillment_order.xml +6 -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 +18 -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_fulfillment_order.xml +113 -0
- data/examples/xml/get_fulfillment_preview.xml +148 -0
- data/examples/xml/get_matching_product.xml +115 -0
- data/examples/xml/get_matching_product_for_id.xml +119 -0
- data/examples/xml/get_report.xml +237 -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/list_all_fulfillment_orders.xml +69 -0
- data/examples/xml/list_all_fulfillment_orders_by_next_token.xml +61 -0
- data/examples/xml/manage_report_schedule.xml +14 -0
- data/examples/xml/orders_request.xml +39 -0
- data/examples/xml/request_order_items.xml +51 -0
- data/examples/xml/request_order_items_by_next_token.xml +51 -0
- data/examples/xml/request_orders.xml +43 -0
- data/examples/xml/request_orders_by_next_token.xml +69 -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 +62 -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 +1600 -0
- data/examples/xsd/amzn-envelope.xsd +98 -0
- data/examples/xsd/amzn-header.xsd +45 -0
- data/lib/amazon-mws.rb +6 -0
- data/lib/amazon/mws.rb +69 -0
- data/lib/amazon/mws/authentication.rb +10 -0
- data/lib/amazon/mws/authentication/query_string.rb +36 -0
- data/lib/amazon/mws/authentication/signature.rb +43 -0
- data/lib/amazon/mws/base.rb +74 -0
- data/lib/amazon/mws/connection.rb +107 -0
- data/lib/amazon/mws/connection/management.rb +95 -0
- data/lib/amazon/mws/connection/request_builder.rb +67 -0
- data/lib/amazon/mws/exceptions.rb +55 -0
- data/lib/amazon/mws/lib/extensions.rb +178 -0
- data/lib/amazon/mws/lib/memoizable.rb +10 -0
- data/lib/amazon/mws/request/feed.rb +276 -0
- data/lib/amazon/mws/request/feed_builder.rb +83 -0
- data/lib/amazon/mws/request/fulfillment.rb +50 -0
- data/lib/amazon/mws/request/orders.rb +107 -0
- data/lib/amazon/mws/request/products.rb +38 -0
- data/lib/amazon/mws/request/report.rb +330 -0
- data/lib/amazon/mws/response.rb +43 -0
- data/lib/amazon/mws/response/feed/cancel_feed_submissions_response.rb +15 -0
- data/lib/amazon/mws/response/feed/get_feed_submission_count_response.rb +13 -0
- data/lib/amazon/mws/response/feed/get_feed_submission_list_by_next_token_response.rb +17 -0
- data/lib/amazon/mws/response/feed/get_feed_submission_list_response.rb +16 -0
- data/lib/amazon/mws/response/feed/get_feed_submission_result_response.rb +54 -0
- data/lib/amazon/mws/response/feed/models/feed_submission.rb +16 -0
- data/lib/amazon/mws/response/feed/submit_feed_response.rb +15 -0
- data/lib/amazon/mws/response/fulfillment_order/cancel_fulfillment_order_response.rb +11 -0
- data/lib/amazon/mws/response/fulfillment_order/create_fulfillment_order_response.rb +12 -0
- data/lib/amazon/mws/response/fulfillment_order/get_fulfillment_order_response.rb +19 -0
- data/lib/amazon/mws/response/fulfillment_order/list_all_fulfillment_orders_by_next_token_response.rb +16 -0
- data/lib/amazon/mws/response/fulfillment_order/list_all_fulfillment_orders_response.rb +15 -0
- data/lib/amazon/mws/response/fulfillment_order/models/fulfillment_address.rb +18 -0
- data/lib/amazon/mws/response/fulfillment_order/models/fulfillment_order.rb +24 -0
- data/lib/amazon/mws/response/fulfillment_order/models/fulfillment_order_item.rb +20 -0
- data/lib/amazon/mws/response/fulfillment_order/models/fulfillment_shipment.rb +18 -0
- data/lib/amazon/mws/response/fulfillment_order/models/fulfillment_shipment_item.rb +14 -0
- data/lib/amazon/mws/response/order/models/order.rb +43 -0
- data/lib/amazon/mws/response/order/models/order_item.rb +48 -0
- data/lib/amazon/mws/response/order/models/promotion_id.rb +9 -0
- data/lib/amazon/mws/response/order/request_get_order_response.rb +15 -0
- data/lib/amazon/mws/response/order/request_order_items_response.rb +25 -0
- data/lib/amazon/mws/response/order/request_orders_response.rb +28 -0
- data/lib/amazon/mws/response/product/get_matching_proudct.rb +31 -0
- data/lib/amazon/mws/response/product/models/product.rb +36 -0
- data/lib/amazon/mws/response/report/cancel_report_requests_response.rb +16 -0
- data/lib/amazon/mws/response/report/get_report_count_response.rb +13 -0
- data/lib/amazon/mws/response/report/get_report_list_response.rb +17 -0
- data/lib/amazon/mws/response/report/get_report_request_count_response.rb +13 -0
- data/lib/amazon/mws/response/report/get_report_request_list_by_next_token_response.rb +17 -0
- data/lib/amazon/mws/response/report/get_report_request_list_response.rb +17 -0
- data/lib/amazon/mws/response/report/get_report_schedule_count_response.rb +13 -0
- data/lib/amazon/mws/response/report/get_report_schedule_list_by_next_token_response.rb +17 -0
- data/lib/amazon/mws/response/report/get_report_schedule_list_response.rb +17 -0
- data/lib/amazon/mws/response/report/manage_report_schedule_response.rb +16 -0
- data/lib/amazon/mws/response/report/models/report_info.rb +16 -0
- data/lib/amazon/mws/response/report/models/report_request.rb +20 -0
- data/lib/amazon/mws/response/report/models/report_schedule.rb +13 -0
- data/lib/amazon/mws/response/report/request_report_response.rb +15 -0
- data/lib/amazon/mws/response/report/update_reports_acknowledgements_response.rb +16 -0
- data/lib/amazon/mws/response/response.rb +43 -0
- data/lib/amazon/mws/response/response_error.rb +21 -0
- data/test/connection_test.rb +14 -0
- data/test/feed_builder_test.rb +74 -0
- data/test/feed_test.rb +144 -0
- data/test/fulfillment_order.rb +49 -0
- data/test/orders_test.rb +78 -0
- data/test/products_test.rb +28 -0
- data/test/query_string_test.rb +18 -0
- data/test/report_test.rb +88 -0
- data/test/response_test.rb +172 -0
- data/test/signature_test.rb +32 -0
- data/test/test_config.yml +6 -0
- data/test/test_helper.rb +33 -0
- metadata +335 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<ListOrderItemsByNextTokenResponse xmlns="https://mws.amazonservices.com/Orders/2011-01-01">
|
3
|
+
<ListOrderItemsByNextTokenResult>
|
4
|
+
<AmazonOrderId>133-562343236-223432335</AmazonOrderId>
|
5
|
+
<OrderItems>
|
6
|
+
<OrderItem>
|
7
|
+
<ASIN>B034534547IMY</ASIN>
|
8
|
+
<OrderItemId>4067343455435394</OrderItemId>
|
9
|
+
<SellerSKU>024345345651</SellerSKU>
|
10
|
+
<Title>Wilson Basketball</Title>
|
11
|
+
<QuantityOrdered>1</QuantityOrdered>
|
12
|
+
<QuantityShipped>0</QuantityShipped>
|
13
|
+
<ItemPrice>
|
14
|
+
<CurrencyCode>USD</CurrencyCode>
|
15
|
+
<Amount>57.07</Amount>
|
16
|
+
</ItemPrice>
|
17
|
+
<ItemTax>
|
18
|
+
<CurrencyCode>USD</CurrencyCode>
|
19
|
+
<Amount>0.00</Amount>
|
20
|
+
</ItemTax>
|
21
|
+
<ShippingPrice>
|
22
|
+
<CurrencyCode>USD</CurrencyCode>
|
23
|
+
<Amount>0.00</Amount>
|
24
|
+
</ShippingPrice>
|
25
|
+
<ShippingTax>
|
26
|
+
<CurrencyCode>USD</CurrencyCode>
|
27
|
+
<Amount>0.00</Amount>
|
28
|
+
</ShippingTax>
|
29
|
+
<GiftWrapPrice>
|
30
|
+
<CurrencyCode>USD</CurrencyCode>
|
31
|
+
<Amount>0.00</Amount>
|
32
|
+
</GiftWrapPrice>
|
33
|
+
<GiftWrapTax>
|
34
|
+
<CurrencyCode>USD</CurrencyCode>
|
35
|
+
<Amount>0.00</Amount>
|
36
|
+
</GiftWrapTax>
|
37
|
+
<ShippingDiscount>
|
38
|
+
<CurrencyCode>USD</CurrencyCode>
|
39
|
+
<Amount>0.00</Amount>
|
40
|
+
</ShippingDiscount>
|
41
|
+
<PromotionDiscount>
|
42
|
+
<CurrencyCode>USD</CurrencyCode>
|
43
|
+
<Amount>0.00</Amount>
|
44
|
+
</PromotionDiscount>
|
45
|
+
</OrderItem>
|
46
|
+
</OrderItems>
|
47
|
+
</ListOrderItemsResult>
|
48
|
+
<ResponseMetadata>
|
49
|
+
<RequestId>dd345345ac-33458-43459-83451-68bfe3454345474b</RequestId>
|
50
|
+
</ResponseMetadata>
|
51
|
+
</ListOrderItemsResponse>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<ListOrdersResponse xmlns="https://mws.amazonservices.com/Orders/2011-01-01">
|
3
|
+
<ListOrdersResult>
|
4
|
+
<NextToken>2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=</NextToken>
|
5
|
+
<LastUpdatedBefore>2010-10-05T18:12:20.687Z</LastUpdatedBefore>
|
6
|
+
<Orders>
|
7
|
+
<Order>
|
8
|
+
<AmazonOrderId>058-1233752-8214740</AmazonOrderId>
|
9
|
+
<PurchaseDate>2010-10-05T00:06:07.000Z</PurchaseDate>
|
10
|
+
<LastUpdatedDate>2010-10-05T12:43:16.000Z</LastUpdatedDate>
|
11
|
+
<OrderStatus>Unshipped</OrderStatus>
|
12
|
+
<SalesChannel>Checkout by Amazon</SalesChannel>
|
13
|
+
<ShipServiceLevel>Std DE Dom</ShipServiceLevel>
|
14
|
+
<FulfillmentChannel>MFN</FulfillmentChannel>
|
15
|
+
<OrderTotal>
|
16
|
+
<CurrencyCode>USD</CurrencyCode>
|
17
|
+
<Amount>4.78</Amount>
|
18
|
+
</OrderTotal>
|
19
|
+
<ShippingAddress>
|
20
|
+
<Name>John Smith</Name>
|
21
|
+
<AddressLine1>2700 First Avenue</AddressLine1>
|
22
|
+
<City>Seattle</City>
|
23
|
+
<StateOrRegion>WA</StateOrRegion>
|
24
|
+
<PostalCode>98102</PostalCode>
|
25
|
+
<Country>US</Country>
|
26
|
+
</ShippingAddress>
|
27
|
+
<NumberOfItemsShipped>0</NumberOfItemsShipped>
|
28
|
+
<NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
|
29
|
+
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
|
30
|
+
<BuyerName>Amazon User</BuyerName>
|
31
|
+
<BuyerEmail>5vlh04mgfmjh9h5@marketplace.amazon.com</BuyerEmail>
|
32
|
+
<ShipServiceLevelCategory>Standard</ShipServiceLevelCategory>
|
33
|
+
<OrderTotal>
|
34
|
+
<CurrencyCode>USD</CurrencyCode>
|
35
|
+
<Amount>25.75<Amount/>
|
36
|
+
</OrderTotal>
|
37
|
+
</Order>
|
38
|
+
</Orders>
|
39
|
+
</ListOrdersResult>
|
40
|
+
<ResponseMetadata>
|
41
|
+
<RequestId>88faca76-b600-46d2-b53c-0c8c4533e43a</RequestId>
|
42
|
+
</ResponseMetadata>
|
43
|
+
</ListOrdersResponse>
|
@@ -0,0 +1,69 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<ListOrdersByNextTokenResponse xmlns="https://mws.amazonservices.com/Orders/2011-01-01">
|
3
|
+
<ListOrdersByNextTokenResult>
|
4
|
+
<LastUpdatedBefore>2012-04-18T20:57:22.000Z</LastUpdatedBefore>
|
5
|
+
<Orders>
|
6
|
+
<Order>
|
7
|
+
<AmazonOrderId>134-562342326-223434325</AmazonOrderId>
|
8
|
+
<PurchaseDate>2012-04-18T04:07:38.000Z</PurchaseDate>
|
9
|
+
<LastUpdateDate>2012-04-18T04:37:56.000Z</LastUpdateDate>
|
10
|
+
<OrderStatus>Unshipped</OrderStatus>
|
11
|
+
<SalesChannel>Amazon.com</SalesChannel>
|
12
|
+
<ShipServiceLevel>Std Cont US Street Addr</ShipServiceLevel>
|
13
|
+
<FulfillmentChannel>MFN</FulfillmentChannel>
|
14
|
+
<OrderTotal>
|
15
|
+
<CurrencyCode>USD</CurrencyCode>
|
16
|
+
<Amount>57.07</Amount>
|
17
|
+
</OrderTotal>
|
18
|
+
<ShippingAddress>
|
19
|
+
<Name>John Smith</Name>
|
20
|
+
<AddressLine1>781 2nd Ave</AddressLine1>
|
21
|
+
<City>New York</City>
|
22
|
+
<StateOrRegion>NEW YORK</StateOrRegion>
|
23
|
+
<PostalCode>11222</PostalCode>
|
24
|
+
<CountryCode>US</CountryCode>
|
25
|
+
<Phone>30553423431</Phone>
|
26
|
+
</ShippingAddress>
|
27
|
+
<NumberOfItemsShipped>0</NumberOfItemsShipped>
|
28
|
+
<NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
|
29
|
+
<PaymentMethod>Other</PaymentMethod>
|
30
|
+
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
|
31
|
+
<BuyerEmail>8v234234324234tyxv8@marketplace.amazon.com</BuyerEmail>
|
32
|
+
<BuyerName>John Smith</BuyerName>
|
33
|
+
<ShipmentServiceLevelCategory>Standard</ShipmentServiceLevelCategory>
|
34
|
+
</Order>
|
35
|
+
<Order>
|
36
|
+
<AmazonOrderId>133-5333444-743334440</AmazonOrderId>
|
37
|
+
<PurchaseDate>2012-04-18T04:49:45.000Z</PurchaseDate>
|
38
|
+
<LastUpdateDate>2012-04-18T05:19:59.000Z</LastUpdateDate>
|
39
|
+
<OrderStatus>Unshipped</OrderStatus>
|
40
|
+
<SalesChannel>Amazon.com</SalesChannel>
|
41
|
+
<ShipServiceLevel>Std Cont US Street Addr</ShipServiceLevel>
|
42
|
+
<FulfillmentChannel>MFN</FulfillmentChannel>
|
43
|
+
<OrderTotal>
|
44
|
+
<CurrencyCode>USD</CurrencyCode>
|
45
|
+
<Amount>44.75</Amount>
|
46
|
+
</OrderTotal>
|
47
|
+
<ShippingAddress>
|
48
|
+
<Name>Mike Smith</Name>
|
49
|
+
<AddressLine1>17 Oak Rd</AddressLine1>
|
50
|
+
<City>Redville</City>
|
51
|
+
<StateOrRegion>OR</StateOrRegion>
|
52
|
+
<PostalCode>45434</PostalCode>
|
53
|
+
<CountryCode>US</CountryCode>
|
54
|
+
<Phone>916734534543</Phone>
|
55
|
+
</ShippingAddress>
|
56
|
+
<NumberOfItemsShipped>0</NumberOfItemsShipped>
|
57
|
+
<NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
|
58
|
+
<PaymentMethod>Other</PaymentMethod>
|
59
|
+
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
|
60
|
+
<BuyerEmail>012342342g29@marketplace.amazon.com</BuyerEmail>
|
61
|
+
<BuyerName>Mike H. Smith</BuyerName>
|
62
|
+
<ShipmentServiceLevelCategory>Standard</ShipmentServiceLevelCategory>
|
63
|
+
</Order>
|
64
|
+
</Orders>
|
65
|
+
</ListOrdersByNextTokenResult>
|
66
|
+
<ResponseMetadata>
|
67
|
+
<RequestId>3fe5555b-1bf8-4434e-a3442-473442ed344460</RequestId>
|
68
|
+
</ResponseMetadata>
|
69
|
+
</ListOrdersByNextTokenResponse>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<RequestReportResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
3
|
+
<RequestReportResult>
|
4
|
+
<ReportRequestInfo>
|
5
|
+
<ReportRequestId>2291326454</ReportRequestId>
|
6
|
+
<ReportType>_GET_MERCHANT_LISTINGS_DATA_</ReportType>
|
7
|
+
<StartDate>2009-01-21T02:10:39+00:00</StartDate>
|
8
|
+
<EndDate>2009-02-13T02:10:39+00:00</EndDate>
|
9
|
+
<Scheduled>false</Scheduled>
|
10
|
+
<SubmittedDate>2009-02-20T02:10:39+00:00</SubmittedDate>
|
11
|
+
<ReportProcessingStatus>_SUBMITTED_</ReportProcessingStatus>
|
12
|
+
</ReportRequestInfo>
|
13
|
+
</RequestReportResult>
|
14
|
+
<ResponseMetadata>
|
15
|
+
<RequestId>88faca76-b600-46d2-b53c-0c8c4533e43a</RequestId>
|
16
|
+
</ResponseMetadata>
|
17
|
+
</RequestReportResponse>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<SubmitFeedResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
3
|
+
<SubmitFeedResult>
|
4
|
+
<FeedSubmissionInfo>
|
5
|
+
<FeedSubmissionId>2291326430</FeedSubmissionId>
|
6
|
+
<FeedType>_POST_PRODUCT_DATA_</FeedType>
|
7
|
+
<SubmittedDate>2009-02-20T02:10:35+00:00</SubmittedDate>
|
8
|
+
<FeedProcessingStatus>_SUBMITTED_</FeedProcessingStatus>
|
9
|
+
</FeedSubmissionInfo>
|
10
|
+
</SubmitFeedResult>
|
11
|
+
<ResponseMetadata>
|
12
|
+
<RequestId>75424a38-f333-4105-98f0-2aa9592d665c</RequestId>
|
13
|
+
</ResponseMetadata>
|
14
|
+
</SubmitFeedResponse>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<UpdateReportAcknowledgementsResponse
|
3
|
+
xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
4
|
+
<UpdateReportAcknowledgementsResult>
|
5
|
+
<Count>1</Count>
|
6
|
+
<ReportInfo>
|
7
|
+
<ReportId>841997483</ReportId>
|
8
|
+
<ReportType>_GET_MERCHANT_LISTINGS_DATA_</ReportType>
|
9
|
+
<ReportRequestId>2234038326</ReportRequestId>
|
10
|
+
<AvailableDate>2009-01-06T03:48:36+00:00</AvailableDate>
|
11
|
+
<Acknowledged>true</Acknowledged>
|
12
|
+
<AcknowledgedDate>2009-02-20T02:10:41+00:00</AcknowledgedDate>
|
13
|
+
</ReportInfo>
|
14
|
+
</UpdateReportAcknowledgementsResult>
|
15
|
+
<ResponseMetadata>
|
16
|
+
<RequestId>42a578a7-ed92-486b-ac67-5de7464fcdfa</RequestId>
|
17
|
+
</ResponseMetadata>
|
18
|
+
</UpdateReportAcknowledgementsResponse>
|
@@ -0,0 +1,49 @@
|
|
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/21 $
|
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="Inventory">
|
15
|
+
<xsd:complexType>
|
16
|
+
<xsd:sequence>
|
17
|
+
<xsd:element ref="SKU"/>
|
18
|
+
<xsd:element ref="FulfillmentCenterID" minOccurs="0"/>
|
19
|
+
<xsd:choice>
|
20
|
+
<xsd:element name="Available" type="xsd:boolean"/>
|
21
|
+
<xsd:element name="Quantity" type="xsd:nonNegativeInteger"/>
|
22
|
+
<xsd:element name="Lookup">
|
23
|
+
<xsd:simpleType>
|
24
|
+
<xsd:restriction base="xsd:string">
|
25
|
+
<xsd:enumeration value="FulfillmentNetwork"/>
|
26
|
+
</xsd:restriction>
|
27
|
+
</xsd:simpleType>
|
28
|
+
</xsd:element>
|
29
|
+
</xsd:choice>
|
30
|
+
<xsd:element name="RestockDate" type="xsd:date" minOccurs="0"/>
|
31
|
+
<xsd:element name="FulfillmentLatency" type="xsd:positiveInteger" minOccurs="0"/>
|
32
|
+
<xsd:element name="SwitchFulfillmentTo" minOccurs="0">
|
33
|
+
<!-- Use this element if you are switching the
|
34
|
+
fulfillment method for your item.
|
35
|
+
If you are switching from AFN to MFN, use "MFN"
|
36
|
+
If you are switching from MFN to AFN, use "AFN"
|
37
|
+
-->
|
38
|
+
<xsd:simpleType>
|
39
|
+
<xsd:restriction base="xsd:string">
|
40
|
+
<xsd:enumeration value="MFN"/>
|
41
|
+
<xsd:enumeration value="AFN"/>
|
42
|
+
</xsd:restriction>
|
43
|
+
</xsd:simpleType>
|
44
|
+
</xsd:element>
|
45
|
+
</xsd:sequence>
|
46
|
+
</xsd:complexType>
|
47
|
+
</xsd:element>
|
48
|
+
</xsd:schema>
|
49
|
+
|
@@ -0,0 +1,285 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!-- Revision="$Revision: #6 $" -->
|
3
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
4
|
+
<!-- Include the data type primitives -->
|
5
|
+
<xsd:include schemaLocation="TypeDefinitions.xsd"/>
|
6
|
+
<xsd:include schemaLocation="ProductAttributes.xsd"/>
|
7
|
+
<xsd:include schemaLocation="AttributeGroups.xsd"/>
|
8
|
+
<!-- Start of the item schema -->
|
9
|
+
<xsd:element name="Item">
|
10
|
+
<xsd:complexType>
|
11
|
+
<xsd:sequence>
|
12
|
+
<xsd:element name="sku">
|
13
|
+
<xsd:complexType>
|
14
|
+
<xsd:sequence>
|
15
|
+
<xsd:element name="value" type="ItemFortyStringNotNull"/>
|
16
|
+
</xsd:sequence>
|
17
|
+
</xsd:complexType>
|
18
|
+
</xsd:element>
|
19
|
+
<xsd:element name="product_type_name" type="StringValue" minOccurs="0"/>
|
20
|
+
<xsd:element name="MarketplaceData" minOccurs="0" maxOccurs="unbounded">
|
21
|
+
<xsd:complexType>
|
22
|
+
<xsd:all>
|
23
|
+
<xsd:element name="contribution_margin" type="PriceUnitValue" minOccurs="0"/>
|
24
|
+
<xsd:element name="discontinue_date" type="DateValue" minOccurs="0"/>
|
25
|
+
<xsd:element name="free_shipping" type="BooleanValue" minOccurs="0"/>
|
26
|
+
<xsd:element name="launch_date" type="DateValue" minOccurs="0"/>
|
27
|
+
<xsd:element name="max_ordering_quantity" type="IntegerValue" minOccurs="0"/>
|
28
|
+
<xsd:element name="msrp" type="PriceUnitValue" minOccurs="0"/>
|
29
|
+
<xsd:element name="offering_can_ship_in_original_container" type="BooleanValue" minOccurs="0"/>
|
30
|
+
<xsd:element name="release_date" type="DateValue" minOccurs="0"/>
|
31
|
+
</xsd:all>
|
32
|
+
<xsd:attribute name="market_name" type="ItemStringNotNull" use="required"/>
|
33
|
+
</xsd:complexType>
|
34
|
+
</xsd:element>
|
35
|
+
<xsd:element name="DescriptionData" minOccurs="0">
|
36
|
+
<xsd:complexType>
|
37
|
+
<xsd:sequence>
|
38
|
+
<xsd:element name="brand_name" type="StringValue" minOccurs="0"/>
|
39
|
+
<xsd:element name="bullet_point" minOccurs="0">
|
40
|
+
<xsd:complexType>
|
41
|
+
<xsd:sequence>
|
42
|
+
<xsd:element name="value" type="ItemLongStringNotNull" minOccurs="0" maxOccurs="30"/>
|
43
|
+
</xsd:sequence>
|
44
|
+
<xsd:attribute name="language" type="LanguageType" use="optional"/>
|
45
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
46
|
+
</xsd:complexType>
|
47
|
+
</xsd:element>
|
48
|
+
<xsd:element name="can_be_giftmessaged" type="BooleanValue" minOccurs="0"/>
|
49
|
+
<xsd:element name="can_be_giftwrapped" type="BooleanValue" minOccurs="0"/>
|
50
|
+
<xsd:element name="ean" minOccurs="0">
|
51
|
+
<xsd:complexType>
|
52
|
+
<xsd:sequence>
|
53
|
+
<xsd:element name="value" type="StandardIdString" maxOccurs="unbounded"/>
|
54
|
+
</xsd:sequence>
|
55
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
56
|
+
</xsd:complexType>
|
57
|
+
</xsd:element>
|
58
|
+
<xsd:element name="ean8" minOccurs="0">
|
59
|
+
<xsd:complexType>
|
60
|
+
<xsd:sequence>
|
61
|
+
<xsd:element name="value" maxOccurs="unbounded">
|
62
|
+
<xsd:simpleType>
|
63
|
+
<xsd:restriction base="xsd:normalizedString">
|
64
|
+
<xsd:minLength value="8"/>
|
65
|
+
<xsd:maxLength value="8"/>
|
66
|
+
</xsd:restriction>
|
67
|
+
</xsd:simpleType>
|
68
|
+
</xsd:element>
|
69
|
+
</xsd:sequence>
|
70
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
71
|
+
</xsd:complexType>
|
72
|
+
</xsd:element>
|
73
|
+
<xsd:element name="gtin" minOccurs="0">
|
74
|
+
<xsd:complexType>
|
75
|
+
<xsd:sequence>
|
76
|
+
<xsd:element name="value" maxOccurs="unbounded">
|
77
|
+
<xsd:simpleType>
|
78
|
+
<xsd:restriction base="xsd:normalizedString">
|
79
|
+
<xsd:minLength value="14"/>
|
80
|
+
<xsd:maxLength value="14"/>
|
81
|
+
</xsd:restriction>
|
82
|
+
</xsd:simpleType>
|
83
|
+
</xsd:element>
|
84
|
+
</xsd:sequence>
|
85
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
86
|
+
</xsd:complexType>
|
87
|
+
</xsd:element>
|
88
|
+
<xsd:element name="isbn" minOccurs="0">
|
89
|
+
<xsd:complexType>
|
90
|
+
<xsd:sequence>
|
91
|
+
<xsd:element name="value">
|
92
|
+
<xsd:simpleType>
|
93
|
+
<xsd:restriction base="xsd:normalizedString">
|
94
|
+
<xsd:minLength value="10"/>
|
95
|
+
<xsd:maxLength value="13"/>
|
96
|
+
</xsd:restriction>
|
97
|
+
</xsd:simpleType>
|
98
|
+
</xsd:element>
|
99
|
+
</xsd:sequence>
|
100
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
101
|
+
</xsd:complexType>
|
102
|
+
</xsd:element>
|
103
|
+
<xsd:element name="ItemDimensions" minOccurs="0">
|
104
|
+
<xsd:complexType>
|
105
|
+
<xsd:sequence>
|
106
|
+
<xsd:element name="item_height" type="DimensionValue"/>
|
107
|
+
<xsd:element name="item_length" type="DimensionValue"/>
|
108
|
+
<xsd:element name="item_width" type="DimensionValue"/>
|
109
|
+
</xsd:sequence>
|
110
|
+
</xsd:complexType>
|
111
|
+
</xsd:element>
|
112
|
+
<xsd:element name="item_name" minOccurs="0" maxOccurs="unbounded">
|
113
|
+
<xsd:complexType>
|
114
|
+
<xsd:sequence>
|
115
|
+
<xsd:element name="value" type="ItemLongStringNotNull" minOccurs="0"/>
|
116
|
+
</xsd:sequence>
|
117
|
+
<xsd:attribute name="language" type="LanguageType" use="optional"/>
|
118
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
119
|
+
</xsd:complexType>
|
120
|
+
</xsd:element>
|
121
|
+
<xsd:element name="item_weight" type="WeightValue" minOccurs="0"/>
|
122
|
+
<xsd:element name="manufacturer" type="LongStringValue" minOccurs="0"/>
|
123
|
+
<xsd:element name="offering_condition" minOccurs="0">
|
124
|
+
<xsd:complexType>
|
125
|
+
<xsd:sequence>
|
126
|
+
<xsd:element name="value" minOccurs="0">
|
127
|
+
<xsd:simpleType>
|
128
|
+
<xsd:restriction base="xsd:normalizedString">
|
129
|
+
<xsd:enumeration value="New"/>
|
130
|
+
<xsd:enumeration value="Used"/>
|
131
|
+
<xsd:enumeration value="Collectible"/>
|
132
|
+
<xsd:enumeration value="Refurbished"/>
|
133
|
+
<xsd:enumeration value="Club"/>
|
134
|
+
</xsd:restriction>
|
135
|
+
</xsd:simpleType>
|
136
|
+
</xsd:element>
|
137
|
+
</xsd:sequence>
|
138
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
139
|
+
</xsd:complexType>
|
140
|
+
</xsd:element>
|
141
|
+
<xsd:element name="offering_subcondition" minOccurs="0">
|
142
|
+
<xsd:complexType>
|
143
|
+
<xsd:sequence>
|
144
|
+
<xsd:element name="value" minOccurs="0">
|
145
|
+
<xsd:simpleType>
|
146
|
+
<xsd:restriction base="xsd:normalizedString">
|
147
|
+
<xsd:enumeration value="New"/>
|
148
|
+
<xsd:enumeration value="LikeNew"/>
|
149
|
+
<xsd:enumeration value="VeryGood"/>
|
150
|
+
<xsd:enumeration value="Good"/>
|
151
|
+
<xsd:enumeration value="Acceptable"/>
|
152
|
+
<xsd:enumeration value="Refurbished"/>
|
153
|
+
</xsd:restriction>
|
154
|
+
</xsd:simpleType>
|
155
|
+
</xsd:element>
|
156
|
+
</xsd:sequence>
|
157
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
158
|
+
</xsd:complexType>
|
159
|
+
</xsd:element>
|
160
|
+
<xsd:element name="package_weight" type="WeightValue" minOccurs="0"/>
|
161
|
+
<xsd:element name="part_number" minOccurs="0">
|
162
|
+
<xsd:complexType>
|
163
|
+
<xsd:sequence>
|
164
|
+
<xsd:element name="value" type="ItemFortyStringNotNull" minOccurs="0"/>
|
165
|
+
</xsd:sequence>
|
166
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
167
|
+
</xsd:complexType>
|
168
|
+
</xsd:element>
|
169
|
+
<xsd:element name="product_description" minOccurs="0" maxOccurs="unbounded">
|
170
|
+
<xsd:complexType>
|
171
|
+
<xsd:sequence>
|
172
|
+
<xsd:element name="value" minOccurs="0">
|
173
|
+
<xsd:simpleType>
|
174
|
+
<xsd:restriction base="xsd:normalizedString">
|
175
|
+
<xsd:minLength value="1"/>
|
176
|
+
<xsd:maxLength value="2000"/>
|
177
|
+
</xsd:restriction>
|
178
|
+
</xsd:simpleType>
|
179
|
+
</xsd:element>
|
180
|
+
</xsd:sequence>
|
181
|
+
<xsd:attribute name="language" type="LanguageType" use="optional"/>
|
182
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
183
|
+
</xsd:complexType>
|
184
|
+
</xsd:element>
|
185
|
+
<xsd:element name="product_tax_code" type="StringValue" minOccurs="0"/>
|
186
|
+
<xsd:element name="upc" minOccurs="0">
|
187
|
+
<xsd:complexType>
|
188
|
+
<xsd:sequence>
|
189
|
+
<xsd:element name="value" type="StandardIdString" maxOccurs="unbounded"/>
|
190
|
+
</xsd:sequence>
|
191
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
192
|
+
</xsd:complexType>
|
193
|
+
</xsd:element>
|
194
|
+
</xsd:sequence>
|
195
|
+
</xsd:complexType>
|
196
|
+
</xsd:element>
|
197
|
+
<xsd:element name="SearchAndBrowseData" minOccurs="0">
|
198
|
+
<xsd:complexType>
|
199
|
+
<xsd:all>
|
200
|
+
<xsd:element name="browse_suppressed" type="BooleanValue" minOccurs="0"/>
|
201
|
+
<xsd:element name="catalog_number" minOccurs="0">
|
202
|
+
<xsd:complexType>
|
203
|
+
<xsd:sequence>
|
204
|
+
<xsd:element name="value" type="ItemFortyStringNotNull" minOccurs="0"/>
|
205
|
+
</xsd:sequence>
|
206
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
207
|
+
</xsd:complexType>
|
208
|
+
</xsd:element>
|
209
|
+
<xsd:element name="generic_keywords" minOccurs="0">
|
210
|
+
<xsd:complexType>
|
211
|
+
<xsd:sequence>
|
212
|
+
<xsd:element name="value" type="ItemStringNotNull" minOccurs="0" maxOccurs="5"/>
|
213
|
+
</xsd:sequence>
|
214
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
215
|
+
</xsd:complexType>
|
216
|
+
</xsd:element>
|
217
|
+
<xsd:element name="item_type_keyword" minOccurs="0">
|
218
|
+
<xsd:complexType>
|
219
|
+
<xsd:sequence>
|
220
|
+
<xsd:element name="value" type="ItemLongStringNotNull" minOccurs="0"/>
|
221
|
+
</xsd:sequence>
|
222
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
223
|
+
</xsd:complexType>
|
224
|
+
</xsd:element>
|
225
|
+
<xsd:element name="platinum_keywords" minOccurs="0">
|
226
|
+
<xsd:complexType>
|
227
|
+
<xsd:sequence>
|
228
|
+
<xsd:element name="value" type="ItemStringNotNull" minOccurs="0" maxOccurs="20"/>
|
229
|
+
</xsd:sequence>
|
230
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
231
|
+
</xsd:complexType>
|
232
|
+
</xsd:element>
|
233
|
+
<xsd:element name="recommendation_suppressed" type="BooleanValue" minOccurs="0"/>
|
234
|
+
<xsd:element name="specific_uses_keywords" minOccurs="0">
|
235
|
+
<xsd:complexType>
|
236
|
+
<xsd:sequence>
|
237
|
+
<xsd:element name="value" type="ItemStringNotNull" minOccurs="0" maxOccurs="5"/>
|
238
|
+
</xsd:sequence>
|
239
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
240
|
+
</xsd:complexType>
|
241
|
+
</xsd:element>
|
242
|
+
<xsd:element name="target_audience_keywords" minOccurs="0">
|
243
|
+
<xsd:complexType>
|
244
|
+
<xsd:sequence>
|
245
|
+
<xsd:element name="value" type="ItemStringNotNull" minOccurs="0" maxOccurs="3"/>
|
246
|
+
</xsd:sequence>
|
247
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
248
|
+
</xsd:complexType>
|
249
|
+
</xsd:element>
|
250
|
+
<xsd:element name="thesaurus_attribute_keywords" minOccurs="0">
|
251
|
+
<xsd:complexType>
|
252
|
+
<xsd:sequence>
|
253
|
+
<xsd:element name="value" type="ItemStringNotNull" minOccurs="0" maxOccurs="5"/>
|
254
|
+
</xsd:sequence>
|
255
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
256
|
+
</xsd:complexType>
|
257
|
+
</xsd:element>
|
258
|
+
<xsd:element name="thesaurus_subject_keywords" minOccurs="0">
|
259
|
+
<xsd:complexType>
|
260
|
+
<xsd:sequence>
|
261
|
+
<xsd:element name="value" type="ItemStringNotNull" minOccurs="0" maxOccurs="5"/>
|
262
|
+
</xsd:sequence>
|
263
|
+
<xsd:attribute name="delete" type="BooleanType" use="optional"/>
|
264
|
+
</xsd:complexType>
|
265
|
+
</xsd:element>
|
266
|
+
</xsd:all>
|
267
|
+
</xsd:complexType>
|
268
|
+
</xsd:element>
|
269
|
+
<xsd:element name="AdditionalData" minOccurs="0">
|
270
|
+
<xsd:complexType>
|
271
|
+
<xsd:sequence>
|
272
|
+
<xsd:any processContents="lax" maxOccurs="unbounded"/>
|
273
|
+
</xsd:sequence>
|
274
|
+
</xsd:complexType>
|
275
|
+
</xsd:element>
|
276
|
+
<!-- SKU and Product Type -->
|
277
|
+
<!-- Marketplace specific data -->
|
278
|
+
<!-- Core data about the item that is the same for all product types -->
|
279
|
+
<!-- Attributes used for indexing the data for search & browse -->
|
280
|
+
<!-- This group holds all of the product type specific attributes -->
|
281
|
+
</xsd:sequence>
|
282
|
+
</xsd:complexType>
|
283
|
+
</xsd:element>
|
284
|
+
</xsd:schema>
|
285
|
+
|