magento 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4850d2918cd100c473f235d63ae185e51daf8cd0f94e9670bd660816b8fa2fd8
4
- data.tar.gz: fd1e48ed85a8c881f6c99a22bd8c0f503c1836e5a59ff56d603ae4cf25b08dd2
3
+ metadata.gz: 3d277c39075219ce0c98d9ce89efaa2ad825723bf9a9765e9372a59d66704375
4
+ data.tar.gz: 96534c4a080cd904572aef9b01f96cef5ec59ff44f424cd93c876cb8e9feb4f2
5
5
  SHA512:
6
- metadata.gz: b4f7f6b02ac69f520cf5dbc28d7cccd351bb284fd6ef7da5d75c67eac31d1267a320d7aa93ae475ee8e08c46006db1d4c8dcc78a984b471df3a1325daf0044b4
7
- data.tar.gz: 55c473b7835f4725c3bab994a84f494d61f677b7ace0a79f03c942f6e2435883f4103d71c2cf2e3c184cd70ccc0a0b35bbfb71512994c32d7c85d14316d0778a
6
+ metadata.gz: 719ff5a9501f7f279967ed6d2afa134383df5f4dd83a293f825d068a0eaeb5c718fd47f16f6d745aeb71d26045cecb3fb5911684367feef1a8ac558a205f8de7
7
+ data.tar.gz: 367aa9031d22e670ab8bca2a2dd380c0af4dd3077fa9701bb80a61f5b768cd02055baf43892fb10542b8e0630dd22ffb01016821e07c7c8cab28b15a6f4ae477
data/README.md CHANGED
@@ -77,7 +77,7 @@ Ruby library to consume the magento 2 api
77
77
  Add in your Gemfile
78
78
 
79
79
  ```rb
80
- gem 'magento', '~> 0.29.0'
80
+ gem 'magento', '~> 0.30.0'
81
81
  ```
82
82
 
83
83
  or run
@@ -35,6 +35,33 @@ module Magento
35
35
  "inventory/get-product-salable-quantity/#{sku}/#{stock_id}"
36
36
  ).parse
37
37
  end
38
+
39
+ #
40
+ # ==== Example
41
+ #
42
+ # Inventory.update_source_items(
43
+ # [
44
+ # {
45
+ # "sku": "new_product1",
46
+ # "source_code": "central",
47
+ # "quantity": 1000,
48
+ # "status": 1
49
+ # },
50
+ # {
51
+ # "sku": "new_product1",
52
+ # "source_code": "east",
53
+ # "quantity": 2000,
54
+ # "status": 1
55
+ # }
56
+ # ]
57
+ # )
58
+ # # => []
59
+ #
60
+ # @return Array
61
+ def update_source_items(source_items)
62
+ body = { sourceItems: source_items }
63
+ Request.new.post('inventory/source-items', body).parse
64
+ end
38
65
  end
39
66
  end
40
67
  end
@@ -1,3 +1,3 @@
1
1
  module Magento
2
- VERSION = '0.29.0'
2
+ VERSION = '0.30.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magento
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wallas Faria