affixapi 1.1.58 → 1.1.59
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38acff549d23c32bf0ea9e6504535fab01b839f1659b3c867bb269c81a3d9acc
|
4
|
+
data.tar.gz: ab2d9fb64498736f6487328c46f9e4919d18b8dc943e18de8e917e9172feb079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 848c3766898d50acac3e28a9c486bab13a3c291472b8bac5638be62f6e718f0327d2e0ac3615c184e88494eac9ab7e377c3de86c24dc3787c0036ae80b391f3b
|
7
|
+
data.tar.gz: 5106125edd8b05e4e63a21c0e21c6d472cb2009bb09bbaa29861159c62cfe33f5a52a7680ac348e5f826e6dcc9d5ebdbf04b52196a17a6786eef39646284b080
|
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
|
@@ -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.59
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|