stackone_hris_client 1.0.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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +42 -15
  4. data/docs/Account.md +32 -0
  5. data/docs/AccountsApi.md +218 -0
  6. data/docs/CompaniesApi.md +175 -0
  7. data/docs/CompaniesPaginated.md +22 -0
  8. data/docs/Company.md +22 -0
  9. data/docs/CompanyResult.md +20 -0
  10. data/docs/ConnectSession.md +34 -0
  11. data/docs/ConnectSessionAuthenticate.md +18 -0
  12. data/docs/ConnectSessionCreate.md +28 -0
  13. data/docs/ConnectSessionToken.md +36 -0
  14. data/docs/ConnectSessionsApi.md +145 -0
  15. data/docs/Employee.md +36 -12
  16. data/docs/EmployeeResult.md +2 -2
  17. data/docs/EmployeesApi.md +19 -13
  18. data/docs/EmployeesPaginated.md +2 -2
  19. data/docs/Employment.md +34 -0
  20. data/docs/EmploymentResult.md +20 -0
  21. data/docs/EmploymentsApi.md +175 -0
  22. data/docs/EmploymentsPaginated.md +22 -0
  23. data/docs/Location.md +38 -0
  24. data/docs/LocationResult.md +20 -0
  25. data/docs/LocationsApi.md +175 -0
  26. data/docs/LocationsPaginated.md +22 -0
  27. data/gem-config.yml +4 -4
  28. data/lib/stackone_hris_client/api/accounts_api.rb +205 -0
  29. data/lib/stackone_hris_client/api/companies_api.rb +188 -0
  30. data/lib/stackone_hris_client/api/connect_sessions_api.rb +154 -0
  31. data/lib/stackone_hris_client/api/employees_api.rb +10 -4
  32. data/lib/stackone_hris_client/api/employments_api.rb +188 -0
  33. data/lib/stackone_hris_client/api/locations_api.rb +188 -0
  34. data/lib/stackone_hris_client/api_client.rb +5 -5
  35. data/lib/stackone_hris_client/api_error.rb +4 -4
  36. data/lib/stackone_hris_client/configuration.rb +13 -12
  37. data/lib/stackone_hris_client/models/account.rb +322 -0
  38. data/lib/stackone_hris_client/models/companies_paginated.rb +249 -0
  39. data/lib/stackone_hris_client/models/company.rb +237 -0
  40. data/lib/stackone_hris_client/models/company_result.rb +233 -0
  41. data/lib/stackone_hris_client/models/connect_session.rb +350 -0
  42. data/lib/stackone_hris_client/models/connect_session_authenticate.rb +225 -0
  43. data/lib/stackone_hris_client/models/connect_session_create.rb +304 -0
  44. data/lib/stackone_hris_client/models/connect_session_token.rb +364 -0
  45. data/lib/stackone_hris_client/models/employee.rb +145 -60
  46. data/lib/stackone_hris_client/models/employee_result.rb +9 -7
  47. data/lib/stackone_hris_client/models/employees_paginated.rb +9 -7
  48. data/lib/stackone_hris_client/models/employment.rb +296 -0
  49. data/lib/stackone_hris_client/models/employment_result.rb +233 -0
  50. data/lib/stackone_hris_client/models/employments_paginated.rb +249 -0
  51. data/lib/stackone_hris_client/models/location.rb +314 -0
  52. data/lib/stackone_hris_client/models/location_result.rb +233 -0
  53. data/lib/stackone_hris_client/models/locations_paginated.rb +249 -0
  54. data/lib/stackone_hris_client/version.rb +5 -5
  55. data/lib/stackone_hris_client.rb +23 -4
  56. data/spec/api/accounts_api_spec.rb +58 -0
  57. data/spec/api/companies_api_spec.rb +70 -0
  58. data/spec/api/connect_sessions_api_spec.rb +57 -0
  59. data/spec/api/employments_api_spec.rb +70 -0
  60. data/spec/api/locations_api_spec.rb +70 -0
  61. data/spec/api_client_spec.rb +32 -32
  62. data/spec/configuration_spec.rb +6 -6
  63. data/spec/models/account_spec.rb +76 -0
  64. data/spec/models/companies_paginated_spec.rb +46 -0
  65. data/spec/models/company_result_spec.rb +40 -0
  66. data/spec/models/company_spec.rb +46 -0
  67. data/spec/models/connect_session_authenticate_spec.rb +34 -0
  68. data/spec/models/connect_session_create_spec.rb +68 -0
  69. data/spec/models/connect_session_spec.rb +86 -0
  70. data/spec/models/connect_session_token_spec.rb +92 -0
  71. data/spec/models/employment_result_spec.rb +40 -0
  72. data/spec/models/employment_spec.rb +82 -0
  73. data/spec/models/employments_paginated_spec.rb +46 -0
  74. data/spec/models/location_result_spec.rb +40 -0
  75. data/spec/models/location_spec.rb +94 -0
  76. data/spec/models/locations_paginated_spec.rb +46 -0
  77. data/spec/spec_helper.rb +3 -3
  78. data/stackone_hris_client.gemspec +5 -5
  79. metadata +79 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7b2ece4daf0c6a163d20b7c8877108df22c5acdf86d03b27986582d11547f73
4
- data.tar.gz: af71cf660e66e3fb0d461c113169c448d65bd3949265d76a9f5b47e1dc46888c
3
+ metadata.gz: 223a9e04960e5c4a198b29a40b4d05f436d28af77c5e8c9f07bee1b154ec2f22
4
+ data.tar.gz: 632b53d0447304594ec1b8aadd78ec097d1996f5620f558d951baf237e090be6
5
5
  SHA512:
6
- metadata.gz: 041a04aee60c707b15864abef862a4daf83685b3a853d664aea9219e57a7e8cd04ff534a6310e0eb24a704adedaece1b99af0c8a55d0075cec2c153cfb354f54
7
- data.tar.gz: 5f238823713f3cad99b24dd073ba23d47d319a5edd703f743d2a484c5f7dfa9bb9c1cb9699fa92b49130229fa2adfd5d6473149a49bb5c018383642a106d5c98
6
+ metadata.gz: 21b69b0150336543e1efef0ab6ba96faf03e1ec4ef30eaf21d1002a9322f70459183f73c32b449612879aba93428d42e0b0197b36c71f0c7f78cae4fd44110a3
7
+ data.tar.gz: 76d184526e89488bd6b616340dec8b5ff995ecfe85649d93b6045efdd149949db535c32fb4da521c182cc4c257d02efcf40041f45c3873524ca709a8593c0912
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stackone_hris_client (1.0.0)
4
+ stackone_hris_client (1.1.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # stackone_hris_client
2
2
 
3
- StackOneHrisClient - the Ruby gem for the StackOne Unified API
3
+ StackOneHRIS - the Ruby gem for the StackOne Unified API - HRIS
4
4
 
5
- The documentation for the StackOne Unified API
5
+ The documentation for the StackOne Unified API - HRIS
6
6
 
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
- - API version: 1.0
10
- - Package version: 1.0.0
9
+ - API version: 1.0.0
10
+ - Package version: 1.2.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build stackone_hris_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./stackone_hris_client-1.0.0.gem
26
+ gem install ./stackone_hris_client-1.2.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./stackone_hris_client-1.0.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./stackone_hris_client-1.2.0.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'stackone_hris_client', '~> 1.0.0'
35
+ gem 'stackone_hris_client', '~> 1.2.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -57,12 +57,12 @@ Please follow the [installation](#installation) procedure and then run the follo
57
57
  require 'stackone_hris_client'
58
58
 
59
59
  # Setup authorization
60
- StackOneHrisClient.configure do |config|
60
+ StackOneHRIS.configure do |config|
61
61
  # Configure HTTP basic authorization: basic
62
62
  config.api_key_token = 'YOUR API KEY'
63
63
  end
64
64
 
65
- api_instance = StackOneHrisClient::EmployeesApi.new
65
+ api_instance = StackOneHRIS::EmployeesApi.new
66
66
  id = 'id_example' # String |
67
67
  x_account_id = 'x_account_id_example' # String | The account identifier
68
68
  opts = {
@@ -77,7 +77,7 @@ begin
77
77
  #
78
78
  result = api_instance.employees_get(id, x_account_id, opts)
79
79
  p result
80
- rescue StackOneHrisClient::ApiError => e
80
+ rescue StackOneHRIS::ApiError => e
81
81
  puts "Exception when calling EmployeesApi->employees_get: #{e}"
82
82
  end
83
83
 
@@ -89,14 +89,41 @@ All URIs are relative to *http://localhost*
89
89
 
90
90
  Class | Method | HTTP request | Description
91
91
  ------------ | ------------- | ------------- | -------------
92
- *StackOneHrisClient::EmployeesApi* | [**employees_get**](docs/EmployeesApi.md#employees_get) | **GET** /unified/hris/employees/{id} |
93
- *StackOneHrisClient::EmployeesApi* | [**employees_list**](docs/EmployeesApi.md#employees_list) | **GET** /unified/hris/employees |
92
+ *StackOneHRIS::AccountsApi* | [**accounts_delete**](docs/AccountsApi.md#accounts_delete) | **DELETE** /accounts/{id} |
93
+ *StackOneHRIS::AccountsApi* | [**accounts_get**](docs/AccountsApi.md#accounts_get) | **GET** /accounts/{id} |
94
+ *StackOneHRIS::AccountsApi* | [**accounts_list**](docs/AccountsApi.md#accounts_list) | **GET** /accounts |
95
+ *StackOneHRIS::CompaniesApi* | [**companies_get**](docs/CompaniesApi.md#companies_get) | **GET** /unified/hris/companies/{id} |
96
+ *StackOneHRIS::CompaniesApi* | [**companies_list**](docs/CompaniesApi.md#companies_list) | **GET** /unified/hris/companies |
97
+ *StackOneHRIS::ConnectSessionsApi* | [**connect_sessions_authenticate**](docs/ConnectSessionsApi.md#connect_sessions_authenticate) | **POST** /connect_sessions/authenticate |
98
+ *StackOneHRIS::ConnectSessionsApi* | [**connect_sessions_create**](docs/ConnectSessionsApi.md#connect_sessions_create) | **POST** /connect_sessions |
99
+ *StackOneHRIS::EmployeesApi* | [**employees_get**](docs/EmployeesApi.md#employees_get) | **GET** /unified/hris/employees/{id} |
100
+ *StackOneHRIS::EmployeesApi* | [**employees_list**](docs/EmployeesApi.md#employees_list) | **GET** /unified/hris/employees |
101
+ *StackOneHRIS::EmploymentsApi* | [**employments_get**](docs/EmploymentsApi.md#employments_get) | **GET** /unified/hris/employments/{id} |
102
+ *StackOneHRIS::EmploymentsApi* | [**employments_list**](docs/EmploymentsApi.md#employments_list) | **GET** /unified/hris/employments |
103
+ *StackOneHRIS::LocationsApi* | [**hris_locations_get**](docs/LocationsApi.md#hris_locations_get) | **GET** /unified/hris/locations/{id} |
104
+ *StackOneHRIS::LocationsApi* | [**hris_locations_list**](docs/LocationsApi.md#hris_locations_list) | **GET** /unified/hris/locations |
105
+
94
106
 
95
107
  ## Documentation for Models
96
108
 
97
- - [StackOneHrisClient::Employee](docs/Employee.md)
98
- - [StackOneHrisClient::EmployeeResult](docs/EmployeeResult.md)
99
- - [StackOneHrisClient::EmployeesPaginated](docs/EmployeesPaginated.md)
109
+ - [StackOneHRIS::Account](docs/Account.md)
110
+ - [StackOneHRIS::CompaniesPaginated](docs/CompaniesPaginated.md)
111
+ - [StackOneHRIS::Company](docs/Company.md)
112
+ - [StackOneHRIS::CompanyResult](docs/CompanyResult.md)
113
+ - [StackOneHRIS::ConnectSession](docs/ConnectSession.md)
114
+ - [StackOneHRIS::ConnectSessionAuthenticate](docs/ConnectSessionAuthenticate.md)
115
+ - [StackOneHRIS::ConnectSessionCreate](docs/ConnectSessionCreate.md)
116
+ - [StackOneHRIS::ConnectSessionToken](docs/ConnectSessionToken.md)
117
+ - [StackOneHRIS::Employee](docs/Employee.md)
118
+ - [StackOneHRIS::EmployeeResult](docs/EmployeeResult.md)
119
+ - [StackOneHRIS::EmployeesPaginated](docs/EmployeesPaginated.md)
120
+ - [StackOneHRIS::Employment](docs/Employment.md)
121
+ - [StackOneHRIS::EmploymentResult](docs/EmploymentResult.md)
122
+ - [StackOneHRIS::EmploymentsPaginated](docs/EmploymentsPaginated.md)
123
+ - [StackOneHRIS::Location](docs/Location.md)
124
+ - [StackOneHRIS::LocationResult](docs/LocationResult.md)
125
+ - [StackOneHRIS::LocationsPaginated](docs/LocationsPaginated.md)
126
+
100
127
 
101
128
  ## Documentation for Authorization
102
129
 
data/docs/Account.md ADDED
@@ -0,0 +1,32 @@
1
+ # StackOneHRIS::Account
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **provider** | **String** | | |
9
+ | **origin_owner_id** | **String** | | |
10
+ | **origin_owner_name** | **String** | | |
11
+ | **origin_username** | **String** | | |
12
+ | **credentials** | **Object** | | |
13
+ | **created_at** | **Time** | | |
14
+ | **updated_at** | **Time** | | |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'stackone_hris_client'
20
+
21
+ instance = StackOneHRIS::Account.new(
22
+ id: null,
23
+ provider: null,
24
+ origin_owner_id: null,
25
+ origin_owner_name: null,
26
+ origin_username: null,
27
+ credentials: null,
28
+ created_at: null,
29
+ updated_at: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,218 @@
1
+ # StackOneHRIS::AccountsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**accounts_delete**](AccountsApi.md#accounts_delete) | **DELETE** /accounts/{id} | |
8
+ | [**accounts_get**](AccountsApi.md#accounts_get) | **GET** /accounts/{id} | |
9
+ | [**accounts_list**](AccountsApi.md#accounts_list) | **GET** /accounts | |
10
+
11
+
12
+ ## accounts_delete
13
+
14
+ > <Account> accounts_delete(id)
15
+
16
+
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'stackone_hris_client'
23
+ # setup authorization
24
+ StackOneHRIS.configure do |config|
25
+ # Configure HTTP basic authorization: basic
26
+ config.username = 'YOUR USERNAME'
27
+ config.password = 'YOUR PASSWORD'
28
+ end
29
+
30
+ api_instance = StackOneHRIS::AccountsApi.new
31
+ id = 'id_example' # String |
32
+
33
+ begin
34
+ #
35
+ result = api_instance.accounts_delete(id)
36
+ p result
37
+ rescue StackOneHRIS::ApiError => e
38
+ puts "Error when calling AccountsApi->accounts_delete: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the accounts_delete_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<Account>, Integer, Hash)> accounts_delete_with_http_info(id)
47
+
48
+ ```ruby
49
+ begin
50
+ #
51
+ data, status_code, headers = api_instance.accounts_delete_with_http_info(id)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <Account>
55
+ rescue StackOneHRIS::ApiError => e
56
+ puts "Error when calling AccountsApi->accounts_delete_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **id** | **String** | | |
65
+
66
+ ### Return type
67
+
68
+ [**Account**](Account.md)
69
+
70
+ ### Authorization
71
+
72
+ [basic](../README.md#basic)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: application/json
78
+
79
+
80
+ ## accounts_get
81
+
82
+ > <Account> accounts_get(id)
83
+
84
+
85
+
86
+ ### Examples
87
+
88
+ ```ruby
89
+ require 'time'
90
+ require 'stackone_hris_client'
91
+ # setup authorization
92
+ StackOneHRIS.configure do |config|
93
+ # Configure HTTP basic authorization: basic
94
+ config.username = 'YOUR USERNAME'
95
+ config.password = 'YOUR PASSWORD'
96
+ end
97
+
98
+ api_instance = StackOneHRIS::AccountsApi.new
99
+ id = 'id_example' # String |
100
+
101
+ begin
102
+ #
103
+ result = api_instance.accounts_get(id)
104
+ p result
105
+ rescue StackOneHRIS::ApiError => e
106
+ puts "Error when calling AccountsApi->accounts_get: #{e}"
107
+ end
108
+ ```
109
+
110
+ #### Using the accounts_get_with_http_info variant
111
+
112
+ This returns an Array which contains the response data, status code and headers.
113
+
114
+ > <Array(<Account>, Integer, Hash)> accounts_get_with_http_info(id)
115
+
116
+ ```ruby
117
+ begin
118
+ #
119
+ data, status_code, headers = api_instance.accounts_get_with_http_info(id)
120
+ p status_code # => 2xx
121
+ p headers # => { ... }
122
+ p data # => <Account>
123
+ rescue StackOneHRIS::ApiError => e
124
+ puts "Error when calling AccountsApi->accounts_get_with_http_info: #{e}"
125
+ end
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+ | Name | Type | Description | Notes |
131
+ | ---- | ---- | ----------- | ----- |
132
+ | **id** | **String** | | |
133
+
134
+ ### Return type
135
+
136
+ [**Account**](Account.md)
137
+
138
+ ### Authorization
139
+
140
+ [basic](../README.md#basic)
141
+
142
+ ### HTTP request headers
143
+
144
+ - **Content-Type**: Not defined
145
+ - **Accept**: application/json
146
+
147
+
148
+ ## accounts_list
149
+
150
+ > <Array<Account>> accounts_list(opts)
151
+
152
+
153
+
154
+ ### Examples
155
+
156
+ ```ruby
157
+ require 'time'
158
+ require 'stackone_hris_client'
159
+ # setup authorization
160
+ StackOneHRIS.configure do |config|
161
+ # Configure HTTP basic authorization: basic
162
+ config.username = 'YOUR USERNAME'
163
+ config.password = 'YOUR PASSWORD'
164
+ end
165
+
166
+ api_instance = StackOneHRIS::AccountsApi.new
167
+ opts = {
168
+ provider: 'provider_example', # String | The provider of the results to fetch
169
+ origin_owner_id: 'origin_owner_id_example' # String | The origin owner identifier of the results to fetch
170
+ }
171
+
172
+ begin
173
+ #
174
+ result = api_instance.accounts_list(opts)
175
+ p result
176
+ rescue StackOneHRIS::ApiError => e
177
+ puts "Error when calling AccountsApi->accounts_list: #{e}"
178
+ end
179
+ ```
180
+
181
+ #### Using the accounts_list_with_http_info variant
182
+
183
+ This returns an Array which contains the response data, status code and headers.
184
+
185
+ > <Array(<Array<Account>>, Integer, Hash)> accounts_list_with_http_info(opts)
186
+
187
+ ```ruby
188
+ begin
189
+ #
190
+ data, status_code, headers = api_instance.accounts_list_with_http_info(opts)
191
+ p status_code # => 2xx
192
+ p headers # => { ... }
193
+ p data # => <Array<Account>>
194
+ rescue StackOneHRIS::ApiError => e
195
+ puts "Error when calling AccountsApi->accounts_list_with_http_info: #{e}"
196
+ end
197
+ ```
198
+
199
+ ### Parameters
200
+
201
+ | Name | Type | Description | Notes |
202
+ | ---- | ---- | ----------- | ----- |
203
+ | **provider** | **String** | The provider of the results to fetch | [optional] |
204
+ | **origin_owner_id** | **String** | The origin owner identifier of the results to fetch | [optional] |
205
+
206
+ ### Return type
207
+
208
+ [**Array&lt;Account&gt;**](Account.md)
209
+
210
+ ### Authorization
211
+
212
+ [basic](../README.md#basic)
213
+
214
+ ### HTTP request headers
215
+
216
+ - **Content-Type**: Not defined
217
+ - **Accept**: application/json
218
+
@@ -0,0 +1,175 @@
1
+ # StackOneHRIS::CompaniesApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**companies_get**](CompaniesApi.md#companies_get) | **GET** /unified/hris/companies/{id} | |
8
+ | [**companies_list**](CompaniesApi.md#companies_list) | **GET** /unified/hris/companies | |
9
+
10
+
11
+ ## companies_get
12
+
13
+ > <CompanyResult> companies_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::CompaniesApi.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.companies_get(id, x_account_id, opts)
44
+ p result
45
+ rescue StackOneHRIS::ApiError => e
46
+ puts "Error when calling CompaniesApi->companies_get: #{e}"
47
+ end
48
+ ```
49
+
50
+ #### Using the companies_get_with_http_info variant
51
+
52
+ This returns an Array which contains the response data, status code and headers.
53
+
54
+ > <Array(<CompanyResult>, Integer, Hash)> companies_get_with_http_info(id, x_account_id, opts)
55
+
56
+ ```ruby
57
+ begin
58
+ #
59
+ data, status_code, headers = api_instance.companies_get_with_http_info(id, x_account_id, opts)
60
+ p status_code # => 2xx
61
+ p headers # => { ... }
62
+ p data # => <CompanyResult>
63
+ rescue StackOneHRIS::ApiError => e
64
+ puts "Error when calling CompaniesApi->companies_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
+ [**CompanyResult**](CompanyResult.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
+ ## companies_list
96
+
97
+ > <CompaniesPaginated> companies_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::CompaniesApi.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.companies_list(x_account_id, opts)
127
+ p result
128
+ rescue StackOneHRIS::ApiError => e
129
+ puts "Error when calling CompaniesApi->companies_list: #{e}"
130
+ end
131
+ ```
132
+
133
+ #### Using the companies_list_with_http_info variant
134
+
135
+ This returns an Array which contains the response data, status code and headers.
136
+
137
+ > <Array(<CompaniesPaginated>, Integer, Hash)> companies_list_with_http_info(x_account_id, opts)
138
+
139
+ ```ruby
140
+ begin
141
+ #
142
+ data, status_code, headers = api_instance.companies_list_with_http_info(x_account_id, opts)
143
+ p status_code # => 2xx
144
+ p headers # => { ... }
145
+ p data # => <CompaniesPaginated>
146
+ rescue StackOneHRIS::ApiError => e
147
+ puts "Error when calling CompaniesApi->companies_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
+ [**CompaniesPaginated**](CompaniesPaginated.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::CompaniesPaginated
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **next_page** | **String** | | |
8
+ | **data** | [**Array&lt;Company&gt;**](Company.md) | | |
9
+ | **raw** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'stackone_hris_client'
15
+
16
+ instance = StackOneHRIS::CompaniesPaginated.new(
17
+ next_page: null,
18
+ data: null,
19
+ raw: null
20
+ )
21
+ ```
22
+
data/docs/Company.md ADDED
@@ -0,0 +1,22 @@
1
+ # StackOneHRIS::Company
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **display_name** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'stackone_hris_client'
15
+
16
+ instance = StackOneHRIS::Company.new(
17
+ id: null,
18
+ name: null,
19
+ display_name: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::CompanyResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Company**](Company.md) | | |
8
+ | **raw** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::CompanyResult.new(
16
+ data: null,
17
+ raw: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,34 @@
1
+ # StackOneHRIS::ConnectSession
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **organization_id** | **String** | | |
9
+ | **project_id** | **String** | | |
10
+ | **categories** | **Array&lt;String&gt;** | | [optional] |
11
+ | **provider** | **String** | | |
12
+ | **origin_owner_id** | **String** | | |
13
+ | **origin_owner_name** | **String** | | |
14
+ | **origin_username** | **String** | | [optional] |
15
+ | **created_at** | **Time** | | |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'stackone_hris_client'
21
+
22
+ instance = StackOneHRIS::ConnectSession.new(
23
+ id: null,
24
+ organization_id: null,
25
+ project_id: null,
26
+ categories: [&quot;ats&quot;,&quot;hris&quot;,&quot;crm&quot;],
27
+ provider: null,
28
+ origin_owner_id: null,
29
+ origin_owner_name: null,
30
+ origin_username: null,
31
+ created_at: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,18 @@
1
+ # StackOneHRIS::ConnectSessionAuthenticate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **token** | **String** | The token to authenticate with | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'stackone_hris_client'
13
+
14
+ instance = StackOneHRIS::ConnectSessionAuthenticate.new(
15
+ token: null
16
+ )
17
+ ```
18
+