affixapi 1.1.59 → 1.1.62

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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +6 -0
  4. data/docs/Class20230301Api.md +10 -5
  5. data/docs/CreateEmployeeRequest.md +7 -3
  6. data/docs/CreateEmployeeRequestDependents.md +20 -0
  7. data/docs/CreateEmployeeRequestEmergencyContacts.md +26 -0
  8. data/docs/EmployeeResponse.md +7 -3
  9. data/docs/EmploymentStatus.md +15 -0
  10. data/docs/EmploymentStatusNotNull.md +15 -0
  11. data/docs/EmploymentStatusNotNullRequest.md +15 -0
  12. data/docs/EmploymentStatusResponse.md +15 -0
  13. data/docs/XHRVerticallyIntegratedApi.md +10 -5
  14. data/lib/openapi_client/api/class20230301_api.rb +3 -0
  15. data/lib/openapi_client/api/xhr_vertically_integrated_api.rb +3 -0
  16. data/lib/openapi_client/models/create_employee_request.rb +30 -18
  17. data/lib/openapi_client/models/create_employee_request_dependents.rb +229 -0
  18. data/lib/openapi_client/models/create_employee_request_emergency_contacts.rb +259 -0
  19. data/lib/openapi_client/models/employee_response.rb +30 -18
  20. data/lib/openapi_client/models/employment_status.rb +40 -0
  21. data/lib/openapi_client/models/employment_status_not_null.rb +39 -0
  22. data/lib/openapi_client/models/employment_status_not_null_request.rb +39 -0
  23. data/lib/openapi_client/models/employment_status_response.rb +40 -0
  24. data/lib/openapi_client/models/time_off_balance_response.rb +2 -10
  25. data/lib/openapi_client/version.rb +1 -1
  26. data/lib/openapi_client.rb +6 -0
  27. data/spec/api/class20230301_api_spec.rb +1 -0
  28. data/spec/api/xhr_vertically_integrated_api_spec.rb +1 -0
  29. data/spec/models/create_employee_request_dependents_spec.rb +40 -0
  30. data/spec/models/create_employee_request_emergency_contacts_spec.rb +58 -0
  31. data/spec/models/create_employee_request_spec.rb +12 -4
  32. data/spec/models/employee_response_spec.rb +12 -4
  33. data/spec/models/employment_status_not_null_request_spec.rb +28 -0
  34. data/spec/models/employment_status_not_null_spec.rb +28 -0
  35. data/spec/models/employment_status_response_spec.rb +28 -0
  36. data/spec/models/employment_status_spec.rb +28 -0
  37. metadata +26 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38acff549d23c32bf0ea9e6504535fab01b839f1659b3c867bb269c81a3d9acc
4
- data.tar.gz: ab2d9fb64498736f6487328c46f9e4919d18b8dc943e18de8e917e9172feb079
3
+ metadata.gz: 58895b146e59798b8d0cf9b68be490bda1612804db6ed02aa410973741046e1f
4
+ data.tar.gz: 5e913bcd3c7073d0b6150e0e6c13c42f2815f69fb5d5b49f91cf48aea2bd5060
5
5
  SHA512:
6
- metadata.gz: 848c3766898d50acac3e28a9c486bab13a3c291472b8bac5638be62f6e718f0327d2e0ac3615c184e88494eac9ab7e377c3de86c24dc3787c0036ae80b391f3b
7
- data.tar.gz: 5106125edd8b05e4e63a21c0e21c6d472cb2009bb09bbaa29861159c62cfe33f5a52a7680ac348e5f826e6dcc9d5ebdbf04b52196a17a6786eef39646284b080
6
+ metadata.gz: 2fc93c9dfe174b5664d3fee39779f78ef6c51a08d75a62d5bb65e359ec877f0f69ab769aca33829507bbdca5c464a26be51a045e352bd70bf56a8e372b0037af
7
+ data.tar.gz: 2d356bb1c1c5e5b52eb518603ad0f70a4a6eb369eba6b7dd75efa5407e503e62b9748aa0a13c76da63c00bc0417c18c4be9e9adbdae40a48305f31ef9e7835a6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- affixapi (1.1.59)
4
+ affixapi (1.1.62)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -326,6 +326,8 @@ Class | Method | HTTP request | Description
326
326
  - [OpenapiClient::CompanyResponse](docs/CompanyResponse.md)
327
327
  - [OpenapiClient::CreateEmployeeRequest](docs/CreateEmployeeRequest.md)
328
328
  - [OpenapiClient::CreateEmployeeRequestBankAccount](docs/CreateEmployeeRequestBankAccount.md)
329
+ - [OpenapiClient::CreateEmployeeRequestDependents](docs/CreateEmployeeRequestDependents.md)
330
+ - [OpenapiClient::CreateEmployeeRequestEmergencyContacts](docs/CreateEmployeeRequestEmergencyContacts.md)
329
331
  - [OpenapiClient::CreateEmployeeRequestManager](docs/CreateEmployeeRequestManager.md)
330
332
  - [OpenapiClient::CurrencyNotNullRequest](docs/CurrencyNotNullRequest.md)
331
333
  - [OpenapiClient::CurrencyResponse](docs/CurrencyResponse.md)
@@ -334,6 +336,10 @@ Class | Method | HTTP request | Description
334
336
  - [OpenapiClient::EmployeeResponseManager](docs/EmployeeResponseManager.md)
335
337
  - [OpenapiClient::EmploymentNoNullEnumRequest](docs/EmploymentNoNullEnumRequest.md)
336
338
  - [OpenapiClient::EmploymentResponse](docs/EmploymentResponse.md)
339
+ - [OpenapiClient::EmploymentStatus](docs/EmploymentStatus.md)
340
+ - [OpenapiClient::EmploymentStatusNotNull](docs/EmploymentStatusNotNull.md)
341
+ - [OpenapiClient::EmploymentStatusNotNullRequest](docs/EmploymentStatusNotNullRequest.md)
342
+ - [OpenapiClient::EmploymentStatusResponse](docs/EmploymentStatusResponse.md)
337
343
  - [OpenapiClient::GroupNoNullEnumRequest](docs/GroupNoNullEnumRequest.md)
338
344
  - [OpenapiClient::GroupResponse](docs/GroupResponse.md)
339
345
  - [OpenapiClient::IdAndMessageResponse](docs/IdAndMessageResponse.md)
@@ -86,7 +86,7 @@ This endpoint does not need any parameter.
86
86
 
87
87
  ## xhr_employees20230301
88
88
 
89
- > <Array<EmployeeResponse>> xhr_employees20230301
89
+ > <Array<EmployeeResponse>> xhr_employees20230301(opts)
90
90
 
91
91
  Employees
92
92
 
@@ -106,10 +106,13 @@ OpenapiClient.configure do |config|
106
106
  end
107
107
 
108
108
  api_instance = OpenapiClient::Class20230301Api.new
109
+ opts = {
110
+ employment_status: OpenapiClient::EmploymentStatusNotNull::ACTIVE # EmploymentStatusNotNull | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
111
+ }
109
112
 
110
113
  begin
111
114
  # Employees
112
- result = api_instance.xhr_employees20230301
115
+ result = api_instance.xhr_employees20230301(opts)
113
116
  p result
114
117
  rescue OpenapiClient::ApiError => e
115
118
  puts "Error when calling Class20230301Api->xhr_employees20230301: #{e}"
@@ -120,12 +123,12 @@ end
120
123
 
121
124
  This returns an Array which contains the response data, status code and headers.
122
125
 
123
- > <Array(<Array<EmployeeResponse>>, Integer, Hash)> xhr_employees20230301_with_http_info
126
+ > <Array(<Array<EmployeeResponse>>, Integer, Hash)> xhr_employees20230301_with_http_info(opts)
124
127
 
125
128
  ```ruby
126
129
  begin
127
130
  # Employees
128
- data, status_code, headers = api_instance.xhr_employees20230301_with_http_info
131
+ data, status_code, headers = api_instance.xhr_employees20230301_with_http_info(opts)
129
132
  p status_code # => 2xx
130
133
  p headers # => { ... }
131
134
  p data # => <Array<EmployeeResponse>>
@@ -136,7 +139,9 @@ end
136
139
 
137
140
  ### Parameters
138
141
 
139
- This endpoint does not need any parameter.
142
+ | Name | Type | Description | Notes |
143
+ | ---- | ---- | ----------- | ----- |
144
+ | **employment_status** | [**EmploymentStatusNotNull**](.md) | Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set) | [optional] |
140
145
 
141
146
  ### Return type
142
147
 
@@ -18,7 +18,7 @@
18
18
  | **ethnicity** | **String** | | [optional] |
19
19
  | **marital_status** | **String** | | [optional] |
20
20
  | **date_of_birth** | **Date** | | [optional] |
21
- | **employment_status** | **String** | | [optional] |
21
+ | **employment_status** | [**EmploymentStatusNotNullRequest**](EmploymentStatusNotNullRequest.md) | | [optional] |
22
22
  | **employment_type** | **String** | | [optional] |
23
23
  | **start_date** | **Date** | | [optional] |
24
24
  | **termination_date** | **Date** | | [optional] |
@@ -30,6 +30,8 @@
30
30
  | **employments** | [**Array&lt;EmploymentNoNullEnumRequest&gt;**](EmploymentNoNullEnumRequest.md) | | [optional] |
31
31
  | **custom_fields** | **Object** | | [optional] |
32
32
  | **groups** | [**Array&lt;GroupNoNullEnumRequest&gt;**](GroupNoNullEnumRequest.md) | | [optional] |
33
+ | **dependents** | [**Array&lt;CreateEmployeeRequestDependents&gt;**](CreateEmployeeRequestDependents.md) | | [optional] |
34
+ | **emergency_contacts** | [**Array&lt;CreateEmployeeRequestEmergencyContacts&gt;**](CreateEmployeeRequestEmergencyContacts.md) | | [optional] |
33
35
 
34
36
  ## Example
35
37
 
@@ -51,7 +53,7 @@ instance = OpenapiClient::CreateEmployeeRequest.new(
51
53
  ethnicity: white,
52
54
  marital_status: single,
53
55
  date_of_birth: Sat Nov 10 00:00:00 UTC 1990,
54
- employment_status: active,
56
+ employment_status: null,
55
57
  employment_type: full_time,
56
58
  start_date: Sun Oct 11 00:00:00 UTC 2020,
57
59
  termination_date: Tue Oct 12 00:00:00 UTC 2021,
@@ -62,7 +64,9 @@ instance = OpenapiClient::CreateEmployeeRequest.new(
62
64
  bank_account: null,
63
65
  employments: null,
64
66
  custom_fields: {&quot;t_shirt_size&quot;:&quot;medium&quot;},
65
- groups: [{&quot;id&quot;:&quot;4B9bKBpX5tnwjiG93TAqF7ci&quot;,&quot;remote_id&quot;:&quot;df6c28e8&quot;,&quot;name&quot;:&quot;backend&quot;,&quot;type&quot;:&quot;team&quot;},{&quot;id&quot;:&quot;132Xpnw2a38aaQG93TAqF7ci&quot;,&quot;remote_id&quot;:&quot;355c65922637&quot;,&quot;name&quot;:&quot;engineering&quot;,&quot;type&quot;:&quot;department&quot;}]
67
+ groups: [{&quot;id&quot;:&quot;4B9bKBpX5tnwjiG93TAqF7ci&quot;,&quot;remote_id&quot;:&quot;df6c28e8&quot;,&quot;name&quot;:&quot;backend&quot;,&quot;type&quot;:&quot;team&quot;},{&quot;id&quot;:&quot;132Xpnw2a38aaQG93TAqF7ci&quot;,&quot;remote_id&quot;:&quot;355c65922637&quot;,&quot;name&quot;:&quot;engineering&quot;,&quot;type&quot;:&quot;department&quot;}],
68
+ dependents: null,
69
+ emergency_contacts: null
66
70
  )
67
71
  ```
68
72
 
@@ -0,0 +1,20 @@
1
+ # OpenapiClient::CreateEmployeeRequestDependents
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **relationship** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'openapi_client'
14
+
15
+ instance = OpenapiClient::CreateEmployeeRequestDependents.new(
16
+ name: null,
17
+ relationship: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,26 @@
1
+ # OpenapiClient::CreateEmployeeRequestEmergencyContacts
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **first_name** | **String** | | |
8
+ | **last_name** | **String** | | |
9
+ | **relationship** | **String** | | |
10
+ | **mobile_phone_number** | **String** | | |
11
+ | **primary_contact** | **Boolean** | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'openapi_client'
17
+
18
+ instance = OpenapiClient::CreateEmployeeRequestEmergencyContacts.new(
19
+ first_name: null,
20
+ last_name: null,
21
+ relationship: null,
22
+ mobile_phone_number: null,
23
+ primary_contact: null
24
+ )
25
+ ```
26
+
@@ -20,7 +20,7 @@
20
20
  | **ethnicity** | **String** | | |
21
21
  | **marital_status** | **String** | &#x60;other&#x60; option can include co-habitating, civil partnership, separated, divorced, widowed, etc | |
22
22
  | **date_of_birth** | **Date** | | |
23
- | **employment_status** | **String** | | |
23
+ | **employment_status** | [**EmploymentStatusResponse**](EmploymentStatusResponse.md) | | |
24
24
  | **employment_type** | **String** | | |
25
25
  | **start_date** | **Date** | | |
26
26
  | **remote_created_at** | **Date** | | [readonly] |
@@ -33,6 +33,8 @@
33
33
  | **employments** | [**Array&lt;EmploymentResponse&gt;**](EmploymentResponse.md) | | |
34
34
  | **custom_fields** | **Object** | | |
35
35
  | **groups** | [**Array&lt;GroupResponse&gt;**](GroupResponse.md) | | |
36
+ | **dependents** | [**Array&lt;CreateEmployeeRequestDependents&gt;**](CreateEmployeeRequestDependents.md) | | |
37
+ | **emergency_contacts** | [**Array&lt;CreateEmployeeRequestEmergencyContacts&gt;**](CreateEmployeeRequestEmergencyContacts.md) | | |
36
38
 
37
39
  ## Example
38
40
 
@@ -56,7 +58,7 @@ instance = OpenapiClient::EmployeeResponse.new(
56
58
  ethnicity: white,
57
59
  marital_status: single,
58
60
  date_of_birth: Sat Nov 10 00:00:00 UTC 1990,
59
- employment_status: active,
61
+ employment_status: null,
60
62
  employment_type: full_time,
61
63
  start_date: Sun Oct 11 00:00:00 UTC 2020,
62
64
  remote_created_at: Sun Oct 11 00:00:00 UTC 2020,
@@ -68,7 +70,9 @@ instance = OpenapiClient::EmployeeResponse.new(
68
70
  bank_account: null,
69
71
  employments: null,
70
72
  custom_fields: {&quot;t_shirt_size&quot;:&quot;medium&quot;},
71
- groups: [{&quot;id&quot;:&quot;4B9bKBpX5tnwjiG93TAqF7ci&quot;,&quot;remote_id&quot;:&quot;df6c28e8&quot;,&quot;name&quot;:&quot;backend&quot;,&quot;type&quot;:&quot;team&quot;},{&quot;id&quot;:&quot;132Xpnw2a38aaQG93TAqF7ci&quot;,&quot;remote_id&quot;:&quot;355c65922637&quot;,&quot;name&quot;:&quot;engineering&quot;,&quot;type&quot;:&quot;department&quot;}]
73
+ groups: [{&quot;id&quot;:&quot;4B9bKBpX5tnwjiG93TAqF7ci&quot;,&quot;remote_id&quot;:&quot;df6c28e8&quot;,&quot;name&quot;:&quot;backend&quot;,&quot;type&quot;:&quot;team&quot;},{&quot;id&quot;:&quot;132Xpnw2a38aaQG93TAqF7ci&quot;,&quot;remote_id&quot;:&quot;355c65922637&quot;,&quot;name&quot;:&quot;engineering&quot;,&quot;type&quot;:&quot;department&quot;}],
74
+ dependents: null,
75
+ emergency_contacts: null
72
76
  )
73
77
  ```
74
78
 
@@ -0,0 +1,15 @@
1
+ # OpenapiClient::EmploymentStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'openapi_client'
12
+
13
+ instance = OpenapiClient::EmploymentStatus.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # OpenapiClient::EmploymentStatusNotNull
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'openapi_client'
12
+
13
+ instance = OpenapiClient::EmploymentStatusNotNull.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # OpenapiClient::EmploymentStatusNotNullRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'openapi_client'
12
+
13
+ instance = OpenapiClient::EmploymentStatusNotNullRequest.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # OpenapiClient::EmploymentStatusResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'openapi_client'
12
+
13
+ instance = OpenapiClient::EmploymentStatusResponse.new()
14
+ ```
15
+
@@ -86,7 +86,7 @@ This endpoint does not need any parameter.
86
86
 
87
87
  ## xhr_employees20230301
88
88
 
89
- > <Array<EmployeeResponse>> xhr_employees20230301
89
+ > <Array<EmployeeResponse>> xhr_employees20230301(opts)
90
90
 
91
91
  Employees
92
92
 
@@ -106,10 +106,13 @@ OpenapiClient.configure do |config|
106
106
  end
107
107
 
108
108
  api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
109
+ opts = {
110
+ employment_status: OpenapiClient::EmploymentStatusNotNull::ACTIVE # EmploymentStatusNotNull | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
111
+ }
109
112
 
110
113
  begin
111
114
  # Employees
112
- result = api_instance.xhr_employees20230301
115
+ result = api_instance.xhr_employees20230301(opts)
113
116
  p result
114
117
  rescue OpenapiClient::ApiError => e
115
118
  puts "Error when calling XHRVerticallyIntegratedApi->xhr_employees20230301: #{e}"
@@ -120,12 +123,12 @@ end
120
123
 
121
124
  This returns an Array which contains the response data, status code and headers.
122
125
 
123
- > <Array(<Array<EmployeeResponse>>, Integer, Hash)> xhr_employees20230301_with_http_info
126
+ > <Array(<Array<EmployeeResponse>>, Integer, Hash)> xhr_employees20230301_with_http_info(opts)
124
127
 
125
128
  ```ruby
126
129
  begin
127
130
  # Employees
128
- data, status_code, headers = api_instance.xhr_employees20230301_with_http_info
131
+ data, status_code, headers = api_instance.xhr_employees20230301_with_http_info(opts)
129
132
  p status_code # => 2xx
130
133
  p headers # => { ... }
131
134
  p data # => <Array<EmployeeResponse>>
@@ -136,7 +139,9 @@ end
136
139
 
137
140
  ### Parameters
138
141
 
139
- This endpoint does not need any parameter.
142
+ | Name | Type | Description | Notes |
143
+ | ---- | ---- | ----------- | ----- |
144
+ | **employment_status** | [**EmploymentStatusNotNull**](.md) | Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set) | [optional] |
140
145
 
141
146
  ### Return type
142
147
 
@@ -79,6 +79,7 @@ module OpenapiClient
79
79
  # Employees
80
80
  # List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
81
81
  # @param [Hash] opts the optional parameters
82
+ # @option opts [EmploymentStatusNotNull] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
82
83
  # @return [Array<EmployeeResponse>]
83
84
  def xhr_employees20230301(opts = {})
84
85
  data, _status_code, _headers = xhr_employees20230301_with_http_info(opts)
@@ -88,6 +89,7 @@ module OpenapiClient
88
89
  # Employees
89
90
  # List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
90
91
  # @param [Hash] opts the optional parameters
92
+ # @option opts [EmploymentStatusNotNull] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
91
93
  # @return [Array<(Array<EmployeeResponse>, Integer, Hash)>] Array<EmployeeResponse> data, response status code and response headers
92
94
  def xhr_employees20230301_with_http_info(opts = {})
93
95
  if @api_client.config.debugging
@@ -98,6 +100,7 @@ module OpenapiClient
98
100
 
99
101
  # query parameters
100
102
  query_params = opts[:query_params] || {}
103
+ query_params[:'employment_status'] = opts[:'employment_status'] if !opts[:'employment_status'].nil?
101
104
 
102
105
  # header parameters
103
106
  header_params = opts[:header_params] || {}
@@ -79,6 +79,7 @@ module OpenapiClient
79
79
  # Employees
80
80
  # List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
81
81
  # @param [Hash] opts the optional parameters
82
+ # @option opts [EmploymentStatusNotNull] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
82
83
  # @return [Array<EmployeeResponse>]
83
84
  def xhr_employees20230301(opts = {})
84
85
  data, _status_code, _headers = xhr_employees20230301_with_http_info(opts)
@@ -88,6 +89,7 @@ module OpenapiClient
88
89
  # Employees
89
90
  # List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
90
91
  # @param [Hash] opts the optional parameters
92
+ # @option opts [EmploymentStatusNotNull] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
91
93
  # @return [Array<(Array<EmployeeResponse>, Integer, Hash)>] Array<EmployeeResponse> data, response status code and response headers
92
94
  def xhr_employees20230301_with_http_info(opts = {})
93
95
  if @api_client.config.debugging
@@ -98,6 +100,7 @@ module OpenapiClient
98
100
 
99
101
  # query parameters
100
102
  query_params = opts[:query_params] || {}
103
+ query_params[:'employment_status'] = opts[:'employment_status'] if !opts[:'employment_status'].nil?
101
104
 
102
105
  # header parameters
103
106
  header_params = opts[:header_params] || {}
@@ -72,6 +72,10 @@ module OpenapiClient
72
72
 
73
73
  attr_accessor :groups
74
74
 
75
+ attr_accessor :dependents
76
+
77
+ attr_accessor :emergency_contacts
78
+
75
79
  class EnumAttributeValidator
76
80
  attr_reader :datatype
77
81
  attr_reader :allowable_values
@@ -122,7 +126,9 @@ module OpenapiClient
122
126
  :'bank_account' => :'bank_account',
123
127
  :'employments' => :'employments',
124
128
  :'custom_fields' => :'custom_fields',
125
- :'groups' => :'groups'
129
+ :'groups' => :'groups',
130
+ :'dependents' => :'dependents',
131
+ :'emergency_contacts' => :'emergency_contacts'
126
132
  }
127
133
  end
128
134
 
@@ -148,7 +154,7 @@ module OpenapiClient
148
154
  :'ethnicity' => :'String',
149
155
  :'marital_status' => :'String',
150
156
  :'date_of_birth' => :'Date',
151
- :'employment_status' => :'String',
157
+ :'employment_status' => :'EmploymentStatusNotNullRequest',
152
158
  :'employment_type' => :'String',
153
159
  :'start_date' => :'Date',
154
160
  :'termination_date' => :'Date',
@@ -159,7 +165,9 @@ module OpenapiClient
159
165
  :'bank_account' => :'CreateEmployeeRequestBankAccount',
160
166
  :'employments' => :'Array<EmploymentNoNullEnumRequest>',
161
167
  :'custom_fields' => :'Object',
162
- :'groups' => :'Array<GroupNoNullEnumRequest>'
168
+ :'groups' => :'Array<GroupNoNullEnumRequest>',
169
+ :'dependents' => :'Array<CreateEmployeeRequestDependents>',
170
+ :'emergency_contacts' => :'Array<CreateEmployeeRequestEmergencyContacts>'
163
171
  }
164
172
  end
165
173
 
@@ -189,7 +197,9 @@ module OpenapiClient
189
197
  :'bank_account',
190
198
  :'employments',
191
199
  :'custom_fields',
192
- :'groups'
200
+ :'groups',
201
+ :'dependents',
202
+ :'emergency_contacts'
193
203
  ])
194
204
  end
195
205
 
@@ -315,6 +325,18 @@ module OpenapiClient
315
325
  self.groups = value
316
326
  end
317
327
  end
328
+
329
+ if attributes.key?(:'dependents')
330
+ if (value = attributes[:'dependents']).is_a?(Array)
331
+ self.dependents = value
332
+ end
333
+ end
334
+
335
+ if attributes.key?(:'emergency_contacts')
336
+ if (value = attributes[:'emergency_contacts']).is_a?(Array)
337
+ self.emergency_contacts = value
338
+ end
339
+ end
318
340
  end
319
341
 
320
342
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -343,8 +365,6 @@ module OpenapiClient
343
365
  return false unless ethnicity_validator.valid?(@ethnicity)
344
366
  marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "not_specified"])
345
367
  return false unless marital_status_validator.valid?(@marital_status)
346
- employment_status_validator = EnumAttributeValidator.new('String', ["active", "inactive", "pending", "leave"])
347
- return false unless employment_status_validator.valid?(@employment_status)
348
368
  employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "other"])
349
369
  return false unless employment_type_validator.valid?(@employment_type)
350
370
  true
@@ -380,16 +400,6 @@ module OpenapiClient
380
400
  @marital_status = marital_status
381
401
  end
382
402
 
383
- # Custom attribute writer method checking allowed values (enum).
384
- # @param [Object] employment_status Object to be assigned
385
- def employment_status=(employment_status)
386
- validator = EnumAttributeValidator.new('String', ["active", "inactive", "pending", "leave"])
387
- unless validator.valid?(employment_status)
388
- fail ArgumentError, "invalid value for \"employment_status\", must be one of #{validator.allowable_values}."
389
- end
390
- @employment_status = employment_status
391
- end
392
-
393
403
  # Custom attribute writer method checking allowed values (enum).
394
404
  # @param [Object] employment_type Object to be assigned
395
405
  def employment_type=(employment_type)
@@ -430,7 +440,9 @@ module OpenapiClient
430
440
  bank_account == o.bank_account &&
431
441
  employments == o.employments &&
432
442
  custom_fields == o.custom_fields &&
433
- groups == o.groups
443
+ groups == o.groups &&
444
+ dependents == o.dependents &&
445
+ emergency_contacts == o.emergency_contacts
434
446
  end
435
447
 
436
448
  # @see the `==` method
@@ -442,7 +454,7 @@ module OpenapiClient
442
454
  # Calculates hash code according to all attributes.
443
455
  # @return [Integer] Hash code
444
456
  def hash
445
- [employee_number, first_name, last_name, display_full_name, nationality, job_title, work_email, personal_email, mobile_phone_number, tax_id, gender, ethnicity, marital_status, date_of_birth, employment_status, employment_type, start_date, termination_date, avatar, home_location, work_location, manager, bank_account, employments, custom_fields, groups].hash
457
+ [employee_number, first_name, last_name, display_full_name, nationality, job_title, work_email, personal_email, mobile_phone_number, tax_id, gender, ethnicity, marital_status, date_of_birth, employment_status, employment_type, start_date, termination_date, avatar, home_location, work_location, manager, bank_account, employments, custom_fields, groups, dependents, emergency_contacts].hash
446
458
  end
447
459
 
448
460
  # Builds the object from hash