peddler 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/mws/fulfillment_inbound_shipment.rb +84 -0
- data/lib/mws/fulfillment_inventory.rb +20 -0
- data/lib/mws/fulfillment_outbound_shipment.rb +53 -0
- data/lib/mws/off_amazon_payments.rb +1 -1
- data/lib/peddler/client.rb +3 -1
- data/lib/peddler/flat_file_parser.rb +53 -0
- data/lib/peddler/parser.rb +15 -11
- data/lib/peddler/version.rb +1 -1
- data/test/integration/test_fulfillment_inbound_shipment.rb +11 -0
- data/test/integration/test_fulfillment_inventory.rb +11 -0
- data/test/integration/test_fulfillment_outbound_shipment.rb +11 -0
- data/test/unit/peddler/test_client.rb +1 -1
- data/test/unit/peddler/{test_csv_parser.rb → test_flat_file_parser.rb} +21 -3
- data/test/unit/peddler/test_xml_parser.rb +2 -2
- data/test/vcr_cassettes/FulfillmentInboundShipment.yml +369 -0
- data/test/vcr_cassettes/FulfillmentInventory.yml +369 -0
- data/test/vcr_cassettes/FulfillmentOutboundShipment.yml +370 -0
- data/test/vcr_cassettes/Reports.yml +6563 -0
- metadata +17 -5
- data/lib/peddler/csv_parser.rb +0 -42
@@ -0,0 +1,370 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://mws.amazonservices.com/FulfillmentOutboundShipment/2010-10-01?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A57Z&Signature=8%2BGwNXRe%2BclCeX0ePxeMjepkMgxIhCAM7NpMj1j8NNs%3D
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message:
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Sun, 13 Apr 2014 21:05:57 GMT
|
19
|
+
Server:
|
20
|
+
- AmazonMWS
|
21
|
+
x-mws-request-id:
|
22
|
+
- 26a59a2d-503b-443c-95be-96a2c7070658
|
23
|
+
x-mws-timestamp:
|
24
|
+
- '2014-04-13T21:05:57.505Z'
|
25
|
+
x-mws-response-context:
|
26
|
+
- fGHsko+vZo6/s/n9t9um6sMPxMrlhmFRYyi0ZRn5llT71++aJcSN8pVR8XUlao7TM5m+4dvp+KmZ
|
27
|
+
vB2vvNuHsw==
|
28
|
+
Content-Type:
|
29
|
+
- text/xml
|
30
|
+
Content-Length:
|
31
|
+
- '391'
|
32
|
+
Vary:
|
33
|
+
- User-Agent
|
34
|
+
body:
|
35
|
+
encoding: UTF-8
|
36
|
+
string: |
|
37
|
+
<?xml version="1.0"?>
|
38
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentOutboundShipment/2010-10-01/">
|
39
|
+
<GetServiceStatusResult>
|
40
|
+
<Status>GREEN</Status>
|
41
|
+
<Timestamp>2014-04-13T21:05:57.505Z</Timestamp>
|
42
|
+
</GetServiceStatusResult>
|
43
|
+
<ResponseMetadata>
|
44
|
+
<RequestId>26a59a2d-503b-443c-95be-96a2c7070658</RequestId>
|
45
|
+
</ResponseMetadata>
|
46
|
+
</GetServiceStatusResponse>
|
47
|
+
http_version:
|
48
|
+
recorded_at: Sun, 13 Apr 2014 21:05:57 GMT
|
49
|
+
- request:
|
50
|
+
method: post
|
51
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentOutboundShipment/2010-10-01?AWSAccessKeyId=AKIAJLUHOXLR5S2L6A6A&Action=GetServiceStatus&SellerId=A2APQUVDBVWV7E&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A57Z&Signature=%2Fi6KfHZus5c2%2Bt8khwV7DDu959A%2F1EzCVzQycnjHOOE%3D
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ''
|
55
|
+
headers:
|
56
|
+
User-Agent:
|
57
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
58
|
+
response:
|
59
|
+
status:
|
60
|
+
code: 200
|
61
|
+
message:
|
62
|
+
headers:
|
63
|
+
Date:
|
64
|
+
- Sun, 13 Apr 2014 21:05:56 GMT
|
65
|
+
Server:
|
66
|
+
- AmazonMWS
|
67
|
+
x-mws-request-id:
|
68
|
+
- ff5df115-1d16-4176-86a0-2a166612c6c4
|
69
|
+
x-mws-timestamp:
|
70
|
+
- '2014-04-13T21:05:57.696Z'
|
71
|
+
x-mws-response-context:
|
72
|
+
- fwrJQ9dYGmpHkaTBSBJ36KQjuVmOIMX1LjAylVsC8/b0vEM3UgNxXhUbP1z6+gm3uyPunEHxPQpH
|
73
|
+
hiCGXn7G1w==
|
74
|
+
Content-Type:
|
75
|
+
- text/xml
|
76
|
+
Content-Length:
|
77
|
+
- '391'
|
78
|
+
Vary:
|
79
|
+
- User-Agent
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: |
|
83
|
+
<?xml version="1.0"?>
|
84
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentOutboundShipment/2010-10-01/">
|
85
|
+
<GetServiceStatusResult>
|
86
|
+
<Status>GREEN</Status>
|
87
|
+
<Timestamp>2014-04-13T21:05:57.696Z</Timestamp>
|
88
|
+
</GetServiceStatusResult>
|
89
|
+
<ResponseMetadata>
|
90
|
+
<RequestId>ff5df115-1d16-4176-86a0-2a166612c6c4</RequestId>
|
91
|
+
</ResponseMetadata>
|
92
|
+
</GetServiceStatusResponse>
|
93
|
+
http_version:
|
94
|
+
recorded_at: Sun, 13 Apr 2014 21:05:57 GMT
|
95
|
+
- request:
|
96
|
+
method: post
|
97
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentOutboundShipment/2010-10-01?AWSAccessKeyId=AKIAI4ZNSD76DH7UBRDA&Action=GetServiceStatus&SellerId=A2DP6GIDYN6OTH&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A57Z&Signature=SEGCPIfPUtadBnqVVIum%2FyywUYzVPW9CkHxvt3Zx%2BmU%3D
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ''
|
101
|
+
headers:
|
102
|
+
User-Agent:
|
103
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
104
|
+
response:
|
105
|
+
status:
|
106
|
+
code: 200
|
107
|
+
message:
|
108
|
+
headers:
|
109
|
+
Date:
|
110
|
+
- Sun, 13 Apr 2014 21:05:57 GMT
|
111
|
+
Server:
|
112
|
+
- AmazonMWS
|
113
|
+
x-mws-request-id:
|
114
|
+
- 2f53638e-b599-40ca-ae1a-9fcb7b20d820
|
115
|
+
x-mws-timestamp:
|
116
|
+
- '2014-04-13T21:05:57.847Z'
|
117
|
+
x-mws-response-context:
|
118
|
+
- vAAldBZniiMMUufyNwF91s8iSaQjsTsbhBImhU9mxVWh9JDzFHMfoH5T3KTN3y9zghka9cwx0R2b
|
119
|
+
b+c5W35Y0w==
|
120
|
+
Content-Type:
|
121
|
+
- text/xml
|
122
|
+
Content-Length:
|
123
|
+
- '391'
|
124
|
+
Vary:
|
125
|
+
- User-Agent
|
126
|
+
body:
|
127
|
+
encoding: UTF-8
|
128
|
+
string: |
|
129
|
+
<?xml version="1.0"?>
|
130
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentOutboundShipment/2010-10-01/">
|
131
|
+
<GetServiceStatusResult>
|
132
|
+
<Status>GREEN</Status>
|
133
|
+
<Timestamp>2014-04-13T21:05:57.847Z</Timestamp>
|
134
|
+
</GetServiceStatusResult>
|
135
|
+
<ResponseMetadata>
|
136
|
+
<RequestId>2f53638e-b599-40ca-ae1a-9fcb7b20d820</RequestId>
|
137
|
+
</ResponseMetadata>
|
138
|
+
</GetServiceStatusResponse>
|
139
|
+
http_version:
|
140
|
+
recorded_at: Sun, 13 Apr 2014 21:05:57 GMT
|
141
|
+
- request:
|
142
|
+
method: post
|
143
|
+
uri: https://mws.amazonservices.jp/FulfillmentOutboundShipment/2010-10-01?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A57Z&Signature=Pls2PrbFCyZ5BJ%2FQkH%2Bti3clLq1hK4AQ9AJdYhCsQV0%3D
|
144
|
+
body:
|
145
|
+
encoding: US-ASCII
|
146
|
+
string: ''
|
147
|
+
headers:
|
148
|
+
User-Agent:
|
149
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
150
|
+
response:
|
151
|
+
status:
|
152
|
+
code: 200
|
153
|
+
message:
|
154
|
+
headers:
|
155
|
+
Date:
|
156
|
+
- Sun, 13 Apr 2014 21:05:57 GMT
|
157
|
+
Server:
|
158
|
+
- AmazonMWS
|
159
|
+
x-mws-request-id:
|
160
|
+
- c310ba98-b0bf-4144-9d20-a4954b1d69cd
|
161
|
+
x-mws-timestamp:
|
162
|
+
- '2014-04-13T21:05:58.591Z'
|
163
|
+
x-mws-response-context:
|
164
|
+
- 9jFuzFeszTwr4zsZR0iDFSyO/vNRWvgPntpQoU2FAMzgBlFjzYmRK4td5HmYkDGGEjPtxGPvSRnV
|
165
|
+
w2JzZVjPZQ==
|
166
|
+
Content-Type:
|
167
|
+
- text/xml
|
168
|
+
Content-Length:
|
169
|
+
- '391'
|
170
|
+
Vary:
|
171
|
+
- User-Agent
|
172
|
+
body:
|
173
|
+
encoding: UTF-8
|
174
|
+
string: |
|
175
|
+
<?xml version="1.0"?>
|
176
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentOutboundShipment/2010-10-01/">
|
177
|
+
<GetServiceStatusResult>
|
178
|
+
<Status>GREEN</Status>
|
179
|
+
<Timestamp>2014-04-13T21:05:58.591Z</Timestamp>
|
180
|
+
</GetServiceStatusResult>
|
181
|
+
<ResponseMetadata>
|
182
|
+
<RequestId>c310ba98-b0bf-4144-9d20-a4954b1d69cd</RequestId>
|
183
|
+
</ResponseMetadata>
|
184
|
+
</GetServiceStatusResponse>
|
185
|
+
http_version:
|
186
|
+
recorded_at: Sun, 13 Apr 2014 21:05:58 GMT
|
187
|
+
- request:
|
188
|
+
method: post
|
189
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentOutboundShipment/2010-10-01?AWSAccessKeyId=AKIAI6X4QZRXSHGHABJA&Action=GetServiceStatus&SellerId=A2NEU7G6RGUKF&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A58Z&Signature=XiOu5UxcfYjFzi%2BfHQwTLtK4VRJ5VOFG1FlKwXpDuek%3D
|
190
|
+
body:
|
191
|
+
encoding: US-ASCII
|
192
|
+
string: ''
|
193
|
+
headers:
|
194
|
+
User-Agent:
|
195
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
196
|
+
response:
|
197
|
+
status:
|
198
|
+
code: 200
|
199
|
+
message:
|
200
|
+
headers:
|
201
|
+
Date:
|
202
|
+
- Sun, 13 Apr 2014 21:05:58 GMT
|
203
|
+
Server:
|
204
|
+
- AmazonMWS
|
205
|
+
x-mws-request-id:
|
206
|
+
- 6bc7461d-f903-48ec-a289-f2cea32a92bc
|
207
|
+
x-mws-timestamp:
|
208
|
+
- '2014-04-13T21:05:58.828Z'
|
209
|
+
x-mws-response-context:
|
210
|
+
- opJV7lfwbklyBBL/eC7XJ/mSouGc1L2FuTi6BYeIAFdvTftvUIYhgf5M1gP7eWLiJl5H6pOvEjTL
|
211
|
+
Dlb5tGDvww==
|
212
|
+
Content-Type:
|
213
|
+
- text/xml
|
214
|
+
Content-Length:
|
215
|
+
- '391'
|
216
|
+
Vary:
|
217
|
+
- User-Agent
|
218
|
+
body:
|
219
|
+
encoding: UTF-8
|
220
|
+
string: |
|
221
|
+
<?xml version="1.0"?>
|
222
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentOutboundShipment/2010-10-01/">
|
223
|
+
<GetServiceStatusResult>
|
224
|
+
<Status>GREEN</Status>
|
225
|
+
<Timestamp>2014-04-13T21:05:58.828Z</Timestamp>
|
226
|
+
</GetServiceStatusResult>
|
227
|
+
<ResponseMetadata>
|
228
|
+
<RequestId>6bc7461d-f903-48ec-a289-f2cea32a92bc</RequestId>
|
229
|
+
</ResponseMetadata>
|
230
|
+
</GetServiceStatusResponse>
|
231
|
+
http_version:
|
232
|
+
recorded_at: Sun, 13 Apr 2014 21:05:58 GMT
|
233
|
+
- request:
|
234
|
+
method: post
|
235
|
+
uri: https://mws.amazonservices.ca/FulfillmentOutboundShipment/2010-10-01?AWSAccessKeyId=AKIAITHQMZUJROSOP27Q&Action=GetServiceStatus&SellerId=A2A7WNXBU01UJW&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A58Z&Signature=UoX44CWrTUSMZ1RsW78pJPg7fFhilC3lBoH%2BWanS%2BqA%3D
|
236
|
+
body:
|
237
|
+
encoding: US-ASCII
|
238
|
+
string: ''
|
239
|
+
headers:
|
240
|
+
User-Agent:
|
241
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
242
|
+
response:
|
243
|
+
status:
|
244
|
+
code: 200
|
245
|
+
message:
|
246
|
+
headers:
|
247
|
+
Date:
|
248
|
+
- Sun, 13 Apr 2014 21:05:58 GMT
|
249
|
+
Server:
|
250
|
+
- AmazonMWS
|
251
|
+
x-mws-request-id:
|
252
|
+
- 0abb1c46-46ae-4892-82d7-ce38f59b513b
|
253
|
+
x-mws-timestamp:
|
254
|
+
- '2014-04-13T21:05:59.233Z'
|
255
|
+
x-mws-response-context:
|
256
|
+
- 2hnkF29qQvJQAQHsh5Sb9GpYeEozZeLAJZenxeT9ZuNeTUnfMCE85IbXRD5tavLiEa08N8XfWIU=
|
257
|
+
Content-Type:
|
258
|
+
- text/xml
|
259
|
+
Content-Length:
|
260
|
+
- '391'
|
261
|
+
Vary:
|
262
|
+
- User-Agent
|
263
|
+
body:
|
264
|
+
encoding: UTF-8
|
265
|
+
string: |
|
266
|
+
<?xml version="1.0"?>
|
267
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentOutboundShipment/2010-10-01/">
|
268
|
+
<GetServiceStatusResult>
|
269
|
+
<Status>GREEN</Status>
|
270
|
+
<Timestamp>2014-04-13T21:05:59.233Z</Timestamp>
|
271
|
+
</GetServiceStatusResult>
|
272
|
+
<ResponseMetadata>
|
273
|
+
<RequestId>0abb1c46-46ae-4892-82d7-ce38f59b513b</RequestId>
|
274
|
+
</ResponseMetadata>
|
275
|
+
</GetServiceStatusResponse>
|
276
|
+
http_version:
|
277
|
+
recorded_at: Sun, 13 Apr 2014 21:05:59 GMT
|
278
|
+
- request:
|
279
|
+
method: post
|
280
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentOutboundShipment/2010-10-01?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A59Z&Signature=zSls8HO%2B6dF%2FQzxNqq7a1Bq7K39w2BYNodAPtJQYdE0%3D
|
281
|
+
body:
|
282
|
+
encoding: US-ASCII
|
283
|
+
string: ''
|
284
|
+
headers:
|
285
|
+
User-Agent:
|
286
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
287
|
+
response:
|
288
|
+
status:
|
289
|
+
code: 200
|
290
|
+
message:
|
291
|
+
headers:
|
292
|
+
Date:
|
293
|
+
- Sun, 13 Apr 2014 21:05:59 GMT
|
294
|
+
Server:
|
295
|
+
- AmazonMWS
|
296
|
+
x-mws-request-id:
|
297
|
+
- 106f41ff-a14d-413b-b9e2-30b7fc3d801c
|
298
|
+
x-mws-timestamp:
|
299
|
+
- '2014-04-13T21:05:59.421Z'
|
300
|
+
x-mws-response-context:
|
301
|
+
- OsxHO/FnQGDje9d3WSTxQRMjbXe1GdbLy8V33ghKy9wyoBRJQuC9EcQS/nUSh+ufSE3EaQLxvfR8
|
302
|
+
KQOBi4147Q==
|
303
|
+
Content-Type:
|
304
|
+
- text/xml
|
305
|
+
Content-Length:
|
306
|
+
- '391'
|
307
|
+
Vary:
|
308
|
+
- User-Agent
|
309
|
+
body:
|
310
|
+
encoding: UTF-8
|
311
|
+
string: |
|
312
|
+
<?xml version="1.0"?>
|
313
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentOutboundShipment/2010-10-01/">
|
314
|
+
<GetServiceStatusResult>
|
315
|
+
<Status>GREEN</Status>
|
316
|
+
<Timestamp>2014-04-13T21:05:59.421Z</Timestamp>
|
317
|
+
</GetServiceStatusResult>
|
318
|
+
<ResponseMetadata>
|
319
|
+
<RequestId>106f41ff-a14d-413b-b9e2-30b7fc3d801c</RequestId>
|
320
|
+
</ResponseMetadata>
|
321
|
+
</GetServiceStatusResponse>
|
322
|
+
http_version:
|
323
|
+
recorded_at: Sun, 13 Apr 2014 21:05:59 GMT
|
324
|
+
- request:
|
325
|
+
method: post
|
326
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentOutboundShipment/2010-10-01?AWSAccessKeyId=AKIAIORT7554FEBW7UBQ&Action=GetServiceStatus&SellerId=A7ZXDJZD3UIRG&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A59Z&Signature=zFUoK%2FNwKDmv90y96nnQlSqgnUXxuPDQJNxfXzHsPeE%3D
|
327
|
+
body:
|
328
|
+
encoding: US-ASCII
|
329
|
+
string: ''
|
330
|
+
headers:
|
331
|
+
User-Agent:
|
332
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
333
|
+
response:
|
334
|
+
status:
|
335
|
+
code: 200
|
336
|
+
message:
|
337
|
+
headers:
|
338
|
+
Date:
|
339
|
+
- Sun, 13 Apr 2014 21:05:59 GMT
|
340
|
+
Server:
|
341
|
+
- AmazonMWS
|
342
|
+
x-mws-request-id:
|
343
|
+
- e7b35ce6-6300-44af-bfc5-98d73b6f6860
|
344
|
+
x-mws-timestamp:
|
345
|
+
- '2014-04-13T21:05:59.584Z'
|
346
|
+
x-mws-response-context:
|
347
|
+
- 6rg7hGvJyriThvM+v7iL2AA/+m7EJStszJXiu+E9mvPY2q/MqgU/DFhH033weQkDZdspOsLohGIB
|
348
|
+
W4WqqxPq2g==
|
349
|
+
Content-Type:
|
350
|
+
- text/xml
|
351
|
+
Content-Length:
|
352
|
+
- '391'
|
353
|
+
Vary:
|
354
|
+
- User-Agent
|
355
|
+
body:
|
356
|
+
encoding: UTF-8
|
357
|
+
string: |
|
358
|
+
<?xml version="1.0"?>
|
359
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentOutboundShipment/2010-10-01/">
|
360
|
+
<GetServiceStatusResult>
|
361
|
+
<Status>GREEN</Status>
|
362
|
+
<Timestamp>2014-04-13T21:05:59.584Z</Timestamp>
|
363
|
+
</GetServiceStatusResult>
|
364
|
+
<ResponseMetadata>
|
365
|
+
<RequestId>e7b35ce6-6300-44af-bfc5-98d73b6f6860</RequestId>
|
366
|
+
</ResponseMetadata>
|
367
|
+
</GetServiceStatusResponse>
|
368
|
+
http_version:
|
369
|
+
recorded_at: Sun, 13 Apr 2014 21:05:59 GMT
|
370
|
+
recorded_with: VCR 2.9.0
|