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
@@ -366,4 +366,372 @@ http_interactions:
|
|
366
366
|
</GetServiceStatusResponse>
|
367
367
|
http_version:
|
368
368
|
recorded_at: Sun, 13 Apr 2014 21:05:54 GMT
|
369
|
+
- request:
|
370
|
+
method: post
|
371
|
+
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
|
372
|
+
body:
|
373
|
+
encoding: US-ASCII
|
374
|
+
string: ''
|
375
|
+
headers:
|
376
|
+
User-Agent:
|
377
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
378
|
+
response:
|
379
|
+
status:
|
380
|
+
code: 200
|
381
|
+
message:
|
382
|
+
headers:
|
383
|
+
Date:
|
384
|
+
- Sun, 27 Apr 2014 15:56:12 GMT
|
385
|
+
Server:
|
386
|
+
- AmazonMWS
|
387
|
+
x-mws-request-id:
|
388
|
+
- 65b079bb-1e32-4542-be98-21e6c3034d59
|
389
|
+
x-mws-timestamp:
|
390
|
+
- '2014-04-27T15:56:12.949Z'
|
391
|
+
x-mws-response-context:
|
392
|
+
- X71dvfJHE7jSiquoqyaiSDDFOIKpLhrKzQirHx8DDmGjMZq3jxEPq9iLTgKXavoRpLPcRhul2F5Y
|
393
|
+
i0NLpUoINQ==
|
394
|
+
Content-Type:
|
395
|
+
- text/xml
|
396
|
+
Content-Length:
|
397
|
+
- '367'
|
398
|
+
Vary:
|
399
|
+
- User-Agent
|
400
|
+
body:
|
401
|
+
encoding: UTF-8
|
402
|
+
string: |
|
403
|
+
<?xml version="1.0"?>
|
404
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
405
|
+
<GetServiceStatusResult>
|
406
|
+
<Status>GREEN</Status>
|
407
|
+
<Timestamp>2014-04-27T15:56:12.949Z</Timestamp>
|
408
|
+
</GetServiceStatusResult>
|
409
|
+
<ResponseMetadata>
|
410
|
+
<RequestId>65b079bb-1e32-4542-be98-21e6c3034d59</RequestId>
|
411
|
+
</ResponseMetadata>
|
412
|
+
</GetServiceStatusResponse>
|
413
|
+
http_version:
|
414
|
+
recorded_at: Sun, 27 Apr 2014 15:56:12 GMT
|
415
|
+
- request:
|
416
|
+
method: post
|
417
|
+
uri: https://mws.amazonservices.jp/?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A12Z&Signature=nGsuIW1GTw%2F0GNpt%2BbWwgmrG%2FTDMVuc%2Ba69oKECCsz4%3D
|
418
|
+
body:
|
419
|
+
encoding: US-ASCII
|
420
|
+
string: ''
|
421
|
+
headers:
|
422
|
+
User-Agent:
|
423
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
424
|
+
response:
|
425
|
+
status:
|
426
|
+
code: 200
|
427
|
+
message:
|
428
|
+
headers:
|
429
|
+
Date:
|
430
|
+
- Sun, 27 Apr 2014 15:56:12 GMT
|
431
|
+
Server:
|
432
|
+
- AmazonMWS
|
433
|
+
x-mws-request-id:
|
434
|
+
- c461caeb-e61f-464e-87f2-aefb3f472fcd
|
435
|
+
x-mws-timestamp:
|
436
|
+
- '2014-04-27T15:56:13.638Z'
|
437
|
+
x-mws-response-context:
|
438
|
+
- 9v80Q/6ZQtYodd0GEc60UMflZRH0oFU7VbsHLo58TGvpeIqC45xjduXPvJ1u4shYCMJohJjunySM
|
439
|
+
rhliZHApLQ==
|
440
|
+
Content-Type:
|
441
|
+
- text/xml
|
442
|
+
Content-Length:
|
443
|
+
- '367'
|
444
|
+
Vary:
|
445
|
+
- User-Agent
|
446
|
+
body:
|
447
|
+
encoding: UTF-8
|
448
|
+
string: |
|
449
|
+
<?xml version="1.0"?>
|
450
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
451
|
+
<GetServiceStatusResult>
|
452
|
+
<Status>GREEN</Status>
|
453
|
+
<Timestamp>2014-04-27T15:56:13.638Z</Timestamp>
|
454
|
+
</GetServiceStatusResult>
|
455
|
+
<ResponseMetadata>
|
456
|
+
<RequestId>c461caeb-e61f-464e-87f2-aefb3f472fcd</RequestId>
|
457
|
+
</ResponseMetadata>
|
458
|
+
</GetServiceStatusResponse>
|
459
|
+
http_version:
|
460
|
+
recorded_at: Sun, 27 Apr 2014 15:56:13 GMT
|
461
|
+
- request:
|
462
|
+
method: post
|
463
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI4ZNSD76DH7UBRDA&Action=GetServiceStatus&SellerId=A2DP6GIDYN6OTH&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A13Z&Signature=avGigFpV8ha1qGNhvllmGM1bwSQVHBtwrz4E4ucDIMM%3D
|
464
|
+
body:
|
465
|
+
encoding: US-ASCII
|
466
|
+
string: ''
|
467
|
+
headers:
|
468
|
+
User-Agent:
|
469
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
470
|
+
response:
|
471
|
+
status:
|
472
|
+
code: 200
|
473
|
+
message:
|
474
|
+
headers:
|
475
|
+
Date:
|
476
|
+
- Sun, 27 Apr 2014 15:56:13 GMT
|
477
|
+
Server:
|
478
|
+
- AmazonMWS
|
479
|
+
x-mws-request-id:
|
480
|
+
- bfa96c01-4030-4f45-aeb9-8bd13f1a381d
|
481
|
+
x-mws-timestamp:
|
482
|
+
- '2014-04-27T15:56:13.846Z'
|
483
|
+
x-mws-response-context:
|
484
|
+
- dDjVz6SruG7aRYe9voarJj5EZE0pf4Z+ZE7M5s3vZU8ewlF0YHzW1Nh+ONpI5CKcl/iQLnV+xlyl
|
485
|
+
GUpeXhnBKg==
|
486
|
+
Content-Type:
|
487
|
+
- text/xml
|
488
|
+
Content-Length:
|
489
|
+
- '367'
|
490
|
+
Vary:
|
491
|
+
- User-Agent
|
492
|
+
body:
|
493
|
+
encoding: UTF-8
|
494
|
+
string: |
|
495
|
+
<?xml version="1.0"?>
|
496
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
497
|
+
<GetServiceStatusResult>
|
498
|
+
<Status>GREEN</Status>
|
499
|
+
<Timestamp>2014-04-27T15:56:13.846Z</Timestamp>
|
500
|
+
</GetServiceStatusResult>
|
501
|
+
<ResponseMetadata>
|
502
|
+
<RequestId>bfa96c01-4030-4f45-aeb9-8bd13f1a381d</RequestId>
|
503
|
+
</ResponseMetadata>
|
504
|
+
</GetServiceStatusResponse>
|
505
|
+
http_version:
|
506
|
+
recorded_at: Sun, 27 Apr 2014 15:56:13 GMT
|
507
|
+
- request:
|
508
|
+
method: post
|
509
|
+
uri: https://mws.amazonservices.ca/?AWSAccessKeyId=AKIAITHQMZUJROSOP27Q&Action=GetServiceStatus&SellerId=A2A7WNXBU01UJW&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A13Z&Signature=0uHQisPy2SpWcy9pwAcvRXczy1Joq2RBBqhYyfZ5m30%3D
|
510
|
+
body:
|
511
|
+
encoding: US-ASCII
|
512
|
+
string: ''
|
513
|
+
headers:
|
514
|
+
User-Agent:
|
515
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
516
|
+
response:
|
517
|
+
status:
|
518
|
+
code: 200
|
519
|
+
message:
|
520
|
+
headers:
|
521
|
+
Date:
|
522
|
+
- Sun, 27 Apr 2014 15:56:13 GMT
|
523
|
+
Server:
|
524
|
+
- AmazonMWS
|
525
|
+
x-mws-request-id:
|
526
|
+
- 0580096e-88ec-4e85-a351-31666f673f95
|
527
|
+
x-mws-timestamp:
|
528
|
+
- '2014-04-27T15:56:14.235Z'
|
529
|
+
x-mws-response-context:
|
530
|
+
- 8V+dPuqnG/Jy3buJh2KEZmBz1MuXbl4WxXgiXam7DlOlbkdSU/LC7mWvfmdOBDD69isrExKDdWi0
|
531
|
+
qApzg+ZdfQ==
|
532
|
+
Content-Type:
|
533
|
+
- text/xml
|
534
|
+
Content-Length:
|
535
|
+
- '367'
|
536
|
+
Vary:
|
537
|
+
- User-Agent
|
538
|
+
body:
|
539
|
+
encoding: UTF-8
|
540
|
+
string: |
|
541
|
+
<?xml version="1.0"?>
|
542
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
543
|
+
<GetServiceStatusResult>
|
544
|
+
<Status>GREEN</Status>
|
545
|
+
<Timestamp>2014-04-27T15:56:14.235Z</Timestamp>
|
546
|
+
</GetServiceStatusResult>
|
547
|
+
<ResponseMetadata>
|
548
|
+
<RequestId>0580096e-88ec-4e85-a351-31666f673f95</RequestId>
|
549
|
+
</ResponseMetadata>
|
550
|
+
</GetServiceStatusResponse>
|
551
|
+
http_version:
|
552
|
+
recorded_at: Sun, 27 Apr 2014 15:56:14 GMT
|
553
|
+
- request:
|
554
|
+
method: post
|
555
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI6X4QZRXSHGHABJA&Action=GetServiceStatus&SellerId=A2NEU7G6RGUKF&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A14Z&Signature=oh%2BNCsOKgqC9%2FRcxCpuf0xOPKjo5RARxx7HsNLwSw%2FU%3D
|
556
|
+
body:
|
557
|
+
encoding: US-ASCII
|
558
|
+
string: ''
|
559
|
+
headers:
|
560
|
+
User-Agent:
|
561
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
562
|
+
response:
|
563
|
+
status:
|
564
|
+
code: 200
|
565
|
+
message:
|
566
|
+
headers:
|
567
|
+
Date:
|
568
|
+
- Sun, 27 Apr 2014 15:56:14 GMT
|
569
|
+
Server:
|
570
|
+
- AmazonMWS
|
571
|
+
x-mws-request-id:
|
572
|
+
- 92e309b2-c2e8-4a0a-a29f-554db08cb778
|
573
|
+
x-mws-timestamp:
|
574
|
+
- '2014-04-27T15:56:14.455Z'
|
575
|
+
x-mws-response-context:
|
576
|
+
- AWKOsL4ctq17snVOUMRbWsokyv0Sw/l4jmF6NhviL+D8OxN9qfiQQDiAJv/DAnnpt6o2BXih0854
|
577
|
+
nvA1JYAF7Q==
|
578
|
+
Content-Type:
|
579
|
+
- text/xml
|
580
|
+
Content-Length:
|
581
|
+
- '367'
|
582
|
+
Vary:
|
583
|
+
- User-Agent
|
584
|
+
body:
|
585
|
+
encoding: UTF-8
|
586
|
+
string: |
|
587
|
+
<?xml version="1.0"?>
|
588
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
589
|
+
<GetServiceStatusResult>
|
590
|
+
<Status>GREEN</Status>
|
591
|
+
<Timestamp>2014-04-27T15:56:14.455Z</Timestamp>
|
592
|
+
</GetServiceStatusResult>
|
593
|
+
<ResponseMetadata>
|
594
|
+
<RequestId>92e309b2-c2e8-4a0a-a29f-554db08cb778</RequestId>
|
595
|
+
</ResponseMetadata>
|
596
|
+
</GetServiceStatusResponse>
|
597
|
+
http_version:
|
598
|
+
recorded_at: Sun, 27 Apr 2014 15:56:14 GMT
|
599
|
+
- request:
|
600
|
+
method: post
|
601
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJLUHOXLR5S2L6A6A&Action=GetServiceStatus&SellerId=A2APQUVDBVWV7E&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A14Z&Signature=7vb%2BBCPesmfOHxtRL%2B%2BmaL3lMnR6xOwHkUUBGVONgBk%3D
|
602
|
+
body:
|
603
|
+
encoding: US-ASCII
|
604
|
+
string: ''
|
605
|
+
headers:
|
606
|
+
User-Agent:
|
607
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
608
|
+
response:
|
609
|
+
status:
|
610
|
+
code: 200
|
611
|
+
message:
|
612
|
+
headers:
|
613
|
+
Date:
|
614
|
+
- Sun, 27 Apr 2014 15:56:13 GMT
|
615
|
+
Server:
|
616
|
+
- AmazonMWS
|
617
|
+
x-mws-request-id:
|
618
|
+
- 0e1adf71-9fb5-44e3-b8ea-54f9325d5e85
|
619
|
+
x-mws-timestamp:
|
620
|
+
- '2014-04-27T15:56:14.657Z'
|
621
|
+
x-mws-response-context:
|
622
|
+
- JRLU7rabFDM7kbBDb+UEFSR/s6qKEnvHPqWrUkGz3W/w+EJvLDoPkY71tZ9Y9ZVnVzTcnnbe1kSD
|
623
|
+
2fZiMpfguw==
|
624
|
+
Content-Type:
|
625
|
+
- text/xml
|
626
|
+
Content-Length:
|
627
|
+
- '367'
|
628
|
+
Vary:
|
629
|
+
- User-Agent
|
630
|
+
body:
|
631
|
+
encoding: UTF-8
|
632
|
+
string: |
|
633
|
+
<?xml version="1.0"?>
|
634
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
635
|
+
<GetServiceStatusResult>
|
636
|
+
<Status>GREEN</Status>
|
637
|
+
<Timestamp>2014-04-27T15:56:14.657Z</Timestamp>
|
638
|
+
</GetServiceStatusResult>
|
639
|
+
<ResponseMetadata>
|
640
|
+
<RequestId>0e1adf71-9fb5-44e3-b8ea-54f9325d5e85</RequestId>
|
641
|
+
</ResponseMetadata>
|
642
|
+
</GetServiceStatusResponse>
|
643
|
+
http_version:
|
644
|
+
recorded_at: Sun, 27 Apr 2014 15:56:14 GMT
|
645
|
+
- request:
|
646
|
+
method: post
|
647
|
+
uri: https://mws.amazonservices.com/?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A14Z&Signature=vnnggh2ZpQdoY%2FvTZY0zJJ2mv4CmzqfwSIcjvULJPkQ%3D
|
648
|
+
body:
|
649
|
+
encoding: US-ASCII
|
650
|
+
string: ''
|
651
|
+
headers:
|
652
|
+
User-Agent:
|
653
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
654
|
+
response:
|
655
|
+
status:
|
656
|
+
code: 200
|
657
|
+
message:
|
658
|
+
headers:
|
659
|
+
Date:
|
660
|
+
- Sun, 27 Apr 2014 15:56:14 GMT
|
661
|
+
Server:
|
662
|
+
- AmazonMWS
|
663
|
+
x-mws-request-id:
|
664
|
+
- b89e1040-2860-45d1-9338-7e0e2e61b30d
|
665
|
+
x-mws-timestamp:
|
666
|
+
- '2014-04-27T15:56:15.041Z'
|
667
|
+
x-mws-response-context:
|
668
|
+
- 7MZstFsVYm9ktzHX+Fi2/jHSwcJsE2hdlAlaAigdD+y12lYDsoLVi9q9jbpr/b0gg+2AVYZmKUyq
|
669
|
+
Qu/zxK++nA==
|
670
|
+
Content-Type:
|
671
|
+
- text/xml
|
672
|
+
Content-Length:
|
673
|
+
- '367'
|
674
|
+
Vary:
|
675
|
+
- User-Agent
|
676
|
+
body:
|
677
|
+
encoding: UTF-8
|
678
|
+
string: |
|
679
|
+
<?xml version="1.0"?>
|
680
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
681
|
+
<GetServiceStatusResult>
|
682
|
+
<Status>GREEN</Status>
|
683
|
+
<Timestamp>2014-04-27T15:56:15.041Z</Timestamp>
|
684
|
+
</GetServiceStatusResult>
|
685
|
+
<ResponseMetadata>
|
686
|
+
<RequestId>b89e1040-2860-45d1-9338-7e0e2e61b30d</RequestId>
|
687
|
+
</ResponseMetadata>
|
688
|
+
</GetServiceStatusResponse>
|
689
|
+
http_version:
|
690
|
+
recorded_at: Sun, 27 Apr 2014 15:56:15 GMT
|
691
|
+
- request:
|
692
|
+
method: post
|
693
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A15Z&Signature=23HzZ9Nf3NLCrJeIUiKCD9bf0BLaAlwx4g3fpfcVOAs%3D
|
694
|
+
body:
|
695
|
+
encoding: US-ASCII
|
696
|
+
string: ''
|
697
|
+
headers:
|
698
|
+
User-Agent:
|
699
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
700
|
+
response:
|
701
|
+
status:
|
702
|
+
code: 200
|
703
|
+
message:
|
704
|
+
headers:
|
705
|
+
Date:
|
706
|
+
- Sun, 27 Apr 2014 15:56:14 GMT
|
707
|
+
Server:
|
708
|
+
- AmazonMWS
|
709
|
+
x-mws-request-id:
|
710
|
+
- fa0b4c67-b52a-4bce-8ad5-929c2447db8c
|
711
|
+
x-mws-timestamp:
|
712
|
+
- '2014-04-27T15:56:15.272Z'
|
713
|
+
x-mws-response-context:
|
714
|
+
- yDg22Jl137H4KPG6Z/U67tCu3+nUDLI+hXcPEVpJzTn3uPFfyDt0Vyfj43ehKsc5OGZypNrHnXku
|
715
|
+
1jCBxpFQyA==
|
716
|
+
Content-Type:
|
717
|
+
- text/xml
|
718
|
+
Content-Length:
|
719
|
+
- '367'
|
720
|
+
Vary:
|
721
|
+
- User-Agent
|
722
|
+
body:
|
723
|
+
encoding: UTF-8
|
724
|
+
string: |
|
725
|
+
<?xml version="1.0"?>
|
726
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
727
|
+
<GetServiceStatusResult>
|
728
|
+
<Status>GREEN</Status>
|
729
|
+
<Timestamp>2014-04-27T15:56:15.272Z</Timestamp>
|
730
|
+
</GetServiceStatusResult>
|
731
|
+
<ResponseMetadata>
|
732
|
+
<RequestId>fa0b4c67-b52a-4bce-8ad5-929c2447db8c</RequestId>
|
733
|
+
</ResponseMetadata>
|
734
|
+
</GetServiceStatusResponse>
|
735
|
+
http_version:
|
736
|
+
recorded_at: Sun, 27 Apr 2014 15:56:15 GMT
|
369
737
|
recorded_with: VCR 2.9.0
|