peddler 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/mws/fulfillment_inventory.rb +22 -6
- data/lib/peddler/flat_file_parser.rb +1 -1
- data/lib/peddler/parser.rb +3 -3
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler/xml_parser.rb +4 -0
- data/test/helper.rb +0 -2
- data/test/integration/test_fulfillment_inventory.rb +11 -0
- data/test/integration_helper.rb +1 -1
- data/test/unit/peddler/test_xml_parser.rb +5 -1
- data/test/vcr_cassettes/CartInformation.yml +366 -0
- data/test/vcr_cassettes/CustomerInformation.yml +367 -0
- data/test/vcr_cassettes/FulfillmentInboundShipment.yml +368 -0
- data/test/vcr_cassettes/FulfillmentInventory.yml +1169 -0
- data/test/vcr_cassettes/FulfillmentOutboundShipment.yml +366 -0
- data/test/vcr_cassettes/OffAmazonPayments.yml +368 -0
- data/test/vcr_cassettes/Orders.yml +367 -0
- data/test/vcr_cassettes/Products.yml +367 -0
- data/test/vcr_cassettes/Recommendations.yml +366 -0
- data/test/vcr_cassettes/Sellers.yml +368 -0
- data/test/vcr_cassettes/Subscriptions.yml +366 -0
- metadata +2 -16
@@ -368,4 +368,371 @@ http_interactions:
|
|
368
368
|
</GetServiceStatusResponse>
|
369
369
|
http_version:
|
370
370
|
recorded_at: Sat, 12 Apr 2014 18:14:18 GMT
|
371
|
+
- request:
|
372
|
+
method: post
|
373
|
+
uri: https://mws.amazonservices.jp/?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A09Z&Signature=gqdFNV1dcRsJT1abmFCXoLIAdZ53%2B%2B%2BRFLlTTn28mos%3D
|
374
|
+
body:
|
375
|
+
encoding: US-ASCII
|
376
|
+
string: ''
|
377
|
+
headers:
|
378
|
+
User-Agent:
|
379
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
380
|
+
response:
|
381
|
+
status:
|
382
|
+
code: 200
|
383
|
+
message:
|
384
|
+
headers:
|
385
|
+
Date:
|
386
|
+
- Sun, 27 Apr 2014 15:56:10 GMT
|
387
|
+
Server:
|
388
|
+
- AmazonMWS
|
389
|
+
x-mws-request-id:
|
390
|
+
- 6149b08f-f2a4-4c7d-a595-6a4467921734
|
391
|
+
x-mws-timestamp:
|
392
|
+
- '2014-04-27T15:56:10.854Z'
|
393
|
+
x-mws-response-context:
|
394
|
+
- eu0ss7KVvjOxWpR4uZxKsWWENjVbEeYQ9KrzJLCrGqzCTPBlB3sNYF5oHFOOeewB5Ue9dDNsKTSm
|
395
|
+
ftjTWlm1Ag==
|
396
|
+
Content-Type:
|
397
|
+
- text/xml
|
398
|
+
Content-Length:
|
399
|
+
- '367'
|
400
|
+
Vary:
|
401
|
+
- User-Agent
|
402
|
+
body:
|
403
|
+
encoding: UTF-8
|
404
|
+
string: |
|
405
|
+
<?xml version="1.0"?>
|
406
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
407
|
+
<GetServiceStatusResult>
|
408
|
+
<Status>GREEN</Status>
|
409
|
+
<Timestamp>2014-04-27T15:56:10.854Z</Timestamp>
|
410
|
+
</GetServiceStatusResult>
|
411
|
+
<ResponseMetadata>
|
412
|
+
<RequestId>6149b08f-f2a4-4c7d-a595-6a4467921734</RequestId>
|
413
|
+
</ResponseMetadata>
|
414
|
+
</GetServiceStatusResponse>
|
415
|
+
http_version:
|
416
|
+
recorded_at: Sun, 27 Apr 2014 15:56:10 GMT
|
417
|
+
- request:
|
418
|
+
method: post
|
419
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A10Z&Signature=RJ2B4hy6Ix2XeSjDNXxT8RUum5NvVZxk1ueuHC0nEqw%3D
|
420
|
+
body:
|
421
|
+
encoding: US-ASCII
|
422
|
+
string: ''
|
423
|
+
headers:
|
424
|
+
User-Agent:
|
425
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
426
|
+
response:
|
427
|
+
status:
|
428
|
+
code: 200
|
429
|
+
message:
|
430
|
+
headers:
|
431
|
+
Date:
|
432
|
+
- Sun, 27 Apr 2014 15:56:10 GMT
|
433
|
+
Server:
|
434
|
+
- AmazonMWS
|
435
|
+
x-mws-request-id:
|
436
|
+
- 5599216c-2df5-4e86-a70e-7a672d2e83c2
|
437
|
+
x-mws-timestamp:
|
438
|
+
- '2014-04-27T15:56:11.087Z'
|
439
|
+
x-mws-response-context:
|
440
|
+
- 24xUAlXSvtBVg/1luFs1BoeGsEiRzFtpirBAO4xc2g8OizlpZ0eV/yppcJi9r/kpysqbC9+qZXFq
|
441
|
+
W3HtPOQxOQ==
|
442
|
+
Content-Type:
|
443
|
+
- text/xml
|
444
|
+
Content-Length:
|
445
|
+
- '367'
|
446
|
+
Vary:
|
447
|
+
- User-Agent
|
448
|
+
body:
|
449
|
+
encoding: UTF-8
|
450
|
+
string: |
|
451
|
+
<?xml version="1.0"?>
|
452
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
453
|
+
<GetServiceStatusResult>
|
454
|
+
<Status>GREEN</Status>
|
455
|
+
<Timestamp>2014-04-27T15:56:11.087Z</Timestamp>
|
456
|
+
</GetServiceStatusResult>
|
457
|
+
<ResponseMetadata>
|
458
|
+
<RequestId>5599216c-2df5-4e86-a70e-7a672d2e83c2</RequestId>
|
459
|
+
</ResponseMetadata>
|
460
|
+
</GetServiceStatusResponse>
|
461
|
+
http_version:
|
462
|
+
recorded_at: Sun, 27 Apr 2014 15:56:11 GMT
|
463
|
+
- request:
|
464
|
+
method: post
|
465
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI4ZNSD76DH7UBRDA&Action=GetServiceStatus&SellerId=A2DP6GIDYN6OTH&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A11Z&Signature=vswBr7aopS61JXtmorrj63nVGpidBDrOxSm04SUCjFI%3D
|
466
|
+
body:
|
467
|
+
encoding: US-ASCII
|
468
|
+
string: ''
|
469
|
+
headers:
|
470
|
+
User-Agent:
|
471
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
472
|
+
response:
|
473
|
+
status:
|
474
|
+
code: 200
|
475
|
+
message:
|
476
|
+
headers:
|
477
|
+
Date:
|
478
|
+
- Sun, 27 Apr 2014 15:56:11 GMT
|
479
|
+
Server:
|
480
|
+
- AmazonMWS
|
481
|
+
x-mws-request-id:
|
482
|
+
- c59fdb88-d0ea-4d85-bcee-7d00579c4bb4
|
483
|
+
x-mws-timestamp:
|
484
|
+
- '2014-04-27T15:56:11.238Z'
|
485
|
+
x-mws-response-context:
|
486
|
+
- Dumno+kAaOApmHHpFBwuq2jXXzCQLpRWCofE3OkMPtte5G/MTd9RKZAgWEZTWCMZUzNAk1SRTcV9
|
487
|
+
ZctZtoBHpQ==
|
488
|
+
Content-Type:
|
489
|
+
- text/xml
|
490
|
+
Content-Length:
|
491
|
+
- '367'
|
492
|
+
Vary:
|
493
|
+
- User-Agent
|
494
|
+
body:
|
495
|
+
encoding: UTF-8
|
496
|
+
string: |
|
497
|
+
<?xml version="1.0"?>
|
498
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
499
|
+
<GetServiceStatusResult>
|
500
|
+
<Status>GREEN</Status>
|
501
|
+
<Timestamp>2014-04-27T15:56:11.238Z</Timestamp>
|
502
|
+
</GetServiceStatusResult>
|
503
|
+
<ResponseMetadata>
|
504
|
+
<RequestId>c59fdb88-d0ea-4d85-bcee-7d00579c4bb4</RequestId>
|
505
|
+
</ResponseMetadata>
|
506
|
+
</GetServiceStatusResponse>
|
507
|
+
http_version:
|
508
|
+
recorded_at: Sun, 27 Apr 2014 15:56:11 GMT
|
509
|
+
- request:
|
510
|
+
method: post
|
511
|
+
uri: https://mws.amazonservices.com/?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A11Z&Signature=pCgNc22J%2FcdQfIJt8Yb0MgfSEJaHZYssl%2BK4KWoVB%2FU%3D
|
512
|
+
body:
|
513
|
+
encoding: US-ASCII
|
514
|
+
string: ''
|
515
|
+
headers:
|
516
|
+
User-Agent:
|
517
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
518
|
+
response:
|
519
|
+
status:
|
520
|
+
code: 200
|
521
|
+
message:
|
522
|
+
headers:
|
523
|
+
Date:
|
524
|
+
- Sun, 27 Apr 2014 15:56:11 GMT
|
525
|
+
Server:
|
526
|
+
- AmazonMWS
|
527
|
+
x-mws-request-id:
|
528
|
+
- f4091fd4-f2ca-43c4-b199-4ea59f4a1c26
|
529
|
+
x-mws-timestamp:
|
530
|
+
- '2014-04-27T15:56:11.645Z'
|
531
|
+
x-mws-response-context:
|
532
|
+
- kL9tFxngveRowt3tK2dftSzOKnOnmTGJ/4Zd39V6LjljBGtc9VJ0w0mpiSMKNf+cIrvRGF4zmgg=
|
533
|
+
Content-Type:
|
534
|
+
- text/xml
|
535
|
+
Content-Length:
|
536
|
+
- '367'
|
537
|
+
Vary:
|
538
|
+
- User-Agent
|
539
|
+
body:
|
540
|
+
encoding: UTF-8
|
541
|
+
string: |
|
542
|
+
<?xml version="1.0"?>
|
543
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
544
|
+
<GetServiceStatusResult>
|
545
|
+
<Status>GREEN</Status>
|
546
|
+
<Timestamp>2014-04-27T15:56:11.645Z</Timestamp>
|
547
|
+
</GetServiceStatusResult>
|
548
|
+
<ResponseMetadata>
|
549
|
+
<RequestId>f4091fd4-f2ca-43c4-b199-4ea59f4a1c26</RequestId>
|
550
|
+
</ResponseMetadata>
|
551
|
+
</GetServiceStatusResponse>
|
552
|
+
http_version:
|
553
|
+
recorded_at: Sun, 27 Apr 2014 15:56:11 GMT
|
554
|
+
- request:
|
555
|
+
method: post
|
556
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJLUHOXLR5S2L6A6A&Action=GetServiceStatus&SellerId=A2APQUVDBVWV7E&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A11Z&Signature=VfA0OzNY9YVrpKr%2FodD1umXdKEuCAgDpBC4oe2V4pK8%3D
|
557
|
+
body:
|
558
|
+
encoding: US-ASCII
|
559
|
+
string: ''
|
560
|
+
headers:
|
561
|
+
User-Agent:
|
562
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
563
|
+
response:
|
564
|
+
status:
|
565
|
+
code: 200
|
566
|
+
message:
|
567
|
+
headers:
|
568
|
+
Date:
|
569
|
+
- Sun, 27 Apr 2014 15:56:11 GMT
|
570
|
+
Server:
|
571
|
+
- AmazonMWS
|
572
|
+
x-mws-request-id:
|
573
|
+
- 72317ad1-a82a-4998-9373-3066089ee967
|
574
|
+
x-mws-timestamp:
|
575
|
+
- '2014-04-27T15:56:11.826Z'
|
576
|
+
x-mws-response-context:
|
577
|
+
- q+d2GuI7AUP4hnyLX3brrw+gHj1ib4b/hqLEKs3W7xZMnM9ZiAwqXc1gkzalHNVO5u9wg8ASkrvV
|
578
|
+
GsUP++qtbQ==
|
579
|
+
Content-Type:
|
580
|
+
- text/xml
|
581
|
+
Content-Length:
|
582
|
+
- '367'
|
583
|
+
Vary:
|
584
|
+
- User-Agent
|
585
|
+
body:
|
586
|
+
encoding: UTF-8
|
587
|
+
string: |
|
588
|
+
<?xml version="1.0"?>
|
589
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
590
|
+
<GetServiceStatusResult>
|
591
|
+
<Status>GREEN</Status>
|
592
|
+
<Timestamp>2014-04-27T15:56:11.826Z</Timestamp>
|
593
|
+
</GetServiceStatusResult>
|
594
|
+
<ResponseMetadata>
|
595
|
+
<RequestId>72317ad1-a82a-4998-9373-3066089ee967</RequestId>
|
596
|
+
</ResponseMetadata>
|
597
|
+
</GetServiceStatusResponse>
|
598
|
+
http_version:
|
599
|
+
recorded_at: Sun, 27 Apr 2014 15:56:11 GMT
|
600
|
+
- request:
|
601
|
+
method: post
|
602
|
+
uri: https://mws.amazonservices.ca/?AWSAccessKeyId=AKIAITHQMZUJROSOP27Q&Action=GetServiceStatus&SellerId=A2A7WNXBU01UJW&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A11Z&Signature=b98Gvw5jNJrmg6Gsc7eL76LnjpS1%2FS81LicqdiGZdog%3D
|
603
|
+
body:
|
604
|
+
encoding: US-ASCII
|
605
|
+
string: ''
|
606
|
+
headers:
|
607
|
+
User-Agent:
|
608
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
609
|
+
response:
|
610
|
+
status:
|
611
|
+
code: 200
|
612
|
+
message:
|
613
|
+
headers:
|
614
|
+
Date:
|
615
|
+
- Sun, 27 Apr 2014 15:56:12 GMT
|
616
|
+
Server:
|
617
|
+
- AmazonMWS
|
618
|
+
x-mws-request-id:
|
619
|
+
- 8711a874-ea6c-4e27-95be-2435934b5aca
|
620
|
+
x-mws-timestamp:
|
621
|
+
- '2014-04-27T15:56:12.237Z'
|
622
|
+
x-mws-response-context:
|
623
|
+
- m8v+VqQ/1EANxqWLiefWkM6LxHYlPwd3kRvPGMxUJS5sxoC6LGjbA8lp5u2Q0D0rbMDLorXZJo4+
|
624
|
+
ZgIsHsE59Q==
|
625
|
+
Content-Type:
|
626
|
+
- text/xml
|
627
|
+
Content-Length:
|
628
|
+
- '367'
|
629
|
+
Vary:
|
630
|
+
- User-Agent
|
631
|
+
body:
|
632
|
+
encoding: UTF-8
|
633
|
+
string: |
|
634
|
+
<?xml version="1.0"?>
|
635
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
636
|
+
<GetServiceStatusResult>
|
637
|
+
<Status>GREEN</Status>
|
638
|
+
<Timestamp>2014-04-27T15:56:12.237Z</Timestamp>
|
639
|
+
</GetServiceStatusResult>
|
640
|
+
<ResponseMetadata>
|
641
|
+
<RequestId>8711a874-ea6c-4e27-95be-2435934b5aca</RequestId>
|
642
|
+
</ResponseMetadata>
|
643
|
+
</GetServiceStatusResponse>
|
644
|
+
http_version:
|
645
|
+
recorded_at: Sun, 27 Apr 2014 15:56:12 GMT
|
646
|
+
- request:
|
647
|
+
method: post
|
648
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI6X4QZRXSHGHABJA&Action=GetServiceStatus&SellerId=A2NEU7G6RGUKF&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A12Z&Signature=hcM%2Bk1A1PBw%2B9%2BfeuL5oZKm7t03WSmyBt9VJwhwY8gw%3D
|
649
|
+
body:
|
650
|
+
encoding: US-ASCII
|
651
|
+
string: ''
|
652
|
+
headers:
|
653
|
+
User-Agent:
|
654
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
655
|
+
response:
|
656
|
+
status:
|
657
|
+
code: 200
|
658
|
+
message:
|
659
|
+
headers:
|
660
|
+
Date:
|
661
|
+
- Sun, 27 Apr 2014 15:56:11 GMT
|
662
|
+
Server:
|
663
|
+
- AmazonMWS
|
664
|
+
x-mws-request-id:
|
665
|
+
- bf8f53db-23bf-41a8-b708-400de0184766
|
666
|
+
x-mws-timestamp:
|
667
|
+
- '2014-04-27T15:56:12.439Z'
|
668
|
+
x-mws-response-context:
|
669
|
+
- prmVFouL2yp/kkp/+eFBPKfglrSltRZIaE3QUlJ3vCZ0YI4SnnXOTGEQ/qIC//6uvFhBBXa1UkkW
|
670
|
+
SJrv4me4Bg==
|
671
|
+
Content-Type:
|
672
|
+
- text/xml
|
673
|
+
Content-Length:
|
674
|
+
- '367'
|
675
|
+
Vary:
|
676
|
+
- User-Agent
|
677
|
+
body:
|
678
|
+
encoding: UTF-8
|
679
|
+
string: |
|
680
|
+
<?xml version="1.0"?>
|
681
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
682
|
+
<GetServiceStatusResult>
|
683
|
+
<Status>GREEN</Status>
|
684
|
+
<Timestamp>2014-04-27T15:56:12.439Z</Timestamp>
|
685
|
+
</GetServiceStatusResult>
|
686
|
+
<ResponseMetadata>
|
687
|
+
<RequestId>bf8f53db-23bf-41a8-b708-400de0184766</RequestId>
|
688
|
+
</ResponseMetadata>
|
689
|
+
</GetServiceStatusResponse>
|
690
|
+
http_version:
|
691
|
+
recorded_at: Sun, 27 Apr 2014 15:56:12 GMT
|
692
|
+
- request:
|
693
|
+
method: post
|
694
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAIORT7554FEBW7UBQ&Action=GetServiceStatus&SellerId=A7ZXDJZD3UIRG&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A12Z&Signature=bk%2B1RWVkLxNBpc7xtEg82zX6fEwx0QXj4tiUP8GLolM%3D
|
695
|
+
body:
|
696
|
+
encoding: US-ASCII
|
697
|
+
string: ''
|
698
|
+
headers:
|
699
|
+
User-Agent:
|
700
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
701
|
+
response:
|
702
|
+
status:
|
703
|
+
code: 200
|
704
|
+
message:
|
705
|
+
headers:
|
706
|
+
Date:
|
707
|
+
- Sun, 27 Apr 2014 15:56:11 GMT
|
708
|
+
Server:
|
709
|
+
- AmazonMWS
|
710
|
+
x-mws-request-id:
|
711
|
+
- 2e527d0e-90f4-4d76-8585-3efa181e8223
|
712
|
+
x-mws-timestamp:
|
713
|
+
- '2014-04-27T15:56:12.618Z'
|
714
|
+
x-mws-response-context:
|
715
|
+
- IsalvlF9AxUBxib6UcEdfAhCtkfcB9D4Nnf0ebB5iaxs0Dket4IhW16bFyyLKT06JUKSnl6vr2Lv
|
716
|
+
xTJ5dzpHwA==
|
717
|
+
Content-Type:
|
718
|
+
- text/xml
|
719
|
+
Content-Length:
|
720
|
+
- '367'
|
721
|
+
Vary:
|
722
|
+
- User-Agent
|
723
|
+
body:
|
724
|
+
encoding: UTF-8
|
725
|
+
string: |
|
726
|
+
<?xml version="1.0"?>
|
727
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
728
|
+
<GetServiceStatusResult>
|
729
|
+
<Status>GREEN</Status>
|
730
|
+
<Timestamp>2014-04-27T15:56:12.618Z</Timestamp>
|
731
|
+
</GetServiceStatusResult>
|
732
|
+
<ResponseMetadata>
|
733
|
+
<RequestId>2e527d0e-90f4-4d76-8585-3efa181e8223</RequestId>
|
734
|
+
</ResponseMetadata>
|
735
|
+
</GetServiceStatusResponse>
|
736
|
+
http_version:
|
737
|
+
recorded_at: Sun, 27 Apr 2014 15:56:12 GMT
|
371
738
|
recorded_with: VCR 2.9.0
|