Skip to content

Commit 0008d8c

Browse files
authored
Merge pull request #336 from XeroAPI/xero-php-2.23.2
Build from OAS 2.40.1
2 parents 12cfc1e + aad4f14 commit 0008d8c

27 files changed

+18459
-10765
lines changed

docs/v2/accounting/index.html

Lines changed: 3288 additions & 737 deletions
Large diffs are not rendered by default.

docs/v2/appstore/index.html

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@
12401240
<nav id="scrollingNav">
12411241
<ul class="sidenav nav nav-list">
12421242
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1243-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>2.21.0</li>
1243+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>2.23.2</li>
12441244
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12451245
<li data-group="AppStore" data-name="getSubscription" class="">
12461246
<a href="#api-AppStore-getSubscription">getSubscription</a>
@@ -1487,9 +1487,10 @@ <h3>Usage and SDK Samples</h3>
14871487
);
14881488
$subscriptionId = "&quot;00000000-0000-0000-0000-000000000000&quot;";
14891489
$subscriptionItemId = "&quot;00000000-0000-0000-0000-000000000000&quot;";
1490+
$idempotencyKey = "KEY_VALUE";
14901491

14911492
try {
1492-
$result = $apiInstance->postUsageRecords($subscriptionId, $subscriptionItemId, $createUsageRecord);
1493+
$result = $apiInstance->postUsageRecords($subscriptionId, $subscriptionItemId, $createUsageRecord, $idempotencyKey);
14931494
} catch (Exception $e) {
14941495
echo 'Exception when calling AppStoreApi->postUsageRecords: ', $e->getMessage(), PHP_EOL;
14951496
}
@@ -1563,6 +1564,33 @@ <h2>Parameters</h2>
15631564
</div>
15641565
</div>
15651566
</td>
1567+
</tr>
1568+
1569+
</table>
1570+
<div class="methodsubtabletitle">Header parameters</div>
1571+
<table id="methodsubtable">
1572+
<tr>
1573+
<th width="150px">Name</th>
1574+
<th>Description</th>
1575+
</tr>
1576+
<tr><td style="width:150px;">Idempotency-Key</td>
1577+
<td>
1578+
1579+
1580+
<div id="d2e199_postUsageRecords_idempotencyKey">
1581+
<div class="json-schema-view">
1582+
<div class="primitive">
1583+
<span class="type">
1584+
String
1585+
</span>
1586+
1587+
<div class="inner description marked">
1588+
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1589+
</div>
1590+
</div>
1591+
</div>
1592+
</div>
1593+
</td>
15661594
</tr>
15671595

15681596
</table>
@@ -1642,9 +1670,10 @@ <h3>Usage and SDK Samples</h3>
16421670
$subscriptionId = "&quot;00000000-0000-0000-0000-000000000000&quot;";
16431671
$subscriptionItemId = "&quot;00000000-0000-0000-0000-000000000000&quot;";
16441672
$usageRecordId = "&quot;00000000-0000-0000-0000-000000000000&quot;";
1673+
$idempotencyKey = "KEY_VALUE";
16451674

16461675
try {
1647-
$result = $apiInstance->putUsageRecords($subscriptionId, $subscriptionItemId, $usageRecordId, $updateUsageRecord);
1676+
$result = $apiInstance->putUsageRecords($subscriptionId, $subscriptionItemId, $usageRecordId, $updateUsageRecord, $idempotencyKey);
16481677
} catch (Exception $e) {
16491678
echo 'Exception when calling AppStoreApi->putUsageRecords: ', $e->getMessage(), PHP_EOL;
16501679
}
@@ -1744,6 +1773,33 @@ <h2>Parameters</h2>
17441773
</div>
17451774
</div>
17461775
</td>
1776+
</tr>
1777+
1778+
</table>
1779+
<div class="methodsubtabletitle">Header parameters</div>
1780+
<table id="methodsubtable">
1781+
<tr>
1782+
<th width="150px">Name</th>
1783+
<th>Description</th>
1784+
</tr>
1785+
<tr><td style="width:150px;">Idempotency-Key</td>
1786+
<td>
1787+
1788+
1789+
<div id="d2e199_putUsageRecords_idempotencyKey">
1790+
<div class="json-schema-view">
1791+
<div class="primitive">
1792+
<span class="type">
1793+
String
1794+
</span>
1795+
1796+
<div class="inner description marked">
1797+
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1798+
</div>
1799+
</div>
1800+
</div>
1801+
</div>
1802+
</td>
17471803
</tr>
17481804

17491805
</table>

docs/v2/assets/index.html

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@
13911391
<nav id="scrollingNav">
13921392
<ul class="sidenav nav nav-list">
13931393
<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>2.21.0</li>
1394+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>2.23.2</li>
13951395
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13961396
<li data-group="Asset" data-name="createAsset" class="">
13971397
<a href="#api-Asset-createAsset">createAsset</a>
@@ -1463,14 +1463,15 @@ <h3>Usage and SDK Samples</h3>
14631463
$config
14641464
);
14651465
$xeroTenantId = "YOUR_XERO_TENANT_ID";
1466+
$idempotencyKey = "KEY_VALUE";
14661467

14671468
$asset = new XeroAPI\XeroPHP\Models\Asset\Asset;
14681469
$asset->setassetName('Other Computer');
14691470
$asset->setassetNumber('FA-00210');
14701471
$asset->setStatus(XeroAPI\XeroPHP\Models\Asset\AssetStatus::Draft);
14711472

14721473
try {
1473-
$result = $apiInstance->createAsset($xeroTenantId, $asset);
1474+
$result = $apiInstance->createAsset($xeroTenantId, $asset, $idempotencyKey);
14741475
} catch (Exception $e) {
14751476
echo 'Exception when calling AssetApi->createAsset: ', $e->getMessage(), PHP_EOL;
14761477
}
@@ -1515,6 +1516,26 @@ <h2>Parameters</h2>
15151516
</div>
15161517
</div>
15171518
</td>
1519+
</tr>
1520+
1521+
<tr><td style="width:150px;">Idempotency-Key</td>
1522+
<td>
1523+
1524+
1525+
<div id="d2e199_createAsset_idempotencyKey">
1526+
<div class="json-schema-view">
1527+
<div class="primitive">
1528+
<span class="type">
1529+
String
1530+
</span>
1531+
1532+
<div class="inner description marked">
1533+
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1534+
</div>
1535+
</div>
1536+
</div>
1537+
</div>
1538+
</td>
15181539
</tr>
15191540

15201541
</table>
@@ -1592,6 +1613,7 @@ <h3>Usage and SDK Samples</h3>
15921613
$config
15931614
);
15941615
$xeroTenantId = "YOUR_XERO_TENANT_ID";
1616+
$idempotencyKey = "KEY_VALUE";
15951617

15961618
$bookDepreciationSetting = new XeroAPI\XeroPHP\Models\Asset\BookDepreciationSetting;
15971619
$bookDepreciationSetting->setDepreciationMethod('DiminishingValue100');
@@ -1607,7 +1629,7 @@ <h3>Usage and SDK Samples</h3>
16071629
$assetType->setBookDepreciationSetting($bookDepreciationSetting);
16081630

16091631
try {
1610-
$result = $apiInstance->createAssetType($xeroTenantId, $assetType);
1632+
$result = $apiInstance->createAssetType($xeroTenantId, $idempotencyKey, $assetType);
16111633
} catch (Exception $e) {
16121634
echo 'Exception when calling AssetApi->createAssetType: ', $e->getMessage(), PHP_EOL;
16131635
}
@@ -1652,6 +1674,26 @@ <h2>Parameters</h2>
16521674
</div>
16531675
</div>
16541676
</td>
1677+
</tr>
1678+
1679+
<tr><td style="width:150px;">Idempotency-Key</td>
1680+
<td>
1681+
1682+
1683+
<div id="d2e199_createAssetType_idempotencyKey">
1684+
<div class="json-schema-view">
1685+
<div class="primitive">
1686+
<span class="type">
1687+
String
1688+
</span>
1689+
1690+
<div class="inner description marked">
1691+
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1692+
</div>
1693+
</div>
1694+
</div>
1695+
</div>
1696+
</td>
16551697
</tr>
16561698

16571699
</table>

0 commit comments

Comments
 (0)