Skip to content

Commit 32425e4

Browse files
Merge pull request #350 from XeroAPI/update-to-XeroAPI-v2_39_1
update to OAS 2.40.0
2 parents 9912bd6 + 3cbe0a4 commit 32425e4

File tree

96 files changed

+8607
-1533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+8607
-1533
lines changed

docs/v4/accounting/index.html

Lines changed: 3246 additions & 674 deletions
Large diffs are not rendered by default.

docs/v4/appstore/index.html

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@
12371237
<nav id="scrollingNav">
12381238
<ul class="sidenav nav nav-list">
12391239
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1240-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.28.0</li>
1240+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.29.0</li>
12411241
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12421242
<li data-group="AppStore" data-name="getSubscription" class="">
12431243
<a href="#api-AppStore-getSubscription">getSubscription</a>
@@ -1501,9 +1501,10 @@ <h3>Usage and SDK Samples</h3>
15011501
UUID subscriptionId = '00000000-0000-0000-0000-000000000000';
15021502
UUID subscriptionItemId = UUID.fromString("00000000-0000-0000-0000-000000000000");
15031503
UUID subscriptionItemId = '00000000-0000-0000-0000-000000000000';
1504+
String idempotencyKey = 'KEY_VALUE';
15041505

15051506
try {
1506-
UsageRecord result = apiInstance.postUsageRecords(accessToken, subscriptionId, subscriptionItemId, createUsageRecord);
1507+
UsageRecord result = apiInstance.postUsageRecords(accessToken, subscriptionId, subscriptionItemId, createUsageRecord, idempotencyKey);
15071508
System.out.println(result);
15081509
} catch (XeroException e) {
15091510
System.err.println("Exception when calling AppStoreApi#postUsageRecords");
@@ -1579,6 +1580,33 @@ <h2>Parameters</h2>
15791580
</div>
15801581
</div>
15811582
</td>
1583+
</tr>
1584+
1585+
</table>
1586+
<div class="methodsubtabletitle">Header parameters</div>
1587+
<table id="methodsubtable">
1588+
<tr>
1589+
<th width="150px">Name</th>
1590+
<th>Description</th>
1591+
</tr>
1592+
<tr><td style="width:150px;">Idempotency-Key</td>
1593+
<td>
1594+
1595+
1596+
<div id="d2e199_postUsageRecords_idempotencyKey">
1597+
<div class="json-schema-view">
1598+
<div class="primitive">
1599+
<span class="type">
1600+
String
1601+
</span>
1602+
1603+
<div class="inner description marked">
1604+
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1605+
</div>
1606+
</div>
1607+
</div>
1608+
</div>
1609+
</td>
15821610
</tr>
15831611

15841612
</table>
@@ -1664,9 +1692,10 @@ <h3>Usage and SDK Samples</h3>
16641692
UUID subscriptionItemId = '00000000-0000-0000-0000-000000000000';
16651693
UUID usageRecordId = UUID.fromString("00000000-0000-0000-0000-000000000000");
16661694
UUID usageRecordId = '00000000-0000-0000-0000-000000000000';
1695+
String idempotencyKey = 'KEY_VALUE';
16671696

16681697
try {
1669-
UsageRecord result = apiInstance.putUsageRecords(accessToken, subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord);
1698+
UsageRecord result = apiInstance.putUsageRecords(accessToken, subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord, idempotencyKey);
16701699
System.out.println(result);
16711700
} catch (XeroException e) {
16721701
System.err.println("Exception when calling AppStoreApi#putUsageRecords");
@@ -1768,6 +1797,33 @@ <h2>Parameters</h2>
17681797
</div>
17691798
</div>
17701799
</td>
1800+
</tr>
1801+
1802+
</table>
1803+
<div class="methodsubtabletitle">Header parameters</div>
1804+
<table id="methodsubtable">
1805+
<tr>
1806+
<th width="150px">Name</th>
1807+
<th>Description</th>
1808+
</tr>
1809+
<tr><td style="width:150px;">Idempotency-Key</td>
1810+
<td>
1811+
1812+
1813+
<div id="d2e199_putUsageRecords_idempotencyKey">
1814+
<div class="json-schema-view">
1815+
<div class="primitive">
1816+
<span class="type">
1817+
String
1818+
</span>
1819+
1820+
<div class="inner description marked">
1821+
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1822+
</div>
1823+
</div>
1824+
</div>
1825+
</div>
1826+
</td>
17711827
</tr>
17721828

17731829
</table>

docs/v4/assets/index.html

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@
13881388
<nav id="scrollingNav">
13891389
<ul class="sidenav nav nav-list">
13901390
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1391-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.28.0</li>
1391+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.29.0</li>
13921392
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13931393
<li data-group="Asset" data-name="createAsset" class="">
13941394
<a href="#api-Asset-createAsset">createAsset</a>
@@ -1463,14 +1463,15 @@ <h3>Usage and SDK Samples</h3>
14631463

14641464
apiInstance = AccountingApi.getInstance(defaultClient);
14651465
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
1466+
String idempotencyKey = 'KEY_VALUE';
14661467

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

14721473
try {
1473-
Asset result = apiInstance.createAsset(accessToken, xeroTenantId, asset);
1474+
Asset result = apiInstance.createAsset(accessToken, xeroTenantId, asset, idempotencyKey);
14741475
System.out.println(result);
14751476
} catch (XeroException e) {
14761477
System.err.println("Exception when calling AssetApi#createAsset");
@@ -1517,6 +1518,26 @@ <h2>Parameters</h2>
15171518
</div>
15181519
</div>
15191520
</td>
1521+
</tr>
1522+
1523+
<tr><td style="width:150px;">Idempotency-Key</td>
1524+
<td>
1525+
1526+
1527+
<div id="d2e199_createAsset_idempotencyKey">
1528+
<div class="json-schema-view">
1529+
<div class="primitive">
1530+
<span class="type">
1531+
String
1532+
</span>
1533+
1534+
<div class="inner description marked">
1535+
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1536+
</div>
1537+
</div>
1538+
</div>
1539+
</div>
1540+
</td>
15201541
</tr>
15211542

15221543
</table>
@@ -1597,6 +1618,7 @@ <h3>Usage and SDK Samples</h3>
15971618

15981619
apiInstance = AccountingApi.getInstance(defaultClient);
15991620
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
1621+
String idempotencyKey = 'KEY_VALUE';
16001622

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

16141636
try {
1615-
AssetType result = apiInstance.createAssetType(accessToken, xeroTenantId, assetType);
1637+
AssetType result = apiInstance.createAssetType(accessToken, xeroTenantId, idempotencyKey, assetType);
16161638
System.out.println(result);
16171639
} catch (XeroException e) {
16181640
System.err.println("Exception when calling AssetApi#createAssetType");
@@ -1659,6 +1681,26 @@ <h2>Parameters</h2>
16591681
</div>
16601682
</div>
16611683
</td>
1684+
</tr>
1685+
1686+
<tr><td style="width:150px;">Idempotency-Key</td>
1687+
<td>
1688+
1689+
1690+
<div id="d2e199_createAssetType_idempotencyKey">
1691+
<div class="json-schema-view">
1692+
<div class="primitive">
1693+
<span class="type">
1694+
String
1695+
</span>
1696+
1697+
<div class="inner description marked">
1698+
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1699+
</div>
1700+
</div>
1701+
</div>
1702+
</div>
1703+
</td>
16621704
</tr>
16631705

16641706
</table>

0 commit comments

Comments
 (0)