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
@@ -8841,4 +8841,370 @@ http_interactions:
|
|
8841
8841
|
</ListRecommendationsResponse>
|
8842
8842
|
http_version:
|
8843
8843
|
recorded_at: Wed, 09 Apr 2014 08:40:34 GMT
|
8844
|
+
- request:
|
8845
|
+
method: post
|
8846
|
+
uri: https://mws.amazonservices.jp/?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A32Z&Signature=yMnCk6%2B9X12wncaP6DVrZEWkPj8GmghaEIQ0g7Tw2ig%3D
|
8847
|
+
body:
|
8848
|
+
encoding: US-ASCII
|
8849
|
+
string: ''
|
8850
|
+
headers:
|
8851
|
+
User-Agent:
|
8852
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
8853
|
+
response:
|
8854
|
+
status:
|
8855
|
+
code: 200
|
8856
|
+
message:
|
8857
|
+
headers:
|
8858
|
+
Date:
|
8859
|
+
- Sun, 27 Apr 2014 15:56:33 GMT
|
8860
|
+
Server:
|
8861
|
+
- AmazonMWS
|
8862
|
+
x-mws-request-id:
|
8863
|
+
- ec17cd51-5c28-455c-a3ef-6a206e6bfb9a
|
8864
|
+
x-mws-timestamp:
|
8865
|
+
- '2014-04-27T15:56:33.632Z'
|
8866
|
+
x-mws-response-context:
|
8867
|
+
- jkSyhYl+CQY9aHf6tECfqPEVghV7Uoli4hBoLfJk4z58UwMIHzrBEMa3Gyu9sUD16/n60jvVR3lK
|
8868
|
+
QN0zVc0Paw==
|
8869
|
+
Content-Type:
|
8870
|
+
- text/xml
|
8871
|
+
Content-Length:
|
8872
|
+
- '367'
|
8873
|
+
Vary:
|
8874
|
+
- User-Agent
|
8875
|
+
body:
|
8876
|
+
encoding: UTF-8
|
8877
|
+
string: |
|
8878
|
+
<?xml version="1.0"?>
|
8879
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
8880
|
+
<GetServiceStatusResult>
|
8881
|
+
<Status>GREEN</Status>
|
8882
|
+
<Timestamp>2014-04-27T15:56:33.632Z</Timestamp>
|
8883
|
+
</GetServiceStatusResult>
|
8884
|
+
<ResponseMetadata>
|
8885
|
+
<RequestId>ec17cd51-5c28-455c-a3ef-6a206e6bfb9a</RequestId>
|
8886
|
+
</ResponseMetadata>
|
8887
|
+
</GetServiceStatusResponse>
|
8888
|
+
http_version:
|
8889
|
+
recorded_at: Sun, 27 Apr 2014 15:56:33 GMT
|
8890
|
+
- request:
|
8891
|
+
method: post
|
8892
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJLUHOXLR5S2L6A6A&Action=GetServiceStatus&SellerId=A2APQUVDBVWV7E&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A33Z&Signature=Lc%2FvidHJuIg012UuqdMVqhG5g3gjQiTsJxbM470ZOYc%3D
|
8893
|
+
body:
|
8894
|
+
encoding: US-ASCII
|
8895
|
+
string: ''
|
8896
|
+
headers:
|
8897
|
+
User-Agent:
|
8898
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
8899
|
+
response:
|
8900
|
+
status:
|
8901
|
+
code: 200
|
8902
|
+
message:
|
8903
|
+
headers:
|
8904
|
+
Date:
|
8905
|
+
- Sun, 27 Apr 2014 15:56:33 GMT
|
8906
|
+
Server:
|
8907
|
+
- AmazonMWS
|
8908
|
+
x-mws-request-id:
|
8909
|
+
- 6488c53d-c633-4f9e-bd4e-a9db8b3ad29e
|
8910
|
+
x-mws-timestamp:
|
8911
|
+
- '2014-04-27T15:56:33.840Z'
|
8912
|
+
x-mws-response-context:
|
8913
|
+
- FrP49DUTtgt6BMVuUKKqGm4z5IZgrWh6jMb12XjVPKtlXuSTxX3iLMlyuQbzV42XyssxztrXQ5HD
|
8914
|
+
02ydvUXG2g==
|
8915
|
+
Content-Type:
|
8916
|
+
- text/xml
|
8917
|
+
Content-Length:
|
8918
|
+
- '367'
|
8919
|
+
Vary:
|
8920
|
+
- User-Agent
|
8921
|
+
body:
|
8922
|
+
encoding: UTF-8
|
8923
|
+
string: |
|
8924
|
+
<?xml version="1.0"?>
|
8925
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
8926
|
+
<GetServiceStatusResult>
|
8927
|
+
<Status>GREEN</Status>
|
8928
|
+
<Timestamp>2014-04-27T15:56:33.840Z</Timestamp>
|
8929
|
+
</GetServiceStatusResult>
|
8930
|
+
<ResponseMetadata>
|
8931
|
+
<RequestId>6488c53d-c633-4f9e-bd4e-a9db8b3ad29e</RequestId>
|
8932
|
+
</ResponseMetadata>
|
8933
|
+
</GetServiceStatusResponse>
|
8934
|
+
http_version:
|
8935
|
+
recorded_at: Sun, 27 Apr 2014 15:56:33 GMT
|
8936
|
+
- request:
|
8937
|
+
method: post
|
8938
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAIORT7554FEBW7UBQ&Action=GetServiceStatus&SellerId=A7ZXDJZD3UIRG&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A33Z&Signature=vtZCmUdVZWfivu7wSTEc25OercE78YQPlSiHmZgS%2Big%3D
|
8939
|
+
body:
|
8940
|
+
encoding: US-ASCII
|
8941
|
+
string: ''
|
8942
|
+
headers:
|
8943
|
+
User-Agent:
|
8944
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
8945
|
+
response:
|
8946
|
+
status:
|
8947
|
+
code: 200
|
8948
|
+
message:
|
8949
|
+
headers:
|
8950
|
+
Date:
|
8951
|
+
- Sun, 27 Apr 2014 15:56:33 GMT
|
8952
|
+
Server:
|
8953
|
+
- AmazonMWS
|
8954
|
+
x-mws-request-id:
|
8955
|
+
- 68cbbfce-f1b9-4d0d-b1d4-577c165b2b62
|
8956
|
+
x-mws-timestamp:
|
8957
|
+
- '2014-04-27T15:56:33.991Z'
|
8958
|
+
x-mws-response-context:
|
8959
|
+
- f5lU0J2/QJaSyOVAxItaAckf+0Rxb6ftGaM37xVKLtfx1axgiCzy6IikxaX3HSWqv8KkhTUtml2q
|
8960
|
+
hveabY7RxA==
|
8961
|
+
Content-Type:
|
8962
|
+
- text/xml
|
8963
|
+
Content-Length:
|
8964
|
+
- '367'
|
8965
|
+
Vary:
|
8966
|
+
- User-Agent
|
8967
|
+
body:
|
8968
|
+
encoding: UTF-8
|
8969
|
+
string: |
|
8970
|
+
<?xml version="1.0"?>
|
8971
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
8972
|
+
<GetServiceStatusResult>
|
8973
|
+
<Status>GREEN</Status>
|
8974
|
+
<Timestamp>2014-04-27T15:56:33.991Z</Timestamp>
|
8975
|
+
</GetServiceStatusResult>
|
8976
|
+
<ResponseMetadata>
|
8977
|
+
<RequestId>68cbbfce-f1b9-4d0d-b1d4-577c165b2b62</RequestId>
|
8978
|
+
</ResponseMetadata>
|
8979
|
+
</GetServiceStatusResponse>
|
8980
|
+
http_version:
|
8981
|
+
recorded_at: Sun, 27 Apr 2014 15:56:34 GMT
|
8982
|
+
- request:
|
8983
|
+
method: post
|
8984
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI4ZNSD76DH7UBRDA&Action=GetServiceStatus&SellerId=A2DP6GIDYN6OTH&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A34Z&Signature=FForyp3unTlAh3XQxOi5xEk04l4BAiAosHz%2FMWoLF%2Fs%3D
|
8985
|
+
body:
|
8986
|
+
encoding: US-ASCII
|
8987
|
+
string: ''
|
8988
|
+
headers:
|
8989
|
+
User-Agent:
|
8990
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
8991
|
+
response:
|
8992
|
+
status:
|
8993
|
+
code: 200
|
8994
|
+
message:
|
8995
|
+
headers:
|
8996
|
+
Date:
|
8997
|
+
- Sun, 27 Apr 2014 15:56:33 GMT
|
8998
|
+
Server:
|
8999
|
+
- AmazonMWS
|
9000
|
+
x-mws-request-id:
|
9001
|
+
- 49409276-b731-442b-b08d-4692c4f45f37
|
9002
|
+
x-mws-timestamp:
|
9003
|
+
- '2014-04-27T15:56:34.162Z'
|
9004
|
+
x-mws-response-context:
|
9005
|
+
- 1m2A1ikN9JZSFkOIwaG6HcAbXeeUoFJm7wRgzHM7XADzvw0Z8EwlVsyY4vBeJ577IbHyvsLJyW2Q
|
9006
|
+
iBeh4DVvag==
|
9007
|
+
Content-Type:
|
9008
|
+
- text/xml
|
9009
|
+
Content-Length:
|
9010
|
+
- '367'
|
9011
|
+
Vary:
|
9012
|
+
- User-Agent
|
9013
|
+
body:
|
9014
|
+
encoding: UTF-8
|
9015
|
+
string: |
|
9016
|
+
<?xml version="1.0"?>
|
9017
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
9018
|
+
<GetServiceStatusResult>
|
9019
|
+
<Status>GREEN</Status>
|
9020
|
+
<Timestamp>2014-04-27T15:56:34.162Z</Timestamp>
|
9021
|
+
</GetServiceStatusResult>
|
9022
|
+
<ResponseMetadata>
|
9023
|
+
<RequestId>49409276-b731-442b-b08d-4692c4f45f37</RequestId>
|
9024
|
+
</ResponseMetadata>
|
9025
|
+
</GetServiceStatusResponse>
|
9026
|
+
http_version:
|
9027
|
+
recorded_at: Sun, 27 Apr 2014 15:56:34 GMT
|
9028
|
+
- request:
|
9029
|
+
method: post
|
9030
|
+
uri: https://mws.amazonservices.ca/?AWSAccessKeyId=AKIAITHQMZUJROSOP27Q&Action=GetServiceStatus&SellerId=A2A7WNXBU01UJW&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A34Z&Signature=18sJym5wMfrPfh3rXoiU22lJ52JkWQ3VrE3cGKXhQ%2BM%3D
|
9031
|
+
body:
|
9032
|
+
encoding: US-ASCII
|
9033
|
+
string: ''
|
9034
|
+
headers:
|
9035
|
+
User-Agent:
|
9036
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
9037
|
+
response:
|
9038
|
+
status:
|
9039
|
+
code: 200
|
9040
|
+
message:
|
9041
|
+
headers:
|
9042
|
+
Date:
|
9043
|
+
- Sun, 27 Apr 2014 15:56:34 GMT
|
9044
|
+
Server:
|
9045
|
+
- AmazonMWS
|
9046
|
+
x-mws-request-id:
|
9047
|
+
- 4e84b8fb-84d3-4396-a2d5-8d57aefbf23b
|
9048
|
+
x-mws-timestamp:
|
9049
|
+
- '2014-04-27T15:56:34.573Z'
|
9050
|
+
x-mws-response-context:
|
9051
|
+
- 1UGKoclAOzfAzYHKt7n4Af81DW3BhQcn/iys7u0UlmjHy8umI+kZIH3/zJXYXniYDwqlR0sZPAU=
|
9052
|
+
Content-Type:
|
9053
|
+
- text/xml
|
9054
|
+
Content-Length:
|
9055
|
+
- '367'
|
9056
|
+
Vary:
|
9057
|
+
- User-Agent
|
9058
|
+
body:
|
9059
|
+
encoding: UTF-8
|
9060
|
+
string: |
|
9061
|
+
<?xml version="1.0"?>
|
9062
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
9063
|
+
<GetServiceStatusResult>
|
9064
|
+
<Status>GREEN</Status>
|
9065
|
+
<Timestamp>2014-04-27T15:56:34.573Z</Timestamp>
|
9066
|
+
</GetServiceStatusResult>
|
9067
|
+
<ResponseMetadata>
|
9068
|
+
<RequestId>4e84b8fb-84d3-4396-a2d5-8d57aefbf23b</RequestId>
|
9069
|
+
</ResponseMetadata>
|
9070
|
+
</GetServiceStatusResponse>
|
9071
|
+
http_version:
|
9072
|
+
recorded_at: Sun, 27 Apr 2014 15:56:34 GMT
|
9073
|
+
- request:
|
9074
|
+
method: post
|
9075
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A34Z&Signature=eqonlwV4n4bKZ%2BzHBCDANmu7mqs%2Fu%2FkUufne8SgqjvM%3D
|
9076
|
+
body:
|
9077
|
+
encoding: US-ASCII
|
9078
|
+
string: ''
|
9079
|
+
headers:
|
9080
|
+
User-Agent:
|
9081
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
9082
|
+
response:
|
9083
|
+
status:
|
9084
|
+
code: 200
|
9085
|
+
message:
|
9086
|
+
headers:
|
9087
|
+
Date:
|
9088
|
+
- Sun, 27 Apr 2014 15:56:34 GMT
|
9089
|
+
Server:
|
9090
|
+
- AmazonMWS
|
9091
|
+
x-mws-request-id:
|
9092
|
+
- 86d0504f-6939-4505-8343-a3f8856df0d8
|
9093
|
+
x-mws-timestamp:
|
9094
|
+
- '2014-04-27T15:56:34.803Z'
|
9095
|
+
x-mws-response-context:
|
9096
|
+
- 24xUAlXSvtBVg/1luFs1BoeGsEiRzFtpirBAO4xc2g8OizlpZ0eV/yppcJi9r/kpysqbC9+qZXFq
|
9097
|
+
W3HtPOQxOQ==
|
9098
|
+
Content-Type:
|
9099
|
+
- text/xml
|
9100
|
+
Content-Length:
|
9101
|
+
- '367'
|
9102
|
+
Vary:
|
9103
|
+
- User-Agent
|
9104
|
+
body:
|
9105
|
+
encoding: UTF-8
|
9106
|
+
string: |
|
9107
|
+
<?xml version="1.0"?>
|
9108
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
9109
|
+
<GetServiceStatusResult>
|
9110
|
+
<Status>GREEN</Status>
|
9111
|
+
<Timestamp>2014-04-27T15:56:34.803Z</Timestamp>
|
9112
|
+
</GetServiceStatusResult>
|
9113
|
+
<ResponseMetadata>
|
9114
|
+
<RequestId>86d0504f-6939-4505-8343-a3f8856df0d8</RequestId>
|
9115
|
+
</ResponseMetadata>
|
9116
|
+
</GetServiceStatusResponse>
|
9117
|
+
http_version:
|
9118
|
+
recorded_at: Sun, 27 Apr 2014 15:56:34 GMT
|
9119
|
+
- request:
|
9120
|
+
method: post
|
9121
|
+
uri: https://mws.amazonservices.com/?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A34Z&Signature=ywmaAa7nqCKIMoAbKcKRXRg2hK3FZwAg9BnccI10XLY%3D
|
9122
|
+
body:
|
9123
|
+
encoding: US-ASCII
|
9124
|
+
string: ''
|
9125
|
+
headers:
|
9126
|
+
User-Agent:
|
9127
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
9128
|
+
response:
|
9129
|
+
status:
|
9130
|
+
code: 200
|
9131
|
+
message:
|
9132
|
+
headers:
|
9133
|
+
Date:
|
9134
|
+
- Sun, 27 Apr 2014 15:56:34 GMT
|
9135
|
+
Server:
|
9136
|
+
- AmazonMWS
|
9137
|
+
x-mws-request-id:
|
9138
|
+
- de8de096-1162-4a3d-ad7d-02b7003b50e2
|
9139
|
+
x-mws-timestamp:
|
9140
|
+
- '2014-04-27T15:56:35.192Z'
|
9141
|
+
x-mws-response-context:
|
9142
|
+
- F8TKGhYUhyk/goHeH8HM144CPCqvq9muNrj69BrpEuf7ysQymN4gUNZDf6WPymK4Bv6eO6sIYcw=
|
9143
|
+
Content-Type:
|
9144
|
+
- text/xml
|
9145
|
+
Content-Length:
|
9146
|
+
- '367'
|
9147
|
+
Vary:
|
9148
|
+
- User-Agent
|
9149
|
+
body:
|
9150
|
+
encoding: UTF-8
|
9151
|
+
string: |
|
9152
|
+
<?xml version="1.0"?>
|
9153
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
9154
|
+
<GetServiceStatusResult>
|
9155
|
+
<Status>GREEN</Status>
|
9156
|
+
<Timestamp>2014-04-27T15:56:35.192Z</Timestamp>
|
9157
|
+
</GetServiceStatusResult>
|
9158
|
+
<ResponseMetadata>
|
9159
|
+
<RequestId>de8de096-1162-4a3d-ad7d-02b7003b50e2</RequestId>
|
9160
|
+
</ResponseMetadata>
|
9161
|
+
</GetServiceStatusResponse>
|
9162
|
+
http_version:
|
9163
|
+
recorded_at: Sun, 27 Apr 2014 15:56:35 GMT
|
9164
|
+
- request:
|
9165
|
+
method: post
|
9166
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI6X4QZRXSHGHABJA&Action=GetServiceStatus&SellerId=A2NEU7G6RGUKF&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A35Z&Signature=9fPfwI51YAF%2FOfJRUT1IZqDTjoAuznzqD3itGV6AaS8%3D
|
9167
|
+
body:
|
9168
|
+
encoding: US-ASCII
|
9169
|
+
string: ''
|
9170
|
+
headers:
|
9171
|
+
User-Agent:
|
9172
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
9173
|
+
response:
|
9174
|
+
status:
|
9175
|
+
code: 200
|
9176
|
+
message:
|
9177
|
+
headers:
|
9178
|
+
Date:
|
9179
|
+
- Sun, 27 Apr 2014 15:56:34 GMT
|
9180
|
+
Server:
|
9181
|
+
- AmazonMWS
|
9182
|
+
x-mws-request-id:
|
9183
|
+
- 25bdcb78-0789-427f-a3cf-9a73adce5a53
|
9184
|
+
x-mws-timestamp:
|
9185
|
+
- '2014-04-27T15:56:35.398Z'
|
9186
|
+
x-mws-response-context:
|
9187
|
+
- KXrTswUv9RNywqgcoULYMiJLRoIWzj6mRe4d7YeslaHuJo5066tzCX2rR/khD7/yLpBaQogom+0Q
|
9188
|
+
4F0y4Jc4Cw==
|
9189
|
+
Content-Type:
|
9190
|
+
- text/xml
|
9191
|
+
Content-Length:
|
9192
|
+
- '367'
|
9193
|
+
Vary:
|
9194
|
+
- User-Agent
|
9195
|
+
body:
|
9196
|
+
encoding: UTF-8
|
9197
|
+
string: |
|
9198
|
+
<?xml version="1.0"?>
|
9199
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
9200
|
+
<GetServiceStatusResult>
|
9201
|
+
<Status>GREEN</Status>
|
9202
|
+
<Timestamp>2014-04-27T15:56:35.398Z</Timestamp>
|
9203
|
+
</GetServiceStatusResult>
|
9204
|
+
<ResponseMetadata>
|
9205
|
+
<RequestId>25bdcb78-0789-427f-a3cf-9a73adce5a53</RequestId>
|
9206
|
+
</ResponseMetadata>
|
9207
|
+
</GetServiceStatusResponse>
|
9208
|
+
http_version:
|
9209
|
+
recorded_at: Sun, 27 Apr 2014 15:56:35 GMT
|
8844
9210
|
recorded_with: VCR 2.9.0
|