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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0750ea6383e472f36e7f3b2ffdb4b7a28117c311213da66cf20deaa8c28c1d74
4
- data.tar.gz: 5dca82e7751526abc2d2fd2842d9b4f92be45892b09987e1b7c3d4dfd06ecfe0
3
+ metadata.gz: 7197e7fb7387753aa3c144355cd6e45ed5e5115c622427627cbd6af366c2198f
4
+ data.tar.gz: 263fbb7eff2305226c8c4a7e6f4edeea8d4ff812c5c6fe6a4f12c0e50dae58b1
5
5
  SHA512:
6
- metadata.gz: dce04a53acfc4b3b6de5b89ac54392ab60ba175d0bf2294ab5d1432474c78ef6fa18d5fe379be321d23a3e0da869e21dc9fd31dd48e33a80c681116051ce73d8
7
- data.tar.gz: 53ac80d537a14f41770fa1476755b261fd1aa42778f70d0bd4fae1079794ad4ba2c4052f4091982e032937364592ae572b9ac46421836349490eb0bf7189972b
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: login, get_started, live_demo, unknown. Defaults to unknown when omitted.
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', ["login", "get_started", "live_demo", "unknown"])
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', ["login", "get_started", "live_demo", "unknown"])
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', ["volume", "override"])
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', ["volume", "override"])
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', ["login", "get_started", "live_demo", "unknown"])
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', ["volume", "override"])
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC