stackone_hris_client 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -24
  3. data/docs/Account.md +2 -2
  4. data/docs/AccountsApi.md +82 -11
  5. data/docs/CompaniesApi.md +175 -0
  6. data/docs/CompaniesPaginated.md +22 -0
  7. data/docs/Company.md +22 -0
  8. data/docs/CompanyResult.md +20 -0
  9. data/docs/ConnectSession.md +2 -2
  10. data/docs/ConnectSessionAuthenticate.md +2 -2
  11. data/docs/ConnectSessionCreate.md +2 -2
  12. data/docs/ConnectSessionToken.md +2 -2
  13. data/docs/ConnectSessionsApi.md +15 -13
  14. data/docs/Employee.md +36 -12
  15. data/docs/EmployeeResult.md +2 -2
  16. data/docs/EmployeesApi.md +13 -11
  17. data/docs/EmployeesPaginated.md +2 -2
  18. data/docs/Employment.md +34 -0
  19. data/docs/EmploymentResult.md +20 -0
  20. data/docs/EmploymentsApi.md +175 -0
  21. data/docs/EmploymentsPaginated.md +22 -0
  22. data/docs/Location.md +38 -0
  23. data/docs/LocationResult.md +20 -0
  24. data/docs/LocationsApi.md +175 -0
  25. data/docs/LocationsPaginated.md +22 -0
  26. data/gem-config.yml +4 -4
  27. data/lib/stackone_hris_client/api/accounts_api.rb +65 -4
  28. data/lib/stackone_hris_client/api/companies_api.rb +188 -0
  29. data/lib/stackone_hris_client/api/connect_sessions_api.rb +5 -5
  30. data/lib/stackone_hris_client/api/employees_api.rb +4 -4
  31. data/lib/stackone_hris_client/api/employments_api.rb +188 -0
  32. data/lib/stackone_hris_client/api/locations_api.rb +188 -0
  33. data/lib/stackone_hris_client/api_client.rb +5 -5
  34. data/lib/stackone_hris_client/api_error.rb +4 -4
  35. data/lib/stackone_hris_client/configuration.rb +4 -4
  36. data/lib/stackone_hris_client/models/account.rb +9 -7
  37. data/lib/stackone_hris_client/models/companies_paginated.rb +249 -0
  38. data/lib/stackone_hris_client/models/company.rb +237 -0
  39. data/lib/stackone_hris_client/models/company_result.rb +233 -0
  40. data/lib/stackone_hris_client/models/connect_session.rb +9 -7
  41. data/lib/stackone_hris_client/models/connect_session_authenticate.rb +9 -7
  42. data/lib/stackone_hris_client/models/connect_session_create.rb +9 -7
  43. data/lib/stackone_hris_client/models/connect_session_token.rb +9 -7
  44. data/lib/stackone_hris_client/models/employee.rb +145 -60
  45. data/lib/stackone_hris_client/models/employee_result.rb +9 -7
  46. data/lib/stackone_hris_client/models/employees_paginated.rb +9 -7
  47. data/lib/stackone_hris_client/models/employment.rb +296 -0
  48. data/lib/stackone_hris_client/models/employment_result.rb +233 -0
  49. data/lib/stackone_hris_client/models/employments_paginated.rb +249 -0
  50. data/lib/stackone_hris_client/models/location.rb +314 -0
  51. data/lib/stackone_hris_client/models/location_result.rb +233 -0
  52. data/lib/stackone_hris_client/models/locations_paginated.rb +249 -0
  53. data/lib/stackone_hris_client/version.rb +5 -5
  54. data/lib/stackone_hris_client.rb +16 -4
  55. data/spec/api/companies_api_spec.rb +70 -0
  56. data/spec/api/employments_api_spec.rb +70 -0
  57. data/spec/api/locations_api_spec.rb +70 -0
  58. data/spec/api_client_spec.rb +32 -32
  59. data/spec/configuration_spec.rb +6 -6
  60. data/spec/models/companies_paginated_spec.rb +46 -0
  61. data/spec/models/company_result_spec.rb +40 -0
  62. data/spec/models/company_spec.rb +46 -0
  63. data/spec/models/employment_result_spec.rb +40 -0
  64. data/spec/models/employment_spec.rb +82 -0
  65. data/spec/models/employments_paginated_spec.rb +46 -0
  66. data/spec/models/location_result_spec.rb +40 -0
  67. data/spec/models/location_spec.rb +94 -0
  68. data/spec/models/locations_paginated_spec.rb +46 -0
  69. data/spec/spec_helper.rb +3 -3
  70. data/stackone_hris_client.gemspec +5 -5
  71. metadata +51 -3
data/docs/Employee.md CHANGED
@@ -1,4 +1,4 @@
1
- # StackOneHrisClient::Employee
1
+ # StackOneHRIS::Employee
2
2
 
3
3
  ## Properties
4
4
 
@@ -9,40 +9,64 @@
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
- | **title** | **String** | | |
22
+ | **job_title** | **String** | | [optional] |
19
23
  | **department** | **String** | | |
20
- | **manager_id** | **String** | | |
21
- | **birth_date** | **Time** | | |
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] |
23
35
 
24
36
  ## Example
25
37
 
26
38
  ```ruby
27
39
  require 'stackone_hris_client'
28
40
 
29
- instance = StackOneHrisClient::Employee.new(
41
+ instance = StackOneHRIS::Employee.new(
30
42
  id: null,
31
43
  first_name: null,
32
44
  last_name: null,
33
45
  name: null,
34
46
  display_name: null,
47
+ gender: null,
48
+ ethnicity: null,
49
+ date_of_birth: null,
50
+ birthday: null,
51
+ marital_status: null,
35
52
  avatar_url: null,
36
53
  personal_email: null,
37
54
  personal_phone_number: null,
38
- gender: null,
39
55
  work_email: null,
40
56
  work_phone_number: null,
41
- title: null,
57
+ job_title: null,
42
58
  department: null,
43
59
  manager_id: null,
44
- birth_date: null,
45
- start_date: null
60
+ hire_date: null,
61
+ start_date: null,
62
+ tenure: null,
63
+ work_anniversary: null,
64
+ employment_type: null,
65
+ employment_status: null,
66
+ termination_date: null,
67
+ company_name: null,
68
+ home_country_location: null,
69
+ work_country_location: null
46
70
  )
47
71
  ```
48
72
 
@@ -1,4 +1,4 @@
1
- # StackOneHrisClient::EmployeeResult
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 = StackOneHrisClient::EmployeeResult.new(
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
- # StackOneHrisClient::EmployeesApi
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
- StackOneHrisClient.configure do |config|
23
+ StackOneHRIS.configure do |config|
24
24
  # Configure HTTP basic authorization: basic
25
- config.api_key_token = 'YOUR API KEY'
25
+ config.username = 'YOUR USERNAME'
26
+ config.password = 'YOUR PASSWORD'
26
27
  end
27
28
 
28
- api_instance = StackOneHrisClient::EmployeesApi.new
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 StackOneHrisClient::ApiError => e
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 StackOneHrisClient::ApiError => e
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
- StackOneHrisClient.configure do |config|
107
+ StackOneHRIS.configure do |config|
107
108
  # Configure HTTP basic authorization: basic
108
- config.api_key_token = 'YOUR API KEY'
109
+ config.username = 'YOUR USERNAME'
110
+ config.password = 'YOUR PASSWORD'
109
111
  end
110
112
 
111
- api_instance = StackOneHrisClient::EmployeesApi.new
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 StackOneHrisClient::ApiError => e
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 StackOneHrisClient::ApiError => e
146
+ rescue StackOneHRIS::ApiError => e
145
147
  puts "Error when calling EmployeesApi->employees_list_with_http_info: #{e}"
146
148
  end
147
149
  ```
@@ -1,4 +1,4 @@
1
- # StackOneHrisClient::EmployeesPaginated
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 = StackOneHrisClient::EmployeesPaginated.new(
16
+ instance = StackOneHRIS::EmployeesPaginated.new(
17
17
  next_page: null,
18
18
  data: null,
19
19
  raw: null
@@ -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 &#39;25&#39;] |
76
+ | **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
77
+ | **fields** | [**Array&lt;String&gt;**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
78
+ | **expand** | [**Array&lt;String&gt;**](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 &#39;25&#39;] |
158
+ | **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
159
+ | **fields** | [**Array&lt;String&gt;**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
160
+ | **expand** | [**Array&lt;String&gt;**](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&lt;Employment&gt;**](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
+
@@ -0,0 +1,175 @@
1
+ # StackOneHRIS::LocationsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**hris_locations_get**](LocationsApi.md#hris_locations_get) | **GET** /unified/hris/locations/{id} | |
8
+ | [**hris_locations_list**](LocationsApi.md#hris_locations_list) | **GET** /unified/hris/locations | |
9
+
10
+
11
+ ## hris_locations_get
12
+
13
+ > <LocationResult> hris_locations_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::LocationsApi.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.hris_locations_get(id, x_account_id, opts)
44
+ p result
45
+ rescue StackOneHRIS::ApiError => e
46
+ puts "Error when calling LocationsApi->hris_locations_get: #{e}"
47
+ end
48
+ ```
49
+
50
+ #### Using the hris_locations_get_with_http_info variant
51
+
52
+ This returns an Array which contains the response data, status code and headers.
53
+
54
+ > <Array(<LocationResult>, Integer, Hash)> hris_locations_get_with_http_info(id, x_account_id, opts)
55
+
56
+ ```ruby
57
+ begin
58
+ #
59
+ data, status_code, headers = api_instance.hris_locations_get_with_http_info(id, x_account_id, opts)
60
+ p status_code # => 2xx
61
+ p headers # => { ... }
62
+ p data # => <LocationResult>
63
+ rescue StackOneHRIS::ApiError => e
64
+ puts "Error when calling LocationsApi->hris_locations_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 &#39;25&#39;] |
76
+ | **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
77
+ | **fields** | [**Array&lt;String&gt;**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
78
+ | **expand** | [**Array&lt;String&gt;**](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
+ [**LocationResult**](LocationResult.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
+ ## hris_locations_list
96
+
97
+ > <LocationsPaginated> hris_locations_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::LocationsApi.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.hris_locations_list(x_account_id, opts)
127
+ p result
128
+ rescue StackOneHRIS::ApiError => e
129
+ puts "Error when calling LocationsApi->hris_locations_list: #{e}"
130
+ end
131
+ ```
132
+
133
+ #### Using the hris_locations_list_with_http_info variant
134
+
135
+ This returns an Array which contains the response data, status code and headers.
136
+
137
+ > <Array(<LocationsPaginated>, Integer, Hash)> hris_locations_list_with_http_info(x_account_id, opts)
138
+
139
+ ```ruby
140
+ begin
141
+ #
142
+ data, status_code, headers = api_instance.hris_locations_list_with_http_info(x_account_id, opts)
143
+ p status_code # => 2xx
144
+ p headers # => { ... }
145
+ p data # => <LocationsPaginated>
146
+ rescue StackOneHRIS::ApiError => e
147
+ puts "Error when calling LocationsApi->hris_locations_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 &#39;25&#39;] |
158
+ | **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
159
+ | **fields** | [**Array&lt;String&gt;**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
160
+ | **expand** | [**Array&lt;String&gt;**](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
+ [**LocationsPaginated**](LocationsPaginated.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
+