Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding FromIsReconciled and ToIsReconciled to BankTransfer #884

Merged
merged 2 commits into from
Jan 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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