{"action":"closed","number":558,"pull_request":{"url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/558","id":220240872,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMjQwODcy","html_url":"https://github.com/crossroads/api.goodcity/pull/558","diff_url":"https://github.com/crossroads/api.goodcity/pull/558.diff","patch_url":"https://github.com/crossroads/api.goodcity/pull/558.patch","issue_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/558","number":558,"state":"closed","locked":false,"title":"GCW-2139 Beneficiary endpoint","user":{"login":"patrixr","id":1822532,"node_id":"MDQ6VXNlcjE4MjI1MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1822532?v=4","gravatar_id":"","url":"https://api.github.com/users/patrixr","html_url":"https://github.com/patrixr","followers_url":"https://api.github.com/users/patrixr/followers","following_url":"https://api.github.com/users/patrixr/following{/other_user}","gists_url":"https://api.github.com/users/patrixr/gists{/gist_id}","starred_url":"https://api.github.com/users/patrixr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrixr/subscriptions","organizations_url":"https://api.github.com/users/patrixr/orgs","repos_url":"https://api.github.com/users/patrixr/repos","events_url":"https://api.github.com/users/patrixr/events{/privacy}","received_events_url":"https://api.github.com/users/patrixr/received_events","type":"User","site_admin":false},"body":"A beneficiary refers to the person the goods are meant to go to.\r\n\r\nThis PR includes the following changes : \r\n\r\n- Creation of an IdentityType model and endpoint\r\nThis is a lookup table for the different kinds of identification papers a person can have (e.g id card, passport, refugee form)\r\n**NOTE**: A rake task has been added to populate the different types of IDs\r\n\r\n- Creation of a Beneficiary model and endpoint\r\nThis model contains the details of a person : name, phone, id type/number\r\n\r\n- Addition of a 'beneficiary' field to orders\r\n","created_at":"2018-10-04T03:40:59Z","updated_at":"2018-10-17T13:53:09Z","closed_at":"2018-10-17T13:53:09Z","merged_at":"2018-10-17T13:53:09Z","merge_commit_sha":"4b605c990fce4f334b46879ac17dfa6b86f6d6da","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/558/commits","review_comments_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/558/comments","review_comment_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/558/comments","statuses_url":"https://api.github.com/repos/crossroads/api.goodcity/statuses/6569b80d8357eccb5ad58fa0bce4c694ef005634","head":{"label":"crossroads:GCW-2139-beneficiary-endpoint","ref":"GCW-2139-beneficiary-endpoint","sha":"6569b80d8357eccb5ad58fa0bce4c694ef005634","user":{"login":"crossroads","id":141971,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTk3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/141971?v=4","gravatar_id":"","url":"https://api.github.com/users/crossroads","html_url":"https://github.com/crossroads","followers_url":"https://api.github.com/users/crossroads/followers","following_url":"https://api.github.com/users/crossroads/following{/other_user}","gists_url":"https://api.github.com/users/crossroads/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads/subscriptions","organizations_url":"https://api.github.com/users/crossroads/orgs","repos_url":"https://api.github.com/users/crossroads/repos","events_url":"https://api.github.com/users/crossroads/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads/received_events","type":"Organization","site_admin":false},"repo":{"id":21196107,"node_id":"MDEwOlJlcG9zaXRvcnkyMTE5NjEwNw==","name":"api.goodcity","full_name":"crossroads/api.goodcity","private":false,"owner":{"login":"crossroads","id":141971,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTk3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/141971?v=4","gravatar_id":"","url":"https://api.github.com/users/crossroads","html_url":"https://github.com/crossroads","followers_url":"https://api.github.com/users/crossroads/followers","following_url":"https://api.github.com/users/crossroads/following{/other_user}","gists_url":"https://api.github.com/users/crossroads/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads/subscriptions","organizations_url":"https://api.github.com/users/crossroads/orgs","repos_url":"https://api.github.com/users/crossroads/repos","events_url":"https://api.github.com/users/crossroads/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/crossroads/api.goodcity","description":"GoodCity API server","fork":false,"url":"https://api.github.com/repos/crossroads/api.goodcity","forks_url":"https://api.github.com/repos/crossroads/api.goodcity/forks","keys_url":"https://api.github.com/repos/crossroads/api.goodcity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crossroads/api.goodcity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crossroads/api.goodcity/teams","hooks_url":"https://api.github.com/repos/crossroads/api.goodcity/hooks","issue_events_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/events{/number}","events_url":"https://api.github.com/repos/crossroads/api.goodcity/events","assignees_url":"https://api.github.com/repos/crossroads/api.goodcity/assignees{/user}","branches_url":"https://api.github.com/repos/crossroads/api.goodcity/branches{/branch}","tags_url":"https://api.github.com/repos/crossroads/api.goodcity/tags","blobs_url":"https://api.github.com/repos/crossroads/api.goodcity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crossroads/api.goodcity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crossroads/api.goodcity/git/refs{/sha}","trees_url":"https://api.github.com/repos/crossroads/api.goodcity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crossroads/api.goodcity/statuses/{sha}","languages_url":"https://api.github.com/repos/crossroads/api.goodcity/languages","stargazers_url":"https://api.github.com/repos/crossroads/api.goodcity/stargazers","contributors_url":"https://api.github.com/repos/crossroads/api.goodcity/contributors","subscribers_url":"https://api.github.com/repos/crossroads/api.goodcity/subscribers","subscription_url":"https://api.github.com/repos/crossroads/api.goodcity/subscription","commits_url":"https://api.github.com/repos/crossroads/api.goodcity/commits{/sha}","git_commits_url":"https://api.github.com/repos/crossroads/api.goodcity/git/commits{/sha}","comments_url":"https://api.github.com/repos/crossroads/api.goodcity/comments{/number}","issue_comment_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/comments{/number}","contents_url":"https://api.github.com/repos/crossroads/api.goodcity/contents/{+path}","compare_url":"https://api.github.com/repos/crossroads/api.goodcity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crossroads/api.goodcity/merges","archive_url":"https://api.github.com/repos/crossroads/api.goodcity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crossroads/api.goodcity/downloads","issues_url":"https://api.github.com/repos/crossroads/api.goodcity/issues{/number}","pulls_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls{/number}","milestones_url":"https://api.github.com/repos/crossroads/api.goodcity/milestones{/number}","notifications_url":"https://api.github.com/repos/crossroads/api.goodcity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crossroads/api.goodcity/labels{/name}","releases_url":"https://api.github.com/repos/crossroads/api.goodcity/releases{/id}","deployments_url":"https://api.github.com/repos/crossroads/api.goodcity/deployments","created_at":"2014-06-25T08:40:40Z","updated_at":"2018-10-16T03:35:01Z","pushed_at":"2018-10-17T13:53:09Z","git_url":"git://github.com/crossroads/api.goodcity.git","ssh_url":"git@github.com:crossroads/api.goodcity.git","clone_url":"https://github.com/crossroads/api.goodcity.git","svn_url":"https://github.com/crossroads/api.goodcity","homepage":"https://api.goodcity.hk","size":6129,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":44,"license":null,"forks":5,"open_issues":44,"watchers":6,"default_branch":"master"}},"base":{"label":"crossroads:master","ref":"master","sha":"bd86539343672b614bdfb2bf33e2234aed82cde2","user":{"login":"crossroads","id":141971,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTk3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/141971?v=4","gravatar_id":"","url":"https://api.github.com/users/crossroads","html_url":"https://github.com/crossroads","followers_url":"https://api.github.com/users/crossroads/followers","following_url":"https://api.github.com/users/crossroads/following{/other_user}","gists_url":"https://api.github.com/users/crossroads/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads/subscriptions","organizations_url":"https://api.github.com/users/crossroads/orgs","repos_url":"https://api.github.com/users/crossroads/repos","events_url":"https://api.github.com/users/crossroads/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads/received_events","type":"Organization","site_admin":false},"repo":{"id":21196107,"node_id":"MDEwOlJlcG9zaXRvcnkyMTE5NjEwNw==","name":"api.goodcity","full_name":"crossroads/api.goodcity","private":false,"owner":{"login":"crossroads","id":141971,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTk3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/141971?v=4","gravatar_id":"","url":"https://api.github.com/users/crossroads","html_url":"https://github.com/crossroads","followers_url":"https://api.github.com/users/crossroads/followers","following_url":"https://api.github.com/users/crossroads/following{/other_user}","gists_url":"https://api.github.com/users/crossroads/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads/subscriptions","organizations_url":"https://api.github.com/users/crossroads/orgs","repos_url":"https://api.github.com/users/crossroads/repos","events_url":"https://api.github.com/users/crossroads/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/crossroads/api.goodcity","description":"GoodCity API server","fork":false,"url":"https://api.github.com/repos/crossroads/api.goodcity","forks_url":"https://api.github.com/repos/crossroads/api.goodcity/forks","keys_url":"https://api.github.com/repos/crossroads/api.goodcity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crossroads/api.goodcity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crossroads/api.goodcity/teams","hooks_url":"https://api.github.com/repos/crossroads/api.goodcity/hooks","issue_events_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/events{/number}","events_url":"https://api.github.com/repos/crossroads/api.goodcity/events","assignees_url":"https://api.github.com/repos/crossroads/api.goodcity/assignees{/user}","branches_url":"https://api.github.com/repos/crossroads/api.goodcity/branches{/branch}","tags_url":"https://api.github.com/repos/crossroads/api.goodcity/tags","blobs_url":"https://api.github.com/repos/crossroads/api.goodcity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crossroads/api.goodcity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crossroads/api.goodcity/git/refs{/sha}","trees_url":"https://api.github.com/repos/crossroads/api.goodcity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crossroads/api.goodcity/statuses/{sha}","languages_url":"https://api.github.com/repos/crossroads/api.goodcity/languages","stargazers_url":"https://api.github.com/repos/crossroads/api.goodcity/stargazers","contributors_url":"https://api.github.com/repos/crossroads/api.goodcity/contributors","subscribers_url":"https://api.github.com/repos/crossroads/api.goodcity/subscribers","subscription_url":"https://api.github.com/repos/crossroads/api.goodcity/subscription","commits_url":"https://api.github.com/repos/crossroads/api.goodcity/commits{/sha}","git_commits_url":"https://api.github.com/repos/crossroads/api.goodcity/git/commits{/sha}","comments_url":"https://api.github.com/repos/crossroads/api.goodcity/comments{/number}","issue_comment_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/comments{/number}","contents_url":"https://api.github.com/repos/crossroads/api.goodcity/contents/{+path}","compare_url":"https://api.github.com/repos/crossroads/api.goodcity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crossroads/api.goodcity/merges","archive_url":"https://api.github.com/repos/crossroads/api.goodcity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crossroads/api.goodcity/downloads","issues_url":"https://api.github.com/repos/crossroads/api.goodcity/issues{/number}","pulls_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls{/number}","milestones_url":"https://api.github.com/repos/crossroads/api.goodcity/milestones{/number}","notifications_url":"https://api.github.com/repos/crossroads/api.goodcity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crossroads/api.goodcity/labels{/name}","releases_url":"https://api.github.com/repos/crossroads/api.goodcity/releases{/id}","deployments_url":"https://api.github.com/repos/crossroads/api.goodcity/deployments","created_at":"2014-06-25T08:40:40Z","updated_at":"2018-10-16T03:35:01Z","pushed_at":"2018-10-17T13:53:09Z","git_url":"git://github.com/crossroads/api.goodcity.git","ssh_url":"git@github.com:crossroads/api.goodcity.git","clone_url":"https://github.com/crossroads/api.goodcity.git","svn_url":"https://github.com/crossroads/api.goodcity","homepage":"https://api.goodcity.hk","size":6129,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":44,"license":null,"forks":5,"open_issues":44,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/558"},"html":{"href":"https://github.com/crossroads/api.goodcity/pull/558"},"issue":{"href":"https://api.github.com/repos/crossroads/api.goodcity/issues/558"},"comments":{"href":"https://api.github.com/repos/crossroads/api.goodcity/issues/558/comments"},"review_comments":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/558/comments"},"review_comment":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/558/commits"},"statuses":{"href":"https://api.github.com/repos/crossroads/api.goodcity/statuses/6569b80d8357eccb5ad58fa0bce4c694ef005634"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"namrataukirde","id":8424592,"node_id":"MDQ6VXNlcjg0MjQ1OTI=","avatar_url":"https://avatars3.githubusercontent.com/u/8424592?v=4","gravatar_id":"","url":"https://api.github.com/users/namrataukirde","html_url":"https://github.com/namrataukirde","followers_url":"https://api.github.com/users/namrataukirde/followers","following_url":"https://api.github.com/users/namrataukirde/following{/other_user}","gists_url":"https://api.github.com/users/namrataukirde/gists{/gist_id}","starred_url":"https://api.github.com/users/namrataukirde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namrataukirde/subscriptions","organizations_url":"https://api.github.com/users/namrataukirde/orgs","repos_url":"https://api.github.com/users/namrataukirde/repos","events_url":"https://api.github.com/users/namrataukirde/events{/privacy}","received_events_url":"https://api.github.com/users/namrataukirde/received_events","type":"User","site_admin":false},"comments":6,"review_comments":24,"maintainer_can_modify":false,"commits":12,"additions":515,"deletions":9,"changed_files":27}}
{"actor":{"display_login":"namrataukirde"}}