|
4088 | 4088 | <nav id="scrollingNav"> |
4089 | 4089 | <ul class="sidenav nav nav-list"> |
4090 | 4090 | <li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li> |
4091 | | - <li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>13.1.0</li> |
| 4091 | + <li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>13.2.0</li> |
4092 | 4092 | <li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li> |
4093 | 4093 | <li data-group="PayrollNz" data-name="approveTimesheet" class=""> |
4094 | 4094 | <a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a> |
|
4297 | 4297 | <li data-group="PayrollNz" data-name="updateEmployeeTax" class=""> |
4298 | 4298 | <a href="#api-PayrollNz-updateEmployeeTax">updateEmployeeTax</a> |
4299 | 4299 | </li> |
4300 | | - <li data-group="PayrollNz" data-name="updatePayRun" class=""> |
4301 | | - <a href="#api-PayrollNz-updatePayRun">updatePayRun</a> |
4302 | | - </li> |
4303 | 4300 | <li data-group="PayrollNz" data-name="updatePaySlipLineItems" class=""> |
4304 | 4301 | <a href="#api-PayrollNz-updatePaySlipLineItems">updatePaySlipLineItems</a> |
4305 | 4302 | </li> |
@@ -14301,186 +14298,6 @@ <h2>Parameters</h2> |
14301 | 14298 | }, |
14302 | 14299 | "required" : true |
14303 | 14300 | } |
14304 | | -</script> |
14305 | | - </table> |
14306 | | - </article> |
14307 | | - </div> |
14308 | | - <hr> |
14309 | | - <div id="api-PayrollNz-updatePayRun"> |
14310 | | - <article id="api-PayrollNz-updatePayRun-0" data-group="User" data-name="updatePayRun" data-version="0"> |
14311 | | - <div class="pull-left"> |
14312 | | - <h1>updatePayRun</h1> |
14313 | | - <p>Updates a pay run</p> |
14314 | | - </div> |
14315 | | - <div class="pull-right"></div> |
14316 | | - <div class="clearfix"></div> |
14317 | | - <p></p> |
14318 | | - <p class="marked"></p> |
14319 | | - <p></p> |
14320 | | - <br /> |
14321 | | - <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/PayRuns/{PayRunID}</span></code></pre> |
14322 | | - <p> |
14323 | | - <h3>Usage and SDK Samples</h3> |
14324 | | - </p> |
14325 | | - <ul class="nav nav-tabs nav-tabs-examples"> |
14326 | | - <!-- *****REPLACE***** comment out the other languages <li> --> |
14327 | | - <li class=""><a href="#examples-PayrollNz-updatePayRun-0-javascript">Node</a></li> |
14328 | | - </ul> |
14329 | | - <div class="tab-content"> |
14330 | | - <!-- *****REPLACE***** comment out the other languages tab-pane --> |
14331 | | - <div class="tab-pane" id="examples-PayrollNz-updatePayRun-0-javascript"> |
14332 | | - <pre class="prettyprint"><code class="language-javascript">await xero.setTokenSet(tokenSet); |
14333 | | - |
14334 | | -const xeroTenantId = 'xeroTenantId_example'; |
14335 | | -const payRunID = '38400000-8cf0-11bd-b23e-10b96e4ef00d'; |
14336 | | -const idempotencyKey = 'KEY_VALUE'; |
14337 | | -const startDate = '2020-10-28' |
14338 | | -const paymentDate = '2020-10-30' |
14339 | | - |
14340 | | -const payRunCalendar: PayRunCalendar = { |
14341 | | - calendarType: CalendarType.Weekly, |
14342 | | - periodStartDate: startDate, |
14343 | | - paymentDate: paymentDate |
14344 | | -}; |
14345 | | - |
14346 | | -try { |
14347 | | - const response = await xero.accountingApi.updatePayRun(xeroTenantId, payRunID, payRun, idempotencyKey); |
14348 | | - console.log(response.body || response.response.statusCode) |
14349 | | -} catch (err) { |
14350 | | - const error = JSON.stringify(err.response.body, null, 2) |
14351 | | - console.log(`Status Code: ${err.response.statusCode} => ${error}`); |
14352 | | -}</code></pre> |
14353 | | - </div> |
14354 | | - </div> |
14355 | | - <h2>Scopes</h2> |
14356 | | - <table> |
14357 | | - |
14358 | | - <tr> |
14359 | | - <td>payroll.payruns</td> |
14360 | | - <td>Grant read-write access to payroll payruns</td> |
14361 | | - </tr> |
14362 | | - |
14363 | | - </table> |
14364 | | - <h2>Parameters</h2> |
14365 | | - <div class="methodsubtabletitle">Path parameters</div> |
14366 | | - <table id="methodsubtable"> |
14367 | | - <tr> |
14368 | | - <th width="150px">Name</th> |
14369 | | - <th>Description</th> |
14370 | | - </tr> |
14371 | | - <tr><td style="width:150px;">PayRunID<span style="color:red;">*</span></td> |
14372 | | -<td> |
14373 | | - |
14374 | | - |
14375 | | - <div id="d2e199_updatePayRun_payRunID"> |
14376 | | - <div class="json-schema-view"> |
14377 | | - <div class="primitive"> |
14378 | | - <span class="type"> |
14379 | | - UUID |
14380 | | - </span> |
14381 | | - <span class="format"> |
14382 | | - (uuid) |
14383 | | - </span> |
14384 | | - |
14385 | | - <div class="inner description marked"> |
14386 | | -Identifier for the pay run |
14387 | | - </div> |
14388 | | - </div> |
14389 | | - <div class="inner required"> |
14390 | | - Required |
14391 | | - </div> |
14392 | | - </div> |
14393 | | - </div> |
14394 | | -</td> |
14395 | | -</tr> |
14396 | | - |
14397 | | - </table> |
14398 | | - <div class="methodsubtabletitle">Header parameters</div> |
14399 | | - <table id="methodsubtable"> |
14400 | | - <tr> |
14401 | | - <th width="150px">Name</th> |
14402 | | - <th>Description</th> |
14403 | | - </tr> |
14404 | | - <tr><td style="width:150px;">Xero-Tenant-Id<span style="color:red;">*</span></td> |
14405 | | -<td> |
14406 | | - |
14407 | | - |
14408 | | - <div id="d2e199_updatePayRun_xeroTenantId"> |
14409 | | - <div class="json-schema-view"> |
14410 | | - <div class="primitive"> |
14411 | | - <span class="type"> |
14412 | | - String |
14413 | | - </span> |
14414 | | - |
14415 | | - <div class="inner description marked"> |
14416 | | -Xero identifier for Tenant |
14417 | | - </div> |
14418 | | - </div> |
14419 | | - <div class="inner required"> |
14420 | | - Required |
14421 | | - </div> |
14422 | | - </div> |
14423 | | - </div> |
14424 | | -</td> |
14425 | | -</tr> |
14426 | | - |
14427 | | - <tr><td style="width:150px;">Idempotency-Key</td> |
14428 | | -<td> |
14429 | | - |
14430 | | - |
14431 | | - <div id="d2e199_updatePayRun_idempotencyKey"> |
14432 | | - <div class="json-schema-view"> |
14433 | | - <div class="primitive"> |
14434 | | - <span class="type"> |
14435 | | - String |
14436 | | - </span> |
14437 | | - |
14438 | | - <div class="inner description marked"> |
14439 | | -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
14440 | | - </div> |
14441 | | - </div> |
14442 | | - </div> |
14443 | | - </div> |
14444 | | -</td> |
14445 | | -</tr> |
14446 | | - |
14447 | | - </table> |
14448 | | - <div class="methodsubtabletitle">Body parameters</div> |
14449 | | - <table id="methodsubtable"> |
14450 | | - <tr> |
14451 | | - <th width="150px">Name</th> |
14452 | | - <th>Description</th> |
14453 | | - </tr> |
14454 | | - <tr><td style="width:150px;">payRun <span style="color:red;">*</span></td> |
14455 | | -<td> |
14456 | | -<div class="json-schema-view"> |
14457 | | - <div class="primitive"> |
14458 | | - <span class="type"> |
14459 | | - PayRun |
14460 | | - </span> |
14461 | | - |
14462 | | - <div class="inner description marked"> |
14463 | | - |
14464 | | - </div> |
14465 | | - </div> |
14466 | | - <div class="inner required"> |
14467 | | - Required |
14468 | | - </div> |
14469 | | - </div> |
14470 | | -<script type="application/ld+json"> |
14471 | | - { |
14472 | | - "content" : { |
14473 | | - "application/json" : { |
14474 | | - "schema" : { |
14475 | | - "$ref" : "#/components/schemas/PayRun" |
14476 | | - }, |
14477 | | - "example" : { |
14478 | | - "paymentDate" : "2019-07-01" |
14479 | | - } |
14480 | | - } |
14481 | | - }, |
14482 | | - "required" : true |
14483 | | -} |
14484 | 14301 | </script> |
14485 | 14302 | </table> |
14486 | 14303 | </article> |
|
0 commit comments