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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f065f33d0e6042c51a29f8dabbf5def0bd24e35156957c2ec96d6d605761fa9e
4
- data.tar.gz: 16ea21edfae1a46c05307c77ad159409b4d8c4beaa217c4436c849321da89d59
3
+ metadata.gz: fa2427ef745737a0dfb2284df85693cec175294067469843760134665ef85415
4
+ data.tar.gz: 856771fc183ba05a3160eb6864256e6fa7393f6fc19327192e439581fdf12e70
5
5
  SHA512:
6
- metadata.gz: 7be8875393fb0a922f2784b593e2ce551013a2f0d8570d25685388c05febbe6c65802e107bbfd6a96a8a76cacf7510357342e10e1da7c343ff07e6cd4f14f243
7
- data.tar.gz: 6be7a305e19e7e20de11500c2ce669ec13c933329e488d2770417c0e8f7faa823e16e26198cb93904739dfee8e5c1f46ef78308980efeb1ae27ce658e8d3f5dd
6
+ metadata.gz: 4c3c4241f4623d7313772e6a8200fe13b6307edd73e3289e0549a5601d30304f31daae6ebb6246724f62e2f1e2b31d138c93c9f6fe1da9b5244fde553f656f93
7
+ data.tar.gz: cf6c27339ebe46e2afed84510de1f7cf9635e1facd208ad209644fe46cf4e3f053da4782ee19251d31bd9c2a5accf166123bf749ff9afaea0b83c1f6c8689cd0
@@ -1,5 +1,8 @@
1
1
  # ActiveFulfillment changelog
2
2
 
3
+ ### Version 3.2.8 (December 20, 2019)
4
+ - Sending MarketplaceId for all Amazon requests
5
+
3
6
  ### Version 3.2.7 (November 30, 2018)
4
7
  - Fixing Amazon endpoint used for the CA and MX marketplaces
5
8
 
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module ActiveFulfillment
3
- VERSION = "3.2.7"
3
+ VERSION = "3.2.8"
4
4
  end
@@ -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 = "39XxH6iKLysjjDmWZSkyr2z8iSxfECHBYE1Pd0Qqpwo%3D"
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.7
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-09-12 00:00:00.000000000 Z
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