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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5862a2678b774dece9ee0fc374ad815810712edb
|
4
|
+
data.tar.gz: 4c91d3c14beb1a062a21f789b51ab111c0ddca5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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['
|
240
|
+
response[:stock_levels][params['SellerSKU']] = params['TotalSupplyQuantity'].to_i
|
241
241
|
end
|
242
242
|
|
243
243
|
next_token = document.at_css('NextToken'.freeze)
|
@@ -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
|
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
|
315
|
-
assert_equal
|
316
|
-
assert_equal
|
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.
|
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
|
12
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|