stackone_hris_client 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/docs/ConnectSessionsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# StackOneHRIS::ConnectSessionsApi
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost*
|
4
4
|
|
@@ -20,19 +20,20 @@ All URIs are relative to *http://localhost*
|
|
20
20
|
require 'time'
|
21
21
|
require 'stackone_hris_client'
|
22
22
|
# setup authorization
|
23
|
-
|
23
|
+
StackOneHRIS.configure do |config|
|
24
24
|
# Configure HTTP basic authorization: basic
|
25
|
-
config.
|
25
|
+
config.username = 'YOUR USERNAME'
|
26
|
+
config.password = 'YOUR PASSWORD'
|
26
27
|
end
|
27
28
|
|
28
|
-
api_instance =
|
29
|
-
connect_session_authenticate =
|
29
|
+
api_instance = StackOneHRIS::ConnectSessionsApi.new
|
30
|
+
connect_session_authenticate = StackOneHRIS::ConnectSessionAuthenticate.new({token: 'token_example'}) # ConnectSessionAuthenticate | The parameters to authenticate
|
30
31
|
|
31
32
|
begin
|
32
33
|
#
|
33
34
|
result = api_instance.connect_sessions_authenticate(connect_session_authenticate)
|
34
35
|
p result
|
35
|
-
rescue
|
36
|
+
rescue StackOneHRIS::ApiError => e
|
36
37
|
puts "Error when calling ConnectSessionsApi->connect_sessions_authenticate: #{e}"
|
37
38
|
end
|
38
39
|
```
|
@@ -50,7 +51,7 @@ begin
|
|
50
51
|
p status_code # => 2xx
|
51
52
|
p headers # => { ... }
|
52
53
|
p data # => <ConnectSession>
|
53
|
-
rescue
|
54
|
+
rescue StackOneHRIS::ApiError => e
|
54
55
|
puts "Error when calling ConnectSessionsApi->connect_sessions_authenticate_with_http_info: #{e}"
|
55
56
|
end
|
56
57
|
```
|
@@ -87,19 +88,20 @@ end
|
|
87
88
|
require 'time'
|
88
89
|
require 'stackone_hris_client'
|
89
90
|
# setup authorization
|
90
|
-
|
91
|
+
StackOneHRIS.configure do |config|
|
91
92
|
# Configure HTTP basic authorization: basic
|
92
|
-
config.
|
93
|
+
config.username = 'YOUR USERNAME'
|
94
|
+
config.password = 'YOUR PASSWORD'
|
93
95
|
end
|
94
96
|
|
95
|
-
api_instance =
|
96
|
-
connect_session_create =
|
97
|
+
api_instance = StackOneHRIS::ConnectSessionsApi.new
|
98
|
+
connect_session_create = StackOneHRIS::ConnectSessionCreate.new({origin_owner_id: 'origin_owner_id_example', origin_owner_name: 'origin_owner_name_example'}) # ConnectSessionCreate |
|
97
99
|
|
98
100
|
begin
|
99
101
|
#
|
100
102
|
result = api_instance.connect_sessions_create(connect_session_create)
|
101
103
|
p result
|
102
|
-
rescue
|
104
|
+
rescue StackOneHRIS::ApiError => e
|
103
105
|
puts "Error when calling ConnectSessionsApi->connect_sessions_create: #{e}"
|
104
106
|
end
|
105
107
|
```
|
@@ -117,7 +119,7 @@ begin
|
|
117
119
|
p status_code # => 2xx
|
118
120
|
p headers # => { ... }
|
119
121
|
p data # => <ConnectSessionToken>
|
120
|
-
rescue
|
122
|
+
rescue StackOneHRIS::ApiError => e
|
121
123
|
puts "Error when calling ConnectSessionsApi->connect_sessions_create_with_http_info: #{e}"
|
122
124
|
end
|
123
125
|
```
|
data/docs/Employee.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# StackOneHRIS::Employee
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -9,40 +9,72 @@
|
|
9
9
|
| **last_name** | **String** | | |
|
10
10
|
| **name** | **String** | | |
|
11
11
|
| **display_name** | **String** | | |
|
12
|
+
| **gender** | **String** | | |
|
13
|
+
| **ethnicity** | **String** | | [optional] |
|
14
|
+
| **date_of_birth** | **Time** | | [optional] |
|
15
|
+
| **birthday** | **Time** | | [optional] |
|
16
|
+
| **marital_status** | **String** | | [optional] |
|
12
17
|
| **avatar_url** | **String** | | [optional] |
|
13
|
-
| **personal_email** | **String** | |
|
18
|
+
| **personal_email** | **String** | | [optional] |
|
14
19
|
| **personal_phone_number** | **String** | | |
|
15
|
-
| **gender** | **String** | | |
|
16
20
|
| **work_email** | **String** | | |
|
17
21
|
| **work_phone_number** | **String** | | |
|
18
|
-
| **
|
22
|
+
| **job_title** | **String** | | [optional] |
|
19
23
|
| **department** | **String** | | |
|
20
|
-
| **manager_id** | **String** | |
|
21
|
-
| **
|
22
|
-
| **start_date** | **Time** | |
|
24
|
+
| **manager_id** | **String** | | [optional] |
|
25
|
+
| **hire_date** | **Time** | | [optional] |
|
26
|
+
| **start_date** | **Time** | | [optional] |
|
27
|
+
| **tenure** | **Float** | | [optional] |
|
28
|
+
| **work_anniversary** | **Time** | | [optional] |
|
29
|
+
| **employment_type** | **String** | | [optional] |
|
30
|
+
| **employment_status** | **String** | | [optional] |
|
31
|
+
| **termination_date** | **Time** | | [optional] |
|
32
|
+
| **company_name** | **String** | | [optional] |
|
33
|
+
| **home_country_location** | **String** | | [optional] |
|
34
|
+
| **work_country_location** | **String** | | [optional] |
|
35
|
+
| **home_location** | **String** | | [optional] |
|
36
|
+
| **work_location** | **String** | | [optional] |
|
37
|
+
| **company** | **String** | | [optional] |
|
38
|
+
| **employments** | **Array<String>** | | [optional] |
|
23
39
|
|
24
40
|
## Example
|
25
41
|
|
26
42
|
```ruby
|
27
43
|
require 'stackone_hris_client'
|
28
44
|
|
29
|
-
instance =
|
45
|
+
instance = StackOneHRIS::Employee.new(
|
30
46
|
id: null,
|
31
47
|
first_name: null,
|
32
48
|
last_name: null,
|
33
49
|
name: null,
|
34
50
|
display_name: null,
|
51
|
+
gender: null,
|
52
|
+
ethnicity: null,
|
53
|
+
date_of_birth: null,
|
54
|
+
birthday: null,
|
55
|
+
marital_status: null,
|
35
56
|
avatar_url: null,
|
36
57
|
personal_email: null,
|
37
58
|
personal_phone_number: null,
|
38
|
-
gender: null,
|
39
59
|
work_email: null,
|
40
60
|
work_phone_number: null,
|
41
|
-
|
61
|
+
job_title: null,
|
42
62
|
department: null,
|
43
63
|
manager_id: null,
|
44
|
-
|
45
|
-
start_date: null
|
64
|
+
hire_date: null,
|
65
|
+
start_date: null,
|
66
|
+
tenure: null,
|
67
|
+
work_anniversary: null,
|
68
|
+
employment_type: null,
|
69
|
+
employment_status: null,
|
70
|
+
termination_date: null,
|
71
|
+
company_name: null,
|
72
|
+
home_country_location: null,
|
73
|
+
work_country_location: null,
|
74
|
+
home_location: null,
|
75
|
+
work_location: null,
|
76
|
+
company: null,
|
77
|
+
employments: null
|
46
78
|
)
|
47
79
|
```
|
48
80
|
|
data/docs/EmployeeResult.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# StackOneHRIS::EmployeeResult
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
```ruby
|
13
13
|
require 'stackone_hris_client'
|
14
14
|
|
15
|
-
instance =
|
15
|
+
instance = StackOneHRIS::EmployeeResult.new(
|
16
16
|
data: null,
|
17
17
|
raw: null
|
18
18
|
)
|
data/docs/EmployeesApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# StackOneHRIS::EmployeesApi
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost*
|
4
4
|
|
@@ -20,12 +20,13 @@ All URIs are relative to *http://localhost*
|
|
20
20
|
require 'time'
|
21
21
|
require 'stackone_hris_client'
|
22
22
|
# setup authorization
|
23
|
-
|
23
|
+
StackOneHRIS.configure do |config|
|
24
24
|
# Configure HTTP basic authorization: basic
|
25
|
-
config.
|
25
|
+
config.username = 'YOUR USERNAME'
|
26
|
+
config.password = 'YOUR PASSWORD'
|
26
27
|
end
|
27
28
|
|
28
|
-
api_instance =
|
29
|
+
api_instance = StackOneHRIS::EmployeesApi.new
|
29
30
|
id = 'id_example' # String |
|
30
31
|
x_account_id = 'x_account_id_example' # String | The account identifier
|
31
32
|
opts = {
|
@@ -41,7 +42,7 @@ begin
|
|
41
42
|
#
|
42
43
|
result = api_instance.employees_get(id, x_account_id, opts)
|
43
44
|
p result
|
44
|
-
rescue
|
45
|
+
rescue StackOneHRIS::ApiError => e
|
45
46
|
puts "Error when calling EmployeesApi->employees_get: #{e}"
|
46
47
|
end
|
47
48
|
```
|
@@ -59,7 +60,7 @@ begin
|
|
59
60
|
p status_code # => 2xx
|
60
61
|
p headers # => { ... }
|
61
62
|
p data # => <EmployeeResult>
|
62
|
-
rescue
|
63
|
+
rescue StackOneHRIS::ApiError => e
|
63
64
|
puts "Error when calling EmployeesApi->employees_get_with_http_info: #{e}"
|
64
65
|
end
|
65
66
|
```
|
@@ -103,12 +104,13 @@ end
|
|
103
104
|
require 'time'
|
104
105
|
require 'stackone_hris_client'
|
105
106
|
# setup authorization
|
106
|
-
|
107
|
+
StackOneHRIS.configure do |config|
|
107
108
|
# Configure HTTP basic authorization: basic
|
108
|
-
config.
|
109
|
+
config.username = 'YOUR USERNAME'
|
110
|
+
config.password = 'YOUR PASSWORD'
|
109
111
|
end
|
110
112
|
|
111
|
-
api_instance =
|
113
|
+
api_instance = StackOneHRIS::EmployeesApi.new
|
112
114
|
x_account_id = 'x_account_id_example' # String | The account identifier
|
113
115
|
opts = {
|
114
116
|
page: 'page_example', # String | The page number of the results to fetch
|
@@ -123,7 +125,7 @@ begin
|
|
123
125
|
#
|
124
126
|
result = api_instance.employees_list(x_account_id, opts)
|
125
127
|
p result
|
126
|
-
rescue
|
128
|
+
rescue StackOneHRIS::ApiError => e
|
127
129
|
puts "Error when calling EmployeesApi->employees_list: #{e}"
|
128
130
|
end
|
129
131
|
```
|
@@ -141,7 +143,7 @@ begin
|
|
141
143
|
p status_code # => 2xx
|
142
144
|
p headers # => { ... }
|
143
145
|
p data # => <EmployeesPaginated>
|
144
|
-
rescue
|
146
|
+
rescue StackOneHRIS::ApiError => e
|
145
147
|
puts "Error when calling EmployeesApi->employees_list_with_http_info: #{e}"
|
146
148
|
end
|
147
149
|
```
|
data/docs/EmployeesPaginated.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# StackOneHRIS::EmployeesPaginated
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
```ruby
|
14
14
|
require 'stackone_hris_client'
|
15
15
|
|
16
|
-
instance =
|
16
|
+
instance = StackOneHRIS::EmployeesPaginated.new(
|
17
17
|
next_page: null,
|
18
18
|
data: null,
|
19
19
|
raw: null
|
data/docs/Employment.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# StackOneHRIS::Employment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | [optional] |
|
8
|
+
| **employee_id** | **String** | | |
|
9
|
+
| **job_title** | **String** | | [optional] |
|
10
|
+
| **pay_rate** | **String** | | [optional] |
|
11
|
+
| **pay_period** | **String** | | [optional] |
|
12
|
+
| **pay_frequency** | **String** | | [optional] |
|
13
|
+
| **pay_currency** | **String** | | [optional] |
|
14
|
+
| **effective_date** | **Time** | | [optional] |
|
15
|
+
| **employment_type** | **String** | | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'stackone_hris_client'
|
21
|
+
|
22
|
+
instance = StackOneHRIS::Employment.new(
|
23
|
+
id: null,
|
24
|
+
employee_id: null,
|
25
|
+
job_title: null,
|
26
|
+
pay_rate: null,
|
27
|
+
pay_period: null,
|
28
|
+
pay_frequency: null,
|
29
|
+
pay_currency: null,
|
30
|
+
effective_date: null,
|
31
|
+
employment_type: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# StackOneHRIS::EmploymentResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Employment**](Employment.md) | | |
|
8
|
+
| **raw** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'stackone_hris_client'
|
14
|
+
|
15
|
+
instance = StackOneHRIS::EmploymentResult.new(
|
16
|
+
data: null,
|
17
|
+
raw: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,175 @@
|
|
1
|
+
# StackOneHRIS::EmploymentsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**employments_get**](EmploymentsApi.md#employments_get) | **GET** /unified/hris/employments/{id} | |
|
8
|
+
| [**employments_list**](EmploymentsApi.md#employments_list) | **GET** /unified/hris/employments | |
|
9
|
+
|
10
|
+
|
11
|
+
## employments_get
|
12
|
+
|
13
|
+
> <EmploymentResult> employments_get(id, x_account_id, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'stackone_hris_client'
|
22
|
+
# setup authorization
|
23
|
+
StackOneHRIS.configure do |config|
|
24
|
+
# Configure HTTP basic authorization: basic
|
25
|
+
config.username = 'YOUR USERNAME'
|
26
|
+
config.password = 'YOUR PASSWORD'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = StackOneHRIS::EmploymentsApi.new
|
30
|
+
id = 'id_example' # String |
|
31
|
+
x_account_id = 'x_account_id_example' # String | The account identifier
|
32
|
+
opts = {
|
33
|
+
page: 'page_example', # String | The page number of the results to fetch
|
34
|
+
page_size: 'page_size_example', # String | The number of results per page
|
35
|
+
raw: true, # Boolean | Indicates that the raw request result is returned
|
36
|
+
fields: ['inner_example'], # Array<String> | The list of fields to return in the response (if empty, all fields are returned)
|
37
|
+
expand: ['inner_example'], # Array<String> | The list of fields that will be expanded in the response
|
38
|
+
sync_token: 'sync_token_example' # String | The sync token to select the only updated results
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
#
|
43
|
+
result = api_instance.employments_get(id, x_account_id, opts)
|
44
|
+
p result
|
45
|
+
rescue StackOneHRIS::ApiError => e
|
46
|
+
puts "Error when calling EmploymentsApi->employments_get: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Using the employments_get_with_http_info variant
|
51
|
+
|
52
|
+
This returns an Array which contains the response data, status code and headers.
|
53
|
+
|
54
|
+
> <Array(<EmploymentResult>, Integer, Hash)> employments_get_with_http_info(id, x_account_id, opts)
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
begin
|
58
|
+
#
|
59
|
+
data, status_code, headers = api_instance.employments_get_with_http_info(id, x_account_id, opts)
|
60
|
+
p status_code # => 2xx
|
61
|
+
p headers # => { ... }
|
62
|
+
p data # => <EmploymentResult>
|
63
|
+
rescue StackOneHRIS::ApiError => e
|
64
|
+
puts "Error when calling EmploymentsApi->employments_get_with_http_info: #{e}"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### Parameters
|
69
|
+
|
70
|
+
| Name | Type | Description | Notes |
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
72
|
+
| **id** | **String** | | |
|
73
|
+
| **x_account_id** | **String** | The account identifier | |
|
74
|
+
| **page** | **String** | The page number of the results to fetch | [optional] |
|
75
|
+
| **page_size** | **String** | The number of results per page | [optional][default to '25'] |
|
76
|
+
| **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
|
77
|
+
| **fields** | [**Array<String>**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
|
78
|
+
| **expand** | [**Array<String>**](String.md) | The list of fields that will be expanded in the response | [optional] |
|
79
|
+
| **sync_token** | **String** | The sync token to select the only updated results | [optional] |
|
80
|
+
|
81
|
+
### Return type
|
82
|
+
|
83
|
+
[**EmploymentResult**](EmploymentResult.md)
|
84
|
+
|
85
|
+
### Authorization
|
86
|
+
|
87
|
+
[basic](../README.md#basic)
|
88
|
+
|
89
|
+
### HTTP request headers
|
90
|
+
|
91
|
+
- **Content-Type**: Not defined
|
92
|
+
- **Accept**: application/json
|
93
|
+
|
94
|
+
|
95
|
+
## employments_list
|
96
|
+
|
97
|
+
> <EmploymentsPaginated> employments_list(x_account_id, opts)
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
### Examples
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
require 'time'
|
105
|
+
require 'stackone_hris_client'
|
106
|
+
# setup authorization
|
107
|
+
StackOneHRIS.configure do |config|
|
108
|
+
# Configure HTTP basic authorization: basic
|
109
|
+
config.username = 'YOUR USERNAME'
|
110
|
+
config.password = 'YOUR PASSWORD'
|
111
|
+
end
|
112
|
+
|
113
|
+
api_instance = StackOneHRIS::EmploymentsApi.new
|
114
|
+
x_account_id = 'x_account_id_example' # String | The account identifier
|
115
|
+
opts = {
|
116
|
+
page: 'page_example', # String | The page number of the results to fetch
|
117
|
+
page_size: 'page_size_example', # String | The number of results per page
|
118
|
+
raw: true, # Boolean | Indicates that the raw request result is returned
|
119
|
+
fields: ['inner_example'], # Array<String> | The list of fields to return in the response (if empty, all fields are returned)
|
120
|
+
expand: ['inner_example'], # Array<String> | The list of fields that will be expanded in the response
|
121
|
+
sync_token: 'sync_token_example' # String | The sync token to select the only updated results
|
122
|
+
}
|
123
|
+
|
124
|
+
begin
|
125
|
+
#
|
126
|
+
result = api_instance.employments_list(x_account_id, opts)
|
127
|
+
p result
|
128
|
+
rescue StackOneHRIS::ApiError => e
|
129
|
+
puts "Error when calling EmploymentsApi->employments_list: #{e}"
|
130
|
+
end
|
131
|
+
```
|
132
|
+
|
133
|
+
#### Using the employments_list_with_http_info variant
|
134
|
+
|
135
|
+
This returns an Array which contains the response data, status code and headers.
|
136
|
+
|
137
|
+
> <Array(<EmploymentsPaginated>, Integer, Hash)> employments_list_with_http_info(x_account_id, opts)
|
138
|
+
|
139
|
+
```ruby
|
140
|
+
begin
|
141
|
+
#
|
142
|
+
data, status_code, headers = api_instance.employments_list_with_http_info(x_account_id, opts)
|
143
|
+
p status_code # => 2xx
|
144
|
+
p headers # => { ... }
|
145
|
+
p data # => <EmploymentsPaginated>
|
146
|
+
rescue StackOneHRIS::ApiError => e
|
147
|
+
puts "Error when calling EmploymentsApi->employments_list_with_http_info: #{e}"
|
148
|
+
end
|
149
|
+
```
|
150
|
+
|
151
|
+
### Parameters
|
152
|
+
|
153
|
+
| Name | Type | Description | Notes |
|
154
|
+
| ---- | ---- | ----------- | ----- |
|
155
|
+
| **x_account_id** | **String** | The account identifier | |
|
156
|
+
| **page** | **String** | The page number of the results to fetch | [optional] |
|
157
|
+
| **page_size** | **String** | The number of results per page | [optional][default to '25'] |
|
158
|
+
| **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
|
159
|
+
| **fields** | [**Array<String>**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
|
160
|
+
| **expand** | [**Array<String>**](String.md) | The list of fields that will be expanded in the response | [optional] |
|
161
|
+
| **sync_token** | **String** | The sync token to select the only updated results | [optional] |
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
[**EmploymentsPaginated**](EmploymentsPaginated.md)
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[basic](../README.md#basic)
|
170
|
+
|
171
|
+
### HTTP request headers
|
172
|
+
|
173
|
+
- **Content-Type**: Not defined
|
174
|
+
- **Accept**: application/json
|
175
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# StackOneHRIS::EmploymentsPaginated
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **next_page** | **String** | | |
|
8
|
+
| **data** | [**Array<Employment>**](Employment.md) | | |
|
9
|
+
| **raw** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'stackone_hris_client'
|
15
|
+
|
16
|
+
instance = StackOneHRIS::EmploymentsPaginated.new(
|
17
|
+
next_page: null,
|
18
|
+
data: null,
|
19
|
+
raw: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Location.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# StackOneHRIS::Location
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | [optional] |
|
8
|
+
| **employee_id** | **String** | | |
|
9
|
+
| **name** | **String** | | [optional] |
|
10
|
+
| **phone_number** | **String** | | [optional] |
|
11
|
+
| **street_1** | **String** | | [optional] |
|
12
|
+
| **street_2** | **String** | | [optional] |
|
13
|
+
| **city** | **String** | | [optional] |
|
14
|
+
| **state** | **String** | | [optional] |
|
15
|
+
| **zip_code** | **String** | | [optional] |
|
16
|
+
| **country** | **String** | | [optional] |
|
17
|
+
| **location_type** | **String** | | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'stackone_hris_client'
|
23
|
+
|
24
|
+
instance = StackOneHRIS::Location.new(
|
25
|
+
id: null,
|
26
|
+
employee_id: null,
|
27
|
+
name: null,
|
28
|
+
phone_number: null,
|
29
|
+
street_1: null,
|
30
|
+
street_2: null,
|
31
|
+
city: null,
|
32
|
+
state: null,
|
33
|
+
zip_code: null,
|
34
|
+
country: null,
|
35
|
+
location_type: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# StackOneHRIS::LocationResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Location**](Location.md) | | |
|
8
|
+
| **raw** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'stackone_hris_client'
|
14
|
+
|
15
|
+
instance = StackOneHRIS::LocationResult.new(
|
16
|
+
data: null,
|
17
|
+
raw: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|