Skip to content

Commit 640f188

Browse files
author
Andres Bernardi
authored
Release v0.23.0.pre
1 parent f2fe19e commit 640f188

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### v0.23.0.pre
2+
3+
* feature
4+
* Add optional `paginated: false` parameter to `session.categories_view.products(paginated: false)`
5+
16
### v0.22.1.pre
27

38
* enhancements

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.22.2.pre)
4+
beyond_api (0.23.0.pre)
55
faraday (~> 1.9.0)
66

77
GEM

lib/beyond_api/resources/categories_view.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ def find(category_id)
6565
# @products = session.categories_view.products("681beef2-cd3e-4ce3-8034-4d07c1184447", { size: 100, page: 0 })
6666
#
6767
def products(category_id, params = {})
68-
response, status = BeyondApi::Request.get(@session,
69-
"/product-view/categories/#{category_id}/products",
70-
params)
68+
path = "/product-view/categories/#{category_id}/products"
7169

72-
handle_response(response, status)
70+
handle_all_request(path, :products, params)
7371
end
7472

7573
#

lib/beyond_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module BeyondApi
4-
VERSION = "0.22.2.pre"
4+
VERSION = "0.23.0.pre"
55
end

0 commit comments

Comments
 (0)