Skip to content

Build for version - 9.3.0 #396

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

Merged
merged 3 commits into from
Jun 24, 2025
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: 2 additions & 2 deletions docs/v2/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6220,7 +6220,7 @@
"OrganisationRole" : {
"type" : "string",
"description" : "User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)",
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN" ]
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED" ]
}
},
"description" : "",
Expand Down Expand Up @@ -6338,7 +6338,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>9.2.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>9.3.0</li>
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
<li data-group="Accounting" data-name="createAccount" class="">
<a href="#api-Accounting-createAccount">createAccount</a>
Expand Down
6 changes: 3 additions & 3 deletions docs/v2/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,8 @@
},
"type" : {
"type" : "string",
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n",
"enum" : [ "FIXED", "PER_SEAT", "METERED" ]
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n* SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature\n",
"enum" : [ "FIXED", "PER_SEAT", "METERED", "SIMPLE" ]
},
"usageUnit" : {
"type" : "string",
Expand Down 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>9.2.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>9.3.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
2 changes: 1 addition & 1 deletion 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>9.2.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>9.3.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
27 changes: 24 additions & 3 deletions docs/v2/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,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>9.2.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>9.3.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 @@ -2712,10 +2712,11 @@ <h3>Usage and SDK Samples</h3>
$xeroTenantId = "YOUR_XERO_TENANT_ID";
$pagesize = 50;
$page = 2;
$sort = "CreatedDateUTC DESC";
$sort = "CreatedDateUTC";
$direction = "ASC";

try {
$result = $apiInstance->getFiles($xeroTenantId, $pagesize, $page, $sort);
$result = $apiInstance->getFiles($xeroTenantId, $pagesize, $page, $sort, $direction);
} catch (Exception $e) {
echo 'Exception when calling FilesApi->getFiles: ', $e->getMessage(), PHP_EOL;
}
Expand Down Expand Up @@ -2832,6 +2833,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">direction</td>
<td>


<div id="d2e199_getFiles_direction">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
sort direction
</div>
</div>
</div>
</div>
</td>
</tr>

</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 @@ -2715,7 +2715,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>9.2.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>9.3.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
2 changes: 1 addition & 1 deletion 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>9.2.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>9.3.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
2 changes: 1 addition & 1 deletion docs/v2/payroll_nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4086,7 +4086,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>9.2.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>9.3.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
6 changes: 3 additions & 3 deletions docs/v2/payroll_uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@
"leaveType" : {
"type" : "string",
"description" : "The type of statutory leave",
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
},
"balanceRemaining" : {
"type" : "number",
Expand Down Expand Up @@ -2002,7 +2002,7 @@
"type" : {
"type" : "string",
"description" : "The category of statutory leave",
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
},
"startDate" : {
"type" : "string",
Expand Down Expand Up @@ -3599,7 +3599,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>9.2.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>9.3.0</li>
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v2/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>9.2.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>9.3.0</li>
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
<li data-group="Project" data-name="createProject" class="">
<a href="#api-Project-createProject">createProject</a>
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AccountingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AppStoreApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* These endpoints are for Xero Partners to interact with the App Store Billing platform
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AssetApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
29 changes: 19 additions & 10 deletions lib/Api/FilesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* These endpoints are specific to Xero Files API
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down Expand Up @@ -2549,13 +2549,14 @@ protected function getFileContentRequest($xero_tenant_id, $file_id)
* @param int $pagesize pass an optional page size value (optional)
* @param int $page number of records to skip for pagination (optional)
* @param string $sort values to sort by (optional)
* @param string $direction sort direction (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \XeroAPI\XeroPHP\Models\File\Files
*/
public function getFiles($xero_tenant_id, $pagesize = null, $page = null, $sort = null)
public function getFiles($xero_tenant_id, $pagesize = null, $page = null, $sort = null, $direction = null)
{
list($response) = $this->getFilesWithHttpInfo($xero_tenant_id, $pagesize, $page, $sort);
list($response) = $this->getFilesWithHttpInfo($xero_tenant_id, $pagesize, $page, $sort, $direction);
return $response;
}
/**
Expand All @@ -2565,13 +2566,14 @@ public function getFiles($xero_tenant_id, $pagesize = null, $page = null, $sort
* @param int $pagesize pass an optional page size value (optional)
* @param int $page number of records to skip for pagination (optional)
* @param string $sort values to sort by (optional)
* @param string $direction sort direction (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \XeroAPI\XeroPHP\Models\File\Files, HTTP status code, HTTP response headers (array of strings)
*/
public function getFilesWithHttpInfo($xero_tenant_id, $pagesize = null, $page = null, $sort = null)
public function getFilesWithHttpInfo($xero_tenant_id, $pagesize = null, $page = null, $sort = null, $direction = null)
{
$request = $this->getFilesRequest($xero_tenant_id, $pagesize, $page, $sort);
$request = $this->getFilesRequest($xero_tenant_id, $pagesize, $page, $sort, $direction);
try {
$options = $this->createHttpClientOption();
try {
Expand Down Expand Up @@ -2644,12 +2646,13 @@ public function getFilesWithHttpInfo($xero_tenant_id, $pagesize = null, $page =
* @param int $pagesize pass an optional page size value (optional)
* @param int $page number of records to skip for pagination (optional)
* @param string $sort values to sort by (optional)
* @param string $direction sort direction (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function getFilesAsync($xero_tenant_id, $pagesize = null, $page = null, $sort = null)
public function getFilesAsync($xero_tenant_id, $pagesize = null, $page = null, $sort = null, $direction = null)
{
return $this->getFilesAsyncWithHttpInfo($xero_tenant_id, $pagesize, $page, $sort)
return $this->getFilesAsyncWithHttpInfo($xero_tenant_id, $pagesize, $page, $sort, $direction)
->then(
function ($response) {
return $response[0];
Expand All @@ -2663,12 +2666,13 @@ function ($response) {
* @param int $pagesize pass an optional page size value (optional)
* @param int $page number of records to skip for pagination (optional)
* @param string $sort values to sort by (optional)
* @param string $direction sort direction (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
public function getFilesAsyncWithHttpInfo($xero_tenant_id, $pagesize = null, $page = null, $sort = null)
public function getFilesAsyncWithHttpInfo($xero_tenant_id, $pagesize = null, $page = null, $sort = null, $direction = null)
{
$returnType = '\XeroAPI\XeroPHP\Models\File\Files';
$request = $this->getFilesRequest($xero_tenant_id, $pagesize, $page, $sort);
$request = $this->getFilesRequest($xero_tenant_id, $pagesize, $page, $sort, $direction);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
->then(
Expand Down Expand Up @@ -2708,9 +2712,10 @@ function ($exception) {
* @param int $pagesize pass an optional page size value (optional)
* @param int $page number of records to skip for pagination (optional)
* @param string $sort values to sort by (optional)
* @param string $direction sort direction (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
protected function getFilesRequest($xero_tenant_id, $pagesize = null, $page = null, $sort = null)
protected function getFilesRequest($xero_tenant_id, $pagesize = null, $page = null, $sort = null, $direction = null)
{
// verify the required parameter 'xero_tenant_id' is set
if ($xero_tenant_id === null || (is_array($xero_tenant_id) && count($xero_tenant_id) === 0)) {
Expand Down Expand Up @@ -2744,6 +2749,10 @@ protected function getFilesRequest($xero_tenant_id, $pagesize = null, $page = nu
if ($sort !== null) {
$queryParams['sort'] = FileObjectSerializer::toQueryValue($sort);
}
// query params
if ($direction !== null) {
$queryParams['direction'] = FileObjectSerializer::toQueryValue($direction);
}
// header params
if ($xero_tenant_id !== null) {
$headerParams['xero-tenant-id'] = FileObjectSerializer::toHeaderValue($xero_tenant_id);
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/FinanceApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* 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.
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/IdentityApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* These endpoints are related to managing authentication tokens and identity for Xero API
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/PayrollAuApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* This is the Xero Payroll API for orgs in Australia region.
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/PayrollNzApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* This is the Xero Payroll API for orgs in the NZ region.
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/PayrollUkApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* This is the Xero Payroll API for orgs in the UK region.
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ProjectApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* This is the Xero Projects API
*
* OpenAPI spec version: 8.2.0
* OpenAPI spec version: 8.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,8 @@ public static function toDebugReport()
$report = 'PHP SDK (XeroAPI\XeroPHP) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: 8.2.0' . PHP_EOL;
$report .= ' SDK Package Version: 9.2.0' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 8.3.0' . PHP_EOL;
$report .= ' SDK Package Version: 9.3.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
2 changes: 2 additions & 0 deletions lib/Models/Accounting/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public function getModelName()
const ORGANISATION_ROLE_MANAGEDCLIENT = 'MANAGEDCLIENT';
const ORGANISATION_ROLE_CASHBOOKCLIENT = 'CASHBOOKCLIENT';
const ORGANISATION_ROLE_UNKNOWN = 'UNKNOWN';
const ORGANISATION_ROLE_REMOVED = 'REMOVED';



Expand All @@ -214,6 +215,7 @@ public function getOrganisationRoleAllowableValues()
self::ORGANISATION_ROLE_MANAGEDCLIENT,
self::ORGANISATION_ROLE_CASHBOOKCLIENT,
self::ORGANISATION_ROLE_UNKNOWN,
self::ORGANISATION_ROLE_REMOVED,
];
}

Expand Down
4 changes: 3 additions & 1 deletion lib/Models/AppStore/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public function getModelName()
const TYPE_FIXED = 'FIXED';
const TYPE_PER_SEAT = 'PER_SEAT';
const TYPE_METERED = 'METERED';
const TYPE_SIMPLE = 'SIMPLE';



Expand All @@ -196,6 +197,7 @@ public function getTypeAllowableValues()
self::TYPE_FIXED,
self::TYPE_PER_SEAT,
self::TYPE_METERED,
self::TYPE_SIMPLE,
];
}

Expand Down Expand Up @@ -348,7 +350,7 @@ public function getType()
/**
* Sets type
*
* @param string|null $type The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product
* @param string|null $type The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature
*
* @return $this
*/
Expand Down
Loading