Skip to content

Commit 87a7abf

Browse files
Merge pull request #773 from XeroAPI/13.2.0
Build for version - 13.2.0
2 parents 566b671 + 408a389 commit 87a7abf

File tree

24 files changed

+128
-564
lines changed

24 files changed

+128
-564
lines changed

docs/accounting/index.html

Lines changed: 8 additions & 3 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"
@@ -6340,7 +6345,7 @@
63406345
<nav id="scrollingNav">
63416346
<ul class="sidenav nav nav-list">
63426347
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6343-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>13.1.0</li>
6348+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>13.2.0</li>
63446349
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
63456350
<li data-group="Accounting" data-name="createAccount" class="">
63466351
<a href="#api-Accounting-createAccount">createAccount</a>
@@ -23074,7 +23079,7 @@ <h2>Scopes</h2>
2307423079

2307523080
<tr>
2307623081
<td>accounting.budgets.read</td>
23077-
<td></td>
23082+
<td>Grant read-only access to read budgets</td>
2307823083
</tr>
2307923084

2308023085
</table>
@@ -23242,7 +23247,7 @@ <h2>Scopes</h2>
2324223247

2324323248
<tr>
2324423249
<td>accounting.budgets.read</td>
23245-
<td></td>
23250+
<td>Grant read-only access to read budgets</td>
2324623251
</tr>
2324723252

2324823253
</table>

docs/appstore/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@
12421242
<nav id="scrollingNav">
12431243
<ul class="sidenav nav nav-list">
12441244
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1245-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>13.1.0</li>
1245+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>13.2.0</li>
12461246
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12471247
<li data-group="AppStore" data-name="getSubscription" class="">
12481248
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/assets/index.html

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,35 @@
10771077
"format" : "double",
10781078
"example" : 5.0,
10791079
"x-is-money" : true
1080+
},
1081+
"businessUseCapitalGain" : {
1082+
"type" : "number",
1083+
"description" : "(New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its business use.",
1084+
"format" : "decimal",
1085+
"x-is-money" : true
1086+
},
1087+
"businessUseCurrentGainLoss" : {
1088+
"type" : "number",
1089+
"description" : "(New Zealand Orgs Only) Represents the gain or loss from the disposal of the business use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s business use.",
1090+
"format" : "decimal",
1091+
"x-is-money" : true
1092+
},
1093+
"privateUseCapitalGain" : {
1094+
"type" : "number",
1095+
"description" : "(New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its private (non-business) use.",
1096+
"format" : "decimal",
1097+
"x-is-money" : true
1098+
},
1099+
"privateUseCurrentGainLoss" : {
1100+
"type" : "number",
1101+
"description" : "(New Zealand Orgs Only) Represents the gain or loss from the disposal of the private use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s private use.",
1102+
"format" : "decimal",
1103+
"x-is-money" : true
1104+
},
1105+
"initialDeductionPercentage" : {
1106+
"type" : "number",
1107+
"description" : "(New Zealand Orgs Only) The Investment Boost deduction percentage.",
1108+
"format" : "decimal"
10801109
}
10811110
},
10821111
"description" : ""
@@ -1391,7 +1420,7 @@
13911420
<nav id="scrollingNav">
13921421
<ul class="sidenav nav nav-list">
13931422
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1394-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>13.1.0</li>
1423+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>13.2.0</li>
13951424
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13961425
<li data-group="Asset" data-name="createAsset" class="">
13971426
<a href="#api-Asset-createAsset">createAsset</a>

docs/bankfeeds/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@
12691269
<nav id="scrollingNav">
12701270
<ul class="sidenav nav nav-list">
12711271
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
1272-
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>13.1.0</li>
1272+
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>13.2.0</li>
12731273
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
12741274
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
12751275
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>

docs/files/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@
11711171
<nav id="scrollingNav">
11721172
<ul class="sidenav nav nav-list">
11731173
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1174-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>13.1.0</li>
1174+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>13.2.0</li>
11751175
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11761176
<li data-group="Files" data-name="createFileAssociation" class="">
11771177
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/finance/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2717,7 +2717,7 @@
27172717
<nav id="scrollingNav">
27182718
<ul class="sidenav nav nav-list">
27192719
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2720-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>13.1.0</li>
2720+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>13.2.0</li>
27212721
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27222722
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27232723
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/payroll-au/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,7 @@
34133413
<nav id="scrollingNav">
34143414
<ul class="sidenav nav nav-list">
34153415
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3416-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>13.1.0</li>
3416+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>13.2.0</li>
34173417
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34183418
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34193419
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>

docs/payroll-nz/index.html

Lines changed: 1 addition & 184 deletions
Original file line numberDiff line numberDiff line change
@@ -4088,7 +4088,7 @@
40884088
<nav id="scrollingNav">
40894089
<ul class="sidenav nav nav-list">
40904090
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
4091-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>13.1.0</li>
4091+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>13.2.0</li>
40924092
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
40934093
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
40944094
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>
@@ -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)