peddler 0.6.5 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +62 -81
  4. data/lib/mws/cart_information.rb +13 -0
  5. data/lib/mws/customer_information.rb +16 -0
  6. data/lib/mws/feeds.rb +110 -1
  7. data/lib/mws/fulfillment_inbound_shipment.rb +13 -1
  8. data/lib/mws/fulfillment_inventory.rb +15 -1
  9. data/lib/mws/fulfillment_outbound_shipment.rb +17 -1
  10. data/lib/mws/off_amazon_payments.rb +15 -1
  11. data/lib/mws/orders.rb +100 -1
  12. data/lib/mws/products.rb +238 -1
  13. data/lib/mws/recommendations.rb +13 -1
  14. data/lib/mws/reports.rb +221 -1
  15. data/lib/mws/sellers.rb +40 -1
  16. data/lib/mws/subscriptions.rb +175 -1
  17. data/lib/peddler/client.rb +77 -37
  18. data/lib/peddler/csv_parser.rb +42 -0
  19. data/lib/peddler/operation.rb +44 -0
  20. data/lib/peddler/parser.rb +21 -0
  21. data/lib/peddler/structured_list.rb +22 -0
  22. data/lib/peddler/version.rb +1 -1
  23. data/lib/peddler/xml_parser.rb +25 -0
  24. data/lib/peddler.rb +2 -0
  25. data/test/helper.rb +1 -1
  26. data/test/integration/test_feeds.rb +18 -0
  27. data/test/integration/test_orders.rb +22 -0
  28. data/test/integration/test_products.rb +53 -0
  29. data/test/integration/test_reports.rb +47 -0
  30. data/test/integration/test_sellers.rb +18 -0
  31. data/test/integration/test_subscriptions.rb +26 -0
  32. data/test/integration_helper.rb +41 -8
  33. data/test/mws.yml +32 -0
  34. data/test/mws.yml.example +4 -0
  35. data/test/unit/peddler/test_client.rb +97 -0
  36. data/test/unit/peddler/test_csv_parser.rb +24 -0
  37. data/test/unit/peddler/test_operation.rb +34 -0
  38. data/test/{peddler/request → unit/peddler}/test_structured_list.rb +5 -5
  39. data/test/unit/peddler/test_xml_parser.rb +19 -0
  40. data/test/{test_peddler.rb → unit/test_peddler.rb} +2 -2
  41. data/test/vcr_cassettes/Feeds.yml +695 -0
  42. data/test/vcr_cassettes/Orders.yml +29855 -0
  43. data/test/vcr_cassettes/Products.yml +8597 -0
  44. data/test/vcr_cassettes/Reports.yml +1881 -0
  45. data/test/vcr_cassettes/Sellers.yml +697 -0
  46. data/test/vcr_cassettes/Subscriptions.yml +1369 -0
  47. metadata +91 -297
  48. data/lib/mws/feeds/client.rb +0 -116
  49. data/lib/mws/feeds/parsers/feed.rb +0 -14
  50. data/lib/mws/feeds/parsers/feed_submission_count.rb +0 -10
  51. data/lib/mws/feeds/parsers/feed_submission_info.rb +0 -25
  52. data/lib/mws/feeds/parsers/feed_submission_list.rb +0 -23
  53. data/lib/mws/feeds/parsers/feed_submission_result.rb +0 -10
  54. data/lib/mws/feeds/parsers/feed_submissions.rb +0 -18
  55. data/lib/mws/feeds/requests/feed.rb +0 -38
  56. data/lib/mws/feeds/requests/feed_submission_count.rb +0 -20
  57. data/lib/mws/feeds/requests/feed_submission_list.rb +0 -30
  58. data/lib/mws/feeds/requests/feed_submission_result.rb +0 -18
  59. data/lib/mws/feeds/requests/feed_submissions.rb +0 -20
  60. data/lib/mws/fulfillment_inbound_shipment/client.rb +0 -7
  61. data/lib/mws/fulfillment_inventory/client.rb +0 -7
  62. data/lib/mws/fulfillment_outbound_shipment/client.rb +0 -7
  63. data/lib/mws/off_amazon_payments/client.rb +0 -7
  64. data/lib/mws/orders/client.rb +0 -98
  65. data/lib/mws/orders/parsers/invoice_data.rb +0 -25
  66. data/lib/mws/orders/parsers/order.rb +0 -113
  67. data/lib/mws/orders/parsers/order_item.rb +0 -110
  68. data/lib/mws/orders/parsers/order_items.rb +0 -23
  69. data/lib/mws/orders/parsers/orders.rb +0 -23
  70. data/lib/mws/orders/parsers/payment_execution_detail.rb +0 -20
  71. data/lib/mws/orders/parsers/payment_execution_detail_item.rb +0 -17
  72. data/lib/mws/orders/parsers/service_status.rb +0 -36
  73. data/lib/mws/orders/parsers/service_status_message.rb +0 -17
  74. data/lib/mws/orders/parsers/shipping_address.rb +0 -37
  75. data/lib/mws/orders/requests/order_items.rb +0 -28
  76. data/lib/mws/orders/requests/orders.rb +0 -41
  77. data/lib/mws/orders/requests/service_status.rb +0 -15
  78. data/lib/mws/products/client.rb +0 -7
  79. data/lib/mws/recommendations/client.rb +0 -7
  80. data/lib/mws/reports/client.rb +0 -249
  81. data/lib/mws/reports/parsers/report.rb +0 -10
  82. data/lib/mws/reports/parsers/report_acknowledgements.rb +0 -20
  83. data/lib/mws/reports/parsers/report_count.rb +0 -10
  84. data/lib/mws/reports/parsers/report_info.rb +0 -29
  85. data/lib/mws/reports/parsers/report_list.rb +0 -23
  86. data/lib/mws/reports/parsers/report_request.rb +0 -14
  87. data/lib/mws/reports/parsers/report_request_count.rb +0 -10
  88. data/lib/mws/reports/parsers/report_request_info.rb +0 -49
  89. data/lib/mws/reports/parsers/report_request_list.rb +0 -23
  90. data/lib/mws/reports/parsers/report_requests.rb +0 -18
  91. data/lib/mws/reports/parsers/report_schedule.rb +0 -21
  92. data/lib/mws/reports/parsers/report_schedule_count.rb +0 -10
  93. data/lib/mws/reports/parsers/report_schedule_list.rb +0 -23
  94. data/lib/mws/reports/parsers/report_scheduler.rb +0 -19
  95. data/lib/mws/reports/requests/report.rb +0 -18
  96. data/lib/mws/reports/requests/report_acknowledgements.rb +0 -27
  97. data/lib/mws/reports/requests/report_count.rb +0 -20
  98. data/lib/mws/reports/requests/report_list.rb +0 -30
  99. data/lib/mws/reports/requests/report_request.rb +0 -21
  100. data/lib/mws/reports/requests/report_request_count.rb +0 -20
  101. data/lib/mws/reports/requests/report_request_list.rb +0 -30
  102. data/lib/mws/reports/requests/report_requests.rb +0 -20
  103. data/lib/mws/reports/requests/report_schedule_count.rb +0 -19
  104. data/lib/mws/reports/requests/report_schedule_list.rb +0 -23
  105. data/lib/mws/reports/requests/report_scheduler.rb +0 -29
  106. data/lib/mws/sellers/client.rb +0 -53
  107. data/lib/mws/sellers/parsers/marketplace.rb +0 -33
  108. data/lib/mws/sellers/parsers/marketplace_participations.rb +0 -32
  109. data/lib/mws/sellers/parsers/participation.rb +0 -21
  110. data/lib/mws/sellers/parsers/service_status.rb +0 -36
  111. data/lib/mws/sellers/parsers/service_status_message.rb +0 -17
  112. data/lib/mws/sellers/requests/marketplace_participations.rb +0 -27
  113. data/lib/mws/sellers/requests/service_status.rb +0 -15
  114. data/lib/mws/subscriptions/client.rb +0 -7
  115. data/lib/peddler/parsers/base.rb +0 -15
  116. data/lib/peddler/parsers/collection.rb +0 -23
  117. data/lib/peddler/parsers/counter.rb +0 -13
  118. data/lib/peddler/parsers/model.rb +0 -42
  119. data/lib/peddler/parsers/text.rb +0 -8
  120. data/lib/peddler/parsers/tokenable.rb +0 -13
  121. data/lib/peddler/parsers/xml.rb +0 -30
  122. data/lib/peddler/request/parameters.rb +0 -57
  123. data/lib/peddler/request/structured_list.rb +0 -48
  124. data/lib/peddler/request.rb +0 -52
  125. data/lib/peddler/response/base.rb +0 -0
  126. data/lib/peddler/response/payload/base.rb +0 -0
  127. data/lib/peddler/response/payload/csv.rb +0 -0
  128. data/lib/peddler/response/payload/xml.rb +0 -0
  129. data/lib/peddler/response.rb +0 -27
  130. data/test/fixtures/feeds/feed_submission.xml +0 -14
  131. data/test/fixtures/feeds/feed_submission_count.xml +0 -9
  132. data/test/fixtures/feeds/feed_submission_list.xml +0 -17
  133. data/test/fixtures/feeds/feed_submissions.xml +0 -15
  134. data/test/fixtures/mws.yml +0 -12
  135. data/test/fixtures/mws.yml.example +0 -4
  136. data/test/fixtures/orders/order_items.xml +0 -83
  137. data/test/fixtures/orders/orders.xml +0 -109
  138. data/test/fixtures/orders/service_status.xml +0 -19
  139. data/test/fixtures/reports/report.xml +0 -8
  140. data/test/fixtures/reports/report_acknowledgements.xml +0 -18
  141. data/test/fixtures/reports/report_count.xml +0 -9
  142. data/test/fixtures/reports/report_list.xml +0 -17
  143. data/test/fixtures/reports/report_request_count.xml +0 -9
  144. data/test/fixtures/reports/report_request_list.xml +0 -24
  145. data/test/fixtures/reports/report_requests.xml +0 -19
  146. data/test/fixtures/reports/report_schedule_count.xml +0 -10
  147. data/test/fixtures/reports/report_schedule_list.xml +0 -16
  148. data/test/fixtures/reports/report_scheduler.xml +0 -15
  149. data/test/fixtures/sellers/market_participations.xml +0 -27
  150. data/test/fixtures/sellers/service_status.xml +0 -9
  151. data/test/integration/feeds/test_feed_submission_count.rb +0 -13
  152. data/test/integration/feeds/test_feed_submission_list.rb +0 -17
  153. data/test/integration/feeds/test_feed_submission_result.rb +0 -15
  154. data/test/integration/orders/test_order_items.rb +0 -19
  155. data/test/integration/orders/test_orders.rb +0 -23
  156. data/test/integration/orders/test_service_status.rb +0 -12
  157. data/test/integration/reports/test_report.rb +0 -15
  158. data/test/integration/reports/test_report_count.rb +0 -13
  159. data/test/integration/reports/test_report_list.rb +0 -17
  160. data/test/integration/reports/test_report_request_count.rb +0 -13
  161. data/test/integration/reports/test_report_request_list.rb +0 -17
  162. data/test/integration/reports/test_report_schedule_count.rb +0 -13
  163. data/test/integration/reports/test_report_schedule_list.rb +0 -13
  164. data/test/integration/reports/test_report_scheduler.rb +0 -16
  165. data/test/integration/sellers/test_marketplace_participations.rb +0 -13
  166. data/test/integration/sellers/test_service_status.rb +0 -12
  167. data/test/mws/feeds/parsers/test_feed.rb +0 -13
  168. data/test/mws/feeds/parsers/test_feed_submission_count.rb +0 -13
  169. data/test/mws/feeds/parsers/test_feed_submission_info.rb +0 -25
  170. data/test/mws/feeds/parsers/test_feed_submission_list.rb +0 -18
  171. data/test/mws/feeds/parsers/test_feed_submission_result.rb +0 -13
  172. data/test/mws/feeds/parsers/test_feed_submissions.rb +0 -17
  173. data/test/mws/feeds/requests/test_feed.rb +0 -63
  174. data/test/mws/feeds/requests/test_feed_submission_count.rb +0 -23
  175. data/test/mws/feeds/requests/test_feed_submission_list.rb +0 -37
  176. data/test/mws/feeds/requests/test_feed_submissions.rb +0 -29
  177. data/test/mws/orders/parsers/test_order.rb +0 -86
  178. data/test/mws/orders/parsers/test_order_item.rb +0 -69
  179. data/test/mws/orders/parsers/test_order_items.rb +0 -18
  180. data/test/mws/orders/parsers/test_orders.rb +0 -18
  181. data/test/mws/orders/parsers/test_payment_execution_detail.rb +0 -14
  182. data/test/mws/orders/parsers/test_payment_execution_detail_item.rb +0 -17
  183. data/test/mws/orders/parsers/test_service_status.rb +0 -39
  184. data/test/mws/orders/parsers/test_service_status_message.rb +0 -17
  185. data/test/mws/orders/parsers/test_shipping_address.rb +0 -36
  186. data/test/mws/orders/requests/test_order_items.rb +0 -36
  187. data/test/mws/orders/requests/test_orders.rb +0 -46
  188. data/test/mws/orders/requests/test_service_status.rb +0 -25
  189. data/test/mws/reports/parsers/test_report_acknowledgments.rb +0 -14
  190. data/test/mws/reports/parsers/test_report_count.rb +0 -13
  191. data/test/mws/reports/parsers/test_report_info.rb +0 -29
  192. data/test/mws/reports/parsers/test_report_list.rb +0 -18
  193. data/test/mws/reports/parsers/test_report_request.rb +0 -13
  194. data/test/mws/reports/parsers/test_report_request_count.rb +0 -13
  195. data/test/mws/reports/parsers/test_report_request_info.rb +0 -49
  196. data/test/mws/reports/parsers/test_report_request_list.rb +0 -18
  197. data/test/mws/reports/parsers/test_report_requests.rb +0 -17
  198. data/test/mws/reports/parsers/test_report_schedule_count.rb +0 -13
  199. data/test/mws/reports/parsers/test_report_schedule_list.rb +0 -18
  200. data/test/mws/reports/parsers/test_report_scheduler.rb +0 -17
  201. data/test/mws/reports/requests/test_acknowledgements.rb +0 -36
  202. data/test/mws/reports/requests/test_report_count.rb +0 -23
  203. data/test/mws/reports/requests/test_report_list.rb +0 -39
  204. data/test/mws/reports/requests/test_report_request.rb +0 -31
  205. data/test/mws/reports/requests/test_report_request_count.rb +0 -23
  206. data/test/mws/reports/requests/test_report_request_list.rb +0 -44
  207. data/test/mws/reports/requests/test_report_requests.rb +0 -29
  208. data/test/mws/reports/requests/test_report_schedule_count.rb +0 -22
  209. data/test/mws/reports/requests/test_report_schedule_list.rb +0 -36
  210. data/test/mws/reports/requests/test_report_scheduler.rb +0 -33
  211. data/test/mws/sellers/parsers/test_market_participations.rb +0 -19
  212. data/test/mws/sellers/parsers/test_service_status.rb +0 -35
  213. data/test/mws/sellers/requests/test_marketplace_participation_list.rb +0 -39
  214. data/test/mws/sellers/requests/test_service_status.rb +0 -25
  215. data/test/parser_helper.rb +0 -11
  216. data/test/peddler/parsers/test_collection.rb +0 -8
  217. data/test/peddler/parsers/test_model.rb +0 -70
  218. data/test/peddler/request/test_parameters.rb +0 -35
  219. data/test/peddler/test_client.rb +0 -42
  220. data/test/request_helper.rb +0 -20
@@ -1,30 +0,0 @@
1
- require 'peddler/parsers/base'
2
-
3
- module Peddler
4
- module Parsers
5
- class XML < Base
6
- def self.xml?
7
- true
8
- end
9
-
10
- def text_at_xpath(path)
11
- node = at_xpath(path)
12
- node.text if node
13
- end
14
-
15
- def at_xpath(path)
16
- document.at_xpath(add_namespace(path))
17
- end
18
-
19
- def xpath(path)
20
- document.xpath(add_namespace(path))
21
- end
22
-
23
- private
24
-
25
- def add_namespace(path)
26
- path.split('/').map { |attr| "xmlns:#{attr}" }.join('/')
27
- end
28
- end
29
- end
30
- end
@@ -1,57 +0,0 @@
1
- require 'delegate'
2
- require 'time'
3
-
4
- require 'peddler/request/structured_list'
5
-
6
- module Peddler
7
- class Request
8
- class Parameters < SimpleDelegator
9
- def initialize(action)
10
- super({ 'Action' => camelize(action) })
11
- end
12
-
13
- def timestamp!
14
- each do |key, value|
15
- store(key, value.iso8601) if value.respond_to?(:iso8601)
16
- end
17
-
18
- self
19
- end
20
-
21
- def format_structured_lists!
22
- lists = {}
23
-
24
- each do |key, value|
25
- if StructuredList.handle?(key)
26
- list = StructuredList.new(key).build(delete(key))
27
- lists.update(list)
28
- end
29
- end
30
-
31
- update(lists)
32
- end
33
-
34
- def camelize_keys!
35
- keys.each do |key|
36
- if key.is_a?(Symbol)
37
- new_key = camelize(key)
38
- store(new_key, delete(key))
39
- end
40
- end
41
-
42
- self
43
- end
44
-
45
- def update(hsh)
46
- __getobj__.update(hsh)
47
- self
48
- end
49
-
50
- private
51
-
52
- def camelize(sym)
53
- sym.to_s.split('_').map(&:capitalize).join
54
- end
55
- end
56
- end
57
- end
@@ -1,48 +0,0 @@
1
- module Peddler
2
- class Request
3
- class StructuredList
4
- KEYS = {
5
- # Feeds
6
- feed_submission_id_list: %w(FeedSubmissionIdList Id),
7
- feed_type_list: %w(FeedTypeList Type),
8
- feed_processing_status_list: %w(FeedProcessingStatusList Status),
9
- # Orders
10
- order_status: %w(OrderStatus Status),
11
- marketplace_id: %w(MarketplaceId Id),
12
- fulfillment_channel: %w(FulfillmentChannel Channel),
13
- payment_method: %w(PaymentMethod),
14
- tfm_shipment_status: %w(TFMShipmentStatus Status),
15
- amazon_order_id: %w(AmazonOrderId Id),
16
- # Reports
17
- report_id_list: %w(ReportIdList Id),
18
- report_request_id_list: %w(ReportRequestIdList Id),
19
- report_type_list: %w(ReportTypeList Type),
20
- report_processing_status_list: %w(ReportProcessingStatusList Status),
21
- }
22
-
23
- attr :keys
24
-
25
- def self.handle?(key)
26
- KEYS.has_key?(key)
27
- end
28
-
29
- def initialize(key)
30
- @keys = KEYS.fetch(key)
31
- end
32
-
33
- def build(values)
34
- Array(values)
35
- .each_with_index
36
- .reduce(Hash.new) { |hsh, (v, i)|
37
- hsh.merge(composite_key(i + 1) => v)
38
- }
39
- end
40
-
41
- private
42
-
43
- def composite_key(index)
44
- (keys.dup << index).join('.')
45
- end
46
- end
47
- end
48
- end
@@ -1,52 +0,0 @@
1
- require 'peddler/request/parameters'
2
- require 'peddler/response'
3
-
4
- module Peddler
5
- class Request
6
- attr :client, :headers
7
-
8
- attr_accessor :body, :last_parsed_response
9
-
10
- def initialize(client)
11
- @client = client
12
- @headers = {}
13
- end
14
-
15
- def parameters(action = nil)
16
- @parameters = Parameters.new(action) if action
17
- @parameters
18
- end
19
-
20
- def execute
21
- res = fetch
22
- parse(res)
23
- end
24
-
25
- def next_token
26
- last_parsed_response.next_token if last_parsed_response
27
- end
28
-
29
- def has_next_token?
30
- !!next_token
31
- end
32
-
33
- private
34
-
35
- def parser
36
- @parser ||= Object.const_get(self.class.name.sub('Request', 'Parser'))
37
- end
38
-
39
- def fetch
40
- opts = { query: parameters, headers: headers, idempotent: true, expects: 200 }
41
- opts.update(body: body) if body
42
- res = client.post(opts)
43
-
44
- Response.new(res)
45
- end
46
-
47
- def parse(response)
48
- document = parser.xml? ? response.result_node : response.body
49
- @last_parsed_response = parser.new(document)
50
- end
51
- end
52
- end
File without changes
File without changes
File without changes
File without changes
@@ -1,27 +0,0 @@
1
- require 'forwardable'
2
- require 'nokogiri'
3
-
4
- module Peddler
5
- class Response
6
- extend Forwardable
7
-
8
- attr :http_response
9
-
10
- def_delegator :http_response, :body
11
-
12
- def initialize(http_response)
13
- @http_response = http_response
14
- end
15
-
16
- def document
17
- Nokogiri::XML(body)
18
- end
19
-
20
- def result_node
21
- root = document.root
22
- path = root.name.sub('Response', 'Result')
23
-
24
- root.xpath("xmlns:#{path}")
25
- end
26
- end
27
- end
@@ -1,14 +0,0 @@
1
- <?xml version="1.0"?>
2
- <SubmitFeedResponse xmlns="http://mws.amazonservices.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>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0"?>
2
- <GetFeedSubmissionCountResponse xmlns="http://mws.amazonservices.com/doc/2009-01-01/">
3
- <GetFeedSubmissionCountResult>
4
- <Count>463</Count>
5
- </GetFeedSubmissionCountResult>
6
- <ResponseMetadata>
7
- <RequestId>21e482a8-15c7-4da3-91a4-424995ed0756</RequestId>
8
- </ResponseMetadata>
9
- </GetFeedSubmissionCountResponse>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0"?>
2
- <GetFeedSubmissionListResponse xmlns="http://mws.amazonservices.com/
3
- doc/2009-01-01/">
4
- <GetFeedSubmissionListResult>
5
- <NextToken>2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=</NextToken>
6
- <HasNext>true</HasNext>
7
- <FeedSubmissionInfo>
8
- <FeedSubmissionId>2291326430</FeedSubmissionId>
9
- <FeedType>_POST_PRODUCT_DATA_</FeedType>
10
- <SubmittedDate>2009-02-20T02:10:35+00:00</SubmittedDate>
11
- <FeedProcessingStatus>_SUBMITTED_</FeedProcessingStatus>
12
- </FeedSubmissionInfo>
13
- </GetFeedSubmissionListResult>
14
- <ResponseMetadata>
15
- <RequestId>1105b931-6f1c-4480-8e97-f3b467840a9e</RequestId>
16
- </ResponseMetadata>
17
- </GetFeedSubmissionListResponse>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0"?>
2
- <CancelFeedSubmissionsResponse xmlns="http://mws.amazonservices.com/doc/2009-01-01/">
3
- <CancelFeedSubmissionsResult>
4
- <Count>1</Count>
5
- <FeedSubmissionInfo>
6
- <FeedSubmissionId>2291326430</FeedSubmissionId>
7
- <FeedType>_POST_PRODUCT_DATA_</FeedType>
8
- <SubmittedDate>2009-02-20T02:10:35+00:00</SubmittedDate>
9
- <FeedProcessingStatus>_CANCELLED_</FeedProcessingStatus>
10
- </FeedSubmissionInfo>
11
- </CancelFeedSubmissionsResult>
12
- <ResponseMetadata>
13
- <RequestId>18e78983-bbf9-43aa-a661-ae7696cb49d4</RequestId>
14
- </ResponseMetadata>
15
- </CancelFeedSubmissionsResponse>
@@ -1,12 +0,0 @@
1
- - country: US
2
- aws_access_key_id: AKIAJ767ZET2BZR4UDDQ
3
- aws_secret_access_key: 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
4
- seller_id: A2H6NH4SQYFZ4M
5
- - country: GB
6
- aws_access_key_id: AKIAJJDQ2MJTMPXKJE4A
7
- aws_secret_access_key: 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
8
- seller_id: A2D9DZ30GEWP6N
9
- - country: JP
10
- aws_access_key_id: AKIAJ5RDDSRROM6GXQ5Q
11
- aws_secret_access_key: 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
12
- seller_id: A7BU5WGNVGQ1I
@@ -1,4 +0,0 @@
1
- - country: GB
2
- aws_access_key_id: foo
3
- aws_secret_access_key: bar
4
- seller_id: baz
@@ -1,83 +0,0 @@
1
- <?xml version="1.0"?>
2
- <ListOrderItemsResponse xmlns="https://mws.amazonservices.com
3
- /Orders/2011-01-01">
4
- <ListOrderItemsResult>
5
- <NextToken>MRgZW55IGNhcm5hbCBwbGVhc3VyZS6=</NextToken>
6
- <AmazonOrderId>058-1233752-8214740</AmazonOrderId>
7
- <OrderItems>
8
- <OrderItem>
9
- <ASIN>BT0093TELA</ASIN>
10
- <OrderItemId>68828574383266</OrderItemId>
11
- <SellerSKU>CBA_OTF_1</SellerSKU>
12
- <Title>Example item name</Title>
13
- <QuantityOrdered>1</QuantityOrdered>
14
- <QuantityShipped>1</QuantityShipped>
15
- <PromotionIds>
16
- <PromotionId>SSOF SSS-25</PromotionId>
17
- </PromotionIds>
18
- <ItemPrice>
19
- <CurrencyCode>USD</CurrencyCode>
20
- <Amount>25.99</Amount>
21
- </ItemPrice>
22
- <ItemTax>
23
- <CurrencyCode>USD</CurrencyCode>
24
- <Amount>0.00</Amount>
25
- </ItemTax>
26
- <ShippingPrice>
27
- <CurrencyCode>USD</CurrencyCode>
28
- <Amount>1.26</Amount>
29
- </ShippingPrice>
30
- <ShippingTax>
31
- <CurrencyCode>USD</CurrencyCode>
32
- <Amount>0.00</Amount>
33
- </ShippingTax>
34
- <PromotionDiscount>
35
- <CurrencyCode>USD</CurrencyCode>
36
- <Amount>0.00</Amount>
37
- </PromotionDiscount>
38
- <ShippingDiscount>
39
- <CurrencyCode>USD</CurrencyCode>
40
- <Amount>0.00</Amount>
41
- </ShippingDiscount>
42
- <ScheduledDeliveryEndDate>2013-01-01T01:30:00.000-06:00
43
- </ScheduledDeliveryEndDate>
44
- <ScheduledDeliveryStartDate>2012-12-31T02:00:00.000-06:00
45
- </ScheduledDeliveryStartDate>
46
- <CODFee>
47
- <CurrencyCode>USD</CurrencyCode>
48
- <Amount>10.00</Amount>
49
- </CODFee>
50
- <CODFeeDiscount>
51
- <CurrencyCode>USD</CurrencyCode>
52
- <Amount>1.00</Amount>
53
- </CODFeeDiscount>
54
- <GiftMessageText>For you!</GiftMessageText>
55
- <GiftWrapPrice>
56
- <CurrencyCode>USD</CurrencyCode>
57
- <Amount>1.99</Amount>
58
- </GiftWrapPrice>
59
- <GiftWrapLevel>Classic</GiftWrapLevel>
60
- </OrderItem>
61
- <OrderItem>
62
- <ASIN>BCTU1104UEFB</ASIN>
63
- <OrderItemId>79039765272157</OrderItemId>
64
- <SellerSKU>CBA_OTF_5</SellerSKU>
65
- <Title>Example item name</Title>
66
- <QuantityOrdered>2</QuantityOrdered>
67
- <ItemPrice>
68
- <CurrencyCode>USD</CurrencyCode>
69
- <Amount>17.95</Amount>
70
- </ItemPrice>
71
- <PromotionIds>
72
- <PromotionId>FREESHIP</PromotionId>
73
- </PromotionIds>
74
- <ConditionId>Used</ConditionID>
75
- <ConditionSubtypeId>Mint</ConditionSubtypeId>
76
- <ConditionNote>Example ConditionNote</ConditionNote>
77
- </OrderItem>
78
- </OrderItems>
79
- </ListOrderItemsResult>
80
- <ResponseMetadata>
81
- <RequestId>88faca76-b600-46d2-b53c-0c8c4533e43a</RequestId>
82
- </ResponseMetadata>
83
- </ListOrderItemsResponse>
@@ -1,109 +0,0 @@
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%3A12%3A20.687Z</LastUpdatedBefore>
6
- <Orders>
7
- <Order>
8
- <AmazonOrderId>058-1233752-8214740</AmazonOrderId>
9
- <PurchaseDate>2010-10-05T00%3A06%3A07.000Z</PurchaseDate>
10
- <LastUpdateDate>2010-10-05T12%3A43%3A16.000Z</LastUpdateDate>
11
- <OrderStatus>Unshipped</OrderStatus>
12
- <OrderType>StandardOrder</OrderType>
13
- <SalesChannel>Checkout by Amazon</SalesChannel>
14
- <ShipServiceLevel>Std DE Dom</ShipServiceLevel>
15
- <FulfillmentChannel>MFN</FulfillmentChannel>
16
- <OrderTotal>
17
- <CurrencyCode>USD</CurrencyCode>
18
- <Amount>111.01</Amount>
19
- </OrderTotal>
20
- <ShippingAddress>
21
- <Name>John Smith</Name>
22
- <AddressLine1>2700 First Avenue</AddressLine1>
23
- <City>Seattle</City>
24
- <StateOrRegion>WA</StateOrRegion>
25
- <PostalCode>98102</PostalCode>
26
- <CountryCode>US</CountryCode>
27
- </ShippingAddress>
28
- <NumberOfItemsShipped>0</NumberOfItemsShipped>
29
- <NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
30
- <PaymentExecutionDetail>
31
- <PaymentExecutionDetailItem>
32
- <Payment>
33
- <CurrencyCode>USD</CurrencyCode>
34
- <Amount>101.01</Amount>
35
- </Payment>
36
- <PaymentMethod>COD</PaymentMethod>
37
- </PaymentExecutionDetailItem>
38
- <PaymentExecutionDetailItem>
39
- <Payment>
40
- <CurrencyCode>USD</CurrencyCode>
41
- <Amount>10.00</Amount>
42
- </Payment>
43
- <PaymentMethod>GC</PaymentMethod>
44
- </PaymentExecutionDetailItem>
45
- </PaymentExecutionDetail>
46
- <PaymentMethod>COD</PaymentMethod>
47
- <MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
48
- <BuyerName>Amazon User</BuyerName>
49
- <BuyerEmail>5vlh04mgfmjh9h5@marketplace.amazon.com</BuyerEmail>
50
- <ShipmentServiceLevelCategory>Standard
51
- </ShipmentServiceLevelCategory>
52
- </Order>
53
- <Order>
54
- <ShipmentServiceLevelCategory>Standard
55
- </ShipmentServiceLevelCategory>
56
- <OrderTotal>
57
- <Amount>10.87</Amount>
58
- <CurrencyCode>USD</CurrencyCode>
59
- </OrderTotal>
60
- <FulfillmentChannel>MFN</FulfillmentChannel>
61
- <BuyerEmail>1x3v628skdi34u2@marketplace.amazon.com</BuyerEmail>
62
- <OrderStatus>Pending</OrderStatus>
63
- <BuyerName>Example Name</BuyerName>
64
- <ShipServiceLevel>Std US Dom</ShipServiceLevel>
65
- <CbaDisplayableShippingLabel>Example shipment service level
66
- </CbaDisplayableShippingLabel>
67
- <LastUpdateDate>2012-10-11T15:53:37Z</LastUpdateDate>
68
- <PurchaseDate>2012-10-11T14:15:55Z</PurchaseDate>
69
- <EarliestShipDate>2012-10-13T05:00:00Z</EarliestShipDate>
70
- <LatestShipDate>2012-10-15T07:59:59Z</LatestShipDate>
71
- <OrderType>Preorder</OrderType>
72
- <NumberOfItemsUnshipped>0</NumberOfItemsUnshipped>
73
- <MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
74
- <SalesChannel>Amazon.com</SalesChannel>
75
- <ShippingAddress>
76
- <Phone>111 222 1234</Phone>
77
- <PostalCode>48823</PostalCode>
78
- <Name>Example Name</Name>
79
- <CountryCode>US</CountryCode>
80
- <StateOrRegion>WA</StateOrRegion>
81
- <AddressLine1>1234 Ridge Rd</AddressLine1>
82
- <City>Seattle</City>
83
- </ShippingAddress>
84
- <NumberOfItemsShipped>1</NumberOfItemsShipped>
85
- <AmazonOrderId>123-1234567-4567890</AmazonOrderId>
86
- <PaymentMethod>Other</PaymentMethod>
87
- </Order>
88
- <Order>
89
- <ShipmentServiceLevelCategory>Standard
90
- </ShipmentServiceLevelCategory>
91
- <FulfillmentChannel>MFN</FulfillmentChannel>
92
- <OrderStatus>Pending</OrderStatus>
93
- <OrderType>StandardOrder</OrderType>
94
- <ShipServiceLevel>Std US Dom</ShipServiceLevel>
95
- <LastUpdateDate>2012-10-12T20:34:00Z</LastUpdateDate>
96
- <PurchaseDate>2012-10-12T20:33:16Z</PurchaseDate>
97
- <NumberOfItemsUnshipped>0</NumberOfItemsUnshipped>
98
- <MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
99
- <SalesChannel>Amazon.com</SalesChannel>
100
- <NumberOfItemsShipped>0</NumberOfItemsShipped>
101
- <AmazonOrderId>123-9876543-6543212</AmazonOrderId>
102
- <PaymentMethod>Other</PaymentMethod>
103
- </Order>
104
- </Orders>
105
- </ListOrdersResult>
106
- <ResponseMetadata>
107
- <RequestId>88faca76-b600-46d2-b53c-0c8c4533e43a</RequestId>
108
- </ResponseMetadata>
109
- </ListOrdersResponse>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0"?>
2
- <GetServiceStatusResponse
3
- xmlns="https://mws.amazonservices.com/Orders/2011-01-01">
4
- <GetServiceStatusResult>
5
- <Status>GREEN_I</Status>
6
- <Timestamp>2010-09-24T21:38:09.676Z</Timestamp>
7
- <MessageId>173964729I</MessageId>
8
- <Messages>
9
- <Message>
10
- <Locale>en_US</Locale>
11
- <Text>We are experiencing high latency in UK because of heavy
12
- traffic.</Text>
13
- </Message>
14
- </Messages>
15
- </GetServiceStatusResult>
16
- <ResponseMetadata>
17
- <RequestId>d80c6c7b-f7c7-4fa7-bdd7-854711cb3bcc</RequestId>
18
- </ResponseMetadata>
19
- </GetServiceStatusResponse>
@@ -1,8 +0,0 @@
1
- order-id order-item-id purchase-date payments-date buyer-email buyer-name buyer-phone-number sku product-name quantity-purchased currency item-price item-tax shipping-price shipping-tax ship-service-level recipient-name ship-address-1 ship-address-2 ship-address-3 ship-city ship-state ship-postal-code ship-country ship-phone-number delivery-start-date delivery-end-date delivery-time-zone delivery-Instructions
2
- 103-26010-55904394929210114 2011-02-09T02:46:57-08:00
3
- 2011-02-09T02:46:57-08:00 0g9lx423zn5@marketplace.amazon.com
4
- Joe Customer 404-555-1212 JW-RT1-HLD9 The Structure of Aikido:
5
- Volume 1: Kenjutsu and Taijutsu Sword and Open-Hand Movement
6
- Relationships (Structure of Aikido, Vol 1) 1 USD 19.49 0.00 3.99
7
- 0.00 Standard Joe Customer 123 Main Street LAWRENCE CA 90044-2463
8
- US 404-555-1212
@@ -1,18 +0,0 @@
1
- <?xml version="1.0"?>
2
- <UpdateReportAcknowledgementsResponse
3
- xmlns="http://mws.amazonservices.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>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0"?>
2
- <GetReportCountResponse xmlns="http://mws.amazonservices.com/doc/2009-01-01/">
3
- <GetReportCountResult>
4
- <Count>166</Count>
5
- </GetReportCountResult>
6
- <ResponseMetadata>
7
- <RequestId>a497aadb-5ea1-49bf-aa14-dabe914465e3</RequestId>
8
- </ResponseMetadata>
9
- </GetReportCountResponse>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0"?>
2
- <GetReportListResponse xmlns="http://mws.amazonservices.com/doc/2009-01-01/">
3
- <GetReportListResult>
4
- <NextToken>2YgYW55IPQhvu5hbCBwbGVhc3VyZS4=</NextToken>
5
- <HasNext>true</HasNext>
6
- <ReportInfo>
7
- <ReportId>898899473</ReportId>
8
- <ReportType>_GET_MERCHANT_LISTINGS_DATA_</ReportType>
9
- <ReportRequestId>2278662938</ReportRequestId>
10
- <AvailableDate>2009-02-10T09:22:33+00:00</AvailableDate>
11
- <Acknowledged>false</Acknowledged>
12
- </ReportInfo>
13
- </GetReportListResult>
14
- <ResponseMetadata>
15
- <RequestId>fbf677c1-dcee-4110-bc88-2ba3702e331b</RequestId>
16
- </ResponseMetadata>
17
- </GetReportListResponse>
@@ -1,9 +0,0 @@
1
- <GetReportRequestCountResponse xmlns="http://mws.amazonservices.com/
2
- doc/2009-01-01/">
3
- <GetReportRequestCountResult>
4
- <Count>1276</Count>
5
- </GetReportRequestCountResult>
6
- <ResponseMetadata>
7
- <RequestId>7e155027-3741-4422-95a7-1de12703c13e</RequestId>
8
- </ResponseMetadata>
9
- </GetReportRequestCountResponse>
@@ -1,24 +0,0 @@
1
- <?xml version="1.0"?>
2
- <GetReportRequestListResponse xmlns="http://mws.amazonservices.com/
3
- doc/2009-01-01/">
4
- <GetReportRequestListResult>
5
- <NextToken>2YgYW55IPQhcm5hbCBwbGVhc3VyZS4=</NextToken>
6
- <HasNext>true</HasNext>
7
- <ReportRequestInfo>
8
- <ReportRequestId>2291326454</ReportRequestId>
9
- <ReportType>_GET_MERCHANT_LISTINGS_DATA_</ReportType>
10
- <StartDate>2011-01-21T02:10:39+00:00</StartDate>
11
- <EndDate>2011-02-13T02:10:39+00:00</EndDate>
12
- <Scheduled>false</Scheduled>
13
- <SubmittedDate>2011-02-17T23:44:09+00:00</SubmittedDate>
14
- <ReportProcessingStatus>_DONE_</ReportProcessingStatus>
15
- <GeneratedReportId>3538561173</GeneratedReportId>
16
- <StartedProcessingDate>2011-02-17T23:44:43+00:00
17
- </StartedProcessingDate>
18
- <CompletedDate>2011-02-17T23:44:48+00:00</CompletedDate>
19
- </ReportRequestInfo>
20
- </GetReportRequestListResult>
21
- <ResponseMetadata>
22
- <RequestId>732480cb-84a8-4c15-9084-a46bd9a0889b</RequestId>
23
- </ResponseMetadata>
24
- </GetReportRequestListResponse>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0"?>
2
- <CancelReportRequestsResponse xmlns="http://mws.amazonservices.com/
3
- doc/2009-01-01/">
4
- <CancelReportRequestsResult>
5
- <Count>10</Count>
6
- <ReportRequestInfo>
7
- <ReportRequestId>2291326454</ReportRequestId>
8
- <ReportType>_GET_MERCHANT_LISTINGS_DATA_</ReportType>
9
- <StartDate>2009-01-21T02:10:39+00:00</StartDate>
10
- <EndDate>2009-02-13T02:10:39+00:00</EndDate>
11
- <Scheduled>false</Scheduled>
12
- <SubmittedDate>2009-02-20T02:10:39+00:00</SubmittedDate>
13
- <ReportProcessingStatus>_CANCELLED_</ReportProcessingStatus>
14
- </ReportRequestInfo>
15
- </CancelReportRequestsResult>
16
- <ResponseMetadata>
17
- <RequestId>a720f9d6-83e9-4684-bc35-065b41ed5ca4</RequestId>
18
- </ResponseMetadata>
19
- </CancelReportRequestsResponse>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0"?>
2
- <GetReportScheduleCountResponse
3
- xmlns="http://mws.amazonservices.com/doc/2009-01-01/">
4
- <GetReportScheduleCountResult>
5
- <Count>18</Count>
6
- </GetReportScheduleCountResult>
7
- <ResponseMetadata>
8
- <RequestId>21e482a8-15c7-4da3-91a4-424995ed0756</RequestId>
9
- </ResponseMetadata>
10
- </GetReportScheduleCountResponse>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0"?>
2
- <GetReportScheduleListResponse xmlns="http://mws.amazonservices.com/
3
- doc/2009-01-01/">
4
- <GetReportScheduleListResult>
5
- <NextToken></NextToken>
6
- <HasNext>false</HasNext>
7
- <ReportSchedule>
8
- <ReportType>_GET_ORDERS_DATA_</ReportType>
9
- <Schedule>_30_DAYS_</Schedule>
10
- <ScheduledDate>2009-02-20T02:10:42+00:00</ScheduledDate>
11
- </ReportSchedule>
12
- </GetReportScheduleListResult>
13
- <ResponseMetadata>
14
- <RequestId>c0464157-b74f-4e52-bd1a-4ebf4bc7e5aa</RequestId>
15
- </ResponseMetadata>
16
- </GetReportScheduleListResponse>