Skip to content

Commit

Permalink
Release v0.23.0.pre
Browse files Browse the repository at this point in the history
  • Loading branch information
citin authored May 25, 2023
1 parent f2fe19e commit 640f188
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### v0.23.0.pre

* feature
* Add optional `paginated: false` parameter to `session.categories_view.products(paginated: false)`

### v0.22.1.pre

* enhancements
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.22.2.pre)
beyond_api (0.23.0.pre)
faraday (~> 1.9.0)

GEM
Expand Down
6 changes: 2 additions & 4 deletions lib/beyond_api/resources/categories_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@ def find(category_id)
# @products = session.categories_view.products("681beef2-cd3e-4ce3-8034-4d07c1184447", { size: 100, page: 0 })
#
def products(category_id, params = {})
response, status = BeyondApi::Request.get(@session,
"/product-view/categories/#{category_id}/products",
params)
path = "/product-view/categories/#{category_id}/products"

handle_response(response, status)
handle_all_request(path, :products, params)
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,5 +1,5 @@
# frozen_string_literal: true

module BeyondApi
VERSION = "0.22.2.pre"
VERSION = "0.23.0.pre"
end

0 comments on commit 640f188

Please sign in to comment.