affixapi 1.1.58 → 1.1.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docs/EmployeeResponse.md +1 -1
- data/lib/openapi_client/models/employee_response.rb +3 -2
- data/lib/openapi_client/models/time_off_balance_response.rb +2 -10
- data/lib/openapi_client/version.rb +1 -1
- data/spec/models/employee_response_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98a1b160693fa1995531dd18579f9e2c2aa0ca5c5f5cffab9c553cf887c1a313
|
4
|
+
data.tar.gz: ae3b24e92397ff86a59d6a638114af0ea08702abb3b597548ec6bdf62f952f7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f192d2b0320141da05bdbef71e46e3a1cf7d30f4a9994921b2cc86dbea02594d0f897805b4608a4aee2137d4798cd6e4bb05153e77136a5e76d0b65c84ea56e
|
7
|
+
data.tar.gz: 98140325f193c39def7e988aa3e692b771c46bc1db3f0c37c4877f5aeee78d9f955b25a2da9bb23ac5ad315bbdce9cb14ca5ae0087c62929d8ceab77f5ed98c5
|
data/Gemfile.lock
CHANGED
data/docs/EmployeeResponse.md
CHANGED
@@ -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
|
@@ -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.
|
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-
|
11
|
+
date: 2024-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|