{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls/19","id":65821836,"html_url":"https://github.com/bizz84/SwiftyStoreKit/pull/19","diff_url":"https://github.com/bizz84/SwiftyStoreKit/pull/19.diff","patch_url":"https://github.com/bizz84/SwiftyStoreKit/pull/19.patch","issue_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues/19","number":19,"state":"open","locked":false,"title":"Restore Purchase call to return all restored purchase IDs at once","user":{"login":"bizz84","id":153167,"avatar_url":"https://avatars.githubusercontent.com/u/153167?v=3","gravatar_id":"","url":"https://api.github.com/users/bizz84","html_url":"https://github.com/bizz84","followers_url":"https://api.github.com/users/bizz84/followers","following_url":"https://api.github.com/users/bizz84/following{/other_user}","gists_url":"https://api.github.com/users/bizz84/gists{/gist_id}","starred_url":"https://api.github.com/users/bizz84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizz84/subscriptions","organizations_url":"https://api.github.com/users/bizz84/orgs","repos_url":"https://api.github.com/users/bizz84/repos","events_url":"https://api.github.com/users/bizz84/events{/privacy}","received_events_url":"https://api.github.com/users/bizz84/received_events","type":"User","site_admin":false},"body":"Related to this:\r\n\r\nhttps://github.com/bizz84/SwiftyStoreKit/issues/18\r\n\r\nThis is a tentative solution that gathers together all restored purchases. The case when the `restoredProductIDs` array is empty in the client callback is equivalent to the old case `.NothingToRestore`, which has now been removed.\r\n\r\nSome feedback is welcome for this pull request before it is merged as it breaks API compatibility with the older versions.\r\n\r\n","created_at":"2016-04-08T17:43:55Z","updated_at":"2016-04-08T17:43:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls/19/commits","review_comments_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls/19/comments","review_comment_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues/19/comments","statuses_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/statuses/faf77cbf79084b6849a03465b1aa715e41ce281c","head":{"label":"bizz84:feature/restore-purchases-return-all-productIDs","ref":"feature/restore-purchases-return-all-productIDs","sha":"faf77cbf79084b6849a03465b1aa715e41ce281c","user":{"login":"bizz84","id":153167,"avatar_url":"https://avatars.githubusercontent.com/u/153167?v=3","gravatar_id":"","url":"https://api.github.com/users/bizz84","html_url":"https://github.com/bizz84","followers_url":"https://api.github.com/users/bizz84/followers","following_url":"https://api.github.com/users/bizz84/following{/other_user}","gists_url":"https://api.github.com/users/bizz84/gists{/gist_id}","starred_url":"https://api.github.com/users/bizz84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizz84/subscriptions","organizations_url":"https://api.github.com/users/bizz84/orgs","repos_url":"https://api.github.com/users/bizz84/repos","events_url":"https://api.github.com/users/bizz84/events{/privacy}","received_events_url":"https://api.github.com/users/bizz84/received_events","type":"User","site_admin":false},"repo":{"id":41854508,"name":"SwiftyStoreKit","full_name":"bizz84/SwiftyStoreKit","owner":{"login":"bizz84","id":153167,"avatar_url":"https://avatars.githubusercontent.com/u/153167?v=3","gravatar_id":"","url":"https://api.github.com/users/bizz84","html_url":"https://github.com/bizz84","followers_url":"https://api.github.com/users/bizz84/followers","following_url":"https://api.github.com/users/bizz84/following{/other_user}","gists_url":"https://api.github.com/users/bizz84/gists{/gist_id}","starred_url":"https://api.github.com/users/bizz84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizz84/subscriptions","organizations_url":"https://api.github.com/users/bizz84/orgs","repos_url":"https://api.github.com/users/bizz84/repos","events_url":"https://api.github.com/users/bizz84/events{/privacy}","received_events_url":"https://api.github.com/users/bizz84/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bizz84/SwiftyStoreKit","description":"Lightweight In App Purchases Swift framework for iOS 8.0+ and OSX 9.0+","fork":false,"url":"https://api.github.com/repos/bizz84/SwiftyStoreKit","forks_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/forks","keys_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/teams","hooks_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/hooks","issue_events_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues/events{/number}","events_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/events","assignees_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/assignees{/user}","branches_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/branches{/branch}","tags_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/tags","blobs_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/statuses/{sha}","languages_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/languages","stargazers_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/stargazers","contributors_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/contributors","subscribers_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/subscribers","subscription_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/subscription","commits_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/contents/{+path}","compare_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/merges","archive_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/downloads","issues_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues{/number}","pulls_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls{/number}","milestones_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/milestones{/number}","notifications_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/labels{/name}","releases_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/releases{/id}","deployments_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/deployments","created_at":"2015-09-03T10:40:34Z","updated_at":"2016-04-08T06:55:44Z","pushed_at":"2016-04-08T17:37:38Z","git_url":"git://github.com/bizz84/SwiftyStoreKit.git","ssh_url":"git@github.com:bizz84/SwiftyStoreKit.git","clone_url":"https://github.com/bizz84/SwiftyStoreKit.git","svn_url":"https://github.com/bizz84/SwiftyStoreKit","homepage":"","size":1879,"stargazers_count":683,"watchers_count":683,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":5,"forks":27,"open_issues":5,"watchers":683,"default_branch":"master"}},"base":{"label":"bizz84:master","ref":"master","sha":"31c029b7c699e131ce0b9d58c69e0d7479b22639","user":{"login":"bizz84","id":153167,"avatar_url":"https://avatars.githubusercontent.com/u/153167?v=3","gravatar_id":"","url":"https://api.github.com/users/bizz84","html_url":"https://github.com/bizz84","followers_url":"https://api.github.com/users/bizz84/followers","following_url":"https://api.github.com/users/bizz84/following{/other_user}","gists_url":"https://api.github.com/users/bizz84/gists{/gist_id}","starred_url":"https://api.github.com/users/bizz84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizz84/subscriptions","organizations_url":"https://api.github.com/users/bizz84/orgs","repos_url":"https://api.github.com/users/bizz84/repos","events_url":"https://api.github.com/users/bizz84/events{/privacy}","received_events_url":"https://api.github.com/users/bizz84/received_events","type":"User","site_admin":false},"repo":{"id":41854508,"name":"SwiftyStoreKit","full_name":"bizz84/SwiftyStoreKit","owner":{"login":"bizz84","id":153167,"avatar_url":"https://avatars.githubusercontent.com/u/153167?v=3","gravatar_id":"","url":"https://api.github.com/users/bizz84","html_url":"https://github.com/bizz84","followers_url":"https://api.github.com/users/bizz84/followers","following_url":"https://api.github.com/users/bizz84/following{/other_user}","gists_url":"https://api.github.com/users/bizz84/gists{/gist_id}","starred_url":"https://api.github.com/users/bizz84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizz84/subscriptions","organizations_url":"https://api.github.com/users/bizz84/orgs","repos_url":"https://api.github.com/users/bizz84/repos","events_url":"https://api.github.com/users/bizz84/events{/privacy}","received_events_url":"https://api.github.com/users/bizz84/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bizz84/SwiftyStoreKit","description":"Lightweight In App Purchases Swift framework for iOS 8.0+ and OSX 9.0+","fork":false,"url":"https://api.github.com/repos/bizz84/SwiftyStoreKit","forks_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/forks","keys_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/teams","hooks_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/hooks","issue_events_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues/events{/number}","events_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/events","assignees_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/assignees{/user}","branches_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/branches{/branch}","tags_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/tags","blobs_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/statuses/{sha}","languages_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/languages","stargazers_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/stargazers","contributors_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/contributors","subscribers_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/subscribers","subscription_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/subscription","commits_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/contents/{+path}","compare_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/merges","archive_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/downloads","issues_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues{/number}","pulls_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls{/number}","milestones_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/milestones{/number}","notifications_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/labels{/name}","releases_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/releases{/id}","deployments_url":"https://api.github.com/repos/bizz84/SwiftyStoreKit/deployments","created_at":"2015-09-03T10:40:34Z","updated_at":"2016-04-08T06:55:44Z","pushed_at":"2016-04-08T17:37:38Z","git_url":"git://github.com/bizz84/SwiftyStoreKit.git","ssh_url":"git@github.com:bizz84/SwiftyStoreKit.git","clone_url":"https://github.com/bizz84/SwiftyStoreKit.git","svn_url":"https://github.com/bizz84/SwiftyStoreKit","homepage":"","size":1879,"stargazers_count":683,"watchers_count":683,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":5,"forks":27,"open_issues":5,"watchers":683,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls/19"},"html":{"href":"https://github.com/bizz84/SwiftyStoreKit/pull/19"},"issue":{"href":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues/19"},"comments":{"href":"https://api.github.com/repos/bizz84/SwiftyStoreKit/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bizz84/SwiftyStoreKit/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/bizz84/SwiftyStoreKit/statuses/faf77cbf79084b6849a03465b1aa715e41ce281c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":66,"deletions":60,"changed_files":4}}