active_fulfillment 3.0.5 → 3.0.6

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: 4abcc68151d137ae310945d2e1d8a6ba6a480db4
4
- data.tar.gz: 6279a4b462c6bef38a2906680301f0d40e68c51b
3
+ metadata.gz: 5862a2678b774dece9ee0fc374ad815810712edb
4
+ data.tar.gz: 4c91d3c14beb1a062a21f789b51ab111c0ddca5c
5
5
  SHA512:
6
- metadata.gz: d631a329ee0646842fe0f46592d30a9ac54b8366224b718f87c1a68d05783d92b4a2f6d1c6979614b9f0a8d31bd34e7d0ac0aeeacc61fd98949324be28c455ca
7
- data.tar.gz: 8c6b07270c7e23c33d38efe0de3a94b487e8ef44f718e50f64ee3134fc120d112312e086dae37631e1cbb296bec4a5cc57c1191c1ccb1678ec3d8440abe5a6c4
6
+ metadata.gz: dd7d0ecfbb9dc7012cf9f369663a154480e80fafd88475cf57dbd4820f144983c8fd819158188bd4270d52b5d3b0dd76705dae5d18f3b408e68d4c9077c21a74
7
+ data.tar.gz: e8a2f481132ff1ff040b442d1a2cbad368860479e9824e6845e37f3d513e153e874f0f84ad32f998b2f1b0750e44141eda5aa419519ba9fdcb3302dfd667e7d6
@@ -237,7 +237,7 @@ module ActiveFulfillment
237
237
  document.css('InventorySupplyList > member'.freeze).each do |node|
238
238
  params = node.elements.to_a.each_with_object({}) { |elem, hash| hash[elem.name] = elem.text }
239
239
 
240
- response[:stock_levels][params['SellerSKU']] = params['InStockSupplyQuantity'].to_i
240
+ response[:stock_levels][params['SellerSKU']] = params['TotalSupplyQuantity'].to_i
241
241
  end
242
242
 
243
243
  next_token = document.at_css('NextToken'.freeze)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module ActiveFulfillment
3
- VERSION = "3.0.5"
3
+ VERSION = "3.0.6"
4
4
  end
@@ -292,7 +292,7 @@ class AmazonMarketplaceWebServiceTest < Minitest::Test
292
292
  response = @service.fetch_stock_levels
293
293
  assert response.success?
294
294
  assert_equal 202, response.stock_levels['GN-00-01A']
295
- assert_equal 199, response.stock_levels['GN-00-02A']
295
+ assert_equal 240, response.stock_levels['GN-00-02A']
296
296
  end
297
297
 
298
298
  def test_get_inventory_multipage
@@ -311,9 +311,9 @@ class AmazonMarketplaceWebServiceTest < Minitest::Test
311
311
  assert response.success?
312
312
 
313
313
  assert_equal 202, response.stock_levels['GN-00-01A']
314
- assert_equal 199, response.stock_levels['GN-00-02A']
315
- assert_equal 0, response.stock_levels['GN-01-01A']
316
- assert_equal 5259, response.stock_levels['GN-01-02A']
314
+ assert_equal 240, response.stock_levels['GN-00-02A']
315
+ assert_equal 123, response.stock_levels['GN-01-01A']
316
+ assert_equal 321, response.stock_levels['GN-01-02A']
317
317
  end
318
318
 
319
319
  def test_get_inventory_multipage_missing_stock
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.0.5
4
+ version: 3.0.6
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: 2017-01-18 00:00:00.000000000 Z
12
+ date: 2017-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport