smplkit 1.0.15 → 1.0.16
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 +22 -1
- data/lib/smplkit/_generated/app/spec/api/products_api_spec.rb +1 -1
- data/lib/smplkit/_generated/app/spec/models/product_spec.rb +12 -0
- 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: 99035d7c61e862475d8e1d5ee5db3fab24c59d14d2ef409cf46d89354c1203fa
|
|
4
|
+
data.tar.gz: b4d498de8b004ffa1b1546cdee62101779764e999fa0dea1a7fea542441ddd59
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82ff49d99ff687b5362c5588dc493655b1cc3308f93e1da8fd80ee0eb1a75c0537c382c78a7f75105d04b7adc652ad25d252e4ae6bd987edeb75b67cf07a482c
|
|
7
|
+
data.tar.gz: aa729bcdf21317113547e7db5debb143592bb263f34c38a29a6aba94caa02a93a0f7591ac6fa85bcc3a952f9b0312cf131d289af4580ac2b55f8e1fa38d68206
|
|
@@ -20,7 +20,7 @@ module SmplkitGeneratedClient::App
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# List Products
|
|
23
|
-
# Return all flag-enabled products with their plans and
|
|
23
|
+
# Return all flag-enabled products with their plans, limits, and marketing content.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [ProductListResponse]
|
|
26
26
|
def list_products(opts = {})
|
|
@@ -29,7 +29,7 @@ module SmplkitGeneratedClient::App
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# List Products
|
|
32
|
-
# Return all flag-enabled products with their plans and
|
|
32
|
+
# Return all flag-enabled products with their plans, limits, and marketing content.
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
34
|
# @return [Array<(ProductListResponse, Integer, Hash)>] ProductListResponse data, response status code and response headers
|
|
35
35
|
def list_products_with_http_info(opts = {})
|
|
@@ -19,6 +19,10 @@ module SmplkitGeneratedClient::App
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :description
|
|
21
21
|
|
|
22
|
+
attr_accessor :tagline
|
|
23
|
+
|
|
24
|
+
attr_accessor :features
|
|
25
|
+
|
|
22
26
|
attr_accessor :coming_soon
|
|
23
27
|
|
|
24
28
|
attr_accessor :limits
|
|
@@ -30,6 +34,8 @@ module SmplkitGeneratedClient::App
|
|
|
30
34
|
{
|
|
31
35
|
:'display_name' => :'display_name',
|
|
32
36
|
:'description' => :'description',
|
|
37
|
+
:'tagline' => :'tagline',
|
|
38
|
+
:'features' => :'features',
|
|
33
39
|
:'coming_soon' => :'coming_soon',
|
|
34
40
|
:'limits' => :'limits',
|
|
35
41
|
:'plans' => :'plans'
|
|
@@ -51,6 +57,8 @@ module SmplkitGeneratedClient::App
|
|
|
51
57
|
{
|
|
52
58
|
:'display_name' => :'String',
|
|
53
59
|
:'description' => :'String',
|
|
60
|
+
:'tagline' => :'String',
|
|
61
|
+
:'features' => :'Array<String>',
|
|
54
62
|
:'coming_soon' => :'Boolean',
|
|
55
63
|
:'limits' => :'Hash<String, LimitDefinition>',
|
|
56
64
|
:'plans' => :'Hash<String, PlanDefinition>'
|
|
@@ -60,6 +68,7 @@ module SmplkitGeneratedClient::App
|
|
|
60
68
|
# List of attributes with nullable: true
|
|
61
69
|
def self.openapi_nullable
|
|
62
70
|
Set.new([
|
|
71
|
+
:'tagline',
|
|
63
72
|
])
|
|
64
73
|
end
|
|
65
74
|
|
|
@@ -91,6 +100,16 @@ module SmplkitGeneratedClient::App
|
|
|
91
100
|
self.description = nil
|
|
92
101
|
end
|
|
93
102
|
|
|
103
|
+
if attributes.key?(:'tagline')
|
|
104
|
+
self.tagline = attributes[:'tagline']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'features')
|
|
108
|
+
if (value = attributes[:'features']).is_a?(Array)
|
|
109
|
+
self.features = value
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
94
113
|
if attributes.key?(:'coming_soon')
|
|
95
114
|
self.coming_soon = attributes[:'coming_soon']
|
|
96
115
|
else
|
|
@@ -196,6 +215,8 @@ module SmplkitGeneratedClient::App
|
|
|
196
215
|
self.class == o.class &&
|
|
197
216
|
display_name == o.display_name &&
|
|
198
217
|
description == o.description &&
|
|
218
|
+
tagline == o.tagline &&
|
|
219
|
+
features == o.features &&
|
|
199
220
|
coming_soon == o.coming_soon &&
|
|
200
221
|
limits == o.limits &&
|
|
201
222
|
plans == o.plans
|
|
@@ -210,7 +231,7 @@ module SmplkitGeneratedClient::App
|
|
|
210
231
|
# Calculates hash code according to all attributes.
|
|
211
232
|
# @return [Integer] Hash code
|
|
212
233
|
def hash
|
|
213
|
-
[display_name, description, coming_soon, limits, plans].hash
|
|
234
|
+
[display_name, description, tagline, features, coming_soon, limits, plans].hash
|
|
214
235
|
end
|
|
215
236
|
|
|
216
237
|
# 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 flag-enabled products with their plans and
|
|
37
|
+
# Return all flag-enabled products with their plans, limits, and marketing content.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @return [ProductListResponse]
|
|
40
40
|
describe 'list_products test' do
|
|
@@ -39,6 +39,18 @@ describe SmplkitGeneratedClient::App::Product do
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
describe 'test attribute "tagline"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "features"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
42
54
|
describe 'test attribute "coming_soon"' do
|
|
43
55
|
it 'should work' do
|
|
44
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|