peddler 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -22
  3. data/lib/mws/fulfillment_outbound_shipment/client.rb +12 -5
  4. data/lib/mws/merchant_fulfillment/client.rb +2 -2
  5. data/lib/mws/orders/client.rb +9 -1
  6. data/lib/mws/products/client.rb +14 -1
  7. data/lib/mws/reports/client.rb +1 -1
  8. data/lib/mws.rb +0 -3
  9. data/lib/peddler/client.rb +12 -19
  10. data/lib/peddler/errors/builder.rb +20 -0
  11. data/lib/peddler/errors/error.rb +13 -0
  12. data/lib/peddler/errors/handler.rb +45 -0
  13. data/lib/peddler/errors/parser.rb +28 -0
  14. data/lib/peddler/flat_file_parser.rb +1 -1
  15. data/lib/peddler/marketplace.rb +2 -2
  16. data/lib/peddler/parser.rb +0 -1
  17. data/lib/peddler/structured_list.rb +1 -0
  18. data/lib/peddler/version.rb +1 -1
  19. data/lib/peddler/xml_parser.rb +1 -1
  20. data/test/helper.rb +1 -82
  21. data/test/integration/test_errors.rb +36 -0
  22. data/test/integration/test_feeds.rb +1 -1
  23. data/test/integration/test_fulfillment_inbound_shipment.rb +1 -1
  24. data/test/integration/test_fulfillment_inventory.rb +1 -1
  25. data/test/integration/test_fulfillment_outbound_shipment.rb +1 -1
  26. data/test/integration/test_merchant_fulfillment.rb +1 -1
  27. data/test/integration/test_off_amazon_payments.rb +1 -1
  28. data/test/integration/test_orders.rb +3 -1
  29. data/test/integration/test_products.rb +1 -1
  30. data/test/integration/test_recommendations.rb +2 -4
  31. data/test/integration/test_reports.rb +1 -1
  32. data/test/integration/test_sellers.rb +1 -1
  33. data/test/integration/test_subscriptions.rb +1 -1
  34. data/test/integration_helper.rb +41 -0
  35. data/test/mws.yml +28 -8
  36. data/test/mws.yml.example +21 -1
  37. data/test/recorder.rb +34 -0
  38. data/test/unit/mws/test_fulfillment_inbound_shipment_client.rb +2 -1
  39. data/test/unit/mws/test_fulfillment_outbound_shipment_client.rb +9 -2
  40. data/test/unit/mws/test_orders_client.rb +12 -0
  41. data/test/unit/mws/test_products_client.rb +37 -0
  42. data/test/unit/peddler/errors/test_builder.rb +16 -0
  43. data/test/unit/peddler/errors/test_error.rb +16 -0
  44. data/test/unit/peddler/errors/test_handler.rb +60 -0
  45. data/test/unit/peddler/{test_error_parser.rb → errors/test_parser.rb} +3 -3
  46. data/test/unit/peddler/test_client.rb +3 -3
  47. data/test/unit/peddler/test_flat_file_parser.rb +39 -30
  48. data/test/unit/peddler/test_structured_list.rb +5 -0
  49. data/test/unit/peddler/test_vcr_matcher.rb +4 -0
  50. data/test/unit/test_mws.rb +1 -1
  51. data/test/vcr_cassettes/CartInformation.yml +263 -13
  52. data/test/vcr_cassettes/CustomerInformation.yml +255 -5
  53. data/test/vcr_cassettes/Errors.yml +885 -0
  54. data/test/vcr_cassettes/Feeds.yml +5588 -17
  55. data/test/vcr_cassettes/FulfillmentInboundShipment.yml +3474 -39
  56. data/test/vcr_cassettes/FulfillmentInventory.yml +504 -9
  57. data/test/vcr_cassettes/FulfillmentOutboundShipment.yml +255 -5
  58. data/test/vcr_cassettes/MerchantFulfillment.yml +254 -4
  59. data/test/vcr_cassettes/OffAmazonPayments.yml +255 -5
  60. data/test/vcr_cassettes/Orders.yml +2696 -36
  61. data/test/vcr_cassettes/Products.yml +5534 -180
  62. data/test/vcr_cassettes/Recommendations.yml +847 -9
  63. data/test/vcr_cassettes/Reports.yml +3994 -101
  64. data/test/vcr_cassettes/Sellers.yml +255 -5
  65. data/test/vcr_cassettes/Subscriptions.yml +875 -13
  66. metadata +37 -27
  67. data/lib/mws/cart_information/client.rb +0 -74
  68. data/lib/mws/cart_information.rb +0 -1
  69. data/lib/mws/customer_information/client.rb +0 -80
  70. data/lib/mws/customer_information.rb +0 -1
  71. data/lib/mws/webstore/client.rb +0 -89
  72. data/lib/mws/webstore.rb +0 -1
  73. data/lib/peddler/error_parser.rb +0 -26
  74. data/test/integration/test_cart_information.rb +0 -11
  75. data/test/integration/test_customer_information.rb +0 -11
  76. data/test/integration/test_webstore.rb +0 -18
  77. data/test/unit/mws/test_cart_information_client.rb +0 -61
  78. data/test/unit/mws/test_customer_information_client.rb +0 -59
  79. data/test/unit/mws/test_webstore_client.rb +0 -101
  80. data/test/vcr_cassettes/Webstore.yml +0 -383
@@ -0,0 +1,885 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://mws.amazonservices.com.mx/Orders/2013-09-01
6
+ body:
7
+ encoding: UTF-8
8
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A01Z&Version=2013-09-01&Signature=MyyiEUzErh8YiguHaNFTHIU2DckQIGmyIlx5TPsDTuM%3D
9
+ headers:
10
+ User-Agent:
11
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ response:
15
+ status:
16
+ code: 403
17
+ message:
18
+ headers:
19
+ Server:
20
+ - Server
21
+ Date:
22
+ - Mon, 23 May 2016 12:17:02 GMT
23
+ Content-Type:
24
+ - text/xml
25
+ Content-Length:
26
+ - '344'
27
+ Connection:
28
+ - keep-alive
29
+ x-mws-request-id:
30
+ - 00df398f-e78f-49ff-b71b-aef161edb82c
31
+ x-mws-timestamp:
32
+ - '2016-05-23T12:17:02.582Z'
33
+ x-mws-response-context:
34
+ - bUYOxpXi+PGNh8qrdEc9kNp/ooLyWO1crukK1cDkvBVJW7HEf3sp2ktciOyJT2XnnHtpcY4E7Xvj
35
+ NaUV/Vk0KA==
36
+ Vary:
37
+ - Accept-Encoding,User-Agent
38
+ body:
39
+ encoding: UTF-8
40
+ string: |
41
+ <?xml version="1.0"?>
42
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
43
+ <Error>
44
+ <Type>Sender</Type>
45
+ <Code>InvalidAccessKeyId</Code>
46
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
47
+ </Error>
48
+ <RequestID>00df398f-e78f-49ff-b71b-aef161edb82c</RequestID>
49
+ </ErrorResponse>
50
+ http_version:
51
+ recorded_at: Mon, 23 May 2016 12:17:02 GMT
52
+ - request:
53
+ method: post
54
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
55
+ body:
56
+ encoding: UTF-8
57
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A02Z&Version=2013-09-01&Signature=t0LccrY3UcTag6oztJwms4YaAHN%2FRku8D339MzuREJc%3D
58
+ headers:
59
+ User-Agent:
60
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
61
+ Content-Type:
62
+ - application/x-www-form-urlencoded
63
+ response:
64
+ status:
65
+ code: 403
66
+ message:
67
+ headers:
68
+ Server:
69
+ - Server
70
+ Date:
71
+ - Mon, 23 May 2016 12:17:03 GMT
72
+ Content-Type:
73
+ - text/xml
74
+ Content-Length:
75
+ - '344'
76
+ Connection:
77
+ - keep-alive
78
+ x-mws-request-id:
79
+ - 1d076335-515f-451d-bc8f-c12c93e43874
80
+ x-mws-timestamp:
81
+ - '2016-05-23T12:17:03.527Z'
82
+ x-mws-response-context:
83
+ - wxjSPxLmtd2MjB+U8T6ibCRHp+80uxJDefc7wRqMusZsE/AWkAL2kCn098SkJSG5DllbPvgvYHWc
84
+ p8OKqk30ag==
85
+ Vary:
86
+ - Accept-Encoding,User-Agent
87
+ body:
88
+ encoding: UTF-8
89
+ string: |
90
+ <?xml version="1.0"?>
91
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
92
+ <Error>
93
+ <Type>Sender</Type>
94
+ <Code>InvalidAccessKeyId</Code>
95
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
96
+ </Error>
97
+ <RequestID>1d076335-515f-451d-bc8f-c12c93e43874</RequestID>
98
+ </ErrorResponse>
99
+ http_version:
100
+ recorded_at: Mon, 23 May 2016 12:17:03 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
104
+ body:
105
+ encoding: UTF-8
106
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A03Z&Version=2013-09-01&Signature=SMZmbd4bacx8bYkg6WJ198bIfkjQFLh7kWqGTqsVBg8%3D
107
+ headers:
108
+ User-Agent:
109
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
110
+ Content-Type:
111
+ - application/x-www-form-urlencoded
112
+ response:
113
+ status:
114
+ code: 403
115
+ message:
116
+ headers:
117
+ Server:
118
+ - Server
119
+ Date:
120
+ - Mon, 23 May 2016 12:17:03 GMT
121
+ Content-Type:
122
+ - text/xml
123
+ Content-Length:
124
+ - '344'
125
+ Connection:
126
+ - keep-alive
127
+ x-mws-request-id:
128
+ - 8a975a37-ae3d-420c-b294-747ece38eb15
129
+ x-mws-timestamp:
130
+ - '2016-05-23T12:17:03.768Z'
131
+ x-mws-response-context:
132
+ - nq1uY2OtVML1oMuS81LCGiEz9sUZ69g5DcrAhm/LXQd7A47ENMes/ykmT1Tj7NzcPkXGYWmgDlCJ
133
+ bSPOogd/bg==
134
+ Vary:
135
+ - Accept-Encoding,User-Agent
136
+ body:
137
+ encoding: UTF-8
138
+ string: |
139
+ <?xml version="1.0"?>
140
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
141
+ <Error>
142
+ <Type>Sender</Type>
143
+ <Code>InvalidAccessKeyId</Code>
144
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
145
+ </Error>
146
+ <RequestID>8a975a37-ae3d-420c-b294-747ece38eb15</RequestID>
147
+ </ErrorResponse>
148
+ http_version:
149
+ recorded_at: Mon, 23 May 2016 12:17:03 GMT
150
+ - request:
151
+ method: post
152
+ uri: https://mws.amazonservices.ca/Orders/2013-09-01
153
+ body:
154
+ encoding: UTF-8
155
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A03Z&Version=2013-09-01&Signature=LZJLm79FpUSEEE64JxOQl%2Fv9%2B8gJundIO9GCm59ZQCI%3D
156
+ headers:
157
+ User-Agent:
158
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
159
+ Content-Type:
160
+ - application/x-www-form-urlencoded
161
+ response:
162
+ status:
163
+ code: 403
164
+ message:
165
+ headers:
166
+ Server:
167
+ - Server
168
+ Date:
169
+ - Mon, 23 May 2016 12:17:04 GMT
170
+ Content-Type:
171
+ - text/xml
172
+ Content-Length:
173
+ - '344'
174
+ Connection:
175
+ - keep-alive
176
+ x-mws-request-id:
177
+ - 627c5924-6175-40bf-98b4-502a938310a6
178
+ x-mws-timestamp:
179
+ - '2016-05-23T12:17:04.795Z'
180
+ x-mws-response-context:
181
+ - d3QEKHI7fhB64Q9lCdTzO0FMWprAU3qHDCpgP0LmNl5diGZhXojnzBTnxRv+G0P6+/wXovJJQD17
182
+ vuYS4GIdRg==
183
+ Vary:
184
+ - Accept-Encoding,User-Agent
185
+ body:
186
+ encoding: UTF-8
187
+ string: |
188
+ <?xml version="1.0"?>
189
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
190
+ <Error>
191
+ <Type>Sender</Type>
192
+ <Code>InvalidAccessKeyId</Code>
193
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
194
+ </Error>
195
+ <RequestID>627c5924-6175-40bf-98b4-502a938310a6</RequestID>
196
+ </ErrorResponse>
197
+ http_version:
198
+ recorded_at: Mon, 23 May 2016 12:17:04 GMT
199
+ - request:
200
+ method: post
201
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
202
+ body:
203
+ encoding: UTF-8
204
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A04Z&Version=2013-09-01&Signature=yzJY8FrVzr3BazJSk3RZPeYseVI1qkj%2FpKi1aP%2FFPqA%3D
205
+ headers:
206
+ User-Agent:
207
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
208
+ Content-Type:
209
+ - application/x-www-form-urlencoded
210
+ response:
211
+ status:
212
+ code: 403
213
+ message:
214
+ headers:
215
+ Server:
216
+ - Server
217
+ Date:
218
+ - Mon, 23 May 2016 12:17:05 GMT
219
+ Content-Type:
220
+ - text/xml
221
+ Content-Length:
222
+ - '344'
223
+ Connection:
224
+ - keep-alive
225
+ x-mws-request-id:
226
+ - 3a0e7604-1e30-4a02-bcbb-80b241aeb392
227
+ x-mws-timestamp:
228
+ - '2016-05-23T12:17:05.057Z'
229
+ x-mws-response-context:
230
+ - UH8GNaqfHirrCUobeac7hbz5u+TOqt1ha58Yrid9jNX0lNuq2k5GxwJTydwazd30B2SAlU7d+AUg
231
+ B3uVG+KqFQ==
232
+ Vary:
233
+ - Accept-Encoding,User-Agent
234
+ body:
235
+ encoding: UTF-8
236
+ string: |
237
+ <?xml version="1.0"?>
238
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
239
+ <Error>
240
+ <Type>Sender</Type>
241
+ <Code>InvalidAccessKeyId</Code>
242
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
243
+ </Error>
244
+ <RequestID>3a0e7604-1e30-4a02-bcbb-80b241aeb392</RequestID>
245
+ </ErrorResponse>
246
+ http_version:
247
+ recorded_at: Mon, 23 May 2016 12:17:05 GMT
248
+ - request:
249
+ method: post
250
+ uri: https://mws.amazonservices.jp/Orders/2013-09-01
251
+ body:
252
+ encoding: UTF-8
253
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A05Z&Version=2013-09-01&Signature=bQZQObbWut7cVRsrurA8MbM48cbX0b65hJIUxj%2FDnKU%3D
254
+ headers:
255
+ User-Agent:
256
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
257
+ Content-Type:
258
+ - application/x-www-form-urlencoded
259
+ response:
260
+ status:
261
+ code: 403
262
+ message:
263
+ headers:
264
+ Server:
265
+ - Server
266
+ Date:
267
+ - Mon, 23 May 2016 12:17:07 GMT
268
+ Content-Type:
269
+ - text/xml
270
+ Content-Length:
271
+ - '344'
272
+ Connection:
273
+ - keep-alive
274
+ x-mws-request-id:
275
+ - 336abcbc-d2e0-482e-a17c-3ebc1840702b
276
+ x-mws-timestamp:
277
+ - '2016-05-23T12:17:07.113Z'
278
+ x-mws-response-context:
279
+ - rVYRsv0Rhzc0hQs8SDAxk3PNN45ICeRqrxEpoezGCqq9dmP4+uErMDT6lUksS8uWdUdrLk5+Y2Dy
280
+ wf00rhdpCw==
281
+ Vary:
282
+ - Accept-Encoding,User-Agent
283
+ body:
284
+ encoding: UTF-8
285
+ string: |
286
+ <?xml version="1.0"?>
287
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
288
+ <Error>
289
+ <Type>Sender</Type>
290
+ <Code>InvalidAccessKeyId</Code>
291
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
292
+ </Error>
293
+ <RequestID>336abcbc-d2e0-482e-a17c-3ebc1840702b</RequestID>
294
+ </ErrorResponse>
295
+ http_version:
296
+ recorded_at: Mon, 23 May 2016 12:17:07 GMT
297
+ - request:
298
+ method: post
299
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
300
+ body:
301
+ encoding: UTF-8
302
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A07Z&Version=2013-09-01&Signature=HSnE4R93J5MFUX496b4t%2F7mWlW6k094mv0itVF3YoOE%3D
303
+ headers:
304
+ User-Agent:
305
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
306
+ Content-Type:
307
+ - application/x-www-form-urlencoded
308
+ response:
309
+ status:
310
+ code: 403
311
+ message:
312
+ headers:
313
+ Server:
314
+ - Server
315
+ Date:
316
+ - Mon, 23 May 2016 12:17:07 GMT
317
+ Content-Type:
318
+ - text/xml
319
+ Content-Length:
320
+ - '344'
321
+ Connection:
322
+ - keep-alive
323
+ x-mws-request-id:
324
+ - fa494823-6cc9-4a16-9ec2-2d219c793f10
325
+ x-mws-timestamp:
326
+ - '2016-05-23T12:17:07.603Z'
327
+ x-mws-response-context:
328
+ - hiHNyXMVlAzfxNrBusigW/Ianmjbo/W7rQWvZKlyNwcZqxNUnNs3d2QLN8KLut2wyu3mPLOPNbKc
329
+ k2RLkc4S6A==
330
+ Vary:
331
+ - Accept-Encoding,User-Agent
332
+ body:
333
+ encoding: UTF-8
334
+ string: |
335
+ <?xml version="1.0"?>
336
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
337
+ <Error>
338
+ <Type>Sender</Type>
339
+ <Code>InvalidAccessKeyId</Code>
340
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
341
+ </Error>
342
+ <RequestID>fa494823-6cc9-4a16-9ec2-2d219c793f10</RequestID>
343
+ </ErrorResponse>
344
+ http_version:
345
+ recorded_at: Mon, 23 May 2016 12:17:07 GMT
346
+ - request:
347
+ method: post
348
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
349
+ body:
350
+ encoding: UTF-8
351
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A07Z&Version=2013-09-01&Signature=2IC%2B6asAEkPu09p7pYusA5z2mzuLhVRuprtpPLHA6ao%3D
352
+ headers:
353
+ User-Agent:
354
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
355
+ Content-Type:
356
+ - application/x-www-form-urlencoded
357
+ response:
358
+ status:
359
+ code: 403
360
+ message:
361
+ headers:
362
+ Server:
363
+ - Server
364
+ Date:
365
+ - Mon, 23 May 2016 12:17:07 GMT
366
+ Content-Type:
367
+ - text/xml
368
+ Content-Length:
369
+ - '344'
370
+ Connection:
371
+ - keep-alive
372
+ x-mws-request-id:
373
+ - c84732da-1e06-4be4-afa7-ddbabbe2de28
374
+ x-mws-timestamp:
375
+ - '2016-05-23T12:17:07.862Z'
376
+ x-mws-response-context:
377
+ - j2hhCArf+5eJ5TDCBKz5by7w9P6My7gvAgSb3DpWacOVw+7DMtMFoVun8fde2u8KvWd0aTy5CN9b
378
+ o9HakS7/Aw==
379
+ Vary:
380
+ - Accept-Encoding,User-Agent
381
+ body:
382
+ encoding: UTF-8
383
+ string: |
384
+ <?xml version="1.0"?>
385
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
386
+ <Error>
387
+ <Type>Sender</Type>
388
+ <Code>InvalidAccessKeyId</Code>
389
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
390
+ </Error>
391
+ <RequestID>c84732da-1e06-4be4-afa7-ddbabbe2de28</RequestID>
392
+ </ErrorResponse>
393
+ http_version:
394
+ recorded_at: Mon, 23 May 2016 12:17:07 GMT
395
+ - request:
396
+ method: post
397
+ uri: https://mws.amazonservices.com/Orders/2013-09-01
398
+ body:
399
+ encoding: UTF-8
400
+ string: AWSAccessKeyId=foo&Action=GetOrder&AmazonOrderId.Id.1=bar&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A17%3A07Z&Version=2013-09-01&Signature=fNYJaW9V0dFEkNnollJMKdsNqPX585iH0SpnghCRN%2Bg%3D
401
+ headers:
402
+ User-Agent:
403
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
404
+ Content-Type:
405
+ - application/x-www-form-urlencoded
406
+ response:
407
+ status:
408
+ code: 403
409
+ message:
410
+ headers:
411
+ Server:
412
+ - Server
413
+ Date:
414
+ - Mon, 23 May 2016 12:17:08 GMT
415
+ Content-Type:
416
+ - text/xml
417
+ Content-Length:
418
+ - '344'
419
+ Connection:
420
+ - keep-alive
421
+ x-mws-request-id:
422
+ - e62e40db-56b1-426a-9931-e0ae1855ab3a
423
+ x-mws-timestamp:
424
+ - '2016-05-23T12:17:08.351Z'
425
+ x-mws-response-context:
426
+ - NK1tq0RbDyInkgO/Wv6uxNwqrVHWSip2dpUTRwLR821er9uBeB2OYFEgVAEffhUXexSTyItqpiZp
427
+ 3453n2OBpA==
428
+ Vary:
429
+ - Accept-Encoding,User-Agent
430
+ body:
431
+ encoding: UTF-8
432
+ string: |
433
+ <?xml version="1.0"?>
434
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
435
+ <Error>
436
+ <Type>Sender</Type>
437
+ <Code>InvalidAccessKeyId</Code>
438
+ <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
439
+ </Error>
440
+ <RequestID>e62e40db-56b1-426a-9931-e0ae1855ab3a</RequestID>
441
+ </ErrorResponse>
442
+ http_version:
443
+ recorded_at: Mon, 23 May 2016 12:17:08 GMT
444
+ - request:
445
+ method: post
446
+ uri: https://mws.amazonservices.com.mx/Orders/2013-09-01
447
+ body:
448
+ encoding: UTF-8
449
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A25%3A16Z&Version=2013-09-01&Signature=PxxDltfEifbWVzOka2AIu%2BS4JdOtTe%2BinKYqPi1%2B2iw%3D
450
+ headers:
451
+ User-Agent:
452
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
453
+ Content-Type:
454
+ - application/x-www-form-urlencoded
455
+ response:
456
+ status:
457
+ code: 503
458
+ message:
459
+ headers:
460
+ Server:
461
+ - Server
462
+ Date:
463
+ - Mon, 23 May 2016 12:25:16 GMT
464
+ Content-Type:
465
+ - text/xml
466
+ Content-Length:
467
+ - '291'
468
+ Connection:
469
+ - keep-alive
470
+ x-mws-request-id:
471
+ - c09da471-3728-45bd-b149-011107c6b222
472
+ x-mws-timestamp:
473
+ - '2016-05-23T12:25:16.616Z'
474
+ x-mws-response-context:
475
+ - NjwFjq6NP9uKH9Af1NGr1x+LsCj2WwqkWXNsTBkYiXZlNsJ8pl1i+/gTf/YxABEMxhTUNJB6UynL
476
+ fVn4cBVpOQ==
477
+ Vary:
478
+ - Accept-Encoding,User-Agent
479
+ body:
480
+ encoding: UTF-8
481
+ string: |
482
+ <?xml version="1.0"?>
483
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
484
+ <Error>
485
+ <Type></Type>
486
+ <Code>RequestThrottled</Code>
487
+ <Message>Request is throttled</Message>
488
+ </Error>
489
+ <RequestID>c09da471-3728-45bd-b149-011107c6b222</RequestID>
490
+ </ErrorResponse>
491
+ http_version:
492
+ recorded_at: Mon, 23 May 2016 12:25:16 GMT
493
+ - request:
494
+ method: post
495
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
496
+ body:
497
+ encoding: UTF-8
498
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A25%3A30Z&Version=2013-09-01&Signature=2Q4itZiyhGRa1gv4WxdPXz02OraSOyuqZnyTR9QVYkA%3D
499
+ headers:
500
+ User-Agent:
501
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
502
+ Content-Type:
503
+ - application/x-www-form-urlencoded
504
+ response:
505
+ status:
506
+ code: 503
507
+ message:
508
+ headers:
509
+ Server:
510
+ - Server
511
+ Date:
512
+ - Mon, 23 May 2016 12:25:31 GMT
513
+ Content-Type:
514
+ - text/xml
515
+ Content-Length:
516
+ - '291'
517
+ Connection:
518
+ - keep-alive
519
+ x-mws-request-id:
520
+ - 7e25a2e4-32ee-4e6f-9e55-87a7466cfa76
521
+ x-mws-timestamp:
522
+ - '2016-05-23T12:25:31.071Z'
523
+ x-mws-response-context:
524
+ - VKqFU1/KuOtUTSZ9hzO/1Tz2lAgZN6R+E1Hu9GVhDpD7QU8PSbL4SQhLAmIbrxaiElKpSnRxkhyv
525
+ NaM9fPte4Q==
526
+ Vary:
527
+ - Accept-Encoding,User-Agent
528
+ body:
529
+ encoding: UTF-8
530
+ string: |
531
+ <?xml version="1.0"?>
532
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
533
+ <Error>
534
+ <Type></Type>
535
+ <Code>RequestThrottled</Code>
536
+ <Message>Request is throttled</Message>
537
+ </Error>
538
+ <RequestID>7e25a2e4-32ee-4e6f-9e55-87a7466cfa76</RequestID>
539
+ </ErrorResponse>
540
+ http_version:
541
+ recorded_at: Mon, 23 May 2016 12:25:31 GMT
542
+ - request:
543
+ method: post
544
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
545
+ body:
546
+ encoding: UTF-8
547
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A25%3A31Z&Version=2013-09-01&Signature=o%2FXv5yNJiV14RGA0gVC0QY7M9%2FU8Cx8CzvFxz36%2FIN8%3D
548
+ headers:
549
+ User-Agent:
550
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
551
+ Content-Type:
552
+ - application/x-www-form-urlencoded
553
+ response:
554
+ status:
555
+ code: 503
556
+ message:
557
+ headers:
558
+ Server:
559
+ - Server
560
+ Date:
561
+ - Mon, 23 May 2016 12:25:31 GMT
562
+ Content-Type:
563
+ - text/xml
564
+ Content-Length:
565
+ - '291'
566
+ Connection:
567
+ - keep-alive
568
+ x-mws-request-id:
569
+ - 46605ebf-ff3a-4413-8f10-07698078db28
570
+ x-mws-timestamp:
571
+ - '2016-05-23T12:25:31.340Z'
572
+ x-mws-response-context:
573
+ - QgEen8lhyUfFg2KboDYF5Yu8MuocS3bvS0G50Z0U1ZFnJ8G3JbKQNzx+XkxHTNeyORu1+z6efJNB
574
+ lHXQnDK7OQ==
575
+ Vary:
576
+ - Accept-Encoding,User-Agent
577
+ body:
578
+ encoding: UTF-8
579
+ string: |
580
+ <?xml version="1.0"?>
581
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
582
+ <Error>
583
+ <Type></Type>
584
+ <Code>RequestThrottled</Code>
585
+ <Message>Request is throttled</Message>
586
+ </Error>
587
+ <RequestID>46605ebf-ff3a-4413-8f10-07698078db28</RequestID>
588
+ </ErrorResponse>
589
+ http_version:
590
+ recorded_at: Mon, 23 May 2016 12:25:31 GMT
591
+ - request:
592
+ method: post
593
+ uri: https://mws.amazonservices.ca/Orders/2013-09-01
594
+ body:
595
+ encoding: UTF-8
596
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A26%3A15Z&Version=2013-09-01&Signature=IZu%2FVXyk42RToI%2FBx42JvU4rcaOVydIJy5FxE06tQRg%3D
597
+ headers:
598
+ User-Agent:
599
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
600
+ Content-Type:
601
+ - application/x-www-form-urlencoded
602
+ response:
603
+ status:
604
+ code: 503
605
+ message:
606
+ headers:
607
+ Server:
608
+ - Server
609
+ Date:
610
+ - Mon, 23 May 2016 12:26:16 GMT
611
+ Content-Type:
612
+ - text/xml
613
+ Content-Length:
614
+ - '291'
615
+ Connection:
616
+ - keep-alive
617
+ x-mws-request-id:
618
+ - 7f0f0820-dc56-41d1-9962-580e1b92966d
619
+ x-mws-timestamp:
620
+ - '2016-05-23T12:26:16.027Z'
621
+ x-mws-response-context:
622
+ - CFLgOA9pzgjsRxjXR7bINfg1tMGVNb+3mfQZa4+The0i8HWIxM06sLRJUOt0hq426i8PIO3bFVNQ
623
+ JuMPU0CUzQ==
624
+ Vary:
625
+ - Accept-Encoding,User-Agent
626
+ body:
627
+ encoding: UTF-8
628
+ string: |
629
+ <?xml version="1.0"?>
630
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
631
+ <Error>
632
+ <Type></Type>
633
+ <Code>RequestThrottled</Code>
634
+ <Message>Request is throttled</Message>
635
+ </Error>
636
+ <RequestID>7f0f0820-dc56-41d1-9962-580e1b92966d</RequestID>
637
+ </ErrorResponse>
638
+ http_version:
639
+ recorded_at: Mon, 23 May 2016 12:26:16 GMT
640
+ - request:
641
+ method: post
642
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
643
+ body:
644
+ encoding: UTF-8
645
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A26%3A36Z&Version=2013-09-01&Signature=S9d0UNtrXTA%2FL7BZB14TAVZvtIlopBhmoyHmzTPejbc%3D
646
+ headers:
647
+ User-Agent:
648
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
649
+ Content-Type:
650
+ - application/x-www-form-urlencoded
651
+ response:
652
+ status:
653
+ code: 503
654
+ message:
655
+ headers:
656
+ Server:
657
+ - Server
658
+ Date:
659
+ - Mon, 23 May 2016 12:26:36 GMT
660
+ Content-Type:
661
+ - text/xml
662
+ Content-Length:
663
+ - '291'
664
+ Connection:
665
+ - keep-alive
666
+ x-mws-request-id:
667
+ - 429d190c-0c4a-46c8-b9a9-5f46511b53b3
668
+ x-mws-timestamp:
669
+ - '2016-05-23T12:26:36.747Z'
670
+ x-mws-response-context:
671
+ - cfmuZjCu4F8iJQa0nKHETjvnCfAVDCAkt/Us5XzHjlsIROVZ0G6zeLPb5hhIJiCCX83im4tq9GN4
672
+ 34itm7iJzA==
673
+ Vary:
674
+ - Accept-Encoding,User-Agent
675
+ body:
676
+ encoding: UTF-8
677
+ string: |
678
+ <?xml version="1.0"?>
679
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
680
+ <Error>
681
+ <Type></Type>
682
+ <Code>RequestThrottled</Code>
683
+ <Message>Request is throttled</Message>
684
+ </Error>
685
+ <RequestID>429d190c-0c4a-46c8-b9a9-5f46511b53b3</RequestID>
686
+ </ErrorResponse>
687
+ http_version:
688
+ recorded_at: Mon, 23 May 2016 12:26:36 GMT
689
+ - request:
690
+ method: post
691
+ uri: https://mws.amazonservices.jp/Orders/2013-09-01
692
+ body:
693
+ encoding: UTF-8
694
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A28%3A23Z&Version=2013-09-01&Signature=R%2B8ZRIBw3XDPt9F9Mfoo%2Bw%2Bot6dqahDq2BYqXTOh6Zc%3D
695
+ headers:
696
+ User-Agent:
697
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
698
+ Content-Type:
699
+ - application/x-www-form-urlencoded
700
+ response:
701
+ status:
702
+ code: 503
703
+ message:
704
+ headers:
705
+ Server:
706
+ - Server
707
+ Date:
708
+ - Mon, 23 May 2016 12:28:24 GMT
709
+ Content-Type:
710
+ - text/xml
711
+ Content-Length:
712
+ - '278'
713
+ Connection:
714
+ - keep-alive
715
+ x-mws-request-id:
716
+ - 759022d5-6990-4bfc-9351-7cc67d008955
717
+ x-mws-timestamp:
718
+ - '2016-05-23T12:28:24.370Z'
719
+ x-mws-response-context:
720
+ - lyk6D6bzzrWJabg2K47GU1ZWgRd9GuKznFtvfMEq8ZR/luGH+UkRBES1fTrCUabXCkaaMdOy0bKq
721
+ 6z4ZKfQuwg==
722
+ Vary:
723
+ - Accept-Encoding,User-Agent
724
+ body:
725
+ encoding: UTF-8
726
+ string: |
727
+ <?xml version="1.0"?>
728
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
729
+ <Error>
730
+ <Type></Type>
731
+ <Code>RequestThrottled</Code>
732
+ <Message>Request is throttled</Message>
733
+ </Error>
734
+ <RequestID>759022d5-6990-4bfc-9351-7cc67d008955</RequestID>
735
+ </ErrorResponse>
736
+ http_version:
737
+ recorded_at: Mon, 23 May 2016 12:28:24 GMT
738
+ - request:
739
+ method: post
740
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
741
+ body:
742
+ encoding: UTF-8
743
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A29%3A37Z&Version=2013-09-01&Signature=7hG243Xw2rPWKYyfIKoGUA0LTRDLL6H3FJYfeG9y5kQ%3D
744
+ headers:
745
+ User-Agent:
746
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
747
+ Content-Type:
748
+ - application/x-www-form-urlencoded
749
+ response:
750
+ status:
751
+ code: 503
752
+ message:
753
+ headers:
754
+ Server:
755
+ - Server
756
+ Date:
757
+ - Mon, 23 May 2016 12:29:37 GMT
758
+ Content-Type:
759
+ - text/xml
760
+ Content-Length:
761
+ - '291'
762
+ Connection:
763
+ - keep-alive
764
+ x-mws-request-id:
765
+ - 19f0a252-96de-4a79-8052-b66fb4f441be
766
+ x-mws-timestamp:
767
+ - '2016-05-23T12:29:37.344Z'
768
+ x-mws-response-context:
769
+ - lyk6D6bzzrWJabg2K47GU1ZWgRd9GuKznFtvfMEq8ZR/luGH+UkRBES1fTrCUabXCkaaMdOy0bKq
770
+ 6z4ZKfQuwg==
771
+ Vary:
772
+ - Accept-Encoding,User-Agent
773
+ body:
774
+ encoding: UTF-8
775
+ string: |
776
+ <?xml version="1.0"?>
777
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
778
+ <Error>
779
+ <Type></Type>
780
+ <Code>RequestThrottled</Code>
781
+ <Message>Request is throttled</Message>
782
+ </Error>
783
+ <RequestID>19f0a252-96de-4a79-8052-b66fb4f441be</RequestID>
784
+ </ErrorResponse>
785
+ http_version:
786
+ recorded_at: Mon, 23 May 2016 12:29:37 GMT
787
+ - request:
788
+ method: post
789
+ uri: https://mws-eu.amazonservices.com/Orders/2013-09-01
790
+ body:
791
+ encoding: UTF-8
792
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A30%3A11Z&Version=2013-09-01&Signature=%2Be9QXTopUhMUaQ0kEmtB2pEUEjt7vI7LoLVqNtV6ZCA%3D
793
+ headers:
794
+ User-Agent:
795
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
796
+ Content-Type:
797
+ - application/x-www-form-urlencoded
798
+ response:
799
+ status:
800
+ code: 503
801
+ message:
802
+ headers:
803
+ Server:
804
+ - Server
805
+ Date:
806
+ - Mon, 23 May 2016 12:30:11 GMT
807
+ Content-Type:
808
+ - text/xml
809
+ Content-Length:
810
+ - '291'
811
+ Connection:
812
+ - keep-alive
813
+ x-mws-request-id:
814
+ - 840d7fe6-fbf4-4bc6-a7d6-018269e8e57b
815
+ x-mws-timestamp:
816
+ - '2016-05-23T12:30:11.392Z'
817
+ x-mws-response-context:
818
+ - oE6oYNMqkjV8eW/BRjuzEzjF3NARnODl8w8C4anviesEnSpZ96k17Rg+xbcBCWGmYUake7FbiO4k
819
+ r3+dcWKcsg==
820
+ Vary:
821
+ - Accept-Encoding,User-Agent
822
+ body:
823
+ encoding: UTF-8
824
+ string: |
825
+ <?xml version="1.0"?>
826
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
827
+ <Error>
828
+ <Type></Type>
829
+ <Code>RequestThrottled</Code>
830
+ <Message>Request is throttled</Message>
831
+ </Error>
832
+ <RequestID>840d7fe6-fbf4-4bc6-a7d6-018269e8e57b</RequestID>
833
+ </ErrorResponse>
834
+ http_version:
835
+ recorded_at: Mon, 23 May 2016 12:30:11 GMT
836
+ - request:
837
+ method: post
838
+ uri: https://mws.amazonservices.com/Orders/2013-09-01
839
+ body:
840
+ encoding: UTF-8
841
+ string: AWSAccessKeyId=FILTERED&Action=GetOrder&AmazonOrderId.Id.1=foo&SellerId=FILTERED&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A33%3A44Z&Version=2013-09-01&Signature=afEobB041YouF04d%2F8460n2%2ByPiR6UVaShWiAKFuOQo%3D
842
+ headers:
843
+ User-Agent:
844
+ - Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
845
+ Content-Type:
846
+ - application/x-www-form-urlencoded
847
+ response:
848
+ status:
849
+ code: 503
850
+ message:
851
+ headers:
852
+ Server:
853
+ - Server
854
+ Date:
855
+ - Mon, 23 May 2016 12:33:45 GMT
856
+ Content-Type:
857
+ - text/xml
858
+ Content-Length:
859
+ - '291'
860
+ Connection:
861
+ - keep-alive
862
+ x-mws-request-id:
863
+ - 5ca0af8a-0443-4a26-8b63-a9764863c7d8
864
+ x-mws-timestamp:
865
+ - '2016-05-23T12:33:45.154Z'
866
+ x-mws-response-context:
867
+ - ecBayQO8iftN3M2GSxDGtX4wcqNrso6pTS5SBv8W1UYGGcnV/9z023Ged2cfmM21hd96dLt8fxTW
868
+ mxislaXEhA==
869
+ Vary:
870
+ - Accept-Encoding,User-Agent
871
+ body:
872
+ encoding: UTF-8
873
+ string: |
874
+ <?xml version="1.0"?>
875
+ <ErrorResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
876
+ <Error>
877
+ <Type></Type>
878
+ <Code>RequestThrottled</Code>
879
+ <Message>Request is throttled</Message>
880
+ </Error>
881
+ <RequestID>5ca0af8a-0443-4a26-8b63-a9764863c7d8</RequestID>
882
+ </ErrorResponse>
883
+ http_version:
884
+ recorded_at: Mon, 23 May 2016 12:33:45 GMT
885
+ recorded_with: VCR 3.0.1