peddler 1.3.0 → 1.4.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 +8 -22
- data/lib/mws/fulfillment_outbound_shipment/client.rb +12 -5
- data/lib/mws/merchant_fulfillment/client.rb +2 -2
- data/lib/mws/orders/client.rb +9 -1
- data/lib/mws/products/client.rb +14 -1
- data/lib/mws/reports/client.rb +1 -1
- data/lib/mws.rb +0 -3
- data/lib/peddler/client.rb +12 -19
- data/lib/peddler/errors/builder.rb +20 -0
- data/lib/peddler/errors/error.rb +13 -0
- data/lib/peddler/errors/handler.rb +45 -0
- data/lib/peddler/errors/parser.rb +28 -0
- data/lib/peddler/flat_file_parser.rb +1 -1
- data/lib/peddler/marketplace.rb +2 -2
- data/lib/peddler/parser.rb +0 -1
- data/lib/peddler/structured_list.rb +1 -0
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler/xml_parser.rb +1 -1
- data/test/helper.rb +1 -82
- data/test/integration/test_errors.rb +36 -0
- data/test/integration/test_feeds.rb +1 -1
- data/test/integration/test_fulfillment_inbound_shipment.rb +1 -1
- data/test/integration/test_fulfillment_inventory.rb +1 -1
- data/test/integration/test_fulfillment_outbound_shipment.rb +1 -1
- data/test/integration/test_merchant_fulfillment.rb +1 -1
- data/test/integration/test_off_amazon_payments.rb +1 -1
- data/test/integration/test_orders.rb +3 -1
- data/test/integration/test_products.rb +1 -1
- data/test/integration/test_recommendations.rb +2 -4
- data/test/integration/test_reports.rb +1 -1
- data/test/integration/test_sellers.rb +1 -1
- data/test/integration/test_subscriptions.rb +1 -1
- data/test/integration_helper.rb +41 -0
- data/test/mws.yml +28 -8
- data/test/mws.yml.example +21 -1
- data/test/recorder.rb +34 -0
- data/test/unit/mws/test_fulfillment_inbound_shipment_client.rb +2 -1
- data/test/unit/mws/test_fulfillment_outbound_shipment_client.rb +9 -2
- data/test/unit/mws/test_orders_client.rb +12 -0
- data/test/unit/mws/test_products_client.rb +37 -0
- data/test/unit/peddler/errors/test_builder.rb +16 -0
- data/test/unit/peddler/errors/test_error.rb +16 -0
- data/test/unit/peddler/errors/test_handler.rb +60 -0
- data/test/unit/peddler/{test_error_parser.rb → errors/test_parser.rb} +3 -3
- data/test/unit/peddler/test_client.rb +3 -3
- data/test/unit/peddler/test_flat_file_parser.rb +39 -30
- data/test/unit/peddler/test_structured_list.rb +5 -0
- data/test/unit/peddler/test_vcr_matcher.rb +4 -0
- data/test/unit/test_mws.rb +1 -1
- data/test/vcr_cassettes/CartInformation.yml +263 -13
- data/test/vcr_cassettes/CustomerInformation.yml +255 -5
- data/test/vcr_cassettes/Errors.yml +885 -0
- data/test/vcr_cassettes/Feeds.yml +5588 -17
- data/test/vcr_cassettes/FulfillmentInboundShipment.yml +3474 -39
- data/test/vcr_cassettes/FulfillmentInventory.yml +504 -9
- data/test/vcr_cassettes/FulfillmentOutboundShipment.yml +255 -5
- data/test/vcr_cassettes/MerchantFulfillment.yml +254 -4
- data/test/vcr_cassettes/OffAmazonPayments.yml +255 -5
- data/test/vcr_cassettes/Orders.yml +2696 -36
- data/test/vcr_cassettes/Products.yml +5534 -180
- data/test/vcr_cassettes/Recommendations.yml +847 -9
- data/test/vcr_cassettes/Reports.yml +3994 -101
- data/test/vcr_cassettes/Sellers.yml +255 -5
- data/test/vcr_cassettes/Subscriptions.yml +875 -13
- metadata +37 -27
- data/lib/mws/cart_information/client.rb +0 -74
- data/lib/mws/cart_information.rb +0 -1
- data/lib/mws/customer_information/client.rb +0 -80
- data/lib/mws/customer_information.rb +0 -1
- data/lib/mws/webstore/client.rb +0 -89
- data/lib/mws/webstore.rb +0 -1
- data/lib/peddler/error_parser.rb +0 -26
- data/test/integration/test_cart_information.rb +0 -11
- data/test/integration/test_customer_information.rb +0 -11
- data/test/integration/test_webstore.rb +0 -18
- data/test/unit/mws/test_cart_information_client.rb +0 -61
- data/test/unit/mws/test_customer_information_client.rb +0 -59
- data/test/unit/mws/test_webstore_client.rb +0 -101
- data/test/vcr_cassettes/Webstore.yml +0 -383
@@ -1,101 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
require 'mws/webstore/client'
|
3
|
-
|
4
|
-
class TestMWSWebstoreClient < MiniTest::Test
|
5
|
-
def setup
|
6
|
-
@client = MWS::Webstore::Client.new
|
7
|
-
end
|
8
|
-
|
9
|
-
def test_lists_subscriptions_count
|
10
|
-
@client.primary_marketplace_id = '123'
|
11
|
-
operation = {
|
12
|
-
'Action' => 'ListSubscriptionsCount',
|
13
|
-
'MarketplaceId' => '123',
|
14
|
-
'SubscriptionState' => '1',
|
15
|
-
'SellerSKUList.SellerSKU.1' => '1'
|
16
|
-
}
|
17
|
-
|
18
|
-
@client.stub(:run, nil) do
|
19
|
-
@client.list_subscriptions_count('1', seller_sku_list: ['1'])
|
20
|
-
end
|
21
|
-
|
22
|
-
assert_equal operation, @client.operation
|
23
|
-
end
|
24
|
-
|
25
|
-
def test_lists_subscriptions_count_with_alternate_marketplace
|
26
|
-
operation = {
|
27
|
-
'Action' => 'ListSubscriptionsCount',
|
28
|
-
'MarketplaceId' => '321',
|
29
|
-
'SubscriptionState' => '1',
|
30
|
-
'SellerSKUList.SellerSKU.1' => '1'
|
31
|
-
}
|
32
|
-
|
33
|
-
@client.stub(:run, nil) do
|
34
|
-
@client.list_subscriptions_count(
|
35
|
-
'1',
|
36
|
-
seller_sku_list: ['1'],
|
37
|
-
marketplace_id: '321'
|
38
|
-
)
|
39
|
-
end
|
40
|
-
|
41
|
-
assert_equal operation, @client.operation
|
42
|
-
end
|
43
|
-
|
44
|
-
def test_lists_subscriptions_count_by_next_token
|
45
|
-
operation = {
|
46
|
-
'Action' => 'ListSubscriptionsCountByNextToken',
|
47
|
-
'NextToken' => '1'
|
48
|
-
}
|
49
|
-
|
50
|
-
@client.stub(:run, nil) do
|
51
|
-
@client.list_subscriptions_count_by_next_token('1')
|
52
|
-
end
|
53
|
-
|
54
|
-
assert_equal operation, @client.operation
|
55
|
-
end
|
56
|
-
|
57
|
-
def test_get_subscriptions_details
|
58
|
-
@client.primary_marketplace_id = '123'
|
59
|
-
operation = {
|
60
|
-
'Action' => 'GetSubscriptionDetails',
|
61
|
-
'MarketplaceId' => '123',
|
62
|
-
'SellerSKU' => '1',
|
63
|
-
'SubscriptionState' => '2',
|
64
|
-
'DateRangeStart' => '3'
|
65
|
-
}
|
66
|
-
|
67
|
-
@client.stub(:run, nil) do
|
68
|
-
@client.get_subscription_details('1', '2', '3')
|
69
|
-
end
|
70
|
-
|
71
|
-
assert_equal operation, @client.operation
|
72
|
-
end
|
73
|
-
|
74
|
-
def test_get_subscriptions_details_with_alternate_marketplace
|
75
|
-
operation = {
|
76
|
-
'Action' => 'GetSubscriptionDetails',
|
77
|
-
'MarketplaceId' => '321',
|
78
|
-
'SellerSKU' => '1',
|
79
|
-
'SubscriptionState' => '2',
|
80
|
-
'DateRangeStart' => '3'
|
81
|
-
}
|
82
|
-
|
83
|
-
@client.stub(:run, nil) do
|
84
|
-
@client.get_subscription_details('1', '2', '3', marketplace_id: '321')
|
85
|
-
end
|
86
|
-
|
87
|
-
assert_equal operation, @client.operation
|
88
|
-
end
|
89
|
-
|
90
|
-
def test_gets_service_status
|
91
|
-
operation = {
|
92
|
-
'Action' => 'GetServiceStatus'
|
93
|
-
}
|
94
|
-
|
95
|
-
@client.stub(:run, nil) do
|
96
|
-
@client.get_service_status
|
97
|
-
end
|
98
|
-
|
99
|
-
assert_equal operation, @client.operation
|
100
|
-
end
|
101
|
-
end
|
@@ -1,383 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://mws.amazonservices.ca/Webstore/2014-09-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%3A15%3A04Z&Version=2014-09-01&Signature=iLmOdGnbfW0kE%2Bf9K0XPpoEHVfi78I3hTpFIpKoMpeg%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:15:04 GMT
|
19
|
-
Server:
|
20
|
-
- AmazonMWS
|
21
|
-
x-mws-request-id:
|
22
|
-
- 7ec1c8ed-ea0d-4cf6-a7e9-12ede5468924
|
23
|
-
x-mws-timestamp:
|
24
|
-
- '2015-03-28T18:15:04.938Z'
|
25
|
-
x-mws-response-context:
|
26
|
-
- Azql3Rd9RSuycILcauW2gXRnXHlD5BFO9mBsMSSqjmDq1NvYEowXek6Jw5Mf6u8EqzZ7hBxJQQ8=
|
27
|
-
Content-Type:
|
28
|
-
- text/xml
|
29
|
-
Content-Length:
|
30
|
-
- '376'
|
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/webstore/2014-09-01">
|
38
|
-
<GetServiceStatusResult>
|
39
|
-
<Status>GREEN</Status>
|
40
|
-
<Timestamp>2015-03-28T18:15:04.938Z</Timestamp>
|
41
|
-
</GetServiceStatusResult>
|
42
|
-
<ResponseMetadata>
|
43
|
-
<RequestId>7ec1c8ed-ea0d-4cf6-a7e9-12ede5468924</RequestId>
|
44
|
-
</ResponseMetadata>
|
45
|
-
</GetServiceStatusResponse>
|
46
|
-
http_version:
|
47
|
-
recorded_at: Sat, 28 Mar 2015 18:15:05 GMT
|
48
|
-
- request:
|
49
|
-
method: post
|
50
|
-
uri: https://mws-eu.amazonservices.com/Webstore/2014-09-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%3A15%3A05Z&Version=2014-09-01&Signature=IBFNdtHOt6vsBcHsKZYyyD%2FezntQzCRaJTKTXLkJGKw%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:15:05 GMT
|
64
|
-
Server:
|
65
|
-
- AmazonMWS
|
66
|
-
x-mws-request-id:
|
67
|
-
- 4d8ea1c4-06e4-4262-9b5e-b38cb4fa988e
|
68
|
-
x-mws-timestamp:
|
69
|
-
- '2015-03-28T18:15:05.579Z'
|
70
|
-
x-mws-response-context:
|
71
|
-
- mddgIVXfH8b+kAQfyfWkmPWBxE/KiMBsEyLoVsly+9lwrcS+xnvL5BMeTMsTifN1WUD9f3x7Oqk=
|
72
|
-
Content-Type:
|
73
|
-
- text/xml
|
74
|
-
Content-Length:
|
75
|
-
- '376'
|
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/webstore/2014-09-01">
|
83
|
-
<GetServiceStatusResult>
|
84
|
-
<Status>GREEN</Status>
|
85
|
-
<Timestamp>2015-03-28T18:15:05.579Z</Timestamp>
|
86
|
-
</GetServiceStatusResult>
|
87
|
-
<ResponseMetadata>
|
88
|
-
<RequestId>4d8ea1c4-06e4-4262-9b5e-b38cb4fa988e</RequestId>
|
89
|
-
</ResponseMetadata>
|
90
|
-
</GetServiceStatusResponse>
|
91
|
-
http_version:
|
92
|
-
recorded_at: Sat, 28 Mar 2015 18:15:05 GMT
|
93
|
-
- request:
|
94
|
-
method: post
|
95
|
-
uri: https://mws.amazonservices.jp/Webstore/2014-09-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%3A15%3A05Z&Version=2014-09-01&Signature=rUPQLaoLXJ8NDT2PKkm13QBL1CdtWUehmUXsmJUvTqQ%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:15:06 GMT
|
109
|
-
Server:
|
110
|
-
- AmazonMWS
|
111
|
-
x-mws-request-id:
|
112
|
-
- 9c745775-dfdf-4bf1-b244-a92f1b5f1b6d
|
113
|
-
x-mws-timestamp:
|
114
|
-
- '2015-03-28T18:15:06.736Z'
|
115
|
-
x-mws-response-context:
|
116
|
-
- Lc56lufURzelSn/dvPPnD7v8TMC7Udk/d4QqVOsj7XV4eYcrR8XQJxAvil1BJx8aN+pZVIwI8dM=
|
117
|
-
Content-Type:
|
118
|
-
- text/xml
|
119
|
-
Content-Length:
|
120
|
-
- '376'
|
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/webstore/2014-09-01">
|
128
|
-
<GetServiceStatusResult>
|
129
|
-
<Status>GREEN</Status>
|
130
|
-
<Timestamp>2015-03-28T18:15:06.736Z</Timestamp>
|
131
|
-
</GetServiceStatusResult>
|
132
|
-
<ResponseMetadata>
|
133
|
-
<RequestId>9c745775-dfdf-4bf1-b244-a92f1b5f1b6d</RequestId>
|
134
|
-
</ResponseMetadata>
|
135
|
-
</GetServiceStatusResponse>
|
136
|
-
http_version:
|
137
|
-
recorded_at: Sat, 28 Mar 2015 18:15:06 GMT
|
138
|
-
- request:
|
139
|
-
method: post
|
140
|
-
uri: https://mws.amazonservices.com/Webstore/2014-09-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%3A15%3A06Z&Version=2014-09-01&Signature=bUxt48w4UvcY7WplcctMI1pjOoXI8cJwHtSW2NdyNRQ%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:15:07 GMT
|
154
|
-
Server:
|
155
|
-
- AmazonMWS
|
156
|
-
x-mws-request-id:
|
157
|
-
- 597dbcff-034f-406f-b150-0470b85b04fe
|
158
|
-
x-mws-timestamp:
|
159
|
-
- '2015-03-28T18:15:07.556Z'
|
160
|
-
x-mws-response-context:
|
161
|
-
- NxFxnIl/sLIRxil7jxOLq/C/2A30Un96MY5zLQafXGQz1qSt4FQVKOWUE+9X7UGl7FDyVmMznE8=
|
162
|
-
Content-Type:
|
163
|
-
- text/xml
|
164
|
-
Content-Length:
|
165
|
-
- '376'
|
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/webstore/2014-09-01">
|
173
|
-
<GetServiceStatusResult>
|
174
|
-
<Status>GREEN</Status>
|
175
|
-
<Timestamp>2015-03-28T18:15:07.556Z</Timestamp>
|
176
|
-
</GetServiceStatusResult>
|
177
|
-
<ResponseMetadata>
|
178
|
-
<RequestId>597dbcff-034f-406f-b150-0470b85b04fe</RequestId>
|
179
|
-
</ResponseMetadata>
|
180
|
-
</GetServiceStatusResponse>
|
181
|
-
http_version:
|
182
|
-
recorded_at: Sat, 28 Mar 2015 18:15:07 GMT
|
183
|
-
- request:
|
184
|
-
method: post
|
185
|
-
uri: https://mws.amazonservices.ca/Webstore/2014-09-01/
|
186
|
-
body:
|
187
|
-
encoding: US-ASCII
|
188
|
-
string: 'AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=ListSubscriptionsCount&MarketplaceId=A2EUQ1WTGCTBG2&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&SubscriptionState=Subscribed&Timestamp=2015-03-28T18%3A15%3A07Z&Version=2014-09-01&Signature=l5d7JUgYHHwFXqCz8JSjWGtpaFS6njeSIflrrKBQu8o%3D'
|
189
|
-
headers:
|
190
|
-
User-Agent:
|
191
|
-
- Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
|
192
|
-
response:
|
193
|
-
status:
|
194
|
-
code: 200
|
195
|
-
message:
|
196
|
-
headers:
|
197
|
-
Date:
|
198
|
-
- Sat, 28 Mar 2015 18:15:08 GMT
|
199
|
-
Server:
|
200
|
-
- AmazonMWS
|
201
|
-
X-Amz-Date:
|
202
|
-
- Sat, 28 Mar 2015 18:15:08 GMT
|
203
|
-
x-mws-request-id:
|
204
|
-
- 25c190ce-ee58-4eab-a2c3-b9d12498c270
|
205
|
-
x-mws-timestamp:
|
206
|
-
- '2015-03-28T18:15:08.189Z'
|
207
|
-
x-mws-response-context:
|
208
|
-
- XtO15sAegeYG+F2s02NR9ePArgU6VjXe4cOAY0CTucj4zh8QYGW3xPnTin8jZYs5CbZpXgMvlIc=
|
209
|
-
Content-Type:
|
210
|
-
- text/xml
|
211
|
-
Content-Length:
|
212
|
-
- '537'
|
213
|
-
Vary:
|
214
|
-
- User-Agent
|
215
|
-
body:
|
216
|
-
encoding: UTF-8
|
217
|
-
string: |
|
218
|
-
<ListSubscriptionsCountResponse xmlns="http://mws.amazonservices.com/schema/Webstore/2014-09-01">
|
219
|
-
<ListSubscriptionsCountResult>
|
220
|
-
<MarketplaceId>A2EUQ1WTGCTBG2</MarketplaceId>
|
221
|
-
<SellerId>MERCHANT_ID</SellerId>
|
222
|
-
<EndDate>2015-03-28T18:15:08.422Z</EndDate>
|
223
|
-
<SubscriptionList/>
|
224
|
-
<NextToken/>
|
225
|
-
<StartDate>2014-07-01T18:15:08.409Z</StartDate>
|
226
|
-
</ListSubscriptionsCountResult>
|
227
|
-
<ResponseMetadata>
|
228
|
-
<RequestId>25c190ce-ee58-4eab-a2c3-b9d12498c270</RequestId>
|
229
|
-
</ResponseMetadata>
|
230
|
-
</ListSubscriptionsCountResponse>
|
231
|
-
http_version:
|
232
|
-
recorded_at: Sat, 28 Mar 2015 18:15:08 GMT
|
233
|
-
- request:
|
234
|
-
method: post
|
235
|
-
uri: https://mws-eu.amazonservices.com/Webstore/2014-09-01/
|
236
|
-
body:
|
237
|
-
encoding: US-ASCII
|
238
|
-
string: 'AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=ListSubscriptionsCount&MarketplaceId=A1PA6795UKMFR9&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&SubscriptionState=Subscribed&Timestamp=2015-03-28T18%3A15%3A07Z&Version=2014-09-01&Signature=l5d7JUgYHHwFXqCz8JSjWGtpaFS6njeSIflrrKBQu8o%3D'
|
239
|
-
headers:
|
240
|
-
User-Agent:
|
241
|
-
- Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
|
242
|
-
response:
|
243
|
-
status:
|
244
|
-
code: 200
|
245
|
-
message:
|
246
|
-
headers:
|
247
|
-
Date:
|
248
|
-
- Sat, 28 Mar 2015 18:15:08 GMT
|
249
|
-
Server:
|
250
|
-
- AmazonMWS
|
251
|
-
X-Amz-Date:
|
252
|
-
- Sat, 28 Mar 2015 18:15:08 GMT
|
253
|
-
x-mws-request-id:
|
254
|
-
- 25c190ce-ee58-4eab-a2c3-b9d12498c270
|
255
|
-
x-mws-timestamp:
|
256
|
-
- '2015-03-28T18:15:08.189Z'
|
257
|
-
x-mws-response-context:
|
258
|
-
- XtO15sAegeYG+F2s02NR9ePArgU6VjXe4cOAY0CTucj4zh8QYGW3xPnTin8jZYs5CbZpXgMvlIc=
|
259
|
-
Content-Type:
|
260
|
-
- text/xml
|
261
|
-
Content-Length:
|
262
|
-
- '537'
|
263
|
-
Vary:
|
264
|
-
- User-Agent
|
265
|
-
body:
|
266
|
-
encoding: UTF-8
|
267
|
-
string: |
|
268
|
-
<ListSubscriptionsCountResponse xmlns="http://mws.amazonservices.com/schema/Webstore/2014-09-01">
|
269
|
-
<ListSubscriptionsCountResult>
|
270
|
-
<MarketplaceId>A2EUQ1WTGCTBG2</MarketplaceId>
|
271
|
-
<SellerId>MERCHANT_ID</SellerId>
|
272
|
-
<EndDate>2015-03-28T18:15:08.422Z</EndDate>
|
273
|
-
<SubscriptionList/>
|
274
|
-
<NextToken/>
|
275
|
-
<StartDate>2014-07-01T18:15:08.409Z</StartDate>
|
276
|
-
</ListSubscriptionsCountResult>
|
277
|
-
<ResponseMetadata>
|
278
|
-
<RequestId>25c190ce-ee58-4eab-a2c3-b9d12498c270</RequestId>
|
279
|
-
</ResponseMetadata>
|
280
|
-
</ListSubscriptionsCountResponse>
|
281
|
-
http_version:
|
282
|
-
recorded_at: Sat, 28 Mar 2015 18:15:08 GMT
|
283
|
-
- request:
|
284
|
-
method: post
|
285
|
-
uri: https://mws.amazonservices.jp/Webstore/2014-09-01/
|
286
|
-
body:
|
287
|
-
encoding: US-ASCII
|
288
|
-
string: 'AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=ListSubscriptionsCount&MarketplaceId=A1VC38T7YXB528&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&SubscriptionState=Subscribed&Timestamp=2015-03-28T18%3A15%3A07Z&Version=2014-09-01&Signature=l5d7JUgYHHwFXqCz8JSjWGtpaFS6njeSIflrrKBQu8o%3D'
|
289
|
-
headers:
|
290
|
-
User-Agent:
|
291
|
-
- Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
|
292
|
-
response:
|
293
|
-
status:
|
294
|
-
code: 200
|
295
|
-
message:
|
296
|
-
headers:
|
297
|
-
Date:
|
298
|
-
- Sat, 28 Mar 2015 18:15:08 GMT
|
299
|
-
Server:
|
300
|
-
- AmazonMWS
|
301
|
-
X-Amz-Date:
|
302
|
-
- Sat, 28 Mar 2015 18:15:08 GMT
|
303
|
-
x-mws-request-id:
|
304
|
-
- 25c190ce-ee58-4eab-a2c3-b9d12498c270
|
305
|
-
x-mws-timestamp:
|
306
|
-
- '2015-03-28T18:15:08.189Z'
|
307
|
-
x-mws-response-context:
|
308
|
-
- XtO15sAegeYG+F2s02NR9ePArgU6VjXe4cOAY0CTucj4zh8QYGW3xPnTin8jZYs5CbZpXgMvlIc=
|
309
|
-
Content-Type:
|
310
|
-
- text/xml
|
311
|
-
Content-Length:
|
312
|
-
- '537'
|
313
|
-
Vary:
|
314
|
-
- User-Agent
|
315
|
-
body:
|
316
|
-
encoding: UTF-8
|
317
|
-
string: |
|
318
|
-
<ListSubscriptionsCountResponse xmlns="http://mws.amazonservices.com/schema/Webstore/2014-09-01">
|
319
|
-
<ListSubscriptionsCountResult>
|
320
|
-
<MarketplaceId>A2EUQ1WTGCTBG2</MarketplaceId>
|
321
|
-
<SellerId>MERCHANT_ID</SellerId>
|
322
|
-
<EndDate>2015-03-28T18:15:08.422Z</EndDate>
|
323
|
-
<SubscriptionList/>
|
324
|
-
<NextToken/>
|
325
|
-
<StartDate>2014-07-01T18:15:08.409Z</StartDate>
|
326
|
-
</ListSubscriptionsCountResult>
|
327
|
-
<ResponseMetadata>
|
328
|
-
<RequestId>25c190ce-ee58-4eab-a2c3-b9d12498c270</RequestId>
|
329
|
-
</ResponseMetadata>
|
330
|
-
</ListSubscriptionsCountResponse>
|
331
|
-
http_version:
|
332
|
-
recorded_at: Sat, 28 Mar 2015 18:15:08 GMT
|
333
|
-
- request:
|
334
|
-
method: post
|
335
|
-
uri: https://mws.amazonservices.com/Webstore/2014-09-01/
|
336
|
-
body:
|
337
|
-
encoding: US-ASCII
|
338
|
-
string: 'AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=ListSubscriptionsCount&MarketplaceId=ATVPDKIKX0DER&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&SubscriptionState=Subscribed&Timestamp=2015-03-28T18%3A19%3A53Z&Version=2014-09-01&Signature=d1MP%2BO0iNPQfTwhfrXsRv9jWj2f7cHLs1LJQht9a2ro%3D'
|
339
|
-
headers:
|
340
|
-
User-Agent:
|
341
|
-
- Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
|
342
|
-
response:
|
343
|
-
status:
|
344
|
-
code: 200
|
345
|
-
message:
|
346
|
-
headers:
|
347
|
-
Date:
|
348
|
-
- Sat, 28 Mar 2015 18:19:54 GMT
|
349
|
-
Server:
|
350
|
-
- AmazonMWS
|
351
|
-
X-Amz-Date:
|
352
|
-
- Sat, 28 Mar 2015 18:19:54 GMT
|
353
|
-
x-mws-request-id:
|
354
|
-
- d783c3ac-2b35-45c0-aed6-2527f025d2d4
|
355
|
-
x-mws-timestamp:
|
356
|
-
- '2015-03-28T18:19:54.340Z'
|
357
|
-
x-mws-response-context:
|
358
|
-
- MRJZF9ntYaoK1Zt1RzcAmW8EqZdmYNgJzzfJntcjD1K3nk3xjvNswwPv+sFINf5KuY3r/ujLxhI=
|
359
|
-
Content-Type:
|
360
|
-
- text/xml
|
361
|
-
Content-Length:
|
362
|
-
- '536'
|
363
|
-
Vary:
|
364
|
-
- User-Agent
|
365
|
-
body:
|
366
|
-
encoding: UTF-8
|
367
|
-
string: |
|
368
|
-
<ListSubscriptionsCountResponse xmlns="http://mws.amazonservices.com/schema/Webstore/2014-09-01">
|
369
|
-
<ListSubscriptionsCountResult>
|
370
|
-
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
|
371
|
-
<SellerId>MERCHANT_ID</SellerId>
|
372
|
-
<SubscriptionList/>
|
373
|
-
<EndDate>2015-03-28T18:19:54.609Z</EndDate>
|
374
|
-
<NextToken/>
|
375
|
-
<StartDate>2014-07-01T18:19:54.594Z</StartDate>
|
376
|
-
</ListSubscriptionsCountResult>
|
377
|
-
<ResponseMetadata>
|
378
|
-
<RequestId>d783c3ac-2b35-45c0-aed6-2527f025d2d4</RequestId>
|
379
|
-
</ResponseMetadata>
|
380
|
-
</ListSubscriptionsCountResponse>
|
381
|
-
http_version:
|
382
|
-
recorded_at: Sat, 28 Mar 2015 18:19:54 GMT
|
383
|
-
recorded_with: VCR 2.9.3
|