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/CoreApi.md
CHANGED
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.affixapi.com*
|
|
13
13
|
|
14
14
|
Providers
|
15
15
|
|
16
|
-
Retrieve the api modes (official,
|
16
|
+
Retrieve the api modes (official, xhr) and providers for the respective modes
|
17
17
|
|
18
18
|
### Examples
|
19
19
|
|
@@ -1,25 +1,25 @@
|
|
1
|
-
# OpenapiClient::
|
1
|
+
# OpenapiClient::XHRVerticallyIntegratedApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.affixapi.com*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**
|
8
|
-
| [**
|
9
|
-
| [**
|
10
|
-
| [**
|
11
|
-
| [**
|
12
|
-
| [**
|
13
|
-
| [**
|
14
|
-
| [**
|
15
|
-
| [**
|
16
|
-
| [**
|
17
|
-
| [**
|
7
|
+
| [**xhr_companies20230301**](XHRVerticallyIntegratedApi.md#xhr_companies20230301) | **GET** /2023-03-01/xhr/company | Company |
|
8
|
+
| [**xhr_create_employee20230301**](XHRVerticallyIntegratedApi.md#xhr_create_employee20230301) | **POST** /2023-03-01/xhr/employee | Create employee |
|
9
|
+
| [**xhr_employees20230301**](XHRVerticallyIntegratedApi.md#xhr_employees20230301) | **GET** /2023-03-01/xhr/employees | Employees |
|
10
|
+
| [**xhr_groups20230301**](XHRVerticallyIntegratedApi.md#xhr_groups20230301) | **GET** /2023-03-01/xhr/groups | Groups |
|
11
|
+
| [**xhr_identity20230301**](XHRVerticallyIntegratedApi.md#xhr_identity20230301) | **GET** /2023-03-01/xhr/identity | Identity |
|
12
|
+
| [**xhr_payruns20230301**](XHRVerticallyIntegratedApi.md#xhr_payruns20230301) | **GET** /2023-03-01/xhr/payruns | Payruns |
|
13
|
+
| [**xhr_payslips20230301**](XHRVerticallyIntegratedApi.md#xhr_payslips20230301) | **GET** /2023-03-01/xhr/payruns/{payrun_id} | Payslips |
|
14
|
+
| [**xhr_time_off_balances20230301**](XHRVerticallyIntegratedApi.md#xhr_time_off_balances20230301) | **GET** /2023-03-01/xhr/time-off-balances | Time off balances |
|
15
|
+
| [**xhr_time_off_entries20230301**](XHRVerticallyIntegratedApi.md#xhr_time_off_entries20230301) | **GET** /2023-03-01/xhr/time-off-entries | Time off entries |
|
16
|
+
| [**xhr_timesheets20230301**](XHRVerticallyIntegratedApi.md#xhr_timesheets20230301) | **GET** /2023-03-01/xhr/timesheets | Timesheets |
|
17
|
+
| [**xhr_work_locations20230301**](XHRVerticallyIntegratedApi.md#xhr_work_locations20230301) | **GET** /2023-03-01/xhr/work-locations | Work locations |
|
18
18
|
|
19
19
|
|
20
|
-
##
|
20
|
+
## xhr_companies20230301
|
21
21
|
|
22
|
-
> <Array<CompanyResponse>>
|
22
|
+
> <Array<CompanyResponse>> xhr_companies20230301
|
23
23
|
|
24
24
|
Company
|
25
25
|
|
@@ -38,32 +38,32 @@ OpenapiClient.configure do |config|
|
|
38
38
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
39
39
|
end
|
40
40
|
|
41
|
-
api_instance = OpenapiClient::
|
41
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
42
42
|
|
43
43
|
begin
|
44
44
|
# Company
|
45
|
-
result = api_instance.
|
45
|
+
result = api_instance.xhr_companies20230301
|
46
46
|
p result
|
47
47
|
rescue OpenapiClient::ApiError => e
|
48
|
-
puts "Error when calling
|
48
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_companies20230301: #{e}"
|
49
49
|
end
|
50
50
|
```
|
51
51
|
|
52
|
-
#### Using the
|
52
|
+
#### Using the xhr_companies20230301_with_http_info variant
|
53
53
|
|
54
54
|
This returns an Array which contains the response data, status code and headers.
|
55
55
|
|
56
|
-
> <Array(<Array<CompanyResponse>>, Integer, Hash)>
|
56
|
+
> <Array(<Array<CompanyResponse>>, Integer, Hash)> xhr_companies20230301_with_http_info
|
57
57
|
|
58
58
|
```ruby
|
59
59
|
begin
|
60
60
|
# Company
|
61
|
-
data, status_code, headers = api_instance.
|
61
|
+
data, status_code, headers = api_instance.xhr_companies20230301_with_http_info
|
62
62
|
p status_code # => 2xx
|
63
63
|
p headers # => { ... }
|
64
64
|
p data # => <Array<CompanyResponse>>
|
65
65
|
rescue OpenapiClient::ApiError => e
|
66
|
-
puts "Error when calling
|
66
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_companies20230301_with_http_info: #{e}"
|
67
67
|
end
|
68
68
|
```
|
69
69
|
|
@@ -85,9 +85,9 @@ This endpoint does not need any parameter.
|
|
85
85
|
- **Accept**: application/json
|
86
86
|
|
87
87
|
|
88
|
-
##
|
88
|
+
## xhr_create_employee20230301
|
89
89
|
|
90
|
-
> <EmployeeResponse>
|
90
|
+
> <EmployeeResponse> xhr_create_employee20230301(create_employee_request)
|
91
91
|
|
92
92
|
Create employee
|
93
93
|
|
@@ -106,33 +106,33 @@ OpenapiClient.configure do |config|
|
|
106
106
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
107
107
|
end
|
108
108
|
|
109
|
-
api_instance = OpenapiClient::
|
109
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
110
110
|
create_employee_request = OpenapiClient::CreateEmployeeRequest.new({first_name: 'Greg', last_name: 'Hirsch'}) # CreateEmployeeRequest |
|
111
111
|
|
112
112
|
begin
|
113
113
|
# Create employee
|
114
|
-
result = api_instance.
|
114
|
+
result = api_instance.xhr_create_employee20230301(create_employee_request)
|
115
115
|
p result
|
116
116
|
rescue OpenapiClient::ApiError => e
|
117
|
-
puts "Error when calling
|
117
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_create_employee20230301: #{e}"
|
118
118
|
end
|
119
119
|
```
|
120
120
|
|
121
|
-
#### Using the
|
121
|
+
#### Using the xhr_create_employee20230301_with_http_info variant
|
122
122
|
|
123
123
|
This returns an Array which contains the response data, status code and headers.
|
124
124
|
|
125
|
-
> <Array(<EmployeeResponse>, Integer, Hash)>
|
125
|
+
> <Array(<EmployeeResponse>, Integer, Hash)> xhr_create_employee20230301_with_http_info(create_employee_request)
|
126
126
|
|
127
127
|
```ruby
|
128
128
|
begin
|
129
129
|
# Create employee
|
130
|
-
data, status_code, headers = api_instance.
|
130
|
+
data, status_code, headers = api_instance.xhr_create_employee20230301_with_http_info(create_employee_request)
|
131
131
|
p status_code # => 2xx
|
132
132
|
p headers # => { ... }
|
133
133
|
p data # => <EmployeeResponse>
|
134
134
|
rescue OpenapiClient::ApiError => e
|
135
|
-
puts "Error when calling
|
135
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_create_employee20230301_with_http_info: #{e}"
|
136
136
|
end
|
137
137
|
```
|
138
138
|
|
@@ -156,9 +156,9 @@ end
|
|
156
156
|
- **Accept**: application/json
|
157
157
|
|
158
158
|
|
159
|
-
##
|
159
|
+
## xhr_employees20230301
|
160
160
|
|
161
|
-
> <Array<EmployeeResponse>>
|
161
|
+
> <Array<EmployeeResponse>> xhr_employees20230301
|
162
162
|
|
163
163
|
Employees
|
164
164
|
|
@@ -177,32 +177,32 @@ OpenapiClient.configure do |config|
|
|
177
177
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
178
178
|
end
|
179
179
|
|
180
|
-
api_instance = OpenapiClient::
|
180
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
181
181
|
|
182
182
|
begin
|
183
183
|
# Employees
|
184
|
-
result = api_instance.
|
184
|
+
result = api_instance.xhr_employees20230301
|
185
185
|
p result
|
186
186
|
rescue OpenapiClient::ApiError => e
|
187
|
-
puts "Error when calling
|
187
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_employees20230301: #{e}"
|
188
188
|
end
|
189
189
|
```
|
190
190
|
|
191
|
-
#### Using the
|
191
|
+
#### Using the xhr_employees20230301_with_http_info variant
|
192
192
|
|
193
193
|
This returns an Array which contains the response data, status code and headers.
|
194
194
|
|
195
|
-
> <Array(<Array<EmployeeResponse>>, Integer, Hash)>
|
195
|
+
> <Array(<Array<EmployeeResponse>>, Integer, Hash)> xhr_employees20230301_with_http_info
|
196
196
|
|
197
197
|
```ruby
|
198
198
|
begin
|
199
199
|
# Employees
|
200
|
-
data, status_code, headers = api_instance.
|
200
|
+
data, status_code, headers = api_instance.xhr_employees20230301_with_http_info
|
201
201
|
p status_code # => 2xx
|
202
202
|
p headers # => { ... }
|
203
203
|
p data # => <Array<EmployeeResponse>>
|
204
204
|
rescue OpenapiClient::ApiError => e
|
205
|
-
puts "Error when calling
|
205
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_employees20230301_with_http_info: #{e}"
|
206
206
|
end
|
207
207
|
```
|
208
208
|
|
@@ -224,9 +224,9 @@ This endpoint does not need any parameter.
|
|
224
224
|
- **Accept**: application/json
|
225
225
|
|
226
226
|
|
227
|
-
##
|
227
|
+
## xhr_groups20230301
|
228
228
|
|
229
|
-
> <Array<GroupResponse>>
|
229
|
+
> <Array<GroupResponse>> xhr_groups20230301
|
230
230
|
|
231
231
|
Groups
|
232
232
|
|
@@ -245,32 +245,32 @@ OpenapiClient.configure do |config|
|
|
245
245
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
246
246
|
end
|
247
247
|
|
248
|
-
api_instance = OpenapiClient::
|
248
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
249
249
|
|
250
250
|
begin
|
251
251
|
# Groups
|
252
|
-
result = api_instance.
|
252
|
+
result = api_instance.xhr_groups20230301
|
253
253
|
p result
|
254
254
|
rescue OpenapiClient::ApiError => e
|
255
|
-
puts "Error when calling
|
255
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_groups20230301: #{e}"
|
256
256
|
end
|
257
257
|
```
|
258
258
|
|
259
|
-
#### Using the
|
259
|
+
#### Using the xhr_groups20230301_with_http_info variant
|
260
260
|
|
261
261
|
This returns an Array which contains the response data, status code and headers.
|
262
262
|
|
263
|
-
> <Array(<Array<GroupResponse>>, Integer, Hash)>
|
263
|
+
> <Array(<Array<GroupResponse>>, Integer, Hash)> xhr_groups20230301_with_http_info
|
264
264
|
|
265
265
|
```ruby
|
266
266
|
begin
|
267
267
|
# Groups
|
268
|
-
data, status_code, headers = api_instance.
|
268
|
+
data, status_code, headers = api_instance.xhr_groups20230301_with_http_info
|
269
269
|
p status_code # => 2xx
|
270
270
|
p headers # => { ... }
|
271
271
|
p data # => <Array<GroupResponse>>
|
272
272
|
rescue OpenapiClient::ApiError => e
|
273
|
-
puts "Error when calling
|
273
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_groups20230301_with_http_info: #{e}"
|
274
274
|
end
|
275
275
|
```
|
276
276
|
|
@@ -292,9 +292,9 @@ This endpoint does not need any parameter.
|
|
292
292
|
- **Accept**: application/json
|
293
293
|
|
294
294
|
|
295
|
-
##
|
295
|
+
## xhr_identity20230301
|
296
296
|
|
297
|
-
> <IdentityResponse>
|
297
|
+
> <IdentityResponse> xhr_identity20230301
|
298
298
|
|
299
299
|
Identity
|
300
300
|
|
@@ -313,32 +313,32 @@ OpenapiClient.configure do |config|
|
|
313
313
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
314
314
|
end
|
315
315
|
|
316
|
-
api_instance = OpenapiClient::
|
316
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
317
317
|
|
318
318
|
begin
|
319
319
|
# Identity
|
320
|
-
result = api_instance.
|
320
|
+
result = api_instance.xhr_identity20230301
|
321
321
|
p result
|
322
322
|
rescue OpenapiClient::ApiError => e
|
323
|
-
puts "Error when calling
|
323
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_identity20230301: #{e}"
|
324
324
|
end
|
325
325
|
```
|
326
326
|
|
327
|
-
#### Using the
|
327
|
+
#### Using the xhr_identity20230301_with_http_info variant
|
328
328
|
|
329
329
|
This returns an Array which contains the response data, status code and headers.
|
330
330
|
|
331
|
-
> <Array(<IdentityResponse>, Integer, Hash)>
|
331
|
+
> <Array(<IdentityResponse>, Integer, Hash)> xhr_identity20230301_with_http_info
|
332
332
|
|
333
333
|
```ruby
|
334
334
|
begin
|
335
335
|
# Identity
|
336
|
-
data, status_code, headers = api_instance.
|
336
|
+
data, status_code, headers = api_instance.xhr_identity20230301_with_http_info
|
337
337
|
p status_code # => 2xx
|
338
338
|
p headers # => { ... }
|
339
339
|
p data # => <IdentityResponse>
|
340
340
|
rescue OpenapiClient::ApiError => e
|
341
|
-
puts "Error when calling
|
341
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_identity20230301_with_http_info: #{e}"
|
342
342
|
end
|
343
343
|
```
|
344
344
|
|
@@ -360,9 +360,9 @@ This endpoint does not need any parameter.
|
|
360
360
|
- **Accept**: application/json
|
361
361
|
|
362
362
|
|
363
|
-
##
|
363
|
+
## xhr_payruns20230301
|
364
364
|
|
365
|
-
> <Array<PayrunResponse>>
|
365
|
+
> <Array<PayrunResponse>> xhr_payruns20230301(start_date, end_date)
|
366
366
|
|
367
367
|
Payruns
|
368
368
|
|
@@ -381,34 +381,34 @@ OpenapiClient.configure do |config|
|
|
381
381
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
382
382
|
end
|
383
383
|
|
384
|
-
api_instance = OpenapiClient::
|
384
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
385
385
|
start_date = Date.parse('2013-10-20') # Date | The start date of the search period
|
386
386
|
end_date = Date.parse('2013-10-20') # Date | The end date of the search period
|
387
387
|
|
388
388
|
begin
|
389
389
|
# Payruns
|
390
|
-
result = api_instance.
|
390
|
+
result = api_instance.xhr_payruns20230301(start_date, end_date)
|
391
391
|
p result
|
392
392
|
rescue OpenapiClient::ApiError => e
|
393
|
-
puts "Error when calling
|
393
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_payruns20230301: #{e}"
|
394
394
|
end
|
395
395
|
```
|
396
396
|
|
397
|
-
#### Using the
|
397
|
+
#### Using the xhr_payruns20230301_with_http_info variant
|
398
398
|
|
399
399
|
This returns an Array which contains the response data, status code and headers.
|
400
400
|
|
401
|
-
> <Array(<Array<PayrunResponse>>, Integer, Hash)>
|
401
|
+
> <Array(<Array<PayrunResponse>>, Integer, Hash)> xhr_payruns20230301_with_http_info(start_date, end_date)
|
402
402
|
|
403
403
|
```ruby
|
404
404
|
begin
|
405
405
|
# Payruns
|
406
|
-
data, status_code, headers = api_instance.
|
406
|
+
data, status_code, headers = api_instance.xhr_payruns20230301_with_http_info(start_date, end_date)
|
407
407
|
p status_code # => 2xx
|
408
408
|
p headers # => { ... }
|
409
409
|
p data # => <Array<PayrunResponse>>
|
410
410
|
rescue OpenapiClient::ApiError => e
|
411
|
-
puts "Error when calling
|
411
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_payruns20230301_with_http_info: #{e}"
|
412
412
|
end
|
413
413
|
```
|
414
414
|
|
@@ -433,9 +433,9 @@ end
|
|
433
433
|
- **Accept**: application/json
|
434
434
|
|
435
435
|
|
436
|
-
##
|
436
|
+
## xhr_payslips20230301
|
437
437
|
|
438
|
-
> <Array<PayslipResponse>>
|
438
|
+
> <Array<PayslipResponse>> xhr_payslips20230301(payrun_id)
|
439
439
|
|
440
440
|
Payslips
|
441
441
|
|
@@ -454,33 +454,33 @@ OpenapiClient.configure do |config|
|
|
454
454
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
455
455
|
end
|
456
456
|
|
457
|
-
api_instance = OpenapiClient::
|
457
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
458
458
|
payrun_id = 'payrun_id_example' # String | The id of the payrun.
|
459
459
|
|
460
460
|
begin
|
461
461
|
# Payslips
|
462
|
-
result = api_instance.
|
462
|
+
result = api_instance.xhr_payslips20230301(payrun_id)
|
463
463
|
p result
|
464
464
|
rescue OpenapiClient::ApiError => e
|
465
|
-
puts "Error when calling
|
465
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_payslips20230301: #{e}"
|
466
466
|
end
|
467
467
|
```
|
468
468
|
|
469
|
-
#### Using the
|
469
|
+
#### Using the xhr_payslips20230301_with_http_info variant
|
470
470
|
|
471
471
|
This returns an Array which contains the response data, status code and headers.
|
472
472
|
|
473
|
-
> <Array(<Array<PayslipResponse>>, Integer, Hash)>
|
473
|
+
> <Array(<Array<PayslipResponse>>, Integer, Hash)> xhr_payslips20230301_with_http_info(payrun_id)
|
474
474
|
|
475
475
|
```ruby
|
476
476
|
begin
|
477
477
|
# Payslips
|
478
|
-
data, status_code, headers = api_instance.
|
478
|
+
data, status_code, headers = api_instance.xhr_payslips20230301_with_http_info(payrun_id)
|
479
479
|
p status_code # => 2xx
|
480
480
|
p headers # => { ... }
|
481
481
|
p data # => <Array<PayslipResponse>>
|
482
482
|
rescue OpenapiClient::ApiError => e
|
483
|
-
puts "Error when calling
|
483
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_payslips20230301_with_http_info: #{e}"
|
484
484
|
end
|
485
485
|
```
|
486
486
|
|
@@ -504,9 +504,9 @@ end
|
|
504
504
|
- **Accept**: application/json
|
505
505
|
|
506
506
|
|
507
|
-
##
|
507
|
+
## xhr_time_off_balances20230301
|
508
508
|
|
509
|
-
> <Array<TimeOffBalanceResponse>>
|
509
|
+
> <Array<TimeOffBalanceResponse>> xhr_time_off_balances20230301
|
510
510
|
|
511
511
|
Time off balances
|
512
512
|
|
@@ -525,32 +525,32 @@ OpenapiClient.configure do |config|
|
|
525
525
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
526
526
|
end
|
527
527
|
|
528
|
-
api_instance = OpenapiClient::
|
528
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
529
529
|
|
530
530
|
begin
|
531
531
|
# Time off balances
|
532
|
-
result = api_instance.
|
532
|
+
result = api_instance.xhr_time_off_balances20230301
|
533
533
|
p result
|
534
534
|
rescue OpenapiClient::ApiError => e
|
535
|
-
puts "Error when calling
|
535
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_time_off_balances20230301: #{e}"
|
536
536
|
end
|
537
537
|
```
|
538
538
|
|
539
|
-
#### Using the
|
539
|
+
#### Using the xhr_time_off_balances20230301_with_http_info variant
|
540
540
|
|
541
541
|
This returns an Array which contains the response data, status code and headers.
|
542
542
|
|
543
|
-
> <Array(<Array<TimeOffBalanceResponse>>, Integer, Hash)>
|
543
|
+
> <Array(<Array<TimeOffBalanceResponse>>, Integer, Hash)> xhr_time_off_balances20230301_with_http_info
|
544
544
|
|
545
545
|
```ruby
|
546
546
|
begin
|
547
547
|
# Time off balances
|
548
|
-
data, status_code, headers = api_instance.
|
548
|
+
data, status_code, headers = api_instance.xhr_time_off_balances20230301_with_http_info
|
549
549
|
p status_code # => 2xx
|
550
550
|
p headers # => { ... }
|
551
551
|
p data # => <Array<TimeOffBalanceResponse>>
|
552
552
|
rescue OpenapiClient::ApiError => e
|
553
|
-
puts "Error when calling
|
553
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_time_off_balances20230301_with_http_info: #{e}"
|
554
554
|
end
|
555
555
|
```
|
556
556
|
|
@@ -572,9 +572,9 @@ This endpoint does not need any parameter.
|
|
572
572
|
- **Accept**: application/json
|
573
573
|
|
574
574
|
|
575
|
-
##
|
575
|
+
## xhr_time_off_entries20230301
|
576
576
|
|
577
|
-
> <Array<TimeOffEntryResponse>>
|
577
|
+
> <Array<TimeOffEntryResponse>> xhr_time_off_entries20230301
|
578
578
|
|
579
579
|
Time off entries
|
580
580
|
|
@@ -593,32 +593,32 @@ OpenapiClient.configure do |config|
|
|
593
593
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
594
594
|
end
|
595
595
|
|
596
|
-
api_instance = OpenapiClient::
|
596
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
597
597
|
|
598
598
|
begin
|
599
599
|
# Time off entries
|
600
|
-
result = api_instance.
|
600
|
+
result = api_instance.xhr_time_off_entries20230301
|
601
601
|
p result
|
602
602
|
rescue OpenapiClient::ApiError => e
|
603
|
-
puts "Error when calling
|
603
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_time_off_entries20230301: #{e}"
|
604
604
|
end
|
605
605
|
```
|
606
606
|
|
607
|
-
#### Using the
|
607
|
+
#### Using the xhr_time_off_entries20230301_with_http_info variant
|
608
608
|
|
609
609
|
This returns an Array which contains the response data, status code and headers.
|
610
610
|
|
611
|
-
> <Array(<Array<TimeOffEntryResponse>>, Integer, Hash)>
|
611
|
+
> <Array(<Array<TimeOffEntryResponse>>, Integer, Hash)> xhr_time_off_entries20230301_with_http_info
|
612
612
|
|
613
613
|
```ruby
|
614
614
|
begin
|
615
615
|
# Time off entries
|
616
|
-
data, status_code, headers = api_instance.
|
616
|
+
data, status_code, headers = api_instance.xhr_time_off_entries20230301_with_http_info
|
617
617
|
p status_code # => 2xx
|
618
618
|
p headers # => { ... }
|
619
619
|
p data # => <Array<TimeOffEntryResponse>>
|
620
620
|
rescue OpenapiClient::ApiError => e
|
621
|
-
puts "Error when calling
|
621
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_time_off_entries20230301_with_http_info: #{e}"
|
622
622
|
end
|
623
623
|
```
|
624
624
|
|
@@ -640,9 +640,9 @@ This endpoint does not need any parameter.
|
|
640
640
|
- **Accept**: application/json
|
641
641
|
|
642
642
|
|
643
|
-
##
|
643
|
+
## xhr_timesheets20230301
|
644
644
|
|
645
|
-
> <Array<TimesheetResponse>>
|
645
|
+
> <Array<TimesheetResponse>> xhr_timesheets20230301
|
646
646
|
|
647
647
|
Timesheets
|
648
648
|
|
@@ -661,32 +661,32 @@ OpenapiClient.configure do |config|
|
|
661
661
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
662
662
|
end
|
663
663
|
|
664
|
-
api_instance = OpenapiClient::
|
664
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
665
665
|
|
666
666
|
begin
|
667
667
|
# Timesheets
|
668
|
-
result = api_instance.
|
668
|
+
result = api_instance.xhr_timesheets20230301
|
669
669
|
p result
|
670
670
|
rescue OpenapiClient::ApiError => e
|
671
|
-
puts "Error when calling
|
671
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_timesheets20230301: #{e}"
|
672
672
|
end
|
673
673
|
```
|
674
674
|
|
675
|
-
#### Using the
|
675
|
+
#### Using the xhr_timesheets20230301_with_http_info variant
|
676
676
|
|
677
677
|
This returns an Array which contains the response data, status code and headers.
|
678
678
|
|
679
|
-
> <Array(<Array<TimesheetResponse>>, Integer, Hash)>
|
679
|
+
> <Array(<Array<TimesheetResponse>>, Integer, Hash)> xhr_timesheets20230301_with_http_info
|
680
680
|
|
681
681
|
```ruby
|
682
682
|
begin
|
683
683
|
# Timesheets
|
684
|
-
data, status_code, headers = api_instance.
|
684
|
+
data, status_code, headers = api_instance.xhr_timesheets20230301_with_http_info
|
685
685
|
p status_code # => 2xx
|
686
686
|
p headers # => { ... }
|
687
687
|
p data # => <Array<TimesheetResponse>>
|
688
688
|
rescue OpenapiClient::ApiError => e
|
689
|
-
puts "Error when calling
|
689
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_timesheets20230301_with_http_info: #{e}"
|
690
690
|
end
|
691
691
|
```
|
692
692
|
|
@@ -708,9 +708,9 @@ This endpoint does not need any parameter.
|
|
708
708
|
- **Accept**: application/json
|
709
709
|
|
710
710
|
|
711
|
-
##
|
711
|
+
## xhr_work_locations20230301
|
712
712
|
|
713
|
-
> <Array<LocationResponse>>
|
713
|
+
> <Array<LocationResponse>> xhr_work_locations20230301
|
714
714
|
|
715
715
|
Work locations
|
716
716
|
|
@@ -729,32 +729,32 @@ OpenapiClient.configure do |config|
|
|
729
729
|
# config.api_key_prefix['access-token'] = 'Bearer'
|
730
730
|
end
|
731
731
|
|
732
|
-
api_instance = OpenapiClient::
|
732
|
+
api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
|
733
733
|
|
734
734
|
begin
|
735
735
|
# Work locations
|
736
|
-
result = api_instance.
|
736
|
+
result = api_instance.xhr_work_locations20230301
|
737
737
|
p result
|
738
738
|
rescue OpenapiClient::ApiError => e
|
739
|
-
puts "Error when calling
|
739
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_work_locations20230301: #{e}"
|
740
740
|
end
|
741
741
|
```
|
742
742
|
|
743
|
-
#### Using the
|
743
|
+
#### Using the xhr_work_locations20230301_with_http_info variant
|
744
744
|
|
745
745
|
This returns an Array which contains the response data, status code and headers.
|
746
746
|
|
747
|
-
> <Array(<Array<LocationResponse>>, Integer, Hash)>
|
747
|
+
> <Array(<Array<LocationResponse>>, Integer, Hash)> xhr_work_locations20230301_with_http_info
|
748
748
|
|
749
749
|
```ruby
|
750
750
|
begin
|
751
751
|
# Work locations
|
752
|
-
data, status_code, headers = api_instance.
|
752
|
+
data, status_code, headers = api_instance.xhr_work_locations20230301_with_http_info
|
753
753
|
p status_code # => 2xx
|
754
754
|
p headers # => { ... }
|
755
755
|
p data # => <Array<LocationResponse>>
|
756
756
|
rescue OpenapiClient::ApiError => e
|
757
|
-
puts "Error when calling
|
757
|
+
puts "Error when calling XHRVerticallyIntegratedApi->xhr_work_locations20230301_with_http_info: #{e}"
|
758
758
|
end
|
759
759
|
```
|
760
760
|
|