Skip to content

Commit 5032d36

Browse files
authored
v0.5.1.pre
* bug-fixes * Fix `adjust_stock_level` method
1 parent e0ab3ce commit 5032d36

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### v0.5.1.pre
2+
3+
* bug-fixes
4+
* Fix `adjust_stock_level` method
5+
16
### v0.5.0.pre
27

38
* bug-fixes

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
beyond_api (0.5.0.pre)
4+
beyond_api (0.5.1.pre)
55
faraday (~> 0.15)
66

77
GEM

lib/beyond_api/resources/variations/availability.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module VariationAvailability
2626
# @availability = session.variations.adjust_stock_level(product_id, variation_id, { relativeAmount => -1 })
2727
#
2828
def adjust_stock_level(product_id, variation_id, body)
29-
response, status = BeyondApi::Request.post(@session, "/products/#{product_id}/variations/#{variation_id}/availability/enable-stock-management", body)
29+
response, status = BeyondApi::Request.post(@session, "/products/#{product_id}/variations/#{variation_id}/availability/adjust-available-stock", body)
3030

3131
handle_response(response, status)
3232
end

lib/beyond_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module BeyondApi
2-
VERSION = "0.5.0.pre".freeze
2+
VERSION = "0.5.1.pre".freeze
33
end

0 commit comments

Comments
 (0)