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

Found model "PaymentSuspendedOutgoing" which is not defined. #240

Open
1 of 2 tasks
evertharmeling opened this issue Mar 6, 2025 · 1 comment
Open
1 of 2 tasks

Comments

@evertharmeling
Copy link

evertharmeling commented Mar 6, 2025

Steps to reproduce:

  1. Call bunq\Model\Generated\Endpoint\Payment::listing()

What should happen:

  1. Throw no BunqException and return a listing of all Payments performed on a given MonetaryAccount (incoming and outgoing)

What happens:

  1. When calling bunq\Model\Generated\Endpoint\Payment::listing() method a BunqException with message Found model "PaymentSuspendedOutgoing" which is not defined. is thrown.

Traceback

bunq\Exception\BunqException:
Found model "PaymentSuspendedOutgoing" which is not defined.

  at vendor/bunq/sdk_php/src/Util/ModelUtil.php:57
  at bunq\Util\ModelUtil::determineModelClassNameQualified('PaymentSuspendedOutgoing')
     (vendor/bunq/sdk_php/src/Model/Core/BunqModel.php:207)
  at bunq\Model\Core\BunqModel::determineFieldContents(object(ReflectionProperty), array('id' => xxx, 'created' => '2025-02-17 10:46:32.082538', 'updated' => '2025-02-18 10:47:08.729018', 'monetary_account_id' => xxx, 'status' => 'SUCCESS', 'time_execution' => '2025-02-18 10:46:27.724137', 'reason' => 'DAILY_LIMIT_UPDATE'))
     (vendor/bunq/sdk_php/src/Model/Core/BunqModel.php:162)
  at bunq\Model\Core\BunqModel::createInstanceFromResponseArray(...)
     (vendor/bunq/sdk_php/src/Model/Core/BunqModel.php:308)
  at bunq\Model\Core\BunqModel::fromJsonList(object(BunqResponseRaw), 'Payment')
     (vendor/bunq/sdk_php/src/Model/Generated/Endpoint/Payment.php:423)
  at bunq\Model\Generated\Endpoint\Payment::listing(xxx, array('newer_id' => 'xxx', 'count' => '50'))

SDK version and environment

Response id

  • Response id:

Extra info:

Since 5th of March the 'Overstapservice' is active on this MonetaryAccount, probably this is causing the issue. However this still shouldn't throw the exception when a listing of payments is retrieved.

@florisdouwes
Copy link

florisdouwes commented Mar 11, 2025

I've encountered this error already months ago. I contacted the Bunq api team few weeks ago about it, no concrete feedback from them yet. Importing transactions goes fine up until some date in 2024...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants