affixapi 1.1.70 → 1.1.71
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/README.md +5 -3
- data/docs/{EmploymentNoNullEnumRequest.md → CompensationHistoryNoNonNullRequest.md} +3 -5
- data/docs/{EmploymentResponse.md → CompensationHistoryResponse.md} +2 -4
- data/docs/CreateEmployeeRequest.md +4 -2
- data/docs/{CurrencyNotNullRequest.md → CurrencyRequest.md} +2 -2
- data/docs/EmployeeResponse.md +4 -2
- data/docs/EmploymentHistoryNoNonNullRequest.md +26 -0
- data/docs/EmploymentHistoryResponse.md +26 -0
- data/lib/openapi_client/models/{employment_no_null_enum_request.rb → compensation_history_no_non_null_request.rb} +30 -20
- data/lib/openapi_client/models/{employment_response.rb → compensation_history_response.rb} +4 -14
- data/lib/openapi_client/models/create_employee_request.rb +21 -9
- data/lib/openapi_client/models/{currency_not_null_request.rb → currency_request.rb} +4 -3
- data/lib/openapi_client/models/employee_response.rb +21 -9
- data/lib/openapi_client/models/employment_history_no_non_null_request.rb +267 -0
- data/lib/openapi_client/models/employment_history_response.rb +259 -0
- data/lib/openapi_client/version.rb +1 -1
- data/lib/openapi_client.rb +5 -3
- data/spec/models/{employment_no_null_enum_request_spec.rb → compensation_history_no_non_null_request_spec.rb} +6 -12
- data/spec/models/{employment_response_spec.rb → compensation_history_response_spec.rb} +6 -12
- data/spec/models/create_employee_request_spec.rb +7 -1
- data/spec/models/{currency_not_null_request_spec.rb → currency_request_spec.rb} +6 -6
- data/spec/models/employee_response_spec.rb +7 -1
- data/spec/models/employment_history_no_non_null_request_spec.rb +58 -0
- data/spec/models/employment_history_response_spec.rb +58 -0
- metadata +21 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 387f3e411d00bf9cfba35281809fbdddddad81c4280e2d118c35d63f81c3cb6e
|
4
|
+
data.tar.gz: d5164ef1d9c6463cfbcc56ea1f96f4d850e2ce4c0f2bc37c798413a71936ab57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 801071afbbfdf3a893153db5c666e7632f1831d65a605de9431a1fab57f896a11e200a456a10bc1cc90fe7ebbad86e16c3f6f890d92d1623726877aae0db8c58
|
7
|
+
data.tar.gz: 0437a05b68d11779e9dbe5e1614bede9afc7663bc73136553181cbdef33de8466c027420a1dfd76d5db876476147d8768bf9dd370b409c51d6c5652cee291623
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -324,18 +324,20 @@ Class | Method | HTTP request | Description
|
|
324
324
|
- [OpenapiClient::ClientRequest](docs/ClientRequest.md)
|
325
325
|
- [OpenapiClient::ClientResponse](docs/ClientResponse.md)
|
326
326
|
- [OpenapiClient::CompanyResponse](docs/CompanyResponse.md)
|
327
|
+
- [OpenapiClient::CompensationHistoryNoNonNullRequest](docs/CompensationHistoryNoNonNullRequest.md)
|
328
|
+
- [OpenapiClient::CompensationHistoryResponse](docs/CompensationHistoryResponse.md)
|
327
329
|
- [OpenapiClient::CreateEmployeeRequest](docs/CreateEmployeeRequest.md)
|
328
330
|
- [OpenapiClient::CreateEmployeeRequestBankAccount](docs/CreateEmployeeRequestBankAccount.md)
|
329
331
|
- [OpenapiClient::CreateEmployeeRequestDependents](docs/CreateEmployeeRequestDependents.md)
|
330
332
|
- [OpenapiClient::CreateEmployeeRequestEmergencyContacts](docs/CreateEmployeeRequestEmergencyContacts.md)
|
331
333
|
- [OpenapiClient::CreateEmployeeRequestManager](docs/CreateEmployeeRequestManager.md)
|
332
|
-
- [OpenapiClient::
|
334
|
+
- [OpenapiClient::CurrencyRequest](docs/CurrencyRequest.md)
|
333
335
|
- [OpenapiClient::CurrencyResponse](docs/CurrencyResponse.md)
|
334
336
|
- [OpenapiClient::DisconnectResponse](docs/DisconnectResponse.md)
|
335
337
|
- [OpenapiClient::EmployeeResponse](docs/EmployeeResponse.md)
|
336
338
|
- [OpenapiClient::EmployeeResponseManager](docs/EmployeeResponseManager.md)
|
337
|
-
- [OpenapiClient::
|
338
|
-
- [OpenapiClient::
|
339
|
+
- [OpenapiClient::EmploymentHistoryNoNonNullRequest](docs/EmploymentHistoryNoNonNullRequest.md)
|
340
|
+
- [OpenapiClient::EmploymentHistoryResponse](docs/EmploymentHistoryResponse.md)
|
339
341
|
- [OpenapiClient::EmploymentStatusNotNullNotNullable](docs/EmploymentStatusNotNullNotNullable.md)
|
340
342
|
- [OpenapiClient::EmploymentStatusNotNullRequest](docs/EmploymentStatusNotNullRequest.md)
|
341
343
|
- [OpenapiClient::EmploymentStatusResponse](docs/EmploymentStatusResponse.md)
|
@@ -1,15 +1,14 @@
|
|
1
|
-
# OpenapiClient::
|
1
|
+
# OpenapiClient::CompensationHistoryNoNonNullRequest
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **job_title** | **String** | | |
|
8
7
|
| **pay_rate** | **Float** | | |
|
9
8
|
| **pay_period** | **String** | | |
|
10
9
|
| **pay_frequency** | **String** | | |
|
11
10
|
| **employment_type** | **String** | | |
|
12
|
-
| **currency** | [**
|
11
|
+
| **currency** | [**CurrencyRequest**](CurrencyRequest.md) | | |
|
13
12
|
| **effective_date** | **Date** | | |
|
14
13
|
|
15
14
|
## Example
|
@@ -17,8 +16,7 @@
|
|
17
16
|
```ruby
|
18
17
|
require 'openapi_client'
|
19
18
|
|
20
|
-
instance = OpenapiClient::
|
21
|
-
job_title: Software Developer,
|
19
|
+
instance = OpenapiClient::CompensationHistoryNoNonNullRequest.new(
|
22
20
|
pay_rate: 85000,
|
23
21
|
pay_period: year,
|
24
22
|
pay_frequency: semimonthly,
|
@@ -1,10 +1,9 @@
|
|
1
|
-
# OpenapiClient::
|
1
|
+
# OpenapiClient::CompensationHistoryResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **job_title** | **String** | | |
|
8
7
|
| **pay_rate** | **Float** | | |
|
9
8
|
| **pay_period** | **String** | | |
|
10
9
|
| **pay_frequency** | **String** | | |
|
@@ -17,8 +16,7 @@
|
|
17
16
|
```ruby
|
18
17
|
require 'openapi_client'
|
19
18
|
|
20
|
-
instance = OpenapiClient::
|
21
|
-
job_title: Software Developer,
|
19
|
+
instance = OpenapiClient::CompensationHistoryResponse.new(
|
22
20
|
pay_rate: 85000,
|
23
21
|
pay_period: year,
|
24
22
|
pay_frequency: semimonthly,
|
@@ -27,7 +27,8 @@
|
|
27
27
|
| **work_location** | [**LocationNoNonNullRequest**](LocationNoNonNullRequest.md) | | [optional] |
|
28
28
|
| **manager** | [**CreateEmployeeRequestManager**](CreateEmployeeRequestManager.md) | | [optional] |
|
29
29
|
| **bank_account** | [**CreateEmployeeRequestBankAccount**](CreateEmployeeRequestBankAccount.md) | | [optional] |
|
30
|
-
| **
|
30
|
+
| **employment_history** | [**Array<EmploymentHistoryNoNonNullRequest>**](EmploymentHistoryNoNonNullRequest.md) | | [optional] |
|
31
|
+
| **compensation_history** | [**Array<CompensationHistoryNoNonNullRequest>**](CompensationHistoryNoNonNullRequest.md) | | [optional] |
|
31
32
|
| **custom_fields** | **Object** | | [optional] |
|
32
33
|
| **groups** | [**Array<GroupNoNullEnumRequest>**](GroupNoNullEnumRequest.md) | | [optional] |
|
33
34
|
| **dependents** | [**Array<CreateEmployeeRequestDependents>**](CreateEmployeeRequestDependents.md) | | [optional] |
|
@@ -62,7 +63,8 @@ instance = OpenapiClient::CreateEmployeeRequest.new(
|
|
62
63
|
work_location: null,
|
63
64
|
manager: null,
|
64
65
|
bank_account: null,
|
65
|
-
|
66
|
+
employment_history: null,
|
67
|
+
compensation_history: null,
|
66
68
|
custom_fields: {"t_shirt_size":"medium"},
|
67
69
|
groups: [{"id":"4B9bKBpX5tnwjiG93TAqF7ci","remote_id":"df6c28e8","name":"backend","type":"team"},{"id":"132Xpnw2a38aaQG93TAqF7ci","remote_id":"355c65922637","name":"engineering","type":"department"}],
|
68
70
|
dependents: null,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# OpenapiClient::
|
1
|
+
# OpenapiClient::CurrencyRequest
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -10,6 +10,6 @@
|
|
10
10
|
```ruby
|
11
11
|
require 'openapi_client'
|
12
12
|
|
13
|
-
instance = OpenapiClient::
|
13
|
+
instance = OpenapiClient::CurrencyRequest.new()
|
14
14
|
```
|
15
15
|
|
data/docs/EmployeeResponse.md
CHANGED
@@ -30,7 +30,8 @@
|
|
30
30
|
| **work_location** | [**LocationResponse**](LocationResponse.md) | | |
|
31
31
|
| **manager** | [**EmployeeResponseManager**](EmployeeResponseManager.md) | | |
|
32
32
|
| **bank_account** | [**CreateEmployeeRequestBankAccount**](CreateEmployeeRequestBankAccount.md) | | |
|
33
|
-
| **
|
33
|
+
| **employment_history** | [**Array<EmploymentHistoryResponse>**](EmploymentHistoryResponse.md) | | |
|
34
|
+
| **compensation_history** | [**Array<CompensationHistoryResponse>**](CompensationHistoryResponse.md) | | |
|
34
35
|
| **custom_fields** | **Object** | | |
|
35
36
|
| **groups** | [**Array<GroupResponse>**](GroupResponse.md) | | |
|
36
37
|
| **dependents** | [**Array<CreateEmployeeRequestDependents>**](CreateEmployeeRequestDependents.md) | | |
|
@@ -68,7 +69,8 @@ instance = OpenapiClient::EmployeeResponse.new(
|
|
68
69
|
work_location: null,
|
69
70
|
manager: null,
|
70
71
|
bank_account: null,
|
71
|
-
|
72
|
+
employment_history: null,
|
73
|
+
compensation_history: null,
|
72
74
|
custom_fields: {"t_shirt_size":"medium"},
|
73
75
|
groups: [{"id":"4B9bKBpX5tnwjiG93TAqF7ci","remote_id":"df6c28e8","name":"backend","type":"team"},{"id":"132Xpnw2a38aaQG93TAqF7ci","remote_id":"355c65922637","name":"engineering","type":"department"}],
|
74
76
|
dependents: null,
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# OpenapiClient::EmploymentHistoryNoNonNullRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **job_title** | **String** | | |
|
8
|
+
| **effective_date** | **Date** | | |
|
9
|
+
| **group_id** | **String** | | |
|
10
|
+
| **group_remote_id** | **String** | | |
|
11
|
+
| **group_name** | **String** | | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'openapi_client'
|
17
|
+
|
18
|
+
instance = OpenapiClient::EmploymentHistoryNoNonNullRequest.new(
|
19
|
+
job_title: Software Developer,
|
20
|
+
effective_date: Sun Oct 11 00:00:00 UTC 2020,
|
21
|
+
group_id: 4B9bKBpX5tnwjiG93TAqF7ci,
|
22
|
+
group_remote_id: 49,
|
23
|
+
group_name: Engineering
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# OpenapiClient::EmploymentHistoryResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **job_title** | **String** | | |
|
8
|
+
| **effective_date** | **Date** | | |
|
9
|
+
| **group_id** | **String** | | |
|
10
|
+
| **group_remote_id** | **String** | | |
|
11
|
+
| **group_name** | **String** | | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'openapi_client'
|
17
|
+
|
18
|
+
instance = OpenapiClient::EmploymentHistoryResponse.new(
|
19
|
+
job_title: Software Developer,
|
20
|
+
effective_date: Sun Oct 11 00:00:00 UTC 2020,
|
21
|
+
group_id: 4B9bKBpX5tnwjiG93TAqF7ci,
|
22
|
+
group_remote_id: 49,
|
23
|
+
group_name: Engineering
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -14,9 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OpenapiClient
|
17
|
-
class
|
18
|
-
attr_accessor :job_title
|
19
|
-
|
17
|
+
class CompensationHistoryNoNonNullRequest
|
20
18
|
attr_accessor :pay_rate
|
21
19
|
|
22
20
|
attr_accessor :pay_period
|
@@ -54,7 +52,6 @@ module OpenapiClient
|
|
54
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
53
|
def self.attribute_map
|
56
54
|
{
|
57
|
-
:'job_title' => :'job_title',
|
58
55
|
:'pay_rate' => :'pay_rate',
|
59
56
|
:'pay_period' => :'pay_period',
|
60
57
|
:'pay_frequency' => :'pay_frequency',
|
@@ -72,12 +69,11 @@ module OpenapiClient
|
|
72
69
|
# Attribute type mapping.
|
73
70
|
def self.openapi_types
|
74
71
|
{
|
75
|
-
:'job_title' => :'String',
|
76
72
|
:'pay_rate' => :'Float',
|
77
73
|
:'pay_period' => :'String',
|
78
74
|
:'pay_frequency' => :'String',
|
79
75
|
:'employment_type' => :'String',
|
80
|
-
:'currency' => :'
|
76
|
+
:'currency' => :'CurrencyRequest',
|
81
77
|
:'effective_date' => :'Date'
|
82
78
|
}
|
83
79
|
end
|
@@ -85,13 +81,7 @@ module OpenapiClient
|
|
85
81
|
# List of attributes with nullable: true
|
86
82
|
def self.openapi_nullable
|
87
83
|
Set.new([
|
88
|
-
:'job_title',
|
89
|
-
:'pay_rate',
|
90
|
-
:'pay_period',
|
91
|
-
:'pay_frequency',
|
92
|
-
:'employment_type',
|
93
84
|
:'currency',
|
94
|
-
:'effective_date'
|
95
85
|
])
|
96
86
|
end
|
97
87
|
|
@@ -99,21 +89,17 @@ module OpenapiClient
|
|
99
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
100
90
|
def initialize(attributes = {})
|
101
91
|
if (!attributes.is_a?(Hash))
|
102
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::
|
92
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CompensationHistoryNoNonNullRequest` initialize method"
|
103
93
|
end
|
104
94
|
|
105
95
|
# check to see if the attribute exists and convert string to symbol for hash key
|
106
96
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
107
97
|
if (!self.class.attribute_map.key?(k.to_sym))
|
108
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::
|
98
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CompensationHistoryNoNonNullRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
109
99
|
end
|
110
100
|
h[k.to_sym] = v
|
111
101
|
}
|
112
102
|
|
113
|
-
if attributes.key?(:'job_title')
|
114
|
-
self.job_title = attributes[:'job_title']
|
115
|
-
end
|
116
|
-
|
117
103
|
if attributes.key?(:'pay_rate')
|
118
104
|
self.pay_rate = attributes[:'pay_rate']
|
119
105
|
end
|
@@ -143,16 +129,41 @@ module OpenapiClient
|
|
143
129
|
# @return Array for valid properties with the reasons
|
144
130
|
def list_invalid_properties
|
145
131
|
invalid_properties = Array.new
|
132
|
+
if @pay_rate.nil?
|
133
|
+
invalid_properties.push('invalid value for "pay_rate", pay_rate cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if @pay_period.nil?
|
137
|
+
invalid_properties.push('invalid value for "pay_period", pay_period cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if @pay_frequency.nil?
|
141
|
+
invalid_properties.push('invalid value for "pay_frequency", pay_frequency cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
|
+
if @employment_type.nil?
|
145
|
+
invalid_properties.push('invalid value for "employment_type", employment_type cannot be nil.')
|
146
|
+
end
|
147
|
+
|
148
|
+
if @effective_date.nil?
|
149
|
+
invalid_properties.push('invalid value for "effective_date", effective_date cannot be nil.')
|
150
|
+
end
|
151
|
+
|
146
152
|
invalid_properties
|
147
153
|
end
|
148
154
|
|
149
155
|
# Check to see if the all the properties in the model are valid
|
150
156
|
# @return true if the model is valid
|
151
157
|
def valid?
|
158
|
+
return false if @pay_rate.nil?
|
159
|
+
return false if @pay_period.nil?
|
160
|
+
return false if @pay_frequency.nil?
|
152
161
|
pay_frequency_validator = EnumAttributeValidator.new('String', ["weekly", "biweekly", "semimonthly", "monthly", "other"])
|
153
162
|
return false unless pay_frequency_validator.valid?(@pay_frequency)
|
163
|
+
return false if @employment_type.nil?
|
154
164
|
employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "other"])
|
155
165
|
return false unless employment_type_validator.valid?(@employment_type)
|
166
|
+
return false if @effective_date.nil?
|
156
167
|
true
|
157
168
|
end
|
158
169
|
|
@@ -181,7 +192,6 @@ module OpenapiClient
|
|
181
192
|
def ==(o)
|
182
193
|
return true if self.equal?(o)
|
183
194
|
self.class == o.class &&
|
184
|
-
job_title == o.job_title &&
|
185
195
|
pay_rate == o.pay_rate &&
|
186
196
|
pay_period == o.pay_period &&
|
187
197
|
pay_frequency == o.pay_frequency &&
|
@@ -199,7 +209,7 @@ module OpenapiClient
|
|
199
209
|
# Calculates hash code according to all attributes.
|
200
210
|
# @return [Integer] Hash code
|
201
211
|
def hash
|
202
|
-
[
|
212
|
+
[pay_rate, pay_period, pay_frequency, employment_type, currency, effective_date].hash
|
203
213
|
end
|
204
214
|
|
205
215
|
# Builds the object from hash
|
@@ -14,9 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OpenapiClient
|
17
|
-
class
|
18
|
-
attr_accessor :job_title
|
19
|
-
|
17
|
+
class CompensationHistoryResponse
|
20
18
|
attr_accessor :pay_rate
|
21
19
|
|
22
20
|
attr_accessor :pay_period
|
@@ -54,7 +52,6 @@ module OpenapiClient
|
|
54
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
53
|
def self.attribute_map
|
56
54
|
{
|
57
|
-
:'job_title' => :'job_title',
|
58
55
|
:'pay_rate' => :'pay_rate',
|
59
56
|
:'pay_period' => :'pay_period',
|
60
57
|
:'pay_frequency' => :'pay_frequency',
|
@@ -72,7 +69,6 @@ module OpenapiClient
|
|
72
69
|
# Attribute type mapping.
|
73
70
|
def self.openapi_types
|
74
71
|
{
|
75
|
-
:'job_title' => :'String',
|
76
72
|
:'pay_rate' => :'Float',
|
77
73
|
:'pay_period' => :'String',
|
78
74
|
:'pay_frequency' => :'String',
|
@@ -85,7 +81,6 @@ module OpenapiClient
|
|
85
81
|
# List of attributes with nullable: true
|
86
82
|
def self.openapi_nullable
|
87
83
|
Set.new([
|
88
|
-
:'job_title',
|
89
84
|
:'pay_rate',
|
90
85
|
:'pay_period',
|
91
86
|
:'pay_frequency',
|
@@ -99,21 +94,17 @@ module OpenapiClient
|
|
99
94
|
# @param [Hash] attributes Model attributes in the form of hash
|
100
95
|
def initialize(attributes = {})
|
101
96
|
if (!attributes.is_a?(Hash))
|
102
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::
|
97
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CompensationHistoryResponse` initialize method"
|
103
98
|
end
|
104
99
|
|
105
100
|
# check to see if the attribute exists and convert string to symbol for hash key
|
106
101
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
107
102
|
if (!self.class.attribute_map.key?(k.to_sym))
|
108
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::
|
103
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CompensationHistoryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
109
104
|
end
|
110
105
|
h[k.to_sym] = v
|
111
106
|
}
|
112
107
|
|
113
|
-
if attributes.key?(:'job_title')
|
114
|
-
self.job_title = attributes[:'job_title']
|
115
|
-
end
|
116
|
-
|
117
108
|
if attributes.key?(:'pay_rate')
|
118
109
|
self.pay_rate = attributes[:'pay_rate']
|
119
110
|
end
|
@@ -181,7 +172,6 @@ module OpenapiClient
|
|
181
172
|
def ==(o)
|
182
173
|
return true if self.equal?(o)
|
183
174
|
self.class == o.class &&
|
184
|
-
job_title == o.job_title &&
|
185
175
|
pay_rate == o.pay_rate &&
|
186
176
|
pay_period == o.pay_period &&
|
187
177
|
pay_frequency == o.pay_frequency &&
|
@@ -199,7 +189,7 @@ module OpenapiClient
|
|
199
189
|
# Calculates hash code according to all attributes.
|
200
190
|
# @return [Integer] Hash code
|
201
191
|
def hash
|
202
|
-
[
|
192
|
+
[pay_rate, pay_period, pay_frequency, employment_type, currency, effective_date].hash
|
203
193
|
end
|
204
194
|
|
205
195
|
# Builds the object from hash
|
@@ -66,7 +66,9 @@ module OpenapiClient
|
|
66
66
|
|
67
67
|
attr_accessor :bank_account
|
68
68
|
|
69
|
-
attr_accessor :
|
69
|
+
attr_accessor :employment_history
|
70
|
+
|
71
|
+
attr_accessor :compensation_history
|
70
72
|
|
71
73
|
attr_accessor :custom_fields
|
72
74
|
|
@@ -124,7 +126,8 @@ module OpenapiClient
|
|
124
126
|
:'work_location' => :'work_location',
|
125
127
|
:'manager' => :'manager',
|
126
128
|
:'bank_account' => :'bank_account',
|
127
|
-
:'
|
129
|
+
:'employment_history' => :'employment_history',
|
130
|
+
:'compensation_history' => :'compensation_history',
|
128
131
|
:'custom_fields' => :'custom_fields',
|
129
132
|
:'groups' => :'groups',
|
130
133
|
:'dependents' => :'dependents',
|
@@ -163,7 +166,8 @@ module OpenapiClient
|
|
163
166
|
:'work_location' => :'LocationNoNonNullRequest',
|
164
167
|
:'manager' => :'CreateEmployeeRequestManager',
|
165
168
|
:'bank_account' => :'CreateEmployeeRequestBankAccount',
|
166
|
-
:'
|
169
|
+
:'employment_history' => :'Array<EmploymentHistoryNoNonNullRequest>',
|
170
|
+
:'compensation_history' => :'Array<CompensationHistoryNoNonNullRequest>',
|
167
171
|
:'custom_fields' => :'Object',
|
168
172
|
:'groups' => :'Array<GroupNoNullEnumRequest>',
|
169
173
|
:'dependents' => :'Array<CreateEmployeeRequestDependents>',
|
@@ -195,7 +199,8 @@ module OpenapiClient
|
|
195
199
|
:'work_location',
|
196
200
|
:'manager',
|
197
201
|
:'bank_account',
|
198
|
-
:'
|
202
|
+
:'employment_history',
|
203
|
+
:'compensation_history',
|
199
204
|
:'custom_fields',
|
200
205
|
:'groups',
|
201
206
|
:'dependents',
|
@@ -310,9 +315,15 @@ module OpenapiClient
|
|
310
315
|
self.bank_account = attributes[:'bank_account']
|
311
316
|
end
|
312
317
|
|
313
|
-
if attributes.key?(:'
|
314
|
-
if (value = attributes[:'
|
315
|
-
self.
|
318
|
+
if attributes.key?(:'employment_history')
|
319
|
+
if (value = attributes[:'employment_history']).is_a?(Array)
|
320
|
+
self.employment_history = value
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
if attributes.key?(:'compensation_history')
|
325
|
+
if (value = attributes[:'compensation_history']).is_a?(Array)
|
326
|
+
self.compensation_history = value
|
316
327
|
end
|
317
328
|
end
|
318
329
|
|
@@ -438,7 +449,8 @@ module OpenapiClient
|
|
438
449
|
work_location == o.work_location &&
|
439
450
|
manager == o.manager &&
|
440
451
|
bank_account == o.bank_account &&
|
441
|
-
|
452
|
+
employment_history == o.employment_history &&
|
453
|
+
compensation_history == o.compensation_history &&
|
442
454
|
custom_fields == o.custom_fields &&
|
443
455
|
groups == o.groups &&
|
444
456
|
dependents == o.dependents &&
|
@@ -454,7 +466,7 @@ module OpenapiClient
|
|
454
466
|
# Calculates hash code according to all attributes.
|
455
467
|
# @return [Integer] Hash code
|
456
468
|
def 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,
|
469
|
+
[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, employment_history, compensation_history, custom_fields, groups, dependents, emergency_contacts].hash
|
458
470
|
end
|
459
471
|
|
460
472
|
# Builds the object from hash
|
@@ -14,7 +14,8 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OpenapiClient
|
17
|
-
class
|
17
|
+
class CurrencyRequest
|
18
|
+
NULL = "null".freeze
|
18
19
|
USD = "usd".freeze
|
19
20
|
GBP = "gbp".freeze
|
20
21
|
EUR = "eur".freeze
|
@@ -30,8 +31,8 @@ module OpenapiClient
|
|
30
31
|
# @param [String] The enum value in the form of the string
|
31
32
|
# @return [String] The enum value
|
32
33
|
def build_from_hash(value)
|
33
|
-
constantValues =
|
34
|
-
raise "Invalid ENUM value #{value} for class #
|
34
|
+
constantValues = CurrencyRequest.constants.select { |c| CurrencyRequest::const_get(c) == value }
|
35
|
+
raise "Invalid ENUM value #{value} for class #CurrencyRequest" if constantValues.empty?
|
35
36
|
value
|
36
37
|
end
|
37
38
|
end
|
@@ -75,7 +75,9 @@ module OpenapiClient
|
|
75
75
|
|
76
76
|
attr_accessor :bank_account
|
77
77
|
|
78
|
-
attr_accessor :
|
78
|
+
attr_accessor :employment_history
|
79
|
+
|
80
|
+
attr_accessor :compensation_history
|
79
81
|
|
80
82
|
attr_accessor :custom_fields
|
81
83
|
|
@@ -136,7 +138,8 @@ module OpenapiClient
|
|
136
138
|
:'work_location' => :'work_location',
|
137
139
|
:'manager' => :'manager',
|
138
140
|
:'bank_account' => :'bank_account',
|
139
|
-
:'
|
141
|
+
:'employment_history' => :'employment_history',
|
142
|
+
:'compensation_history' => :'compensation_history',
|
140
143
|
:'custom_fields' => :'custom_fields',
|
141
144
|
:'groups' => :'groups',
|
142
145
|
:'dependents' => :'dependents',
|
@@ -178,7 +181,8 @@ module OpenapiClient
|
|
178
181
|
:'work_location' => :'LocationResponse',
|
179
182
|
:'manager' => :'EmployeeResponseManager',
|
180
183
|
:'bank_account' => :'CreateEmployeeRequestBankAccount',
|
181
|
-
:'
|
184
|
+
:'employment_history' => :'Array<EmploymentHistoryResponse>',
|
185
|
+
:'compensation_history' => :'Array<CompensationHistoryResponse>',
|
182
186
|
:'custom_fields' => :'Object',
|
183
187
|
:'groups' => :'Array<GroupResponse>',
|
184
188
|
:'dependents' => :'Array<CreateEmployeeRequestDependents>',
|
@@ -211,7 +215,8 @@ module OpenapiClient
|
|
211
215
|
:'work_location',
|
212
216
|
:'manager',
|
213
217
|
:'bank_account',
|
214
|
-
:'
|
218
|
+
:'employment_history',
|
219
|
+
:'compensation_history',
|
215
220
|
:'custom_fields',
|
216
221
|
:'groups',
|
217
222
|
:'dependents',
|
@@ -338,9 +343,15 @@ module OpenapiClient
|
|
338
343
|
self.bank_account = attributes[:'bank_account']
|
339
344
|
end
|
340
345
|
|
341
|
-
if attributes.key?(:'
|
342
|
-
if (value = attributes[:'
|
343
|
-
self.
|
346
|
+
if attributes.key?(:'employment_history')
|
347
|
+
if (value = attributes[:'employment_history']).is_a?(Array)
|
348
|
+
self.employment_history = value
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
if attributes.key?(:'compensation_history')
|
353
|
+
if (value = attributes[:'compensation_history']).is_a?(Array)
|
354
|
+
self.compensation_history = value
|
344
355
|
end
|
345
356
|
end
|
346
357
|
|
@@ -479,7 +490,8 @@ module OpenapiClient
|
|
479
490
|
work_location == o.work_location &&
|
480
491
|
manager == o.manager &&
|
481
492
|
bank_account == o.bank_account &&
|
482
|
-
|
493
|
+
employment_history == o.employment_history &&
|
494
|
+
compensation_history == o.compensation_history &&
|
483
495
|
custom_fields == o.custom_fields &&
|
484
496
|
groups == o.groups &&
|
485
497
|
dependents == o.dependents &&
|
@@ -495,7 +507,7 @@ module OpenapiClient
|
|
495
507
|
# Calculates hash code according to all attributes.
|
496
508
|
# @return [Integer] Hash code
|
497
509
|
def hash
|
498
|
-
[id, remote_id, 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, remote_created_at, termination_date, avatar, home_location, work_location, manager, bank_account,
|
510
|
+
[id, remote_id, 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, remote_created_at, termination_date, avatar, home_location, work_location, manager, bank_account, employment_history, compensation_history, custom_fields, groups, dependents, emergency_contacts].hash
|
499
511
|
end
|
500
512
|
|
501
513
|
# Builds the object from hash
|