Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from OpenAPI v3.0.0 #346

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 65 additions & 65 deletions docs/v2/accounting/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,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>2.23.3</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>3.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/v2/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,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>2.23.3</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>3.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 @@ -1629,7 +1629,7 @@ <h3>Usage and SDK Samples</h3>
$assetType->setBookDepreciationSetting($bookDepreciationSetting);

try {
$result = $apiInstance->createAssetType($xeroTenantId, $idempotencyKey, $assetType);
$result = $apiInstance->createAssetType($xeroTenantId, $assetType, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling AssetApi->createAssetType: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -1704,7 +1704,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">assetType </td>
<td style="width:150px;">assetType <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -1715,6 +1715,9 @@ <h2>Parameters</h2>
Asset type to add
</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -1726,7 +1729,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
32 changes: 22 additions & 10 deletions docs/v2/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,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>2.23.3</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>3.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 @@ -1266,7 +1266,7 @@ <h3>Usage and SDK Samples</h3>
$idempotencyKey = "KEY_VALUE";

try {
$result = $apiInstance->createFileAssociation($xeroTenantId, $fileId, $idempotencyKey, $association);
$result = $apiInstance->createFileAssociation($xeroTenantId, $fileId, $association, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling FilesApi->createFileAssociation: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -1374,7 +1374,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">association </td>
<td style="width:150px;">association <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -1385,6 +1385,9 @@ <h2>Parameters</h2>

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

try {
$result = $apiInstance->createFolder($xeroTenantId, $idempotencyKey, $folder);
$result = $apiInstance->createFolder($xeroTenantId, $folder, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling FilesApi->createFolder: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -1514,7 +1518,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">folder </td>
<td style="width:150px;">folder <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -1525,6 +1529,9 @@ <h2>Parameters</h2>

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

try {
$result = $apiInstance->updateFile($xeroTenantId, $fileId, $idempotencyKey, $fileObject);
$result = $apiInstance->updateFile($xeroTenantId, $fileId, $fileObject, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling FilesApi->updateFile: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -3299,7 +3307,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">fileObject </td>
<td style="width:150px;">fileObject <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -3310,6 +3318,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -3320,7 +3331,8 @@ <h2>Parameters</h2>
},
"example" : "{ \"FolderId\": \"bf924975-7097-46f2-a143-1ecfbab3c8c3\" }"
}
}
},
"required" : true
}
</script>
</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/v2/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2733,7 +2733,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>2.23.3</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>3.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
52 changes: 36 additions & 16 deletions docs/v2/payroll_au/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3411,7 +3411,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>2.23.3</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
Expand Down Expand Up @@ -7575,7 +7575,7 @@ <h3>Usage and SDK Samples</h3>
$employee->setHomeAddress($homeAddress);

try {
$result = $apiInstance->updateEmployee($xeroTenantId, $employeeID, $idempotencyKey, $employee);
$result = $apiInstance->updateEmployee($xeroTenantId, $employeeID, $employee, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling PayrollAuApi->updateEmployee: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -7683,7 +7683,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">employee </td>
<td style="width:150px;">employee <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -7694,6 +7694,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -7707,7 +7710,8 @@ <h2>Parameters</h2>
},
"example" : "[ { \"MiddleNames\": \"Frank\" } ]"
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -7945,7 +7949,7 @@ <h3>Usage and SDK Samples</h3>
$payRun->setPayrollCalendarID('00000000-0000-0000-0000-000000000000');

try {
$result = $apiInstance->updatePayRun($xeroTenantId, $payRunID, $idempotencyKey, $payRun);
$result = $apiInstance->updatePayRun($xeroTenantId, $payRunID, $payRun, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling PayrollAuApi->updatePayRun: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -8053,7 +8057,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">payRun </td>
<td style="width:150px;">payRun <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -8064,6 +8068,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -8077,7 +8084,8 @@ <h2>Parameters</h2>
}
}
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -8134,7 +8142,7 @@ <h3>Usage and SDK Samples</h3>
array_push($payslipLines, $payslipLine);

try {
$result = $apiInstance->updatePayslip($xeroTenantId, $payslipID, $idempotencyKey, $payslipLines);
$result = $apiInstance->updatePayslip($xeroTenantId, $payslipID, $payslipLines, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling PayrollAuApi->updatePayslip: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -8242,7 +8250,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">payslipLines </td>
<td style="width:150px;">payslipLines <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -8253,6 +8261,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -8266,7 +8277,8 @@ <h2>Parameters</h2>
},
"example" : "{ \"Payslip\": { \"EmployeeID\": \"cdfb8371-0b21-4b8a-8903-1024df6c391e\", \"DeductionLines\": [ { \"DeductionTypeID\": \"727af5e8-b347-4ae7-85fc-9b82266d0aec\", \"CalculationType\": \"FIXEDAMOUNT\", \"NumberOfUnits\": 10 } ] } }"
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -8315,7 +8327,7 @@ <h3>Usage and SDK Samples</h3>
$superfund->setUSI('40022701955002');

try {
$result = $apiInstance->updateSuperfund($xeroTenantId, $superFundID, $idempotencyKey, $superFund);
$result = $apiInstance->updateSuperfund($xeroTenantId, $superFundID, $superFund, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling PayrollAuApi->updateSuperfund: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -8423,7 +8435,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">superFund </td>
<td style="width:150px;">superFund <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -8434,6 +8446,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -8447,7 +8462,8 @@ <h2>Parameters</h2>
},
"example" : " [ { \"Type\":\"REGULATED\", \"Name\":\"Nice23534\" } ]"
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -8500,7 +8516,7 @@ <h3>Usage and SDK Samples</h3>
$timesheet->setStatus(XeroAPI\XeroPHP\Models\PayrollAu\TimesheetStatus::DRAFT);

try {
$result = $apiInstance->updateTimesheet($xeroTenantId, $timesheetID, $idempotencyKey, $timesheet);
$result = $apiInstance->updateTimesheet($xeroTenantId, $timesheetID, $timesheet, $idempotencyKey);
} catch (Exception $e) {
echo 'Exception when calling PayrollAuApi->updateTimesheet: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -8608,7 +8624,7 @@ <h2>Parameters</h2>
<th>Description</th>
</tr>
<tr>
<td style="width:150px;">timesheet </td>
<td style="width:150px;">timesheet <span style="color:red;">*</span></td>
<td>
<div class="json-schema-view">
<div class="primitive">
Expand All @@ -8619,6 +8635,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -8632,7 +8651,8 @@ <h2>Parameters</h2>
},
"example" : "[ { \"EmployeeID\":\"b34e89ff-770d-4099-b7e5-f968767118bc\", \"StartDate\":\"/Date(1573171200000+0000)/\", \"EndDate\":\"/Date(1573689600000+0000)/\", \"Status\":\"APPROVED\", \"Hours\":22.0, \"TimesheetID\":\"a7eb0a79-8511-4ee7-b473-3a25f28abcb9\", \"TimesheetLines\":[ { \"EarningsRateID\":\"ab874dfb-ab09-4c91-954e-43acf6fc23b4\", \"TrackingItemID\":\"af5e9ce2-2349-4136-be99-3561b189f473\", \"NumberOfUnits\":[ 2.0, 10.0, 0.0, 0.0, 5.0, 0.0, 5.0 ], \"UpdatedDateUTC\":\"/Date(1573516185127+0000)/\" } ] } ]"
}
}
},
"required" : true
}
</script>
</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/v2/payroll_nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3842,7 +3842,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>2.23.3</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>
Expand Down
Loading