Skip to content

Commit

Permalink
Merge pull request #350 from XeroAPI/update-to-XeroAPI-v2_39_1
Browse files Browse the repository at this point in the history
update to OAS 2.40.0
  • Loading branch information
rdemarco-xero committed Aug 29, 2023
2 parents 9912bd6 + 3cbe0a4 commit 32425e4
Show file tree
Hide file tree
Showing 96 changed files with 8,607 additions and 1,533 deletions.
3,920 changes: 3,246 additions & 674 deletions docs/v4/accounting/index.html

Large diffs are not rendered by default.

62 changes: 59 additions & 3 deletions docs/v4/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,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.28.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.29.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 @@ -1501,9 +1501,10 @@ <h3>Usage and SDK Samples</h3>
UUID subscriptionId = '00000000-0000-0000-0000-000000000000';
UUID subscriptionItemId = UUID.fromString("00000000-0000-0000-0000-000000000000");
UUID subscriptionItemId = '00000000-0000-0000-0000-000000000000';
String idempotencyKey = 'KEY_VALUE';

try {
UsageRecord result = apiInstance.postUsageRecords(accessToken, subscriptionId, subscriptionItemId, createUsageRecord);
UsageRecord result = apiInstance.postUsageRecords(accessToken, subscriptionId, subscriptionItemId, createUsageRecord, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AppStoreApi#postUsageRecords");
Expand Down Expand Up @@ -1579,6 +1580,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 @@ -1664,9 +1692,10 @@ <h3>Usage and SDK Samples</h3>
UUID subscriptionItemId = '00000000-0000-0000-0000-000000000000';
UUID usageRecordId = UUID.fromString("00000000-0000-0000-0000-000000000000");
UUID usageRecordId = '00000000-0000-0000-0000-000000000000';
String idempotencyKey = 'KEY_VALUE';

try {
UsageRecord result = apiInstance.putUsageRecords(accessToken, subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord);
UsageRecord result = apiInstance.putUsageRecords(accessToken, subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AppStoreApi#putUsageRecords");
Expand Down Expand Up @@ -1768,6 +1797,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/v4/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,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.28.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.29.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 @@ -1463,14 +1463,15 @@ <h3>Usage and SDK Samples</h3>

apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
String idempotencyKey = 'KEY_VALUE';

Asset asset = new Asset();
asset.setassetName("Other Computer");
asset.setassetNumber("FA-00210");
asset.setStatus(com.xero.models.assets.AssetStatus.DRAFT);

try {
Asset result = apiInstance.createAsset(accessToken, xeroTenantId, asset);
Asset result = apiInstance.createAsset(accessToken, xeroTenantId, asset, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AssetApi#createAsset");
Expand Down Expand Up @@ -1517,6 +1518,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 @@ -1597,6 +1618,7 @@ <h3>Usage and SDK Samples</h3>

apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
String idempotencyKey = 'KEY_VALUE';

BookDepreciationSetting bookDepreciationSetting = new BookDepreciationSetting();
bookDepreciationSetting.setDepreciationMethod("DiminishingValue100");
Expand All @@ -1612,7 +1634,7 @@ <h3>Usage and SDK Samples</h3>
assetType.setBookDepreciationSetting(bookDepreciationSetting);

try {
AssetType result = apiInstance.createAssetType(accessToken, xeroTenantId, assetType);
AssetType result = apiInstance.createAssetType(accessToken, xeroTenantId, idempotencyKey, assetType);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AssetApi#createAssetType");
Expand Down Expand Up @@ -1659,6 +1681,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
Loading

0 comments on commit 32425e4

Please sign in to comment.