You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a typo in the bunq\Model\Generated\Endpoint\SchedulePayment class. It has the constant const OBJECT_TYPE = 'SchedulePayment'; while the API returns an object of type ScheduledPayment. When I change the constant to this, it works fine.
Hey Mathijs,
Thanks for this report, will try and reproduce shortly and see whats going on here. Unfortunately because this file is in the generated folder this requires a change on bunq’s side and therefore is not a quick fix. This means that it won’t be fixed in the release of this week.
On 13 Nov 2017, at 12:26, Mathijs Bernson ***@***.***> wrote:
There is a typo in the bunq\Model\Generated\Endpoint\SchedulePayment class. It has the constant const OBJECT_TYPE = 'SchedulePayment'; while the API returns an object of type ScheduledPayment. When I change the constant to this, it works fine.
Steps to reproduce:
Run this piece of code: https://gist.github.com/mbernson/dd8c966e277b4acd820463335cd47e24 <https://gist.github.com/mbernson/dd8c966e277b4acd820463335cd47e24>
What should happen:
I see a var_dump of my scheduled payments.
What happens:
PHP Notice: Undefined index: SchedulePayment in /Users/mathijs/Code/bunqapibouwsel/vendor/bunq/sdk_php/src/Model/Core/BunqModel.php on line 115
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#70>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ARGTBrV-fm22cLS0qhm2xfQ131rf1MgBks5s2CdPgaJpZM4QbniM>.
There is a typo in the
bunq\Model\Generated\Endpoint\SchedulePayment
class. It has the constantconst OBJECT_TYPE = 'SchedulePayment';
while the API returns an object of typeScheduledPayment
. When I change the constant to this, it works fine.Steps to reproduce:
What should happen:
What happens:
PHP Notice: Undefined index: SchedulePayment in /Users/mathijs/Code/bunqapibouwsel/vendor/bunq/sdk_php/src/Model/Core/BunqModel.php on line 115
Extra info:
The text was updated successfully, but these errors were encountered: