peddler 2.1.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -41
- data/lib/mws.rb +2 -1
- data/lib/mws/easy_ship.rb +3 -0
- data/lib/mws/easy_ship/client.rb +93 -0
- data/lib/mws/fulfillment_outbound_shipment/client.rb +1 -1
- data/lib/mws/orders/client.rb +6 -6
- data/lib/mws/shipment_invoicing.rb +3 -0
- data/lib/mws/shipment_invoicing/client.rb +74 -0
- data/lib/peddler/client.rb +11 -10
- data/lib/peddler/content.rb +2 -2
- data/lib/peddler/errors/builder.rb +7 -2
- data/lib/peddler/errors/class_generator.rb +1 -1
- data/lib/peddler/errors/error.rb +6 -2
- data/lib/peddler/errors/parser.rb +1 -1
- data/lib/peddler/flat_file_parser.rb +5 -3
- data/lib/peddler/marketplace.rb +23 -19
- data/lib/peddler/mws.rb +2 -2
- data/lib/peddler/operation.rb +17 -11
- data/lib/peddler/parser.rb +1 -1
- data/lib/peddler/structured_list.rb +1 -1
- data/lib/peddler/vcr_matcher.rb +7 -7
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler/xml_parser.rb +1 -1
- data/lib/peddler/xml_response_parser.rb +1 -1
- metadata +11 -146
- data/lib/mws/off_amazon_payments/client.rb +0 -362
- data/test/credentials.rb +0 -23
- data/test/helper.rb +0 -15
- data/test/integration/internals/test_errors.rb +0 -17
- data/test/integration/internals/test_multibyte_queries.rb +0 -17
- data/test/integration/internals/test_mws_headers.rb +0 -21
- data/test/integration/internals/test_string_encodings.rb +0 -38
- data/test/integration/test_feeds.rb +0 -37
- data/test/integration/test_fulfillment_inbound_shipment.rb +0 -35
- data/test/integration/test_fulfillment_inventory.rb +0 -20
- data/test/integration/test_fulfillment_outbound_shipment.rb +0 -13
- data/test/integration/test_merchant_fulfillment.rb +0 -69
- data/test/integration/test_off_amazon_payments.rb +0 -13
- data/test/integration/test_orders.rb +0 -30
- data/test/integration/test_products.rb +0 -97
- data/test/integration/test_recommendations.rb +0 -20
- data/test/integration/test_reports.rb +0 -51
- data/test/integration/test_sellers.rb +0 -13
- data/test/integration/test_subscriptions.rb +0 -27
- data/test/integration_helper.rb +0 -53
- data/test/mws.yml +0 -36
- data/test/mws.yml.example +0 -32
- data/test/null_client.rb +0 -25
- data/test/recorder.rb +0 -39
- data/test/unit/mws/test_feeds_client.rb +0 -103
- data/test/unit/mws/test_finances_client.rb +0 -74
- data/test/unit/mws/test_fulfillment_inbound_shipment_client.rb +0 -426
- data/test/unit/mws/test_fulfillment_inventory_client.rb +0 -48
- data/test/unit/mws/test_fulfillment_outbound_shipment_client.rb +0 -202
- data/test/unit/mws/test_merchant_fulfillment_client.rb +0 -109
- data/test/unit/mws/test_off_amazon_payments_client.rb +0 -286
- data/test/unit/mws/test_orders_client.rb +0 -111
- data/test/unit/mws/test_products_client.rb +0 -248
- data/test/unit/mws/test_recommendations_client.rb +0 -62
- data/test/unit/mws/test_reports_client.rb +0 -209
- data/test/unit/mws/test_sellers_client.rb +0 -47
- data/test/unit/mws/test_subscriptions_client.rb +0 -182
- data/test/unit/peddler/errors/test_builder.rb +0 -65
- data/test/unit/peddler/errors/test_class_generator.rb +0 -18
- data/test/unit/peddler/errors/test_error.rb +0 -33
- data/test/unit/peddler/errors/test_parser.rb +0 -44
- data/test/unit/peddler/test_client.rb +0 -203
- data/test/unit/peddler/test_flat_file_parser.rb +0 -111
- data/test/unit/peddler/test_headers.rb +0 -103
- data/test/unit/peddler/test_marketplace.rb +0 -47
- data/test/unit/peddler/test_operation.rb +0 -87
- data/test/unit/peddler/test_parser.rb +0 -36
- data/test/unit/peddler/test_structured_list.rb +0 -39
- data/test/unit/peddler/test_vcr_matcher.rb +0 -55
- data/test/unit/peddler/test_xml_parser.rb +0 -37
- data/test/unit/peddler/test_xml_response_parser.rb +0 -39
- data/test/unit/test_mws.rb +0 -11
- data/test/vcr_cassettes/CartInformation.yml +0 -433
- data/test/vcr_cassettes/CustomerInformation.yml +0 -433
- data/test/vcr_cassettes/Errors.yml +0 -444
- data/test/vcr_cassettes/Feeds.yml +0 -9957
- data/test/vcr_cassettes/FulfillmentInboundShipment.yml +0 -6166
- data/test/vcr_cassettes/FulfillmentInventory.yml +0 -850
- data/test/vcr_cassettes/FulfillmentOutboundShipment.yml +0 -433
- data/test/vcr_cassettes/MWSHeaders.yml +0 -2964
- data/test/vcr_cassettes/MerchantFulfillment.yml +0 -753
- data/test/vcr_cassettes/MultibyteQueries.yml +0 -437
- data/test/vcr_cassettes/OffAmazonPayments.yml +0 -433
- data/test/vcr_cassettes/Orders.yml +0 -4740
- data/test/vcr_cassettes/PeddlerVCRMatcher.yml +0 -41
- data/test/vcr_cassettes/Products.yml +0 -7139
- data/test/vcr_cassettes/Recommendations.yml +0 -3145
- data/test/vcr_cassettes/Reports.yml +0 -5549
- data/test/vcr_cassettes/Sellers.yml +0 -433
- data/test/vcr_cassettes/Subscriptions.yml +0 -1529
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'helper'
|
4
|
-
require 'peddler/xml_parser'
|
5
|
-
|
6
|
-
class TestPeddlerXMLParser < MiniTest::Test
|
7
|
-
Parser = Class.new(::Peddler::XMLParser)
|
8
|
-
|
9
|
-
def setup
|
10
|
-
body = '<Foo>Bar</Foo>'
|
11
|
-
|
12
|
-
res = OpenStruct.new(
|
13
|
-
body: body,
|
14
|
-
headers: {
|
15
|
-
'Content-Type' => 'text/xml',
|
16
|
-
'Content-Length' => body.size.to_s
|
17
|
-
}
|
18
|
-
)
|
19
|
-
|
20
|
-
@parser = Parser.new(res)
|
21
|
-
end
|
22
|
-
|
23
|
-
def test_that_it_does_not_implement_parsing
|
24
|
-
assert_raises(NotImplementedError) do
|
25
|
-
@parser.parse
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def test_digging_data
|
30
|
-
@parser.instance_variable_set :@data, foo: { bar: :baz }
|
31
|
-
assert_equal :baz, @parser.dig(:foo, :bar)
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_validation
|
35
|
-
assert @parser.valid?
|
36
|
-
end
|
37
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'helper'
|
4
|
-
require 'peddler/xml_response_parser'
|
5
|
-
|
6
|
-
class TestPeddlerXMLResponseParser < MiniTest::Test
|
7
|
-
def test_parsing_responses
|
8
|
-
body = '<Response><Result><Foo>Bar</Foo></Result></Response>'
|
9
|
-
parser = Peddler::XMLResponseParser.new(response(body))
|
10
|
-
assert_equal 'Bar', parser.parse['Foo']
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_parsing_messages
|
14
|
-
body = '<Response><MessageType>ProcessingReport</MessageType><Message><Foo>Bar</Foo></Message></Response>'
|
15
|
-
parser = Peddler::XMLResponseParser.new(response(body))
|
16
|
-
assert_equal 'Bar', parser.parse['Foo']
|
17
|
-
end
|
18
|
-
|
19
|
-
def test_parsing_reports
|
20
|
-
body = '<fooReports><fooReport><foo>Bar</foo></fooReport></fooReports>'
|
21
|
-
parser = Peddler::XMLResponseParser.new(response(body))
|
22
|
-
assert_equal 'Bar', parser.parse['foo']
|
23
|
-
end
|
24
|
-
|
25
|
-
def test_parsing_next_token
|
26
|
-
body = '<Response><Result><NextToken>123</NextToken></Result></Response>'
|
27
|
-
parser = Peddler::XMLResponseParser.new(response(body))
|
28
|
-
assert_equal '123', parser.next_token
|
29
|
-
end
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
def response(body)
|
34
|
-
OpenStruct.new(
|
35
|
-
body: body,
|
36
|
-
headers: { 'Content-Type' => 'text/xml', 'Content-Length' => body.size }
|
37
|
-
)
|
38
|
-
end
|
39
|
-
end
|
data/test/unit/test_mws.rb
DELETED
@@ -1,433 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://mws.amazonservices.com/CartInformation/2014-03-01
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-03-28T18%3A10%3A17Z&Version=2014-03-01&Signature=Ld91dAS8OXCk9NNcjb9d4AyEerTSfVMGDAdp7EHmCWU%3D
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
Date:
|
18
|
-
- Sat, 28 Mar 2015 18:10:17 GMT
|
19
|
-
Server:
|
20
|
-
- AmazonMWS
|
21
|
-
x-mws-request-id:
|
22
|
-
- 2b0de813-3f60-4491-bb6e-d0cf3357bfe4
|
23
|
-
x-mws-timestamp:
|
24
|
-
- '2015-03-28T18:10:18.164Z'
|
25
|
-
x-mws-response-context:
|
26
|
-
- Sgo7Qu5KPylVVwRH0loOhcAbqyPXY6cN43HTQxjoxNqowhI23+bF1yTDq0vJYpA2TVU6c+7302Q=
|
27
|
-
Content-Type:
|
28
|
-
- text/xml
|
29
|
-
Content-Length:
|
30
|
-
- '390'
|
31
|
-
Vary:
|
32
|
-
- User-Agent
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: |
|
36
|
-
<?xml version="1.0"?>
|
37
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
38
|
-
<GetServiceStatusResult>
|
39
|
-
<Status>GREEN</Status>
|
40
|
-
<Timestamp>2015-03-28T18:10:18.164Z</Timestamp>
|
41
|
-
</GetServiceStatusResult>
|
42
|
-
<ResponseMetadata>
|
43
|
-
<RequestId>2b0de813-3f60-4491-bb6e-d0cf3357bfe4</RequestId>
|
44
|
-
</ResponseMetadata>
|
45
|
-
</GetServiceStatusResponse>
|
46
|
-
http_version:
|
47
|
-
recorded_at: Sat, 28 Mar 2015 18:10:18 GMT
|
48
|
-
- request:
|
49
|
-
method: post
|
50
|
-
uri: https://mws-eu.amazonservices.com/CartInformation/2014-03-01
|
51
|
-
body:
|
52
|
-
encoding: US-ASCII
|
53
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-03-28T18%3A10%3A18Z&Version=2014-03-01&Signature=d4vyZzrPNWdYbhXs5L01DT%2FoERrRfTDWHwyAlSpZb0I%3D
|
54
|
-
headers:
|
55
|
-
User-Agent:
|
56
|
-
- Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
|
57
|
-
response:
|
58
|
-
status:
|
59
|
-
code: 200
|
60
|
-
message:
|
61
|
-
headers:
|
62
|
-
Date:
|
63
|
-
- Sat, 28 Mar 2015 18:10:18 GMT
|
64
|
-
Server:
|
65
|
-
- AmazonMWS
|
66
|
-
x-mws-request-id:
|
67
|
-
- 9e731e3c-39f8-48b0-a373-5b959922cb09
|
68
|
-
x-mws-timestamp:
|
69
|
-
- '2015-03-28T18:10:18.789Z'
|
70
|
-
x-mws-response-context:
|
71
|
-
- gf59f8nbRksTQCY+caSLf/SG/f3UptxVDpyWXuBIUAZDgB3z/xHjAL5/8d9R2sG0RuHwp+cmNaM=
|
72
|
-
Content-Type:
|
73
|
-
- text/xml
|
74
|
-
Content-Length:
|
75
|
-
- '390'
|
76
|
-
Vary:
|
77
|
-
- User-Agent
|
78
|
-
body:
|
79
|
-
encoding: UTF-8
|
80
|
-
string: |
|
81
|
-
<?xml version="1.0"?>
|
82
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
83
|
-
<GetServiceStatusResult>
|
84
|
-
<Status>GREEN</Status>
|
85
|
-
<Timestamp>2015-03-28T18:10:18.789Z</Timestamp>
|
86
|
-
</GetServiceStatusResult>
|
87
|
-
<ResponseMetadata>
|
88
|
-
<RequestId>9e731e3c-39f8-48b0-a373-5b959922cb09</RequestId>
|
89
|
-
</ResponseMetadata>
|
90
|
-
</GetServiceStatusResponse>
|
91
|
-
http_version:
|
92
|
-
recorded_at: Sat, 28 Mar 2015 18:10:18 GMT
|
93
|
-
- request:
|
94
|
-
method: post
|
95
|
-
uri: https://mws.amazonservices.jp/CartInformation/2014-03-01
|
96
|
-
body:
|
97
|
-
encoding: US-ASCII
|
98
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-03-28T18%3A10%3A18Z&Version=2014-03-01&Signature=SAtKF%2FgZvRKDqsTqHPIsaSkE4xSeqa9jroOreysDc1I%3D
|
99
|
-
headers:
|
100
|
-
User-Agent:
|
101
|
-
- Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
|
102
|
-
response:
|
103
|
-
status:
|
104
|
-
code: 200
|
105
|
-
message:
|
106
|
-
headers:
|
107
|
-
Date:
|
108
|
-
- Sat, 28 Mar 2015 18:10:19 GMT
|
109
|
-
Server:
|
110
|
-
- AmazonMWS
|
111
|
-
x-mws-request-id:
|
112
|
-
- f3fb4bf0-5591-4e61-a7d8-f6a94b253f76
|
113
|
-
x-mws-timestamp:
|
114
|
-
- '2015-03-28T18:10:19.943Z'
|
115
|
-
x-mws-response-context:
|
116
|
-
- o+6g5g3je0wF4ylzv9sE1H71774gad059qXnVpCCZTzi+9LNoRxVtz4r2IKlrDySwAC3X0/Xk3I=
|
117
|
-
Content-Type:
|
118
|
-
- text/xml
|
119
|
-
Content-Length:
|
120
|
-
- '390'
|
121
|
-
Vary:
|
122
|
-
- User-Agent
|
123
|
-
body:
|
124
|
-
encoding: UTF-8
|
125
|
-
string: |
|
126
|
-
<?xml version="1.0"?>
|
127
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
128
|
-
<GetServiceStatusResult>
|
129
|
-
<Status>GREEN</Status>
|
130
|
-
<Timestamp>2015-03-28T18:10:19.943Z</Timestamp>
|
131
|
-
</GetServiceStatusResult>
|
132
|
-
<ResponseMetadata>
|
133
|
-
<RequestId>f3fb4bf0-5591-4e61-a7d8-f6a94b253f76</RequestId>
|
134
|
-
</ResponseMetadata>
|
135
|
-
</GetServiceStatusResponse>
|
136
|
-
http_version:
|
137
|
-
recorded_at: Sat, 28 Mar 2015 18:10:20 GMT
|
138
|
-
- request:
|
139
|
-
method: post
|
140
|
-
uri: https://mws.amazonservices.com/CartInformation/2014-03-01
|
141
|
-
body:
|
142
|
-
encoding: US-ASCII
|
143
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-03-28T18%3A10%3A20Z&Version=2014-03-01&Signature=W7G0kqHOMU91l%2B731hPIwjZbuNfk%2FuUZh4yEKkcuZKE%3D
|
144
|
-
headers:
|
145
|
-
User-Agent:
|
146
|
-
- Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
|
147
|
-
response:
|
148
|
-
status:
|
149
|
-
code: 200
|
150
|
-
message:
|
151
|
-
headers:
|
152
|
-
Date:
|
153
|
-
- Sat, 28 Mar 2015 18:10:20 GMT
|
154
|
-
Server:
|
155
|
-
- AmazonMWS
|
156
|
-
x-mws-request-id:
|
157
|
-
- 807199e2-f19d-4533-b665-99a61c0a5c71
|
158
|
-
x-mws-timestamp:
|
159
|
-
- '2015-03-28T18:10:20.828Z'
|
160
|
-
x-mws-response-context:
|
161
|
-
- Lh6MgnORymISTEIkBSTw4s+TO0r0IE43+oryvY9L0GzS4U3kSocWQPx3CjnLV664sQXUxN8wblg=
|
162
|
-
Content-Type:
|
163
|
-
- text/xml
|
164
|
-
Content-Length:
|
165
|
-
- '390'
|
166
|
-
Vary:
|
167
|
-
- User-Agent
|
168
|
-
body:
|
169
|
-
encoding: UTF-8
|
170
|
-
string: |
|
171
|
-
<?xml version="1.0"?>
|
172
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
173
|
-
<GetServiceStatusResult>
|
174
|
-
<Status>GREEN</Status>
|
175
|
-
<Timestamp>2015-03-28T18:10:20.828Z</Timestamp>
|
176
|
-
</GetServiceStatusResult>
|
177
|
-
<ResponseMetadata>
|
178
|
-
<RequestId>807199e2-f19d-4533-b665-99a61c0a5c71</RequestId>
|
179
|
-
</ResponseMetadata>
|
180
|
-
</GetServiceStatusResponse>
|
181
|
-
http_version:
|
182
|
-
recorded_at: Sat, 28 Mar 2015 18:10:20 GMT
|
183
|
-
- request:
|
184
|
-
method: post
|
185
|
-
uri: https://mws.amazonservices.com/CartInformation/2014-03-01
|
186
|
-
body:
|
187
|
-
encoding: UTF-8
|
188
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A36%3A40Z&Version=2014-03-01&Signature=Tk7nFqDn9DB4%2B9%2FiJRdY6NZXW2PFdxWSmMcNOFpUWTg%3D
|
189
|
-
headers:
|
190
|
-
User-Agent:
|
191
|
-
- Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
|
192
|
-
Content-Type:
|
193
|
-
- application/x-www-form-urlencoded
|
194
|
-
response:
|
195
|
-
status:
|
196
|
-
code: 200
|
197
|
-
message:
|
198
|
-
headers:
|
199
|
-
Server:
|
200
|
-
- Server
|
201
|
-
Date:
|
202
|
-
- Mon, 23 May 2016 12:36:41 GMT
|
203
|
-
Content-Type:
|
204
|
-
- text/xml
|
205
|
-
Content-Length:
|
206
|
-
- '390'
|
207
|
-
Connection:
|
208
|
-
- keep-alive
|
209
|
-
x-mws-request-id:
|
210
|
-
- 1e53fdfa-44dd-4f91-8214-8e6085535bea
|
211
|
-
x-mws-timestamp:
|
212
|
-
- '2016-05-23T12:36:41.794Z'
|
213
|
-
x-mws-response-context:
|
214
|
-
- SUihqf278+y8dorMLGDSVVbL73Lhz1fit9cL03c+s7dsm2TIPnMKjRmgQHJIsPWHp27/K4t5LgRm
|
215
|
-
pfN2YF6+kw==
|
216
|
-
Vary:
|
217
|
-
- Accept-Encoding,User-Agent
|
218
|
-
body:
|
219
|
-
encoding: UTF-8
|
220
|
-
string: |
|
221
|
-
<?xml version="1.0"?>
|
222
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
223
|
-
<GetServiceStatusResult>
|
224
|
-
<Status>GREEN</Status>
|
225
|
-
<Timestamp>2016-05-23T12:36:41.794Z</Timestamp>
|
226
|
-
</GetServiceStatusResult>
|
227
|
-
<ResponseMetadata>
|
228
|
-
<RequestId>1e53fdfa-44dd-4f91-8214-8e6085535bea</RequestId>
|
229
|
-
</ResponseMetadata>
|
230
|
-
</GetServiceStatusResponse>
|
231
|
-
http_version:
|
232
|
-
recorded_at: Mon, 23 May 2016 12:36:42 GMT
|
233
|
-
- request:
|
234
|
-
method: post
|
235
|
-
uri: https://mws-eu.amazonservices.com/CartInformation/2014-03-01
|
236
|
-
body:
|
237
|
-
encoding: UTF-8
|
238
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A36%3A42Z&Version=2014-03-01&Signature=zN1E2KOQnB1%2BhCW13NFgfM8%2BzJ124zPIm20B%2BVjDdqY%3D
|
239
|
-
headers:
|
240
|
-
User-Agent:
|
241
|
-
- Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
|
242
|
-
Content-Type:
|
243
|
-
- application/x-www-form-urlencoded
|
244
|
-
response:
|
245
|
-
status:
|
246
|
-
code: 200
|
247
|
-
message:
|
248
|
-
headers:
|
249
|
-
Server:
|
250
|
-
- Server
|
251
|
-
Date:
|
252
|
-
- Mon, 23 May 2016 12:36:42 GMT
|
253
|
-
Content-Type:
|
254
|
-
- text/xml
|
255
|
-
Content-Length:
|
256
|
-
- '390'
|
257
|
-
Connection:
|
258
|
-
- keep-alive
|
259
|
-
x-mws-request-id:
|
260
|
-
- 671668a3-b3d4-4def-85a7-e8e3f3d99232
|
261
|
-
x-mws-timestamp:
|
262
|
-
- '2016-05-23T12:36:42.414Z'
|
263
|
-
x-mws-response-context:
|
264
|
-
- 5lTaA+R8yZ7ZZi75XyyEAHDhtgOieOaNPux2grukj1NGCpoqD4sW9mSooaOdNbKk33JzKjgWHL04
|
265
|
-
1ZxBnYTmYQ==
|
266
|
-
Vary:
|
267
|
-
- Accept-Encoding,User-Agent
|
268
|
-
body:
|
269
|
-
encoding: UTF-8
|
270
|
-
string: |
|
271
|
-
<?xml version="1.0"?>
|
272
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
273
|
-
<GetServiceStatusResult>
|
274
|
-
<Status>GREEN</Status>
|
275
|
-
<Timestamp>2016-05-23T12:36:42.414Z</Timestamp>
|
276
|
-
</GetServiceStatusResult>
|
277
|
-
<ResponseMetadata>
|
278
|
-
<RequestId>671668a3-b3d4-4def-85a7-e8e3f3d99232</RequestId>
|
279
|
-
</ResponseMetadata>
|
280
|
-
</GetServiceStatusResponse>
|
281
|
-
http_version:
|
282
|
-
recorded_at: Mon, 23 May 2016 12:36:42 GMT
|
283
|
-
- request:
|
284
|
-
method: post
|
285
|
-
uri: https://mws-eu.amazonservices.com/CartInformation/2014-03-01
|
286
|
-
body:
|
287
|
-
encoding: UTF-8
|
288
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A36%3A42Z&Version=2014-03-01&Signature=n%2FyWxKdk1zAyN4WMU%2BzjWlf9I1B69JYVDJh2JpL5uTo%3D
|
289
|
-
headers:
|
290
|
-
User-Agent:
|
291
|
-
- Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
|
292
|
-
Content-Type:
|
293
|
-
- application/x-www-form-urlencoded
|
294
|
-
response:
|
295
|
-
status:
|
296
|
-
code: 200
|
297
|
-
message:
|
298
|
-
headers:
|
299
|
-
Server:
|
300
|
-
- Server
|
301
|
-
Date:
|
302
|
-
- Mon, 23 May 2016 12:36:42 GMT
|
303
|
-
Content-Type:
|
304
|
-
- text/xml
|
305
|
-
Content-Length:
|
306
|
-
- '390'
|
307
|
-
Connection:
|
308
|
-
- keep-alive
|
309
|
-
x-mws-request-id:
|
310
|
-
- 7ab21300-bef4-4b82-b07c-047b2b3df6b0
|
311
|
-
x-mws-timestamp:
|
312
|
-
- '2016-05-23T12:36:42.767Z'
|
313
|
-
x-mws-response-context:
|
314
|
-
- j2hhCArf+5eJ5TDCBKz5by7w9P6My7gvAgSb3DpWacOVw+7DMtMFoVun8fde2u8KvWd0aTy5CN9b
|
315
|
-
o9HakS7/Aw==
|
316
|
-
Vary:
|
317
|
-
- Accept-Encoding,User-Agent
|
318
|
-
body:
|
319
|
-
encoding: UTF-8
|
320
|
-
string: |
|
321
|
-
<?xml version="1.0"?>
|
322
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
323
|
-
<GetServiceStatusResult>
|
324
|
-
<Status>GREEN</Status>
|
325
|
-
<Timestamp>2016-05-23T12:36:42.767Z</Timestamp>
|
326
|
-
</GetServiceStatusResult>
|
327
|
-
<ResponseMetadata>
|
328
|
-
<RequestId>7ab21300-bef4-4b82-b07c-047b2b3df6b0</RequestId>
|
329
|
-
</ResponseMetadata>
|
330
|
-
</GetServiceStatusResponse>
|
331
|
-
http_version:
|
332
|
-
recorded_at: Mon, 23 May 2016 12:36:42 GMT
|
333
|
-
- request:
|
334
|
-
method: post
|
335
|
-
uri: https://mws-eu.amazonservices.com/CartInformation/2014-03-01
|
336
|
-
body:
|
337
|
-
encoding: UTF-8
|
338
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A36%3A42Z&Version=2014-03-01&Signature=AY%2BsyBHSpK5JJWP5oXnho3Rf7jYJ30pGmvlGaAUnfzs%3D
|
339
|
-
headers:
|
340
|
-
User-Agent:
|
341
|
-
- Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
|
342
|
-
Content-Type:
|
343
|
-
- application/x-www-form-urlencoded
|
344
|
-
response:
|
345
|
-
status:
|
346
|
-
code: 200
|
347
|
-
message:
|
348
|
-
headers:
|
349
|
-
Server:
|
350
|
-
- Server
|
351
|
-
Date:
|
352
|
-
- Mon, 23 May 2016 12:36:43 GMT
|
353
|
-
Content-Type:
|
354
|
-
- text/xml
|
355
|
-
Content-Length:
|
356
|
-
- '390'
|
357
|
-
Connection:
|
358
|
-
- keep-alive
|
359
|
-
x-mws-request-id:
|
360
|
-
- c12a82b6-f24f-4240-b360-a26e9c603a23
|
361
|
-
x-mws-timestamp:
|
362
|
-
- '2016-05-23T12:36:43.014Z'
|
363
|
-
x-mws-response-context:
|
364
|
-
- guaf7EL+GSeps4Bj6DNHNt5hNDzO182XVmOgyin9YbVzyyH/VRE6S2CDvXM0DKbdjYHLP023SAvJ
|
365
|
-
mbyqZJEpmg==
|
366
|
-
Vary:
|
367
|
-
- Accept-Encoding,User-Agent
|
368
|
-
body:
|
369
|
-
encoding: UTF-8
|
370
|
-
string: |
|
371
|
-
<?xml version="1.0"?>
|
372
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
373
|
-
<GetServiceStatusResult>
|
374
|
-
<Status>GREEN</Status>
|
375
|
-
<Timestamp>2016-05-23T12:36:43.014Z</Timestamp>
|
376
|
-
</GetServiceStatusResult>
|
377
|
-
<ResponseMetadata>
|
378
|
-
<RequestId>c12a82b6-f24f-4240-b360-a26e9c603a23</RequestId>
|
379
|
-
</ResponseMetadata>
|
380
|
-
</GetServiceStatusResponse>
|
381
|
-
http_version:
|
382
|
-
recorded_at: Mon, 23 May 2016 12:36:43 GMT
|
383
|
-
- request:
|
384
|
-
method: post
|
385
|
-
uri: https://mws-eu.amazonservices.com/CartInformation/2014-03-01
|
386
|
-
body:
|
387
|
-
encoding: UTF-8
|
388
|
-
string: AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-05-23T12%3A36%3A43Z&Version=2014-03-01&Signature=7rJDI43OadISwA6AfpHAR6jCvV3ncXcRmU%2B%2BDHziIlY%3D
|
389
|
-
headers:
|
390
|
-
User-Agent:
|
391
|
-
- Jeff/1.5.1 (Language=Ruby; Hakans-MacBook.home)
|
392
|
-
Content-Type:
|
393
|
-
- application/x-www-form-urlencoded
|
394
|
-
response:
|
395
|
-
status:
|
396
|
-
code: 200
|
397
|
-
message:
|
398
|
-
headers:
|
399
|
-
Server:
|
400
|
-
- Server
|
401
|
-
Date:
|
402
|
-
- Mon, 23 May 2016 12:36:43 GMT
|
403
|
-
Content-Type:
|
404
|
-
- text/xml
|
405
|
-
Content-Length:
|
406
|
-
- '390'
|
407
|
-
Connection:
|
408
|
-
- keep-alive
|
409
|
-
x-mws-request-id:
|
410
|
-
- be5be3f9-2d71-4e62-9705-b7b7a14c25e4
|
411
|
-
x-mws-timestamp:
|
412
|
-
- '2016-05-23T12:36:43.257Z'
|
413
|
-
x-mws-response-context:
|
414
|
-
- bT8J9hjEoSE7fqR9BQBhF71qa9UPsRxl2nna3ugOqn8YhPe7pKNF1l5oVr2y/PrrlvWl1Vt9SJa+
|
415
|
-
JYVw8HyVkA==
|
416
|
-
Vary:
|
417
|
-
- Accept-Encoding,User-Agent
|
418
|
-
body:
|
419
|
-
encoding: UTF-8
|
420
|
-
string: |
|
421
|
-
<?xml version="1.0"?>
|
422
|
-
<GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
|
423
|
-
<GetServiceStatusResult>
|
424
|
-
<Status>GREEN</Status>
|
425
|
-
<Timestamp>2016-05-23T12:36:43.257Z</Timestamp>
|
426
|
-
</GetServiceStatusResult>
|
427
|
-
<ResponseMetadata>
|
428
|
-
<RequestId>be5be3f9-2d71-4e62-9705-b7b7a14c25e4</RequestId>
|
429
|
-
</ResponseMetadata>
|
430
|
-
</GetServiceStatusResponse>
|
431
|
-
http_version:
|
432
|
-
recorded_at: Mon, 23 May 2016 12:36:43 GMT
|
433
|
-
recorded_with: VCR 3.0.1
|