{"action":"opened","issue":{"url":"https://api.github.com/repos/bunq/sdk_php/issues/67","repository_url":"https://api.github.com/repos/bunq/sdk_php","labels_url":"https://api.github.com/repos/bunq/sdk_php/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/bunq/sdk_php/issues/67/comments","events_url":"https://api.github.com/repos/bunq/sdk_php/issues/67/events","html_url":"https://github.com/bunq/sdk_php/issues/67","id":272479872,"number":67,"title":"Callback models for holding callback data.","user":{"login":"OGKevin","id":17928966,"avatar_url":"https://avatars3.githubusercontent.com/u/17928966?v=4","gravatar_id":"","url":"https://api.github.com/users/OGKevin","html_url":"https://github.com/OGKevin","followers_url":"https://api.github.com/users/OGKevin/followers","following_url":"https://api.github.com/users/OGKevin/following{/other_user}","gists_url":"https://api.github.com/users/OGKevin/gists{/gist_id}","starred_url":"https://api.github.com/users/OGKevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OGKevin/subscriptions","organizations_url":"https://api.github.com/users/OGKevin/orgs","repos_url":"https://api.github.com/users/OGKevin/repos","events_url":"https://api.github.com/users/OGKevin/events{/privacy}","received_events_url":"https://api.github.com/users/OGKevin/received_events","type":"User","site_admin":false},"labels":[{"id":656488130,"url":"https://api.github.com/repos/bunq/sdk_php/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":738363263,"url":"https://api.github.com/repos/bunq/sdk_php/labels/needs%20core%20regeneration","name":"needs core regeneration","color":"5edbbe","default":false}],"state":"open","locked":false,"assignee":{"login":"OGKevin","id":17928966,"avatar_url":"https://avatars3.githubusercontent.com/u/17928966?v=4","gravatar_id":"","url":"https://api.github.com/users/OGKevin","html_url":"https://github.com/OGKevin","followers_url":"https://api.github.com/users/OGKevin/followers","following_url":"https://api.github.com/users/OGKevin/following{/other_user}","gists_url":"https://api.github.com/users/OGKevin/gists{/gist_id}","starred_url":"https://api.github.com/users/OGKevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OGKevin/subscriptions","organizations_url":"https://api.github.com/users/OGKevin/orgs","repos_url":"https://api.github.com/users/OGKevin/repos","events_url":"https://api.github.com/users/OGKevin/events{/privacy}","received_events_url":"https://api.github.com/users/OGKevin/received_events","type":"User","site_admin":false},"assignees":[{"login":"OGKevin","id":17928966,"avatar_url":"https://avatars3.githubusercontent.com/u/17928966?v=4","gravatar_id":"","url":"https://api.github.com/users/OGKevin","html_url":"https://github.com/OGKevin","followers_url":"https://api.github.com/users/OGKevin/followers","following_url":"https://api.github.com/users/OGKevin/following{/other_user}","gists_url":"https://api.github.com/users/OGKevin/gists{/gist_id}","starred_url":"https://api.github.com/users/OGKevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OGKevin/subscriptions","organizations_url":"https://api.github.com/users/OGKevin/orgs","repos_url":"https://api.github.com/users/OGKevin/repos","events_url":"https://api.github.com/users/OGKevin/events{/privacy}","received_events_url":"https://api.github.com/users/OGKevin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/bunq/sdk_php/milestones/5","html_url":"https://github.com/bunq/sdk_php/milestone/5","labels_url":"https://api.github.com/repos/bunq/sdk_php/milestones/5/labels","id":2899949,"number":5,"title":"0.12.3","description":"","creator":{"login":"OGKevin","id":17928966,"avatar_url":"https://avatars3.githubusercontent.com/u/17928966?v=4","gravatar_id":"","url":"https://api.github.com/users/OGKevin","html_url":"https://github.com/OGKevin","followers_url":"https://api.github.com/users/OGKevin/followers","following_url":"https://api.github.com/users/OGKevin/following{/other_user}","gists_url":"https://api.github.com/users/OGKevin/gists{/gist_id}","starred_url":"https://api.github.com/users/OGKevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OGKevin/subscriptions","organizations_url":"https://api.github.com/users/OGKevin/orgs","repos_url":"https://api.github.com/users/OGKevin/repos","events_url":"https://api.github.com/users/OGKevin/events{/privacy}","received_events_url":"https://api.github.com/users/OGKevin/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2017-11-09T08:13:05Z","updated_at":"2017-11-09T08:39:33Z","due_on":"2017-11-15T08:00:00Z","closed_at":null},"comments":0,"created_at":"2017-11-09T08:39:33Z","updated_at":"2017-11-09T08:39:33Z","closed_at":null,"author_association":"OWNER","body":"## Steps to reproduce:\r\n1. Receive a callback as described here: https://doc.bunq.com/api/1/page/callbacks\r\n\r\n## What should happen:\r\n1. There is a model available so that you can do the following:\r\n```php\r\n$callbackModel = NotificationUrl::fromJson($CallbackJson);\r\n$callbackModel->getReferencedObject();\r\n\r\nif (!$callbackModel isntanceof CallbackModelImExcpeting) {\r\n    throw new Exception();\r\n}\r\n```\r\n\r\n## What happens:\r\n1. Such thing is not possible yet\r\n\r\n## Logs\r\n- Logs `no logs`\r\n\r\n## Extra info:\r\n- Tested on [0.12.2](https://github.com/bunq/sdk_php/releases/tag/0.12.2)"}}
{"actor":{"display_login":"OGKevin"}}