affixapi 0.0.1
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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +19 -0
- data/README.md +374 -0
- data/Rakefile +10 -0
- data/affixapi.gemspec +38 -0
- data/docs/AddressNoNonNullRequest.md +26 -0
- data/docs/AddressResponse.md +26 -0
- data/docs/Class20230301Api.md +1401 -0
- data/docs/ClientRequest.md +24 -0
- data/docs/ClientResponse.md +26 -0
- data/docs/CompanyResponse.md +28 -0
- data/docs/CoreApi.md +69 -0
- data/docs/CreateEmployeeRequest.md +68 -0
- data/docs/CreateEmployeeRequestBankAccount.md +26 -0
- data/docs/CreateEmployeeRequestManager.md +26 -0
- data/docs/CurrencyRequest.md +15 -0
- data/docs/CurrencyResponse.md +15 -0
- data/docs/DeveloperApi.md +777 -0
- data/docs/DisconnectResponse.md +18 -0
- data/docs/EmployeeResponse.md +74 -0
- data/docs/EmploymentNoNullEnumRequest.md +30 -0
- data/docs/EmploymentResponse.md +30 -0
- data/docs/GroupNoNullEnumRequest.md +24 -0
- data/docs/GroupResponse.md +24 -0
- data/docs/IdAndMessageResponse.md +20 -0
- data/docs/IdentityResponse.md +22 -0
- data/docs/InlineResponse400.md +20 -0
- data/docs/InlineResponse401.md +22 -0
- data/docs/InlineResponse409.md +22 -0
- data/docs/IntrospectResponse.md +24 -0
- data/docs/LocationNoNonNullRequest.md +26 -0
- data/docs/LocationResponse.md +26 -0
- data/docs/ManagementApi.md +420 -0
- data/docs/MessageResponse.md +18 -0
- data/docs/ModeRequest.md +15 -0
- data/docs/ModeResponse.md +15 -0
- data/docs/OfficialApi.md +631 -0
- data/docs/PayrunResponse.md +30 -0
- data/docs/PayslipResponse.md +44 -0
- data/docs/PayslipResponseContributions.md +20 -0
- data/docs/PayslipResponseDeductions.md +20 -0
- data/docs/PayslipResponseEarnings.md +22 -0
- data/docs/PayslipResponseTaxes.md +22 -0
- data/docs/ProviderRequest.md +15 -0
- data/docs/ProviderResponse.md +15 -0
- data/docs/ScopesRequest.md +15 -0
- data/docs/ScopesResponse.md +15 -0
- data/docs/TimeOffBalanceResponse.md +32 -0
- data/docs/TimeOffEntryResponse.md +40 -0
- data/docs/TimesheetResponse.md +32 -0
- data/docs/TokenRequest.md +26 -0
- data/docs/TokenResponse.md +26 -0
- data/git_push.sh +58 -0
- data/lib/openapi_client/api/class20230301_api.rb +1198 -0
- data/lib/openapi_client/api/core_api.rb +79 -0
- data/lib/openapi_client/api/developer_api.rb +677 -0
- data/lib/openapi_client/api/management_api.rb +380 -0
- data/lib/openapi_client/api/official_api.rb +543 -0
- data/lib/openapi_client/api_client.rb +390 -0
- data/lib/openapi_client/api_error.rb +57 -0
- data/lib/openapi_client/configuration.rb +288 -0
- data/lib/openapi_client/models/address_no_non_null_request.rb +295 -0
- data/lib/openapi_client/models/address_response.rb +295 -0
- data/lib/openapi_client/models/client_request.rb +269 -0
- data/lib/openapi_client/models/client_response.rb +284 -0
- data/lib/openapi_client/models/company_response.rb +279 -0
- data/lib/openapi_client/models/create_employee_request.rb +568 -0
- data/lib/openapi_client/models/create_employee_request_bank_account.rb +259 -0
- data/lib/openapi_client/models/create_employee_request_manager.rb +263 -0
- data/lib/openapi_client/models/currency_request.rb +38 -0
- data/lib/openapi_client/models/currency_response.rb +38 -0
- data/lib/openapi_client/models/disconnect_response.rb +258 -0
- data/lib/openapi_client/models/employee_response.rb +608 -0
- data/lib/openapi_client/models/employment_no_null_enum_request.rb +329 -0
- data/lib/openapi_client/models/employment_response.rb +329 -0
- data/lib/openapi_client/models/group_no_null_enum_request.rb +283 -0
- data/lib/openapi_client/models/group_response.rb +283 -0
- data/lib/openapi_client/models/id_and_message_response.rb +239 -0
- data/lib/openapi_client/models/identity_response.rb +250 -0
- data/lib/openapi_client/models/inline_response400.rb +227 -0
- data/lib/openapi_client/models/inline_response401.rb +299 -0
- data/lib/openapi_client/models/inline_response409.rb +278 -0
- data/lib/openapi_client/models/introspect_response.rb +269 -0
- data/lib/openapi_client/models/location_no_non_null_request.rb +263 -0
- data/lib/openapi_client/models/location_response.rb +263 -0
- data/lib/openapi_client/models/message_response.rb +223 -0
- data/lib/openapi_client/models/mode_request.rb +37 -0
- data/lib/openapi_client/models/mode_response.rb +37 -0
- data/lib/openapi_client/models/payrun_response.rb +342 -0
- data/lib/openapi_client/models/payslip_response.rb +448 -0
- data/lib/openapi_client/models/payslip_response_contributions.rb +238 -0
- data/lib/openapi_client/models/payslip_response_deductions.rb +238 -0
- data/lib/openapi_client/models/payslip_response_earnings.rb +250 -0
- data/lib/openapi_client/models/payslip_response_taxes.rb +248 -0
- data/lib/openapi_client/models/provider_request.rb +70 -0
- data/lib/openapi_client/models/provider_response.rb +70 -0
- data/lib/openapi_client/models/scopes_request.rb +55 -0
- data/lib/openapi_client/models/scopes_response.rb +55 -0
- data/lib/openapi_client/models/time_off_balance_response.rb +342 -0
- data/lib/openapi_client/models/time_off_entry_response.rb +408 -0
- data/lib/openapi_client/models/timesheet_response.rb +318 -0
- data/lib/openapi_client/models/token_request.rb +318 -0
- data/lib/openapi_client/models/token_response.rb +318 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +86 -0
- data/openapi_client-0.0.1.gem +0 -0
- data/pkg/affixapi-0.0.1.gem +0 -0
- data/spec/api/class20230301_api_spec.rb +260 -0
- data/spec/api/core_api_spec.rb +46 -0
- data/spec/api/developer_api_spec.rb +160 -0
- data/spec/api/management_api_spec.rb +103 -0
- data/spec/api/official_api_spec.rb +135 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/address_no_non_null_request_spec.rb +62 -0
- data/spec/models/address_response_spec.rb +62 -0
- data/spec/models/client_request_spec.rb +52 -0
- data/spec/models/client_response_spec.rb +58 -0
- data/spec/models/company_response_spec.rb +64 -0
- data/spec/models/create_employee_request_bank_account_spec.rb +58 -0
- data/spec/models/create_employee_request_manager_spec.rb +58 -0
- data/spec/models/create_employee_request_spec.rb +204 -0
- data/spec/models/currency_request_spec.rb +28 -0
- data/spec/models/currency_response_spec.rb +28 -0
- data/spec/models/disconnect_response_spec.rb +38 -0
- data/spec/models/employee_response_spec.rb +222 -0
- data/spec/models/employment_no_null_enum_request_spec.rb +78 -0
- data/spec/models/employment_response_spec.rb +78 -0
- data/spec/models/group_no_null_enum_request_spec.rb +56 -0
- data/spec/models/group_response_spec.rb +56 -0
- data/spec/models/id_and_message_response_spec.rb +40 -0
- data/spec/models/identity_response_spec.rb +46 -0
- data/spec/models/inline_response400_spec.rb +40 -0
- data/spec/models/inline_response401_spec.rb +54 -0
- data/spec/models/inline_response409_spec.rb +50 -0
- data/spec/models/introspect_response_spec.rb +52 -0
- data/spec/models/location_no_non_null_request_spec.rb +58 -0
- data/spec/models/location_response_spec.rb +58 -0
- data/spec/models/message_response_spec.rb +34 -0
- data/spec/models/mode_request_spec.rb +28 -0
- data/spec/models/mode_response_spec.rb +28 -0
- data/spec/models/payrun_response_spec.rb +78 -0
- data/spec/models/payslip_response_contributions_spec.rb +40 -0
- data/spec/models/payslip_response_deductions_spec.rb +40 -0
- data/spec/models/payslip_response_earnings_spec.rb +46 -0
- data/spec/models/payslip_response_spec.rb +116 -0
- data/spec/models/payslip_response_taxes_spec.rb +46 -0
- data/spec/models/provider_request_spec.rb +28 -0
- data/spec/models/provider_response_spec.rb +28 -0
- data/spec/models/scopes_request_spec.rb +28 -0
- data/spec/models/scopes_response_spec.rb +28 -0
- data/spec/models/time_off_balance_response_spec.rb +80 -0
- data/spec/models/time_off_entry_response_spec.rb +108 -0
- data/spec/models/timesheet_response_spec.rb +76 -0
- data/spec/models/token_request_spec.rb +62 -0
- data/spec/models/token_response_spec.rb +62 -0
- data/spec/spec_helper.rb +111 -0
- metadata +349 -0
data/docs/OfficialApi.md
ADDED
|
@@ -0,0 +1,631 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# OpenapiClient::PayrunResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The Affix-assigned id of the individual | |
|
|
8
|
+
| **remote_id** | **String** | the remote system-assigned id of the payrun | |
|
|
9
|
+
| **run_state** | **String** | | |
|
|
10
|
+
| **run_type** | **String** | | |
|
|
11
|
+
| **start_date** | **Date** | Payrun period start date | |
|
|
12
|
+
| **end_date** | **Date** | Payrun period end date | |
|
|
13
|
+
| **payment_date** | **Date** | Payment date / check date | |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'openapi_client'
|
|
19
|
+
|
|
20
|
+
instance = OpenapiClient::PayrunResponse.new(
|
|
21
|
+
id: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw,
|
|
22
|
+
remote_id: 19202938,
|
|
23
|
+
run_state: paid,
|
|
24
|
+
run_type: regular,
|
|
25
|
+
start_date: Wed Jan 01 00:00:00 UTC 2020,
|
|
26
|
+
end_date: Fri Jan 31 00:00:00 UTC 2020,
|
|
27
|
+
payment_date: Mon Jan 27 00:00:00 UTC 2020
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# OpenapiClient::PayslipResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The Affix-assigned id of the payslip | |
|
|
8
|
+
| **remote_id** | **String** | the remote system-assigned id of the payrun | |
|
|
9
|
+
| **employee_id** | **String** | | |
|
|
10
|
+
| **payrun_id** | **String** | | |
|
|
11
|
+
| **currency** | **String** | | |
|
|
12
|
+
| **gross_pay** | **Float** | if USD/EUR/GBP, in cent | |
|
|
13
|
+
| **net_pay** | **Float** | if USD/EUR/GBP, in cent | |
|
|
14
|
+
| **start_date** | **Date** | | |
|
|
15
|
+
| **end_date** | **Date** | | |
|
|
16
|
+
| **payment_date** | **Date** | | |
|
|
17
|
+
| **earnings** | [**Array<PayslipResponseEarnings>**](PayslipResponseEarnings.md) | | |
|
|
18
|
+
| **contributions** | [**Array<PayslipResponseContributions>**](PayslipResponseContributions.md) | Items paid by the employer that are not included in gross pay, such as employer-paid portion of private health insurance | |
|
|
19
|
+
| **deductions** | [**Array<PayslipResponseDeductions>**](PayslipResponseDeductions.md) | | |
|
|
20
|
+
| **taxes** | [**Array<PayslipResponseTaxes>**](PayslipResponseTaxes.md) | | |
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'openapi_client'
|
|
26
|
+
|
|
27
|
+
instance = OpenapiClient::PayslipResponse.new(
|
|
28
|
+
id: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw,
|
|
29
|
+
remote_id: 19202938,
|
|
30
|
+
employee_id: d2f972d0-2526-434b-9409-4c3b468e08f0,
|
|
31
|
+
payrun_id: 35347df1-95e7-46e2-93cc-66f1191edca5,
|
|
32
|
+
currency: eur,
|
|
33
|
+
gross_pay: 134267,
|
|
34
|
+
net_pay: 86578,
|
|
35
|
+
start_date: Wed Jan 01 00:00:00 UTC 2020,
|
|
36
|
+
end_date: Fri Jan 31 00:00:00 UTC 2020,
|
|
37
|
+
payment_date: Mon Jan 27 00:00:00 UTC 2020,
|
|
38
|
+
earnings: [{"amount":100234,"name":"SALARY","hours":80},{"amount":834234,"name":"OVERTIME","hours":8}],
|
|
39
|
+
contributions: [{"name":"Private Health Insurance (Employer)","amount":13454},{"name":"Transportation allowance benefit (Employer)","amount":3454},{"name":"Other (Employer)","amount":3454}],
|
|
40
|
+
deductions: [{"name":"Transportation allowance benefit","amount":3454},{"name":"Private Health Insurance (Employee)","amount":3454}],
|
|
41
|
+
taxes: [{"name":"PRSI","amount":725,"employer_tax":false},{"name":"PSC (Class S)","amount":125,"employer_tax":false},{"name":"Income Tax","amount":10025,"employer_tax":false},{"name":"Payroll Tax","amount":10025,"employer_tax":true}]
|
|
42
|
+
)
|
|
43
|
+
```
|
|
44
|
+
|