sdk_csharp icon indicating copy to clipboard operation
sdk_csharp copied to clipboard

Wrong return type for NotificationFilterUrlUser.List()

Open mbedeker opened this issue 4 years ago • 0 comments

Steps to reproduce:

Calling NotificationFilterUrlUser.List()

What should happen:

It should have BunqResponse<List<NotificationFilterUrl>> as a return type. not BunqResponse<List<NotificationFilterUrlUser>>

What happens:

NotificationFilterUrlUser.List() Serializes the response to a List<NotificationFilterUrlUser>, but the response of the endpoint gives a List<NotificationFilterUrl> back.

So if there are notification filters registered, then it serializes to an array of empty objects. I've tested this by changing the returnvalue of the NotificationFilterUrlUser.List() to a BunqResponse<List<NotificationFilterUrl>>, and then there are actual values returned.

SDK version and environment

  • Tested on 0.12.4
  • [x] Sandbox
  • [ ] Production

mbedeker avatar Nov 13 '19 08:11 mbedeker