|
4296 | 4296 | <li data-group="PayrollNz" data-name="updateEmployeeTax" class=""> |
4297 | 4297 | <a href="#api-PayrollNz-updateEmployeeTax">updateEmployeeTax</a> |
4298 | 4298 | </li> |
4299 | | - <li data-group="PayrollNz" data-name="updatePayRun" class=""> |
4300 | | - <a href="#api-PayrollNz-updatePayRun">updatePayRun</a> |
4301 | | - </li> |
4302 | 4299 | <li data-group="PayrollNz" data-name="updatePaySlipLineItems" class=""> |
4303 | 4300 | <a href="#api-PayrollNz-updatePaySlipLineItems">updatePaySlipLineItems</a> |
4304 | 4301 | </li> |
@@ -14299,186 +14296,6 @@ <h2>Parameters</h2> |
14299 | 14296 | } |
14300 | 14297 | }, |
14301 | 14298 | "required" : true |
14302 | | -} |
14303 | | - </script> |
14304 | | - </table> |
14305 | | - </article> |
14306 | | - </div> |
14307 | | - <hr> |
14308 | | - <div id="api-PayrollNz-updatePayRun"> |
14309 | | - <article id="api-PayrollNz-updatePayRun-0" data-group="User" data-name="updatePayRun" data-version="0"> |
14310 | | - <div class="pull-left"> |
14311 | | - <h1>updatePayRun</h1> |
14312 | | - <p>Updates a pay run</p> |
14313 | | - </div> |
14314 | | - <div class="pull-right"></div> |
14315 | | - <div class="clearfix"></div> |
14316 | | - <p></p> |
14317 | | - <p class="marked"></p> |
14318 | | - <p></p> |
14319 | | - <br /> |
14320 | | - <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/PayRuns/{PayRunID}</span></code></pre> |
14321 | | - <p> |
14322 | | - <h3>Usage and SDK Samples</h3> |
14323 | | - </p> |
14324 | | - <ul class="nav nav-tabs nav-tabs-examples"> |
14325 | | - <!-- *****REPLACE***** comment out the other languages <li> --> |
14326 | | - <li class=""><a href="#examples-PayrollNz-updatePayRun-0-ruby">Ruby</a></li> |
14327 | | - </ul> |
14328 | | - <div class="tab-content"> |
14329 | | - <!-- *****REPLACE***** comment out the other languages tab-pane --> |
14330 | | - <div class="tab-pane" id="examples-PayrollNz-updatePayRun-0-ruby"> |
14331 | | - <pre class="prettyprint"><code class="language-ruby">xero_client.set_token_set(user.token_set) |
14332 | | - |
14333 | | -xero_tenant_id = 'xeroTenantId_example' |
14334 | | -pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' |
14335 | | -idempotency_key = 'KEY_VALUE' |
14336 | | -start_date = 'YYYY-MM-DD' |
14337 | | -payment_date = 'YYYY-MM-DD' |
14338 | | - |
14339 | | -pay_run_calendar = { |
14340 | | - calendar_type: XeroRuby::PayrollNz::calendar_type::WEEKLY, |
14341 | | - period_start_date: start_date, |
14342 | | - payment_date: payment_date |
14343 | | -} |
14344 | | - |
14345 | | -begin |
14346 | | - response = xero_client.accounting_api.update_pay_run(xero_tenant_id, pay_run_id, payRun, idempotency_key) |
14347 | | - return response |
14348 | | -rescue XeroRuby::ApiError => e |
14349 | | - puts "Exception when calling update_pay_run: #{e}" |
14350 | | -end |
14351 | | -</code></pre> |
14352 | | - </div> |
14353 | | - </div> |
14354 | | - <h2>Scopes</h2> |
14355 | | - <table> |
14356 | | - |
14357 | | - <tr> |
14358 | | - <td>payroll.payruns</td> |
14359 | | - <td>Grant read-write access to payroll payruns</td> |
14360 | | - </tr> |
14361 | | - |
14362 | | - </table> |
14363 | | - <h2>Parameters</h2> |
14364 | | - <div class="methodsubtabletitle">Path parameters</div> |
14365 | | - <table id="methodsubtable"> |
14366 | | - <tr> |
14367 | | - <th width="150px">Name</th> |
14368 | | - <th>Description</th> |
14369 | | - </tr> |
14370 | | - <tr><td style="width:150px;">PayRunID<span style="color:red;">*</span></td> |
14371 | | -<td> |
14372 | | - |
14373 | | - |
14374 | | - <div id="d2e199_updatePayRun_payRunID"> |
14375 | | - <div class="json-schema-view"> |
14376 | | - <div class="primitive"> |
14377 | | - <span class="type"> |
14378 | | - UUID |
14379 | | - </span> |
14380 | | - <span class="format"> |
14381 | | - (uuid) |
14382 | | - </span> |
14383 | | - |
14384 | | - <div class="inner description marked"> |
14385 | | -Identifier for the pay run |
14386 | | - </div> |
14387 | | - </div> |
14388 | | - <div class="inner required"> |
14389 | | - Required |
14390 | | - </div> |
14391 | | - </div> |
14392 | | - </div> |
14393 | | -</td> |
14394 | | -</tr> |
14395 | | - |
14396 | | - </table> |
14397 | | - <div class="methodsubtabletitle">Header parameters</div> |
14398 | | - <table id="methodsubtable"> |
14399 | | - <tr> |
14400 | | - <th width="150px">Name</th> |
14401 | | - <th>Description</th> |
14402 | | - </tr> |
14403 | | - <tr><td style="width:150px;">Xero-Tenant-Id<span style="color:red;">*</span></td> |
14404 | | -<td> |
14405 | | - |
14406 | | - |
14407 | | - <div id="d2e199_updatePayRun_xeroTenantId"> |
14408 | | - <div class="json-schema-view"> |
14409 | | - <div class="primitive"> |
14410 | | - <span class="type"> |
14411 | | - String |
14412 | | - </span> |
14413 | | - |
14414 | | - <div class="inner description marked"> |
14415 | | -Xero identifier for Tenant |
14416 | | - </div> |
14417 | | - </div> |
14418 | | - <div class="inner required"> |
14419 | | - Required |
14420 | | - </div> |
14421 | | - </div> |
14422 | | - </div> |
14423 | | -</td> |
14424 | | -</tr> |
14425 | | - |
14426 | | - <tr><td style="width:150px;">Idempotency-Key</td> |
14427 | | -<td> |
14428 | | - |
14429 | | - |
14430 | | - <div id="d2e199_updatePayRun_idempotencyKey"> |
14431 | | - <div class="json-schema-view"> |
14432 | | - <div class="primitive"> |
14433 | | - <span class="type"> |
14434 | | - String |
14435 | | - </span> |
14436 | | - |
14437 | | - <div class="inner description marked"> |
14438 | | -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
14439 | | - </div> |
14440 | | - </div> |
14441 | | - </div> |
14442 | | - </div> |
14443 | | -</td> |
14444 | | -</tr> |
14445 | | - |
14446 | | - </table> |
14447 | | - <div class="methodsubtabletitle">Body parameters</div> |
14448 | | - <table id="methodsubtable"> |
14449 | | - <tr> |
14450 | | - <th width="150px">Name</th> |
14451 | | - <th>Description</th> |
14452 | | - </tr> |
14453 | | - <tr> |
14454 | | - <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 | | - <div class="inner description marked"> |
14462 | | - |
14463 | | - </div> |
14464 | | - </div> |
14465 | | - <div class="inner required"> |
14466 | | - Required |
14467 | | - </div> |
14468 | | - </div> |
14469 | | - <script type="application/ld+json"> |
14470 | | - { |
14471 | | - "content" : { |
14472 | | - "application/json" : { |
14473 | | - "schema" : { |
14474 | | - "$ref" : "#/components/schemas/PayRun" |
14475 | | - }, |
14476 | | - "example" : { |
14477 | | - "paymentDate" : "2019-07-01" |
14478 | | - } |
14479 | | - } |
14480 | | - }, |
14481 | | - "required" : true |
14482 | 14299 | } |
14483 | 14300 | </script> |
14484 | 14301 | </table> |
|
0 commit comments