Skip to content

Commit 98e082b

Browse files
Merge pull request #372 from XeroAPI/OAS-6.3.0-php
Build from OAS 6.3.0
2 parents 56302d1 + 87ce461 commit 98e082b

26 files changed

+1649
-41
lines changed

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

+124-1
Original file line numberDiff line numberDiff line change
@@ -2564,6 +2564,13 @@
25642564
"items" : {
25652565
"$ref" : "#/components/schemas/ValidationError"
25662566
}
2567+
},
2568+
"InvoiceAddresses" : {
2569+
"type" : "array",
2570+
"description" : "An array of addresses used to auto calculate sales tax",
2571+
"items" : {
2572+
"$ref" : "#/components/schemas/InvoiceAddress"
2573+
}
25672574
}
25682575
},
25692576
"description" : "",
@@ -3259,12 +3266,63 @@
32593266
"items" : {
32603267
"$ref" : "#/components/schemas/ValidationError"
32613268
}
3269+
},
3270+
"InvoiceAddresses" : {
3271+
"type" : "array",
3272+
"description" : "An array of addresses used to auto calculate sales tax",
3273+
"items" : {
3274+
"$ref" : "#/components/schemas/InvoiceAddress"
3275+
}
32623276
}
32633277
},
32643278
"description" : "",
32653279
"externalDocs" : {
32663280
"url" : "http://developer.xero.com/documentation/api/invoices/"
32673281
}
3282+
};
3283+
defs["InvoiceAddress"] = {
3284+
"title" : "",
3285+
"type" : "object",
3286+
"properties" : {
3287+
"InvoiceAddressType" : {
3288+
"type" : "string",
3289+
"description" : "Indicates whether the address is defined as origin (FROM) or destination (TO)",
3290+
"enum" : [ "FROM", "TO" ]
3291+
},
3292+
"AddressLine1" : {
3293+
"type" : "string",
3294+
"description" : "First line of a physical address"
3295+
},
3296+
"AddressLine2" : {
3297+
"type" : "string",
3298+
"description" : "Second line of a physical address"
3299+
},
3300+
"AddressLine3" : {
3301+
"type" : "string",
3302+
"description" : "Third line of a physical address"
3303+
},
3304+
"AddressLine4" : {
3305+
"type" : "string",
3306+
"description" : "Fourth line of a physical address"
3307+
},
3308+
"City" : {
3309+
"type" : "string",
3310+
"description" : "City of a physical address"
3311+
},
3312+
"Region" : {
3313+
"type" : "string",
3314+
"description" : "Region or state of a physical address"
3315+
},
3316+
"PostalCode" : {
3317+
"type" : "string",
3318+
"description" : "Postal code of a physical address"
3319+
},
3320+
"Country" : {
3321+
"type" : "string",
3322+
"description" : "Country of a physical address"
3323+
}
3324+
},
3325+
"description" : ""
32683326
};
32693327
defs["InvoiceReminder"] = {
32703328
"title" : "",
@@ -3660,6 +3718,22 @@
36603718
"description" : "The Xero identifier for a Repeating Invoice",
36613719
"format" : "uuid",
36623720
"example" : "00000000-0000-0000-0000-000000000000"
3721+
},
3722+
"Taxability" : {
3723+
"type" : "string",
3724+
"description" : "The type of taxability",
3725+
"enum" : [ "TAXABLE", "NON_TAXABLE", "EXEMPT", "PART_TAXABLE", "NOT_APPLICABLE" ]
3726+
},
3727+
"SalesTaxCodeId" : {
3728+
"type" : "number",
3729+
"description" : "The ID of the sales tax code"
3730+
},
3731+
"TaxBreakdown" : {
3732+
"type" : "array",
3733+
"description" : "An array of tax components defined for this line item",
3734+
"items" : {
3735+
"$ref" : "#/components/schemas/TaxBreakdownComponent"
3736+
}
36633737
}
36643738
},
36653739
"description" : "",
@@ -5699,6 +5773,55 @@
56995773
"externalDocs" : {
57005774
"url" : "https://developer.xero.com/documentation/api-guides/conversions"
57015775
}
5776+
};
5777+
defs["TaxBreakdownComponent"] = {
5778+
"title" : "",
5779+
"type" : "object",
5780+
"properties" : {
5781+
"TaxComponentId" : {
5782+
"type" : "string",
5783+
"description" : "The unique ID number of this component",
5784+
"format" : "uuid"
5785+
},
5786+
"Type" : {
5787+
"type" : "string",
5788+
"description" : "The type of the jurisdiction",
5789+
"enum" : [ "SYSGST/USCOUNTRY", "SYSGST/USSTATE", "SYSGST/USCOUNTY", "SYSGST/USCITY", "SYSGST/USSPECIAL" ]
5790+
},
5791+
"Name" : {
5792+
"type" : "string",
5793+
"description" : "The name of the jurisdiction"
5794+
},
5795+
"TaxPercentage" : {
5796+
"type" : "number",
5797+
"description" : "The percentage of the tax"
5798+
},
5799+
"TaxAmount" : {
5800+
"type" : "number",
5801+
"description" : "The amount of the tax"
5802+
},
5803+
"TaxableAmount" : {
5804+
"type" : "number",
5805+
"description" : "The amount that is taxable"
5806+
},
5807+
"NonTaxableAmount" : {
5808+
"type" : "number",
5809+
"description" : "The amount that is not taxable"
5810+
},
5811+
"ExemptAmount" : {
5812+
"type" : "number",
5813+
"description" : "The amount that is exempt"
5814+
},
5815+
"StateAssignedNo" : {
5816+
"type" : "string",
5817+
"description" : "The state assigned number of the jurisdiction"
5818+
},
5819+
"JurisdictionRegion" : {
5820+
"type" : "string",
5821+
"description" : "Name identifying the region within the country"
5822+
}
5823+
},
5824+
"description" : ""
57025825
};
57035826
defs["TaxComponent"] = {
57045827
"title" : "",
@@ -6215,7 +6338,7 @@
62156338
<nav id="scrollingNav">
62166339
<ul class="sidenav nav nav-list">
62176340
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6218-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>7.2.0</li>
6341+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>7.3.0</li>
62196342
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
62206343
<li data-group="Accounting" data-name="createAccount" class="">
62216344
<a href="#api-Accounting-createAccount">createAccount</a>

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

+1-1
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>7.2.0</li>
1243+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>7.3.0</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>

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

+1-1
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>7.2.0</li>
1394+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>7.3.0</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>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@
11691169
<nav id="scrollingNav">
11701170
<ul class="sidenav nav nav-list">
11711171
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1172-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>7.2.0</li>
1172+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>7.3.0</li>
11731173
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11741174
<li data-group="Files" data-name="createFileAssociation" class="">
11751175
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2736,7 +2736,7 @@
27362736
<nav id="scrollingNav">
27372737
<ul class="sidenav nav nav-list">
27382738
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2739-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>7.2.0</li>
2739+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>7.3.0</li>
27402740
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27412741
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27422742
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

Diff for: docs/v2/payroll_au/index.html

+1-1
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>7.2.0</li>
3414+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>7.3.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>

Diff for: docs/v2/payroll_nz/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4030,7 +4030,7 @@
40304030
<nav id="scrollingNav">
40314031
<ul class="sidenav nav nav-list">
40324032
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
4033-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>7.2.0</li>
4033+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>7.3.0</li>
40344034
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
40354035
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
40364036
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

Diff for: docs/v2/payroll_uk/index.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,13 @@
17501750
"type" : "number",
17511751
"description" : "The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\"",
17521752
"format" : "double"
1753+
},
1754+
"scheduleOfAccrualDate" : {
1755+
"type" : "string",
1756+
"description" : "The date when an employee becomes entitled to their accrual. Only applicable when scheduleOfAccrual is \"OnAnniversaryDate\"",
1757+
"format" : "date",
1758+
"example" : "2024-04-01",
1759+
"x-is-date" : true
17531760
}
17541761
},
17551762
"description" : ""
@@ -3509,7 +3516,7 @@
35093516
<nav id="scrollingNav">
35103517
<ul class="sidenav nav nav-list">
35113518
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
3512-
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>7.2.0</li>
3519+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>7.3.0</li>
35133520
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
35143521
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
35153522
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
@@ -4901,6 +4908,7 @@ <h3>Usage and SDK Samples</h3>
49014908
$employeeLeaveType->setLeaveTypeID('00000000-0000-0000-0000-000000000000');
49024909
$employeeLeaveType->setScheduleOfAccrual(XeroAPI\XeroPHP\Models\PayrollUk\EmployeeLeaveType\ScheduleOfAccrualEnum.BeginningOfCalendarYear);
49034910
$employeeLeaveType->setOpeningBalance(5.25);
4911+
$employeeLeaveType->setScheduleOfAccrualDate($2024-05-01);
49044912

49054913
try {
49064914
$result = $apiInstance->createEmployeeLeaveType($xeroTenantId, $employeeID, $employeeLeaveType, $idempotencyKey);

Diff for: docs/v2/projects/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@
14611461
<nav id="scrollingNav">
14621462
<ul class="sidenav nav nav-list">
14631463
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
1464-
<li class="nav-header" data-group="Project"><strong>VSN: </strong>7.2.0</li>
1464+
<li class="nav-header" data-group="Project"><strong>VSN: </strong>7.3.0</li>
14651465
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
14661466
<li data-group="Project" data-name="createProject" class="">
14671467
<a href="#api-Project-createProject">createProject</a>

Diff for: lib/Api/AccountingApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/AppStoreApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* These endpoints are for Xero Partners to interact with the App Store Billing platform
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/AssetApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/FilesApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* These endpoints are specific to Xero Files API
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/FinanceApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/IdentityApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* These endpoints are related to managing authentication tokens and identity for Xero API
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/PayrollAuApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* This is the Xero Payroll API for orgs in Australia region.
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/PayrollNzApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* This is the Xero Payroll API for orgs in the NZ region.
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/PayrollUkApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* This is the Xero Payroll API for orgs in the UK region.
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Api/ProjectApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* This is the Xero Projects API
1616
*
17-
* OpenAPI spec version: 6.2.0
17+
* OpenAPI spec version: 6.3.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

Diff for: lib/Configuration.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,8 @@ public static function toDebugReport()
696696
$report = 'PHP SDK (XeroAPI\XeroPHP) Debug Report:' . PHP_EOL;
697697
$report .= ' OS: ' . php_uname() . PHP_EOL;
698698
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
699-
$report .= ' OpenAPI Spec Version: 6.2.0' . PHP_EOL;
700-
$report .= ' SDK Package Version: 7.2.0' . PHP_EOL;
699+
$report .= ' OpenAPI Spec Version: 6.3.0' . PHP_EOL;
700+
$report .= ' SDK Package Version: 7.3.0' . PHP_EOL;
701701
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
702702

703703
return $report;

0 commit comments

Comments
 (0)