peddler 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mws/cart_information/client.rb +2 -1
  3. data/lib/mws/customer_information/client.rb +2 -1
  4. data/lib/mws/feeds/client.rb +2 -0
  5. data/lib/mws/fulfillment_inbound_shipment/client.rb +2 -1
  6. data/lib/mws/fulfillment_inventory/client.rb +2 -1
  7. data/lib/mws/fulfillment_outbound_shipment/client.rb +2 -1
  8. data/lib/mws/off_amazon_payments/client.rb +3 -2
  9. data/lib/mws/orders/client.rb +2 -1
  10. data/lib/mws/products/client.rb +2 -1
  11. data/lib/mws/recommendations/client.rb +2 -1
  12. data/lib/mws/reports/client.rb +2 -0
  13. data/lib/mws/sellers/client.rb +2 -1
  14. data/lib/mws/subscriptions/client.rb +2 -1
  15. data/lib/mws/webstore/client.rb +2 -1
  16. data/lib/peddler/client.rb +28 -3
  17. data/lib/peddler/operation.rb +5 -1
  18. data/lib/peddler/version.rb +1 -1
  19. data/test/helper.rb +8 -2
  20. data/test/integration/test_fulfillment_inbound_shipment.rb +13 -0
  21. data/test/integration/test_sellers.rb +0 -7
  22. data/test/{mws.yml → mws.yml.example} +0 -0
  23. data/test/unit/peddler/test_operation.rb +6 -0
  24. data/test/vcr_cassettes/CartInformation.yml +37 -38
  25. data/test/vcr_cassettes/CustomerInformation.yml +37 -38
  26. data/test/vcr_cassettes/Feeds.yml +534 -131
  27. data/test/vcr_cassettes/FulfillmentInboundShipment.yml +325 -48
  28. data/test/vcr_cassettes/FulfillmentInventory.yml +129 -133
  29. data/test/vcr_cassettes/FulfillmentOutboundShipment.yml +37 -40
  30. data/test/vcr_cassettes/OffAmazonPayments.yml +37 -37
  31. data/test/vcr_cassettes/Orders.yml +37 -39
  32. data/test/vcr_cassettes/Products.yml +1991 -1392
  33. data/test/vcr_cassettes/Recommendations.yml +2020 -8987
  34. data/test/vcr_cassettes/Reports.yml +1447 -396
  35. data/test/vcr_cassettes/Sellers.yml +36 -242
  36. data/test/vcr_cassettes/Subscriptions.yml +214 -227
  37. data/test/vcr_cassettes/Webstore.yml +106 -106
  38. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9dd9c5afba95ac1d338faf962febf957b9b0c379
4
- data.tar.gz: adf4cd38b3f060d0eb6bd192a7a8b26ccfb975c7
3
+ metadata.gz: 4d37ce78b08881900ca193e7c541a2ce9dd47dd0
4
+ data.tar.gz: 2ccd80425d28a56835350179392cedbc03248645
5
5
  SHA512:
6
- metadata.gz: c5340b8e65c5ed04ad39da45754a61666d3585b11a190779efbe39377903a3f3b8ef495fb39d56414caae34a1a2bf93226fa2d0b40130f3c245eca050b50ea95
7
- data.tar.gz: e943781a460d6302bf567e1b2c68d73ef8e151205c42350bafd909bef9e2156219a0e8d1321d91ce5e248a6e86de91aca3434ebd2a3be95f8ada00127406a122
6
+ metadata.gz: 6c87a66569da567099b9b8faf59e9fc0161730b1a0b7dfb1eaf779c1931f7e275a7054de2027dabeb0100415f0f2c45c961e0a30189260bcd4904a8b1f27d2ce
7
+ data.tar.gz: f59e5ca83abbae992b837c280af72641732f2b17956f8cc149a5f2b7496ff140d797511f2a15f27226cbc0db77f8727e80e0845f80e8fba5b75f3ad163ed2b1b
@@ -16,7 +16,8 @@ module MWS
16
16
  # @note In addition to registering for Amazon MWS, you must also request
17
17
  # authorization to use the Cart Information API section.
18
18
  class Client < ::Peddler::Client
19
- path '/CartInformation/2014-03-01'
19
+ version "2014-03-01"
20
+ path "/CartInformation/#{version}"
20
21
 
21
22
  # Lists shopping carts
22
23
  #
@@ -18,7 +18,8 @@ module MWS
18
18
  # @note In addition to registering for Amazon MWS, you must request
19
19
  # authorization to use the Customer Information API.
20
20
  class Client < ::Peddler::Client
21
- path '/CustomerInformation/2014-03-01'
21
+ version "2014-03-01"
22
+ path "/CustomerInformation/#{version}"
22
23
 
23
24
  # Lists customer accounts based on search criteria that you specify
24
25
  #
@@ -5,6 +5,8 @@ module MWS
5
5
  # The MWS Feeds API lets you upload inventory and order data to Amazon. You
6
6
  # can also use this API to get information about the processing of feeds.
7
7
  class Client < ::Peddler::Client
8
+ version '2009-01-01'
9
+
8
10
  # Uploads a feed
9
11
  #
10
12
  # @note Feed size is limited to 2,147,483,647 bytes (2^31 -1) per feed
@@ -7,7 +7,8 @@ module MWS
7
7
  # also request lists of inbound shipments or inbound shipment items based on
8
8
  # criteria that you specify.
9
9
  class Client < ::Peddler::Client
10
- path '/FulfillmentInboundShipment/2010-10-01'
10
+ version "2010-10-01"
11
+ path "/FulfillmentInboundShipment/#{version}"
11
12
 
12
13
  # Returns the information required to create an inbound shipment
13
14
  #
@@ -9,7 +9,8 @@ module MWS
9
9
  # selling your inventory on Amazon's retail web site or through other retail
10
10
  # channels.
11
11
  class Client < ::Peddler::Client
12
- path '/FulfillmentInventory/2010-10-01'
12
+ version "2010-10-01"
13
+ path "/FulfillmentInventory/#{version}"
13
14
 
14
15
  # Returns information about the availability of a seller's inventory
15
16
  #
@@ -13,7 +13,8 @@ module MWS
13
13
  # on when they were fulfilled and by the fulfillment method associated with
14
14
  # them.
15
15
  class Client < ::Peddler::Client
16
- path '/FulfillmentOutboundShipment/2010-10-01'
16
+ version "2010-10-01"
17
+ path "/FulfillmentOutboundShipment/#{version}"
17
18
 
18
19
  # Lists fulfillment order previews
19
20
  #
@@ -14,14 +14,15 @@ module MWS
14
14
  # Payments. You cannot use this API section to process payments for Amazon
15
15
  # Marketplace, Amazon Webstore, or Checkout by Amazon.
16
16
  class Client < ::Peddler::Client
17
- path '/OffAmazonPayments/2013-01-01/'
17
+ version "2013-01-01"
18
+ path "/OffAmazonPayments/#{version}/"
18
19
 
19
20
  # Switches the client to the sandbox environment
20
21
  #
21
22
  # @see https://payments.amazon.com/help/Checkout-by-Amazon/Using-the-Checkout-by-Amazon-Sandbox/Overview-of-the-Sandbox
22
23
  # @return [self]
23
24
  def sandbox
24
- self.path = '/OffAmazonPayments_Sandbox/2013-01-01/'
25
+ self.path = "/OffAmazonPayments_Sandbox/#{version}/"
25
26
  self
26
27
  end
27
28
 
@@ -5,7 +5,8 @@ module MWS
5
5
  # With the MWS Orders API, you can list orders created or updated during a
6
6
  # time frame you specify or retrieve information about specific orders.
7
7
  class Client < ::Peddler::Client
8
- path '/Orders/2013-09-01'
8
+ version "2013-09-01"
9
+ path "/Orders/#{version}"
9
10
 
10
11
  # Lists orders
11
12
  #
@@ -7,7 +7,8 @@ module MWS
7
7
  # sourcing and pricing decisions for listing those products on Amazon
8
8
  # Marketplace websites.
9
9
  class Client < ::Peddler::Client
10
- path '/Products/2011-10-01'
10
+ version "2011-10-01"
11
+ path "/Products/#{version}"
11
12
 
12
13
  # Lists products and their attributes, based on a search query
13
14
  #
@@ -7,7 +7,8 @@ module MWS
7
7
  # is an actionable, timely, and personalized opportunity to increase your
8
8
  # sales and performance.
9
9
  class Client < ::Peddler::Client
10
- path '/Recommendations/2013-04-01'
10
+ version "2013-04-01"
11
+ path "/Recommendations/#{version}"
11
12
 
12
13
  # Checks whether there are active recommendations for each category for
13
14
  # the given marketplace, and if there are, returns the time when
@@ -4,6 +4,8 @@ module MWS
4
4
  module Reports
5
5
  # The Reports API lets you request reports about your inventory and orders.
6
6
  class Client < ::Peddler::Client
7
+ version '2009-01-01'
8
+
7
9
  # Creates a report request
8
10
  #
9
11
  # @see http://docs.developer.amazonservices.com/en_US/reports/Reports_RequestReport.html
@@ -5,7 +5,8 @@ module MWS
5
5
  # The Sellers API lets sellers retrieve information about their seller
6
6
  # account, such as the marketplaces they participate in.
7
7
  class Client < ::Peddler::Client
8
- path '/Sellers/2011-07-01'
8
+ version "2011-07-01"
9
+ path "/Sellers/#{version}"
9
10
 
10
11
  # Lists the marketplaces the seller participates in
11
12
  #
@@ -9,7 +9,8 @@ module MWS
9
9
  # Amazon MWS service. Instead, the information is sent directly to you when
10
10
  # an event occurs to which you are subscribed.
11
11
  class Client < ::Peddler::Client
12
- path '/Subscriptions/2013-07-01'
12
+ version "2013-07-01"
13
+ path "/Subscriptions/#{version}"
13
14
 
14
15
  # Registers a new destination to receive notifications
15
16
  #
@@ -13,7 +13,8 @@ module MWS
13
13
  # that your Webstore tracks, can help you determine how many notifications
14
14
  # were converted into sales.
15
15
  class Client < ::Peddler::Client
16
- path '/Webstore/2014-09-01/'
16
+ version "2014-09-01"
17
+ path "/Webstore/#{version}/"
17
18
 
18
19
  # Lists subscription counts of subscriptions in a specified state,
19
20
  # including the items that are subscribed to
@@ -5,13 +5,29 @@ require 'peddler/operation'
5
5
  require 'peddler/parser'
6
6
 
7
7
  module Peddler
8
- # @abstract Subclass to implement an MWS API section.
8
+ # An abstract client
9
+ #
10
+ # Subclass to implement an MWS API section.
9
11
  class Client
10
12
  extend Forwardable
11
13
  include Jeff
12
14
 
15
+ # @return [String] the MWSAuthToken used to access another seller's account
13
16
  attr_accessor :auth_token
14
- attr_writer :merchant_id, :marketplace_id, :path
17
+
18
+ # @return [String] the merchant's Seller ID
19
+ attr_writer :merchant_id
20
+
21
+ # @return [String] the merchant's Marketplace ID
22
+ attr_writer :marketplace_id
23
+
24
+ # @return [String] the HTTP path of the API
25
+ attr_writer :path
26
+
27
+ # @return [String] the version of the API
28
+ attr_writer :version
29
+
30
+ # @return [String] the body of the HTTP request
15
31
  attr_reader :body
16
32
 
17
33
  alias_method :configure, :tap
@@ -20,7 +36,8 @@ module Peddler
20
36
 
21
37
  params(
22
38
  'SellerId' => -> { merchant_id },
23
- 'MWSAuthToken' => -> { auth_token }
39
+ 'MWSAuthToken' => -> { auth_token },
40
+ 'Version' => -> { version }
24
41
  )
25
42
 
26
43
  class << self
@@ -38,6 +55,10 @@ module Peddler
38
55
  path ? @path = path : @path ||= '/'
39
56
  end
40
57
 
58
+ def version(version = nil)
59
+ version ? @version = version : @version
60
+ end
61
+
41
62
  def on_error(&blk)
42
63
  @error_handler = blk
43
64
  end
@@ -82,6 +103,10 @@ module Peddler
82
103
  @path ||= self.class.path
83
104
  end
84
105
 
106
+ def version
107
+ @version ||= self.class.version
108
+ end
109
+
85
110
  def body=(str)
86
111
  headers['Content-Type'] = content_type(str)
87
112
  @body = str
@@ -50,7 +50,11 @@ module Peddler
50
50
  private
51
51
 
52
52
  def camelize(sym)
53
- sym.to_s.split('_').map(&:capitalize).join
53
+ sym
54
+ .to_s
55
+ .split('_')
56
+ .map { |token| token == "sku" ? "SKU" : token.capitalize }
57
+ .join
54
58
  end
55
59
  end
56
60
  end
@@ -1,3 +1,3 @@
1
1
  module Peddler
2
- VERSION = '0.13.0'
2
+ VERSION = '0.14.0'
3
3
  end
data/test/helper.rb CHANGED
@@ -19,7 +19,13 @@ module Accounts
19
19
  @data.each(&blk)
20
20
  end
21
21
 
22
- @data = YAML.load_file(File.expand_path('../mws.yml', __FILE__))
22
+ %w(mws.yml mws.yml.example).each do |path|
23
+ file = File.expand_path("../#{path}", __FILE__)
24
+ if File.exists?(file)
25
+ @data = YAML.load_file(file)
26
+ break
27
+ end
28
+ end
23
29
  end
24
30
 
25
31
  # Sets up clients and bootstraps VCR for integration tests
@@ -63,7 +69,7 @@ VCR.configure do |c|
63
69
 
64
70
  c.default_cassette_options = {
65
71
  match_requests_on: [:host, :path, matcher],
66
- record: :none
72
+ record: !!ENV['RECORD'] ? :new_episodes : :none
67
73
  }
68
74
 
69
75
  # So that fixtures do not depend on merchant credentials
@@ -2,6 +2,19 @@ require 'helper'
2
2
  require 'mws/fulfillment_inbound_shipment'
3
3
 
4
4
  class TestFulfillmentInboundShipment < IntegrationTest
5
+ Address = Struct.new(:name, :address_line_1, :city, :state_or_province_code,
6
+ :postal_code, :country_code)
7
+ Item = Struct.new(:seller_sku, :quantity)
8
+
9
+ def test_creates_inbound_shipment_plan
10
+ address = Address.new('John', '1 Main St', 'New York', 'NY', '10001', 'US')
11
+ item = Item.new('123', 1)
12
+ clients.each do |client|
13
+ res = client.create_inbound_shipment_plan(address, [item])
14
+ refute_empty res.parse
15
+ end
16
+ end
17
+
5
18
  def test_gets_service_status
6
19
  clients.each do |client|
7
20
  res = client.get_service_status
@@ -8,11 +8,4 @@ class TestSellers < IntegrationTest
8
8
  refute_empty res.parse
9
9
  end
10
10
  end
11
-
12
- def test_get_auth_token
13
- clients.each do |client|
14
- res = client.get_auth_token
15
- refute_empty res.parse
16
- end
17
- end
18
11
  end
File without changes
@@ -27,6 +27,12 @@ class TestPeddlerOperation < MiniTest::Test
27
27
  refute @operation.has_key?(:foo_bar)
28
28
  end
29
29
 
30
+ def test_store_upcases_sku
31
+ @operation.store(:seller_sku, 'baz')
32
+ assert @operation.has_key?('SellerSKU')
33
+ refute @operation.has_key?(:seller_sku)
34
+ end
35
+
30
36
  def test_store_timestamps_time_values
31
37
  ts = Minitest::Mock.new
32
38
  ts.expect(:iso8601, 'foo')
@@ -2,28 +2,28 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://mws.amazonservices.ca/CartInformation/2014-03-01?AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-08-12T11%3A35%3A51Z&Signature=J2Czuu60qwZtk0zc7b8TlHG1CixafTerP1NlaEb69UE%3D
5
+ uri: https://mws.amazonservices.ca/CartInformation/2014-03-01?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
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Jeff/1.0.1 (Language=Ruby; hakans-mbp.home)
11
+ - Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
12
12
  response:
13
13
  status:
14
14
  code: 200
15
15
  message:
16
16
  headers:
17
17
  Date:
18
- - Tue, 12 Aug 2014 11:35:51 GMT
18
+ - Sat, 28 Mar 2015 18:10:17 GMT
19
19
  Server:
20
20
  - AmazonMWS
21
21
  x-mws-request-id:
22
- - 93f47cf0-208b-4937-ba33-fdd6092fc15b
22
+ - 2b0de813-3f60-4491-bb6e-d0cf3357bfe4
23
23
  x-mws-timestamp:
24
- - '2014-08-12T11:35:52.078Z'
24
+ - '2015-03-28T18:10:18.164Z'
25
25
  x-mws-response-context:
26
- - UE1v4fCyqJA6JZ/ooT0RnJ4FCy7tt7cNzI6wu+LqZjFdU7QrctCp/eKpn7W2cH1hjKB5t7zDro0=
26
+ - Sgo7Qu5KPylVVwRH0loOhcAbqyPXY6cN43HTQxjoxNqowhI23+bF1yTDq0vJYpA2TVU6c+7302Q=
27
27
  Content-Type:
28
28
  - text/xml
29
29
  Content-Length:
@@ -37,39 +37,38 @@ http_interactions:
37
37
  <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
38
38
  <GetServiceStatusResult>
39
39
  <Status>GREEN</Status>
40
- <Timestamp>2014-08-12T11:35:52.078Z</Timestamp>
40
+ <Timestamp>2015-03-28T18:10:18.164Z</Timestamp>
41
41
  </GetServiceStatusResult>
42
42
  <ResponseMetadata>
43
- <RequestId>93f47cf0-208b-4937-ba33-fdd6092fc15b</RequestId>
43
+ <RequestId>2b0de813-3f60-4491-bb6e-d0cf3357bfe4</RequestId>
44
44
  </ResponseMetadata>
45
45
  </GetServiceStatusResponse>
46
46
  http_version:
47
- recorded_at: Tue, 12 Aug 2014 11:35:52 GMT
47
+ recorded_at: Sat, 28 Mar 2015 18:10:18 GMT
48
48
  - request:
49
49
  method: post
50
- uri: https://mws-eu.amazonservices.com/CartInformation/2014-03-01?AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-08-12T11%3A35%3A52Z&Signature=%2BiJhSUzNGUlRhq9tuSaI%2F9H9UeXve3jX2YjCbq9SrXM%3D
50
+ uri: https://mws-eu.amazonservices.com/CartInformation/2014-03-01?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
51
51
  body:
52
52
  encoding: US-ASCII
53
53
  string: ''
54
54
  headers:
55
55
  User-Agent:
56
- - Jeff/1.0.1 (Language=Ruby; hakans-mbp.home)
56
+ - Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
57
57
  response:
58
58
  status:
59
59
  code: 200
60
60
  message:
61
61
  headers:
62
62
  Date:
63
- - Tue, 12 Aug 2014 11:35:51 GMT
63
+ - Sat, 28 Mar 2015 18:10:18 GMT
64
64
  Server:
65
65
  - AmazonMWS
66
66
  x-mws-request-id:
67
- - a79a0c5f-263c-4d75-b490-ce30d8d03de6
67
+ - 9e731e3c-39f8-48b0-a373-5b959922cb09
68
68
  x-mws-timestamp:
69
- - '2014-08-12T11:35:52.301Z'
69
+ - '2015-03-28T18:10:18.789Z'
70
70
  x-mws-response-context:
71
- - 5I3NaaenKz3LNJ3cQC+OmA+V2zysBpVNgsZUNkteSbdannoXDi+3yewrZ+nY1gDoFBj5HLYgc2Rd
72
- lND+b01YYg==
71
+ - gf59f8nbRksTQCY+caSLf/SG/f3UptxVDpyWXuBIUAZDgB3z/xHjAL5/8d9R2sG0RuHwp+cmNaM=
73
72
  Content-Type:
74
73
  - text/xml
75
74
  Content-Length:
@@ -83,38 +82,38 @@ http_interactions:
83
82
  <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
84
83
  <GetServiceStatusResult>
85
84
  <Status>GREEN</Status>
86
- <Timestamp>2014-08-12T11:35:52.301Z</Timestamp>
85
+ <Timestamp>2015-03-28T18:10:18.789Z</Timestamp>
87
86
  </GetServiceStatusResult>
88
87
  <ResponseMetadata>
89
- <RequestId>a79a0c5f-263c-4d75-b490-ce30d8d03de6</RequestId>
88
+ <RequestId>9e731e3c-39f8-48b0-a373-5b959922cb09</RequestId>
90
89
  </ResponseMetadata>
91
90
  </GetServiceStatusResponse>
92
91
  http_version:
93
- recorded_at: Tue, 12 Aug 2014 11:35:52 GMT
92
+ recorded_at: Sat, 28 Mar 2015 18:10:18 GMT
94
93
  - request:
95
94
  method: post
96
- uri: https://mws.amazonservices.jp/CartInformation/2014-03-01?AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-08-12T11%3A35%3A52Z&Signature=5eM36IQEitBR8THzkQtGG%2BthAuvT9Ik8yK6K8ECp83Y%3D
95
+ uri: https://mws.amazonservices.jp/CartInformation/2014-03-01?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
97
96
  body:
98
97
  encoding: US-ASCII
99
98
  string: ''
100
99
  headers:
101
100
  User-Agent:
102
- - Jeff/1.0.1 (Language=Ruby; hakans-mbp.home)
101
+ - Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
103
102
  response:
104
103
  status:
105
104
  code: 200
106
105
  message:
107
106
  headers:
108
107
  Date:
109
- - Tue, 12 Aug 2014 11:35:52 GMT
108
+ - Sat, 28 Mar 2015 18:10:19 GMT
110
109
  Server:
111
110
  - AmazonMWS
112
111
  x-mws-request-id:
113
- - 3c50395b-e915-45d4-9c47-2da0d6f59f96
112
+ - f3fb4bf0-5591-4e61-a7d8-f6a94b253f76
114
113
  x-mws-timestamp:
115
- - '2014-08-12T11:35:53.052Z'
114
+ - '2015-03-28T18:10:19.943Z'
116
115
  x-mws-response-context:
117
- - NOdHHaufbZUl//df+Tg3Els/yDH7Qa7guv07Mf5HnKP9eD4FYaln+MLkL4ONJnpnYyNXR1CPXsc=
116
+ - o+6g5g3je0wF4ylzv9sE1H71774gad059qXnVpCCZTzi+9LNoRxVtz4r2IKlrDySwAC3X0/Xk3I=
118
117
  Content-Type:
119
118
  - text/xml
120
119
  Content-Length:
@@ -128,38 +127,38 @@ http_interactions:
128
127
  <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
129
128
  <GetServiceStatusResult>
130
129
  <Status>GREEN</Status>
131
- <Timestamp>2014-08-12T11:35:53.052Z</Timestamp>
130
+ <Timestamp>2015-03-28T18:10:19.943Z</Timestamp>
132
131
  </GetServiceStatusResult>
133
132
  <ResponseMetadata>
134
- <RequestId>3c50395b-e915-45d4-9c47-2da0d6f59f96</RequestId>
133
+ <RequestId>f3fb4bf0-5591-4e61-a7d8-f6a94b253f76</RequestId>
135
134
  </ResponseMetadata>
136
135
  </GetServiceStatusResponse>
137
136
  http_version:
138
- recorded_at: Tue, 12 Aug 2014 11:35:53 GMT
137
+ recorded_at: Sat, 28 Mar 2015 18:10:20 GMT
139
138
  - request:
140
139
  method: post
141
- uri: https://mws.amazonservices.com/CartInformation/2014-03-01?AWSAccessKeyId=AWS_ACCESS_KEY_ID&Action=GetServiceStatus&SellerId=MERCHANT_ID&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-08-12T11%3A35%3A53Z&Signature=43WdQLm5RExiYH5ktdmWqDEPgiNXA8Dvra8cTVVsCIc%3D
140
+ uri: https://mws.amazonservices.com/CartInformation/2014-03-01?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
142
141
  body:
143
142
  encoding: US-ASCII
144
143
  string: ''
145
144
  headers:
146
145
  User-Agent:
147
- - Jeff/1.0.1 (Language=Ruby; hakans-mbp.home)
146
+ - Jeff/1.2.0 (Language=Ruby; Hakans-MacBook-Pro.local)
148
147
  response:
149
148
  status:
150
149
  code: 200
151
150
  message:
152
151
  headers:
153
152
  Date:
154
- - Tue, 12 Aug 2014 11:35:52 GMT
153
+ - Sat, 28 Mar 2015 18:10:20 GMT
155
154
  Server:
156
155
  - AmazonMWS
157
156
  x-mws-request-id:
158
- - bdf54905-64fc-427c-9f92-0697bac6c703
157
+ - 807199e2-f19d-4533-b665-99a61c0a5c71
159
158
  x-mws-timestamp:
160
- - '2014-08-12T11:35:53.524Z'
159
+ - '2015-03-28T18:10:20.828Z'
161
160
  x-mws-response-context:
162
- - N9V88MjlNLzMLoLGl2CumBrBrxayZ9zTxGOWPGF1FQEf39mKOmVFT5QVCSMDOOvYZE6poIuw5pQ=
161
+ - Lh6MgnORymISTEIkBSTw4s+TO0r0IE43+oryvY9L0GzS4U3kSocWQPx3CjnLV664sQXUxN8wblg=
163
162
  Content-Type:
164
163
  - text/xml
165
164
  Content-Length:
@@ -173,12 +172,12 @@ http_interactions:
173
172
  <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/CartInformation/2014-03-01">
174
173
  <GetServiceStatusResult>
175
174
  <Status>GREEN</Status>
176
- <Timestamp>2014-08-12T11:35:53.524Z</Timestamp>
175
+ <Timestamp>2015-03-28T18:10:20.828Z</Timestamp>
177
176
  </GetServiceStatusResult>
178
177
  <ResponseMetadata>
179
- <RequestId>bdf54905-64fc-427c-9f92-0697bac6c703</RequestId>
178
+ <RequestId>807199e2-f19d-4533-b665-99a61c0a5c71</RequestId>
180
179
  </ResponseMetadata>
181
180
  </GetServiceStatusResponse>
182
181
  http_version:
183
- recorded_at: Tue, 12 Aug 2014 11:35:53 GMT
184
- recorded_with: VCR 2.9.2
182
+ recorded_at: Sat, 28 Mar 2015 18:10:20 GMT
183
+ recorded_with: VCR 2.9.3