stackone_hris_client 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +40 -24
- data/docs/Account.md +2 -2
- data/docs/AccountsApi.md +82 -11
- data/docs/CompaniesApi.md +175 -0
- data/docs/CompaniesPaginated.md +22 -0
- data/docs/Company.md +22 -0
- data/docs/CompanyResult.md +20 -0
- data/docs/ConnectSession.md +2 -2
- data/docs/ConnectSessionAuthenticate.md +2 -2
- data/docs/ConnectSessionCreate.md +2 -2
- data/docs/ConnectSessionToken.md +2 -2
- data/docs/ConnectSessionsApi.md +15 -13
- data/docs/Employee.md +44 -12
- data/docs/EmployeeResult.md +2 -2
- data/docs/EmployeesApi.md +13 -11
- data/docs/EmployeesPaginated.md +2 -2
- data/docs/Employment.md +34 -0
- data/docs/EmploymentResult.md +20 -0
- data/docs/EmploymentsApi.md +175 -0
- data/docs/EmploymentsPaginated.md +22 -0
- data/docs/Location.md +38 -0
- data/docs/LocationResult.md +20 -0
- data/docs/LocationsApi.md +175 -0
- data/docs/LocationsPaginated.md +22 -0
- data/gem-config.yml +4 -4
- data/lib/stackone_hris_client/api/accounts_api.rb +65 -4
- data/lib/stackone_hris_client/api/companies_api.rb +188 -0
- data/lib/stackone_hris_client/api/connect_sessions_api.rb +4 -4
- data/lib/stackone_hris_client/api/employees_api.rb +4 -4
- data/lib/stackone_hris_client/api/employments_api.rb +188 -0
- data/lib/stackone_hris_client/api/locations_api.rb +188 -0
- data/lib/stackone_hris_client/api_client.rb +5 -5
- data/lib/stackone_hris_client/api_error.rb +4 -4
- data/lib/stackone_hris_client/configuration.rb +4 -4
- data/lib/stackone_hris_client/models/account.rb +7 -7
- data/lib/stackone_hris_client/models/companies_paginated.rb +247 -0
- data/lib/stackone_hris_client/models/company.rb +235 -0
- data/lib/stackone_hris_client/models/company_result.rb +231 -0
- data/lib/stackone_hris_client/models/connect_session.rb +7 -7
- data/lib/stackone_hris_client/models/connect_session_authenticate.rb +7 -7
- data/lib/stackone_hris_client/models/connect_session_create.rb +7 -7
- data/lib/stackone_hris_client/models/connect_session_token.rb +7 -7
- data/lib/stackone_hris_client/models/employee.rb +181 -60
- data/lib/stackone_hris_client/models/employee_result.rb +7 -7
- data/lib/stackone_hris_client/models/employees_paginated.rb +7 -7
- data/lib/stackone_hris_client/models/employment.rb +294 -0
- data/lib/stackone_hris_client/models/employment_result.rb +231 -0
- data/lib/stackone_hris_client/models/employments_paginated.rb +247 -0
- data/lib/stackone_hris_client/models/location.rb +312 -0
- data/lib/stackone_hris_client/models/location_result.rb +231 -0
- data/lib/stackone_hris_client/models/locations_paginated.rb +247 -0
- data/lib/stackone_hris_client/version.rb +5 -5
- data/lib/stackone_hris_client.rb +17 -5
- data/spec/api/accounts_api_spec.rb +3 -3
- data/spec/api/companies_api_spec.rb +70 -0
- data/spec/api/connect_sessions_api_spec.rb +3 -3
- data/spec/api/employees_api_spec.rb +3 -3
- data/spec/api/employments_api_spec.rb +70 -0
- data/spec/api/locations_api_spec.rb +70 -0
- data/spec/api_client_spec.rb +32 -32
- data/spec/configuration_spec.rb +6 -6
- data/spec/models/account_spec.rb +4 -4
- data/spec/models/companies_paginated_spec.rb +46 -0
- data/spec/models/company_result_spec.rb +40 -0
- data/spec/models/company_spec.rb +46 -0
- data/spec/models/connect_session_authenticate_spec.rb +4 -4
- data/spec/models/connect_session_create_spec.rb +4 -4
- data/spec/models/connect_session_spec.rb +4 -4
- data/spec/models/connect_session_token_spec.rb +4 -4
- data/spec/models/employee_result_spec.rb +4 -4
- data/spec/models/employee_spec.rb +4 -4
- data/spec/models/employees_paginated_spec.rb +4 -4
- data/spec/models/employment_result_spec.rb +40 -0
- data/spec/models/employment_spec.rb +82 -0
- data/spec/models/employments_paginated_spec.rb +46 -0
- data/spec/models/location_result_spec.rb +40 -0
- data/spec/models/location_spec.rb +94 -0
- data/spec/models/locations_paginated_spec.rb +46 -0
- data/spec/spec_helper.rb +3 -3
- data/stackone_hris_client.gemspec +5 -5
- metadata +51 -3
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class ConnectSession
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -100,13 +100,13 @@ module StackOneHrisClient
|
|
100
100
|
# @param [Hash] attributes Model attributes in the form of hash
|
101
101
|
def initialize(attributes = {})
|
102
102
|
if (!attributes.is_a?(Hash))
|
103
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
103
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::ConnectSession` initialize method"
|
104
104
|
end
|
105
105
|
|
106
106
|
# check to see if the attribute exists and convert string to symbol for hash key
|
107
107
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
108
108
|
if (!self.class.attribute_map.key?(k.to_sym))
|
109
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
109
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::ConnectSession`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
110
110
|
end
|
111
111
|
h[k.to_sym] = v
|
112
112
|
}
|
@@ -294,7 +294,7 @@ module StackOneHrisClient
|
|
294
294
|
end
|
295
295
|
else # model
|
296
296
|
# models (e.g. Pet) or oneOf
|
297
|
-
klass =
|
297
|
+
klass = StackOneHRIS.const_get(type)
|
298
298
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
299
299
|
end
|
300
300
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class ConnectSessionAuthenticate
|
18
18
|
# The token to authenticate with
|
19
19
|
attr_accessor :token
|
@@ -47,13 +47,13 @@ module StackOneHrisClient
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::ConnectSessionAuthenticate` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::ConnectSessionAuthenticate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
@@ -169,7 +169,7 @@ module StackOneHrisClient
|
|
169
169
|
end
|
170
170
|
else # model
|
171
171
|
# models (e.g. Pet) or oneOf
|
172
|
-
klass =
|
172
|
+
klass = StackOneHRIS.const_get(type)
|
173
173
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class ConnectSessionCreate
|
18
18
|
# The categories of the provider to connect to
|
19
19
|
attr_accessor :categories
|
@@ -94,13 +94,13 @@ module StackOneHrisClient
|
|
94
94
|
# @param [Hash] attributes Model attributes in the form of hash
|
95
95
|
def initialize(attributes = {})
|
96
96
|
if (!attributes.is_a?(Hash))
|
97
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
97
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::ConnectSessionCreate` initialize method"
|
98
98
|
end
|
99
99
|
|
100
100
|
# check to see if the attribute exists and convert string to symbol for hash key
|
101
101
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
102
102
|
if (!self.class.attribute_map.key?(k.to_sym))
|
103
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
103
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::ConnectSessionCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
104
104
|
end
|
105
105
|
h[k.to_sym] = v
|
106
106
|
}
|
@@ -248,7 +248,7 @@ module StackOneHrisClient
|
|
248
248
|
end
|
249
249
|
else # model
|
250
250
|
# models (e.g. Pet) or oneOf
|
251
|
-
klass =
|
251
|
+
klass = StackOneHRIS.const_get(type)
|
252
252
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
253
253
|
end
|
254
254
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class ConnectSessionToken
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -104,13 +104,13 @@ module StackOneHrisClient
|
|
104
104
|
# @param [Hash] attributes Model attributes in the form of hash
|
105
105
|
def initialize(attributes = {})
|
106
106
|
if (!attributes.is_a?(Hash))
|
107
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
107
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::ConnectSessionToken` initialize method"
|
108
108
|
end
|
109
109
|
|
110
110
|
# check to see if the attribute exists and convert string to symbol for hash key
|
111
111
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
112
112
|
if (!self.class.attribute_map.key?(k.to_sym))
|
113
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::ConnectSessionToken`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
114
114
|
end
|
115
115
|
h[k.to_sym] = v
|
116
116
|
}
|
@@ -308,7 +308,7 @@ module StackOneHrisClient
|
|
308
308
|
end
|
309
309
|
else # model
|
310
310
|
# models (e.g. Pet) or oneOf
|
311
|
-
klass =
|
311
|
+
klass = StackOneHRIS.const_get(type)
|
312
312
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
313
313
|
end
|
314
314
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class Employee
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -25,28 +25,60 @@ module StackOneHrisClient
|
|
25
25
|
|
26
26
|
attr_accessor :display_name
|
27
27
|
|
28
|
+
attr_accessor :gender
|
29
|
+
|
30
|
+
attr_accessor :ethnicity
|
31
|
+
|
32
|
+
attr_accessor :date_of_birth
|
33
|
+
|
34
|
+
attr_accessor :birthday
|
35
|
+
|
36
|
+
attr_accessor :marital_status
|
37
|
+
|
28
38
|
attr_accessor :avatar_url
|
29
39
|
|
30
40
|
attr_accessor :personal_email
|
31
41
|
|
32
42
|
attr_accessor :personal_phone_number
|
33
43
|
|
34
|
-
attr_accessor :gender
|
35
|
-
|
36
44
|
attr_accessor :work_email
|
37
45
|
|
38
46
|
attr_accessor :work_phone_number
|
39
47
|
|
40
|
-
attr_accessor :
|
48
|
+
attr_accessor :job_title
|
41
49
|
|
42
50
|
attr_accessor :department
|
43
51
|
|
44
52
|
attr_accessor :manager_id
|
45
53
|
|
46
|
-
attr_accessor :
|
54
|
+
attr_accessor :hire_date
|
47
55
|
|
48
56
|
attr_accessor :start_date
|
49
57
|
|
58
|
+
attr_accessor :tenure
|
59
|
+
|
60
|
+
attr_accessor :work_anniversary
|
61
|
+
|
62
|
+
attr_accessor :employment_type
|
63
|
+
|
64
|
+
attr_accessor :employment_status
|
65
|
+
|
66
|
+
attr_accessor :termination_date
|
67
|
+
|
68
|
+
attr_accessor :company_name
|
69
|
+
|
70
|
+
attr_accessor :home_country_location
|
71
|
+
|
72
|
+
attr_accessor :work_country_location
|
73
|
+
|
74
|
+
attr_accessor :home_location
|
75
|
+
|
76
|
+
attr_accessor :work_location
|
77
|
+
|
78
|
+
attr_accessor :company
|
79
|
+
|
80
|
+
attr_accessor :employments
|
81
|
+
|
50
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
83
|
def self.attribute_map
|
52
84
|
{
|
@@ -55,17 +87,33 @@ module StackOneHrisClient
|
|
55
87
|
:'last_name' => :'last_name',
|
56
88
|
:'name' => :'name',
|
57
89
|
:'display_name' => :'display_name',
|
90
|
+
:'gender' => :'gender',
|
91
|
+
:'ethnicity' => :'ethnicity',
|
92
|
+
:'date_of_birth' => :'date_of_birth',
|
93
|
+
:'birthday' => :'birthday',
|
94
|
+
:'marital_status' => :'marital_status',
|
58
95
|
:'avatar_url' => :'avatar_url',
|
59
96
|
:'personal_email' => :'personal_email',
|
60
97
|
:'personal_phone_number' => :'personal_phone_number',
|
61
|
-
:'gender' => :'gender',
|
62
98
|
:'work_email' => :'work_email',
|
63
99
|
:'work_phone_number' => :'work_phone_number',
|
64
|
-
:'
|
100
|
+
:'job_title' => :'job_title',
|
65
101
|
:'department' => :'department',
|
66
102
|
:'manager_id' => :'manager_id',
|
67
|
-
:'
|
68
|
-
:'start_date' => :'start_date'
|
103
|
+
:'hire_date' => :'hire_date',
|
104
|
+
:'start_date' => :'start_date',
|
105
|
+
:'tenure' => :'tenure',
|
106
|
+
:'work_anniversary' => :'work_anniversary',
|
107
|
+
:'employment_type' => :'employment_type',
|
108
|
+
:'employment_status' => :'employment_status',
|
109
|
+
:'termination_date' => :'termination_date',
|
110
|
+
:'company_name' => :'company_name',
|
111
|
+
:'home_country_location' => :'home_country_location',
|
112
|
+
:'work_country_location' => :'work_country_location',
|
113
|
+
:'home_location' => :'home_location',
|
114
|
+
:'work_location' => :'work_location',
|
115
|
+
:'company' => :'company',
|
116
|
+
:'employments' => :'employments'
|
69
117
|
}
|
70
118
|
end
|
71
119
|
|
@@ -82,17 +130,33 @@ module StackOneHrisClient
|
|
82
130
|
:'last_name' => :'String',
|
83
131
|
:'name' => :'String',
|
84
132
|
:'display_name' => :'String',
|
133
|
+
:'gender' => :'String',
|
134
|
+
:'ethnicity' => :'String',
|
135
|
+
:'date_of_birth' => :'Time',
|
136
|
+
:'birthday' => :'Time',
|
137
|
+
:'marital_status' => :'String',
|
85
138
|
:'avatar_url' => :'String',
|
86
139
|
:'personal_email' => :'String',
|
87
140
|
:'personal_phone_number' => :'String',
|
88
|
-
:'gender' => :'String',
|
89
141
|
:'work_email' => :'String',
|
90
142
|
:'work_phone_number' => :'String',
|
91
|
-
:'
|
143
|
+
:'job_title' => :'String',
|
92
144
|
:'department' => :'String',
|
93
145
|
:'manager_id' => :'String',
|
94
|
-
:'
|
95
|
-
:'start_date' => :'Time'
|
146
|
+
:'hire_date' => :'Time',
|
147
|
+
:'start_date' => :'Time',
|
148
|
+
:'tenure' => :'Float',
|
149
|
+
:'work_anniversary' => :'Time',
|
150
|
+
:'employment_type' => :'String',
|
151
|
+
:'employment_status' => :'String',
|
152
|
+
:'termination_date' => :'Time',
|
153
|
+
:'company_name' => :'String',
|
154
|
+
:'home_country_location' => :'String',
|
155
|
+
:'work_country_location' => :'String',
|
156
|
+
:'home_location' => :'String',
|
157
|
+
:'work_location' => :'String',
|
158
|
+
:'company' => :'String',
|
159
|
+
:'employments' => :'Array<String>'
|
96
160
|
}
|
97
161
|
end
|
98
162
|
|
@@ -106,13 +170,13 @@ module StackOneHrisClient
|
|
106
170
|
# @param [Hash] attributes Model attributes in the form of hash
|
107
171
|
def initialize(attributes = {})
|
108
172
|
if (!attributes.is_a?(Hash))
|
109
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
173
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::Employee` initialize method"
|
110
174
|
end
|
111
175
|
|
112
176
|
# check to see if the attribute exists and convert string to symbol for hash key
|
113
177
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
114
178
|
if (!self.class.attribute_map.key?(k.to_sym))
|
115
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
179
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::Employee`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
116
180
|
end
|
117
181
|
h[k.to_sym] = v
|
118
182
|
}
|
@@ -137,6 +201,26 @@ module StackOneHrisClient
|
|
137
201
|
self.display_name = attributes[:'display_name']
|
138
202
|
end
|
139
203
|
|
204
|
+
if attributes.key?(:'gender')
|
205
|
+
self.gender = attributes[:'gender']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'ethnicity')
|
209
|
+
self.ethnicity = attributes[:'ethnicity']
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.key?(:'date_of_birth')
|
213
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.key?(:'birthday')
|
217
|
+
self.birthday = attributes[:'birthday']
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.key?(:'marital_status')
|
221
|
+
self.marital_status = attributes[:'marital_status']
|
222
|
+
end
|
223
|
+
|
140
224
|
if attributes.key?(:'avatar_url')
|
141
225
|
self.avatar_url = attributes[:'avatar_url']
|
142
226
|
end
|
@@ -149,10 +233,6 @@ module StackOneHrisClient
|
|
149
233
|
self.personal_phone_number = attributes[:'personal_phone_number']
|
150
234
|
end
|
151
235
|
|
152
|
-
if attributes.key?(:'gender')
|
153
|
-
self.gender = attributes[:'gender']
|
154
|
-
end
|
155
|
-
|
156
236
|
if attributes.key?(:'work_email')
|
157
237
|
self.work_email = attributes[:'work_email']
|
158
238
|
end
|
@@ -161,8 +241,8 @@ module StackOneHrisClient
|
|
161
241
|
self.work_phone_number = attributes[:'work_phone_number']
|
162
242
|
end
|
163
243
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
244
|
+
if attributes.key?(:'job_title')
|
245
|
+
self.job_title = attributes[:'job_title']
|
166
246
|
end
|
167
247
|
|
168
248
|
if attributes.key?(:'department')
|
@@ -173,13 +253,63 @@ module StackOneHrisClient
|
|
173
253
|
self.manager_id = attributes[:'manager_id']
|
174
254
|
end
|
175
255
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
self.
|
256
|
+
if attributes.key?(:'hire_date')
|
257
|
+
self.hire_date = attributes[:'hire_date']
|
178
258
|
end
|
179
259
|
|
180
260
|
if attributes.key?(:'start_date')
|
181
261
|
self.start_date = attributes[:'start_date']
|
182
262
|
end
|
263
|
+
|
264
|
+
if attributes.key?(:'tenure')
|
265
|
+
self.tenure = attributes[:'tenure']
|
266
|
+
end
|
267
|
+
|
268
|
+
if attributes.key?(:'work_anniversary')
|
269
|
+
self.work_anniversary = attributes[:'work_anniversary']
|
270
|
+
end
|
271
|
+
|
272
|
+
if attributes.key?(:'employment_type')
|
273
|
+
self.employment_type = attributes[:'employment_type']
|
274
|
+
end
|
275
|
+
|
276
|
+
if attributes.key?(:'employment_status')
|
277
|
+
self.employment_status = attributes[:'employment_status']
|
278
|
+
end
|
279
|
+
|
280
|
+
if attributes.key?(:'termination_date')
|
281
|
+
self.termination_date = attributes[:'termination_date']
|
282
|
+
end
|
283
|
+
|
284
|
+
if attributes.key?(:'company_name')
|
285
|
+
self.company_name = attributes[:'company_name']
|
286
|
+
end
|
287
|
+
|
288
|
+
if attributes.key?(:'home_country_location')
|
289
|
+
self.home_country_location = attributes[:'home_country_location']
|
290
|
+
end
|
291
|
+
|
292
|
+
if attributes.key?(:'work_country_location')
|
293
|
+
self.work_country_location = attributes[:'work_country_location']
|
294
|
+
end
|
295
|
+
|
296
|
+
if attributes.key?(:'home_location')
|
297
|
+
self.home_location = attributes[:'home_location']
|
298
|
+
end
|
299
|
+
|
300
|
+
if attributes.key?(:'work_location')
|
301
|
+
self.work_location = attributes[:'work_location']
|
302
|
+
end
|
303
|
+
|
304
|
+
if attributes.key?(:'company')
|
305
|
+
self.company = attributes[:'company']
|
306
|
+
end
|
307
|
+
|
308
|
+
if attributes.key?(:'employments')
|
309
|
+
if (value = attributes[:'employments']).is_a?(Array)
|
310
|
+
self.employments = value
|
311
|
+
end
|
312
|
+
end
|
183
313
|
end
|
184
314
|
|
185
315
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -206,18 +336,14 @@ module StackOneHrisClient
|
|
206
336
|
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
207
337
|
end
|
208
338
|
|
209
|
-
if @
|
210
|
-
invalid_properties.push('invalid value for "
|
339
|
+
if @gender.nil?
|
340
|
+
invalid_properties.push('invalid value for "gender", gender cannot be nil.')
|
211
341
|
end
|
212
342
|
|
213
343
|
if @personal_phone_number.nil?
|
214
344
|
invalid_properties.push('invalid value for "personal_phone_number", personal_phone_number cannot be nil.')
|
215
345
|
end
|
216
346
|
|
217
|
-
if @gender.nil?
|
218
|
-
invalid_properties.push('invalid value for "gender", gender cannot be nil.')
|
219
|
-
end
|
220
|
-
|
221
347
|
if @work_email.nil?
|
222
348
|
invalid_properties.push('invalid value for "work_email", work_email cannot be nil.')
|
223
349
|
end
|
@@ -226,26 +352,10 @@ module StackOneHrisClient
|
|
226
352
|
invalid_properties.push('invalid value for "work_phone_number", work_phone_number cannot be nil.')
|
227
353
|
end
|
228
354
|
|
229
|
-
if @title.nil?
|
230
|
-
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
231
|
-
end
|
232
|
-
|
233
355
|
if @department.nil?
|
234
356
|
invalid_properties.push('invalid value for "department", department cannot be nil.')
|
235
357
|
end
|
236
358
|
|
237
|
-
if @manager_id.nil?
|
238
|
-
invalid_properties.push('invalid value for "manager_id", manager_id cannot be nil.')
|
239
|
-
end
|
240
|
-
|
241
|
-
if @birth_date.nil?
|
242
|
-
invalid_properties.push('invalid value for "birth_date", birth_date cannot be nil.')
|
243
|
-
end
|
244
|
-
|
245
|
-
if @start_date.nil?
|
246
|
-
invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
|
247
|
-
end
|
248
|
-
|
249
359
|
invalid_properties
|
250
360
|
end
|
251
361
|
|
@@ -257,16 +367,11 @@ module StackOneHrisClient
|
|
257
367
|
return false if @last_name.nil?
|
258
368
|
return false if @name.nil?
|
259
369
|
return false if @display_name.nil?
|
260
|
-
return false if @personal_email.nil?
|
261
|
-
return false if @personal_phone_number.nil?
|
262
370
|
return false if @gender.nil?
|
371
|
+
return false if @personal_phone_number.nil?
|
263
372
|
return false if @work_email.nil?
|
264
373
|
return false if @work_phone_number.nil?
|
265
|
-
return false if @title.nil?
|
266
374
|
return false if @department.nil?
|
267
|
-
return false if @manager_id.nil?
|
268
|
-
return false if @birth_date.nil?
|
269
|
-
return false if @start_date.nil?
|
270
375
|
true
|
271
376
|
end
|
272
377
|
|
@@ -280,17 +385,33 @@ module StackOneHrisClient
|
|
280
385
|
last_name == o.last_name &&
|
281
386
|
name == o.name &&
|
282
387
|
display_name == o.display_name &&
|
388
|
+
gender == o.gender &&
|
389
|
+
ethnicity == o.ethnicity &&
|
390
|
+
date_of_birth == o.date_of_birth &&
|
391
|
+
birthday == o.birthday &&
|
392
|
+
marital_status == o.marital_status &&
|
283
393
|
avatar_url == o.avatar_url &&
|
284
394
|
personal_email == o.personal_email &&
|
285
395
|
personal_phone_number == o.personal_phone_number &&
|
286
|
-
gender == o.gender &&
|
287
396
|
work_email == o.work_email &&
|
288
397
|
work_phone_number == o.work_phone_number &&
|
289
|
-
|
398
|
+
job_title == o.job_title &&
|
290
399
|
department == o.department &&
|
291
400
|
manager_id == o.manager_id &&
|
292
|
-
|
293
|
-
start_date == o.start_date
|
401
|
+
hire_date == o.hire_date &&
|
402
|
+
start_date == o.start_date &&
|
403
|
+
tenure == o.tenure &&
|
404
|
+
work_anniversary == o.work_anniversary &&
|
405
|
+
employment_type == o.employment_type &&
|
406
|
+
employment_status == o.employment_status &&
|
407
|
+
termination_date == o.termination_date &&
|
408
|
+
company_name == o.company_name &&
|
409
|
+
home_country_location == o.home_country_location &&
|
410
|
+
work_country_location == o.work_country_location &&
|
411
|
+
home_location == o.home_location &&
|
412
|
+
work_location == o.work_location &&
|
413
|
+
company == o.company &&
|
414
|
+
employments == o.employments
|
294
415
|
end
|
295
416
|
|
296
417
|
# @see the `==` method
|
@@ -302,7 +423,7 @@ module StackOneHrisClient
|
|
302
423
|
# Calculates hash code according to all attributes.
|
303
424
|
# @return [Integer] Hash code
|
304
425
|
def hash
|
305
|
-
[id, first_name, last_name, name, display_name, avatar_url, personal_email, personal_phone_number,
|
426
|
+
[id, first_name, last_name, name, display_name, gender, ethnicity, date_of_birth, birthday, marital_status, avatar_url, personal_email, personal_phone_number, work_email, work_phone_number, job_title, department, manager_id, hire_date, start_date, tenure, work_anniversary, employment_type, employment_status, termination_date, company_name, home_country_location, work_country_location, home_location, work_location, company, employments].hash
|
306
427
|
end
|
307
428
|
|
308
429
|
# Builds the object from hash
|
@@ -373,7 +494,7 @@ module StackOneHrisClient
|
|
373
494
|
end
|
374
495
|
else # model
|
375
496
|
# models (e.g. Pet) or oneOf
|
376
|
-
klass =
|
497
|
+
klass = StackOneHRIS.const_get(type)
|
377
498
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
378
499
|
end
|
379
500
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class EmployeeResult
|
18
18
|
attr_accessor :data
|
19
19
|
|
@@ -50,13 +50,13 @@ module StackOneHrisClient
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
51
|
def initialize(attributes = {})
|
52
52
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::EmployeeResult` initialize method"
|
54
54
|
end
|
55
55
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::EmployeeResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
60
|
end
|
61
61
|
h[k.to_sym] = v
|
62
62
|
}
|
@@ -177,7 +177,7 @@ module StackOneHrisClient
|
|
177
177
|
end
|
178
178
|
else # model
|
179
179
|
# models (e.g. Pet) or oneOf
|
180
|
-
klass =
|
180
|
+
klass = StackOneHRIS.const_get(type)
|
181
181
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
182
182
|
end
|
183
183
|
end
|