Closed
Description
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
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
Extra info:
- Tested on bunq/sdk_java version 0.12.2 and the production bunq API