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,370 @@ http_interactions:
|
|
367
367
|
</GetServiceStatusResponse>
|
368
368
|
http_version:
|
369
369
|
recorded_at: Sun, 13 Apr 2014 21:05:59 GMT
|
370
|
+
- request:
|
371
|
+
method: post
|
372
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAIORT7554FEBW7UBQ&Action=GetServiceStatus&SellerId=A7ZXDJZD3UIRG&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A17Z&Signature=QdD7YiGVyKaw6Fd35g5Z6l9a6A%2Beto98OMG18QzQqXQ%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:17 GMT
|
386
|
+
Server:
|
387
|
+
- AmazonMWS
|
388
|
+
x-mws-request-id:
|
389
|
+
- 3cccc092-d891-40c2-973c-08436fbbb00f
|
390
|
+
x-mws-timestamp:
|
391
|
+
- '2014-04-27T15:56:18.094Z'
|
392
|
+
x-mws-response-context:
|
393
|
+
- zRNbmztvjwrWov+vgvUAy86DanCnUyKinMPsAyfxwocMohYDw9J94+7TqrYYf8vHbdIheHByd+Tq
|
394
|
+
rTU3cxawLQ==
|
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:18.094Z</Timestamp>
|
409
|
+
</GetServiceStatusResult>
|
410
|
+
<ResponseMetadata>
|
411
|
+
<RequestId>3cccc092-d891-40c2-973c-08436fbbb00f</RequestId>
|
412
|
+
</ResponseMetadata>
|
413
|
+
</GetServiceStatusResponse>
|
414
|
+
http_version:
|
415
|
+
recorded_at: Sun, 27 Apr 2014 15:56:18 GMT
|
416
|
+
- request:
|
417
|
+
method: post
|
418
|
+
uri: https://mws.amazonservices.com/?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A18Z&Signature=ZIkV36dDKsh97WAIdtZK4uixDu3JxARRL7rVkqZvbVI%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:18 GMT
|
432
|
+
Server:
|
433
|
+
- AmazonMWS
|
434
|
+
x-mws-request-id:
|
435
|
+
- c5d703b8-fc23-4866-af1e-3ea47bce3108
|
436
|
+
x-mws-timestamp:
|
437
|
+
- '2014-04-27T15:56:18.503Z'
|
438
|
+
x-mws-response-context:
|
439
|
+
- 5UlztdE4nWBzNun/IG/ZtNgdYaXK2l3rk8RWiLCr7Dj76VpR3I2U5u/72JVDidD6l7uUmFnt0wM=
|
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:18.503Z</Timestamp>
|
454
|
+
</GetServiceStatusResult>
|
455
|
+
<ResponseMetadata>
|
456
|
+
<RequestId>c5d703b8-fc23-4866-af1e-3ea47bce3108</RequestId>
|
457
|
+
</ResponseMetadata>
|
458
|
+
</GetServiceStatusResponse>
|
459
|
+
http_version:
|
460
|
+
recorded_at: Sun, 27 Apr 2014 15:56:18 GMT
|
461
|
+
- request:
|
462
|
+
method: post
|
463
|
+
uri: https://mws.amazonservices.jp/?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A18Z&Signature=xGO81zh4QDacd5NK%2FlpiSFrWVNvOhgDTj5UXZFQTL%2Fc%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:19 GMT
|
477
|
+
Server:
|
478
|
+
- AmazonMWS
|
479
|
+
x-mws-request-id:
|
480
|
+
- 1567b1f4-5ad5-4258-8618-3d3edf56d84a
|
481
|
+
x-mws-timestamp:
|
482
|
+
- '2014-04-27T15:56:19.192Z'
|
483
|
+
x-mws-response-context:
|
484
|
+
- 0SS1r9mqKLN0Rfh+R3NiChlqkzVl1IKfcQbJjvWbjKPcxLQjGr+MPhPusGmZjVRsGerdLSEvNSdy
|
485
|
+
FJVj5nwLEw==
|
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:19.192Z</Timestamp>
|
500
|
+
</GetServiceStatusResult>
|
501
|
+
<ResponseMetadata>
|
502
|
+
<RequestId>1567b1f4-5ad5-4258-8618-3d3edf56d84a</RequestId>
|
503
|
+
</ResponseMetadata>
|
504
|
+
</GetServiceStatusResponse>
|
505
|
+
http_version:
|
506
|
+
recorded_at: Sun, 27 Apr 2014 15:56:19 GMT
|
507
|
+
- request:
|
508
|
+
method: post
|
509
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A19Z&Signature=MFm8foX3X8XQwUQke8%2FHvpnv8e1IwD7N9oaDbPXBf54%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:18 GMT
|
523
|
+
Server:
|
524
|
+
- AmazonMWS
|
525
|
+
x-mws-request-id:
|
526
|
+
- efef192f-ddd8-4008-a6a6-d8adc396f73b
|
527
|
+
x-mws-timestamp:
|
528
|
+
- '2014-04-27T15:56:19.418Z'
|
529
|
+
x-mws-response-context:
|
530
|
+
- iJaK5Bvrye4gkaroGycIsYvYYfLEaCVTg2vuZYpnW2vA8O+/mJqC3o+CkP/nr+wewu4mxgaFW9RE
|
531
|
+
OABfJ+PgZg==
|
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:19.418Z</Timestamp>
|
546
|
+
</GetServiceStatusResult>
|
547
|
+
<ResponseMetadata>
|
548
|
+
<RequestId>efef192f-ddd8-4008-a6a6-d8adc396f73b</RequestId>
|
549
|
+
</ResponseMetadata>
|
550
|
+
</GetServiceStatusResponse>
|
551
|
+
http_version:
|
552
|
+
recorded_at: Sun, 27 Apr 2014 15:56:19 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%3A19Z&Signature=peU5cU562Nymp7D8XG7Fhk2e2yNWeJo2rP%2B8noFRNg8%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:18 GMT
|
569
|
+
Server:
|
570
|
+
- AmazonMWS
|
571
|
+
x-mws-request-id:
|
572
|
+
- 18a5d53a-410e-4905-9842-cffac922df67
|
573
|
+
x-mws-timestamp:
|
574
|
+
- '2014-04-27T15:56:19.567Z'
|
575
|
+
x-mws-response-context:
|
576
|
+
- STlEG6e9MwqameQQaEXdAXgGYeq4H45RKgQtsOs8/U5kcRo8JI+MaDO4GVfvt3Decw3hsZ5SATSG
|
577
|
+
al35LdwQLg==
|
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:19.567Z</Timestamp>
|
592
|
+
</GetServiceStatusResult>
|
593
|
+
<ResponseMetadata>
|
594
|
+
<RequestId>18a5d53a-410e-4905-9842-cffac922df67</RequestId>
|
595
|
+
</ResponseMetadata>
|
596
|
+
</GetServiceStatusResponse>
|
597
|
+
http_version:
|
598
|
+
recorded_at: Sun, 27 Apr 2014 15:56:19 GMT
|
599
|
+
- request:
|
600
|
+
method: post
|
601
|
+
uri: https://mws.amazonservices.ca/?AWSAccessKeyId=AKIAITHQMZUJROSOP27Q&Action=GetServiceStatus&SellerId=A2A7WNXBU01UJW&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A19Z&Signature=LAIo%2BrRuMyUVDRCIw6DN2U6QFU2XmjOVlq8YBHBcmhY%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:20 GMT
|
615
|
+
Server:
|
616
|
+
- AmazonMWS
|
617
|
+
x-mws-request-id:
|
618
|
+
- df77af5e-e8d5-4c35-ac32-41fed758a4a8
|
619
|
+
x-mws-timestamp:
|
620
|
+
- '2014-04-27T15:56:20.004Z'
|
621
|
+
x-mws-response-context:
|
622
|
+
- 6RUNq0A1c6xXZGN2uVgKbY3AvmaByR7rD9N5NOUIrx7TyQ0lpd/Ip9Mgizfrp8aLxnXzVCGNXPQ=
|
623
|
+
Content-Type:
|
624
|
+
- text/xml
|
625
|
+
Content-Length:
|
626
|
+
- '367'
|
627
|
+
Vary:
|
628
|
+
- User-Agent
|
629
|
+
body:
|
630
|
+
encoding: UTF-8
|
631
|
+
string: |
|
632
|
+
<?xml version="1.0"?>
|
633
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
634
|
+
<GetServiceStatusResult>
|
635
|
+
<Status>GREEN</Status>
|
636
|
+
<Timestamp>2014-04-27T15:56:20.004Z</Timestamp>
|
637
|
+
</GetServiceStatusResult>
|
638
|
+
<ResponseMetadata>
|
639
|
+
<RequestId>df77af5e-e8d5-4c35-ac32-41fed758a4a8</RequestId>
|
640
|
+
</ResponseMetadata>
|
641
|
+
</GetServiceStatusResponse>
|
642
|
+
http_version:
|
643
|
+
recorded_at: Sun, 27 Apr 2014 15:56:20 GMT
|
644
|
+
- request:
|
645
|
+
method: post
|
646
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJLUHOXLR5S2L6A6A&Action=GetServiceStatus&SellerId=A2APQUVDBVWV7E&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A20Z&Signature=WX44j8Erx8khol6r6WY%2Bg1WqE1bk8ByYDEq%2Bf1cstsA%3D
|
647
|
+
body:
|
648
|
+
encoding: US-ASCII
|
649
|
+
string: ''
|
650
|
+
headers:
|
651
|
+
User-Agent:
|
652
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
653
|
+
response:
|
654
|
+
status:
|
655
|
+
code: 200
|
656
|
+
message:
|
657
|
+
headers:
|
658
|
+
Date:
|
659
|
+
- Sun, 27 Apr 2014 15:56:19 GMT
|
660
|
+
Server:
|
661
|
+
- AmazonMWS
|
662
|
+
x-mws-request-id:
|
663
|
+
- f6f16c4c-3258-4622-999d-7587bbb7aa9b
|
664
|
+
x-mws-timestamp:
|
665
|
+
- '2014-04-27T15:56:20.188Z'
|
666
|
+
x-mws-response-context:
|
667
|
+
- FrP49DUTtgt6BMVuUKKqGm4z5IZgrWh6jMb12XjVPKtlXuSTxX3iLMlyuQbzV42XyssxztrXQ5HD
|
668
|
+
02ydvUXG2g==
|
669
|
+
Content-Type:
|
670
|
+
- text/xml
|
671
|
+
Content-Length:
|
672
|
+
- '367'
|
673
|
+
Vary:
|
674
|
+
- User-Agent
|
675
|
+
body:
|
676
|
+
encoding: UTF-8
|
677
|
+
string: |
|
678
|
+
<?xml version="1.0"?>
|
679
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
680
|
+
<GetServiceStatusResult>
|
681
|
+
<Status>GREEN</Status>
|
682
|
+
<Timestamp>2014-04-27T15:56:20.188Z</Timestamp>
|
683
|
+
</GetServiceStatusResult>
|
684
|
+
<ResponseMetadata>
|
685
|
+
<RequestId>f6f16c4c-3258-4622-999d-7587bbb7aa9b</RequestId>
|
686
|
+
</ResponseMetadata>
|
687
|
+
</GetServiceStatusResponse>
|
688
|
+
http_version:
|
689
|
+
recorded_at: Sun, 27 Apr 2014 15:56:20 GMT
|
690
|
+
- request:
|
691
|
+
method: post
|
692
|
+
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
|
693
|
+
body:
|
694
|
+
encoding: US-ASCII
|
695
|
+
string: ''
|
696
|
+
headers:
|
697
|
+
User-Agent:
|
698
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
699
|
+
response:
|
700
|
+
status:
|
701
|
+
code: 200
|
702
|
+
message:
|
703
|
+
headers:
|
704
|
+
Date:
|
705
|
+
- Sun, 27 Apr 2014 15:56:19 GMT
|
706
|
+
Server:
|
707
|
+
- AmazonMWS
|
708
|
+
x-mws-request-id:
|
709
|
+
- f7d2fc7e-dbce-44b9-a533-4b465a26d570
|
710
|
+
x-mws-timestamp:
|
711
|
+
- '2014-04-27T15:56:20.343Z'
|
712
|
+
x-mws-response-context:
|
713
|
+
- uNj7aKZcPvRHG4h5n0PRpjfh+i2B3YeYb3D9sMM9ojaTNP1a32oRdmEkjTZ3dARG76J/7Fajjfxe
|
714
|
+
rnLFwB72IQ==
|
715
|
+
Content-Type:
|
716
|
+
- text/xml
|
717
|
+
Content-Length:
|
718
|
+
- '367'
|
719
|
+
Vary:
|
720
|
+
- User-Agent
|
721
|
+
body:
|
722
|
+
encoding: UTF-8
|
723
|
+
string: |
|
724
|
+
<?xml version="1.0"?>
|
725
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
726
|
+
<GetServiceStatusResult>
|
727
|
+
<Status>GREEN</Status>
|
728
|
+
<Timestamp>2014-04-27T15:56:20.343Z</Timestamp>
|
729
|
+
</GetServiceStatusResult>
|
730
|
+
<ResponseMetadata>
|
731
|
+
<RequestId>f7d2fc7e-dbce-44b9-a533-4b465a26d570</RequestId>
|
732
|
+
</ResponseMetadata>
|
733
|
+
</GetServiceStatusResponse>
|
734
|
+
http_version:
|
735
|
+
recorded_at: Sun, 27 Apr 2014 15:56:20 GMT
|
370
736
|
recorded_with: VCR 2.9.0
|