Skip to content

Commit 42533fe

Browse files
actions-userRyan McCarthy
andcommitted
[XAPI-1200] Fix build scripts (#389)
* [XAPI-1200] Handle output folder deletion in main script * [XAPI-1200] Use locally built docker image * [XAPI-1200] Check java installed and using correct version * [XAPI-1200] Rename docker file no longer just used for docs * [XAPI-1200] Added docker to run post generation checks in code-gen repo * [XAPI-1200] Update repository Now matches what is in upstream after manual change previously * [XAPI-1200] Do python processing with uv with pinned package versions * [XAPI-1200] Remove flake8 It's not doing anything right now, and we should move to ruff in the future anyway * [XAPI-1200] Newline fix * [XAPI-1200] Check java versions 11-21 * [XAPI-1200] Remove flake8 and other pip/python installing This is handled with uv now * [XAPI-1200] Run tests in uv * [XAPI-1200] Access host from inside container * [XAPI-1200] Use uv directly instead of docker --------- Co-authored-by: Ryan McCarthy <ryan.mccarthy+xero@xero.com>
1 parent b04770e commit 42533fe

File tree

567 files changed

+2255
-2921
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

567 files changed

+2255
-2921
lines changed

docs/v1/accounting/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,6 +2104,11 @@
21042104
"type" : "string",
21052105
"description" : "Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)"
21062106
},
2107+
"TaxNumberType" : {
2108+
"type" : "string",
2109+
"description" : "Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers",
2110+
"enum" : [ "SSN", "EIN", "ITIN", "ATIN" ]
2111+
},
21072112
"AccountsReceivableTaxType" : {
21082113
"type" : "string",
21092114
"description" : "The tax type from TaxRates"

docs/v1/payroll-nz/index.html

Lines changed: 0 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -4296,9 +4296,6 @@
42964296
<li data-group="PayrollNz" data-name="updateEmployeeTax" class="">
42974297
<a href="#api-PayrollNz-updateEmployeeTax">updateEmployeeTax</a>
42984298
</li>
4299-
<li data-group="PayrollNz" data-name="updatePayRun" class="">
4300-
<a href="#api-PayrollNz-updatePayRun">updatePayRun</a>
4301-
</li>
43024299
<li data-group="PayrollNz" data-name="updatePaySlipLineItems" class="">
43034300
<a href="#api-PayrollNz-updatePaySlipLineItems">updatePaySlipLineItems</a>
43044301
</li>
@@ -15022,196 +15019,6 @@ <h2>Parameters</h2>
1502215019
}
1502315020
},
1502415021
"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
1521515022
}
1521615023
</script>
1521715024
</table>

0 commit comments

Comments
 (0)