Skip to content
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
2 changes: 1 addition & 1 deletion docs/v2/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6343,7 +6343,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>10.2.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>10.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
2 changes: 1 addition & 1 deletion docs/v2/appstore/index.html
Original file line number Diff line number Diff line change
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>10.2.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>10.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 @@ -1418,7 +1418,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>10.2.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>10.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
2 changes: 1 addition & 1 deletion 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>10.2.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>10.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
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>10.2.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>10.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>10.2.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>10.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>10.2.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>10.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
102 changes: 101 additions & 1 deletion docs/v2/payroll_uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,53 @@
}
},
"description" : ""
};
defs["ContractType"] = {
"title" : "",
"type" : "string",
"description" : "The contract type of the employee.",
"example" : "FullTime",
"enum" : [ "FullTime", "PartTime", "ZeroHour", "Unspecified" ]
};
defs["Contracts"] = {
"title" : "",
"required" : [ "contractType", "employmentStatus", "startDate" ],
"type" : "object",
"properties" : {
"startDate" : {
"type" : "string",
"description" : "The contract start date of the employee. This will be locked once an employee has been paid and cannot be changed (YYYY-MM-DD)",
"format" : "date",
"example" : "2024-12-02",
"x-is-date" : true
},
"employmentStatus" : {
"$ref" : "#/components/schemas/EmploymentStatus"
},
"contractType" : {
"$ref" : "#/components/schemas/ContractType"
},
"publicKey" : {
"type" : "string",
"description" : "The public key of the contract. Public key is required if the intention is to edit an existing contract. If no key is supplied a new contract will be created",
"format" : "uuid"
},
"isFixedTerm" : {
"type" : "boolean",
"description" : "describes whether the contract is fixed term (required if trying to create Fixed term contract)"
},
"fixedTermEndDate" : {
"type" : "string",
"description" : "The fixed term end date of the employee. Not required if isFixedTerm is false or not provided (required if trying to create Fixed term contract)",
"format" : "date",
"example" : "2025-11-01",
"x-is-date" : true
},
"developmentalRoleDetails" : {
"$ref" : "#/components/schemas/DevelopmentalRoleDetails"
}
},
"description" : ""
};
defs["CourtOrderLine"] = {
"title" : "",
Expand Down Expand Up @@ -1249,6 +1296,38 @@
}
},
"description" : ""
};
defs["DevelopmentalRoleDetails"] = {
"title" : "",
"required" : [ "developmentalRole", "endDate", "startDate" ],
"type" : "object",
"properties" : {
"startDate" : {
"type" : "string",
"description" : "The start date of the developmental role",
"format" : "date",
"example" : "2024-12-02",
"x-is-date" : true
},
"endDate" : {
"type" : "string",
"description" : "The end date of the developmental role",
"format" : "date",
"example" : "2024-12-02",
"x-is-date" : true
},
"developmentalRole" : {
"type" : "string",
"description" : "The developmental role type - \"Apprentice\" is the only supported role currently",
"example" : "Apprentice"
},
"publicKey" : {
"type" : "string",
"description" : "The public key of the developmental role. Public key is required if the intention is to edit an existing developmental role. If no key is supplied a new developmental role will be created",
"format" : "uuid"
}
},
"description" : ""
};
defs["EarningsLine"] = {
"title" : "",
Expand Down Expand Up @@ -1613,6 +1692,13 @@
"isOffPayrollWorker" : {
"type" : "boolean",
"description" : "Whether the employee is an off payroll worker"
},
"contracts" : {
"type" : "array",
"description" : "The employee's contracts",
"items" : {
"$ref" : "#/components/schemas/Contracts"
}
}
},
"description" : ""
Expand Down Expand Up @@ -2300,6 +2386,13 @@
"items" : {
"$ref" : "#/components/schemas/NICategory"
}
},
"contracts" : {
"type" : "array",
"description" : "The employee's contracts",
"items" : {
"$ref" : "#/components/schemas/Contracts"
}
}
},
"description" : ""
Expand All @@ -2319,6 +2412,13 @@
}
},
"description" : ""
};
defs["EmploymentStatus"] = {
"title" : "",
"type" : "string",
"description" : "The employment status of the employee.",
"example" : "Employee",
"enum" : [ "Employee", "Worker", "Unspecified" ]
};
defs["InvalidField"] = {
"title" : "",
Expand Down Expand Up @@ -3599,7 +3699,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>10.2.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>10.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>10.2.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>10.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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* 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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* 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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
2 changes: 1 addition & 1 deletion 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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* 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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* 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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* 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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* 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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* 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: 9.2.0
* OpenAPI spec version: 9.3.0
* Contact: api@xero.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
Expand Down
6 changes: 3 additions & 3 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = '[xero-php-oauth2 (10.2.0)]';
protected $userAgent = '[xero-php-oauth2 (10.3.0)]';

/**
* Debug switch (default set to false)
Expand Down 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: 9.2.0' . PHP_EOL;
$report .= ' SDK Package Version: 10.2.0' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 9.3.0' . PHP_EOL;
$report .= ' SDK Package Version: 10.3.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
68 changes: 68 additions & 0 deletions lib/Models/PayrollUk/ContractType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
/**
* ContractType
*
* PHP version 5
*
* @category Class
* @package XeroAPI\XeroPHP
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/

/**
* Xero Payroll UK
*
* This is the Xero Payroll API for orgs in the UK region.
*
* Contact: api@xero.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.4.0
*/

/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace XeroAPI\XeroPHP\Models\PayrollUk;
use \XeroAPI\XeroPHP\PayrollUkObjectSerializer;
use \XeroAPI\XeroPHP\StringUtil;
use ReturnTypeWillChange;

/**
* ContractType Class Doc Comment
*
* @category Class
* @description The contract type of the employee.
* @package XeroAPI\XeroPHP
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ContractType
{
/**
* Possible values of this enum
*/
const FULL_TIME = 'FullTime';
const PART_TIME = 'PartTime';
const ZERO_HOUR = 'ZeroHour';
const UNSPECIFIED = 'Unspecified';

/**
* Gets allowable values of the enum
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::FULL_TIME,
self::PART_TIME,
self::ZERO_HOUR,
self::UNSPECIFIED,
];
}
}


Loading
Loading