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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/beyond_api/error.rb +12 -0
- data/lib/beyond_api/resources/categories_view.rb +2 -4
- data/lib/beyond_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88d9a67d129db14679f16fd1728f729befc0c1f835da84004a7ae6b372747d74
|
4
|
+
data.tar.gz: 6f94b54fdc048cb9e4c9eddb4d19cb5376891d9e04d663b4e9fc8c6139de16f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 621abe68a32f9cffc620b3af736b108d8e7ffe05c06be660216d8e1adb55f3695fde69be2324d52454f3f11593c98d2191f62df437df009bb536416c2809d16b
|
7
|
+
data.tar.gz: 5d9e908136b7ad10760379b5f12078e9d11bd7d8d58b65cc12d8ccb5161ea10a2be816f161356d00f4881a81831f7630bdc56175101ba7458ead3e3a5b86bd34
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/beyond_api/error.rb
CHANGED
@@ -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
|
-
|
69
|
-
"/product-view/categories/#{category_id}/products",
|
70
|
-
params)
|
68
|
+
path = "/product-view/categories/#{category_id}/products"
|
71
69
|
|
72
|
-
|
70
|
+
handle_all_request(path, :products, params)
|
73
71
|
end
|
74
72
|
|
75
73
|
#
|
data/lib/beyond_api/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|