peddler 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b23af9259fc451eaf2efbf47b7c03a45b46714d7
4
- data.tar.gz: 147618f91b42b19bfb6a34be99774c277ccd8dac
3
+ metadata.gz: 4d90f051308dc6363397a38e2f2718ad0cdb1773
4
+ data.tar.gz: b299094cf80d6e1dab58a75993dbe442ea13b339
5
5
  SHA512:
6
- metadata.gz: 73627f0730df844e71038dede262611b70fd9f26ad9756c3e5f43756dd53ec2bf7589ce12dc5abd3e1be0d46f6085146768726675b083a5eb44009d6fe0b5a23
7
- data.tar.gz: b40bfcce330e6ee41f26da68c4f342960a636e9193d315d808ecb273d9b41ca12f0ff670e8e58646330535d132b6005da80d9408bb79cb2d6f00208edea16077
6
+ metadata.gz: 1906262382067f0013a7de657ca1a57b5c1eadfca7e6c633bd759440aa4ee843a6e80b667dac9f20cd6ed688df2b9592082975146bb3317185b67423d3cd466e
7
+ data.tar.gz: f02b9c00cba6c7ad3f89be1b1ad668565e48b234acd247c80af16d7221f3408b06caab7237b2729b37aa99eab59f35883481db12705631cb0645bee38d4e7ac2
data/README.md CHANGED
@@ -51,7 +51,7 @@ export AWS_SECRET_ACCESS_KEY="rOMa3ydPBTJ3AD0bxERTOX0Fv0fAC6Q0s6/czMZO"
51
51
 
52
52
  With the MWS Cart Information API, you can retrieve shopping carts that your Amazon Webstore customers have created. The Cart Information API enables you to programmatically integrate Amazon Webstore cart information with your CRM systems, marketing applications, and other systems that require cart data.
53
53
 
54
- [Read more](http://rubydoc.info/gems/peddler/MWS/CartInformation)
54
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/CartInformation)
55
55
 
56
56
  ### Customer Information
57
57
 
@@ -59,13 +59,13 @@ With the MWS Cart Information API, you can retrieve shopping carts that your Ama
59
59
 
60
60
  With the MWS Customer Information API, you can retrieve information from the customer accounts of your Amazon Webstore customers. This customer information includes customer name, contact information, customer account type, and associated Amazon Webstore marketplaces. The Customer Information API enables you to programmatically integrate Amazon Webstore customer account information with your CRM systems, marketing applications, and other systems that require customer data.
61
61
 
62
- [Read more](http://rubydoc.info/gems/peddler/MWS/CustomerInformation)
62
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/CustomerInformation)
63
63
 
64
64
  ### Feeds
65
65
 
66
66
  The MWS Feeds API lets you upload inventory and order data to Amazon. You can also use this API to get information about the processing of feeds.
67
67
 
68
- [Read more](http://rubydoc.info/gems/peddler/MWS/Feeds)
68
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/Feeds)
69
69
 
70
70
  ### Fulfillment Inbound Shipment
71
71
 
@@ -73,7 +73,7 @@ The MWS Feeds API lets you upload inventory and order data to Amazon. You can al
73
73
 
74
74
  With the MWS Fulfillment Inbound Shipment API, you can create and update inbound shipments of inventory in the Amazon Fulfillment Network. You can also also request lists of inbound shipments or inbound shipment items based on criteria that you specify.
75
75
 
76
- [Read more](http://rubydoc.info/gems/peddler/MWS/FulfillmentInboundShipment)
76
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/FulfillmentInboundShipment)
77
77
 
78
78
  ### Fulfillment Inventory
79
79
 
@@ -81,7 +81,7 @@ With the MWS Fulfillment Inbound Shipment API, you can create and update inbound
81
81
 
82
82
  The MWS Fulfillment Inventory API can help you stay up-to-date on the availability of your inventory in the Amazon Fulfillment Network. The Fulfillment Inventory API reports real-time availability information for your Amazon Fulfillment Network inventory regardless of whether you are selling your inventory on Amazon's retail web site or through other retail channels.
83
83
 
84
- [Read more](http://rubydoc.info/gems/peddler/MWS/FulfillmentInventory)
84
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/FulfillmentInventory)
85
85
 
86
86
  ### Fulfillment Outbound Shipment
87
87
 
@@ -89,51 +89,49 @@ The MWS Fulfillment Inventory API can help you stay up-to-date on the availabili
89
89
 
90
90
  The MWS Fulfillment Outbound Shipment API enables you to fulfill orders placed through channels other than Amazon's retail web site, using your inventory in the Amazon Fulfillment Network. You can request previews of potential fulfillment orders that return estimated shipping fees and shipping dates based on shipping speed. You can get detailed item-level, shipment-level, and order-level information for any existing fulfillment order that you specify. You can also request lists of existing fulfillment orders based on when they were fulfilled and by the fulfillment method associated with them.
91
91
 
92
- [Read more](http://rubydoc.info/gems/peddler/MWS/FulfillmentOutboundShipment)
92
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/FulfillmentOutboundShipment)
93
93
 
94
94
  ### Off Amazon Payments
95
95
 
96
- **Not implemented**
97
-
98
96
  The MWS Off-Amazon Payments API helps you to process payments for purchases made by buyers on your website using the Login and Pay with Amazon service. This API enables you to programmatically retrieve shipping and payment information provided by the buyer from their Amazon account. It allows you to authorize, capture, and refund payments, enabling a variety of payments scenarios.
99
97
 
100
- [Read more](http://rubydoc.info/gems/peddler/MWS/OffAmazonPayments)
98
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/OffAmazonPayments)
101
99
 
102
100
  ### Orders
103
101
 
104
102
  With the MWS Orders API, you can list orders created or updated during a time frame you specify or retrieve information about specific orders.
105
103
 
106
- [Read more](http://rubydoc.info/gems/peddler/MWS/Orders)
104
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/Orders)
107
105
 
108
106
  ### Products
109
107
 
110
108
  The MWS Products API helps you get information to match your products to existing product listings on Amazon Marketplace websites and to make sourcing and pricing decisions for listing those products on Amazon Marketplace websites.
111
109
 
112
- [Read more](http://rubydoc.info/gems/peddler/MWS/Products)
110
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/Products)
113
111
 
114
112
  ### Recommendations
115
113
 
116
114
  The Recommendations API enables you to programmatically retrieve Amazon Selling Coach recommendations by recommendation category. A recommendation is an actionable, timely, and personalized opportunity to increase your sales and performance.
117
115
 
118
- [Read more](http://rubydoc.info/gems/peddler/MWS/Recommendations)
116
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/Recommendations)
119
117
 
120
118
  ### Reports
121
119
 
122
120
  The Reports API lets you request reports about your inventory and orders.
123
121
 
124
- [Read more](http://rubydoc.info/gems/peddler/MWS/Reports)
122
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/Reports)
125
123
 
126
124
  ### Sellers
127
125
 
128
126
  The Sellers API lets sellers retrieve information about their seller account, such as the marketplaces they participate in.
129
127
 
130
- [Read more](http://rubydoc.info/gems/peddler/MWS/Sellers)
128
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/Sellers)
131
129
 
132
130
  ### Subscriptions
133
131
 
134
132
  The Amazon MWS Subscriptions API section enables you to subscribe to receive notifications that are relevant to your business with Amazon. With the operations in the Subscriptions API section, you can register to receive important information from Amazon without having to poll the Amazon MWS service. Instead, the information is sent directly to you when an event occurs to which you are subscribed.
135
133
 
136
- [Read more](http://rubydoc.info/gems/peddler/MWS/Subscriptions)
134
+ [Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/Subscriptions)
137
135
 
138
136
  [1]: https://travis-ci.org/hakanensari/peddler.png
139
137
  [2]:https://travis-ci.org/hakanensari/peddler
@@ -7,9 +7,210 @@ module MWS
7
7
  # information provided by the buyer from their Amazon account. It allows you
8
8
  # to authorize, capture, and refund payments, enabling a variety of payments
9
9
  # scenarios.
10
- #
11
- # @todo Not implemented
12
10
  class OffAmazonPayments < ::Peddler::Client
13
11
  path 'OffAmazonPayments/2013-01-01/'
12
+
13
+ # Sets order reference details such as the order total and a description for
14
+ # the order
15
+ #
16
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_SetOrderReferenceDetails.html
17
+ # @param amazon_order_reference_id [String]
18
+ # @param order_reference_attributes [Hash]
19
+ # @option order_reference_attributes [Struct, Hash] :order_total
20
+ # @option order_reference_attributes [String] :platform_id
21
+ # @option order_reference_attributes [String] :seller_note
22
+ # @option order_reference_attributes [Struct, Hash] :seller_order_attributes
23
+ # @return [Peddler::XMLParser]
24
+ def set_order_reference_details(amazon_order_reference_id, order_reference_attributes)
25
+ operation('SetOrderReferenceDetails')
26
+ .add('AmazonOrderReferenceId' => amazon_order_reference_id)
27
+ .add('OrderReferenceAttributes' => order_reference_attributes)
28
+
29
+ run
30
+ end
31
+
32
+ # Returns details about the Order Reference object and its current state
33
+ #
34
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_GetOrderReferenceDetails.html
35
+ # @param amazon_order_reference_id [String]
36
+ # @param opts [Hash]
37
+ # @option opts [String] address_consent_token
38
+ # @return [Peddler::XMLParser]
39
+ def get_order_reference_details(amazon_order_reference_id, opts = {})
40
+ operation('GetOrderReferenceDetails')
41
+ .add(opts.merge('AmazonOrderReferenceId' => amazon_order_reference_id))
42
+
43
+ run
44
+ end
45
+
46
+ # Confirms that the order reference is free of constraints and all required
47
+ # information has been set on the order reference
48
+ #
49
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_ConfirmOrderReference.html
50
+ # @param amazon_order_reference_id [String]
51
+ # @return [Peddler::XMLParser]
52
+ def confirm_order_reference(amazon_order_reference_id)
53
+ operation('ConfirmOrderReference')
54
+ .add('AmazonOrderReferenceId' => amazon_order_reference_id)
55
+
56
+ run
57
+ end
58
+
59
+ # Cancels a previously confirmed order reference
60
+ #
61
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_CancelOrderReference.html
62
+ # @param amazon_order_reference_id [String]
63
+ # @param opts [Hash]
64
+ # @option opts [String] cancelation_reason
65
+ # @return [Peddler::XMLParser]
66
+ def cancel_order_reference(amazon_order_reference_id, opts = {})
67
+ operation('CancelOrderReference')
68
+ .add(opts.merge('AmazonOrderReferenceId' => amazon_order_reference_id))
69
+
70
+ run
71
+ end
72
+
73
+ # Confirms that an order reference has been fulfilled (fully or partially)
74
+ # and that you do not expect to create any new authorizations on this order
75
+ # reference
76
+ #
77
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_CloseOrderReference.html
78
+ # @param amazon_order_reference_id [String]
79
+ # @param opts [Hash]
80
+ # @option opts [String] closure_reason
81
+ # @return [Peddler::XMLParser]
82
+ def close_order_reference(amazon_order_reference_id, opts = {})
83
+ operation('CloseOrderReference')
84
+ .add(opts.merge('AmazonOrderReferenceId' => amazon_order_reference_id))
85
+
86
+ run
87
+ end
88
+
89
+ # Reserves a specified amount against the payment method(s) stored in the
90
+ # order reference
91
+ #
92
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_Authorize.html
93
+ # @param amazon_order_reference_id [String]
94
+ # @param authorization_reference_id [String]
95
+ # @param authorization_amount [Struct, Hash]
96
+ # @param opts [Hash]
97
+ # @option opts [String] :seller_authorization_note
98
+ # @option opts [Integer] :transaction_timeout
99
+ # @option opts [Boolean] :capture_now
100
+ # @option opts [String] :soft_descriptor
101
+ # @return [Peddler::XMLParser]
102
+ def authorize(amazon_order_reference_id, authorization_reference_id, authorization_amount, opts = {})
103
+ operation('Authorize')
104
+ .add(opts.merge(
105
+ 'AmazonOrderReferenceId' => amazon_order_reference_id,
106
+ 'AuthorizationReferenceId' => authorization_reference_id,
107
+ 'AuthorizationAmount' => authorization_amount
108
+ ))
109
+
110
+ run
111
+ end
112
+
113
+ # Returns the status of a particular authorization and the total amount
114
+ # captured on the authorization
115
+ #
116
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_GetAuthorizationDetails.html
117
+ # @param amazon_authorization_id [String]
118
+ # @return [Peddler::XMLParser]
119
+ def get_authorization_details(amazon_authorization_id)
120
+ operation('GetAuthorizationDetails')
121
+ .add('AmazonAuthorizationId' => amazon_authorization_id)
122
+
123
+ run
124
+ end
125
+
126
+ # Captures funds from an authorized payment instrument
127
+ #
128
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_Capture.html
129
+ # @param amazon_authorization_id [String]
130
+ # @param capture_reference_id [String]
131
+ # @param capture_amount [Struct, Hash]
132
+ # @param opts [Hash]
133
+ # @option opts [String] :seller_capture_note
134
+ # @option opts [String] :soft_descriptor
135
+ # @return [Peddler::XMLParser]
136
+ def capture(amazon_authorization_id, capture_reference_id, capture_amount, opts = {})
137
+ operation('Capture')
138
+ .add(opts.merge(
139
+ 'AmazonAuthorizationId' => amazon_authorization_id,
140
+ 'CaptureReferenceId' => capture_reference_id,
141
+ 'CaptureAmount' => capture_amount
142
+ ))
143
+
144
+ run
145
+ end
146
+
147
+ # Returns the status of a particular capture and the total amount refunded
148
+ # on the capture
149
+ #
150
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_GetCaptureDetails.html
151
+ # @param amazon_capture_id [String]
152
+ # @return [Peddler::XMLParser]
153
+ def get_capture_details(amazon_capture_id)
154
+ operation('GetAuthorizationDetails')
155
+ .add('AmazonCaptureId' => amazon_capture_id)
156
+
157
+ run
158
+ end
159
+
160
+ # Closes an authorization
161
+ #
162
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_CloseAuthorization.html
163
+ # @param amazon_authorization_id [String]
164
+ # @param opts [Hash]
165
+ # @option opts [String] closure_reason
166
+ # @return [Peddler::XMLParser]
167
+ def close_authorization(amazon_authorization_id, opts = {})
168
+ operation('CloseAuthorization')
169
+ .add(opts.merge('AmazonAuthorizationId' => amazon_authorization_id))
170
+
171
+ run
172
+ end
173
+
174
+ # Refunds a previously captured amount
175
+ #
176
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_Refund.html
177
+ # @param amazon_capture_id [String]
178
+ # @param refund_reference_id [String]
179
+ # @param refund_amount [Struct, Hash]
180
+ # @param opts [Hash]
181
+ # @option opts [String] :seller_refund_note
182
+ # @option opts [String] :soft_descriptor
183
+ # @return [Peddler::XMLParser]
184
+ def refund(amazon_capture_id, refund_reference_id, refund_amount, opts ={})
185
+ operation('Refund')
186
+ .add(opts.merge(
187
+ 'AmazonCaptureId' => amazon_capture_id,
188
+ 'RefundReferenceId' => refund_reference_id,
189
+ 'RefundAmount' => refund_amount
190
+ ))
191
+
192
+ run
193
+ end
194
+
195
+ # Returns the status of a particular refund
196
+ #
197
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_GetRefundDetails.html
198
+ # @param amazon_refund_id [String]
199
+ # @return [Peddler::XMLParser]
200
+ def get_refund_details(amazon_refund_id)
201
+ operation('GetRefundDetails')
202
+ .add('AmazonRefundId' => 'amazon_refund_id')
203
+
204
+ run
205
+ end
206
+
207
+ # Returns the operational status of the API
208
+ #
209
+ # @see http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_GetServiceStatus.html
210
+ # @return [Peddler::XMLParser]
211
+ def get_service_status
212
+ operation('GetServiceStatus')
213
+ run
214
+ end
14
215
  end
15
216
  end
@@ -23,9 +23,22 @@ module Peddler
23
23
 
24
24
  def store(key, val)
25
25
  key = camelize(key) if key.is_a?(Symbol)
26
- val = val.iso8601 if val.respond_to?(:iso8601)
27
26
 
28
- __getobj__.store(key, val)
27
+
28
+ if val.respond_to?(:iso8601)
29
+ val = val.iso8601
30
+ elsif val.is_a?(Struct)
31
+ val = val.to_h
32
+ end
33
+
34
+ if val.is_a?(Hash)
35
+ val.each do |subkey, subval|
36
+ subkey = camelize(subkey) if subkey.is_a?(Symbol)
37
+ store([key, subkey].join('.'), subval)
38
+ end
39
+ else
40
+ __getobj__.store(key, val)
41
+ end
29
42
  end
30
43
 
31
44
  def update(hsh)
@@ -1,3 +1,3 @@
1
1
  module Peddler
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
@@ -0,0 +1,11 @@
1
+ require 'integration_helper'
2
+ require 'mws/off_amazon_payments'
3
+
4
+ class OffAmazonPaymentsTest < IntegrationTest
5
+ def test_gets_service_status
6
+ clients.each do |client|
7
+ res = client.get_service_status
8
+ refute_empty res.parse
9
+ end
10
+ end
11
+ end
@@ -11,10 +11,7 @@ VCR.configure do |c|
11
11
  interaction.ignore! if interaction.response.status.code >= 400
12
12
  end
13
13
 
14
- nondeterministic_params = %w(
15
- AWSAccessKeyId SellerId Signature Timestamp StartDate CreatedAfter
16
- Destination.AttributeList.member.1.Value
17
- )
14
+ nondeterministic_params = %w(Signature Timestamp StartDate CreatedAfter)
18
15
  matcher = VCR.request_matchers.uri_without_param(*nondeterministic_params)
19
16
  c.default_cassette_options = {
20
17
  match_requests_on: [:method, matcher],
@@ -28,6 +28,24 @@ class OperationTest < MiniTest::Test
28
28
  assert_equal 'foo', @operation.fetch('time')
29
29
  end
30
30
 
31
+ def test_stringifies_hash_values
32
+ @operation.store('Foo', { bar: 1 })
33
+ assert_equal 1, @operation.fetch('Foo.Bar')
34
+ refute @operation.has_key?('Foo')
35
+ end
36
+
37
+ def test_stringifies_nested_hash_values
38
+ @operation.store('Foo', { bar: { baz: 1 } })
39
+ assert_equal 1, @operation.fetch('Foo.Bar.Baz')
40
+ refute @operation.has_key?('Foo')
41
+ end
42
+
43
+ def test_stringifies_struct_values
44
+ @operation.store('Foo', Struct.new(:bar, :baz).new(1, 2))
45
+ assert_equal 1, @operation.fetch('Foo.Bar')
46
+ assert_equal 2, @operation.fetch('Foo.Baz')
47
+ end
48
+
31
49
  def test_update_returns_delegator
32
50
  assert_kind_of Peddler::Operation, @operation.add(foo: 'bar')
33
51
  end
@@ -0,0 +1,370 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://mws-eu.amazonservices.com/OffAmazonPayments/2013-01-01/?AWSAccessKeyId=AKIAI6X4QZRXSHGHABJA&Action=GetServiceStatus&SellerId=A2NEU7G6RGUKF&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-10T15%3A48%3A49Z&Signature=56rIwEkBi1wxN%2B9hwTK4z9FwuuTE43DYdp2CfgT93P8%3D
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
12
+ response:
13
+ status:
14
+ code: 200
15
+ message:
16
+ headers:
17
+ Date:
18
+ - Thu, 10 Apr 2014 15:48:49 GMT
19
+ Server:
20
+ - AmazonMWS
21
+ x-mws-request-id:
22
+ - 96fdb770-3c7b-49c8-8543-768634a978a6
23
+ x-mws-timestamp:
24
+ - '2014-04-10T15:48:49.316Z'
25
+ x-mws-response-context:
26
+ - fvmKcdMIGjhFuG6CK3XPGj9Yc3OUkeIOtp/fJCG8Fzq+niHCHYm75yQDy/JlSN3jyfBptrsdww55
27
+ NqVrcWrTmw==
28
+ Content-Type:
29
+ - text/xml
30
+ Content-Length:
31
+ - '392'
32
+ Vary:
33
+ - User-Agent
34
+ body:
35
+ encoding: UTF-8
36
+ string: |
37
+ <?xml version="1.0"?>
38
+ <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
39
+ <GetServiceStatusResult>
40
+ <Status>GREEN</Status>
41
+ <Timestamp>2014-04-10T15:48:49.316Z</Timestamp>
42
+ </GetServiceStatusResult>
43
+ <ResponseMetadata>
44
+ <RequestId>96fdb770-3c7b-49c8-8543-768634a978a6</RequestId>
45
+ </ResponseMetadata>
46
+ </GetServiceStatusResponse>
47
+ http_version:
48
+ recorded_at: Thu, 10 Apr 2014 15:48:49 GMT
49
+ - request:
50
+ method: post
51
+ uri: https://mws.amazonservices.jp/OffAmazonPayments/2013-01-01/?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-10T15%3A48%3A49Z&Signature=Kc0L%2FyBHzFQ9qfWlv2NRe1MgxpnHWJD3EFrLHF2wF%2F8%3D
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ User-Agent:
57
+ - Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
58
+ response:
59
+ status:
60
+ code: 200
61
+ message:
62
+ headers:
63
+ Date:
64
+ - Thu, 10 Apr 2014 15:48:49 GMT
65
+ Server:
66
+ - AmazonMWS
67
+ x-mws-request-id:
68
+ - a2c0769c-4d1b-493e-ae3c-402d5a5293b3
69
+ x-mws-timestamp:
70
+ - '2014-04-10T15:48:50.108Z'
71
+ x-mws-response-context:
72
+ - "/e3mjxVfP9icBAope2J3ldSWv6H0NDb3cJrjKc3coJjkwkOwlQpzmXkOJzqq/lHkDplRAU/CKRY5
73
+ Xt+6Gzeb/A=="
74
+ Content-Type:
75
+ - text/xml
76
+ Content-Length:
77
+ - '392'
78
+ Vary:
79
+ - User-Agent
80
+ body:
81
+ encoding: UTF-8
82
+ string: |
83
+ <?xml version="1.0"?>
84
+ <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
85
+ <GetServiceStatusResult>
86
+ <Status>GREEN</Status>
87
+ <Timestamp>2014-04-10T15:48:50.108Z</Timestamp>
88
+ </GetServiceStatusResult>
89
+ <ResponseMetadata>
90
+ <RequestId>a2c0769c-4d1b-493e-ae3c-402d5a5293b3</RequestId>
91
+ </ResponseMetadata>
92
+ </GetServiceStatusResponse>
93
+ http_version:
94
+ recorded_at: Thu, 10 Apr 2014 15:48:50 GMT
95
+ - request:
96
+ method: post
97
+ uri: https://mws.amazonservices.ca/OffAmazonPayments/2013-01-01/?AWSAccessKeyId=AKIAITHQMZUJROSOP27Q&Action=GetServiceStatus&SellerId=A2A7WNXBU01UJW&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-10T15%3A48%3A50Z&Signature=VyMIbIC3Yxp6O88o0CaES83TMz52rZITHpeTbcW%2B8eo%3D
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ''
101
+ headers:
102
+ User-Agent:
103
+ - Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
104
+ response:
105
+ status:
106
+ code: 200
107
+ message:
108
+ headers:
109
+ Date:
110
+ - Thu, 10 Apr 2014 15:48:50 GMT
111
+ Server:
112
+ - AmazonMWS
113
+ x-mws-request-id:
114
+ - 85b214f9-215b-4e17-8fe8-14f76d601c53
115
+ x-mws-timestamp:
116
+ - '2014-04-10T15:48:51.181Z'
117
+ x-mws-response-context:
118
+ - qCpjxUzLTWUdXJGmGP43MezphsK0/8Rnzmr36h0YvaSQYv1UxMg1xIbQKogNL0cawb9p5tJtpps=
119
+ Content-Type:
120
+ - text/xml
121
+ Content-Length:
122
+ - '392'
123
+ Vary:
124
+ - User-Agent
125
+ body:
126
+ encoding: UTF-8
127
+ string: |
128
+ <?xml version="1.0"?>
129
+ <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
130
+ <GetServiceStatusResult>
131
+ <Status>GREEN</Status>
132
+ <Timestamp>2014-04-10T15:48:51.181Z</Timestamp>
133
+ </GetServiceStatusResult>
134
+ <ResponseMetadata>
135
+ <RequestId>85b214f9-215b-4e17-8fe8-14f76d601c53</RequestId>
136
+ </ResponseMetadata>
137
+ </GetServiceStatusResponse>
138
+ http_version:
139
+ recorded_at: Thu, 10 Apr 2014 15:48:51 GMT
140
+ - request:
141
+ method: post
142
+ uri: https://mws.amazonservices.com/OffAmazonPayments/2013-01-01/?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-10T15%3A48%3A51Z&Signature=fGvTDjLUgnVwivFSA%2BUeefy7P622LNK6OC4bZKpf4pA%3D
143
+ body:
144
+ encoding: US-ASCII
145
+ string: ''
146
+ headers:
147
+ User-Agent:
148
+ - Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
149
+ response:
150
+ status:
151
+ code: 200
152
+ message:
153
+ headers:
154
+ Date:
155
+ - Thu, 10 Apr 2014 15:48:50 GMT
156
+ Server:
157
+ - AmazonMWS
158
+ x-mws-request-id:
159
+ - 73d9bb84-4c82-4725-8aab-8d619679c71e
160
+ x-mws-timestamp:
161
+ - '2014-04-10T15:48:51.683Z'
162
+ x-mws-response-context:
163
+ - xK+OzxmfG6Wue7OEyY/5JZ/aWGCll18MhGIU9Pf6Oi3dlTo+5vbqINvnkJDjxHwFQpRTZztevUwO
164
+ 1VSsh7qbxg==
165
+ Content-Type:
166
+ - text/xml
167
+ Content-Length:
168
+ - '392'
169
+ Vary:
170
+ - User-Agent
171
+ body:
172
+ encoding: UTF-8
173
+ string: |
174
+ <?xml version="1.0"?>
175
+ <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
176
+ <GetServiceStatusResult>
177
+ <Status>GREEN</Status>
178
+ <Timestamp>2014-04-10T15:48:51.683Z</Timestamp>
179
+ </GetServiceStatusResult>
180
+ <ResponseMetadata>
181
+ <RequestId>73d9bb84-4c82-4725-8aab-8d619679c71e</RequestId>
182
+ </ResponseMetadata>
183
+ </GetServiceStatusResponse>
184
+ http_version:
185
+ recorded_at: Thu, 10 Apr 2014 15:48:51 GMT
186
+ - request:
187
+ method: post
188
+ uri: https://mws-eu.amazonservices.com/OffAmazonPayments/2013-01-01/?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-10T15%3A48%3A51Z&Signature=wsuG%2FLUxVJ0jhKiTS6c5QtbDqZWP9lOXNTeMNpdKbnE%3D
189
+ body:
190
+ encoding: US-ASCII
191
+ string: ''
192
+ headers:
193
+ User-Agent:
194
+ - Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
195
+ response:
196
+ status:
197
+ code: 200
198
+ message:
199
+ headers:
200
+ Date:
201
+ - Thu, 10 Apr 2014 15:48:51 GMT
202
+ Server:
203
+ - AmazonMWS
204
+ x-mws-request-id:
205
+ - 89d7b327-be1d-4c49-9725-575c9ec12e81
206
+ x-mws-timestamp:
207
+ - '2014-04-10T15:48:51.959Z'
208
+ x-mws-response-context:
209
+ - jJeilBbvTTOS+P9jCC+9f+ixtYm+vQB8vrIivS4ys8DntiHIgt7zLo+bT1Wqex5Xji3Efh6C8M+B
210
+ 4SY81oj+0g==
211
+ Content-Type:
212
+ - text/xml
213
+ Content-Length:
214
+ - '392'
215
+ Vary:
216
+ - User-Agent
217
+ body:
218
+ encoding: UTF-8
219
+ string: |
220
+ <?xml version="1.0"?>
221
+ <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
222
+ <GetServiceStatusResult>
223
+ <Status>GREEN</Status>
224
+ <Timestamp>2014-04-10T15:48:51.959Z</Timestamp>
225
+ </GetServiceStatusResult>
226
+ <ResponseMetadata>
227
+ <RequestId>89d7b327-be1d-4c49-9725-575c9ec12e81</RequestId>
228
+ </ResponseMetadata>
229
+ </GetServiceStatusResponse>
230
+ http_version:
231
+ recorded_at: Thu, 10 Apr 2014 15:48:51 GMT
232
+ - request:
233
+ method: post
234
+ uri: https://mws-eu.amazonservices.com/OffAmazonPayments/2013-01-01/?AWSAccessKeyId=AKIAI4ZNSD76DH7UBRDA&Action=GetServiceStatus&SellerId=A2DP6GIDYN6OTH&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-10T15%3A48%3A51Z&Signature=ZiZkUaVvQSDfNJUsJcEQOqAm5n9G%2FIunU4VONpf8oJ0%3D
235
+ body:
236
+ encoding: US-ASCII
237
+ string: ''
238
+ headers:
239
+ User-Agent:
240
+ - Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
241
+ response:
242
+ status:
243
+ code: 200
244
+ message:
245
+ headers:
246
+ Date:
247
+ - Thu, 10 Apr 2014 15:48:51 GMT
248
+ Server:
249
+ - AmazonMWS
250
+ x-mws-request-id:
251
+ - 0407a47b-21af-4641-99be-08d2fa95490b
252
+ x-mws-timestamp:
253
+ - '2014-04-10T15:48:52.166Z'
254
+ x-mws-response-context:
255
+ - gatd3LMBxfnDifqVFLhsdUur9v0V8dqHetv1to3jpww1deuec7uSYWnCMn/pwH6aqwjstwM+rirv
256
+ t5qzNztADw==
257
+ Content-Type:
258
+ - text/xml
259
+ Content-Length:
260
+ - '392'
261
+ Vary:
262
+ - User-Agent
263
+ body:
264
+ encoding: UTF-8
265
+ string: |
266
+ <?xml version="1.0"?>
267
+ <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
268
+ <GetServiceStatusResult>
269
+ <Status>GREEN</Status>
270
+ <Timestamp>2014-04-10T15:48:52.166Z</Timestamp>
271
+ </GetServiceStatusResult>
272
+ <ResponseMetadata>
273
+ <RequestId>0407a47b-21af-4641-99be-08d2fa95490b</RequestId>
274
+ </ResponseMetadata>
275
+ </GetServiceStatusResponse>
276
+ http_version:
277
+ recorded_at: Thu, 10 Apr 2014 15:48:52 GMT
278
+ - request:
279
+ method: post
280
+ uri: https://mws-eu.amazonservices.com/OffAmazonPayments/2013-01-01/?AWSAccessKeyId=AKIAJLUHOXLR5S2L6A6A&Action=GetServiceStatus&SellerId=A2APQUVDBVWV7E&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-10T15%3A48%3A52Z&Signature=saz8FzNCoCI7Abnonr%2Bb85laqF45LsHZSqlp6Mdr2lI%3D
281
+ body:
282
+ encoding: US-ASCII
283
+ string: ''
284
+ headers:
285
+ User-Agent:
286
+ - Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
287
+ response:
288
+ status:
289
+ code: 200
290
+ message:
291
+ headers:
292
+ Date:
293
+ - Thu, 10 Apr 2014 15:48:52 GMT
294
+ Server:
295
+ - AmazonMWS
296
+ x-mws-request-id:
297
+ - 25ac9364-af70-4f27-bd85-3c886109105d
298
+ x-mws-timestamp:
299
+ - '2014-04-10T15:48:52.415Z'
300
+ x-mws-response-context:
301
+ - h3COGxlgkQjc5Hc28vSTXo/eTrT+qruv4F8C7wxPyxVT/0TL5CpH3a69w16axgedy2M+Vc2en91e
302
+ KmKf+bnOhg==
303
+ Content-Type:
304
+ - text/xml
305
+ Content-Length:
306
+ - '392'
307
+ Vary:
308
+ - User-Agent
309
+ body:
310
+ encoding: UTF-8
311
+ string: |
312
+ <?xml version="1.0"?>
313
+ <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
314
+ <GetServiceStatusResult>
315
+ <Status>GREEN</Status>
316
+ <Timestamp>2014-04-10T15:48:52.415Z</Timestamp>
317
+ </GetServiceStatusResult>
318
+ <ResponseMetadata>
319
+ <RequestId>25ac9364-af70-4f27-bd85-3c886109105d</RequestId>
320
+ </ResponseMetadata>
321
+ </GetServiceStatusResponse>
322
+ http_version:
323
+ recorded_at: Thu, 10 Apr 2014 15:48:52 GMT
324
+ - request:
325
+ method: post
326
+ uri: https://mws-eu.amazonservices.com/OffAmazonPayments/2013-01-01/?AWSAccessKeyId=AKIAIORT7554FEBW7UBQ&Action=GetServiceStatus&SellerId=A7ZXDJZD3UIRG&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-10T15%3A48%3A52Z&Signature=%2BKGHKshUaQWhuI0WvQwJkS4XAaB%2BbUA1wm1BGzHOyWM%3D
327
+ body:
328
+ encoding: US-ASCII
329
+ string: ''
330
+ headers:
331
+ User-Agent:
332
+ - Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
333
+ response:
334
+ status:
335
+ code: 200
336
+ message:
337
+ headers:
338
+ Date:
339
+ - Thu, 10 Apr 2014 15:48:52 GMT
340
+ Server:
341
+ - AmazonMWS
342
+ x-mws-request-id:
343
+ - 9d08eb0f-a004-46d8-9b5a-caaaacf2df67
344
+ x-mws-timestamp:
345
+ - '2014-04-10T15:48:52.637Z'
346
+ x-mws-response-context:
347
+ - nb813e72OUAEbdD8r5tq2nUdykYstdbkCRaNQMFWJpYy4jML7/LMsRT2uXcWDTCyevp6X1R/oFUz
348
+ cPa2h1bdrA==
349
+ Content-Type:
350
+ - text/xml
351
+ Content-Length:
352
+ - '392'
353
+ Vary:
354
+ - User-Agent
355
+ body:
356
+ encoding: UTF-8
357
+ string: |
358
+ <?xml version="1.0"?>
359
+ <GetServiceStatusResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
360
+ <GetServiceStatusResult>
361
+ <Status>GREEN</Status>
362
+ <Timestamp>2014-04-10T15:48:52.637Z</Timestamp>
363
+ </GetServiceStatusResult>
364
+ <ResponseMetadata>
365
+ <RequestId>9d08eb0f-a004-46d8-9b5a-caaaacf2df67</RequestId>
366
+ </ResponseMetadata>
367
+ </GetServiceStatusResponse>
368
+ http_version:
369
+ recorded_at: Thu, 10 Apr 2014 15:48:52 GMT
370
+ recorded_with: VCR 2.9.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peddler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeff
@@ -168,6 +168,7 @@ files:
168
168
  - lib/peddler/xml_parser.rb
169
169
  - test/helper.rb
170
170
  - test/integration/test_feeds.rb
171
+ - test/integration/test_off_amazon_payments.rb
171
172
  - test/integration/test_orders.rb
172
173
  - test/integration/test_products.rb
173
174
  - test/integration/test_recommendations.rb
@@ -184,6 +185,7 @@ files:
184
185
  - test/unit/peddler/test_xml_parser.rb
185
186
  - test/unit/test_peddler.rb
186
187
  - test/vcr_cassettes/Feeds.yml
188
+ - test/vcr_cassettes/OffAmazonPayments.yml
187
189
  - test/vcr_cassettes/Orders.yml
188
190
  - test/vcr_cassettes/Products.yml
189
191
  - test/vcr_cassettes/Recommendations.yml
@@ -216,6 +218,7 @@ summary: Wraps the Amazon MWS APIs
216
218
  test_files:
217
219
  - test/helper.rb
218
220
  - test/integration/test_feeds.rb
221
+ - test/integration/test_off_amazon_payments.rb
219
222
  - test/integration/test_orders.rb
220
223
  - test/integration/test_products.rb
221
224
  - test/integration/test_recommendations.rb
@@ -232,6 +235,7 @@ test_files:
232
235
  - test/unit/peddler/test_xml_parser.rb
233
236
  - test/unit/test_peddler.rb
234
237
  - test/vcr_cassettes/Feeds.yml
238
+ - test/vcr_cassettes/OffAmazonPayments.yml
235
239
  - test/vcr_cassettes/Orders.yml
236
240
  - test/vcr_cassettes/Products.yml
237
241
  - test/vcr_cassettes/Recommendations.yml