affixapi 1.1.58 → 1.1.59

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: 38acff549d23c32bf0ea9e6504535fab01b839f1659b3c867bb269c81a3d9acc
4
+ data.tar.gz: ab2d9fb64498736f6487328c46f9e4919d18b8dc943e18de8e917e9172feb079
5
5
  SHA512:
6
- metadata.gz: a76a031fcf23f091bf9dc2563e5c6f84b67c2c30b4f729ec99a1db8c8fe681382d1e6e3c044164045d43f252b83eefe354a42f1f78fbc3863ad31d74d5830e98
7
- data.tar.gz: ec9d910168180f081f89efed9a2e8a2a9e729ea30b304c9adadeb7a235cd8db6e7b1f852826558b2a0467fddb4d42d20ea0aa1c2d6f52ca1f4902c9d96040650
6
+ metadata.gz: 848c3766898d50acac3e28a9c486bab13a3c291472b8bac5638be62f6e718f0327d2e0ac3615c184e88494eac9ab7e377c3de86c24dc3787c0036ae80b391f3b
7
+ data.tar.gz: 5106125edd8b05e4e63a21c0e21c6d472cb2009bb09bbaa29861159c62cfe33f5a52a7680ac348e5f826e6dcc9d5ebdbf04b52196a17a6786eef39646284b080
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.59)
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
@@ -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.59'
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.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-17 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus