Skip to content

Commit

Permalink
Merge pull request #823 from victormacko/termination-reason
Browse files Browse the repository at this point in the history
Added termination-reason property to employee modal
  • Loading branch information
calcinai committed Sep 21, 2021
2 parents 98527c6 + 71dfd02 commit 50b5fae
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/XeroPHP/Models/PayrollAU/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ class Employee extends Remote\Model
* @property \DateTimeInterface TerminationDate
*/

/**
* Employee Termination Reason
*
* @property string TerminationReason
*/

/**
* Xero unique identifier for an Employee.
*
Expand Down Expand Up @@ -296,6 +302,7 @@ public static function getProperties()
'LeaveBalances' => [false, self::PROPERTY_TYPE_OBJECT, 'PayrollAU\\Employee\\LeaveBalance', true, false],
'SuperMemberships' => [false, self::PROPERTY_TYPE_OBJECT, 'PayrollAU\\Employee\\SuperMembership', true, false],
'TerminationDate' => [false, self::PROPERTY_TYPE_DATE, '\\DateTimeInterface', false, false],
'TerminationReason' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'EmployeeID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'Status' => [false, self::PROPERTY_TYPE_ENUM, null, false, false],
'UpdatedDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\DateTimeInterface', false, false],
Expand Down Expand Up @@ -849,6 +856,27 @@ public function setTerminationDate(\DateTimeInterface $value)
return $this;
}

/**
* @return string
*/
public function getTerminationReason()
{
return $this->_data['TerminationReason'];
}

/**
* @param string $value
*
* @return Employee
*/
public function setTerminationReason($value)
{
$this->propertyUpdated('TerminationReason', $value);
$this->_data['TerminationReason'] = $value;

return $this;
}

/**
* @return string
*/
Expand Down

0 comments on commit 50b5fae

Please sign in to comment.