Hi, Has anyone encountered this error when using PHP SDK 1.26? For better context I'm retrieving my transactions with an older method which always worked fine but not anymore apparently.
Grtz, Floris.
bunq\Exception\BunqException
Found model "PaymentSuspendedOutgoing" which is not defined.
at vendor/bunq/sdk_php/src/Util/ModelUtil.php:57
[and the portion of my Laravel code that causes it]
// get latest bunq_id to set as newer_id
if ($id = BunqMutation::where('monetary_account', $account->getId())->orderBy('bunq_id', 'desc')->first('bunq_id')) {
$newer_id = $id->bunq_id;
} else {
$newer_id = 0;
}
// get newer mutations
$mutations = Payment::listing($account->getId(), array(
"count" => 200,
"newer_id" => $newer_id
))->getValue();
// dump( count($mutations) );
foreach ($mutations as $mutation) {
BunqMutation::create([
'bunq_id' => $mutation->getId(),
'monetary_account' => $account->getId(),
'bunq_created' => $mutation->getCreated(),
'amount' => $mutation->getAmount()->getValue(),
'currency' => $mutation->getAmount()->getCurrency(),
'alias_iban' => $mutation->getAlias()->getIban(),
'alias_name' => $mutation->getAlias()->getDisplayName(),
'counter_alias_iban' => $mutation->getCounterpartyAlias()->getIban(),
'counter_alias_name' => $mutation->getCounterpartyAlias()->getDisplayName(),
'description' => $mutation->getDescription(),
'type' => $mutation->getType(),
'subtype' => $mutation->getSubType(),
]);
}