Skip to content

Commit 2478201

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 <[email protected]>
1 parent 566b671 commit 2478201

File tree

15 files changed

+31
-541
lines changed

15 files changed

+31
-541
lines changed

docs/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/payroll-nz/index.html

Lines changed: 0 additions & 183 deletions
Original file line numberDiff line numberDiff line change
@@ -4297,9 +4297,6 @@
42974297
<li data-group="PayrollNz" data-name="updateEmployeeTax" class="">
42984298
<a href="#api-PayrollNz-updateEmployeeTax">updateEmployeeTax</a>
42994299
</li>
4300-
<li data-group="PayrollNz" data-name="updatePayRun" class="">
4301-
<a href="#api-PayrollNz-updatePayRun">updatePayRun</a>
4302-
</li>
43034300
<li data-group="PayrollNz" data-name="updatePaySlipLineItems" class="">
43044301
<a href="#api-PayrollNz-updatePaySlipLineItems">updatePaySlipLineItems</a>
43054302
</li>
@@ -14301,186 +14298,6 @@ <h2>Parameters</h2>
1430114298
},
1430214299
"required" : true
1430314300
}
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-
}
1448414301
</script>
1448514302
</table>
1448614303
</article>

0 commit comments

Comments
 (0)