|
4083 | 4083 | <nav id="scrollingNav"> |
4084 | 4084 | <ul class="sidenav nav nav-list"> |
4085 | 4085 | <li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li> |
4086 | | - <li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>12.1.0</li> |
| 4086 | + <li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>12.2.0</li> |
4087 | 4087 | <li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li> |
4088 | 4088 | <li data-group="PayrollNz" data-name="approveTimesheet" class=""> |
4089 | 4089 | <a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a> |
|
4292 | 4292 | <li data-group="PayrollNz" data-name="updateEmployeeTax" class=""> |
4293 | 4293 | <a href="#api-PayrollNz-updateEmployeeTax">updateEmployeeTax</a> |
4294 | 4294 | </li> |
4295 | | - <li data-group="PayrollNz" data-name="updatePayRun" class=""> |
4296 | | - <a href="#api-PayrollNz-updatePayRun">updatePayRun</a> |
4297 | | - </li> |
4298 | 4295 | <li data-group="PayrollNz" data-name="updatePaySlipLineItems" class=""> |
4299 | 4296 | <a href="#api-PayrollNz-updatePaySlipLineItems">updatePaySlipLineItems</a> |
4300 | 4297 | </li> |
@@ -15226,199 +15223,6 @@ <h2>Parameters</h2> |
15226 | 15223 | } |
15227 | 15224 | }, |
15228 | 15225 | "required" : true |
15229 | | -} |
15230 | | - </script> |
15231 | | - </table> |
15232 | | - </article> |
15233 | | - </div> |
15234 | | - <hr> |
15235 | | - <div id="api-PayrollNz-updatePayRun"> |
15236 | | - <article id="api-PayrollNz-updatePayRun-0" data-group="User" data-name="updatePayRun" data-version="0"> |
15237 | | - <div class="pull-left"> |
15238 | | - <h1>updatePayRun</h1> |
15239 | | - <p>Updates a pay run</p> |
15240 | | - </div> |
15241 | | - <div class="pull-right"></div> |
15242 | | - <div class="clearfix"></div> |
15243 | | - <p></p> |
15244 | | - <p class="marked"></p> |
15245 | | - <p></p> |
15246 | | - <br /> |
15247 | | - <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/PayRuns/{PayRunID}</span></code></pre> |
15248 | | - <p> |
15249 | | - <h3>Usage and SDK Samples</h3> |
15250 | | - </p> |
15251 | | - <ul class="nav nav-tabs nav-tabs-examples"> |
15252 | | - <li class=""><a href="#examples-PayrollNz-updatePayRun-0-java">Java</a></li> |
15253 | | - </ul> |
15254 | | - <div class="tab-content"> |
15255 | | - <div class="tab-pane" id="examples-PayrollNz-updatePayRun-0-java"> |
15256 | | - <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.*; |
15257 | | -import org.openapitools.client.api.client.PayrollNzApi; |
15258 | | -import org.openapitools.client.models.payrollNz.*; |
15259 | | - |
15260 | | -import java.io.File; |
15261 | | -import java.util.*; |
15262 | | - |
15263 | | -public class PayrollNzApiExample { |
15264 | | - private PayrollNzApi apiInstance; |
15265 | | - |
15266 | | - public static void main(String[] args) { |
15267 | | - String accessToken = "YOUR_ACCESS_TOKEN"; |
15268 | | - ApiClient defaultClient = new ApiClient(); |
15269 | | - |
15270 | | - apiInstance = AccountingApi.getInstance(defaultClient); |
15271 | | - String xeroTenantId = 'xeroTenantId_example'; |
15272 | | - UUID payRunID = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d"); |
15273 | | - UUID payRunID = '38400000-8cf0-11bd-b23e-10b96e4ef00d'; |
15274 | | - String idempotencyKey = 'KEY_VALUE'; |
15275 | | - LocalDate startDate = LocalDate.of(2020, Month.OCTOBER, 28); |
15276 | | - LocalDate paymentDate = LocalDate.of(2020, Month.OCTOBER, 30); |
15277 | | - |
15278 | | - PayRunCalendar payRunCalendar = new PayRunCalendar(); |
15279 | | - payRunCalendar.setCalendarType(com.xero.models.payrollnz.CalendarType.WEEKLY); |
15280 | | - payRunCalendar.setPeriodStartDate(startDate); |
15281 | | - payRunCalendar.setPaymentDate(paymentDate); |
15282 | | - |
15283 | | - try { |
15284 | | - PayRunObject result = apiInstance.updatePayRun(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey); |
15285 | | - System.out.println(result); |
15286 | | - } catch (XeroException e) { |
15287 | | - System.err.println("Exception when calling PayrollNzApi#updatePayRun"); |
15288 | | - e.printStackTrace(); |
15289 | | - } |
15290 | | - } |
15291 | | -}</code></pre> |
15292 | | - </div> |
15293 | | - </div> |
15294 | | - <h2>Scopes</h2> |
15295 | | - <table> |
15296 | | - |
15297 | | - <tr> |
15298 | | - <td>payroll.payruns</td> |
15299 | | - <td>Grant read-write access to payroll payruns</td> |
15300 | | - </tr> |
15301 | | - |
15302 | | - </table> |
15303 | | - <h2>Parameters</h2> |
15304 | | - <div class="methodsubtabletitle">Path parameters</div> |
15305 | | - <table id="methodsubtable"> |
15306 | | - <tr> |
15307 | | - <th width="150px">Name</th> |
15308 | | - <th>Description</th> |
15309 | | - </tr> |
15310 | | - <tr><td style="width:150px;">PayRunID<span style="color:red;">*</span></td> |
15311 | | -<td> |
15312 | | - |
15313 | | - |
15314 | | - <div id="d2e199_updatePayRun_payRunID"> |
15315 | | - <div class="json-schema-view"> |
15316 | | - <div class="primitive"> |
15317 | | - <span class="type"> |
15318 | | - UUID |
15319 | | - </span> |
15320 | | - <span class="format"> |
15321 | | - (uuid) |
15322 | | - </span> |
15323 | | - |
15324 | | - <div class="inner description marked"> |
15325 | | -Identifier for the pay run |
15326 | | - </div> |
15327 | | - </div> |
15328 | | - <div class="inner required"> |
15329 | | - Required |
15330 | | - </div> |
15331 | | - </div> |
15332 | | - </div> |
15333 | | -</td> |
15334 | | -</tr> |
15335 | | - |
15336 | | - </table> |
15337 | | - <div class="methodsubtabletitle">Header parameters</div> |
15338 | | - <table id="methodsubtable"> |
15339 | | - <tr> |
15340 | | - <th width="150px">Name</th> |
15341 | | - <th>Description</th> |
15342 | | - </tr> |
15343 | | - <tr><td style="width:150px;">Xero-Tenant-Id<span style="color:red;">*</span></td> |
15344 | | -<td> |
15345 | | - |
15346 | | - |
15347 | | - <div id="d2e199_updatePayRun_xeroTenantId"> |
15348 | | - <div class="json-schema-view"> |
15349 | | - <div class="primitive"> |
15350 | | - <span class="type"> |
15351 | | - String |
15352 | | - </span> |
15353 | | - |
15354 | | - <div class="inner description marked"> |
15355 | | -Xero identifier for Tenant |
15356 | | - </div> |
15357 | | - </div> |
15358 | | - <div class="inner required"> |
15359 | | - Required |
15360 | | - </div> |
15361 | | - </div> |
15362 | | - </div> |
15363 | | -</td> |
15364 | | -</tr> |
15365 | | - |
15366 | | - <tr><td style="width:150px;">Idempotency-Key</td> |
15367 | | -<td> |
15368 | | - |
15369 | | - |
15370 | | - <div id="d2e199_updatePayRun_idempotencyKey"> |
15371 | | - <div class="json-schema-view"> |
15372 | | - <div class="primitive"> |
15373 | | - <span class="type"> |
15374 | | - String |
15375 | | - </span> |
15376 | | - |
15377 | | - <div class="inner description marked"> |
15378 | | -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
15379 | | - </div> |
15380 | | - </div> |
15381 | | - </div> |
15382 | | - </div> |
15383 | | -</td> |
15384 | | -</tr> |
15385 | | - |
15386 | | - </table> |
15387 | | - <div class="methodsubtabletitle">Body parameters</div> |
15388 | | - <table id="methodsubtable"> |
15389 | | - <tr> |
15390 | | - <th width="150px">Name</th> |
15391 | | - <th>Description</th> |
15392 | | - </tr> |
15393 | | - <tr> |
15394 | | - <td style="width:150px;">payRun <span style="color:red;">*</span></td> |
15395 | | - <td> |
15396 | | - <div class="json-schema-view"> |
15397 | | - <div class="primitive"> |
15398 | | - <span class="type"> |
15399 | | - PayRun |
15400 | | - </span> |
15401 | | - <div class="inner description marked"> |
15402 | | - |
15403 | | - </div> |
15404 | | - </div> |
15405 | | - <div class="inner required"> |
15406 | | - Required |
15407 | | - </div> |
15408 | | - </div> |
15409 | | - <script type="application/ld+json"> |
15410 | | - { |
15411 | | - "content" : { |
15412 | | - "application/json" : { |
15413 | | - "schema" : { |
15414 | | - "$ref" : "#/components/schemas/PayRun" |
15415 | | - }, |
15416 | | - "example" : { |
15417 | | - "paymentDate" : "2019-07-01" |
15418 | | - } |
15419 | | - } |
15420 | | - }, |
15421 | | - "required" : true |
15422 | 15226 | } |
15423 | 15227 | </script> |
15424 | 15228 | </table> |
|
0 commit comments