Expand API point.

This commit is contained in:
James Cole
2021-05-07 19:32:08 +02:00
parent 506f972c75
commit 40111ed25e

View File

@@ -261,6 +261,12 @@ class OperationsRepository implements OperationsRepositoryInterface
$collector->setSourceAccounts($opposing);
}
}
if(TransactionType::TRANSFER === $type) {
// supports only accounts, not opposing.
if(null !== $accounts) {
$collector->setAccounts($accounts);
}
}
if (null !== $currency) {
$collector->setCurrency($currency);