Skip to content

Commit

Permalink
Merge pull request #610 from wbercx/add-payitem-current-record
Browse files Browse the repository at this point in the history
Add CurrentRecord getters and setters to every PayItem model.
  • Loading branch information
calcinai authored Jan 28, 2020
2 parents 11f7ba4 + 9a56d05 commit ecfc03b
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/XeroPHP/Models/PayrollAU/PayItem/DeductionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public static function getProperties()
'ReducesTax' => [true, self::PROPERTY_TYPE_FLOAT, null, false, false],
'ReducesSuper' => [true, self::PROPERTY_TYPE_STRING, null, false, false],
'DeductionTypeID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'CurrentRecord' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false]
];
}

Expand Down Expand Up @@ -217,4 +218,25 @@ public function setDeductionTypeID($value)

return $this;
}

/**
* @return bool
*/
public function getCurrentRecord()
{
return $this->_data['CurrentRecord'];
}

/**
* @param bool $value
*
* @return DeductionType
*/
public function setCurrentRecord($value)
{
$this->propertyUpdated('CurrentRecord', $value);
$this->_data['CurrentRecord'] = $value;

return $this;
}
}
22 changes: 22 additions & 0 deletions src/XeroPHP/Models/PayrollAU/PayItem/EarningsRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public static function getProperties()
'Multiplier' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],
'AccrueLeave' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],
'Amount' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],
'CurrentRecord' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false]
];
}

Expand Down Expand Up @@ -430,4 +431,25 @@ public function setAmount($value)

return $this;
}

/**
* @return bool
*/
public function getCurrentRecord()
{
return $this->_data['CurrentRecord'];
}

/**
* @param bool $value
*
* @return EarningsRate
*/
public function setCurrentRecord($value)
{
$this->propertyUpdated('CurrentRecord', $value);
$this->_data['CurrentRecord'] = $value;

return $this;
}
}
22 changes: 22 additions & 0 deletions src/XeroPHP/Models/PayrollAU/PayItem/LeaveType.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public static function getProperties()
'LeaveTypeID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'NormalEntitlement' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'LeaveLoadingRate' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],
'CurrentRecord' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false]
];
}

Expand Down Expand Up @@ -273,4 +274,25 @@ public function setLeaveLoadingRate($value)

return $this;
}

/**
* @return bool
*/
public function getCurrentRecord()
{
return $this->_data['CurrentRecord'];
}

/**
* @param bool $value
*
* @return LeaveType
*/
public function setCurrentRecord($value)
{
$this->propertyUpdated('CurrentRecord', $value);
$this->_data['CurrentRecord'] = $value;

return $this;
}
}
22 changes: 22 additions & 0 deletions src/XeroPHP/Models/PayrollAU/PayItem/ReimbursementType.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public static function getProperties()
'Name' => [true, self::PROPERTY_TYPE_STRING, null, false, false],
'AccountCode' => [true, self::PROPERTY_TYPE_STRING, null, false, false],
'ReimbursementTypeID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'CurrentRecord' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false]
];
}

Expand Down Expand Up @@ -159,4 +160,25 @@ public function setReimbursementTypeID($value)

return $this;
}

/**
* @return bool
*/
public function getCurrentRecord()
{
return $this->_data['CurrentRecord'];
}

/**
* @param bool $value
*
* @return ReimbursementType
*/
public function setCurrentRecord($value)
{
$this->propertyUpdated('CurrentRecord', $value);
$this->_data['CurrentRecord'] = $value;

return $this;
}
}

0 comments on commit ecfc03b

Please sign in to comment.