|
4086 | 4086 | <nav id="scrollingNav"> |
4087 | 4087 | <ul class="sidenav nav nav-list"> |
4088 | 4088 | <li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li> |
4089 | | - <li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>10.1.0</li> |
| 4089 | + <li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>10.2.0</li> |
4090 | 4090 | <li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li> |
4091 | 4091 | <li data-group="PayrollNz" data-name="approveTimesheet" class=""> |
4092 | 4092 | <a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a> |
|
4295 | 4295 | <li data-group="PayrollNz" data-name="updateEmployeeTax" class=""> |
4296 | 4296 | <a href="#api-PayrollNz-updateEmployeeTax">updateEmployeeTax</a> |
4297 | 4297 | </li> |
4298 | | - <li data-group="PayrollNz" data-name="updatePayRun" class=""> |
4299 | | - <a href="#api-PayrollNz-updatePayRun">updatePayRun</a> |
4300 | | - </li> |
4301 | 4298 | <li data-group="PayrollNz" data-name="updatePaySlipLineItems" class=""> |
4302 | 4299 | <a href="#api-PayrollNz-updatePaySlipLineItems">updatePaySlipLineItems</a> |
4303 | 4300 | </li> |
@@ -14821,193 +14818,6 @@ <h2>Parameters</h2> |
14821 | 14818 | } |
14822 | 14819 | }, |
14823 | 14820 | "required" : true |
14824 | | -} |
14825 | | - </script> |
14826 | | - </table> |
14827 | | - </article> |
14828 | | - </div> |
14829 | | - <hr> |
14830 | | - <div id="api-PayrollNz-updatePayRun"> |
14831 | | - <article id="api-PayrollNz-updatePayRun-0" data-group="User" data-name="updatePayRun" data-version="0"> |
14832 | | - <div class="pull-left"> |
14833 | | - <h1>updatePayRun</h1> |
14834 | | - <p>Updates a pay run</p> |
14835 | | - </div> |
14836 | | - <div class="pull-right"></div> |
14837 | | - <div class="clearfix"></div> |
14838 | | - <p></p> |
14839 | | - <p class="marked"></p> |
14840 | | - <p></p> |
14841 | | - <br /> |
14842 | | - <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/PayRuns/{PayRunID}</span></code></pre> |
14843 | | - <p> |
14844 | | - <h3>Usage and SDK Samples</h3> |
14845 | | - </p> |
14846 | | - <ul class="nav nav-tabs nav-tabs-examples"> |
14847 | | - <!-- *****REPLACE***** comment out the other languages <li> --> |
14848 | | - <li class=""><a href="#examples-PayrollNz-updatePayRun-0-php">PHP</a></li> |
14849 | | - </ul> |
14850 | | - <div class="tab-content"> |
14851 | | - <!-- *****REPLACE***** comment out the other languages tab-pane --> |
14852 | | - <div class="tab-pane" id="examples-PayrollNz-updatePayRun-0-php"> |
14853 | | - <pre class="prettyprint"><code class="language-php"><?php |
14854 | | -require_once(__DIR__ . '/vendor/autoload.php'); |
14855 | | - |
14856 | | -// Configure OAuth2 access token for authorization: OAuth2 |
14857 | | -$config = XeroAPI\XeroPHP\Configuration::getDefaultConfiguration()->setAccessToken( 'YOUR_ACCESS_TOKEN' ); |
14858 | | - |
14859 | | -$apiInstance = new XeroAPI\XeroPHP\Api\PayrollNzApi( |
14860 | | - new GuzzleHttp\Client(), |
14861 | | - $config |
14862 | | -); |
14863 | | -$xeroTenantId = "xeroTenantId_example"; |
14864 | | -$payRunID = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; |
14865 | | -$idempotencyKey = "KEY_VALUE"; |
14866 | | -$startDate = new DateTime('2020-10-28'); |
14867 | | -$paymentDate = new DateTime('2020-10-30'); |
14868 | | - |
14869 | | -$payRunCalendar = new XeroAPI\XeroPHP\Models\PayrollNz\PayRunCalendar; |
14870 | | -$payRunCalendar->setCalendarType(XeroAPI\XeroPHP\Models\PayrollNz\CalendarType.WEEKLY); |
14871 | | -$payRunCalendar->setPeriodStartDate($startDate); |
14872 | | -$payRunCalendar->setPaymentDate($paymentDate); |
14873 | | - |
14874 | | -try { |
14875 | | - $result = $apiInstance->updatePayRun($xeroTenantId, $payRunID, $payRun, $idempotencyKey); |
14876 | | -} catch (Exception $e) { |
14877 | | - echo 'Exception when calling PayrollNzApi->updatePayRun: ', $e->getMessage(), PHP_EOL; |
14878 | | -} |
14879 | | -?> |
14880 | | -</code></pre> |
14881 | | - </div> |
14882 | | - </div> |
14883 | | - <h2>Scopes</h2> |
14884 | | - <table> |
14885 | | - |
14886 | | - <tr> |
14887 | | - <td>payroll.payruns</td> |
14888 | | - <td>Grant read-write access to payroll payruns</td> |
14889 | | - </tr> |
14890 | | - |
14891 | | - </table> |
14892 | | - <h2>Parameters</h2> |
14893 | | - <div class="methodsubtabletitle">Path parameters</div> |
14894 | | - <table id="methodsubtable"> |
14895 | | - <tr> |
14896 | | - <th width="150px">Name</th> |
14897 | | - <th>Description</th> |
14898 | | - </tr> |
14899 | | - <tr><td style="width:150px;">PayRunID<span style="color:red;">*</span></td> |
14900 | | -<td> |
14901 | | - |
14902 | | - |
14903 | | - <div id="d2e199_updatePayRun_payRunID"> |
14904 | | - <div class="json-schema-view"> |
14905 | | - <div class="primitive"> |
14906 | | - <span class="type"> |
14907 | | - UUID |
14908 | | - </span> |
14909 | | - <span class="format"> |
14910 | | - (uuid) |
14911 | | - </span> |
14912 | | - |
14913 | | - <div class="inner description marked"> |
14914 | | -Identifier for the pay run |
14915 | | - </div> |
14916 | | - </div> |
14917 | | - <div class="inner required"> |
14918 | | - Required |
14919 | | - </div> |
14920 | | - </div> |
14921 | | - </div> |
14922 | | -</td> |
14923 | | -</tr> |
14924 | | - |
14925 | | - </table> |
14926 | | - <div class="methodsubtabletitle">Header parameters</div> |
14927 | | - <table id="methodsubtable"> |
14928 | | - <tr> |
14929 | | - <th width="150px">Name</th> |
14930 | | - <th>Description</th> |
14931 | | - </tr> |
14932 | | - <tr><td style="width:150px;">Xero-Tenant-Id<span style="color:red;">*</span></td> |
14933 | | -<td> |
14934 | | - |
14935 | | - |
14936 | | - <div id="d2e199_updatePayRun_xeroTenantId"> |
14937 | | - <div class="json-schema-view"> |
14938 | | - <div class="primitive"> |
14939 | | - <span class="type"> |
14940 | | - String |
14941 | | - </span> |
14942 | | - |
14943 | | - <div class="inner description marked"> |
14944 | | -Xero identifier for Tenant |
14945 | | - </div> |
14946 | | - </div> |
14947 | | - <div class="inner required"> |
14948 | | - Required |
14949 | | - </div> |
14950 | | - </div> |
14951 | | - </div> |
14952 | | -</td> |
14953 | | -</tr> |
14954 | | - |
14955 | | - <tr><td style="width:150px;">Idempotency-Key</td> |
14956 | | -<td> |
14957 | | - |
14958 | | - |
14959 | | - <div id="d2e199_updatePayRun_idempotencyKey"> |
14960 | | - <div class="json-schema-view"> |
14961 | | - <div class="primitive"> |
14962 | | - <span class="type"> |
14963 | | - String |
14964 | | - </span> |
14965 | | - |
14966 | | - <div class="inner description marked"> |
14967 | | -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
14968 | | - </div> |
14969 | | - </div> |
14970 | | - </div> |
14971 | | - </div> |
14972 | | -</td> |
14973 | | -</tr> |
14974 | | - |
14975 | | - </table> |
14976 | | - <div class="methodsubtabletitle">Body parameters</div> |
14977 | | - <table id="methodsubtable"> |
14978 | | - <tr> |
14979 | | - <th width="150px">Name</th> |
14980 | | - <th>Description</th> |
14981 | | - </tr> |
14982 | | - <tr> |
14983 | | - <td style="width:150px;">payRun <span style="color:red;">*</span></td> |
14984 | | - <td> |
14985 | | - <div class="json-schema-view"> |
14986 | | - <div class="primitive"> |
14987 | | - <span class="type"> |
14988 | | - PayRun |
14989 | | - </span> |
14990 | | - <div class="inner description marked"> |
14991 | | - |
14992 | | - </div> |
14993 | | - </div> |
14994 | | - <div class="inner required"> |
14995 | | - Required |
14996 | | - </div> |
14997 | | - </div> |
14998 | | - <script type="application/ld+json"> |
14999 | | - { |
15000 | | - "content" : { |
15001 | | - "application/json" : { |
15002 | | - "schema" : { |
15003 | | - "$ref" : "#/components/schemas/PayRun" |
15004 | | - }, |
15005 | | - "example" : { |
15006 | | - "paymentDate" : "2019-07-01" |
15007 | | - } |
15008 | | - } |
15009 | | - }, |
15010 | | - "required" : true |
15011 | 14821 | } |
15012 | 14822 | </script> |
15013 | 14823 | </table> |
|
0 commit comments