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

Scheduled payments are not decoded because of a typo #70

Closed
mbernson opened this issue Nov 13, 2017 · 3 comments
Closed

Scheduled payments are not decoded because of a typo #70

mbernson opened this issue Nov 13, 2017 · 3 comments

Comments

@mbernson
Copy link
Contributor

mbernson commented Nov 13, 2017

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:

  1. Run this piece of code: https://gist.github.com/mbernson/dd8c966e277b4acd820463335cd47e24

What should happen:

  1. I see a var_dump of my scheduled payments.

What happens:

  1. 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_php version 0.12.2 and the production bunq API
@OGKevin OGKevin self-assigned this Nov 13, 2017
@OGKevin OGKevin added this to the 0.12.4 milestone Nov 13, 2017
@OGKevin
Copy link
Contributor

OGKevin commented Nov 13, 2017 via email

@OGKevin
Copy link
Contributor

OGKevin commented Nov 13, 2017

Well, it can of course be hotfixed as well because it’s a 🐜 .

@OGKevin
Copy link
Contributor

OGKevin commented Nov 15, 2017

FYI @mbernson

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

No branches or pull requests

2 participants