Skip to content

Commit 50634a2

Browse files
authored
Merge pull request #128 from XeroAPI/xero-python-2.0.0
Build from OpenAPI v3.0.0
2 parents 3107f91 + ba536b6 commit 50634a2

File tree

29 files changed

+453
-361
lines changed

29 files changed

+453
-361
lines changed

docs/v1/accounting/index.html

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

docs/v1/appstore/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@
12411241
<nav id="scrollingNav">
12421242
<ul class="sidenav nav nav-list">
12431243
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1244-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>1.27.0</li>
1244+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>2.0.0</li>
12451245
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12461246
<li data-group="AppStore" data-name="getSubscription" class="">
12471247
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/v1/assets/index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@
13921392
<nav id="scrollingNav">
13931393
<ul class="sidenav nav nav-list">
13941394
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1395-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>1.27.0</li>
1395+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>2.0.0</li>
13961396
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13971397
<li data-group="Asset" data-name="createAsset" class="">
13981398
<a href="#api-Asset-createAsset">createAsset</a>
@@ -1638,7 +1638,7 @@ <h3>Usage and SDK Samples</h3>
16381638
book_depreciation_setting = book_depreciation_setting)
16391639

16401640
try:
1641-
api_response = api_instance.create_asset_type(xero_tenant_id, idempotency_key, assetType)
1641+
api_response = api_instance.create_asset_type(xero_tenant_id, assetType, idempotency_key)
16421642
print(api_response)
16431643
except AccountingBadRequestException as e:
16441644
print("Exception when calling AssetApi->createAssetType: %s\n" % e)</code></pre>
@@ -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>

docs/v1/files/index.html

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@
11551155
<nav id="scrollingNav">
11561156
<ul class="sidenav nav nav-list">
11571157
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1158-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>1.27.0</li>
1158+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>2.0.0</li>
11591159
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11601160
<li data-group="Files" data-name="createFileAssociation" class="">
11611161
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
@@ -1272,7 +1272,7 @@ <h3>Usage and SDK Samples</h3>
12721272
idempotency_key = 'KEY_VALUE'
12731273

12741274
try:
1275-
api_response = api_instance.create_file_association(xero_tenant_id, file_id, idempotency_key, association)
1275+
api_response = api_instance.create_file_association(xero_tenant_id, file_id, association, idempotency_key)
12761276
print(api_response)
12771277
except AccountingBadRequestException as e:
12781278
print("Exception when calling FilesApi->createFileAssociation: %s\n" % e)</code></pre>
@@ -1378,7 +1378,7 @@ <h2>Parameters</h2>
13781378
<th>Description</th>
13791379
</tr>
13801380
<tr>
1381-
<td style="width:150px;">association </td>
1381+
<td style="width:150px;">association <span style="color:red;">*</span></td>
13821382
<td>
13831383
<div class="json-schema-view">
13841384
<div class="primitive">
@@ -1389,6 +1389,9 @@ <h2>Parameters</h2>
13891389

13901390
</div>
13911391
</div>
1392+
<div class="inner required">
1393+
Required
1394+
</div>
13921395
</div>
13931396
<script type="application/ld+json">
13941397
{
@@ -1399,7 +1402,8 @@ <h2>Parameters</h2>
13991402
},
14001403
"example" : "{ \"ObjectId\": \"1270bf7c-5d18-473a-9231-1e36c4bd33ed\", \"ObjectGroup\": \"Contact\", \"ObjectType\": \"Business\" }"
14011404
}
1402-
}
1405+
},
1406+
"required" : true
14031407
}
14041408
</script>
14051409
</table>
@@ -1448,7 +1452,7 @@ <h3>Usage and SDK Samples</h3>
14481452
idempotency_key = 'KEY_VALUE'
14491453

14501454
try:
1451-
api_response = api_instance.create_folder(xero_tenant_id, idempotency_key, folder)
1455+
api_response = api_instance.create_folder(xero_tenant_id, folder, idempotency_key)
14521456
print(api_response)
14531457
except AccountingBadRequestException as e:
14541458
print("Exception when calling FilesApi->createFolder: %s\n" % e)</code></pre>
@@ -1521,7 +1525,7 @@ <h2>Parameters</h2>
15211525
<th>Description</th>
15221526
</tr>
15231527
<tr>
1524-
<td style="width:150px;">folder </td>
1528+
<td style="width:150px;">folder <span style="color:red;">*</span></td>
15251529
<td>
15261530
<div class="json-schema-view">
15271531
<div class="primitive">
@@ -1532,6 +1536,9 @@ <h2>Parameters</h2>
15321536

15331537
</div>
15341538
</div>
1539+
<div class="inner required">
1540+
Required
1541+
</div>
15351542
</div>
15361543
<script type="application/ld+json">
15371544
{
@@ -1542,7 +1549,8 @@ <h2>Parameters</h2>
15421549
},
15431550
"example" : "{ \"Name\": \"My Docs\" }"
15441551
}
1545-
}
1552+
},
1553+
"required" : true
15461554
}
15471555
</script>
15481556
</table>
@@ -3232,7 +3240,7 @@ <h3>Usage and SDK Samples</h3>
32323240
idempotency_key = 'KEY_VALUE'
32333241

32343242
try:
3235-
api_response = api_instance.update_file(xero_tenant_id, file_id, idempotency_key, fileObject)
3243+
api_response = api_instance.update_file(xero_tenant_id, file_id, fileObject, idempotency_key)
32363244
print(api_response)
32373245
except AccountingBadRequestException as e:
32383246
print("Exception when calling FilesApi->updateFile: %s\n" % e)</code></pre>
@@ -3338,7 +3346,7 @@ <h2>Parameters</h2>
33383346
<th>Description</th>
33393347
</tr>
33403348
<tr>
3341-
<td style="width:150px;">fileObject </td>
3349+
<td style="width:150px;">fileObject <span style="color:red;">*</span></td>
33423350
<td>
33433351
<div class="json-schema-view">
33443352
<div class="primitive">
@@ -3349,6 +3357,9 @@ <h2>Parameters</h2>
33493357

33503358
</div>
33513359
</div>
3360+
<div class="inner required">
3361+
Required
3362+
</div>
33523363
</div>
33533364
<script type="application/ld+json">
33543365
{
@@ -3359,7 +3370,8 @@ <h2>Parameters</h2>
33593370
},
33603371
"example" : "{ \"FolderId\": \"bf924975-7097-46f2-a143-1ecfbab3c8c3\" }"
33613372
}
3362-
}
3373+
},
3374+
"required" : true
33633375
}
33643376
</script>
33653377
</table>

docs/v1/finance/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,7 @@
27342734
<nav id="scrollingNav">
27352735
<ul class="sidenav nav nav-list">
27362736
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2737-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>1.27.0</li>
2737+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>2.0.0</li>
27382738
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27392739
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27402740
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/v1/payroll-au/index.html

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3412,7 +3412,7 @@
34123412
<nav id="scrollingNav">
34133413
<ul class="sidenav nav nav-list">
34143414
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3415-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>1.27.0</li>
3415+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>2.0.0</li>
34163416
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34173417
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34183418
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
@@ -7656,7 +7656,7 @@ <h3>Usage and SDK Samples</h3>
76567656
homeAddress = home_address)
76577657

76587658
try:
7659-
api_response = api_instance.update_employee(xero_tenant_id, employee_id, idempotency_key, employee)
7659+
api_response = api_instance.update_employee(xero_tenant_id, employee_id, employee, idempotency_key)
76607660
print(api_response)
76617661
except AccountingBadRequestException as e:
76627662
print("Exception when calling PayrollAuApi->updateEmployee: %s\n" % e)</code></pre>
@@ -7762,7 +7762,7 @@ <h2>Parameters</h2>
77627762
<th>Description</th>
77637763
</tr>
77647764
<tr>
7765-
<td style="width:150px;">employee </td>
7765+
<td style="width:150px;">employee <span style="color:red;">*</span></td>
77667766
<td>
77677767
<div class="json-schema-view">
77687768
<div class="primitive">
@@ -7773,6 +7773,9 @@ <h2>Parameters</h2>
77737773

77747774
</div>
77757775
</div>
7776+
<div class="inner required">
7777+
Required
7778+
</div>
77767779
</div>
77777780
<script type="application/ld+json">
77787781
{
@@ -7786,7 +7789,8 @@ <h2>Parameters</h2>
77867789
},
77877790
"example" : "[ { \"MiddleNames\": \"Frank\" } ]"
77887791
}
7789-
}
7792+
},
7793+
"required" : true
77907794
}
77917795
</script>
77927796
</table>
@@ -8032,7 +8036,7 @@ <h3>Usage and SDK Samples</h3>
80328036
payroll_calendar_id = "00000000-0000-0000-0000-000000000000")
80338037

80348038
try:
8035-
api_response = api_instance.update_pay_run(xero_tenant_id, pay_run_id, idempotency_key, payRun)
8039+
api_response = api_instance.update_pay_run(xero_tenant_id, pay_run_id, payRun, idempotency_key)
80368040
print(api_response)
80378041
except AccountingBadRequestException as e:
80388042
print("Exception when calling PayrollAuApi->updatePayRun: %s\n" % e)</code></pre>
@@ -8138,7 +8142,7 @@ <h2>Parameters</h2>
81388142
<th>Description</th>
81398143
</tr>
81408144
<tr>
8141-
<td style="width:150px;">payRun </td>
8145+
<td style="width:150px;">payRun <span style="color:red;">*</span></td>
81428146
<td>
81438147
<div class="json-schema-view">
81448148
<div class="primitive">
@@ -8149,6 +8153,9 @@ <h2>Parameters</h2>
81498153

81508154
</div>
81518155
</div>
8156+
<div class="inner required">
8157+
Required
8158+
</div>
81528159
</div>
81538160
<script type="application/ld+json">
81548161
{
@@ -8162,7 +8169,8 @@ <h2>Parameters</h2>
81628169
}
81638170
}
81648171
}
8165-
}
8172+
},
8173+
"required" : true
81668174
}
81678175
</script>
81688176
</table>
@@ -8226,7 +8234,7 @@ <h3>Usage and SDK Samples</h3>
82268234
payslip_lines.append(payslip_line)
82278235

82288236
try:
8229-
api_response = api_instance.update_payslip(xero_tenant_id, payslip_id, idempotency_key, payslipLines)
8237+
api_response = api_instance.update_payslip(xero_tenant_id, payslip_id, payslipLines, idempotency_key)
82308238
print(api_response)
82318239
except AccountingBadRequestException as e:
82328240
print("Exception when calling PayrollAuApi->updatePayslip: %s\n" % e)</code></pre>
@@ -8332,7 +8340,7 @@ <h2>Parameters</h2>
83328340
<th>Description</th>
83338341
</tr>
83348342
<tr>
8335-
<td style="width:150px;">payslipLines </td>
8343+
<td style="width:150px;">payslipLines <span style="color:red;">*</span></td>
83368344
<td>
83378345
<div class="json-schema-view">
83388346
<div class="primitive">
@@ -8343,6 +8351,9 @@ <h2>Parameters</h2>
83438351

83448352
</div>
83458353
</div>
8354+
<div class="inner required">
8355+
Required
8356+
</div>
83468357
</div>
83478358
<script type="application/ld+json">
83488359
{
@@ -8356,7 +8367,8 @@ <h2>Parameters</h2>
83568367
},
83578368
"example" : "{ \"Payslip\": { \"EmployeeID\": \"cdfb8371-0b21-4b8a-8903-1024df6c391e\", \"DeductionLines\": [ { \"DeductionTypeID\": \"727af5e8-b347-4ae7-85fc-9b82266d0aec\", \"CalculationType\": \"FIXEDAMOUNT\", \"NumberOfUnits\": 10 } ] } }"
83588369
}
8359-
}
8370+
},
8371+
"required" : true
83608372
}
83618373
</script>
83628374
</table>
@@ -8410,7 +8422,7 @@ <h3>Usage and SDK Samples</h3>
84108422
USI = "40022701955002")
84118423

84128424
try:
8413-
api_response = api_instance.update_superfund(xero_tenant_id, super_fund_id, idempotency_key, superFund)
8425+
api_response = api_instance.update_superfund(xero_tenant_id, super_fund_id, superFund, idempotency_key)
84148426
print(api_response)
84158427
except AccountingBadRequestException as e:
84168428
print("Exception when calling PayrollAuApi->updateSuperfund: %s\n" % e)</code></pre>
@@ -8516,7 +8528,7 @@ <h2>Parameters</h2>
85168528
<th>Description</th>
85178529
</tr>
85188530
<tr>
8519-
<td style="width:150px;">superFund </td>
8531+
<td style="width:150px;">superFund <span style="color:red;">*</span></td>
85208532
<td>
85218533
<div class="json-schema-view">
85228534
<div class="primitive">
@@ -8527,6 +8539,9 @@ <h2>Parameters</h2>
85278539

85288540
</div>
85298541
</div>
8542+
<div class="inner required">
8543+
Required
8544+
</div>
85308545
</div>
85318546
<script type="application/ld+json">
85328547
{
@@ -8540,7 +8555,8 @@ <h2>Parameters</h2>
85408555
},
85418556
"example" : " [ { \"Type\":\"REGULATED\", \"Name\":\"Nice23534\" } ]"
85428557
}
8543-
}
8558+
},
8559+
"required" : true
85448560
}
85458561
</script>
85468562
</table>
@@ -8598,7 +8614,7 @@ <h3>Usage and SDK Samples</h3>
85988614
status = "DRAFT")
85998615

86008616
try:
8601-
api_response = api_instance.update_timesheet(xero_tenant_id, timesheet_id, idempotency_key, timesheet)
8617+
api_response = api_instance.update_timesheet(xero_tenant_id, timesheet_id, timesheet, idempotency_key)
86028618
print(api_response)
86038619
except AccountingBadRequestException as e:
86048620
print("Exception when calling PayrollAuApi->updateTimesheet: %s\n" % e)</code></pre>
@@ -8704,7 +8720,7 @@ <h2>Parameters</h2>
87048720
<th>Description</th>
87058721
</tr>
87068722
<tr>
8707-
<td style="width:150px;">timesheet </td>
8723+
<td style="width:150px;">timesheet <span style="color:red;">*</span></td>
87088724
<td>
87098725
<div class="json-schema-view">
87108726
<div class="primitive">
@@ -8715,6 +8731,9 @@ <h2>Parameters</h2>
87158731

87168732
</div>
87178733
</div>
8734+
<div class="inner required">
8735+
Required
8736+
</div>
87188737
</div>
87198738
<script type="application/ld+json">
87208739
{
@@ -8728,7 +8747,8 @@ <h2>Parameters</h2>
87288747
},
87298748
"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)/\" } ] } ]"
87308749
}
8731-
}
8750+
},
8751+
"required" : true
87328752
}
87338753
</script>
87348754
</table>

docs/v1/payroll-nz/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3843,7 +3843,7 @@
38433843
<nav id="scrollingNav">
38443844
<ul class="sidenav nav nav-list">
38453845
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
3846-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>1.27.0</li>
3846+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>2.0.0</li>
38473847
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
38483848
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
38493849
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

0 commit comments

Comments
 (0)