affixapi 1.1.69 → 1.1.71

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +5 -3
  4. data/docs/{EmploymentNoNullEnumRequest.md → CompensationHistoryNoNonNullRequest.md} +3 -5
  5. data/docs/{EmploymentResponse.md → CompensationHistoryResponse.md} +2 -4
  6. data/docs/CreateEmployeeRequest.md +4 -2
  7. data/docs/{CurrencyNotNullRequest.md → CurrencyRequest.md} +2 -2
  8. data/docs/EmployeeResponse.md +4 -2
  9. data/docs/EmploymentHistoryNoNonNullRequest.md +26 -0
  10. data/docs/EmploymentHistoryResponse.md +26 -0
  11. data/lib/openapi_client/models/address_no_non_null_request.rb +2 -2
  12. data/lib/openapi_client/models/address_response.rb +2 -2
  13. data/lib/openapi_client/models/{employment_no_null_enum_request.rb → compensation_history_no_non_null_request.rb} +30 -20
  14. data/lib/openapi_client/models/{employment_response.rb → compensation_history_response.rb} +4 -14
  15. data/lib/openapi_client/models/create_employee_request.rb +21 -9
  16. data/lib/openapi_client/models/{currency_not_null_request.rb → currency_request.rb} +4 -3
  17. data/lib/openapi_client/models/employee_response.rb +21 -9
  18. data/lib/openapi_client/models/employment_history_no_non_null_request.rb +267 -0
  19. data/lib/openapi_client/models/employment_history_response.rb +259 -0
  20. data/lib/openapi_client/version.rb +1 -1
  21. data/lib/openapi_client.rb +5 -3
  22. data/spec/models/address_no_non_null_request_spec.rb +1 -1
  23. data/spec/models/address_response_spec.rb +1 -1
  24. data/spec/models/{employment_no_null_enum_request_spec.rb → compensation_history_no_non_null_request_spec.rb} +6 -12
  25. data/spec/models/{employment_response_spec.rb → compensation_history_response_spec.rb} +6 -12
  26. data/spec/models/create_employee_request_spec.rb +7 -1
  27. data/spec/models/{currency_not_null_request_spec.rb → currency_request_spec.rb} +6 -6
  28. data/spec/models/employee_response_spec.rb +7 -1
  29. data/spec/models/employment_history_no_non_null_request_spec.rb +58 -0
  30. data/spec/models/employment_history_response_spec.rb +58 -0
  31. metadata +21 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 297bf2f537d9a8de693ec6e27769151dabce278b3c56c0efeb6b3f47ab5fce22
4
- data.tar.gz: 996d4c9d0a12ebaadf0680596bffa609afef94e714919f3531ffec15666ccca3
3
+ metadata.gz: 387f3e411d00bf9cfba35281809fbdddddad81c4280e2d118c35d63f81c3cb6e
4
+ data.tar.gz: d5164ef1d9c6463cfbcc56ea1f96f4d850e2ce4c0f2bc37c798413a71936ab57
5
5
  SHA512:
6
- metadata.gz: 9c2268f0a4c4cee7a594e450d27a9c4867f82b9a00a40f1077654f48e33f86008135912c18b30b509af60a7638b2bbe530b99f24132cbbb2293f1cd088dad855
7
- data.tar.gz: 57dc1b35e09f189b47242503f1ae347d0543d040365616d8d11f4c412ce027f2b02588d9cdd771fddbc8506bd016ac706a28cdcda96069a98d4e00e8689163d9
6
+ metadata.gz: 801071afbbfdf3a893153db5c666e7632f1831d65a605de9431a1fab57f896a11e200a456a10bc1cc90fe7ebbad86e16c3f6f890d92d1623726877aae0db8c58
7
+ data.tar.gz: 0437a05b68d11779e9dbe5e1614bede9afc7663bc73136553181cbdef33de8466c027420a1dfd76d5db876476147d8768bf9dd370b409c51d6c5652cee291623
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- affixapi (1.1.69)
4
+ affixapi (1.1.71)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
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::CurrencyNotNullRequest](docs/CurrencyNotNullRequest.md)
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::EmploymentNoNullEnumRequest](docs/EmploymentNoNullEnumRequest.md)
338
- - [OpenapiClient::EmploymentResponse](docs/EmploymentResponse.md)
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::EmploymentNoNullEnumRequest
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** | [**CurrencyNotNullRequest**](CurrencyNotNullRequest.md) | | |
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::EmploymentNoNullEnumRequest.new(
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::EmploymentResponse
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::EmploymentResponse.new(
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
- | **employments** | [**Array<EmploymentNoNullEnumRequest>**](EmploymentNoNullEnumRequest.md) | | [optional] |
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
- employments: null,
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::CurrencyNotNullRequest
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::CurrencyNotNullRequest.new()
13
+ instance = OpenapiClient::CurrencyRequest.new()
14
14
  ```
15
15
 
@@ -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
- | **employments** | [**Array<EmploymentResponse>**](EmploymentResponse.md) | | |
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
- employments: null,
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
+
@@ -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', ["BZ", "CA", "CR", "GT", "MX", "PA", "SV", "US", "AR", "BR", "CL", "PE", "AT", "BE", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "RU", "SE", "SK", "CN", "HK", "ID", "IL", "IN", "JP", "KR", "MO", "MY", "PH", "PS", "SG", "TH", "TR", "TW", "VN", "ZA", "AU", "NZ"])
136
+ country_validator = EnumAttributeValidator.new('String', ["BZ", "CA", "CR", "GT", "MX", "PA", "SV", "US", "AR", "BR", "CL", "PE", "AT", "BE", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PL", "RO", "RU", "SE", "SK", "CN", "HK", "ID", "IL", "IN", "JP", "KR", "MO", "MY", "PH", "PS", "SG", "TH", "TR", "TW", "VN", "ZA", "AU", "NZ"])
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', ["BZ", "CA", "CR", "GT", "MX", "PA", "SV", "US", "AR", "BR", "CL", "PE", "AT", "BE", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "RU", "SE", "SK", "CN", "HK", "ID", "IL", "IN", "JP", "KR", "MO", "MY", "PH", "PS", "SG", "TH", "TR", "TW", "VN", "ZA", "AU", "NZ"])
144
+ validator = EnumAttributeValidator.new('String', ["BZ", "CA", "CR", "GT", "MX", "PA", "SV", "US", "AR", "BR", "CL", "PE", "AT", "BE", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PL", "RO", "RU", "SE", "SK", "CN", "HK", "ID", "IL", "IN", "JP", "KR", "MO", "MY", "PH", "PS", "SG", "TH", "TR", "TW", "VN", "ZA", "AU", "NZ"])
145
145
  unless validator.valid?(country)
146
146
  fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
147
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", "BZ", "CA", "CR", "GT", "MX", "PA", "SV", "US", "AR", "BR", "CL", "PE", "AT", "BE", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "RU", "SE", "SK", "CN", "HK", "ID", "IL", "IN", "JP", "KR", "MO", "MY", "PH", "PS", "SG", "TH", "TR", "TW", "VN", "ZA", "AU", "NZ"])
136
+ country_validator = EnumAttributeValidator.new('String', ["null", "BZ", "CA", "CR", "GT", "MX", "PA", "SV", "US", "AR", "BR", "CL", "PE", "AT", "BE", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PL", "RO", "RU", "SE", "SK", "CN", "HK", "ID", "IL", "IN", "JP", "KR", "MO", "MY", "PH", "PS", "SG", "TH", "TR", "TW", "VN", "ZA", "AU", "NZ"])
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", "BZ", "CA", "CR", "GT", "MX", "PA", "SV", "US", "AR", "BR", "CL", "PE", "AT", "BE", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PH", "PL", "RO", "RU", "SE", "SK", "CN", "HK", "ID", "IL", "IN", "JP", "KR", "MO", "MY", "PH", "PS", "SG", "TH", "TR", "TW", "VN", "ZA", "AU", "NZ"])
144
+ validator = EnumAttributeValidator.new('String', ["null", "BZ", "CA", "CR", "GT", "MX", "PA", "SV", "US", "AR", "BR", "CL", "PE", "AT", "BE", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "IE", "IM", "IS", "IT", "LI", "LT", "LU", "LV", "NL", "NO", "PL", "RO", "RU", "SE", "SK", "CN", "HK", "ID", "IL", "IN", "JP", "KR", "MO", "MY", "PH", "PS", "SG", "TH", "TR", "TW", "VN", "ZA", "AU", "NZ"])
145
145
  unless validator.valid?(country)
146
146
  fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
147
147
  end
@@ -14,9 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module OpenapiClient
17
- class EmploymentNoNullEnumRequest
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' => :'CurrencyNotNullRequest',
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::EmploymentNoNullEnumRequest` initialize method"
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::EmploymentNoNullEnumRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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
- [job_title, pay_rate, pay_period, pay_frequency, employment_type, currency, effective_date].hash
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 EmploymentResponse
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::EmploymentResponse` initialize method"
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::EmploymentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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
- [job_title, pay_rate, pay_period, pay_frequency, employment_type, currency, effective_date].hash
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 :employments
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
- :'employments' => :'employments',
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
- :'employments' => :'Array<EmploymentNoNullEnumRequest>',
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
- :'employments',
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?(:'employments')
314
- if (value = attributes[:'employments']).is_a?(Array)
315
- self.employments = value
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
- employments == o.employments &&
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, employments, custom_fields, groups, dependents, emergency_contacts].hash
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 CurrencyNotNullRequest
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 = CurrencyNotNullRequest.constants.select { |c| CurrencyNotNullRequest::const_get(c) == value }
34
- raise "Invalid ENUM value #{value} for class #CurrencyNotNullRequest" if constantValues.empty?
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 :employments
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
- :'employments' => :'employments',
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
- :'employments' => :'Array<EmploymentResponse>',
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
- :'employments',
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?(:'employments')
342
- if (value = attributes[:'employments']).is_a?(Array)
343
- self.employments = value
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
- employments == o.employments &&
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, employments, custom_fields, groups, dependents, emergency_contacts].hash
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