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
@@ -367,4 +367,372 @@ http_interactions:
|
|
367
367
|
</GetServiceStatusResponse>
|
368
368
|
http_version:
|
369
369
|
recorded_at: Thu, 10 Apr 2014 15:48:52 GMT
|
370
|
+
- request:
|
371
|
+
method: post
|
372
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI4ZNSD76DH7UBRDA&Action=GetServiceStatus&SellerId=A2DP6GIDYN6OTH&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A20Z&Signature=uZ0w3KONglZM4nDPI2Ul8QCo5LuDU%2FtiO6Ssgmzdk34%3D
|
373
|
+
body:
|
374
|
+
encoding: US-ASCII
|
375
|
+
string: ''
|
376
|
+
headers:
|
377
|
+
User-Agent:
|
378
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
379
|
+
response:
|
380
|
+
status:
|
381
|
+
code: 200
|
382
|
+
message:
|
383
|
+
headers:
|
384
|
+
Date:
|
385
|
+
- Sun, 27 Apr 2014 15:56:20 GMT
|
386
|
+
Server:
|
387
|
+
- AmazonMWS
|
388
|
+
x-mws-request-id:
|
389
|
+
- 1cb024ba-8152-457c-b960-3b3281c7f84a
|
390
|
+
x-mws-timestamp:
|
391
|
+
- '2014-04-27T15:56:20.540Z'
|
392
|
+
x-mws-response-context:
|
393
|
+
- nnEZ/T6YH9W/S267DZ58EK7EDQdGWb0Mthta/m6cA6xwsus7GX+43TyoO2+sP7pkdJfSWkOChxSY
|
394
|
+
El2RbVNR/Q==
|
395
|
+
Content-Type:
|
396
|
+
- text/xml
|
397
|
+
Content-Length:
|
398
|
+
- '367'
|
399
|
+
Vary:
|
400
|
+
- User-Agent
|
401
|
+
body:
|
402
|
+
encoding: UTF-8
|
403
|
+
string: |
|
404
|
+
<?xml version="1.0"?>
|
405
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
406
|
+
<GetServiceStatusResult>
|
407
|
+
<Status>GREEN</Status>
|
408
|
+
<Timestamp>2014-04-27T15:56:20.540Z</Timestamp>
|
409
|
+
</GetServiceStatusResult>
|
410
|
+
<ResponseMetadata>
|
411
|
+
<RequestId>1cb024ba-8152-457c-b960-3b3281c7f84a</RequestId>
|
412
|
+
</ResponseMetadata>
|
413
|
+
</GetServiceStatusResponse>
|
414
|
+
http_version:
|
415
|
+
recorded_at: Sun, 27 Apr 2014 15:56:20 GMT
|
416
|
+
- request:
|
417
|
+
method: post
|
418
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAIORT7554FEBW7UBQ&Action=GetServiceStatus&SellerId=A7ZXDJZD3UIRG&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A20Z&Signature=yZ%2FGPFqRR7lylEjv7cXoyzsGnzFoyYEP80fii85oq9s%3D
|
419
|
+
body:
|
420
|
+
encoding: US-ASCII
|
421
|
+
string: ''
|
422
|
+
headers:
|
423
|
+
User-Agent:
|
424
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
425
|
+
response:
|
426
|
+
status:
|
427
|
+
code: 200
|
428
|
+
message:
|
429
|
+
headers:
|
430
|
+
Date:
|
431
|
+
- Sun, 27 Apr 2014 15:56:20 GMT
|
432
|
+
Server:
|
433
|
+
- AmazonMWS
|
434
|
+
x-mws-request-id:
|
435
|
+
- e23d9263-bb9b-4ae4-8c58-1f9acb16aa89
|
436
|
+
x-mws-timestamp:
|
437
|
+
- '2014-04-27T15:56:20.726Z'
|
438
|
+
x-mws-response-context:
|
439
|
+
- prmVFouL2yp/kkp/+eFBPKfglrSltRZIaE3QUlJ3vCZ0YI4SnnXOTGEQ/qIC//6uvFhBBXa1UkkW
|
440
|
+
SJrv4me4Bg==
|
441
|
+
Content-Type:
|
442
|
+
- text/xml
|
443
|
+
Content-Length:
|
444
|
+
- '367'
|
445
|
+
Vary:
|
446
|
+
- User-Agent
|
447
|
+
body:
|
448
|
+
encoding: UTF-8
|
449
|
+
string: |
|
450
|
+
<?xml version="1.0"?>
|
451
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
452
|
+
<GetServiceStatusResult>
|
453
|
+
<Status>GREEN</Status>
|
454
|
+
<Timestamp>2014-04-27T15:56:20.726Z</Timestamp>
|
455
|
+
</GetServiceStatusResult>
|
456
|
+
<ResponseMetadata>
|
457
|
+
<RequestId>e23d9263-bb9b-4ae4-8c58-1f9acb16aa89</RequestId>
|
458
|
+
</ResponseMetadata>
|
459
|
+
</GetServiceStatusResponse>
|
460
|
+
http_version:
|
461
|
+
recorded_at: Sun, 27 Apr 2014 15:56:20 GMT
|
462
|
+
- request:
|
463
|
+
method: post
|
464
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A20Z&Signature=04Nph2cee9GaWMh94RW5pViE1N0fuVA3b9FG%2FuqfVao%3D
|
465
|
+
body:
|
466
|
+
encoding: US-ASCII
|
467
|
+
string: ''
|
468
|
+
headers:
|
469
|
+
User-Agent:
|
470
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
471
|
+
response:
|
472
|
+
status:
|
473
|
+
code: 200
|
474
|
+
message:
|
475
|
+
headers:
|
476
|
+
Date:
|
477
|
+
- Sun, 27 Apr 2014 15:56:20 GMT
|
478
|
+
Server:
|
479
|
+
- AmazonMWS
|
480
|
+
x-mws-request-id:
|
481
|
+
- 0054b3f8-9e49-40f9-bc44-b8291faee4f7
|
482
|
+
x-mws-timestamp:
|
483
|
+
- '2014-04-27T15:56:20.875Z'
|
484
|
+
x-mws-response-context:
|
485
|
+
- czcrn+C68t3MmFQVm30iISo3ENNr9CY8CNcFvW8ZCR2la3NHfwC8Pc7lsibJEFNZ7DzhdY1EjZ+h
|
486
|
+
E6RP8JNB2g==
|
487
|
+
Content-Type:
|
488
|
+
- text/xml
|
489
|
+
Content-Length:
|
490
|
+
- '367'
|
491
|
+
Vary:
|
492
|
+
- User-Agent
|
493
|
+
body:
|
494
|
+
encoding: UTF-8
|
495
|
+
string: |
|
496
|
+
<?xml version="1.0"?>
|
497
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
498
|
+
<GetServiceStatusResult>
|
499
|
+
<Status>GREEN</Status>
|
500
|
+
<Timestamp>2014-04-27T15:56:20.875Z</Timestamp>
|
501
|
+
</GetServiceStatusResult>
|
502
|
+
<ResponseMetadata>
|
503
|
+
<RequestId>0054b3f8-9e49-40f9-bc44-b8291faee4f7</RequestId>
|
504
|
+
</ResponseMetadata>
|
505
|
+
</GetServiceStatusResponse>
|
506
|
+
http_version:
|
507
|
+
recorded_at: Sun, 27 Apr 2014 15:56:20 GMT
|
508
|
+
- request:
|
509
|
+
method: post
|
510
|
+
uri: https://mws.amazonservices.com/?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A20Z&Signature=FOH9HumlMHWgGtQ1PVdIXV6bOdIsKCBnXNBnzB7V2vY%3D
|
511
|
+
body:
|
512
|
+
encoding: US-ASCII
|
513
|
+
string: ''
|
514
|
+
headers:
|
515
|
+
User-Agent:
|
516
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
517
|
+
response:
|
518
|
+
status:
|
519
|
+
code: 200
|
520
|
+
message:
|
521
|
+
headers:
|
522
|
+
Date:
|
523
|
+
- Sun, 27 Apr 2014 15:56:20 GMT
|
524
|
+
Server:
|
525
|
+
- AmazonMWS
|
526
|
+
x-mws-request-id:
|
527
|
+
- 0ace9116-fa88-4cf1-8ac1-002fcec22415
|
528
|
+
x-mws-timestamp:
|
529
|
+
- '2014-04-27T15:56:21.276Z'
|
530
|
+
x-mws-response-context:
|
531
|
+
- qNZ62t329HgVQQo/oV2POCYSwC8XaGoA7wEEY+OG0KdgnfWGF25si7yyNBqMW/Jw43aBfrJzTM8+
|
532
|
+
ewddxOT7GQ==
|
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:21.276Z</Timestamp>
|
547
|
+
</GetServiceStatusResult>
|
548
|
+
<ResponseMetadata>
|
549
|
+
<RequestId>0ace9116-fa88-4cf1-8ac1-002fcec22415</RequestId>
|
550
|
+
</ResponseMetadata>
|
551
|
+
</GetServiceStatusResponse>
|
552
|
+
http_version:
|
553
|
+
recorded_at: Sun, 27 Apr 2014 15:56:21 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%3A21Z&Signature=KO1oNOqwCQ6MFEHl7xT3QyyX4tZQXvikCUXBXjtJjik%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:21 GMT
|
570
|
+
Server:
|
571
|
+
- AmazonMWS
|
572
|
+
x-mws-request-id:
|
573
|
+
- 6a23752a-ba06-4825-8964-e57477607beb
|
574
|
+
x-mws-timestamp:
|
575
|
+
- '2014-04-27T15:56:21.443Z'
|
576
|
+
x-mws-response-context:
|
577
|
+
- STlEG6e9MwqameQQaEXdAXgGYeq4H45RKgQtsOs8/U5kcRo8JI+MaDO4GVfvt3Decw3hsZ5SATSG
|
578
|
+
al35LdwQLg==
|
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:21.443Z</Timestamp>
|
593
|
+
</GetServiceStatusResult>
|
594
|
+
<ResponseMetadata>
|
595
|
+
<RequestId>6a23752a-ba06-4825-8964-e57477607beb</RequestId>
|
596
|
+
</ResponseMetadata>
|
597
|
+
</GetServiceStatusResponse>
|
598
|
+
http_version:
|
599
|
+
recorded_at: Sun, 27 Apr 2014 15:56:21 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%3A21Z&Signature=KtKLZYakCAA7hwU7DOKPccdnKk3boxkEvyYbVknUa9c%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:20 GMT
|
616
|
+
Server:
|
617
|
+
- AmazonMWS
|
618
|
+
x-mws-request-id:
|
619
|
+
- 13b89bf7-aefe-4cf6-8465-782495283455
|
620
|
+
x-mws-timestamp:
|
621
|
+
- '2014-04-27T15:56:21.833Z'
|
622
|
+
x-mws-response-context:
|
623
|
+
- "/Wz+KP9GIZQPj8cpXweuXag/bRX23B9yAv7CUSODVv7+Ra1/j9kZcDRRKnsKByyZ6dbzrmxbU7gv
|
624
|
+
ukdl1juEew=="
|
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:21.833Z</Timestamp>
|
639
|
+
</GetServiceStatusResult>
|
640
|
+
<ResponseMetadata>
|
641
|
+
<RequestId>13b89bf7-aefe-4cf6-8465-782495283455</RequestId>
|
642
|
+
</ResponseMetadata>
|
643
|
+
</GetServiceStatusResponse>
|
644
|
+
http_version:
|
645
|
+
recorded_at: Sun, 27 Apr 2014 15:56:21 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%3A21Z&Signature=okWEmPf3bYS9igglteTfT1yiACil0trdQe6ch%2F3oBP4%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:22 GMT
|
662
|
+
Server:
|
663
|
+
- AmazonMWS
|
664
|
+
x-mws-request-id:
|
665
|
+
- 1d39ed7f-d604-4ec6-bdea-60744df8346f
|
666
|
+
x-mws-timestamp:
|
667
|
+
- '2014-04-27T15:56:22.032Z'
|
668
|
+
x-mws-response-context:
|
669
|
+
- 2mMo4D/rIs6xMpoGWxS/tDEYafFdrpTTsSu/d/t3TCvozDRoK2Yjd5K06QAalkjymwwidMgemlmM
|
670
|
+
CgKr0jrXCg==
|
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:22.032Z</Timestamp>
|
685
|
+
</GetServiceStatusResult>
|
686
|
+
<ResponseMetadata>
|
687
|
+
<RequestId>1d39ed7f-d604-4ec6-bdea-60744df8346f</RequestId>
|
688
|
+
</ResponseMetadata>
|
689
|
+
</GetServiceStatusResponse>
|
690
|
+
http_version:
|
691
|
+
recorded_at: Sun, 27 Apr 2014 15:56:22 GMT
|
692
|
+
- request:
|
693
|
+
method: post
|
694
|
+
uri: https://mws.amazonservices.jp/?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A22Z&Signature=AKyd4%2BkiOAGCf%2F1sC%2BbeGWYyAsev0ytjmVPo2MOtEbs%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:21 GMT
|
708
|
+
Server:
|
709
|
+
- AmazonMWS
|
710
|
+
x-mws-request-id:
|
711
|
+
- e4014bb7-765c-4b33-a17e-07913555b25d
|
712
|
+
x-mws-timestamp:
|
713
|
+
- '2014-04-27T15:56:22.740Z'
|
714
|
+
x-mws-response-context:
|
715
|
+
- ntqVpbbRU8H2FOXaWKLDTjHI0K0Alb1lvRuaWi5VSxSNBt/U4zllR8y+9hMJnFvPtY5MkWAxoTZF
|
716
|
+
2iJkfQ1YAg==
|
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:22.740Z</Timestamp>
|
731
|
+
</GetServiceStatusResult>
|
732
|
+
<ResponseMetadata>
|
733
|
+
<RequestId>e4014bb7-765c-4b33-a17e-07913555b25d</RequestId>
|
734
|
+
</ResponseMetadata>
|
735
|
+
</GetServiceStatusResponse>
|
736
|
+
http_version:
|
737
|
+
recorded_at: Sun, 27 Apr 2014 15:56:22 GMT
|
370
738
|
recorded_with: VCR 2.9.0
|