beyond_api 0.22.1.pre → 0.23.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1c17d3c33972bbb2122a03c118ea64589d54b047d59a365d9ebeaba20b4ecd2
4
- data.tar.gz: 98c14c1abd45b93590681d6f30cf76b626658b6d0809eab436af6e6b74751e1b
3
+ metadata.gz: 88d9a67d129db14679f16fd1728f729befc0c1f835da84004a7ae6b372747d74
4
+ data.tar.gz: 6f94b54fdc048cb9e4c9eddb4d19cb5376891d9e04d663b4e9fc8c6139de16f7
5
5
  SHA512:
6
- metadata.gz: 0dbfddd7937bbb4c38e1f5d8c1535bba4c42d535e2374b94eaa53c28c23904a3d60defb6087d7e4b25698f11c171ae09439a6f3d955066ea293dc2517857a465
7
- data.tar.gz: '02159d93b4bd6e491ab63c842582d00d22182394f73064d9a411bdb8d883a36f155f2ecbb6bfc71086abffd94e81a7be8212d0e464513c69fd98bff3251faf51'
6
+ metadata.gz: 621abe68a32f9cffc620b3af736b108d8e7ffe05c06be660216d8e1adb55f3695fde69be2324d52454f3f11593c98d2191f62df437df009bb536416c2809d16b
7
+ data.tar.gz: 5d9e908136b7ad10760379b5f12078e9d11bd7d8d58b65cc12d8ccb5161ea10a2be816f161356d00f4881a81831f7630bdc56175101ba7458ead3e3a5b86bd34
data/CHANGELOG.md CHANGED
@@ -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
+
1
6
  ### v0.22.1.pre
2
7
 
3
8
  * enhancements
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beyond_api (0.22.1.pre)
4
+ beyond_api (0.23.0.pre)
5
5
  faraday (~> 1.9.0)
6
6
 
7
7
  GEM
@@ -15,5 +15,17 @@ module BeyondApi
15
15
 
16
16
  super(data["message"] || data["error_description"])
17
17
  end
18
+
19
+ def to_json
20
+ {
21
+ error_id: @error_id,
22
+ message: @message,
23
+ details: @details,
24
+ error: @error,
25
+ error_description: @error_description,
26
+ trace_id: @trace_id,
27
+ status_code: @status_code
28
+ }
29
+ end
18
30
  end
19
31
  end
@@ -65,11 +65,9 @@ module BeyondApi
65
65
  # @products = session.categories_view.products("681beef2-cd3e-4ce3-8034-4d07c1184447", { size: 100, page: 0 })
66
66
  #
67
67
  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"
71
69
 
72
- handle_response(response, status)
70
+ handle_all_request(path, :products, params)
73
71
  end
74
72
 
75
73
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BeyondApi
4
- VERSION = "0.22.1.pre"
4
+ VERSION = "0.23.0.pre"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1.pre
4
+ version: 0.23.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unai Abrisketa
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2023-03-29 00:00:00.000000000 Z
14
+ date: 2023-05-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  - !ruby/object:Gem::Version
244
244
  version: 1.3.1
245
245
  requirements: []
246
- rubygems_version: 3.4.1
246
+ rubygems_version: 3.3.7
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: Ruby client to access the Beyond API