affixapi 1.1.45 → 1.1.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +31 -49
- data/docs/Class20230301Api.md +102 -726
- data/docs/CoreApi.md +1 -1
- data/docs/{DeveloperApi.md → XHRVerticallyIntegratedApi.md} +111 -111
- data/lib/openapi_client/api/class20230301_api.rb +82 -603
- data/lib/openapi_client/api/core_api.rb +3 -3
- data/lib/openapi_client/api/management_api.rb +1 -1
- data/lib/openapi_client/api/{developer_api.rb → xhr_vertically_integrated_api.rb} +83 -83
- data/lib/openapi_client/api_client.rb +1 -1
- data/lib/openapi_client/api_error.rb +1 -1
- data/lib/openapi_client/configuration.rb +1 -1
- data/lib/openapi_client/models/address_no_non_null_request.rb +1 -1
- data/lib/openapi_client/models/address_response.rb +1 -1
- data/lib/openapi_client/models/client_request.rb +1 -1
- data/lib/openapi_client/models/client_response.rb +1 -1
- data/lib/openapi_client/models/company_response.rb +1 -1
- data/lib/openapi_client/models/create_employee_request.rb +1 -1
- data/lib/openapi_client/models/create_employee_request_bank_account.rb +1 -1
- data/lib/openapi_client/models/create_employee_request_manager.rb +1 -1
- data/lib/openapi_client/models/currency_request.rb +1 -1
- data/lib/openapi_client/models/currency_response.rb +1 -1
- data/lib/openapi_client/models/disconnect_response.rb +1 -1
- data/lib/openapi_client/models/employee_response.rb +1 -1
- data/lib/openapi_client/models/employment_no_null_enum_request.rb +1 -1
- data/lib/openapi_client/models/employment_response.rb +1 -1
- data/lib/openapi_client/models/group_no_null_enum_request.rb +1 -1
- data/lib/openapi_client/models/group_response.rb +1 -1
- data/lib/openapi_client/models/id_and_message_response.rb +1 -1
- data/lib/openapi_client/models/identity_response.rb +1 -1
- data/lib/openapi_client/models/inline_response400.rb +1 -1
- data/lib/openapi_client/models/inline_response401.rb +1 -1
- data/lib/openapi_client/models/inline_response409.rb +1 -1
- data/lib/openapi_client/models/introspect_response.rb +1 -1
- data/lib/openapi_client/models/location_no_non_null_request.rb +1 -1
- data/lib/openapi_client/models/location_response.rb +1 -1
- data/lib/openapi_client/models/message_response.rb +1 -1
- data/lib/openapi_client/models/mode_request.rb +2 -2
- data/lib/openapi_client/models/mode_response.rb +2 -2
- data/lib/openapi_client/models/payrun_response.rb +1 -1
- data/lib/openapi_client/models/payslip_response.rb +1 -1
- data/lib/openapi_client/models/payslip_response_contributions.rb +1 -1
- data/lib/openapi_client/models/payslip_response_deductions.rb +1 -1
- data/lib/openapi_client/models/payslip_response_earnings.rb +1 -1
- data/lib/openapi_client/models/payslip_response_taxes.rb +1 -1
- data/lib/openapi_client/models/provider_request.rb +1 -1
- data/lib/openapi_client/models/provider_response.rb +1 -1
- data/lib/openapi_client/models/scopes_request.rb +12 -12
- data/lib/openapi_client/models/scopes_response.rb +12 -12
- data/lib/openapi_client/models/time_off_balance_response.rb +1 -1
- data/lib/openapi_client/models/time_off_entry_response.rb +1 -1
- data/lib/openapi_client/models/timesheet_response.rb +1 -1
- data/lib/openapi_client/models/token_request.rb +1 -1
- data/lib/openapi_client/models/token_response.rb +1 -1
- data/lib/openapi_client/version.rb +2 -2
- data/lib/openapi_client.rb +2 -3
- data/spec/api/class20230301_api_spec.rb +23 -123
- data/spec/api/core_api_spec.rb +2 -2
- data/spec/api/management_api_spec.rb +1 -1
- data/spec/api/xhr_vertically_integrated_api_spec.rb +160 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/address_no_non_null_request_spec.rb +1 -1
- data/spec/models/address_response_spec.rb +1 -1
- data/spec/models/client_request_spec.rb +1 -1
- data/spec/models/client_response_spec.rb +1 -1
- data/spec/models/company_response_spec.rb +1 -1
- data/spec/models/create_employee_request_bank_account_spec.rb +1 -1
- data/spec/models/create_employee_request_manager_spec.rb +1 -1
- data/spec/models/create_employee_request_spec.rb +1 -1
- data/spec/models/currency_request_spec.rb +1 -1
- data/spec/models/currency_response_spec.rb +1 -1
- data/spec/models/disconnect_response_spec.rb +1 -1
- data/spec/models/employee_response_spec.rb +1 -1
- data/spec/models/employment_no_null_enum_request_spec.rb +1 -1
- data/spec/models/employment_response_spec.rb +1 -1
- data/spec/models/group_no_null_enum_request_spec.rb +1 -1
- data/spec/models/group_response_spec.rb +1 -1
- data/spec/models/id_and_message_response_spec.rb +1 -1
- data/spec/models/identity_response_spec.rb +1 -1
- data/spec/models/inline_response400_spec.rb +1 -1
- data/spec/models/inline_response401_spec.rb +1 -1
- data/spec/models/inline_response409_spec.rb +1 -1
- data/spec/models/introspect_response_spec.rb +1 -1
- data/spec/models/location_no_non_null_request_spec.rb +1 -1
- data/spec/models/location_response_spec.rb +1 -1
- data/spec/models/message_response_spec.rb +1 -1
- data/spec/models/mode_request_spec.rb +1 -1
- data/spec/models/mode_response_spec.rb +1 -1
- data/spec/models/payrun_response_spec.rb +1 -1
- data/spec/models/payslip_response_contributions_spec.rb +1 -1
- data/spec/models/payslip_response_deductions_spec.rb +1 -1
- data/spec/models/payslip_response_earnings_spec.rb +1 -1
- data/spec/models/payslip_response_spec.rb +1 -1
- data/spec/models/payslip_response_taxes_spec.rb +1 -1
- data/spec/models/provider_request_spec.rb +1 -1
- data/spec/models/provider_response_spec.rb +1 -1
- data/spec/models/scopes_request_spec.rb +1 -1
- data/spec/models/scopes_response_spec.rb +1 -1
- data/spec/models/time_off_balance_response_spec.rb +1 -1
- data/spec/models/time_off_entry_response_spec.rb +1 -1
- data/spec/models/timesheet_response_spec.rb +1 -1
- data/spec/models/token_request_spec.rb +1 -1
- data/spec/models/token_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -10
- data/docs/OfficialApi.md +0 -631
- data/lib/openapi_client/api/official_api.rb +0 -543
- data/spec/api/developer_api_spec.rb +0 -160
- data/spec/api/official_api_spec.rb +0 -135
data/docs/OfficialApi.md
DELETED
@@ -1,631 +0,0 @@
|
|
1
|
-
# OpenapiClient::OfficialApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.affixapi.com*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**official_companies20230301**](OfficialApi.md#official_companies20230301) | **GET** /2023-03-01/official/company | Company |
|
8
|
-
| [**official_create_employee20230301**](OfficialApi.md#official_create_employee20230301) | **POST** /2023-03-01/official/employee | Create Employee |
|
9
|
-
| [**official_employees20230301**](OfficialApi.md#official_employees20230301) | **GET** /2023-03-01/official/employees | Employees |
|
10
|
-
| [**official_groups20230301**](OfficialApi.md#official_groups20230301) | **GET** /2023-03-01/official/groups | Groups |
|
11
|
-
| [**official_time_off_balances20230301**](OfficialApi.md#official_time_off_balances20230301) | **GET** /2023-03-01/official/time-off-balances | Time off balances |
|
12
|
-
| [**official_time_off_entries20230301**](OfficialApi.md#official_time_off_entries20230301) | **GET** /2023-03-01/official/time-off-entries | Time off entries |
|
13
|
-
| [**official_timesheets20230301**](OfficialApi.md#official_timesheets20230301) | **GET** /2023-03-01/official/timesheets | Timesheets |
|
14
|
-
| [**official_work_locations20230301**](OfficialApi.md#official_work_locations20230301) | **GET** /2023-03-01/official/work-locations | Work locations |
|
15
|
-
| [**officialdentity20230301**](OfficialApi.md#officialdentity20230301) | **GET** /2023-03-01/official/identity | Identity |
|
16
|
-
|
17
|
-
|
18
|
-
## official_companies20230301
|
19
|
-
|
20
|
-
> <Array<CompanyResponse>> official_companies20230301
|
21
|
-
|
22
|
-
Company
|
23
|
-
|
24
|
-
Retrieve company information
|
25
|
-
|
26
|
-
### Examples
|
27
|
-
|
28
|
-
```ruby
|
29
|
-
require 'time'
|
30
|
-
require 'openapi_client'
|
31
|
-
# setup authorization
|
32
|
-
OpenapiClient.configure do |config|
|
33
|
-
# Configure API key authorization: access-token
|
34
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
35
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
36
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
37
|
-
end
|
38
|
-
|
39
|
-
api_instance = OpenapiClient::OfficialApi.new
|
40
|
-
|
41
|
-
begin
|
42
|
-
# Company
|
43
|
-
result = api_instance.official_companies20230301
|
44
|
-
p result
|
45
|
-
rescue OpenapiClient::ApiError => e
|
46
|
-
puts "Error when calling OfficialApi->official_companies20230301: #{e}"
|
47
|
-
end
|
48
|
-
```
|
49
|
-
|
50
|
-
#### Using the official_companies20230301_with_http_info variant
|
51
|
-
|
52
|
-
This returns an Array which contains the response data, status code and headers.
|
53
|
-
|
54
|
-
> <Array(<Array<CompanyResponse>>, Integer, Hash)> official_companies20230301_with_http_info
|
55
|
-
|
56
|
-
```ruby
|
57
|
-
begin
|
58
|
-
# Company
|
59
|
-
data, status_code, headers = api_instance.official_companies20230301_with_http_info
|
60
|
-
p status_code # => 2xx
|
61
|
-
p headers # => { ... }
|
62
|
-
p data # => <Array<CompanyResponse>>
|
63
|
-
rescue OpenapiClient::ApiError => e
|
64
|
-
puts "Error when calling OfficialApi->official_companies20230301_with_http_info: #{e}"
|
65
|
-
end
|
66
|
-
```
|
67
|
-
|
68
|
-
### Parameters
|
69
|
-
|
70
|
-
This endpoint does not need any parameter.
|
71
|
-
|
72
|
-
### Return type
|
73
|
-
|
74
|
-
[**Array<CompanyResponse>**](CompanyResponse.md)
|
75
|
-
|
76
|
-
### Authorization
|
77
|
-
|
78
|
-
[access-token](../README.md#access-token)
|
79
|
-
|
80
|
-
### HTTP request headers
|
81
|
-
|
82
|
-
- **Content-Type**: Not defined
|
83
|
-
- **Accept**: application/json
|
84
|
-
|
85
|
-
|
86
|
-
## official_create_employee20230301
|
87
|
-
|
88
|
-
> <EmployeeResponse> official_create_employee20230301(create_employee_request)
|
89
|
-
|
90
|
-
Create Employee
|
91
|
-
|
92
|
-
Creates a new Employee
|
93
|
-
|
94
|
-
### Examples
|
95
|
-
|
96
|
-
```ruby
|
97
|
-
require 'time'
|
98
|
-
require 'openapi_client'
|
99
|
-
# setup authorization
|
100
|
-
OpenapiClient.configure do |config|
|
101
|
-
# Configure API key authorization: access-token
|
102
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
103
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
104
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
105
|
-
end
|
106
|
-
|
107
|
-
api_instance = OpenapiClient::OfficialApi.new
|
108
|
-
create_employee_request = OpenapiClient::CreateEmployeeRequest.new({first_name: 'Greg', last_name: 'Hirsch'}) # CreateEmployeeRequest |
|
109
|
-
|
110
|
-
begin
|
111
|
-
# Create Employee
|
112
|
-
result = api_instance.official_create_employee20230301(create_employee_request)
|
113
|
-
p result
|
114
|
-
rescue OpenapiClient::ApiError => e
|
115
|
-
puts "Error when calling OfficialApi->official_create_employee20230301: #{e}"
|
116
|
-
end
|
117
|
-
```
|
118
|
-
|
119
|
-
#### Using the official_create_employee20230301_with_http_info variant
|
120
|
-
|
121
|
-
This returns an Array which contains the response data, status code and headers.
|
122
|
-
|
123
|
-
> <Array(<EmployeeResponse>, Integer, Hash)> official_create_employee20230301_with_http_info(create_employee_request)
|
124
|
-
|
125
|
-
```ruby
|
126
|
-
begin
|
127
|
-
# Create Employee
|
128
|
-
data, status_code, headers = api_instance.official_create_employee20230301_with_http_info(create_employee_request)
|
129
|
-
p status_code # => 2xx
|
130
|
-
p headers # => { ... }
|
131
|
-
p data # => <EmployeeResponse>
|
132
|
-
rescue OpenapiClient::ApiError => e
|
133
|
-
puts "Error when calling OfficialApi->official_create_employee20230301_with_http_info: #{e}"
|
134
|
-
end
|
135
|
-
```
|
136
|
-
|
137
|
-
### Parameters
|
138
|
-
|
139
|
-
| Name | Type | Description | Notes |
|
140
|
-
| ---- | ---- | ----------- | ----- |
|
141
|
-
| **create_employee_request** | [**CreateEmployeeRequest**](CreateEmployeeRequest.md) | | |
|
142
|
-
|
143
|
-
### Return type
|
144
|
-
|
145
|
-
[**EmployeeResponse**](EmployeeResponse.md)
|
146
|
-
|
147
|
-
### Authorization
|
148
|
-
|
149
|
-
[access-token](../README.md#access-token)
|
150
|
-
|
151
|
-
### HTTP request headers
|
152
|
-
|
153
|
-
- **Content-Type**: application/json
|
154
|
-
- **Accept**: application/json
|
155
|
-
|
156
|
-
|
157
|
-
## official_employees20230301
|
158
|
-
|
159
|
-
> <Array<EmployeeResponse>> official_employees20230301
|
160
|
-
|
161
|
-
Employees
|
162
|
-
|
163
|
-
List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
|
164
|
-
|
165
|
-
### Examples
|
166
|
-
|
167
|
-
```ruby
|
168
|
-
require 'time'
|
169
|
-
require 'openapi_client'
|
170
|
-
# setup authorization
|
171
|
-
OpenapiClient.configure do |config|
|
172
|
-
# Configure API key authorization: access-token
|
173
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
174
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
175
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
176
|
-
end
|
177
|
-
|
178
|
-
api_instance = OpenapiClient::OfficialApi.new
|
179
|
-
|
180
|
-
begin
|
181
|
-
# Employees
|
182
|
-
result = api_instance.official_employees20230301
|
183
|
-
p result
|
184
|
-
rescue OpenapiClient::ApiError => e
|
185
|
-
puts "Error when calling OfficialApi->official_employees20230301: #{e}"
|
186
|
-
end
|
187
|
-
```
|
188
|
-
|
189
|
-
#### Using the official_employees20230301_with_http_info variant
|
190
|
-
|
191
|
-
This returns an Array which contains the response data, status code and headers.
|
192
|
-
|
193
|
-
> <Array(<Array<EmployeeResponse>>, Integer, Hash)> official_employees20230301_with_http_info
|
194
|
-
|
195
|
-
```ruby
|
196
|
-
begin
|
197
|
-
# Employees
|
198
|
-
data, status_code, headers = api_instance.official_employees20230301_with_http_info
|
199
|
-
p status_code # => 2xx
|
200
|
-
p headers # => { ... }
|
201
|
-
p data # => <Array<EmployeeResponse>>
|
202
|
-
rescue OpenapiClient::ApiError => e
|
203
|
-
puts "Error when calling OfficialApi->official_employees20230301_with_http_info: #{e}"
|
204
|
-
end
|
205
|
-
```
|
206
|
-
|
207
|
-
### Parameters
|
208
|
-
|
209
|
-
This endpoint does not need any parameter.
|
210
|
-
|
211
|
-
### Return type
|
212
|
-
|
213
|
-
[**Array<EmployeeResponse>**](EmployeeResponse.md)
|
214
|
-
|
215
|
-
### Authorization
|
216
|
-
|
217
|
-
[access-token](../README.md#access-token)
|
218
|
-
|
219
|
-
### HTTP request headers
|
220
|
-
|
221
|
-
- **Content-Type**: Not defined
|
222
|
-
- **Accept**: application/json
|
223
|
-
|
224
|
-
|
225
|
-
## official_groups20230301
|
226
|
-
|
227
|
-
> <Array<GroupResponse>> official_groups20230301
|
228
|
-
|
229
|
-
Groups
|
230
|
-
|
231
|
-
The Group object is used to represent any subset of employees, such as PayGroup, Team, or Department. Employees can be in multiple Groups.
|
232
|
-
|
233
|
-
### Examples
|
234
|
-
|
235
|
-
```ruby
|
236
|
-
require 'time'
|
237
|
-
require 'openapi_client'
|
238
|
-
# setup authorization
|
239
|
-
OpenapiClient.configure do |config|
|
240
|
-
# Configure API key authorization: access-token
|
241
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
242
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
243
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
244
|
-
end
|
245
|
-
|
246
|
-
api_instance = OpenapiClient::OfficialApi.new
|
247
|
-
|
248
|
-
begin
|
249
|
-
# Groups
|
250
|
-
result = api_instance.official_groups20230301
|
251
|
-
p result
|
252
|
-
rescue OpenapiClient::ApiError => e
|
253
|
-
puts "Error when calling OfficialApi->official_groups20230301: #{e}"
|
254
|
-
end
|
255
|
-
```
|
256
|
-
|
257
|
-
#### Using the official_groups20230301_with_http_info variant
|
258
|
-
|
259
|
-
This returns an Array which contains the response data, status code and headers.
|
260
|
-
|
261
|
-
> <Array(<Array<GroupResponse>>, Integer, Hash)> official_groups20230301_with_http_info
|
262
|
-
|
263
|
-
```ruby
|
264
|
-
begin
|
265
|
-
# Groups
|
266
|
-
data, status_code, headers = api_instance.official_groups20230301_with_http_info
|
267
|
-
p status_code # => 2xx
|
268
|
-
p headers # => { ... }
|
269
|
-
p data # => <Array<GroupResponse>>
|
270
|
-
rescue OpenapiClient::ApiError => e
|
271
|
-
puts "Error when calling OfficialApi->official_groups20230301_with_http_info: #{e}"
|
272
|
-
end
|
273
|
-
```
|
274
|
-
|
275
|
-
### Parameters
|
276
|
-
|
277
|
-
This endpoint does not need any parameter.
|
278
|
-
|
279
|
-
### Return type
|
280
|
-
|
281
|
-
[**Array<GroupResponse>**](GroupResponse.md)
|
282
|
-
|
283
|
-
### Authorization
|
284
|
-
|
285
|
-
[access-token](../README.md#access-token)
|
286
|
-
|
287
|
-
### HTTP request headers
|
288
|
-
|
289
|
-
- **Content-Type**: Not defined
|
290
|
-
- **Accept**: application/json
|
291
|
-
|
292
|
-
|
293
|
-
## official_time_off_balances20230301
|
294
|
-
|
295
|
-
> <Array<TimeOffBalanceResponse>> official_time_off_balances20230301
|
296
|
-
|
297
|
-
Time off balances
|
298
|
-
|
299
|
-
Retrieve all time off balances.
|
300
|
-
|
301
|
-
### Examples
|
302
|
-
|
303
|
-
```ruby
|
304
|
-
require 'time'
|
305
|
-
require 'openapi_client'
|
306
|
-
# setup authorization
|
307
|
-
OpenapiClient.configure do |config|
|
308
|
-
# Configure API key authorization: access-token
|
309
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
310
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
311
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
312
|
-
end
|
313
|
-
|
314
|
-
api_instance = OpenapiClient::OfficialApi.new
|
315
|
-
|
316
|
-
begin
|
317
|
-
# Time off balances
|
318
|
-
result = api_instance.official_time_off_balances20230301
|
319
|
-
p result
|
320
|
-
rescue OpenapiClient::ApiError => e
|
321
|
-
puts "Error when calling OfficialApi->official_time_off_balances20230301: #{e}"
|
322
|
-
end
|
323
|
-
```
|
324
|
-
|
325
|
-
#### Using the official_time_off_balances20230301_with_http_info variant
|
326
|
-
|
327
|
-
This returns an Array which contains the response data, status code and headers.
|
328
|
-
|
329
|
-
> <Array(<Array<TimeOffBalanceResponse>>, Integer, Hash)> official_time_off_balances20230301_with_http_info
|
330
|
-
|
331
|
-
```ruby
|
332
|
-
begin
|
333
|
-
# Time off balances
|
334
|
-
data, status_code, headers = api_instance.official_time_off_balances20230301_with_http_info
|
335
|
-
p status_code # => 2xx
|
336
|
-
p headers # => { ... }
|
337
|
-
p data # => <Array<TimeOffBalanceResponse>>
|
338
|
-
rescue OpenapiClient::ApiError => e
|
339
|
-
puts "Error when calling OfficialApi->official_time_off_balances20230301_with_http_info: #{e}"
|
340
|
-
end
|
341
|
-
```
|
342
|
-
|
343
|
-
### Parameters
|
344
|
-
|
345
|
-
This endpoint does not need any parameter.
|
346
|
-
|
347
|
-
### Return type
|
348
|
-
|
349
|
-
[**Array<TimeOffBalanceResponse>**](TimeOffBalanceResponse.md)
|
350
|
-
|
351
|
-
### Authorization
|
352
|
-
|
353
|
-
[access-token](../README.md#access-token)
|
354
|
-
|
355
|
-
### HTTP request headers
|
356
|
-
|
357
|
-
- **Content-Type**: Not defined
|
358
|
-
- **Accept**: application/json
|
359
|
-
|
360
|
-
|
361
|
-
## official_time_off_entries20230301
|
362
|
-
|
363
|
-
> <Array<TimeOffEntryResponse>> official_time_off_entries20230301
|
364
|
-
|
365
|
-
Time off entries
|
366
|
-
|
367
|
-
Retrieve time off / absence entries
|
368
|
-
|
369
|
-
### Examples
|
370
|
-
|
371
|
-
```ruby
|
372
|
-
require 'time'
|
373
|
-
require 'openapi_client'
|
374
|
-
# setup authorization
|
375
|
-
OpenapiClient.configure do |config|
|
376
|
-
# Configure API key authorization: access-token
|
377
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
378
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
379
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
380
|
-
end
|
381
|
-
|
382
|
-
api_instance = OpenapiClient::OfficialApi.new
|
383
|
-
|
384
|
-
begin
|
385
|
-
# Time off entries
|
386
|
-
result = api_instance.official_time_off_entries20230301
|
387
|
-
p result
|
388
|
-
rescue OpenapiClient::ApiError => e
|
389
|
-
puts "Error when calling OfficialApi->official_time_off_entries20230301: #{e}"
|
390
|
-
end
|
391
|
-
```
|
392
|
-
|
393
|
-
#### Using the official_time_off_entries20230301_with_http_info variant
|
394
|
-
|
395
|
-
This returns an Array which contains the response data, status code and headers.
|
396
|
-
|
397
|
-
> <Array(<Array<TimeOffEntryResponse>>, Integer, Hash)> official_time_off_entries20230301_with_http_info
|
398
|
-
|
399
|
-
```ruby
|
400
|
-
begin
|
401
|
-
# Time off entries
|
402
|
-
data, status_code, headers = api_instance.official_time_off_entries20230301_with_http_info
|
403
|
-
p status_code # => 2xx
|
404
|
-
p headers # => { ... }
|
405
|
-
p data # => <Array<TimeOffEntryResponse>>
|
406
|
-
rescue OpenapiClient::ApiError => e
|
407
|
-
puts "Error when calling OfficialApi->official_time_off_entries20230301_with_http_info: #{e}"
|
408
|
-
end
|
409
|
-
```
|
410
|
-
|
411
|
-
### Parameters
|
412
|
-
|
413
|
-
This endpoint does not need any parameter.
|
414
|
-
|
415
|
-
### Return type
|
416
|
-
|
417
|
-
[**Array<TimeOffEntryResponse>**](TimeOffEntryResponse.md)
|
418
|
-
|
419
|
-
### Authorization
|
420
|
-
|
421
|
-
[access-token](../README.md#access-token)
|
422
|
-
|
423
|
-
### HTTP request headers
|
424
|
-
|
425
|
-
- **Content-Type**: Not defined
|
426
|
-
- **Accept**: application/json
|
427
|
-
|
428
|
-
|
429
|
-
## official_timesheets20230301
|
430
|
-
|
431
|
-
> <Array<TimesheetResponse>> official_timesheets20230301
|
432
|
-
|
433
|
-
Timesheets
|
434
|
-
|
435
|
-
Retrieve Timesheets
|
436
|
-
|
437
|
-
### Examples
|
438
|
-
|
439
|
-
```ruby
|
440
|
-
require 'time'
|
441
|
-
require 'openapi_client'
|
442
|
-
# setup authorization
|
443
|
-
OpenapiClient.configure do |config|
|
444
|
-
# Configure API key authorization: access-token
|
445
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
446
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
447
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
448
|
-
end
|
449
|
-
|
450
|
-
api_instance = OpenapiClient::OfficialApi.new
|
451
|
-
|
452
|
-
begin
|
453
|
-
# Timesheets
|
454
|
-
result = api_instance.official_timesheets20230301
|
455
|
-
p result
|
456
|
-
rescue OpenapiClient::ApiError => e
|
457
|
-
puts "Error when calling OfficialApi->official_timesheets20230301: #{e}"
|
458
|
-
end
|
459
|
-
```
|
460
|
-
|
461
|
-
#### Using the official_timesheets20230301_with_http_info variant
|
462
|
-
|
463
|
-
This returns an Array which contains the response data, status code and headers.
|
464
|
-
|
465
|
-
> <Array(<Array<TimesheetResponse>>, Integer, Hash)> official_timesheets20230301_with_http_info
|
466
|
-
|
467
|
-
```ruby
|
468
|
-
begin
|
469
|
-
# Timesheets
|
470
|
-
data, status_code, headers = api_instance.official_timesheets20230301_with_http_info
|
471
|
-
p status_code # => 2xx
|
472
|
-
p headers # => { ... }
|
473
|
-
p data # => <Array<TimesheetResponse>>
|
474
|
-
rescue OpenapiClient::ApiError => e
|
475
|
-
puts "Error when calling OfficialApi->official_timesheets20230301_with_http_info: #{e}"
|
476
|
-
end
|
477
|
-
```
|
478
|
-
|
479
|
-
### Parameters
|
480
|
-
|
481
|
-
This endpoint does not need any parameter.
|
482
|
-
|
483
|
-
### Return type
|
484
|
-
|
485
|
-
[**Array<TimesheetResponse>**](TimesheetResponse.md)
|
486
|
-
|
487
|
-
### Authorization
|
488
|
-
|
489
|
-
[access-token](../README.md#access-token)
|
490
|
-
|
491
|
-
### HTTP request headers
|
492
|
-
|
493
|
-
- **Content-Type**: Not defined
|
494
|
-
- **Accept**: application/json
|
495
|
-
|
496
|
-
|
497
|
-
## official_work_locations20230301
|
498
|
-
|
499
|
-
> <Array<LocationResponse>> official_work_locations20230301
|
500
|
-
|
501
|
-
Work locations
|
502
|
-
|
503
|
-
The Location object is used to represent an address that can be associated with an employee
|
504
|
-
|
505
|
-
### Examples
|
506
|
-
|
507
|
-
```ruby
|
508
|
-
require 'time'
|
509
|
-
require 'openapi_client'
|
510
|
-
# setup authorization
|
511
|
-
OpenapiClient.configure do |config|
|
512
|
-
# Configure API key authorization: access-token
|
513
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
514
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
515
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
516
|
-
end
|
517
|
-
|
518
|
-
api_instance = OpenapiClient::OfficialApi.new
|
519
|
-
|
520
|
-
begin
|
521
|
-
# Work locations
|
522
|
-
result = api_instance.official_work_locations20230301
|
523
|
-
p result
|
524
|
-
rescue OpenapiClient::ApiError => e
|
525
|
-
puts "Error when calling OfficialApi->official_work_locations20230301: #{e}"
|
526
|
-
end
|
527
|
-
```
|
528
|
-
|
529
|
-
#### Using the official_work_locations20230301_with_http_info variant
|
530
|
-
|
531
|
-
This returns an Array which contains the response data, status code and headers.
|
532
|
-
|
533
|
-
> <Array(<Array<LocationResponse>>, Integer, Hash)> official_work_locations20230301_with_http_info
|
534
|
-
|
535
|
-
```ruby
|
536
|
-
begin
|
537
|
-
# Work locations
|
538
|
-
data, status_code, headers = api_instance.official_work_locations20230301_with_http_info
|
539
|
-
p status_code # => 2xx
|
540
|
-
p headers # => { ... }
|
541
|
-
p data # => <Array<LocationResponse>>
|
542
|
-
rescue OpenapiClient::ApiError => e
|
543
|
-
puts "Error when calling OfficialApi->official_work_locations20230301_with_http_info: #{e}"
|
544
|
-
end
|
545
|
-
```
|
546
|
-
|
547
|
-
### Parameters
|
548
|
-
|
549
|
-
This endpoint does not need any parameter.
|
550
|
-
|
551
|
-
### Return type
|
552
|
-
|
553
|
-
[**Array<LocationResponse>**](LocationResponse.md)
|
554
|
-
|
555
|
-
### Authorization
|
556
|
-
|
557
|
-
[access-token](../README.md#access-token)
|
558
|
-
|
559
|
-
### HTTP request headers
|
560
|
-
|
561
|
-
- **Content-Type**: Not defined
|
562
|
-
- **Accept**: application/json
|
563
|
-
|
564
|
-
|
565
|
-
## officialdentity20230301
|
566
|
-
|
567
|
-
> <IdentityResponse> officialdentity20230301
|
568
|
-
|
569
|
-
Identity
|
570
|
-
|
571
|
-
List information of the user for the respective account
|
572
|
-
|
573
|
-
### Examples
|
574
|
-
|
575
|
-
```ruby
|
576
|
-
require 'time'
|
577
|
-
require 'openapi_client'
|
578
|
-
# setup authorization
|
579
|
-
OpenapiClient.configure do |config|
|
580
|
-
# Configure API key authorization: access-token
|
581
|
-
config.api_key['access-token'] = 'YOUR API KEY'
|
582
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
583
|
-
# config.api_key_prefix['access-token'] = 'Bearer'
|
584
|
-
end
|
585
|
-
|
586
|
-
api_instance = OpenapiClient::OfficialApi.new
|
587
|
-
|
588
|
-
begin
|
589
|
-
# Identity
|
590
|
-
result = api_instance.officialdentity20230301
|
591
|
-
p result
|
592
|
-
rescue OpenapiClient::ApiError => e
|
593
|
-
puts "Error when calling OfficialApi->officialdentity20230301: #{e}"
|
594
|
-
end
|
595
|
-
```
|
596
|
-
|
597
|
-
#### Using the officialdentity20230301_with_http_info variant
|
598
|
-
|
599
|
-
This returns an Array which contains the response data, status code and headers.
|
600
|
-
|
601
|
-
> <Array(<IdentityResponse>, Integer, Hash)> officialdentity20230301_with_http_info
|
602
|
-
|
603
|
-
```ruby
|
604
|
-
begin
|
605
|
-
# Identity
|
606
|
-
data, status_code, headers = api_instance.officialdentity20230301_with_http_info
|
607
|
-
p status_code # => 2xx
|
608
|
-
p headers # => { ... }
|
609
|
-
p data # => <IdentityResponse>
|
610
|
-
rescue OpenapiClient::ApiError => e
|
611
|
-
puts "Error when calling OfficialApi->officialdentity20230301_with_http_info: #{e}"
|
612
|
-
end
|
613
|
-
```
|
614
|
-
|
615
|
-
### Parameters
|
616
|
-
|
617
|
-
This endpoint does not need any parameter.
|
618
|
-
|
619
|
-
### Return type
|
620
|
-
|
621
|
-
[**IdentityResponse**](IdentityResponse.md)
|
622
|
-
|
623
|
-
### Authorization
|
624
|
-
|
625
|
-
[access-token](../README.md#access-token)
|
626
|
-
|
627
|
-
### HTTP request headers
|
628
|
-
|
629
|
-
- **Content-Type**: Not defined
|
630
|
-
- **Accept**: application/json
|
631
|
-
|