From 7028bb5fd59ca009f59aa09a0cb202bccad97dc1 Mon Sep 17 00:00:00 2001 From: incentfit Date: Wed, 25 Jan 2023 21:26:12 +0000 Subject: [PATCH] adding FromIsReconciled and ToIsReconciled to BankTransfer --- .../Models/Accounting/BankTransfer.php | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/XeroPHP/Models/Accounting/BankTransfer.php b/src/XeroPHP/Models/Accounting/BankTransfer.php index 57912e10..9dd0d897 100644 --- a/src/XeroPHP/Models/Accounting/BankTransfer.php +++ b/src/XeroPHP/Models/Accounting/BankTransfer.php @@ -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. * @@ -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], ]; @@ -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 */