stackone_hris_client 1.3.2 → 1.4.0

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +13 -5
  4. data/docs/AccountsApi.md +4 -7
  5. data/docs/CompaniesApi.md +3 -5
  6. data/docs/ConnectSessionsApi.md +3 -5
  7. data/docs/Employee.md +5 -5
  8. data/docs/EmployeesApi.md +3 -5
  9. data/docs/Employment.md +3 -3
  10. data/docs/EmploymentStatusEnum.md +20 -0
  11. data/docs/EmploymentTypeEnum.md +20 -0
  12. data/docs/EmploymentsApi.md +3 -5
  13. data/docs/EthnicityEnum.md +20 -0
  14. data/docs/GenderEnum.md +20 -0
  15. data/docs/Location.md +1 -1
  16. data/docs/LocationTypeEnum.md +20 -0
  17. data/docs/LocationsApi.md +3 -5
  18. data/docs/MaritalStatusEnum.md +20 -0
  19. data/docs/PayFrequencyEnum.md +20 -0
  20. data/docs/PayPeriodEnum.md +20 -0
  21. data/gem-config.yml +1 -1
  22. data/lib/stackone_hris_client/models/employee.rb +5 -87
  23. data/lib/stackone_hris_client/models/employment.rb +3 -61
  24. data/lib/stackone_hris_client/models/employment_status_enum.rb +270 -0
  25. data/lib/stackone_hris_client/models/employment_type_enum.rb +270 -0
  26. data/lib/stackone_hris_client/models/ethnicity_enum.rb +270 -0
  27. data/lib/stackone_hris_client/models/gender_enum.rb +270 -0
  28. data/lib/stackone_hris_client/models/location.rb +1 -35
  29. data/lib/stackone_hris_client/models/location_type_enum.rb +270 -0
  30. data/lib/stackone_hris_client/models/marital_status_enum.rb +270 -0
  31. data/lib/stackone_hris_client/models/pay_frequency_enum.rb +270 -0
  32. data/lib/stackone_hris_client/models/pay_period_enum.rb +270 -0
  33. data/lib/stackone_hris_client/version.rb +1 -1
  34. data/lib/stackone_hris_client.rb +8 -0
  35. data/spec/configuration_spec.rb +3 -3
  36. data/spec/models/employment_status_enum_spec.rb +44 -0
  37. data/spec/models/employment_type_enum_spec.rb +44 -0
  38. data/spec/models/ethnicity_enum_spec.rb +44 -0
  39. data/spec/models/gender_enum_spec.rb +44 -0
  40. data/spec/models/location_type_enum_spec.rb +44 -0
  41. data/spec/models/marital_status_enum_spec.rb +44 -0
  42. data/spec/models/pay_frequency_enum_spec.rb +44 -0
  43. data/spec/models/pay_period_enum_spec.rb +44 -0
  44. metadata +34 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8384c72c8ca74df5d3066f2e0aad2dd2e26ce09f3e71e9c8877401110fc5256f
4
- data.tar.gz: 253d08b7bcd87e240974cd07c7fd2b82e177ed4c1d814304a2f38e4947ecb4f5
3
+ metadata.gz: 845acb267d5359b3b0411e931280dfef500666c6dfba03752b42641508085911
4
+ data.tar.gz: 62184c488d9209a4f1e0abb7dfb3532a545ce0c36fa1b9840324e59aa7c8aaef
5
5
  SHA512:
6
- metadata.gz: 3d905f4f3e5f72e7926e017823f6f61076283ab22526ba611a358878f2d81187bd6ff0663576a180b5a74264d4914b32f8391d36ffa7e51b060242d2ff71fae6
7
- data.tar.gz: 2bbc0739da10c921f00ddc22563240409208d5145b7ab6f7128505215da082f3ab4db05395f7091b20309baf6a9f47c548d62980bc0511f8874715cf436d3393
6
+ metadata.gz: 17d0671c4becc2ef6870acbf341880de8c99e873bb7f0a91a2cb0c0c186a55891a24d073cbabb76294b130219d73ae0b517b7c07af94d5ac1d2ad51f8d01767b
7
+ data.tar.gz: 713def3d66e7e821d37eb5b30c2095bdaa3f8cd9240f3c6f696963289f9a6f6c53a873b9bc5b8599b51c2c8858c1ad5462406d028c71ca79462cee29ad335dfd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stackone_hris_client (1.3.2)
4
+ stackone_hris_client (1.4.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -7,7 +7,7 @@ The documentation for the StackOne Unified API - HRIS
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 1.3.2
10
+ - Package version: 1.4.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build stackone_hris_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./stackone_hris_client-1.3.2.gem
26
+ gem install ./stackone_hris_client-1.4.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./stackone_hris_client-1.3.2.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./stackone_hris_client-1.4.0.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'stackone_hris_client', '~> 1.3.2'
35
+ gem 'stackone_hris_client', '~> 1.4.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -85,7 +85,7 @@ end
85
85
 
86
86
  ## Documentation for API Endpoints
87
87
 
88
- All URIs are relative to *http://localhost*
88
+ All URIs are relative to *https://api.stackone.com*
89
89
 
90
90
  Class | Method | HTTP request | Description
91
91
  ------------ | ------------- | ------------- | -------------
@@ -119,10 +119,18 @@ Class | Method | HTTP request | Description
119
119
  - [StackOneHRIS::EmployeesPaginated](docs/EmployeesPaginated.md)
120
120
  - [StackOneHRIS::Employment](docs/Employment.md)
121
121
  - [StackOneHRIS::EmploymentResult](docs/EmploymentResult.md)
122
+ - [StackOneHRIS::EmploymentStatusEnum](docs/EmploymentStatusEnum.md)
123
+ - [StackOneHRIS::EmploymentTypeEnum](docs/EmploymentTypeEnum.md)
122
124
  - [StackOneHRIS::EmploymentsPaginated](docs/EmploymentsPaginated.md)
125
+ - [StackOneHRIS::EthnicityEnum](docs/EthnicityEnum.md)
126
+ - [StackOneHRIS::GenderEnum](docs/GenderEnum.md)
123
127
  - [StackOneHRIS::Location](docs/Location.md)
124
128
  - [StackOneHRIS::LocationResult](docs/LocationResult.md)
129
+ - [StackOneHRIS::LocationTypeEnum](docs/LocationTypeEnum.md)
125
130
  - [StackOneHRIS::LocationsPaginated](docs/LocationsPaginated.md)
131
+ - [StackOneHRIS::MaritalStatusEnum](docs/MaritalStatusEnum.md)
132
+ - [StackOneHRIS::PayFrequencyEnum](docs/PayFrequencyEnum.md)
133
+ - [StackOneHRIS::PayPeriodEnum](docs/PayPeriodEnum.md)
126
134
 
127
135
 
128
136
  ## Documentation for Authorization
data/docs/AccountsApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # StackOneHRIS::AccountsApi
2
2
 
3
- All URIs are relative to *http://localhost*
3
+ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
@@ -23,8 +23,7 @@ require 'stackone_hris_client'
23
23
  # setup authorization
24
24
  StackOneHRIS.configure do |config|
25
25
  # Configure HTTP basic authorization: basic
26
- config.username = 'YOUR USERNAME'
27
- config.password = 'YOUR PASSWORD'
26
+ config.api_key_token = 'YOUR API KEY'
28
27
  end
29
28
 
30
29
  api_instance = StackOneHRIS::AccountsApi.new
@@ -91,8 +90,7 @@ require 'stackone_hris_client'
91
90
  # setup authorization
92
91
  StackOneHRIS.configure do |config|
93
92
  # Configure HTTP basic authorization: basic
94
- config.username = 'YOUR USERNAME'
95
- config.password = 'YOUR PASSWORD'
93
+ config.api_key_token = 'YOUR API KEY'
96
94
  end
97
95
 
98
96
  api_instance = StackOneHRIS::AccountsApi.new
@@ -159,8 +157,7 @@ require 'stackone_hris_client'
159
157
  # setup authorization
160
158
  StackOneHRIS.configure do |config|
161
159
  # Configure HTTP basic authorization: basic
162
- config.username = 'YOUR USERNAME'
163
- config.password = 'YOUR PASSWORD'
160
+ config.api_key_token = 'YOUR API KEY'
164
161
  end
165
162
 
166
163
  api_instance = StackOneHRIS::AccountsApi.new
data/docs/CompaniesApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # StackOneHRIS::CompaniesApi
2
2
 
3
- All URIs are relative to *https://api.eu1.stackone.com/api.stackone.com*
3
+ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
@@ -22,8 +22,7 @@ require 'stackone_hris_client'
22
22
  # setup authorization
23
23
  StackOneHRIS.configure do |config|
24
24
  # Configure HTTP basic authorization: basic
25
- config.username = 'YOUR USERNAME'
26
- config.password = 'YOUR PASSWORD'
25
+ config.api_key_token = 'YOUR API KEY'
27
26
  end
28
27
 
29
28
  api_instance = StackOneHRIS::CompaniesApi.new
@@ -106,8 +105,7 @@ require 'stackone_hris_client'
106
105
  # setup authorization
107
106
  StackOneHRIS.configure do |config|
108
107
  # Configure HTTP basic authorization: basic
109
- config.username = 'YOUR USERNAME'
110
- config.password = 'YOUR PASSWORD'
108
+ config.api_key_token = 'YOUR API KEY'
111
109
  end
112
110
 
113
111
  api_instance = StackOneHRIS::CompaniesApi.new
@@ -1,6 +1,6 @@
1
1
  # StackOneHRIS::ConnectSessionsApi
2
2
 
3
- All URIs are relative to *http://localhost*
3
+ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
@@ -22,8 +22,7 @@ require 'stackone_hris_client'
22
22
  # setup authorization
23
23
  StackOneHRIS.configure do |config|
24
24
  # Configure HTTP basic authorization: basic
25
- config.username = 'YOUR USERNAME'
26
- config.password = 'YOUR PASSWORD'
25
+ config.api_key_token = 'YOUR API KEY'
27
26
  end
28
27
 
29
28
  api_instance = StackOneHRIS::ConnectSessionsApi.new
@@ -90,8 +89,7 @@ require 'stackone_hris_client'
90
89
  # setup authorization
91
90
  StackOneHRIS.configure do |config|
92
91
  # Configure HTTP basic authorization: basic
93
- config.username = 'YOUR USERNAME'
94
- config.password = 'YOUR PASSWORD'
92
+ config.api_key_token = 'YOUR API KEY'
95
93
  end
96
94
 
97
95
  api_instance = StackOneHRIS::ConnectSessionsApi.new
data/docs/Employee.md CHANGED
@@ -9,11 +9,11 @@
9
9
  | **last_name** | **String** | | |
10
10
  | **name** | **String** | | |
11
11
  | **display_name** | **String** | | |
12
- | **gender** | **String** | | |
13
- | **ethnicity** | **String** | | [optional] |
12
+ | **gender** | [**GenderEnum**](GenderEnum.md) | | |
13
+ | **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | | [optional] |
14
14
  | **date_of_birth** | **Time** | | [optional] |
15
15
  | **birthday** | **Time** | | [optional] |
16
- | **marital_status** | **String** | | [optional] |
16
+ | **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | | [optional] |
17
17
  | **avatar_url** | **String** | | [optional] |
18
18
  | **personal_email** | **String** | | [optional] |
19
19
  | **personal_phone_number** | **String** | | |
@@ -26,8 +26,8 @@
26
26
  | **start_date** | **Time** | | [optional] |
27
27
  | **tenure** | **Float** | | [optional] |
28
28
  | **work_anniversary** | **Time** | | [optional] |
29
- | **employment_type** | **String** | | [optional] |
30
- | **employment_status** | **String** | | [optional] |
29
+ | **employment_type** | [**EmploymentTypeEnum**](EmploymentTypeEnum.md) | | [optional] |
30
+ | **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | | [optional] |
31
31
  | **termination_date** | **Time** | | [optional] |
32
32
  | **company_name** | **String** | | [optional] |
33
33
  | **home_country_location** | **String** | | [optional] |
data/docs/EmployeesApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # StackOneHRIS::EmployeesApi
2
2
 
3
- All URIs are relative to *http://localhost*
3
+ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
@@ -22,8 +22,7 @@ require 'stackone_hris_client'
22
22
  # setup authorization
23
23
  StackOneHRIS.configure do |config|
24
24
  # Configure HTTP basic authorization: basic
25
- config.username = 'YOUR USERNAME'
26
- config.password = 'YOUR PASSWORD'
25
+ config.api_key_token = 'YOUR API KEY'
27
26
  end
28
27
 
29
28
  api_instance = StackOneHRIS::EmployeesApi.new
@@ -108,8 +107,7 @@ require 'stackone_hris_client'
108
107
  # setup authorization
109
108
  StackOneHRIS.configure do |config|
110
109
  # Configure HTTP basic authorization: basic
111
- config.username = 'YOUR USERNAME'
112
- config.password = 'YOUR PASSWORD'
110
+ config.api_key_token = 'YOUR API KEY'
113
111
  end
114
112
 
115
113
  api_instance = StackOneHRIS::EmployeesApi.new
data/docs/Employment.md CHANGED
@@ -8,11 +8,11 @@
8
8
  | **employee_id** | **String** | | |
9
9
  | **job_title** | **String** | | [optional] |
10
10
  | **pay_rate** | **String** | | [optional] |
11
- | **pay_period** | **String** | | [optional] |
12
- | **pay_frequency** | **String** | | [optional] |
11
+ | **pay_period** | [**PayPeriodEnum**](PayPeriodEnum.md) | | [optional] |
12
+ | **pay_frequency** | [**PayFrequencyEnum**](PayFrequencyEnum.md) | | [optional] |
13
13
  | **pay_currency** | **String** | | [optional] |
14
14
  | **effective_date** | **Time** | | [optional] |
15
- | **employment_type** | **String** | | [optional] |
15
+ | **employment_type** | [**EmploymentTypeEnum**](EmploymentTypeEnum.md) | | [optional] |
16
16
 
17
17
  ## Example
18
18
 
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::EmploymentStatusEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::EmploymentStatusEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::EmploymentTypeEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::EmploymentTypeEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
@@ -1,6 +1,6 @@
1
1
  # StackOneHRIS::EmploymentsApi
2
2
 
3
- All URIs are relative to *http://localhost*
3
+ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
@@ -22,8 +22,7 @@ require 'stackone_hris_client'
22
22
  # setup authorization
23
23
  StackOneHRIS.configure do |config|
24
24
  # Configure HTTP basic authorization: basic
25
- config.username = 'YOUR USERNAME'
26
- config.password = 'YOUR PASSWORD'
25
+ config.api_key_token = 'YOUR API KEY'
27
26
  end
28
27
 
29
28
  api_instance = StackOneHRIS::EmploymentsApi.new
@@ -106,8 +105,7 @@ require 'stackone_hris_client'
106
105
  # setup authorization
107
106
  StackOneHRIS.configure do |config|
108
107
  # Configure HTTP basic authorization: basic
109
- config.username = 'YOUR USERNAME'
110
- config.password = 'YOUR PASSWORD'
108
+ config.api_key_token = 'YOUR API KEY'
111
109
  end
112
110
 
113
111
  api_instance = StackOneHRIS::EmploymentsApi.new
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::EthnicityEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::EthnicityEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::GenderEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::GenderEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
data/docs/Location.md CHANGED
@@ -14,7 +14,7 @@
14
14
  | **state** | **String** | | [optional] |
15
15
  | **zip_code** | **String** | | [optional] |
16
16
  | **country** | **String** | | [optional] |
17
- | **location_type** | **String** | | [optional] |
17
+ | **location_type** | [**LocationTypeEnum**](LocationTypeEnum.md) | | [optional] |
18
18
 
19
19
  ## Example
20
20
 
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::LocationTypeEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::LocationTypeEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
data/docs/LocationsApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # StackOneHRIS::LocationsApi
2
2
 
3
- All URIs are relative to *http://localhost*
3
+ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
@@ -22,8 +22,7 @@ require 'stackone_hris_client'
22
22
  # setup authorization
23
23
  StackOneHRIS.configure do |config|
24
24
  # Configure HTTP basic authorization: basic
25
- config.username = 'YOUR USERNAME'
26
- config.password = 'YOUR PASSWORD'
25
+ config.api_key_token = 'YOUR API KEY'
27
26
  end
28
27
 
29
28
  api_instance = StackOneHRIS::LocationsApi.new
@@ -106,8 +105,7 @@ require 'stackone_hris_client'
106
105
  # setup authorization
107
106
  StackOneHRIS.configure do |config|
108
107
  # Configure HTTP basic authorization: basic
109
- config.username = 'YOUR USERNAME'
110
- config.password = 'YOUR PASSWORD'
108
+ config.api_key_token = 'YOUR API KEY'
111
109
  end
112
110
 
113
111
  api_instance = StackOneHRIS::LocationsApi.new
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::MaritalStatusEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::MaritalStatusEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::PayFrequencyEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::PayFrequencyEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::PayPeriodEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::PayPeriodEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
data/gem-config.yml CHANGED
@@ -10,5 +10,5 @@ additionalProperties:
10
10
  gemName: "stackone_hris_client"
11
11
  gemRequiredRubyVersion: ">= 2.7"
12
12
  gemSummary: "StackOne HRIS client gem"
13
- gemVersion: "1.3.2"
13
+ gemVersion: "1.4.0"
14
14
  library: "typhoeus"
@@ -79,28 +79,6 @@ module StackOneHRIS
79
79
 
80
80
  attr_accessor :employments
81
81
 
82
- class EnumAttributeValidator
83
- attr_reader :datatype
84
- attr_reader :allowable_values
85
-
86
- def initialize(datatype, allowable_values)
87
- @allowable_values = allowable_values.map do |value|
88
- case datatype.to_s
89
- when /Integer/i
90
- value.to_i
91
- when /Float/i
92
- value.to_f
93
- else
94
- value
95
- end
96
- end
97
- end
98
-
99
- def valid?(value)
100
- !value || allowable_values.include?(value)
101
- end
102
- end
103
-
104
82
  # Attribute mapping from ruby-style variable name to JSON key.
105
83
  def self.attribute_map
106
84
  {
@@ -152,11 +130,11 @@ module StackOneHRIS
152
130
  :'last_name' => :'String',
153
131
  :'name' => :'String',
154
132
  :'display_name' => :'String',
155
- :'gender' => :'String',
156
- :'ethnicity' => :'String',
133
+ :'gender' => :'GenderEnum',
134
+ :'ethnicity' => :'EthnicityEnum',
157
135
  :'date_of_birth' => :'Time',
158
136
  :'birthday' => :'Time',
159
- :'marital_status' => :'String',
137
+ :'marital_status' => :'MaritalStatusEnum',
160
138
  :'avatar_url' => :'String',
161
139
  :'personal_email' => :'String',
162
140
  :'personal_phone_number' => :'String',
@@ -169,8 +147,8 @@ module StackOneHRIS
169
147
  :'start_date' => :'Time',
170
148
  :'tenure' => :'Float',
171
149
  :'work_anniversary' => :'Time',
172
- :'employment_type' => :'String',
173
- :'employment_status' => :'String',
150
+ :'employment_type' => :'EmploymentTypeEnum',
151
+ :'employment_status' => :'EmploymentStatusEnum',
174
152
  :'termination_date' => :'Time',
175
153
  :'company_name' => :'String',
176
154
  :'home_country_location' => :'String',
@@ -390,73 +368,13 @@ module StackOneHRIS
390
368
  return false if @name.nil?
391
369
  return false if @display_name.nil?
392
370
  return false if @gender.nil?
393
- gender_validator = EnumAttributeValidator.new('String', ["male", "female", "non_binary", "other", "not_disclosed", "unmapped_value"])
394
- return false unless gender_validator.valid?(@gender)
395
- ethnicity_validator = EnumAttributeValidator.new('String', ["white", "black_or_african_american", "asian", "hispanic_or_latino", "american_indian_or_alaska_native", "native_hawaiian_or_pacific_islander", "two_or_more_races", "not_disclosed", "unmapped_value"])
396
- return false unless ethnicity_validator.valid?(@ethnicity)
397
- marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "divorced", "widowed", "domestic_partnership", "separated", "other", "unmapped_value"])
398
- return false unless marital_status_validator.valid?(@marital_status)
399
371
  return false if @personal_phone_number.nil?
400
372
  return false if @work_email.nil?
401
373
  return false if @work_phone_number.nil?
402
374
  return false if @department.nil?
403
- employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "unmapped_value", "temporary", "seasonal", "volunteer"])
404
- return false unless employment_type_validator.valid?(@employment_type)
405
- employment_status_validator = EnumAttributeValidator.new('String', ["active", "pending", "terminated", "unmapped_value"])
406
- return false unless employment_status_validator.valid?(@employment_status)
407
375
  true
408
376
  end
409
377
 
410
- # Custom attribute writer method checking allowed values (enum).
411
- # @param [Object] gender Object to be assigned
412
- def gender=(gender)
413
- validator = EnumAttributeValidator.new('String', ["male", "female", "non_binary", "other", "not_disclosed", "unmapped_value"])
414
- unless validator.valid?(gender)
415
- fail ArgumentError, "invalid value for \"gender\", must be one of #{validator.allowable_values}."
416
- end
417
- @gender = gender
418
- end
419
-
420
- # Custom attribute writer method checking allowed values (enum).
421
- # @param [Object] ethnicity Object to be assigned
422
- def ethnicity=(ethnicity)
423
- validator = EnumAttributeValidator.new('String', ["white", "black_or_african_american", "asian", "hispanic_or_latino", "american_indian_or_alaska_native", "native_hawaiian_or_pacific_islander", "two_or_more_races", "not_disclosed", "unmapped_value"])
424
- unless validator.valid?(ethnicity)
425
- fail ArgumentError, "invalid value for \"ethnicity\", must be one of #{validator.allowable_values}."
426
- end
427
- @ethnicity = ethnicity
428
- end
429
-
430
- # Custom attribute writer method checking allowed values (enum).
431
- # @param [Object] marital_status Object to be assigned
432
- def marital_status=(marital_status)
433
- validator = EnumAttributeValidator.new('String', ["single", "married", "divorced", "widowed", "domestic_partnership", "separated", "other", "unmapped_value"])
434
- unless validator.valid?(marital_status)
435
- fail ArgumentError, "invalid value for \"marital_status\", must be one of #{validator.allowable_values}."
436
- end
437
- @marital_status = marital_status
438
- end
439
-
440
- # Custom attribute writer method checking allowed values (enum).
441
- # @param [Object] employment_type Object to be assigned
442
- def employment_type=(employment_type)
443
- validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "unmapped_value", "temporary", "seasonal", "volunteer"])
444
- unless validator.valid?(employment_type)
445
- fail ArgumentError, "invalid value for \"employment_type\", must be one of #{validator.allowable_values}."
446
- end
447
- @employment_type = employment_type
448
- end
449
-
450
- # Custom attribute writer method checking allowed values (enum).
451
- # @param [Object] employment_status Object to be assigned
452
- def employment_status=(employment_status)
453
- validator = EnumAttributeValidator.new('String', ["active", "pending", "terminated", "unmapped_value"])
454
- unless validator.valid?(employment_status)
455
- fail ArgumentError, "invalid value for \"employment_status\", must be one of #{validator.allowable_values}."
456
- end
457
- @employment_status = employment_status
458
- end
459
-
460
378
  # Checks equality by comparing each attribute.
461
379
  # @param [Object] Object to be compared
462
380
  def ==(o)