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

makes SDK compliant with JakartaEE #361

Merged
merged 3 commits into from
Feb 23, 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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,6 @@ dist/
nbdist/
.nb-gradle/
*.log
.build_notes.md
.build_notes.md

.vscode
139 changes: 73 additions & 66 deletions docs/v4/accounting/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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.30.1</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/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.30.1</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 @@ -1634,7 +1634,7 @@ <h3>Usage and SDK Samples</h3>
assetType.setBookDepreciationSetting(bookDepreciationSetting);

try {
AssetType result = apiInstance.createAssetType(accessToken, xeroTenantId, idempotencyKey, assetType);
AssetType result = apiInstance.createAssetType(accessToken, xeroTenantId, assetType, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AssetApi#createAssetType");
Expand Down Expand Up @@ -1711,7 +1711,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 @@ -1722,6 +1722,9 @@ <h2>Parameters</h2>
Asset type to add
</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -1733,7 +1736,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/v4/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,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.30.1</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 @@ -1245,7 +1245,7 @@ <h3>Usage and SDK Samples</h3>
String idempotencyKey = 'KEY_VALUE';

try {
Association result = apiInstance.createFileAssociation(accessToken, xeroTenantId, fileId, idempotencyKey, association);
Association result = apiInstance.createFileAssociation(accessToken, xeroTenantId, fileId, association, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling FilesApi#createFileAssociation");
Expand Down Expand Up @@ -1355,7 +1355,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 @@ -1366,6 +1366,9 @@ <h2>Parameters</h2>

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

try {
Folder result = apiInstance.createFolder(accessToken, xeroTenantId, idempotencyKey, folder);
Folder result = apiInstance.createFolder(accessToken, xeroTenantId, folder, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling FilesApi#createFolder");
Expand Down Expand Up @@ -1500,7 +1504,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 @@ -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 @@ -3247,7 +3255,7 @@ <h3>Usage and SDK Samples</h3>
String idempotencyKey = 'KEY_VALUE';

try {
FileObject result = apiInstance.updateFile(accessToken, xeroTenantId, fileId, idempotencyKey, fileObject);
FileObject result = apiInstance.updateFile(accessToken, xeroTenantId, fileId, fileObject, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling FilesApi#updateFile");
Expand Down Expand Up @@ -3357,7 +3365,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 @@ -3368,6 +3376,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -3378,7 +3389,8 @@ <h2>Parameters</h2>
},
"example" : "{ \"FolderId\": \"bf924975-7097-46f2-a143-1ecfbab3c8c3\" }"
}
}
},
"required" : true
}
</script>
</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/v4/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,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.30.1</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
52 changes: 36 additions & 16 deletions docs/v4/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>4.30.1</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>5.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 @@ -7731,7 +7731,7 @@ <h3>Usage and SDK Samples</h3>
employee.setHomeAddress(homeAddress);

try {
Employees result = apiInstance.updateEmployee(accessToken, xeroTenantId, employeeID, idempotencyKey, employee);
Employees result = apiInstance.updateEmployee(accessToken, xeroTenantId, employeeID, employee, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling PayrollAuApi#updateEmployee");
Expand Down Expand Up @@ -7841,7 +7841,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 @@ -7852,6 +7852,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -7865,7 +7868,8 @@ <h2>Parameters</h2>
},
"example" : "[ { \"MiddleNames\": \"Frank\" } ]"
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -8113,7 +8117,7 @@ <h3>Usage and SDK Samples</h3>
payRun.setPayrollCalendarID(UUID.fromString("00000000-0000-0000-0000-000000000000"));

try {
PayRuns result = apiInstance.updatePayRun(accessToken, xeroTenantId, payRunID, idempotencyKey, payRun);
PayRuns result = apiInstance.updatePayRun(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling PayrollAuApi#updatePayRun");
Expand Down Expand Up @@ -8223,7 +8227,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 @@ -8234,6 +8238,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -8247,7 +8254,8 @@ <h2>Parameters</h2>
}
}
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -8310,7 +8318,7 @@ <h3>Usage and SDK Samples</h3>
payslipLines.add(payslipLine);

try {
Payslips result = apiInstance.updatePayslip(accessToken, xeroTenantId, payslipID, idempotencyKey, payslipLines);
Payslips result = apiInstance.updatePayslip(accessToken, xeroTenantId, payslipID, payslipLines, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling PayrollAuApi#updatePayslip");
Expand Down Expand Up @@ -8420,7 +8428,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 @@ -8431,6 +8439,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -8444,7 +8455,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 @@ -8497,7 +8509,7 @@ <h3>Usage and SDK Samples</h3>
superfund.setUSI("40022701955002");

try {
SuperFunds result = apiInstance.updateSuperfund(accessToken, xeroTenantId, superFundID, idempotencyKey, superFund);
SuperFunds result = apiInstance.updateSuperfund(accessToken, xeroTenantId, superFundID, superFund, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling PayrollAuApi#updateSuperfund");
Expand Down Expand Up @@ -8607,7 +8619,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 @@ -8618,6 +8630,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -8631,7 +8646,8 @@ <h2>Parameters</h2>
},
"example" : " [ { \"Type\":\"REGULATED\", \"Name\":\"Nice23534\" } ]"
}
}
},
"required" : true
}
</script>
</table>
Expand Down Expand Up @@ -8688,7 +8704,7 @@ <h3>Usage and SDK Samples</h3>
timesheet.setStatus(com.xero.models.payrollau.TimesheetStatus.DRAFT);

try {
Timesheets result = apiInstance.updateTimesheet(accessToken, xeroTenantId, timesheetID, idempotencyKey, timesheet);
Timesheets result = apiInstance.updateTimesheet(accessToken, xeroTenantId, timesheetID, timesheet, idempotencyKey);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling PayrollAuApi#updateTimesheet");
Expand Down Expand Up @@ -8798,7 +8814,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 @@ -8809,6 +8825,9 @@ <h2>Parameters</h2>

</div>
</div>
<div class="inner required">
Required
</div>
</div>
<script type="application/ld+json">
{
Expand All @@ -8822,7 +8841,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
Loading