active_fulfillment 3.2.7 → 3.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/active_fulfillment/services/amazon_mws.rb +1 -1
- data/lib/active_fulfillment/version.rb +1 -1
- data/test/unit/services/amazon_mws_test.rb +5 -3
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa2427ef745737a0dfb2284df85693cec175294067469843760134665ef85415
|
4
|
+
data.tar.gz: 856771fc183ba05a3160eb6864256e6fa7393f6fc19327192e439581fdf12e70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c3c4241f4623d7313772e6a8200fe13b6307edd73e3289e0549a5601d30304f31daae6ebb6246724f62e2f1e2b31d138c93c9f6fe1da9b5244fde553f656f93
|
7
|
+
data.tar.gz: cf6c27339ebe46e2afed84510de1f7cf9635e1facd208ad209644fe46cf4e3f053da4782ee19251d31bd9c2a5accf166123bf749ff9afaea0b83c1f6c8689cd0
|
data/CHANGELOG.md
CHANGED
@@ -356,6 +356,7 @@ module ActiveFulfillment
|
|
356
356
|
opts["SignatureVersion"] = SIGNATURE_VERSION unless opts["SignatureVersion"]
|
357
357
|
opts["SellerId"] = @seller_id unless opts["SellerId"] || !@seller_id
|
358
358
|
opts["MWSAuthToken"] = @mws_auth_token unless opts["MWSAuthToken"] || !@mws_auth_token
|
359
|
+
opts["MarketplaceId"] = marketplace_id
|
359
360
|
opts
|
360
361
|
end
|
361
362
|
|
@@ -366,7 +367,6 @@ module ActiveFulfillment
|
|
366
367
|
:DisplayableOrderId => order_id.to_s,
|
367
368
|
:DisplayableOrderDateTime => options[:order_date].utc.iso8601,
|
368
369
|
:ShippingSpeedCategory => options[:shipping_method],
|
369
|
-
:MarketplaceId => marketplace_id,
|
370
370
|
}
|
371
371
|
params[:DisplayableOrderComment] = options[:comment] if options[:comment]
|
372
372
|
|
@@ -89,13 +89,14 @@ class AmazonMarketplaceWebServiceTest < Minitest::Test
|
|
89
89
|
"FeedType" => "_POST_INVENTORY_AVAILABILITY_DATA_",
|
90
90
|
"Merchant" => "SuperMerchant123"
|
91
91
|
}
|
92
|
-
expected_keys = ["AWSAccessKeyId", "Action", "FeedType", "Merchant", "SignatureMethod", "SignatureVersion", "Timestamp", "Version"]
|
92
|
+
expected_keys = ["AWSAccessKeyId", "Action", "FeedType", "Merchant", "SignatureMethod", "SignatureVersion", "Timestamp", "Version", "MarketplaceId"]
|
93
93
|
opts = @service.build_basic_api_query(options)
|
94
94
|
assert_equal expected_keys.sort, opts.keys.map(&:to_s).sort
|
95
95
|
assert_equal "login", opts["AWSAccessKeyId"]
|
96
96
|
assert_equal ActiveFulfillment::AmazonMarketplaceWebService::SIGNATURE_VERSION, opts["SignatureVersion"]
|
97
97
|
assert_equal "Hmac#{ActiveFulfillment::AmazonMarketplaceWebService::SIGNATURE_METHOD}", opts["SignatureMethod"]
|
98
98
|
assert_equal ActiveFulfillment::AmazonMarketplaceWebService::VERSION, opts["Version"]
|
99
|
+
assert_equal "ATVPDKIKX0DER", opts["MarketplaceId"]
|
99
100
|
end
|
100
101
|
|
101
102
|
def test_build_inventory_list_request
|
@@ -113,7 +114,7 @@ class AmazonMarketplaceWebServiceTest < Minitest::Test
|
|
113
114
|
|
114
115
|
def test_create_signature
|
115
116
|
service = ActiveFulfillment::AmazonMarketplaceWebService.new(:login => "0PExampleR2", :password => "sekrets")
|
116
|
-
expected_signature = "
|
117
|
+
expected_signature = "Zde8skcLEYlpbj27jSdTVGZ%2FWNcs4gDLXMdcQ8cvOrY%3D"
|
117
118
|
options = {
|
118
119
|
"AWSAccessKeyId" => "0PExampleR2",
|
119
120
|
"Action" => "SubmitFeed",
|
@@ -123,7 +124,8 @@ class AmazonMarketplaceWebServiceTest < Minitest::Test
|
|
123
124
|
"SignatureMethod" => "HmacSHA256",
|
124
125
|
"SignatureVersion" => "2",
|
125
126
|
"Timestamp" => "2009-08-20T01:10:27.607Z",
|
126
|
-
"Version" => "2009-01-01"
|
127
|
+
"Version" => "2009-01-01",
|
128
|
+
"MarketplaceId" => "ATVPDKIKX0DER"
|
127
129
|
}
|
128
130
|
|
129
131
|
uri = URI.parse("https://#{ActiveFulfillment::AmazonMarketplaceWebService::ENDPOINTS[:us]}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_fulfillment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Fauser
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -192,14 +192,14 @@ specification_version: 4
|
|
192
192
|
summary: Framework and tools for dealing with shipping, tracking and order fulfillment
|
193
193
|
services.
|
194
194
|
test_files:
|
195
|
-
- test/remote/james_and_james_test.rb
|
196
|
-
- test/remote/amazon_mws_test.rb
|
197
|
-
- test/remote/shipwire_test.rb
|
198
|
-
- test/remote/webgistix_test.rb
|
199
|
-
- test/test_helper.rb
|
200
195
|
- test/unit/base_test.rb
|
201
|
-
- test/unit/services/james_and_james_test.rb
|
202
196
|
- test/unit/services/amazon_mws_test.rb
|
203
|
-
- test/unit/services/shipwire_test.rb
|
204
|
-
- test/unit/services/shopify_api_test.rb
|
205
197
|
- test/unit/services/webgistix_test.rb
|
198
|
+
- test/unit/services/shopify_api_test.rb
|
199
|
+
- test/unit/services/shipwire_test.rb
|
200
|
+
- test/unit/services/james_and_james_test.rb
|
201
|
+
- test/test_helper.rb
|
202
|
+
- test/remote/amazon_mws_test.rb
|
203
|
+
- test/remote/webgistix_test.rb
|
204
|
+
- test/remote/shipwire_test.rb
|
205
|
+
- test/remote/james_and_james_test.rb
|