Skip to content

Commit

Permalink
Updated models
Browse files Browse the repository at this point in the history
  • Loading branch information
calcinai committed Oct 19, 2015
1 parent 8dabade commit 025052e
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion src/XeroPHP/Models/PayrollAU/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,16 @@ class Employee extends Remote\Object
*/

/**
* Occupation of the employee (max length = 50)
* This property has been removed from the Xero API
*
* @property string Occupation
* @deprecated
*/

/**
* JobTitle of the employee (max length = 50)
*
* @property string JobTitle
*/

/**
Expand Down Expand Up @@ -268,6 +275,7 @@ public static function getProperties()
'IsAuthorisedToApproveLeave' => array (false, self::PROPERTY_TYPE_BOOLEAN, null, false, false),
'IsAuthorisedToApproveTimesheets' => array (false, self::PROPERTY_TYPE_BOOLEAN, null, false, false),
'Occupation' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'JobTitle' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'Classification' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'OrdinaryEarningsRateID' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'PayrollCalendarID' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
Expand Down Expand Up @@ -537,6 +545,7 @@ public function setIsAuthorisedToApproveTimesheet($value)

/**
* @return string
* @deprecated
*/
public function getOccupation()
{
Expand All @@ -546,6 +555,7 @@ public function getOccupation()
/**
* @param string $value
* @return Employee
* @deprecated
*/
public function setOccupation($value)
{
Expand All @@ -554,6 +564,25 @@ public function setOccupation($value)
return $this;
}

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

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

/**
* @return string
*/
Expand Down

0 comments on commit 025052e

Please sign in to comment.