Skip to content

Commit 21629b5

Browse files
authored
Merge pull request #361 from XeroAPI/5.0.0
makes SDK compliant with JakartaEE
2 parents 55f39fc + b111946 commit 21629b5

Some content is hidden

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

41 files changed

+697
-557
lines changed

Diff for: .gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,6 @@ dist/
139139
nbdist/
140140
.nb-gradle/
141141
*.log
142-
.build_notes.md
142+
.build_notes.md
143+
144+
.vscode

Diff for: docs/v4/accounting/index.html

+73-66
Large diffs are not rendered by default.

Diff for: docs/v4/appstore/index.html

+1-1
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.30.1</li>
1240+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>5.0.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>

Diff for: docs/v4/assets/index.html

+8-4
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.30.1</li>
1391+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>5.0.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>
@@ -1634,7 +1634,7 @@ <h3>Usage and SDK Samples</h3>
16341634
assetType.setBookDepreciationSetting(bookDepreciationSetting);
16351635

16361636
try {
1637-
AssetType result = apiInstance.createAssetType(accessToken, xeroTenantId, idempotencyKey, assetType);
1637+
AssetType result = apiInstance.createAssetType(accessToken, xeroTenantId, assetType, idempotencyKey);
16381638
System.out.println(result);
16391639
} catch (XeroException e) {
16401640
System.err.println("Exception when calling AssetApi#createAssetType");
@@ -1711,7 +1711,7 @@ <h2>Parameters</h2>
17111711
<th>Description</th>
17121712
</tr>
17131713
<tr>
1714-
<td style="width:150px;">assetType </td>
1714+
<td style="width:150px;">assetType <span style="color:red;">*</span></td>
17151715
<td>
17161716
<div class="json-schema-view">
17171717
<div class="primitive">
@@ -1722,6 +1722,9 @@ <h2>Parameters</h2>
17221722
Asset type to add
17231723
</div>
17241724
</div>
1725+
<div class="inner required">
1726+
Required
1727+
</div>
17251728
</div>
17261729
<script type="application/ld+json">
17271730
{
@@ -1733,7 +1736,8 @@ <h2>Parameters</h2>
17331736
},
17341737
"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\" } }"
17351738
}
1736-
}
1739+
},
1740+
"required" : true
17371741
}
17381742
</script>
17391743
</table>

Diff for: docs/v4/files/index.html

+22-10
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@
11291129
<nav id="scrollingNav">
11301130
<ul class="sidenav nav nav-list">
11311131
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1132-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.30.1</li>
1132+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>5.0.0</li>
11331133
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11341134
<li data-group="Files" data-name="createFileAssociation" class="">
11351135
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
@@ -1245,7 +1245,7 @@ <h3>Usage and SDK Samples</h3>
12451245
String idempotencyKey = 'KEY_VALUE';
12461246

12471247
try {
1248-
Association result = apiInstance.createFileAssociation(accessToken, xeroTenantId, fileId, idempotencyKey, association);
1248+
Association result = apiInstance.createFileAssociation(accessToken, xeroTenantId, fileId, association, idempotencyKey);
12491249
System.out.println(result);
12501250
} catch (XeroException e) {
12511251
System.err.println("Exception when calling FilesApi#createFileAssociation");
@@ -1355,7 +1355,7 @@ <h2>Parameters</h2>
13551355
<th>Description</th>
13561356
</tr>
13571357
<tr>
1358-
<td style="width:150px;">association </td>
1358+
<td style="width:150px;">association <span style="color:red;">*</span></td>
13591359
<td>
13601360
<div class="json-schema-view">
13611361
<div class="primitive">
@@ -1366,6 +1366,9 @@ <h2>Parameters</h2>
13661366

13671367
</div>
13681368
</div>
1369+
<div class="inner required">
1370+
Required
1371+
</div>
13691372
</div>
13701373
<script type="application/ld+json">
13711374
{
@@ -1376,7 +1379,8 @@ <h2>Parameters</h2>
13761379
},
13771380
"example" : "{ \"ObjectId\": \"1270bf7c-5d18-473a-9231-1e36c4bd33ed\", \"ObjectGroup\": \"Contact\", \"ObjectType\": \"Business\" }"
13781381
}
1379-
}
1382+
},
1383+
"required" : true
13801384
}
13811385
</script>
13821386
</table>
@@ -1423,7 +1427,7 @@ <h3>Usage and SDK Samples</h3>
14231427
String idempotencyKey = 'KEY_VALUE';
14241428

14251429
try {
1426-
Folder result = apiInstance.createFolder(accessToken, xeroTenantId, idempotencyKey, folder);
1430+
Folder result = apiInstance.createFolder(accessToken, xeroTenantId, folder, idempotencyKey);
14271431
System.out.println(result);
14281432
} catch (XeroException e) {
14291433
System.err.println("Exception when calling FilesApi#createFolder");
@@ -1500,7 +1504,7 @@ <h2>Parameters</h2>
15001504
<th>Description</th>
15011505
</tr>
15021506
<tr>
1503-
<td style="width:150px;">folder </td>
1507+
<td style="width:150px;">folder <span style="color:red;">*</span></td>
15041508
<td>
15051509
<div class="json-schema-view">
15061510
<div class="primitive">
@@ -1511,6 +1515,9 @@ <h2>Parameters</h2>
15111515

15121516
</div>
15131517
</div>
1518+
<div class="inner required">
1519+
Required
1520+
</div>
15141521
</div>
15151522
<script type="application/ld+json">
15161523
{
@@ -1521,7 +1528,8 @@ <h2>Parameters</h2>
15211528
},
15221529
"example" : "{ \"Name\": \"My Docs\" }"
15231530
}
1524-
}
1531+
},
1532+
"required" : true
15251533
}
15261534
</script>
15271535
</table>
@@ -3247,7 +3255,7 @@ <h3>Usage and SDK Samples</h3>
32473255
String idempotencyKey = 'KEY_VALUE';
32483256

32493257
try {
3250-
FileObject result = apiInstance.updateFile(accessToken, xeroTenantId, fileId, idempotencyKey, fileObject);
3258+
FileObject result = apiInstance.updateFile(accessToken, xeroTenantId, fileId, fileObject, idempotencyKey);
32513259
System.out.println(result);
32523260
} catch (XeroException e) {
32533261
System.err.println("Exception when calling FilesApi#updateFile");
@@ -3357,7 +3365,7 @@ <h2>Parameters</h2>
33573365
<th>Description</th>
33583366
</tr>
33593367
<tr>
3360-
<td style="width:150px;">fileObject </td>
3368+
<td style="width:150px;">fileObject <span style="color:red;">*</span></td>
33613369
<td>
33623370
<div class="json-schema-view">
33633371
<div class="primitive">
@@ -3368,6 +3376,9 @@ <h2>Parameters</h2>
33683376

33693377
</div>
33703378
</div>
3379+
<div class="inner required">
3380+
Required
3381+
</div>
33713382
</div>
33723383
<script type="application/ld+json">
33733384
{
@@ -3378,7 +3389,8 @@ <h2>Parameters</h2>
33783389
},
33793390
"example" : "{ \"FolderId\": \"bf924975-7097-46f2-a143-1ecfbab3c8c3\" }"
33803391
}
3381-
}
3392+
},
3393+
"required" : true
33823394
}
33833395
</script>
33843396
</table>

Diff for: docs/v4/finance/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2730,7 +2730,7 @@
27302730
<nav id="scrollingNav">
27312731
<ul class="sidenav nav nav-list">
27322732
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2733-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>4.30.1</li>
2733+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>5.0.0</li>
27342734
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27352735
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27362736
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

Diff for: docs/v4/payroll-au/index.html

+36-16
Original file line numberDiff line numberDiff line change
@@ -3411,7 +3411,7 @@
34113411
<nav id="scrollingNav">
34123412
<ul class="sidenav nav nav-list">
34133413
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3414-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>4.30.1</li>
3414+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>5.0.0</li>
34153415
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34163416
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34173417
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
@@ -7731,7 +7731,7 @@ <h3>Usage and SDK Samples</h3>
77317731
employee.setHomeAddress(homeAddress);
77327732

77337733
try {
7734-
Employees result = apiInstance.updateEmployee(accessToken, xeroTenantId, employeeID, idempotencyKey, employee);
7734+
Employees result = apiInstance.updateEmployee(accessToken, xeroTenantId, employeeID, employee, idempotencyKey);
77357735
System.out.println(result);
77367736
} catch (XeroException e) {
77377737
System.err.println("Exception when calling PayrollAuApi#updateEmployee");
@@ -7841,7 +7841,7 @@ <h2>Parameters</h2>
78417841
<th>Description</th>
78427842
</tr>
78437843
<tr>
7844-
<td style="width:150px;">employee </td>
7844+
<td style="width:150px;">employee <span style="color:red;">*</span></td>
78457845
<td>
78467846
<div class="json-schema-view">
78477847
<div class="primitive">
@@ -7852,6 +7852,9 @@ <h2>Parameters</h2>
78527852

78537853
</div>
78547854
</div>
7855+
<div class="inner required">
7856+
Required
7857+
</div>
78557858
</div>
78567859
<script type="application/ld+json">
78577860
{
@@ -7865,7 +7868,8 @@ <h2>Parameters</h2>
78657868
},
78667869
"example" : "[ { \"MiddleNames\": \"Frank\" } ]"
78677870
}
7868-
}
7871+
},
7872+
"required" : true
78697873
}
78707874
</script>
78717875
</table>
@@ -8113,7 +8117,7 @@ <h3>Usage and SDK Samples</h3>
81138117
payRun.setPayrollCalendarID(UUID.fromString("00000000-0000-0000-0000-000000000000"));
81148118

81158119
try {
8116-
PayRuns result = apiInstance.updatePayRun(accessToken, xeroTenantId, payRunID, idempotencyKey, payRun);
8120+
PayRuns result = apiInstance.updatePayRun(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey);
81178121
System.out.println(result);
81188122
} catch (XeroException e) {
81198123
System.err.println("Exception when calling PayrollAuApi#updatePayRun");
@@ -8223,7 +8227,7 @@ <h2>Parameters</h2>
82238227
<th>Description</th>
82248228
</tr>
82258229
<tr>
8226-
<td style="width:150px;">payRun </td>
8230+
<td style="width:150px;">payRun <span style="color:red;">*</span></td>
82278231
<td>
82288232
<div class="json-schema-view">
82298233
<div class="primitive">
@@ -8234,6 +8238,9 @@ <h2>Parameters</h2>
82348238

82358239
</div>
82368240
</div>
8241+
<div class="inner required">
8242+
Required
8243+
</div>
82378244
</div>
82388245
<script type="application/ld+json">
82398246
{
@@ -8247,7 +8254,8 @@ <h2>Parameters</h2>
82478254
}
82488255
}
82498256
}
8250-
}
8257+
},
8258+
"required" : true
82518259
}
82528260
</script>
82538261
</table>
@@ -8310,7 +8318,7 @@ <h3>Usage and SDK Samples</h3>
83108318
payslipLines.add(payslipLine);
83118319

83128320
try {
8313-
Payslips result = apiInstance.updatePayslip(accessToken, xeroTenantId, payslipID, idempotencyKey, payslipLines);
8321+
Payslips result = apiInstance.updatePayslip(accessToken, xeroTenantId, payslipID, payslipLines, idempotencyKey);
83148322
System.out.println(result);
83158323
} catch (XeroException e) {
83168324
System.err.println("Exception when calling PayrollAuApi#updatePayslip");
@@ -8420,7 +8428,7 @@ <h2>Parameters</h2>
84208428
<th>Description</th>
84218429
</tr>
84228430
<tr>
8423-
<td style="width:150px;">payslipLines </td>
8431+
<td style="width:150px;">payslipLines <span style="color:red;">*</span></td>
84248432
<td>
84258433
<div class="json-schema-view">
84268434
<div class="primitive">
@@ -8431,6 +8439,9 @@ <h2>Parameters</h2>
84318439

84328440
</div>
84338441
</div>
8442+
<div class="inner required">
8443+
Required
8444+
</div>
84348445
</div>
84358446
<script type="application/ld+json">
84368447
{
@@ -8444,7 +8455,8 @@ <h2>Parameters</h2>
84448455
},
84458456
"example" : "{ \"Payslip\": { \"EmployeeID\": \"cdfb8371-0b21-4b8a-8903-1024df6c391e\", \"DeductionLines\": [ { \"DeductionTypeID\": \"727af5e8-b347-4ae7-85fc-9b82266d0aec\", \"CalculationType\": \"FIXEDAMOUNT\", \"NumberOfUnits\": 10 } ] } }"
84468457
}
8447-
}
8458+
},
8459+
"required" : true
84488460
}
84498461
</script>
84508462
</table>
@@ -8497,7 +8509,7 @@ <h3>Usage and SDK Samples</h3>
84978509
superfund.setUSI("40022701955002");
84988510

84998511
try {
8500-
SuperFunds result = apiInstance.updateSuperfund(accessToken, xeroTenantId, superFundID, idempotencyKey, superFund);
8512+
SuperFunds result = apiInstance.updateSuperfund(accessToken, xeroTenantId, superFundID, superFund, idempotencyKey);
85018513
System.out.println(result);
85028514
} catch (XeroException e) {
85038515
System.err.println("Exception when calling PayrollAuApi#updateSuperfund");
@@ -8607,7 +8619,7 @@ <h2>Parameters</h2>
86078619
<th>Description</th>
86088620
</tr>
86098621
<tr>
8610-
<td style="width:150px;">superFund </td>
8622+
<td style="width:150px;">superFund <span style="color:red;">*</span></td>
86118623
<td>
86128624
<div class="json-schema-view">
86138625
<div class="primitive">
@@ -8618,6 +8630,9 @@ <h2>Parameters</h2>
86188630

86198631
</div>
86208632
</div>
8633+
<div class="inner required">
8634+
Required
8635+
</div>
86218636
</div>
86228637
<script type="application/ld+json">
86238638
{
@@ -8631,7 +8646,8 @@ <h2>Parameters</h2>
86318646
},
86328647
"example" : " [ { \"Type\":\"REGULATED\", \"Name\":\"Nice23534\" } ]"
86338648
}
8634-
}
8649+
},
8650+
"required" : true
86358651
}
86368652
</script>
86378653
</table>
@@ -8688,7 +8704,7 @@ <h3>Usage and SDK Samples</h3>
86888704
timesheet.setStatus(com.xero.models.payrollau.TimesheetStatus.DRAFT);
86898705

86908706
try {
8691-
Timesheets result = apiInstance.updateTimesheet(accessToken, xeroTenantId, timesheetID, idempotencyKey, timesheet);
8707+
Timesheets result = apiInstance.updateTimesheet(accessToken, xeroTenantId, timesheetID, timesheet, idempotencyKey);
86928708
System.out.println(result);
86938709
} catch (XeroException e) {
86948710
System.err.println("Exception when calling PayrollAuApi#updateTimesheet");
@@ -8798,7 +8814,7 @@ <h2>Parameters</h2>
87988814
<th>Description</th>
87998815
</tr>
88008816
<tr>
8801-
<td style="width:150px;">timesheet </td>
8817+
<td style="width:150px;">timesheet <span style="color:red;">*</span></td>
88028818
<td>
88038819
<div class="json-schema-view">
88048820
<div class="primitive">
@@ -8809,6 +8825,9 @@ <h2>Parameters</h2>
88098825

88108826
</div>
88118827
</div>
8828+
<div class="inner required">
8829+
Required
8830+
</div>
88128831
</div>
88138832
<script type="application/ld+json">
88148833
{
@@ -8822,7 +8841,8 @@ <h2>Parameters</h2>
88228841
},
88238842
"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)/\" } ] } ]"
88248843
}
8825-
}
8844+
},
8845+
"required" : true
88268846
}
88278847
</script>
88288848
</table>

0 commit comments

Comments
 (0)