bunq / sdk_python

Python SDK for bunq API
MIT License
106 stars 26 forks source link

Callback models for holding callback data #40

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_python/releases/tag/0.12.2)

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