Skip to content

Commit a24eda2

Browse files
authored
Merge pull request #884 from incentfit/master
Adding FromIsReconciled and ToIsReconciled to BankTransfer
2 parents 68ded83 + 7028bb5 commit a24eda2

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

src/XeroPHP/Models/Accounting/BankTransfer.php

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ class BankTransfer extends Remote\Model
6565
* @property string ToBankTransactionID
6666
*/
6767

68+
/**
69+
* Boolean to show if the from transaction is reconciled.
70+
*
71+
* @property bool FromIsReconciled
72+
*/
73+
74+
/**
75+
* Boolean to show if the to transaction is reconciled.
76+
*
77+
* @property bool ToIsReconciled
78+
*/
79+
6880
/**
6981
* Boolean to indicate if a Bank Transfer has an attachment.
7082
*
@@ -150,6 +162,8 @@ public static function getProperties()
150162
'CurrencyRate' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],
151163
'FromBankTransactionID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
152164
'ToBankTransactionID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
165+
'FromIsReconciled' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false],
166+
'ToIsReconciled' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false],
153167
'HasAttachments' => [false, self::PROPERTY_TYPE_BOOLEAN, null, false, false],
154168
'CreatedDateUTC' => [false, self::PROPERTY_TYPE_TIMESTAMP, '\\DateTimeInterface', false, false],
155169
];
@@ -310,6 +324,48 @@ public function getToBankTransactionID()
310324
return $this->_data['ToBankTransactionID'];
311325
}
312326

327+
/**
328+
* @return bool
329+
*/
330+
public function getFromIsReconciled()
331+
{
332+
return $this->_data['FromIsReconciled'];
333+
}
334+
335+
/**
336+
* @param bool $value
337+
*
338+
* @return BankTransaction
339+
*/
340+
public function setFromIsReconciled($value)
341+
{
342+
$this->propertyUpdated('FromIsReconciled', $value);
343+
$this->_data['FromIsReconciled'] = $value;
344+
345+
return $this;
346+
}
347+
348+
/**
349+
* @return bool
350+
*/
351+
public function getToIsReconciled()
352+
{
353+
return $this->_data['ToIsReconciled'];
354+
}
355+
356+
/**
357+
* @param bool $value
358+
*
359+
* @return BankTransaction
360+
*/
361+
public function setToIsReconciled($value)
362+
{
363+
$this->propertyUpdated('ToIsReconciled', $value);
364+
$this->_data['ToIsReconciled'] = $value;
365+
366+
return $this;
367+
}
368+
313369
/**
314370
* @return bool
315371
*/

0 commit comments

Comments
 (0)