affixapi 1.1.58 → 1.1.60

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: b683bef5601fe15f51880465fe4dfbd0c30eaaae51515bf936dde13fd7d56eb4
4
- data.tar.gz: 88da9a93f19bce426bdb92090bda7bbb6b13a85e728829abe50095b40af08375
3
+ metadata.gz: 98a1b160693fa1995531dd18579f9e2c2aa0ca5c5f5cffab9c553cf887c1a313
4
+ data.tar.gz: ae3b24e92397ff86a59d6a638114af0ea08702abb3b597548ec6bdf62f952f7a
5
5
  SHA512:
6
- metadata.gz: a76a031fcf23f091bf9dc2563e5c6f84b67c2c30b4f729ec99a1db8c8fe681382d1e6e3c044164045d43f252b83eefe354a42f1f78fbc3863ad31d74d5830e98
7
- data.tar.gz: ec9d910168180f081f89efed9a2e8a2a9e729ea30b304c9adadeb7a235cd8db6e7b1f852826558b2a0467fddb4d42d20ea0aa1c2d6f52ca1f4902c9d96040650
6
+ metadata.gz: 6f192d2b0320141da05bdbef71e46e3a1cf7d30f4a9994921b2cc86dbea02594d0f897805b4608a4aee2137d4798cd6e4bb05153e77136a5e76d0b65c84ea56e
7
+ data.tar.gz: 98140325f193c39def7e988aa3e692b771c46bc1db3f0c37c4877f5aeee78d9f955b25a2da9bb23ac5ad315bbdce9cb14ca5ae0087c62929d8ceab77f5ed98c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- affixapi (1.1.58)
4
+ affixapi (1.1.60)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -18,7 +18,7 @@
18
18
  | **tax_id** | **String** | | |
19
19
  | **gender** | **String** | | |
20
20
  | **ethnicity** | **String** | | |
21
- | **marital_status** | **String** | | |
21
+ | **marital_status** | **String** | `other` option can include co-habitating, civil partnership, separated, divorced, widowed, etc | |
22
22
  | **date_of_birth** | **Date** | | |
23
23
  | **employment_status** | **String** | | |
24
24
  | **employment_type** | **String** | | |
@@ -50,6 +50,7 @@ module OpenapiClient
50
50
 
51
51
  attr_accessor :ethnicity
52
52
 
53
+ # `other` option can include co-habitating, civil partnership, separated, divorced, widowed, etc
53
54
  attr_accessor :marital_status
54
55
 
55
56
  attr_accessor :date_of_birth
@@ -378,7 +379,7 @@ module OpenapiClient
378
379
  return false unless gender_validator.valid?(@gender)
379
380
  ethnicity_validator = EnumAttributeValidator.new('String', ["null", "asian", "black", "hispanic", "mixed", "not_specified", "other", "white"])
380
381
  return false unless ethnicity_validator.valid?(@ethnicity)
381
- marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified", "null"])
382
+ marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified", "other", "null"])
382
383
  return false unless marital_status_validator.valid?(@marital_status)
383
384
  employment_status_validator = EnumAttributeValidator.new('String', ["null", "active", "inactive", "pending", "leave"])
384
385
  return false unless employment_status_validator.valid?(@employment_status)
@@ -410,7 +411,7 @@ module OpenapiClient
410
411
  # Custom attribute writer method checking allowed values (enum).
411
412
  # @param [Object] marital_status Object to be assigned
412
413
  def marital_status=(marital_status)
413
- validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified", "null"])
414
+ validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified", "other", "null"])
414
415
  unless validator.valid?(marital_status)
415
416
  fail ArgumentError, "invalid value for \"marital_status\", must be one of #{validator.allowable_values}."
416
417
  end
@@ -92,6 +92,8 @@ module OpenapiClient
92
92
  # List of attributes with nullable: true
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
+ :'balance',
96
+ :'used',
95
97
  :'policy_name',
96
98
  :'policy_type',
97
99
  :'remote_created_at',
@@ -159,14 +161,6 @@ module OpenapiClient
159
161
  invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
160
162
  end
161
163
 
162
- if @balance.nil?
163
- invalid_properties.push('invalid value for "balance", balance cannot be nil.')
164
- end
165
-
166
- if @used.nil?
167
- invalid_properties.push('invalid value for "used", used cannot be nil.')
168
- end
169
-
170
164
  invalid_properties
171
165
  end
172
166
 
@@ -175,8 +169,6 @@ module OpenapiClient
175
169
  def valid?
176
170
  return false if @employee_id.nil?
177
171
  return false if @remote_id.nil?
178
- return false if @balance.nil?
179
- return false if @used.nil?
180
172
  policy_type_validator = EnumAttributeValidator.new('String', ["null", "vacation", "sick", "personal", "jury_duty", "volunteer", "bereavement"])
181
173
  return false unless policy_type_validator.valid?(@policy_type)
182
174
  true
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module OpenapiClient
14
- VERSION = '1.1.58'
14
+ VERSION = '1.1.60'
15
15
  end
@@ -120,7 +120,7 @@ describe OpenapiClient::EmployeeResponse do
120
120
  describe 'test attribute "marital_status"' do
121
121
  it 'should work' do
122
122
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["single", "married", "not_specified", "null"])
123
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["single", "married", "not_specified", "other", "null"])
124
124
  # validator.allowable_values.each do |value|
125
125
  # expect { instance.marital_status = value }.not_to raise_error
126
126
  # end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: affixapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.58
4
+ version: 1.1.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-17 00:00:00.000000000 Z
11
+ date: 2024-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus