Skip to content

Commit

Permalink
Build from OAS 6.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Sep 11, 2024
1 parent 16e60e1 commit d7af2a8
Show file tree
Hide file tree
Showing 21 changed files with 67 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/v2/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6215,7 +6215,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>7.2.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>7.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>7.2.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>7.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>7.2.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>7.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>7.2.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>7.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 @@ -2736,7 +2736,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>7.2.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>7.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>7.2.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>7.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 @@ -4030,7 +4030,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>7.2.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>7.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
10 changes: 9 additions & 1 deletion docs/v2/payroll_uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,13 @@
"type" : "number",
"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\"",
"format" : "double"
},
"scheduleOfAccrualDate" : {
"type" : "string",
"description" : "The date when an employee becomes entitled to their accrual. Only applicable when scheduleOfAccrual is \"OnAnniversaryDate\"",
"format" : "date",
"example" : "2024-04-01",
"x-is-date" : true
}
},
"description" : ""
Expand Down Expand Up @@ -3509,7 +3516,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>7.2.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>7.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 Expand Up @@ -4901,6 +4908,7 @@ <h3>Usage and SDK Samples</h3>
$employeeLeaveType->setLeaveTypeID('00000000-0000-0000-0000-000000000000');
$employeeLeaveType->setScheduleOfAccrual(XeroAPI\XeroPHP\Models\PayrollUk\EmployeeLeaveType\ScheduleOfAccrualEnum.BeginningOfCalendarYear);
$employeeLeaveType->setOpeningBalance(5.25);
$employeeLeaveType->setScheduleOfAccrualDate($);

try {
$result = $apiInstance->createEmployeeLeaveType($xeroTenantId, $employeeID, $employeeLeaveType, $idempotencyKey);
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>7.2.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>7.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: 6.2.0
* OpenAPI spec version: 6.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: 6.2.0
* OpenAPI spec version: 6.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: 6.2.0
* OpenAPI spec version: 6.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/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: 6.2.0
* OpenAPI spec version: 6.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/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: 6.2.0
* OpenAPI spec version: 6.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: 6.2.0
* OpenAPI spec version: 6.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: 6.2.0
* OpenAPI spec version: 6.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: 6.2.0
* OpenAPI spec version: 6.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: 6.2.0
* OpenAPI spec version: 6.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: 6.2.0
* OpenAPI spec version: 6.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: 6.2.0' . PHP_EOL;
$report .= ' SDK Package Version: 7.2.0' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 6.3.0' . PHP_EOL;
$report .= ' SDK Package Version: 7.3.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
43 changes: 38 additions & 5 deletions lib/Models/PayrollUk/EmployeeLeaveType.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ class EmployeeLeaveType implements ModelInterface, ArrayAccess
'hours_accrued_annually' => 'double',
'maximum_to_accrue' => 'double',
'opening_balance' => 'double',
'rate_accrued_hourly' => 'double'
'rate_accrued_hourly' => 'double',
'schedule_of_accrual_date' => '\DateTime'
];

/**
Expand All @@ -77,7 +78,8 @@ class EmployeeLeaveType implements ModelInterface, ArrayAccess
'hours_accrued_annually' => 'double',
'maximum_to_accrue' => 'double',
'opening_balance' => 'double',
'rate_accrued_hourly' => 'double'
'rate_accrued_hourly' => 'double',
'schedule_of_accrual_date' => 'date'
];

/**
Expand Down Expand Up @@ -112,7 +114,8 @@ public static function openAPIFormats()
'hours_accrued_annually' => 'hoursAccruedAnnually',
'maximum_to_accrue' => 'maximumToAccrue',
'opening_balance' => 'openingBalance',
'rate_accrued_hourly' => 'rateAccruedHourly'
'rate_accrued_hourly' => 'rateAccruedHourly',
'schedule_of_accrual_date' => 'scheduleOfAccrualDate'
];

/**
Expand All @@ -126,7 +129,8 @@ public static function openAPIFormats()
'hours_accrued_annually' => 'setHoursAccruedAnnually',
'maximum_to_accrue' => 'setMaximumToAccrue',
'opening_balance' => 'setOpeningBalance',
'rate_accrued_hourly' => 'setRateAccruedHourly'
'rate_accrued_hourly' => 'setRateAccruedHourly',
'schedule_of_accrual_date' => 'setScheduleOfAccrualDate'
];

/**
Expand All @@ -140,7 +144,8 @@ public static function openAPIFormats()
'hours_accrued_annually' => 'getHoursAccruedAnnually',
'maximum_to_accrue' => 'getMaximumToAccrue',
'opening_balance' => 'getOpeningBalance',
'rate_accrued_hourly' => 'getRateAccruedHourly'
'rate_accrued_hourly' => 'getRateAccruedHourly',
'schedule_of_accrual_date' => 'getScheduleOfAccrualDate'
];

/**
Expand Down Expand Up @@ -228,6 +233,7 @@ public function __construct(array $data = null)
$this->container['maximum_to_accrue'] = isset($data['maximum_to_accrue']) ? $data['maximum_to_accrue'] : null;
$this->container['opening_balance'] = isset($data['opening_balance']) ? $data['opening_balance'] : null;
$this->container['rate_accrued_hourly'] = isset($data['rate_accrued_hourly']) ? $data['rate_accrued_hourly'] : null;
$this->container['schedule_of_accrual_date'] = isset($data['schedule_of_accrual_date']) ? $data['schedule_of_accrual_date'] : null;
}

/**
Expand Down Expand Up @@ -438,6 +444,33 @@ public function setRateAccruedHourly($rate_accrued_hourly)
}



/**
* Gets schedule_of_accrual_date
*
* @return \DateTime|null
*/
public function getScheduleOfAccrualDate()
{
return $this->container['schedule_of_accrual_date'];
}

/**
* Sets schedule_of_accrual_date
*
* @param \DateTime|null $schedule_of_accrual_date The date when an employee becomes entitled to their accrual. Only applicable when scheduleOfAccrual is \"OnAnniversaryDate\"
*
* @return $this
*/
public function setScheduleOfAccrualDate($schedule_of_accrual_date)
{

$this->container['schedule_of_accrual_date'] = $schedule_of_accrual_date;

return $this;
}


/**
* Returns true if offset exists. False otherwise.
*
Expand Down

0 comments on commit d7af2a8

Please sign in to comment.