affixapi 1.1.57 → 1.1.59
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/address_no_non_null_request.rb +3 -7
- data/lib/openapi_client/models/address_response.rb +2 -2
- data/lib/openapi_client/models/employee_response.rb +3 -2
- data/lib/openapi_client/version.rb +1 -1
- data/spec/models/address_no_non_null_request_spec.rb +1 -1
- data/spec/models/address_response_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: 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** | | |
|
@@ -82,6 +82,7 @@ module OpenapiClient
|
|
82
82
|
:'street_address',
|
83
83
|
:'locality',
|
84
84
|
:'administrative_area',
|
85
|
+
:'country',
|
85
86
|
:'post_code'
|
86
87
|
])
|
87
88
|
end
|
@@ -126,18 +127,13 @@ module OpenapiClient
|
|
126
127
|
# @return Array for valid properties with the reasons
|
127
128
|
def list_invalid_properties
|
128
129
|
invalid_properties = Array.new
|
129
|
-
if @country.nil?
|
130
|
-
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
131
|
-
end
|
132
|
-
|
133
130
|
invalid_properties
|
134
131
|
end
|
135
132
|
|
136
133
|
# Check to see if the all the properties in the model are valid
|
137
134
|
# @return true if the model is valid
|
138
135
|
def valid?
|
139
|
-
|
140
|
-
country_validator = EnumAttributeValidator.new('String', ["CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "LT", "LV", "LU", "NL", "NO", "PH", "PL", "RO", "SE", "SG", "SK", "CN", "ID", "IN", "JP", "KR", "MO", "MY", "SG", "HK", "TW"])
|
136
|
+
country_validator = EnumAttributeValidator.new('String', ["CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SK", "CN", "HK", "ID", "IN", "JP", "KR", "MO", "MY", "SG", "TW"])
|
141
137
|
return false unless country_validator.valid?(@country)
|
142
138
|
true
|
143
139
|
end
|
@@ -145,7 +141,7 @@ module OpenapiClient
|
|
145
141
|
# Custom attribute writer method checking allowed values (enum).
|
146
142
|
# @param [Object] country Object to be assigned
|
147
143
|
def country=(country)
|
148
|
-
validator = EnumAttributeValidator.new('String', ["CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "
|
144
|
+
validator = EnumAttributeValidator.new('String', ["CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SK", "CN", "HK", "ID", "IN", "JP", "KR", "MO", "MY", "SG", "TW"])
|
149
145
|
unless validator.valid?(country)
|
150
146
|
fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
|
151
147
|
end
|
@@ -133,7 +133,7 @@ module OpenapiClient
|
|
133
133
|
# Check to see if the all the properties in the model are valid
|
134
134
|
# @return true if the model is valid
|
135
135
|
def valid?
|
136
|
-
country_validator = EnumAttributeValidator.new('String', ["null", "CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "
|
136
|
+
country_validator = EnumAttributeValidator.new('String', ["null", "CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SK", "CN", "HK", "ID", "IN", "JP", "KR", "MO", "MY", "SG", "TW"])
|
137
137
|
return false unless country_validator.valid?(@country)
|
138
138
|
true
|
139
139
|
end
|
@@ -141,7 +141,7 @@ module OpenapiClient
|
|
141
141
|
# Custom attribute writer method checking allowed values (enum).
|
142
142
|
# @param [Object] country Object to be assigned
|
143
143
|
def country=(country)
|
144
|
-
validator = EnumAttributeValidator.new('String', ["null", "CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "
|
144
|
+
validator = EnumAttributeValidator.new('String', ["null", "CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SK", "CN", "HK", "ID", "IN", "JP", "KR", "MO", "MY", "SG", "TW"])
|
145
145
|
unless validator.valid?(country)
|
146
146
|
fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
|
147
147
|
end
|
@@ -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
|
@@ -46,7 +46,7 @@ describe OpenapiClient::AddressNoNonNullRequest do
|
|
46
46
|
describe 'test attribute "country"' do
|
47
47
|
it 'should work' do
|
48
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SK", "CN", "HK", "ID", "IN", "JP", "KR", "MO", "MY", "SG", "TW"])
|
50
50
|
# validator.allowable_values.each do |value|
|
51
51
|
# expect { instance.country = value }.not_to raise_error
|
52
52
|
# end
|
@@ -46,7 +46,7 @@ describe OpenapiClient::AddressResponse do
|
|
46
46
|
describe 'test attribute "country"' do
|
47
47
|
it 'should work' do
|
48
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["null", "CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["null", "CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SK", "CN", "HK", "ID", "IN", "JP", "KR", "MO", "MY", "SG", "TW"])
|
50
50
|
# validator.allowable_values.each do |value|
|
51
51
|
# expect { instance.country = value }.not_to raise_error
|
52
52
|
# 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
|