Skip to content

Commit

Permalink
update to XeroOpenAPI v2.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rdemarco-xero committed Aug 30, 2023
1 parent df28689 commit 85e3706
Show file tree
Hide file tree
Showing 28 changed files with 6,168 additions and 1,072 deletions.
4,013 changes: 3,270 additions & 743 deletions docs/accounting/index.html

Large diffs are not rendered by default.

62 changes: 59 additions & 3 deletions docs/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.35.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.36.0</li>
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
<li data-group="AppStore" data-name="getSubscription" class="">
<a href="#api-AppStore-getSubscription">getSubscription</a>
Expand Down Expand Up @@ -1465,9 +1465,10 @@ <h3>Usage and SDK Samples</h3>

const subscriptionId = '00000000-0000-0000-0000-000000000000';
const subscriptionItemId = '00000000-0000-0000-0000-000000000000';
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.postUsageRecords(subscriptionId, subscriptionItemId, createUsageRecord);
const response = await xero.accountingApi.postUsageRecords(subscriptionId, subscriptionItemId, createUsageRecord, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1541,6 +1542,33 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

</table>
<div class="methodsubtabletitle">Header parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">Idempotency-Key</td>
<td>


<div id="d2e199_postUsageRecords_idempotencyKey">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -1612,9 +1640,10 @@ <h3>Usage and SDK Samples</h3>
const subscriptionId = '00000000-0000-0000-0000-000000000000';
const subscriptionItemId = '00000000-0000-0000-0000-000000000000';
const usageRecordId = '00000000-0000-0000-0000-000000000000';
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.putUsageRecords(subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord);
const response = await xero.accountingApi.putUsageRecords(subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1714,6 +1743,33 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

</table>
<div class="methodsubtabletitle">Header parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">Idempotency-Key</td>
<td>


<div id="d2e199_putUsageRecords_idempotencyKey">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
48 changes: 45 additions & 3 deletions docs/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.35.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.36.0</li>
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
<li data-group="Asset" data-name="createAsset" class="">
<a href="#api-Asset-createAsset">createAsset</a>
Expand Down Expand Up @@ -1457,6 +1457,7 @@ <h3>Usage and SDK Samples</h3>
<pre class="prettyprint"><code class="language-javascript">await xero.setTokenSet(tokenSet);

const xeroTenantId = 'YOUR_XERO_TENANT_ID';
const idempotencyKey = 'KEY_VALUE';

const asset: Asset = {
assetname: "Other Computer",
Expand All @@ -1465,7 +1466,7 @@ <h3>Usage and SDK Samples</h3>
};

try {
const response = await xero.accountingApi.createAsset(xeroTenantId, asset);
const response = await xero.accountingApi.createAsset(xeroTenantId, asset, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1510,6 +1511,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">Idempotency-Key</td>
<td>


<div id="d2e199_createAsset_idempotencyKey">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -1579,6 +1600,7 @@ <h3>Usage and SDK Samples</h3>
<pre class="prettyprint"><code class="language-javascript">await xero.setTokenSet(tokenSet);

const xeroTenantId = 'YOUR_XERO_TENANT_ID';
const idempotencyKey = 'KEY_VALUE';

const bookDepreciationSetting: BookDepreciationSetting = {
depreciationMethod: "DiminishingValue100",
Expand All @@ -1596,7 +1618,7 @@ <h3>Usage and SDK Samples</h3>
};

try {
const response = await xero.accountingApi.createAssetType(xeroTenantId, assetType);
const response = await xero.accountingApi.createAssetType(xeroTenantId, idempotencyKey, assetType);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1641,6 +1663,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">Idempotency-Key</td>
<td>


<div id="d2e199_createAssetType_idempotencyKey">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
71 changes: 67 additions & 4 deletions docs/bankfeeds/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>4.35.0</li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>4.36.0</li>
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>
Expand Down Expand Up @@ -1336,9 +1336,10 @@ <h3>Usage and SDK Samples</h3>
<pre class="prettyprint"><code class="language-javascript">await xero.setTokenSet(tokenSet);

const xeroTenantId = 'xeroTenantId_example';
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.createFeedConnections(xeroTenantId, feedConnections);
const response = await xero.accountingApi.createFeedConnections(xeroTenantId, feedConnections, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1383,6 +1384,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">Idempotency-Key</td>
<td>


<div id="d2e199_createFeedConnections_idempotencyKey">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -1460,9 +1481,10 @@ <h3>Usage and SDK Samples</h3>
<pre class="prettyprint"><code class="language-javascript">await xero.setTokenSet(tokenSet);

const xeroTenantId = 'xeroTenantId_example';
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.createStatements(xeroTenantId, statements);
const response = await xero.accountingApi.createStatements(xeroTenantId, idempotencyKey, statements);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1507,6 +1529,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">Idempotency-Key</td>
<td>


<div id="d2e199_createStatements_idempotencyKey">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -1620,9 +1662,10 @@ <h3>Usage and SDK Samples</h3>
<pre class="prettyprint"><code class="language-javascript">await xero.setTokenSet(tokenSet);

const xeroTenantId = 'xeroTenantId_example';
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.deleteFeedConnections(xeroTenantId, feedConnections);
const response = await xero.accountingApi.deleteFeedConnections(xeroTenantId, feedConnections, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1667,6 +1710,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">Idempotency-Key</td>
<td>


<div id="d2e199_deleteFeedConnections_idempotencyKey">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
Loading

0 comments on commit 85e3706

Please sign in to comment.