|
4087 | 4087 | <nav id="scrollingNav"> |
4088 | 4088 | <ul class="sidenav nav nav-list"> |
4089 | 4089 | <li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li> |
4090 | | - <li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>9.1.0</li> |
| 4090 | + <li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>9.2.0</li> |
4091 | 4091 | <li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li> |
4092 | 4092 | <li data-group="PayrollNz" data-name="approveTimesheet" class=""> |
4093 | 4093 | <a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a> |
|
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> |
@@ -15022,196 +15019,6 @@ <h2>Parameters</h2> |
15022 | 15019 | } |
15023 | 15020 | }, |
15024 | 15021 | "required" : true |
15025 | | -} |
15026 | | - </script> |
15027 | | - </table> |
15028 | | - </article> |
15029 | | - </div> |
15030 | | - <hr> |
15031 | | - <div id="api-PayrollNz-updatePayRun"> |
15032 | | - <article id="api-PayrollNz-updatePayRun-0" data-group="User" data-name="updatePayRun" data-version="0"> |
15033 | | - <div class="pull-left"> |
15034 | | - <h1>updatePayRun</h1> |
15035 | | - <p>Updates a pay run</p> |
15036 | | - </div> |
15037 | | - <div class="pull-right"></div> |
15038 | | - <div class="clearfix"></div> |
15039 | | - <p></p> |
15040 | | - <p class="marked"></p> |
15041 | | - <p></p> |
15042 | | - <br /> |
15043 | | - <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/PayRuns/{PayRunID}</span></code></pre> |
15044 | | - <p> |
15045 | | - <h3>Usage and SDK Samples</h3> |
15046 | | - </p> |
15047 | | - <ul class="nav nav-tabs nav-tabs-examples"> |
15048 | | - <!-- *****REPLACE***** comment out the other languages <li> --> |
15049 | | - <li class=""><a href="#examples-PayrollNz-updatePayRun-0-python">Python</a></li> |
15050 | | - </ul> |
15051 | | - <div class="tab-content"> |
15052 | | - <!-- *****REPLACE***** comment out the other languages tab-pane --> |
15053 | | - <div class="tab-pane" id="examples-PayrollNz-updatePayRun-0-python"> |
15054 | | - <pre class="prettyprint"><code class="language-python"># configure api_client for use with xero-python sdk client |
15055 | | -api_client = ApiClient( |
15056 | | - Configuration( |
15057 | | - debug=false, |
15058 | | - oauth2_token=OAuth2Token( |
15059 | | - client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET" |
15060 | | - ), |
15061 | | - ), |
15062 | | - pool_threads=1, |
15063 | | -) |
15064 | | - |
15065 | | -api_client.set_oauth2_token("YOUR_ACCESS_TOKEN") |
15066 | | - |
15067 | | -def accounting_update_pay_run(): |
15068 | | - api_instance = PayrollNzApi(api_client) |
15069 | | - xero_tenant_id = 'xeroTenantId_example' |
15070 | | - pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' |
15071 | | - idempotency_key = 'KEY_VALUE' |
15072 | | - start_date = dateutil.parser.parse('2020-10-28T00:00:00Z') |
15073 | | - payment_date = dateutil.parser.parse('2020-10-30T00:00:00Z') |
15074 | | - |
15075 | | - pay_run_calendar = PayRunCalendar( |
15076 | | - calendar_type = calendar_type.WEEKLY, |
15077 | | - period_start_date = start_date, |
15078 | | - payment_date = payment_date) |
15079 | | - |
15080 | | - try: |
15081 | | - api_response = api_instance.update_pay_run(xero_tenant_id, pay_run_id, payRun, idempotency_key) |
15082 | | - print(api_response) |
15083 | | - except AccountingBadRequestException as e: |
15084 | | - print("Exception when calling PayrollNzApi->updatePayRun: %s\n" % e)</code></pre> |
15085 | | - </div> |
15086 | | - </div> |
15087 | | - <h2>Scopes</h2> |
15088 | | - <table> |
15089 | | - |
15090 | | - <tr> |
15091 | | - <td>payroll.payruns</td> |
15092 | | - <td>Grant read-write access to payroll payruns</td> |
15093 | | - </tr> |
15094 | | - |
15095 | | - </table> |
15096 | | - <h2>Parameters</h2> |
15097 | | - <div class="methodsubtabletitle">Path parameters</div> |
15098 | | - <table id="methodsubtable"> |
15099 | | - <tr> |
15100 | | - <th width="150px">Name</th> |
15101 | | - <th>Description</th> |
15102 | | - </tr> |
15103 | | - <tr><td style="width:150px;">PayRunID<span style="color:red;">*</span></td> |
15104 | | -<td> |
15105 | | - |
15106 | | - |
15107 | | - <div id="d2e199_updatePayRun_payRunID"> |
15108 | | - <div class="json-schema-view"> |
15109 | | - <div class="primitive"> |
15110 | | - <span class="type"> |
15111 | | - UUID |
15112 | | - </span> |
15113 | | - <span class="format"> |
15114 | | - (uuid) |
15115 | | - </span> |
15116 | | - |
15117 | | - <div class="inner description marked"> |
15118 | | -Identifier for the pay run |
15119 | | - </div> |
15120 | | - </div> |
15121 | | - <div class="inner required"> |
15122 | | - Required |
15123 | | - </div> |
15124 | | - </div> |
15125 | | - </div> |
15126 | | -</td> |
15127 | | -</tr> |
15128 | | - |
15129 | | - </table> |
15130 | | - <div class="methodsubtabletitle">Header parameters</div> |
15131 | | - <table id="methodsubtable"> |
15132 | | - <tr> |
15133 | | - <th width="150px">Name</th> |
15134 | | - <th>Description</th> |
15135 | | - </tr> |
15136 | | - <tr><td style="width:150px;">Xero-Tenant-Id<span style="color:red;">*</span></td> |
15137 | | -<td> |
15138 | | - |
15139 | | - |
15140 | | - <div id="d2e199_updatePayRun_xeroTenantId"> |
15141 | | - <div class="json-schema-view"> |
15142 | | - <div class="primitive"> |
15143 | | - <span class="type"> |
15144 | | - String |
15145 | | - </span> |
15146 | | - |
15147 | | - <div class="inner description marked"> |
15148 | | -Xero identifier for Tenant |
15149 | | - </div> |
15150 | | - </div> |
15151 | | - <div class="inner required"> |
15152 | | - Required |
15153 | | - </div> |
15154 | | - </div> |
15155 | | - </div> |
15156 | | -</td> |
15157 | | -</tr> |
15158 | | - |
15159 | | - <tr><td style="width:150px;">Idempotency-Key</td> |
15160 | | -<td> |
15161 | | - |
15162 | | - |
15163 | | - <div id="d2e199_updatePayRun_idempotencyKey"> |
15164 | | - <div class="json-schema-view"> |
15165 | | - <div class="primitive"> |
15166 | | - <span class="type"> |
15167 | | - String |
15168 | | - </span> |
15169 | | - |
15170 | | - <div class="inner description marked"> |
15171 | | -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. |
15172 | | - </div> |
15173 | | - </div> |
15174 | | - </div> |
15175 | | - </div> |
15176 | | -</td> |
15177 | | -</tr> |
15178 | | - |
15179 | | - </table> |
15180 | | - <div class="methodsubtabletitle">Body parameters</div> |
15181 | | - <table id="methodsubtable"> |
15182 | | - <tr> |
15183 | | - <th width="150px">Name</th> |
15184 | | - <th>Description</th> |
15185 | | - </tr> |
15186 | | - <tr> |
15187 | | - <td style="width:150px;">payRun <span style="color:red;">*</span></td> |
15188 | | - <td> |
15189 | | - <div class="json-schema-view"> |
15190 | | - <div class="primitive"> |
15191 | | - <span class="type"> |
15192 | | - PayRun |
15193 | | - </span> |
15194 | | - <div class="inner description marked"> |
15195 | | - |
15196 | | - </div> |
15197 | | - </div> |
15198 | | - <div class="inner required"> |
15199 | | - Required |
15200 | | - </div> |
15201 | | - </div> |
15202 | | - <script type="application/ld+json"> |
15203 | | - { |
15204 | | - "content" : { |
15205 | | - "application/json" : { |
15206 | | - "schema" : { |
15207 | | - "$ref" : "#/components/schemas/PayRun" |
15208 | | - }, |
15209 | | - "example" : { |
15210 | | - "paymentDate" : "2019-07-01" |
15211 | | - } |
15212 | | - } |
15213 | | - }, |
15214 | | - "required" : true |
15215 | 15022 | } |
15216 | 15023 | </script> |
15217 | 15024 | </table> |
|
0 commit comments