bunq / sdk_java

Java SDK for bunq API
MIT License
49 stars 23 forks source link

Callback models for holding callback data #33

Closed OGKevin closed 6 years ago

OGKevin commented 6 years ago

Steps to reproduce:

  1. Receive a callback as described here: https://doc.bunq.com/api/1/page/callbacks

What should happen:

  1. There is a model available so that you can do the following:
    
    $callbackModel = NotificationUrl::fromJson($CallbackJson);
    $callbackModel->getReferencedObject();

if (!$callbackModel isntanceof CallbackModelImExcpeting) { throw new Exception(); }



## What happens:
1. Such thing is not possible yet

## Logs
- Logs `no logs`

## Extra info:
- Tested on [0.12.2](https://github.com/bunq/sdk_java/releases/tag/0.12.2)

## Reference
- https://github.com/bunq/sdk_php/issues/67