Skip to content

Commit

Permalink
Merge pull request #667 from XeroAPI/xero-node-5.0.0
Browse files Browse the repository at this point in the history
Build from OpenAPI v3.0.0
  • Loading branch information
manishT72 authored Feb 5, 2024
2 parents f08eaad + 745de5e commit 95a806c
Show file tree
Hide file tree
Showing 20 changed files with 298 additions and 208 deletions.
130 changes: 65 additions & 65 deletions docs/accounting/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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.39.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>5.0.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
12 changes: 8 additions & 4 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.39.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>5.0.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 @@ -1618,7 +1618,7 @@ <h3>Usage and SDK Samples</h3>
};

try {
const response = await xero.accountingApi.createAssetType(xeroTenantId, idempotencyKey, assetType);
const response = await xero.accountingApi.createAssetType(xeroTenantId, assetType, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1692,7 +1692,7 @@ <h2>Parameters</h2>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">assetType </td>
<tr><td style="width:150px;">assetType <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -1704,6 +1704,9 @@ <h2>Parameters</h2>
Asset type to add
</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -1715,7 +1718,8 @@ <h2>Parameters</h2>
},
"example" : "{ \"assetTypeName\":\"Machinery11004\", \"fixedAssetAccountId\":\"3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82\", \"depreciationExpenseAccountId\":\"d1602f69-f900-4616-8d34-90af393fa368\", \"accumulatedDepreciationAccountId\":\"9195cadd-8645-41e6-9f67-7bcd421defe8\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"DiminishingValue100\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.05, \"depreciationCalculationMethod\":\"None\" } }"
}
}
},
"required" : true
}
</script>
</table>
Expand Down
12 changes: 8 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.39.0</li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>5.0.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 @@ -1484,7 +1484,7 @@ <h3>Usage and SDK Samples</h3>
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.createStatements(xeroTenantId, idempotencyKey, statements);
const response = await xero.accountingApi.createStatements(xeroTenantId, statements, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1558,7 +1558,7 @@ <h2>Parameters</h2>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">statements </td>
<tr><td style="width:150px;">statements <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -1570,6 +1570,9 @@ <h2>Parameters</h2>
Statements array of objects in the body
</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand Down Expand Up @@ -1629,7 +1632,8 @@ <h2>Parameters</h2>
} ]
}
}
}
},
"required" : true
}
</script>
</table>
Expand Down
32 changes: 22 additions & 10 deletions docs/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.39.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
<li data-group="Files" data-name="createFileAssociation" class="">
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
Expand Down Expand Up @@ -1260,7 +1260,7 @@ <h3>Usage and SDK Samples</h3>
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.createFileAssociation(xeroTenantId, fileId, idempotencyKey, association);
const response = await xero.accountingApi.createFileAssociation(xeroTenantId, fileId, association, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1367,7 +1367,7 @@ <h2>Parameters</h2>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">association </td>
<tr><td style="width:150px;">association <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -1379,6 +1379,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -1389,7 +1392,8 @@ <h2>Parameters</h2>
},
"example" : "{ \"ObjectId\": \"1270bf7c-5d18-473a-9231-1e36c4bd33ed\", \"ObjectGroup\": \"Contact\", \"ObjectType\": \"Business\" }"
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -1425,7 +1429,7 @@ <h3>Usage and SDK Samples</h3>
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.createFolder(xeroTenantId, idempotencyKey, folder);
const response = await xero.accountingApi.createFolder(xeroTenantId, folder, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -1499,7 +1503,7 @@ <h2>Parameters</h2>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">folder </td>
<tr><td style="width:150px;">folder <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -1511,6 +1515,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -1521,7 +1528,8 @@ <h2>Parameters</h2>
},
"example" : "{ \"Name\": \"My Docs\" }"
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -3073,7 +3081,7 @@ <h3>Usage and SDK Samples</h3>
const idempotencyKey = 'KEY_VALUE';

try {
const response = await xero.accountingApi.updateFile(xeroTenantId, fileId, idempotencyKey, fileObject);
const response = await xero.accountingApi.updateFile(xeroTenantId, fileId, fileObject, idempotencyKey);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -3180,7 +3188,7 @@ <h2>Parameters</h2>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">fileObject </td>
<tr><td style="width:150px;">fileObject <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -3192,6 +3200,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -3202,7 +3213,8 @@ <h2>Parameters</h2>
},
"example" : "{ \"FolderId\": \"bf924975-7097-46f2-a143-1ecfbab3c8c3\" }"
}
}
},
"required" : true
}
</script>
</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2735,7 +2735,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>4.39.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>
Expand Down
Loading

0 comments on commit 95a806c

Please sign in to comment.