Skip to content

Commit c8ef18c

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 0df1d6f commit c8ef18c

File tree

15 files changed

+123
-632
lines changed

15 files changed

+123
-632
lines changed

docs/v4/accounting/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,6 +2102,11 @@
21022102
"type" : "string",
21032103
"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)"
21042104
},
2105+
"TaxNumberType" : {
2106+
"type" : "string",
2107+
"description" : "Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers",
2108+
"enum" : [ "SSN", "EIN", "ITIN", "ATIN" ]
2109+
},
21052110
"AccountsReceivableTaxType" : {
21062111
"type" : "string",
21072112
"description" : "The tax type from TaxRates"

docs/v4/payroll-nz/index.html

Lines changed: 0 additions & 196 deletions
Original file line numberDiff line numberDiff line change
@@ -4292,9 +4292,6 @@
42924292
<li data-group="PayrollNz" data-name="updateEmployeeTax" class="">
42934293
<a href="#api-PayrollNz-updateEmployeeTax">updateEmployeeTax</a>
42944294
</li>
4295-
<li data-group="PayrollNz" data-name="updatePayRun" class="">
4296-
<a href="#api-PayrollNz-updatePayRun">updatePayRun</a>
4297-
</li>
42984295
<li data-group="PayrollNz" data-name="updatePaySlipLineItems" class="">
42994296
<a href="#api-PayrollNz-updatePaySlipLineItems">updatePaySlipLineItems</a>
43004297
</li>
@@ -15226,199 +15223,6 @@ <h2>Parameters</h2>
1522615223
}
1522715224
},
1522815225
"required" : true
15229-
}
15230-
</script>
15231-
</table>
15232-
</article>
15233-
</div>
15234-
<hr>
15235-
<div id="api-PayrollNz-updatePayRun">
15236-
<article id="api-PayrollNz-updatePayRun-0" data-group="User" data-name="updatePayRun" data-version="0">
15237-
<div class="pull-left">
15238-
<h1>updatePayRun</h1>
15239-
<p>Updates a pay run</p>
15240-
</div>
15241-
<div class="pull-right"></div>
15242-
<div class="clearfix"></div>
15243-
<p></p>
15244-
<p class="marked"></p>
15245-
<p></p>
15246-
<br />
15247-
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/PayRuns/{PayRunID}</span></code></pre>
15248-
<p>
15249-
<h3>Usage and SDK Samples</h3>
15250-
</p>
15251-
<ul class="nav nav-tabs nav-tabs-examples">
15252-
<li class=""><a href="#examples-PayrollNz-updatePayRun-0-java">Java</a></li>
15253-
</ul>
15254-
<div class="tab-content">
15255-
<div class="tab-pane" id="examples-PayrollNz-updatePayRun-0-java">
15256-
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.*;
15257-
import org.openapitools.client.api.client.PayrollNzApi;
15258-
import org.openapitools.client.models.payrollNz.*;
15259-
15260-
import java.io.File;
15261-
import java.util.*;
15262-
15263-
public class PayrollNzApiExample {
15264-
private PayrollNzApi apiInstance;
15265-
15266-
public static void main(String[] args) {
15267-
String accessToken = "YOUR_ACCESS_TOKEN";
15268-
ApiClient defaultClient = new ApiClient();
15269-
15270-
apiInstance = AccountingApi.getInstance(defaultClient);
15271-
String xeroTenantId = 'xeroTenantId_example';
15272-
UUID payRunID = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
15273-
UUID payRunID = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
15274-
String idempotencyKey = 'KEY_VALUE';
15275-
LocalDate startDate = LocalDate.of(2020, Month.OCTOBER, 28);
15276-
LocalDate paymentDate = LocalDate.of(2020, Month.OCTOBER, 30);
15277-
15278-
PayRunCalendar payRunCalendar = new PayRunCalendar();
15279-
payRunCalendar.setCalendarType(com.xero.models.payrollnz.CalendarType.WEEKLY);
15280-
payRunCalendar.setPeriodStartDate(startDate);
15281-
payRunCalendar.setPaymentDate(paymentDate);
15282-
15283-
try {
15284-
PayRunObject result = apiInstance.updatePayRun(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey);
15285-
System.out.println(result);
15286-
} catch (XeroException e) {
15287-
System.err.println("Exception when calling PayrollNzApi#updatePayRun");
15288-
e.printStackTrace();
15289-
}
15290-
}
15291-
}</code></pre>
15292-
</div>
15293-
</div>
15294-
<h2>Scopes</h2>
15295-
<table>
15296-
15297-
<tr>
15298-
<td>payroll.payruns</td>
15299-
<td>Grant read-write access to payroll payruns</td>
15300-
</tr>
15301-
15302-
</table>
15303-
<h2>Parameters</h2>
15304-
<div class="methodsubtabletitle">Path parameters</div>
15305-
<table id="methodsubtable">
15306-
<tr>
15307-
<th width="150px">Name</th>
15308-
<th>Description</th>
15309-
</tr>
15310-
<tr><td style="width:150px;">PayRunID<span style="color:red;">*</span></td>
15311-
<td>
15312-
15313-
15314-
<div id="d2e199_updatePayRun_payRunID">
15315-
<div class="json-schema-view">
15316-
<div class="primitive">
15317-
<span class="type">
15318-
UUID
15319-
</span>
15320-
<span class="format">
15321-
(uuid)
15322-
</span>
15323-
15324-
<div class="inner description marked">
15325-
Identifier for the pay run
15326-
</div>
15327-
</div>
15328-
<div class="inner required">
15329-
Required
15330-
</div>
15331-
</div>
15332-
</div>
15333-
</td>
15334-
</tr>
15335-
15336-
</table>
15337-
<div class="methodsubtabletitle">Header parameters</div>
15338-
<table id="methodsubtable">
15339-
<tr>
15340-
<th width="150px">Name</th>
15341-
<th>Description</th>
15342-
</tr>
15343-
<tr><td style="width:150px;">Xero-Tenant-Id<span style="color:red;">*</span></td>
15344-
<td>
15345-
15346-
15347-
<div id="d2e199_updatePayRun_xeroTenantId">
15348-
<div class="json-schema-view">
15349-
<div class="primitive">
15350-
<span class="type">
15351-
String
15352-
</span>
15353-
15354-
<div class="inner description marked">
15355-
Xero identifier for Tenant
15356-
</div>
15357-
</div>
15358-
<div class="inner required">
15359-
Required
15360-
</div>
15361-
</div>
15362-
</div>
15363-
</td>
15364-
</tr>
15365-
15366-
<tr><td style="width:150px;">Idempotency-Key</td>
15367-
<td>
15368-
15369-
15370-
<div id="d2e199_updatePayRun_idempotencyKey">
15371-
<div class="json-schema-view">
15372-
<div class="primitive">
15373-
<span class="type">
15374-
String
15375-
</span>
15376-
15377-
<div class="inner description marked">
15378-
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
15379-
</div>
15380-
</div>
15381-
</div>
15382-
</div>
15383-
</td>
15384-
</tr>
15385-
15386-
</table>
15387-
<div class="methodsubtabletitle">Body parameters</div>
15388-
<table id="methodsubtable">
15389-
<tr>
15390-
<th width="150px">Name</th>
15391-
<th>Description</th>
15392-
</tr>
15393-
<tr>
15394-
<td style="width:150px;">payRun <span style="color:red;">*</span></td>
15395-
<td>
15396-
<div class="json-schema-view">
15397-
<div class="primitive">
15398-
<span class="type">
15399-
PayRun
15400-
</span>
15401-
<div class="inner description marked">
15402-
15403-
</div>
15404-
</div>
15405-
<div class="inner required">
15406-
Required
15407-
</div>
15408-
</div>
15409-
<script type="application/ld+json">
15410-
{
15411-
"content" : {
15412-
"application/json" : {
15413-
"schema" : {
15414-
"$ref" : "#/components/schemas/PayRun"
15415-
},
15416-
"example" : {
15417-
"paymentDate" : "2019-07-01"
15418-
}
15419-
}
15420-
},
15421-
"required" : true
1542215226
}
1542315227
</script>
1542415228
</table>

0 commit comments

Comments
 (0)