{"action":"closed","issue":{"url":"https://api.github.com/repos/killbill/killbill/issues/431","repository_url":"https://api.github.com/repos/killbill/killbill","labels_url":"https://api.github.com/repos/killbill/killbill/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/killbill/killbill/issues/431/comments","events_url":"https://api.github.com/repos/killbill/killbill/issues/431/events","html_url":"https://github.com/killbill/killbill/issues/431","id":114440806,"number":431,"title":"New apis to retrieve blocking states","user":{"login":"sbrossie","id":246910,"avatar_url":"https://avatars.githubusercontent.com/u/246910?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrossie","html_url":"https://github.com/sbrossie","followers_url":"https://api.github.com/users/sbrossie/followers","following_url":"https://api.github.com/users/sbrossie/following{/other_user}","gists_url":"https://api.github.com/users/sbrossie/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrossie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrossie/subscriptions","organizations_url":"https://api.github.com/users/sbrossie/orgs","repos_url":"https://api.github.com/users/sbrossie/repos","events_url":"https://api.github.com/users/sbrossie/events{/privacy}","received_events_url":"https://api.github.com/users/sbrossie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/killbill/killbill/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/killbill/killbill/labels/ENTITLEMENT","name":"ENTITLEMENT","color":"0b02e1"}],"state":"closed","locked":false,"assignee":{"login":"sbrossie","id":246910,"avatar_url":"https://avatars.githubusercontent.com/u/246910?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrossie","html_url":"https://github.com/sbrossie","followers_url":"https://api.github.com/users/sbrossie/followers","following_url":"https://api.github.com/users/sbrossie/following{/other_user}","gists_url":"https://api.github.com/users/sbrossie/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrossie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrossie/subscriptions","organizations_url":"https://api.github.com/users/sbrossie/orgs","repos_url":"https://api.github.com/users/sbrossie/repos","events_url":"https://api.github.com/users/sbrossie/events{/privacy}","received_events_url":"https://api.github.com/users/sbrossie/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/killbill/killbill/milestones/24","html_url":"https://github.com/killbill/killbill/milestones/Release-0.17.0","labels_url":"https://api.github.com/repos/killbill/killbill/milestones/24/labels","id":1478786,"number":24,"title":"Release-0.17.0","description":"","creator":{"login":"sbrossie","id":246910,"avatar_url":"https://avatars.githubusercontent.com/u/246910?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrossie","html_url":"https://github.com/sbrossie","followers_url":"https://api.github.com/users/sbrossie/followers","following_url":"https://api.github.com/users/sbrossie/following{/other_user}","gists_url":"https://api.github.com/users/sbrossie/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrossie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrossie/subscriptions","organizations_url":"https://api.github.com/users/sbrossie/orgs","repos_url":"https://api.github.com/users/sbrossie/repos","events_url":"https://api.github.com/users/sbrossie/events{/privacy}","received_events_url":"https://api.github.com/users/sbrossie/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":21,"state":"open","created_at":"2015-12-31T03:16:14Z","updated_at":"2016-03-18T21:10:59Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-31T23:45:34Z","updated_at":"2016-03-18T21:10:59Z","closed_at":"2016-03-18T21:10:59Z","body":"The system allows to add blocking states (either through pause/unpause operations) or using lower level apis `block/unblock`, but does not allow to fetch existing blocking events. A subset of all of those apis may be needed to be able to correctly use that functionality:\r\n* Retrieves `BlockingState` on a per service/blockableId level\r\n  * All of them\r\n  * Up to a given date\r\n  * Up to now\r\n* Retrieves aggregate  `BlockingState` on a per service/blockableId level (but for instance if the blockableId is a `BUNDLE` we should allow return the one for the `ACOUNT`, so user can understand the state of the blockableId for its service\r\n  * All of them\r\n  * Up to a given date\r\n  * Up to now\r\n* Retrieves   aggregate  `BlockingState` across services for a given blockableId so user can understand the state of the blockableId\r\n  * All of them\r\n  * Up to a given date\r\n  * Up to now\r\n"}}