smplkit 3.0.103 → 3.0.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/products_api.rb +2 -2
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/product.rb +1 -13
- data/lib/smplkit/_generated/app/spec/api/products_api_spec.rb +1 -1
- data/lib/smplkit/_generated/app/spec/models/product_spec.rb +0 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6b1e8b774685d05ce4bee73144f57253d969daed3e2323dbd49d3f5bab869d2
|
|
4
|
+
data.tar.gz: 350b07f236f2682ecddc12859c7cc80b63c5877e10c144c7fc72329e31d78ca8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 405cde740a188a78963a8bd8af3477549246e4c01d346ec9c1cc09f592146c8745b73916444af4afbe7e92717b9e7b7c30487c3a85395ebb7523fc49078cd899
|
|
7
|
+
data.tar.gz: 8b26180fcdc3d293a8106cc46724970d3055f1025686109a609ce8fc1d94eca733a5c7af4de5b32f5081e2118cef74842048dda3f4afb7e02c6087bc6bad009b
|
|
@@ -20,7 +20,7 @@ module SmplkitGeneratedClient::App
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# List Products
|
|
23
|
-
# Return all
|
|
23
|
+
# Return all products with their plans, limits, and marketing content. Default sort is `display_name` ascending.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `display_name`. Allowed values: `display_name`, `-display_name`, `id`, `-id`. (default to 'display_name')
|
|
26
26
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
@@ -33,7 +33,7 @@ module SmplkitGeneratedClient::App
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# List Products
|
|
36
|
-
# Return all
|
|
36
|
+
# Return all products with their plans, limits, and marketing content. Default sort is `display_name` ascending.
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `display_name`. Allowed values: `display_name`, `-display_name`, `id`, `-id`. (default to 'display_name')
|
|
39
39
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
@@ -28,9 +28,6 @@ module SmplkitGeneratedClient::App
|
|
|
28
28
|
# Bullet-list feature highlights for the product.
|
|
29
29
|
attr_accessor :features
|
|
30
30
|
|
|
31
|
-
# When `true`, the product is listed but not yet available for subscription.
|
|
32
|
-
attr_accessor :coming_soon
|
|
33
|
-
|
|
34
31
|
# Map of limit key to limit definition for this product.
|
|
35
32
|
attr_accessor :limits
|
|
36
33
|
|
|
@@ -47,7 +44,6 @@ module SmplkitGeneratedClient::App
|
|
|
47
44
|
:'description' => :'description',
|
|
48
45
|
:'tagline' => :'tagline',
|
|
49
46
|
:'features' => :'features',
|
|
50
|
-
:'coming_soon' => :'coming_soon',
|
|
51
47
|
:'limits' => :'limits',
|
|
52
48
|
:'metered_limits' => :'metered_limits',
|
|
53
49
|
:'plans' => :'plans'
|
|
@@ -71,7 +67,6 @@ module SmplkitGeneratedClient::App
|
|
|
71
67
|
:'description' => :'String',
|
|
72
68
|
:'tagline' => :'String',
|
|
73
69
|
:'features' => :'Array<String>',
|
|
74
|
-
:'coming_soon' => :'Boolean',
|
|
75
70
|
:'limits' => :'Hash<String, LimitDefinition>',
|
|
76
71
|
:'metered_limits' => :'Array<String>',
|
|
77
72
|
:'plans' => :'Hash<String, PlanDefinition>'
|
|
@@ -123,12 +118,6 @@ module SmplkitGeneratedClient::App
|
|
|
123
118
|
end
|
|
124
119
|
end
|
|
125
120
|
|
|
126
|
-
if attributes.key?(:'coming_soon')
|
|
127
|
-
self.coming_soon = attributes[:'coming_soon']
|
|
128
|
-
else
|
|
129
|
-
self.coming_soon = false
|
|
130
|
-
end
|
|
131
|
-
|
|
132
121
|
if attributes.key?(:'limits')
|
|
133
122
|
if (value = attributes[:'limits']).is_a?(Hash)
|
|
134
123
|
self.limits = value
|
|
@@ -236,7 +225,6 @@ module SmplkitGeneratedClient::App
|
|
|
236
225
|
description == o.description &&
|
|
237
226
|
tagline == o.tagline &&
|
|
238
227
|
features == o.features &&
|
|
239
|
-
coming_soon == o.coming_soon &&
|
|
240
228
|
limits == o.limits &&
|
|
241
229
|
metered_limits == o.metered_limits &&
|
|
242
230
|
plans == o.plans
|
|
@@ -251,7 +239,7 @@ module SmplkitGeneratedClient::App
|
|
|
251
239
|
# Calculates hash code according to all attributes.
|
|
252
240
|
# @return [Integer] Hash code
|
|
253
241
|
def hash
|
|
254
|
-
[display_name, description, tagline, features,
|
|
242
|
+
[display_name, description, tagline, features, limits, metered_limits, plans].hash
|
|
255
243
|
end
|
|
256
244
|
|
|
257
245
|
# Builds the object from hash
|
|
@@ -34,7 +34,7 @@ describe 'ProductsApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for list_products
|
|
36
36
|
# List Products
|
|
37
|
-
# Return all
|
|
37
|
+
# Return all products with their plans, limits, and marketing content. Default sort is `display_name` ascending.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `display_name`. Allowed values: `display_name`, `-display_name`, `id`, `-id`.
|
|
40
40
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
@@ -51,12 +51,6 @@ describe SmplkitGeneratedClient::App::Product do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
describe 'test attribute "coming_soon"' do
|
|
55
|
-
it 'should work' do
|
|
56
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
|
|
60
54
|
describe 'test attribute "limits"' do
|
|
61
55
|
it 'should work' do
|
|
62
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|