Skip to content

Commit

Permalink
Merge pull request #884 from incentfit/master
Browse files Browse the repository at this point in the history
Adding FromIsReconciled and ToIsReconciled to BankTransfer
  • Loading branch information
calcinai authored Jan 29, 2023
2 parents 68ded83 + 7028bb5 commit a24eda2
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions src/XeroPHP/Models/Accounting/BankTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ class BankTransfer extends Remote\Model
* @property string ToBankTransactionID
*/

/**
* Boolean to show if the from transaction is reconciled.
*
* @property bool FromIsReconciled
*/

/**
* Boolean to show if the to transaction is reconciled.
*
* @property bool ToIsReconciled
*/

/**
* Boolean to indicate if a Bank Transfer has an attachment.
*
Expand Down Expand Up @@ -150,6 +162,8 @@ public static function getProperties()
'CurrencyRate' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],
'FromBankTransactionID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'ToBankTransactionID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'FromIsReconciled' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false],
'ToIsReconciled' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false],
'HasAttachments' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false],
'CreatedDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\DateTimeInterface', false, false],
];
Expand Down Expand Up @@ -310,6 +324,48 @@ public function getToBankTransactionID()
return $this->_data['ToBankTransactionID'];
}

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

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

return $this;
}

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

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

return $this;
}

/**
* @return bool
*/
Expand Down

0 comments on commit a24eda2

Please sign in to comment.