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,369 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentInventory/2010-10-01?AWSAccessKeyId=AKIAI6X4QZRXSHGHABJA&Action=GetServiceStatus&SellerId=A2NEU7G6RGUKF&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A54Z&Signature=Ma7OmPwSMQMIvSO%2BGhVJfkiA6c2syXmJ982%2BLAXyo1A%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:54 GMT
|
19
|
+
Server:
|
20
|
+
- AmazonMWS
|
21
|
+
x-mws-request-id:
|
22
|
+
- fa612c97-5748-4840-b6ed-495eeaeb46a9
|
23
|
+
x-mws-timestamp:
|
24
|
+
- '2014-04-13T21:05:54.919Z'
|
25
|
+
x-mws-response-context:
|
26
|
+
- Lctgk4F21BJTlomrv6leSQfYzgRDidDcXa5bMNCLphNgAA7GG21rQ1wiCcnV/A3B3ibBNpqN+fCM
|
27
|
+
MUaFpICbTA==
|
28
|
+
Content-Type:
|
29
|
+
- text/xml
|
30
|
+
Content-Length:
|
31
|
+
- '384'
|
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/FulfillmentInventory/2010-10-01/">
|
39
|
+
<GetServiceStatusResult>
|
40
|
+
<Status>GREEN</Status>
|
41
|
+
<Timestamp>2014-04-13T21:05:54.919Z</Timestamp>
|
42
|
+
</GetServiceStatusResult>
|
43
|
+
<ResponseMetadata>
|
44
|
+
<RequestId>fa612c97-5748-4840-b6ed-495eeaeb46a9</RequestId>
|
45
|
+
</ResponseMetadata>
|
46
|
+
</GetServiceStatusResponse>
|
47
|
+
http_version:
|
48
|
+
recorded_at: Sun, 13 Apr 2014 21:05:54 GMT
|
49
|
+
- request:
|
50
|
+
method: post
|
51
|
+
uri: https://mws.amazonservices.ca/FulfillmentInventory/2010-10-01?AWSAccessKeyId=AKIAITHQMZUJROSOP27Q&Action=GetServiceStatus&SellerId=A2A7WNXBU01UJW&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A54Z&Signature=cRGv8Z%2BFayM8Q0M0MOlvEbJQCj%2BKyGBe8yfPitR3Vf8%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:55 GMT
|
65
|
+
Server:
|
66
|
+
- AmazonMWS
|
67
|
+
x-mws-request-id:
|
68
|
+
- 6bdf2ec8-9523-4fb3-b609-17fd62d1ce96
|
69
|
+
x-mws-timestamp:
|
70
|
+
- '2014-04-13T21:05:55.301Z'
|
71
|
+
x-mws-response-context:
|
72
|
+
- EYWTwdZBaw3In1SLDbZH5nudj3LArASJieBmDNd7c4D5XjX66RBvLm5AmdBOhuUQ30rhO7hLb8Q=
|
73
|
+
Content-Type:
|
74
|
+
- text/xml
|
75
|
+
Content-Length:
|
76
|
+
- '384'
|
77
|
+
Vary:
|
78
|
+
- User-Agent
|
79
|
+
body:
|
80
|
+
encoding: UTF-8
|
81
|
+
string: |
|
82
|
+
<?xml version="1.0"?>
|
83
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/">
|
84
|
+
<GetServiceStatusResult>
|
85
|
+
<Status>GREEN</Status>
|
86
|
+
<Timestamp>2014-04-13T21:05:55.301Z</Timestamp>
|
87
|
+
</GetServiceStatusResult>
|
88
|
+
<ResponseMetadata>
|
89
|
+
<RequestId>6bdf2ec8-9523-4fb3-b609-17fd62d1ce96</RequestId>
|
90
|
+
</ResponseMetadata>
|
91
|
+
</GetServiceStatusResponse>
|
92
|
+
http_version:
|
93
|
+
recorded_at: Sun, 13 Apr 2014 21:05:55 GMT
|
94
|
+
- request:
|
95
|
+
method: post
|
96
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentInventory/2010-10-01?AWSAccessKeyId=AKIAJLUHOXLR5S2L6A6A&Action=GetServiceStatus&SellerId=A2APQUVDBVWV7E&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A55Z&Signature=BbFrKpVhsJxXfDfy4J%2Fsd9%2B5twP0PL%2FawHWdjhOYyrU%3D
|
97
|
+
body:
|
98
|
+
encoding: US-ASCII
|
99
|
+
string: ''
|
100
|
+
headers:
|
101
|
+
User-Agent:
|
102
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 200
|
106
|
+
message:
|
107
|
+
headers:
|
108
|
+
Date:
|
109
|
+
- Sun, 13 Apr 2014 21:05:55 GMT
|
110
|
+
Server:
|
111
|
+
- AmazonMWS
|
112
|
+
x-mws-request-id:
|
113
|
+
- 62c78c71-2654-488f-8f8e-363def9d98ab
|
114
|
+
x-mws-timestamp:
|
115
|
+
- '2014-04-13T21:05:55.468Z'
|
116
|
+
x-mws-response-context:
|
117
|
+
- 8m2A0lq6Zr2Lgs2qZg/pKi8+s3TrLH2iE7vZmOe6soSCzNQEdallIJ/+gxs5bb58B3F6tmSY5Oc2
|
118
|
+
Cb75GulJZg==
|
119
|
+
Content-Type:
|
120
|
+
- text/xml
|
121
|
+
Content-Length:
|
122
|
+
- '384'
|
123
|
+
Vary:
|
124
|
+
- User-Agent
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: |
|
128
|
+
<?xml version="1.0"?>
|
129
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/">
|
130
|
+
<GetServiceStatusResult>
|
131
|
+
<Status>GREEN</Status>
|
132
|
+
<Timestamp>2014-04-13T21:05:55.468Z</Timestamp>
|
133
|
+
</GetServiceStatusResult>
|
134
|
+
<ResponseMetadata>
|
135
|
+
<RequestId>62c78c71-2654-488f-8f8e-363def9d98ab</RequestId>
|
136
|
+
</ResponseMetadata>
|
137
|
+
</GetServiceStatusResponse>
|
138
|
+
http_version:
|
139
|
+
recorded_at: Sun, 13 Apr 2014 21:05:55 GMT
|
140
|
+
- request:
|
141
|
+
method: post
|
142
|
+
uri: https://mws.amazonservices.com/FulfillmentInventory/2010-10-01?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A55Z&Signature=6gIVTy5KtBbnbDePJvFRI2TbPWyuiXEfFu0T2S6sReE%3D
|
143
|
+
body:
|
144
|
+
encoding: US-ASCII
|
145
|
+
string: ''
|
146
|
+
headers:
|
147
|
+
User-Agent:
|
148
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
149
|
+
response:
|
150
|
+
status:
|
151
|
+
code: 200
|
152
|
+
message:
|
153
|
+
headers:
|
154
|
+
Date:
|
155
|
+
- Sun, 13 Apr 2014 21:05:55 GMT
|
156
|
+
Server:
|
157
|
+
- AmazonMWS
|
158
|
+
x-mws-request-id:
|
159
|
+
- f8b4096c-14cc-455e-90b7-5726b2e405b3
|
160
|
+
x-mws-timestamp:
|
161
|
+
- '2014-04-13T21:05:55.847Z'
|
162
|
+
x-mws-response-context:
|
163
|
+
- ATJ3sVeeF/fzHY90NFJjCoqzUKbmATabJMPofb4OTiC9c7QD/79YJIo5MG5uB9UqOSuMIu+RVxs=
|
164
|
+
Content-Type:
|
165
|
+
- text/xml
|
166
|
+
Content-Length:
|
167
|
+
- '384'
|
168
|
+
Vary:
|
169
|
+
- User-Agent
|
170
|
+
body:
|
171
|
+
encoding: UTF-8
|
172
|
+
string: |
|
173
|
+
<?xml version="1.0"?>
|
174
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/">
|
175
|
+
<GetServiceStatusResult>
|
176
|
+
<Status>GREEN</Status>
|
177
|
+
<Timestamp>2014-04-13T21:05:55.847Z</Timestamp>
|
178
|
+
</GetServiceStatusResult>
|
179
|
+
<ResponseMetadata>
|
180
|
+
<RequestId>f8b4096c-14cc-455e-90b7-5726b2e405b3</RequestId>
|
181
|
+
</ResponseMetadata>
|
182
|
+
</GetServiceStatusResponse>
|
183
|
+
http_version:
|
184
|
+
recorded_at: Sun, 13 Apr 2014 21:05:55 GMT
|
185
|
+
- request:
|
186
|
+
method: post
|
187
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentInventory/2010-10-01?AWSAccessKeyId=AKIAIORT7554FEBW7UBQ&Action=GetServiceStatus&SellerId=A7ZXDJZD3UIRG&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A55Z&Signature=Kcf2XZEOHTXh0a5rKaMHF46w7L%2ByCuE%2By2D7wBf4%2FtE%3D
|
188
|
+
body:
|
189
|
+
encoding: US-ASCII
|
190
|
+
string: ''
|
191
|
+
headers:
|
192
|
+
User-Agent:
|
193
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
194
|
+
response:
|
195
|
+
status:
|
196
|
+
code: 200
|
197
|
+
message:
|
198
|
+
headers:
|
199
|
+
Date:
|
200
|
+
- Sun, 13 Apr 2014 21:05:56 GMT
|
201
|
+
Server:
|
202
|
+
- AmazonMWS
|
203
|
+
x-mws-request-id:
|
204
|
+
- cd817869-e9f3-4c92-a81d-631d7445c79f
|
205
|
+
x-mws-timestamp:
|
206
|
+
- '2014-04-13T21:05:56.025Z'
|
207
|
+
x-mws-response-context:
|
208
|
+
- 6rg7hGvJyriThvM+v7iL2AA/+m7EJStszJXiu+E9mvPY2q/MqgU/DFhH033weQkDZdspOsLohGIB
|
209
|
+
W4WqqxPq2g==
|
210
|
+
Content-Type:
|
211
|
+
- text/xml
|
212
|
+
Content-Length:
|
213
|
+
- '384'
|
214
|
+
Vary:
|
215
|
+
- User-Agent
|
216
|
+
body:
|
217
|
+
encoding: UTF-8
|
218
|
+
string: |
|
219
|
+
<?xml version="1.0"?>
|
220
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/">
|
221
|
+
<GetServiceStatusResult>
|
222
|
+
<Status>GREEN</Status>
|
223
|
+
<Timestamp>2014-04-13T21:05:56.025Z</Timestamp>
|
224
|
+
</GetServiceStatusResult>
|
225
|
+
<ResponseMetadata>
|
226
|
+
<RequestId>cd817869-e9f3-4c92-a81d-631d7445c79f</RequestId>
|
227
|
+
</ResponseMetadata>
|
228
|
+
</GetServiceStatusResponse>
|
229
|
+
http_version:
|
230
|
+
recorded_at: Sun, 13 Apr 2014 21:05:56 GMT
|
231
|
+
- request:
|
232
|
+
method: post
|
233
|
+
uri: https://mws.amazonservices.jp/FulfillmentInventory/2010-10-01?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A56Z&Signature=RTeosOjfrcM10DGv%2FAT%2F4OqzkwcEELhvC%2Bb0Fm5xxeo%3D
|
234
|
+
body:
|
235
|
+
encoding: US-ASCII
|
236
|
+
string: ''
|
237
|
+
headers:
|
238
|
+
User-Agent:
|
239
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
240
|
+
response:
|
241
|
+
status:
|
242
|
+
code: 200
|
243
|
+
message:
|
244
|
+
headers:
|
245
|
+
Date:
|
246
|
+
- Sun, 13 Apr 2014 21:05:56 GMT
|
247
|
+
Server:
|
248
|
+
- AmazonMWS
|
249
|
+
x-mws-request-id:
|
250
|
+
- 64c91e0c-eb2f-4423-83dc-069765091209
|
251
|
+
x-mws-timestamp:
|
252
|
+
- '2014-04-13T21:05:56.730Z'
|
253
|
+
x-mws-response-context:
|
254
|
+
- Oo/j1b4TT3UAoj+d3+qyvdPc+j2zKYIV0usGkiXxigVCwmFbyOXge3Xzuf+qtvahpMdNOB2qjDpr
|
255
|
+
0wb5WIl88g==
|
256
|
+
Content-Type:
|
257
|
+
- text/xml
|
258
|
+
Content-Length:
|
259
|
+
- '384'
|
260
|
+
Vary:
|
261
|
+
- User-Agent
|
262
|
+
body:
|
263
|
+
encoding: UTF-8
|
264
|
+
string: |
|
265
|
+
<?xml version="1.0"?>
|
266
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/">
|
267
|
+
<GetServiceStatusResult>
|
268
|
+
<Status>GREEN</Status>
|
269
|
+
<Timestamp>2014-04-13T21:05:56.730Z</Timestamp>
|
270
|
+
</GetServiceStatusResult>
|
271
|
+
<ResponseMetadata>
|
272
|
+
<RequestId>64c91e0c-eb2f-4423-83dc-069765091209</RequestId>
|
273
|
+
</ResponseMetadata>
|
274
|
+
</GetServiceStatusResponse>
|
275
|
+
http_version:
|
276
|
+
recorded_at: Sun, 13 Apr 2014 21:05:56 GMT
|
277
|
+
- request:
|
278
|
+
method: post
|
279
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentInventory/2010-10-01?AWSAccessKeyId=AKIAI4ZNSD76DH7UBRDA&Action=GetServiceStatus&SellerId=A2DP6GIDYN6OTH&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A56Z&Signature=WC7ff6L4eJGFIcKKOR3wjWpiCkeaO1hN1eiC2%2FIbKv0%3D
|
280
|
+
body:
|
281
|
+
encoding: US-ASCII
|
282
|
+
string: ''
|
283
|
+
headers:
|
284
|
+
User-Agent:
|
285
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
286
|
+
response:
|
287
|
+
status:
|
288
|
+
code: 200
|
289
|
+
message:
|
290
|
+
headers:
|
291
|
+
Date:
|
292
|
+
- Sun, 13 Apr 2014 21:05:56 GMT
|
293
|
+
Server:
|
294
|
+
- AmazonMWS
|
295
|
+
x-mws-request-id:
|
296
|
+
- 2d9aacc9-7f0c-4004-99a0-9982bf1114ae
|
297
|
+
x-mws-timestamp:
|
298
|
+
- '2014-04-13T21:05:56.962Z'
|
299
|
+
x-mws-response-context:
|
300
|
+
- rh/1woHuBsIY/Av5a6wxfnJFsqr+zDRBIDcaJTTT3vznXq6vCxl0+LX50mA9ennxPQps/5KmtPjd
|
301
|
+
66aUkQbs4w==
|
302
|
+
Content-Type:
|
303
|
+
- text/xml
|
304
|
+
Content-Length:
|
305
|
+
- '384'
|
306
|
+
Vary:
|
307
|
+
- User-Agent
|
308
|
+
body:
|
309
|
+
encoding: UTF-8
|
310
|
+
string: |
|
311
|
+
<?xml version="1.0"?>
|
312
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/">
|
313
|
+
<GetServiceStatusResult>
|
314
|
+
<Status>GREEN</Status>
|
315
|
+
<Timestamp>2014-04-13T21:05:56.962Z</Timestamp>
|
316
|
+
</GetServiceStatusResult>
|
317
|
+
<ResponseMetadata>
|
318
|
+
<RequestId>2d9aacc9-7f0c-4004-99a0-9982bf1114ae</RequestId>
|
319
|
+
</ResponseMetadata>
|
320
|
+
</GetServiceStatusResponse>
|
321
|
+
http_version:
|
322
|
+
recorded_at: Sun, 13 Apr 2014 21:05:56 GMT
|
323
|
+
- request:
|
324
|
+
method: post
|
325
|
+
uri: https://mws-eu.amazonservices.com/FulfillmentInventory/2010-10-01?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-13T21%3A05%3A56Z&Signature=zCX0MmxRuj85b1M%2F0%2FRfclmdVZy2ttui8PNtvAqixBo%3D
|
326
|
+
body:
|
327
|
+
encoding: US-ASCII
|
328
|
+
string: ''
|
329
|
+
headers:
|
330
|
+
User-Agent:
|
331
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
332
|
+
response:
|
333
|
+
status:
|
334
|
+
code: 200
|
335
|
+
message:
|
336
|
+
headers:
|
337
|
+
Date:
|
338
|
+
- Sun, 13 Apr 2014 21:05:56 GMT
|
339
|
+
Server:
|
340
|
+
- AmazonMWS
|
341
|
+
x-mws-request-id:
|
342
|
+
- 1d054965-b147-4450-ac52-58ce57b258ba
|
343
|
+
x-mws-timestamp:
|
344
|
+
- '2014-04-13T21:05:57.105Z'
|
345
|
+
x-mws-response-context:
|
346
|
+
- opJV7lfwbklyBBL/eC7XJ/mSouGc1L2FuTi6BYeIAFdvTftvUIYhgf5M1gP7eWLiJl5H6pOvEjTL
|
347
|
+
Dlb5tGDvww==
|
348
|
+
Content-Type:
|
349
|
+
- text/xml
|
350
|
+
Content-Length:
|
351
|
+
- '384'
|
352
|
+
Vary:
|
353
|
+
- User-Agent
|
354
|
+
body:
|
355
|
+
encoding: UTF-8
|
356
|
+
string: |
|
357
|
+
<?xml version="1.0"?>
|
358
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/">
|
359
|
+
<GetServiceStatusResult>
|
360
|
+
<Status>GREEN</Status>
|
361
|
+
<Timestamp>2014-04-13T21:05:57.105Z</Timestamp>
|
362
|
+
</GetServiceStatusResult>
|
363
|
+
<ResponseMetadata>
|
364
|
+
<RequestId>1d054965-b147-4450-ac52-58ce57b258ba</RequestId>
|
365
|
+
</ResponseMetadata>
|
366
|
+
</GetServiceStatusResponse>
|
367
|
+
http_version:
|
368
|
+
recorded_at: Sun, 13 Apr 2014 21:05:57 GMT
|
369
|
+
recorded_with: VCR 2.9.0
|