Skip to content

Commit

Permalink
v0.5.1.pre
Browse files Browse the repository at this point in the history
* bug-fixes
  * Fix `adjust_stock_level` method
  • Loading branch information
gersanco authored Dec 3, 2019
1 parent e0ab3ce commit 5032d36
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### v0.5.1.pre

* bug-fixes
* Fix `adjust_stock_level` method

### v0.5.0.pre

* bug-fixes
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
beyond_api (0.5.0.pre)
beyond_api (0.5.1.pre)
faraday (~> 0.15)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/beyond_api/resources/variations/availability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module VariationAvailability
# @availability = session.variations.adjust_stock_level(product_id, variation_id, { relativeAmount => -1 })
#
def adjust_stock_level(product_id, variation_id, body)
response, status = BeyondApi::Request.post(@session, "/products/#{product_id}/variations/#{variation_id}/availability/enable-stock-management", body)
response, status = BeyondApi::Request.post(@session, "/products/#{product_id}/variations/#{variation_id}/availability/adjust-available-stock", body)

handle_response(response, status)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/beyond_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module BeyondApi
VERSION = "0.5.0.pre".freeze
VERSION = "0.5.1.pre".freeze
end

0 comments on commit 5032d36

Please sign in to comment.