affixapi 1.1.77 → 1.1.78
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/Gemfile.lock +1 -1
- data/docs/CreateEmployeeRequest.md +1 -1
- data/docs/EmployeeResponse.md +1 -1
- data/lib/openapi_client/models/create_employee_request.rb +3 -2
- data/lib/openapi_client/models/employee_response.rb +3 -3
- data/lib/openapi_client/version.rb +1 -1
- data/spec/models/create_employee_request_spec.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: 41c030fe428c01f6df3a87f46750e828548aaab0e53cf5b0f27dd4ea0dc28b16
|
4
|
+
data.tar.gz: 12af573766f85b181e704defd56e0ffa8f18d7bfbcc2c8cc192add8a6786cb9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7544c7444d359aea0a73cd0696e71c05b8a878755d2498375a98649f16001c3e971f265969ca5d1cf8e16047f65f12d7411bf5acdb01bcc0ecde6f555ebe0d89
|
7
|
+
data.tar.gz: 77150caf070aa65a5ec893deccc34ef1dcc30cc87d85e7434c20026df4a14eca50c04018f8a06150b18370380adb9ebdc619ef33df5f48af5341d5b3be69b991
|
data/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
| **tax_id** | **String** | | [optional] |
|
17
17
|
| **gender** | **String** | | [optional] |
|
18
18
|
| **ethnicity** | **String** | | [optional] |
|
19
|
-
| **marital_status** | **String** | | [optional] |
|
19
|
+
| **marital_status** | **String** | `other` option can include co-habitating, civil partnership, separated, widowed, etc | [optional] |
|
20
20
|
| **date_of_birth** | **Date** | | [optional] |
|
21
21
|
| **employment_status** | [**EmploymentStatusNotNullRequest**](EmploymentStatusNotNullRequest.md) | | [optional] |
|
22
22
|
| **employment_type** | **String** | | [optional] |
|
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** | `other` option can include co-habitating, civil partnership, separated,
|
21
|
+
| **marital_status** | **String** | `other` option can include co-habitating, civil partnership, separated, widowed, etc | |
|
22
22
|
| **date_of_birth** | **Date** | | |
|
23
23
|
| **employment_status** | [**EmploymentStatusResponse**](EmploymentStatusResponse.md) | | |
|
24
24
|
| **employment_type** | **String** | | |
|
@@ -44,6 +44,7 @@ module OpenapiClient
|
|
44
44
|
|
45
45
|
attr_accessor :ethnicity
|
46
46
|
|
47
|
+
# `other` option can include co-habitating, civil partnership, separated, widowed, etc
|
47
48
|
attr_accessor :marital_status
|
48
49
|
|
49
50
|
attr_accessor :date_of_birth
|
@@ -374,7 +375,7 @@ module OpenapiClient
|
|
374
375
|
return false unless gender_validator.valid?(@gender)
|
375
376
|
ethnicity_validator = EnumAttributeValidator.new('String', ["asian", "black", "hispanic", "mixed", "not_specified", "other", "white"])
|
376
377
|
return false unless ethnicity_validator.valid?(@ethnicity)
|
377
|
-
marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified"])
|
378
|
+
marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "divorced", "not_specified", "other"])
|
378
379
|
return false unless marital_status_validator.valid?(@marital_status)
|
379
380
|
employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "other"])
|
380
381
|
return false unless employment_type_validator.valid?(@employment_type)
|
@@ -404,7 +405,7 @@ module OpenapiClient
|
|
404
405
|
# Custom attribute writer method checking allowed values (enum).
|
405
406
|
# @param [Object] marital_status Object to be assigned
|
406
407
|
def marital_status=(marital_status)
|
407
|
-
validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified"])
|
408
|
+
validator = EnumAttributeValidator.new('String', ["single", "married", "divorced", "not_specified", "other"])
|
408
409
|
unless validator.valid?(marital_status)
|
409
410
|
fail ArgumentError, "invalid value for \"marital_status\", must be one of #{validator.allowable_values}."
|
410
411
|
end
|
@@ -50,7 +50,7 @@ module OpenapiClient
|
|
50
50
|
|
51
51
|
attr_accessor :ethnicity
|
52
52
|
|
53
|
-
# `other` option can include co-habitating, civil partnership, separated,
|
53
|
+
# `other` option can include co-habitating, civil partnership, separated, widowed, etc
|
54
54
|
attr_accessor :marital_status
|
55
55
|
|
56
56
|
attr_accessor :date_of_birth
|
@@ -412,7 +412,7 @@ module OpenapiClient
|
|
412
412
|
return false unless gender_validator.valid?(@gender)
|
413
413
|
ethnicity_validator = EnumAttributeValidator.new('String', ["null", "asian", "black", "hispanic", "mixed", "not_specified", "other", "white"])
|
414
414
|
return false unless ethnicity_validator.valid?(@ethnicity)
|
415
|
-
marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified", "other", "null"])
|
415
|
+
marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "divorced", "not_specified", "other", "null"])
|
416
416
|
return false unless marital_status_validator.valid?(@marital_status)
|
417
417
|
employment_type_validator = EnumAttributeValidator.new('String', ["null", "full_time", "part_time", "contractor", "other"])
|
418
418
|
return false unless employment_type_validator.valid?(@employment_type)
|
@@ -442,7 +442,7 @@ module OpenapiClient
|
|
442
442
|
# Custom attribute writer method checking allowed values (enum).
|
443
443
|
# @param [Object] marital_status Object to be assigned
|
444
444
|
def marital_status=(marital_status)
|
445
|
-
validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified", "other", "null"])
|
445
|
+
validator = EnumAttributeValidator.new('String', ["single", "married", "divorced", "not_specified", "other", "null"])
|
446
446
|
unless validator.valid?(marital_status)
|
447
447
|
fail ArgumentError, "invalid value for \"marital_status\", must be one of #{validator.allowable_values}."
|
448
448
|
end
|
@@ -108,7 +108,7 @@ describe OpenapiClient::CreateEmployeeRequest do
|
|
108
108
|
describe 'test attribute "marital_status"' do
|
109
109
|
it 'should work' do
|
110
110
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["single", "married", "not_specified"])
|
111
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["single", "married", "divorced", "not_specified", "other"])
|
112
112
|
# validator.allowable_values.each do |value|
|
113
113
|
# expect { instance.marital_status = value }.not_to raise_error
|
114
114
|
# 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", "other", "null"])
|
123
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["single", "married", "divorced", "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.78
|
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-05-
|
11
|
+
date: 2024-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|