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.
Files changed (159) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +19 -0
  4. data/README.md +374 -0
  5. data/Rakefile +10 -0
  6. data/affixapi.gemspec +38 -0
  7. data/docs/AddressNoNonNullRequest.md +26 -0
  8. data/docs/AddressResponse.md +26 -0
  9. data/docs/Class20230301Api.md +1401 -0
  10. data/docs/ClientRequest.md +24 -0
  11. data/docs/ClientResponse.md +26 -0
  12. data/docs/CompanyResponse.md +28 -0
  13. data/docs/CoreApi.md +69 -0
  14. data/docs/CreateEmployeeRequest.md +68 -0
  15. data/docs/CreateEmployeeRequestBankAccount.md +26 -0
  16. data/docs/CreateEmployeeRequestManager.md +26 -0
  17. data/docs/CurrencyRequest.md +15 -0
  18. data/docs/CurrencyResponse.md +15 -0
  19. data/docs/DeveloperApi.md +777 -0
  20. data/docs/DisconnectResponse.md +18 -0
  21. data/docs/EmployeeResponse.md +74 -0
  22. data/docs/EmploymentNoNullEnumRequest.md +30 -0
  23. data/docs/EmploymentResponse.md +30 -0
  24. data/docs/GroupNoNullEnumRequest.md +24 -0
  25. data/docs/GroupResponse.md +24 -0
  26. data/docs/IdAndMessageResponse.md +20 -0
  27. data/docs/IdentityResponse.md +22 -0
  28. data/docs/InlineResponse400.md +20 -0
  29. data/docs/InlineResponse401.md +22 -0
  30. data/docs/InlineResponse409.md +22 -0
  31. data/docs/IntrospectResponse.md +24 -0
  32. data/docs/LocationNoNonNullRequest.md +26 -0
  33. data/docs/LocationResponse.md +26 -0
  34. data/docs/ManagementApi.md +420 -0
  35. data/docs/MessageResponse.md +18 -0
  36. data/docs/ModeRequest.md +15 -0
  37. data/docs/ModeResponse.md +15 -0
  38. data/docs/OfficialApi.md +631 -0
  39. data/docs/PayrunResponse.md +30 -0
  40. data/docs/PayslipResponse.md +44 -0
  41. data/docs/PayslipResponseContributions.md +20 -0
  42. data/docs/PayslipResponseDeductions.md +20 -0
  43. data/docs/PayslipResponseEarnings.md +22 -0
  44. data/docs/PayslipResponseTaxes.md +22 -0
  45. data/docs/ProviderRequest.md +15 -0
  46. data/docs/ProviderResponse.md +15 -0
  47. data/docs/ScopesRequest.md +15 -0
  48. data/docs/ScopesResponse.md +15 -0
  49. data/docs/TimeOffBalanceResponse.md +32 -0
  50. data/docs/TimeOffEntryResponse.md +40 -0
  51. data/docs/TimesheetResponse.md +32 -0
  52. data/docs/TokenRequest.md +26 -0
  53. data/docs/TokenResponse.md +26 -0
  54. data/git_push.sh +58 -0
  55. data/lib/openapi_client/api/class20230301_api.rb +1198 -0
  56. data/lib/openapi_client/api/core_api.rb +79 -0
  57. data/lib/openapi_client/api/developer_api.rb +677 -0
  58. data/lib/openapi_client/api/management_api.rb +380 -0
  59. data/lib/openapi_client/api/official_api.rb +543 -0
  60. data/lib/openapi_client/api_client.rb +390 -0
  61. data/lib/openapi_client/api_error.rb +57 -0
  62. data/lib/openapi_client/configuration.rb +288 -0
  63. data/lib/openapi_client/models/address_no_non_null_request.rb +295 -0
  64. data/lib/openapi_client/models/address_response.rb +295 -0
  65. data/lib/openapi_client/models/client_request.rb +269 -0
  66. data/lib/openapi_client/models/client_response.rb +284 -0
  67. data/lib/openapi_client/models/company_response.rb +279 -0
  68. data/lib/openapi_client/models/create_employee_request.rb +568 -0
  69. data/lib/openapi_client/models/create_employee_request_bank_account.rb +259 -0
  70. data/lib/openapi_client/models/create_employee_request_manager.rb +263 -0
  71. data/lib/openapi_client/models/currency_request.rb +38 -0
  72. data/lib/openapi_client/models/currency_response.rb +38 -0
  73. data/lib/openapi_client/models/disconnect_response.rb +258 -0
  74. data/lib/openapi_client/models/employee_response.rb +608 -0
  75. data/lib/openapi_client/models/employment_no_null_enum_request.rb +329 -0
  76. data/lib/openapi_client/models/employment_response.rb +329 -0
  77. data/lib/openapi_client/models/group_no_null_enum_request.rb +283 -0
  78. data/lib/openapi_client/models/group_response.rb +283 -0
  79. data/lib/openapi_client/models/id_and_message_response.rb +239 -0
  80. data/lib/openapi_client/models/identity_response.rb +250 -0
  81. data/lib/openapi_client/models/inline_response400.rb +227 -0
  82. data/lib/openapi_client/models/inline_response401.rb +299 -0
  83. data/lib/openapi_client/models/inline_response409.rb +278 -0
  84. data/lib/openapi_client/models/introspect_response.rb +269 -0
  85. data/lib/openapi_client/models/location_no_non_null_request.rb +263 -0
  86. data/lib/openapi_client/models/location_response.rb +263 -0
  87. data/lib/openapi_client/models/message_response.rb +223 -0
  88. data/lib/openapi_client/models/mode_request.rb +37 -0
  89. data/lib/openapi_client/models/mode_response.rb +37 -0
  90. data/lib/openapi_client/models/payrun_response.rb +342 -0
  91. data/lib/openapi_client/models/payslip_response.rb +448 -0
  92. data/lib/openapi_client/models/payslip_response_contributions.rb +238 -0
  93. data/lib/openapi_client/models/payslip_response_deductions.rb +238 -0
  94. data/lib/openapi_client/models/payslip_response_earnings.rb +250 -0
  95. data/lib/openapi_client/models/payslip_response_taxes.rb +248 -0
  96. data/lib/openapi_client/models/provider_request.rb +70 -0
  97. data/lib/openapi_client/models/provider_response.rb +70 -0
  98. data/lib/openapi_client/models/scopes_request.rb +55 -0
  99. data/lib/openapi_client/models/scopes_response.rb +55 -0
  100. data/lib/openapi_client/models/time_off_balance_response.rb +342 -0
  101. data/lib/openapi_client/models/time_off_entry_response.rb +408 -0
  102. data/lib/openapi_client/models/timesheet_response.rb +318 -0
  103. data/lib/openapi_client/models/token_request.rb +318 -0
  104. data/lib/openapi_client/models/token_response.rb +318 -0
  105. data/lib/openapi_client/version.rb +15 -0
  106. data/lib/openapi_client.rb +86 -0
  107. data/openapi_client-0.0.1.gem +0 -0
  108. data/pkg/affixapi-0.0.1.gem +0 -0
  109. data/spec/api/class20230301_api_spec.rb +260 -0
  110. data/spec/api/core_api_spec.rb +46 -0
  111. data/spec/api/developer_api_spec.rb +160 -0
  112. data/spec/api/management_api_spec.rb +103 -0
  113. data/spec/api/official_api_spec.rb +135 -0
  114. data/spec/api_client_spec.rb +226 -0
  115. data/spec/configuration_spec.rb +42 -0
  116. data/spec/models/address_no_non_null_request_spec.rb +62 -0
  117. data/spec/models/address_response_spec.rb +62 -0
  118. data/spec/models/client_request_spec.rb +52 -0
  119. data/spec/models/client_response_spec.rb +58 -0
  120. data/spec/models/company_response_spec.rb +64 -0
  121. data/spec/models/create_employee_request_bank_account_spec.rb +58 -0
  122. data/spec/models/create_employee_request_manager_spec.rb +58 -0
  123. data/spec/models/create_employee_request_spec.rb +204 -0
  124. data/spec/models/currency_request_spec.rb +28 -0
  125. data/spec/models/currency_response_spec.rb +28 -0
  126. data/spec/models/disconnect_response_spec.rb +38 -0
  127. data/spec/models/employee_response_spec.rb +222 -0
  128. data/spec/models/employment_no_null_enum_request_spec.rb +78 -0
  129. data/spec/models/employment_response_spec.rb +78 -0
  130. data/spec/models/group_no_null_enum_request_spec.rb +56 -0
  131. data/spec/models/group_response_spec.rb +56 -0
  132. data/spec/models/id_and_message_response_spec.rb +40 -0
  133. data/spec/models/identity_response_spec.rb +46 -0
  134. data/spec/models/inline_response400_spec.rb +40 -0
  135. data/spec/models/inline_response401_spec.rb +54 -0
  136. data/spec/models/inline_response409_spec.rb +50 -0
  137. data/spec/models/introspect_response_spec.rb +52 -0
  138. data/spec/models/location_no_non_null_request_spec.rb +58 -0
  139. data/spec/models/location_response_spec.rb +58 -0
  140. data/spec/models/message_response_spec.rb +34 -0
  141. data/spec/models/mode_request_spec.rb +28 -0
  142. data/spec/models/mode_response_spec.rb +28 -0
  143. data/spec/models/payrun_response_spec.rb +78 -0
  144. data/spec/models/payslip_response_contributions_spec.rb +40 -0
  145. data/spec/models/payslip_response_deductions_spec.rb +40 -0
  146. data/spec/models/payslip_response_earnings_spec.rb +46 -0
  147. data/spec/models/payslip_response_spec.rb +116 -0
  148. data/spec/models/payslip_response_taxes_spec.rb +46 -0
  149. data/spec/models/provider_request_spec.rb +28 -0
  150. data/spec/models/provider_response_spec.rb +28 -0
  151. data/spec/models/scopes_request_spec.rb +28 -0
  152. data/spec/models/scopes_response_spec.rb +28 -0
  153. data/spec/models/time_off_balance_response_spec.rb +80 -0
  154. data/spec/models/time_off_entry_response_spec.rb +108 -0
  155. data/spec/models/timesheet_response_spec.rb +76 -0
  156. data/spec/models/token_request_spec.rb +62 -0
  157. data/spec/models/token_response_spec.rb +62 -0
  158. data/spec/spec_helper.rb +111 -0
  159. metadata +349 -0
@@ -0,0 +1,777 @@
1
+ # OpenapiClient::DeveloperApi
2
+
3
+ All URIs are relative to *https://api.affixapi.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**developer_companies20230301**](DeveloperApi.md#developer_companies20230301) | **GET** /2023-03-01/developer/company | Company |
8
+ | [**developer_create_employee20230301**](DeveloperApi.md#developer_create_employee20230301) | **POST** /2023-03-01/developer/employee | Create employee |
9
+ | [**developer_employees20230301**](DeveloperApi.md#developer_employees20230301) | **GET** /2023-03-01/developer/employees | Employees |
10
+ | [**developer_groups20230301**](DeveloperApi.md#developer_groups20230301) | **GET** /2023-03-01/developer/groups | Groups |
11
+ | [**developer_identity20230301**](DeveloperApi.md#developer_identity20230301) | **GET** /2023-03-01/developer/identity | Identity |
12
+ | [**developer_payruns20230301**](DeveloperApi.md#developer_payruns20230301) | **GET** /2023-03-01/developer/payruns | Payruns |
13
+ | [**developer_payslips20230301**](DeveloperApi.md#developer_payslips20230301) | **GET** /2023-03-01/developer/payruns/{payrun_id} | Payslips |
14
+ | [**developer_time_off_balances20230301**](DeveloperApi.md#developer_time_off_balances20230301) | **GET** /2023-03-01/developer/time-off-balances | Time off balances |
15
+ | [**developer_time_off_entries20230301**](DeveloperApi.md#developer_time_off_entries20230301) | **GET** /2023-03-01/developer/time-off-entries | Time off entries |
16
+ | [**developer_timesheets20230301**](DeveloperApi.md#developer_timesheets20230301) | **GET** /2023-03-01/developer/timesheets | Timesheets |
17
+ | [**developer_work_locations20230301**](DeveloperApi.md#developer_work_locations20230301) | **GET** /2023-03-01/developer/work-locations | Work locations |
18
+
19
+
20
+ ## developer_companies20230301
21
+
22
+ > <Array<CompanyResponse>> developer_companies20230301
23
+
24
+ Company
25
+
26
+ Retrieve company information
27
+
28
+ ### Examples
29
+
30
+ ```ruby
31
+ require 'time'
32
+ require 'openapi_client'
33
+ # setup authorization
34
+ OpenapiClient.configure do |config|
35
+ # Configure API key authorization: access-token
36
+ config.api_key['access-token'] = 'YOUR API KEY'
37
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
38
+ # config.api_key_prefix['access-token'] = 'Bearer'
39
+ end
40
+
41
+ api_instance = OpenapiClient::DeveloperApi.new
42
+
43
+ begin
44
+ # Company
45
+ result = api_instance.developer_companies20230301
46
+ p result
47
+ rescue OpenapiClient::ApiError => e
48
+ puts "Error when calling DeveloperApi->developer_companies20230301: #{e}"
49
+ end
50
+ ```
51
+
52
+ #### Using the developer_companies20230301_with_http_info variant
53
+
54
+ This returns an Array which contains the response data, status code and headers.
55
+
56
+ > <Array(<Array<CompanyResponse>>, Integer, Hash)> developer_companies20230301_with_http_info
57
+
58
+ ```ruby
59
+ begin
60
+ # Company
61
+ data, status_code, headers = api_instance.developer_companies20230301_with_http_info
62
+ p status_code # => 2xx
63
+ p headers # => { ... }
64
+ p data # => <Array<CompanyResponse>>
65
+ rescue OpenapiClient::ApiError => e
66
+ puts "Error when calling DeveloperApi->developer_companies20230301_with_http_info: #{e}"
67
+ end
68
+ ```
69
+
70
+ ### Parameters
71
+
72
+ This endpoint does not need any parameter.
73
+
74
+ ### Return type
75
+
76
+ [**Array&lt;CompanyResponse&gt;**](CompanyResponse.md)
77
+
78
+ ### Authorization
79
+
80
+ [access-token](../README.md#access-token)
81
+
82
+ ### HTTP request headers
83
+
84
+ - **Content-Type**: Not defined
85
+ - **Accept**: application/json
86
+
87
+
88
+ ## developer_create_employee20230301
89
+
90
+ > <EmployeeResponse> developer_create_employee20230301(create_employee_request)
91
+
92
+ Create employee
93
+
94
+ Creates a new Employee
95
+
96
+ ### Examples
97
+
98
+ ```ruby
99
+ require 'time'
100
+ require 'openapi_client'
101
+ # setup authorization
102
+ OpenapiClient.configure do |config|
103
+ # Configure API key authorization: access-token
104
+ config.api_key['access-token'] = 'YOUR API KEY'
105
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
106
+ # config.api_key_prefix['access-token'] = 'Bearer'
107
+ end
108
+
109
+ api_instance = OpenapiClient::DeveloperApi.new
110
+ create_employee_request = OpenapiClient::CreateEmployeeRequest.new({first_name: 'Greg', last_name: 'Hirsch'}) # CreateEmployeeRequest |
111
+
112
+ begin
113
+ # Create employee
114
+ result = api_instance.developer_create_employee20230301(create_employee_request)
115
+ p result
116
+ rescue OpenapiClient::ApiError => e
117
+ puts "Error when calling DeveloperApi->developer_create_employee20230301: #{e}"
118
+ end
119
+ ```
120
+
121
+ #### Using the developer_create_employee20230301_with_http_info variant
122
+
123
+ This returns an Array which contains the response data, status code and headers.
124
+
125
+ > <Array(<EmployeeResponse>, Integer, Hash)> developer_create_employee20230301_with_http_info(create_employee_request)
126
+
127
+ ```ruby
128
+ begin
129
+ # Create employee
130
+ data, status_code, headers = api_instance.developer_create_employee20230301_with_http_info(create_employee_request)
131
+ p status_code # => 2xx
132
+ p headers # => { ... }
133
+ p data # => <EmployeeResponse>
134
+ rescue OpenapiClient::ApiError => e
135
+ puts "Error when calling DeveloperApi->developer_create_employee20230301_with_http_info: #{e}"
136
+ end
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ | Name | Type | Description | Notes |
142
+ | ---- | ---- | ----------- | ----- |
143
+ | **create_employee_request** | [**CreateEmployeeRequest**](CreateEmployeeRequest.md) | | |
144
+
145
+ ### Return type
146
+
147
+ [**EmployeeResponse**](EmployeeResponse.md)
148
+
149
+ ### Authorization
150
+
151
+ [access-token](../README.md#access-token)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: application/json
156
+ - **Accept**: application/json
157
+
158
+
159
+ ## developer_employees20230301
160
+
161
+ > <Array<EmployeeResponse>> developer_employees20230301
162
+
163
+ Employees
164
+
165
+ List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
166
+
167
+ ### Examples
168
+
169
+ ```ruby
170
+ require 'time'
171
+ require 'openapi_client'
172
+ # setup authorization
173
+ OpenapiClient.configure do |config|
174
+ # Configure API key authorization: access-token
175
+ config.api_key['access-token'] = 'YOUR API KEY'
176
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
177
+ # config.api_key_prefix['access-token'] = 'Bearer'
178
+ end
179
+
180
+ api_instance = OpenapiClient::DeveloperApi.new
181
+
182
+ begin
183
+ # Employees
184
+ result = api_instance.developer_employees20230301
185
+ p result
186
+ rescue OpenapiClient::ApiError => e
187
+ puts "Error when calling DeveloperApi->developer_employees20230301: #{e}"
188
+ end
189
+ ```
190
+
191
+ #### Using the developer_employees20230301_with_http_info variant
192
+
193
+ This returns an Array which contains the response data, status code and headers.
194
+
195
+ > <Array(<Array<EmployeeResponse>>, Integer, Hash)> developer_employees20230301_with_http_info
196
+
197
+ ```ruby
198
+ begin
199
+ # Employees
200
+ data, status_code, headers = api_instance.developer_employees20230301_with_http_info
201
+ p status_code # => 2xx
202
+ p headers # => { ... }
203
+ p data # => <Array<EmployeeResponse>>
204
+ rescue OpenapiClient::ApiError => e
205
+ puts "Error when calling DeveloperApi->developer_employees20230301_with_http_info: #{e}"
206
+ end
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+ This endpoint does not need any parameter.
212
+
213
+ ### Return type
214
+
215
+ [**Array&lt;EmployeeResponse&gt;**](EmployeeResponse.md)
216
+
217
+ ### Authorization
218
+
219
+ [access-token](../README.md#access-token)
220
+
221
+ ### HTTP request headers
222
+
223
+ - **Content-Type**: Not defined
224
+ - **Accept**: application/json
225
+
226
+
227
+ ## developer_groups20230301
228
+
229
+ > <Array<GroupResponse>> developer_groups20230301
230
+
231
+ Groups
232
+
233
+ The Group object is used to represent any subset of employees, such as PayGroup, Team, or Department. Employees can be in multiple Groups.
234
+
235
+ ### Examples
236
+
237
+ ```ruby
238
+ require 'time'
239
+ require 'openapi_client'
240
+ # setup authorization
241
+ OpenapiClient.configure do |config|
242
+ # Configure API key authorization: access-token
243
+ config.api_key['access-token'] = 'YOUR API KEY'
244
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
245
+ # config.api_key_prefix['access-token'] = 'Bearer'
246
+ end
247
+
248
+ api_instance = OpenapiClient::DeveloperApi.new
249
+
250
+ begin
251
+ # Groups
252
+ result = api_instance.developer_groups20230301
253
+ p result
254
+ rescue OpenapiClient::ApiError => e
255
+ puts "Error when calling DeveloperApi->developer_groups20230301: #{e}"
256
+ end
257
+ ```
258
+
259
+ #### Using the developer_groups20230301_with_http_info variant
260
+
261
+ This returns an Array which contains the response data, status code and headers.
262
+
263
+ > <Array(<Array<GroupResponse>>, Integer, Hash)> developer_groups20230301_with_http_info
264
+
265
+ ```ruby
266
+ begin
267
+ # Groups
268
+ data, status_code, headers = api_instance.developer_groups20230301_with_http_info
269
+ p status_code # => 2xx
270
+ p headers # => { ... }
271
+ p data # => <Array<GroupResponse>>
272
+ rescue OpenapiClient::ApiError => e
273
+ puts "Error when calling DeveloperApi->developer_groups20230301_with_http_info: #{e}"
274
+ end
275
+ ```
276
+
277
+ ### Parameters
278
+
279
+ This endpoint does not need any parameter.
280
+
281
+ ### Return type
282
+
283
+ [**Array&lt;GroupResponse&gt;**](GroupResponse.md)
284
+
285
+ ### Authorization
286
+
287
+ [access-token](../README.md#access-token)
288
+
289
+ ### HTTP request headers
290
+
291
+ - **Content-Type**: Not defined
292
+ - **Accept**: application/json
293
+
294
+
295
+ ## developer_identity20230301
296
+
297
+ > <IdentityResponse> developer_identity20230301
298
+
299
+ Identity
300
+
301
+ List information of the user for the respective account
302
+
303
+ ### Examples
304
+
305
+ ```ruby
306
+ require 'time'
307
+ require 'openapi_client'
308
+ # setup authorization
309
+ OpenapiClient.configure do |config|
310
+ # Configure API key authorization: access-token
311
+ config.api_key['access-token'] = 'YOUR API KEY'
312
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
313
+ # config.api_key_prefix['access-token'] = 'Bearer'
314
+ end
315
+
316
+ api_instance = OpenapiClient::DeveloperApi.new
317
+
318
+ begin
319
+ # Identity
320
+ result = api_instance.developer_identity20230301
321
+ p result
322
+ rescue OpenapiClient::ApiError => e
323
+ puts "Error when calling DeveloperApi->developer_identity20230301: #{e}"
324
+ end
325
+ ```
326
+
327
+ #### Using the developer_identity20230301_with_http_info variant
328
+
329
+ This returns an Array which contains the response data, status code and headers.
330
+
331
+ > <Array(<IdentityResponse>, Integer, Hash)> developer_identity20230301_with_http_info
332
+
333
+ ```ruby
334
+ begin
335
+ # Identity
336
+ data, status_code, headers = api_instance.developer_identity20230301_with_http_info
337
+ p status_code # => 2xx
338
+ p headers # => { ... }
339
+ p data # => <IdentityResponse>
340
+ rescue OpenapiClient::ApiError => e
341
+ puts "Error when calling DeveloperApi->developer_identity20230301_with_http_info: #{e}"
342
+ end
343
+ ```
344
+
345
+ ### Parameters
346
+
347
+ This endpoint does not need any parameter.
348
+
349
+ ### Return type
350
+
351
+ [**IdentityResponse**](IdentityResponse.md)
352
+
353
+ ### Authorization
354
+
355
+ [access-token](../README.md#access-token)
356
+
357
+ ### HTTP request headers
358
+
359
+ - **Content-Type**: Not defined
360
+ - **Accept**: application/json
361
+
362
+
363
+ ## developer_payruns20230301
364
+
365
+ > <Array<PayrunResponse>> developer_payruns20230301(start_date, end_date)
366
+
367
+ Payruns
368
+
369
+ List all the pay runs that occurred during the respective period. Supported integrations: - sageone - simplepay.ie - brightpay connect
370
+
371
+ ### Examples
372
+
373
+ ```ruby
374
+ require 'time'
375
+ require 'openapi_client'
376
+ # setup authorization
377
+ OpenapiClient.configure do |config|
378
+ # Configure API key authorization: access-token
379
+ config.api_key['access-token'] = 'YOUR API KEY'
380
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
381
+ # config.api_key_prefix['access-token'] = 'Bearer'
382
+ end
383
+
384
+ api_instance = OpenapiClient::DeveloperApi.new
385
+ start_date = Date.parse('2013-10-20') # Date | The start date of the search period
386
+ end_date = Date.parse('2013-10-20') # Date | The end date of the search period
387
+
388
+ begin
389
+ # Payruns
390
+ result = api_instance.developer_payruns20230301(start_date, end_date)
391
+ p result
392
+ rescue OpenapiClient::ApiError => e
393
+ puts "Error when calling DeveloperApi->developer_payruns20230301: #{e}"
394
+ end
395
+ ```
396
+
397
+ #### Using the developer_payruns20230301_with_http_info variant
398
+
399
+ This returns an Array which contains the response data, status code and headers.
400
+
401
+ > <Array(<Array<PayrunResponse>>, Integer, Hash)> developer_payruns20230301_with_http_info(start_date, end_date)
402
+
403
+ ```ruby
404
+ begin
405
+ # Payruns
406
+ data, status_code, headers = api_instance.developer_payruns20230301_with_http_info(start_date, end_date)
407
+ p status_code # => 2xx
408
+ p headers # => { ... }
409
+ p data # => <Array<PayrunResponse>>
410
+ rescue OpenapiClient::ApiError => e
411
+ puts "Error when calling DeveloperApi->developer_payruns20230301_with_http_info: #{e}"
412
+ end
413
+ ```
414
+
415
+ ### Parameters
416
+
417
+ | Name | Type | Description | Notes |
418
+ | ---- | ---- | ----------- | ----- |
419
+ | **start_date** | **Date** | The start date of the search period | |
420
+ | **end_date** | **Date** | The end date of the search period | |
421
+
422
+ ### Return type
423
+
424
+ [**Array&lt;PayrunResponse&gt;**](PayrunResponse.md)
425
+
426
+ ### Authorization
427
+
428
+ [access-token](../README.md#access-token)
429
+
430
+ ### HTTP request headers
431
+
432
+ - **Content-Type**: Not defined
433
+ - **Accept**: application/json
434
+
435
+
436
+ ## developer_payslips20230301
437
+
438
+ > <Array<PayslipResponse>> developer_payslips20230301(payrun_id)
439
+
440
+ Payslips
441
+
442
+ Retrieves payslips from a specific payrun. Supported integrations: - sageone - simplepay.ie - brightpay connect
443
+
444
+ ### Examples
445
+
446
+ ```ruby
447
+ require 'time'
448
+ require 'openapi_client'
449
+ # setup authorization
450
+ OpenapiClient.configure do |config|
451
+ # Configure API key authorization: access-token
452
+ config.api_key['access-token'] = 'YOUR API KEY'
453
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
454
+ # config.api_key_prefix['access-token'] = 'Bearer'
455
+ end
456
+
457
+ api_instance = OpenapiClient::DeveloperApi.new
458
+ payrun_id = 'payrun_id_example' # String | The id of the payrun.
459
+
460
+ begin
461
+ # Payslips
462
+ result = api_instance.developer_payslips20230301(payrun_id)
463
+ p result
464
+ rescue OpenapiClient::ApiError => e
465
+ puts "Error when calling DeveloperApi->developer_payslips20230301: #{e}"
466
+ end
467
+ ```
468
+
469
+ #### Using the developer_payslips20230301_with_http_info variant
470
+
471
+ This returns an Array which contains the response data, status code and headers.
472
+
473
+ > <Array(<Array<PayslipResponse>>, Integer, Hash)> developer_payslips20230301_with_http_info(payrun_id)
474
+
475
+ ```ruby
476
+ begin
477
+ # Payslips
478
+ data, status_code, headers = api_instance.developer_payslips20230301_with_http_info(payrun_id)
479
+ p status_code # => 2xx
480
+ p headers # => { ... }
481
+ p data # => <Array<PayslipResponse>>
482
+ rescue OpenapiClient::ApiError => e
483
+ puts "Error when calling DeveloperApi->developer_payslips20230301_with_http_info: #{e}"
484
+ end
485
+ ```
486
+
487
+ ### Parameters
488
+
489
+ | Name | Type | Description | Notes |
490
+ | ---- | ---- | ----------- | ----- |
491
+ | **payrun_id** | **String** | The id of the payrun. | |
492
+
493
+ ### Return type
494
+
495
+ [**Array&lt;PayslipResponse&gt;**](PayslipResponse.md)
496
+
497
+ ### Authorization
498
+
499
+ [access-token](../README.md#access-token)
500
+
501
+ ### HTTP request headers
502
+
503
+ - **Content-Type**: Not defined
504
+ - **Accept**: application/json
505
+
506
+
507
+ ## developer_time_off_balances20230301
508
+
509
+ > <Array<TimeOffBalanceResponse>> developer_time_off_balances20230301
510
+
511
+ Time off balances
512
+
513
+ Retrieve all time off balances.
514
+
515
+ ### Examples
516
+
517
+ ```ruby
518
+ require 'time'
519
+ require 'openapi_client'
520
+ # setup authorization
521
+ OpenapiClient.configure do |config|
522
+ # Configure API key authorization: access-token
523
+ config.api_key['access-token'] = 'YOUR API KEY'
524
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
525
+ # config.api_key_prefix['access-token'] = 'Bearer'
526
+ end
527
+
528
+ api_instance = OpenapiClient::DeveloperApi.new
529
+
530
+ begin
531
+ # Time off balances
532
+ result = api_instance.developer_time_off_balances20230301
533
+ p result
534
+ rescue OpenapiClient::ApiError => e
535
+ puts "Error when calling DeveloperApi->developer_time_off_balances20230301: #{e}"
536
+ end
537
+ ```
538
+
539
+ #### Using the developer_time_off_balances20230301_with_http_info variant
540
+
541
+ This returns an Array which contains the response data, status code and headers.
542
+
543
+ > <Array(<Array<TimeOffBalanceResponse>>, Integer, Hash)> developer_time_off_balances20230301_with_http_info
544
+
545
+ ```ruby
546
+ begin
547
+ # Time off balances
548
+ data, status_code, headers = api_instance.developer_time_off_balances20230301_with_http_info
549
+ p status_code # => 2xx
550
+ p headers # => { ... }
551
+ p data # => <Array<TimeOffBalanceResponse>>
552
+ rescue OpenapiClient::ApiError => e
553
+ puts "Error when calling DeveloperApi->developer_time_off_balances20230301_with_http_info: #{e}"
554
+ end
555
+ ```
556
+
557
+ ### Parameters
558
+
559
+ This endpoint does not need any parameter.
560
+
561
+ ### Return type
562
+
563
+ [**Array&lt;TimeOffBalanceResponse&gt;**](TimeOffBalanceResponse.md)
564
+
565
+ ### Authorization
566
+
567
+ [access-token](../README.md#access-token)
568
+
569
+ ### HTTP request headers
570
+
571
+ - **Content-Type**: Not defined
572
+ - **Accept**: application/json
573
+
574
+
575
+ ## developer_time_off_entries20230301
576
+
577
+ > <Array<TimeOffEntryResponse>> developer_time_off_entries20230301
578
+
579
+ Time off entries
580
+
581
+ Retrieve time off / absence entries
582
+
583
+ ### Examples
584
+
585
+ ```ruby
586
+ require 'time'
587
+ require 'openapi_client'
588
+ # setup authorization
589
+ OpenapiClient.configure do |config|
590
+ # Configure API key authorization: access-token
591
+ config.api_key['access-token'] = 'YOUR API KEY'
592
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
593
+ # config.api_key_prefix['access-token'] = 'Bearer'
594
+ end
595
+
596
+ api_instance = OpenapiClient::DeveloperApi.new
597
+
598
+ begin
599
+ # Time off entries
600
+ result = api_instance.developer_time_off_entries20230301
601
+ p result
602
+ rescue OpenapiClient::ApiError => e
603
+ puts "Error when calling DeveloperApi->developer_time_off_entries20230301: #{e}"
604
+ end
605
+ ```
606
+
607
+ #### Using the developer_time_off_entries20230301_with_http_info variant
608
+
609
+ This returns an Array which contains the response data, status code and headers.
610
+
611
+ > <Array(<Array<TimeOffEntryResponse>>, Integer, Hash)> developer_time_off_entries20230301_with_http_info
612
+
613
+ ```ruby
614
+ begin
615
+ # Time off entries
616
+ data, status_code, headers = api_instance.developer_time_off_entries20230301_with_http_info
617
+ p status_code # => 2xx
618
+ p headers # => { ... }
619
+ p data # => <Array<TimeOffEntryResponse>>
620
+ rescue OpenapiClient::ApiError => e
621
+ puts "Error when calling DeveloperApi->developer_time_off_entries20230301_with_http_info: #{e}"
622
+ end
623
+ ```
624
+
625
+ ### Parameters
626
+
627
+ This endpoint does not need any parameter.
628
+
629
+ ### Return type
630
+
631
+ [**Array&lt;TimeOffEntryResponse&gt;**](TimeOffEntryResponse.md)
632
+
633
+ ### Authorization
634
+
635
+ [access-token](../README.md#access-token)
636
+
637
+ ### HTTP request headers
638
+
639
+ - **Content-Type**: Not defined
640
+ - **Accept**: application/json
641
+
642
+
643
+ ## developer_timesheets20230301
644
+
645
+ > <Array<TimesheetResponse>> developer_timesheets20230301
646
+
647
+ Timesheets
648
+
649
+ Retrieve Timesheets
650
+
651
+ ### Examples
652
+
653
+ ```ruby
654
+ require 'time'
655
+ require 'openapi_client'
656
+ # setup authorization
657
+ OpenapiClient.configure do |config|
658
+ # Configure API key authorization: access-token
659
+ config.api_key['access-token'] = 'YOUR API KEY'
660
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
661
+ # config.api_key_prefix['access-token'] = 'Bearer'
662
+ end
663
+
664
+ api_instance = OpenapiClient::DeveloperApi.new
665
+
666
+ begin
667
+ # Timesheets
668
+ result = api_instance.developer_timesheets20230301
669
+ p result
670
+ rescue OpenapiClient::ApiError => e
671
+ puts "Error when calling DeveloperApi->developer_timesheets20230301: #{e}"
672
+ end
673
+ ```
674
+
675
+ #### Using the developer_timesheets20230301_with_http_info variant
676
+
677
+ This returns an Array which contains the response data, status code and headers.
678
+
679
+ > <Array(<Array<TimesheetResponse>>, Integer, Hash)> developer_timesheets20230301_with_http_info
680
+
681
+ ```ruby
682
+ begin
683
+ # Timesheets
684
+ data, status_code, headers = api_instance.developer_timesheets20230301_with_http_info
685
+ p status_code # => 2xx
686
+ p headers # => { ... }
687
+ p data # => <Array<TimesheetResponse>>
688
+ rescue OpenapiClient::ApiError => e
689
+ puts "Error when calling DeveloperApi->developer_timesheets20230301_with_http_info: #{e}"
690
+ end
691
+ ```
692
+
693
+ ### Parameters
694
+
695
+ This endpoint does not need any parameter.
696
+
697
+ ### Return type
698
+
699
+ [**Array&lt;TimesheetResponse&gt;**](TimesheetResponse.md)
700
+
701
+ ### Authorization
702
+
703
+ [access-token](../README.md#access-token)
704
+
705
+ ### HTTP request headers
706
+
707
+ - **Content-Type**: Not defined
708
+ - **Accept**: application/json
709
+
710
+
711
+ ## developer_work_locations20230301
712
+
713
+ > <Array<LocationResponse>> developer_work_locations20230301
714
+
715
+ Work locations
716
+
717
+ The Location object is used to represent an address that can be associated with an employee
718
+
719
+ ### Examples
720
+
721
+ ```ruby
722
+ require 'time'
723
+ require 'openapi_client'
724
+ # setup authorization
725
+ OpenapiClient.configure do |config|
726
+ # Configure API key authorization: access-token
727
+ config.api_key['access-token'] = 'YOUR API KEY'
728
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
729
+ # config.api_key_prefix['access-token'] = 'Bearer'
730
+ end
731
+
732
+ api_instance = OpenapiClient::DeveloperApi.new
733
+
734
+ begin
735
+ # Work locations
736
+ result = api_instance.developer_work_locations20230301
737
+ p result
738
+ rescue OpenapiClient::ApiError => e
739
+ puts "Error when calling DeveloperApi->developer_work_locations20230301: #{e}"
740
+ end
741
+ ```
742
+
743
+ #### Using the developer_work_locations20230301_with_http_info variant
744
+
745
+ This returns an Array which contains the response data, status code and headers.
746
+
747
+ > <Array(<Array<LocationResponse>>, Integer, Hash)> developer_work_locations20230301_with_http_info
748
+
749
+ ```ruby
750
+ begin
751
+ # Work locations
752
+ data, status_code, headers = api_instance.developer_work_locations20230301_with_http_info
753
+ p status_code # => 2xx
754
+ p headers # => { ... }
755
+ p data # => <Array<LocationResponse>>
756
+ rescue OpenapiClient::ApiError => e
757
+ puts "Error when calling DeveloperApi->developer_work_locations20230301_with_http_info: #{e}"
758
+ end
759
+ ```
760
+
761
+ ### Parameters
762
+
763
+ This endpoint does not need any parameter.
764
+
765
+ ### Return type
766
+
767
+ [**Array&lt;LocationResponse&gt;**](LocationResponse.md)
768
+
769
+ ### Authorization
770
+
771
+ [access-token](../README.md#access-token)
772
+
773
+ ### HTTP request headers
774
+
775
+ - **Content-Type**: Not defined
776
+ - **Accept**: application/json
777
+