smplkit 2.0.8 → 2.0.9
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/models/register_request.rb +3 -3
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_list_meta.rb +2 -2
- data/lib/smplkit/_generated/app/spec/models/register_request_spec.rb +1 -1
- data/lib/smplkit/_generated/app/spec/models/subscription_list_meta_spec.rb +1 -1
- 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: 7197e7fb7387753aa3c144355cd6e45ed5e5115c622427627cbd6af366c2198f
|
|
4
|
+
data.tar.gz: 263fbb7eff2305226c8c4a7e6f4edeea8d4ff812c5c6fe6a4f12c0e50dae58b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9217bcf8d6bbec98a99e5ef046800502c7bf10978e198f7ad24d982fbd81bf28dbf6dd47863432cf2f462d8cdda7e48c7e2752d7c68a7ec95ec55b9eed448fa
|
|
7
|
+
data.tar.gz: f0e3441e536110e321aac911c5ceeca749104c41522e61ee0f3b09e12c606ea80786a656b785258526677ff37f87d731e36acb4c1f5adef6661d4cd0cfb57bae
|
|
@@ -19,7 +19,7 @@ module SmplkitGeneratedClient::App
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :password
|
|
21
21
|
|
|
22
|
-
# Registration entry point. Allowed:
|
|
22
|
+
# Registration entry point. Allowed: LOGIN, GET_STARTED, LIVE_DEMO, UNKNOWN. Defaults to UNKNOWN when omitted. Case-insensitive.
|
|
23
23
|
attr_accessor :entry_point
|
|
24
24
|
|
|
25
25
|
class EnumAttributeValidator
|
|
@@ -144,7 +144,7 @@ module SmplkitGeneratedClient::App
|
|
|
144
144
|
return false if @password.nil?
|
|
145
145
|
return false if @password.to_s.length > 128
|
|
146
146
|
return false if @password.to_s.length < 8
|
|
147
|
-
entry_point_validator = EnumAttributeValidator.new('String', ["
|
|
147
|
+
entry_point_validator = EnumAttributeValidator.new('String', ["LOGIN", "GET_STARTED", "LIVE_DEMO", "UNKNOWN"])
|
|
148
148
|
return false unless entry_point_validator.valid?(@entry_point)
|
|
149
149
|
true
|
|
150
150
|
end
|
|
@@ -180,7 +180,7 @@ module SmplkitGeneratedClient::App
|
|
|
180
180
|
# Custom attribute writer method checking allowed values (enum).
|
|
181
181
|
# @param [Object] entry_point Object to be assigned
|
|
182
182
|
def entry_point=(entry_point)
|
|
183
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
183
|
+
validator = EnumAttributeValidator.new('String', ["LOGIN", "GET_STARTED", "LIVE_DEMO", "UNKNOWN"])
|
|
184
184
|
unless validator.valid?(entry_point)
|
|
185
185
|
fail ArgumentError, "invalid value for \"entry_point\", must be one of #{validator.allowable_values}."
|
|
186
186
|
end
|
|
@@ -177,7 +177,7 @@ module SmplkitGeneratedClient::App
|
|
|
177
177
|
return false if @discount_pct.nil?
|
|
178
178
|
return false if @discount_amount_cents.nil?
|
|
179
179
|
return false if @discount_source.nil?
|
|
180
|
-
discount_source_validator = EnumAttributeValidator.new('String', ["
|
|
180
|
+
discount_source_validator = EnumAttributeValidator.new('String', ["VOLUME", "OVERRIDE"])
|
|
181
181
|
return false unless discount_source_validator.valid?(@discount_source)
|
|
182
182
|
return false if @total_cents.nil?
|
|
183
183
|
true
|
|
@@ -216,7 +216,7 @@ module SmplkitGeneratedClient::App
|
|
|
216
216
|
# Custom attribute writer method checking allowed values (enum).
|
|
217
217
|
# @param [Object] discount_source Object to be assigned
|
|
218
218
|
def discount_source=(discount_source)
|
|
219
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
219
|
+
validator = EnumAttributeValidator.new('String', ["VOLUME", "OVERRIDE"])
|
|
220
220
|
unless validator.valid?(discount_source)
|
|
221
221
|
fail ArgumentError, "invalid value for \"discount_source\", must be one of #{validator.allowable_values}."
|
|
222
222
|
end
|
|
@@ -42,7 +42,7 @@ describe SmplkitGeneratedClient::App::RegisterRequest do
|
|
|
42
42
|
describe 'test attribute "entry_point"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["LOGIN", "GET_STARTED", "LIVE_DEMO", "UNKNOWN"])
|
|
46
46
|
# validator.allowable_values.each do |value|
|
|
47
47
|
# expect { instance.entry_point = value }.not_to raise_error
|
|
48
48
|
# end
|
|
@@ -48,7 +48,7 @@ describe SmplkitGeneratedClient::App::SubscriptionListMeta do
|
|
|
48
48
|
describe 'test attribute "discount_source"' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
51
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["VOLUME", "OVERRIDE"])
|
|
52
52
|
# validator.allowable_values.each do |value|
|
|
53
53
|
# expect { instance.discount_source = value }.not_to raise_error
|
|
54
54
|
# end
|