{"action":"opened","number":83,"pull_request":{"url":"https://api.github.com/repos/artsy/exchange/pulls/83","id":203984361,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzOTg0MzYx","html_url":"https://github.com/artsy/exchange/pull/83","diff_url":"https://github.com/artsy/exchange/pull/83.diff","patch_url":"https://github.com/artsy/exchange/pull/83.patch","issue_url":"https://api.github.com/repos/artsy/exchange/issues/83","number":83,"state":"open","locked":false,"title":"Add more careful error handling for fetching credit card and merchant account","user":{"login":"williardx","id":4432348,"node_id":"MDQ6VXNlcjQ0MzIzNDg=","avatar_url":"https://avatars1.githubusercontent.com/u/4432348?v=4","gravatar_id":"","url":"https://api.github.com/users/williardx","html_url":"https://github.com/williardx","followers_url":"https://api.github.com/users/williardx/followers","following_url":"https://api.github.com/users/williardx/following{/other_user}","gists_url":"https://api.github.com/users/williardx/gists{/gist_id}","starred_url":"https://api.github.com/users/williardx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williardx/subscriptions","organizations_url":"https://api.github.com/users/williardx/orgs","repos_url":"https://api.github.com/users/williardx/repos","events_url":"https://api.github.com/users/williardx/events{/privacy}","received_events_url":"https://api.github.com/users/williardx/received_events","type":"User","site_admin":false},"body":"- Modifies `get_merchant_account` and `get_credit_card` to rescue `GravityError`s. If the error is a 404 raises a more informative error message.\r\n- Checks that credit cards are not deactivated\r\n- Moves merchant account / credit card data validation to `get_merchant_account` and `validate_credit_card` methods\r\n- Adds `status` to `GravityError`","created_at":"2018-07-25T22:47:53Z","updated_at":"2018-07-25T22:47:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"ashkan18","id":1230819,"node_id":"MDQ6VXNlcjEyMzA4MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1230819?v=4","gravatar_id":"","url":"https://api.github.com/users/ashkan18","html_url":"https://github.com/ashkan18","followers_url":"https://api.github.com/users/ashkan18/followers","following_url":"https://api.github.com/users/ashkan18/following{/other_user}","gists_url":"https://api.github.com/users/ashkan18/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkan18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkan18/subscriptions","organizations_url":"https://api.github.com/users/ashkan18/orgs","repos_url":"https://api.github.com/users/ashkan18/repos","events_url":"https://api.github.com/users/ashkan18/events{/privacy}","received_events_url":"https://api.github.com/users/ashkan18/received_events","type":"User","site_admin":false},"assignees":[{"login":"ashkan18","id":1230819,"node_id":"MDQ6VXNlcjEyMzA4MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1230819?v=4","gravatar_id":"","url":"https://api.github.com/users/ashkan18","html_url":"https://github.com/ashkan18","followers_url":"https://api.github.com/users/ashkan18/followers","following_url":"https://api.github.com/users/ashkan18/following{/other_user}","gists_url":"https://api.github.com/users/ashkan18/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkan18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkan18/subscriptions","organizations_url":"https://api.github.com/users/ashkan18/orgs","repos_url":"https://api.github.com/users/ashkan18/repos","events_url":"https://api.github.com/users/ashkan18/events{/privacy}","received_events_url":"https://api.github.com/users/ashkan18/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/exchange/pulls/83/commits","review_comments_url":"https://api.github.com/repos/artsy/exchange/pulls/83/comments","review_comment_url":"https://api.github.com/repos/artsy/exchange/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/exchange/issues/83/comments","statuses_url":"https://api.github.com/repos/artsy/exchange/statuses/95ad27fdb3d96c9e909357a00de28cb9fca556b0","head":{"label":"williardx:errors","ref":"errors","sha":"95ad27fdb3d96c9e909357a00de28cb9fca556b0","user":{"login":"williardx","id":4432348,"node_id":"MDQ6VXNlcjQ0MzIzNDg=","avatar_url":"https://avatars1.githubusercontent.com/u/4432348?v=4","gravatar_id":"","url":"https://api.github.com/users/williardx","html_url":"https://github.com/williardx","followers_url":"https://api.github.com/users/williardx/followers","following_url":"https://api.github.com/users/williardx/following{/other_user}","gists_url":"https://api.github.com/users/williardx/gists{/gist_id}","starred_url":"https://api.github.com/users/williardx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williardx/subscriptions","organizations_url":"https://api.github.com/users/williardx/orgs","repos_url":"https://api.github.com/users/williardx/repos","events_url":"https://api.github.com/users/williardx/events{/privacy}","received_events_url":"https://api.github.com/users/williardx/received_events","type":"User","site_admin":false},"repo":{"id":137922687,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc5MjI2ODc=","name":"stress","full_name":"williardx/stress","owner":{"login":"williardx","id":4432348,"node_id":"MDQ6VXNlcjQ0MzIzNDg=","avatar_url":"https://avatars1.githubusercontent.com/u/4432348?v=4","gravatar_id":"","url":"https://api.github.com/users/williardx","html_url":"https://github.com/williardx","followers_url":"https://api.github.com/users/williardx/followers","following_url":"https://api.github.com/users/williardx/following{/other_user}","gists_url":"https://api.github.com/users/williardx/gists{/gist_id}","starred_url":"https://api.github.com/users/williardx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williardx/subscriptions","organizations_url":"https://api.github.com/users/williardx/orgs","repos_url":"https://api.github.com/users/williardx/repos","events_url":"https://api.github.com/users/williardx/events{/privacy}","received_events_url":"https://api.github.com/users/williardx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/williardx/stress","description":"Artsy Order Management","fork":true,"url":"https://api.github.com/repos/williardx/stress","forks_url":"https://api.github.com/repos/williardx/stress/forks","keys_url":"https://api.github.com/repos/williardx/stress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/williardx/stress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/williardx/stress/teams","hooks_url":"https://api.github.com/repos/williardx/stress/hooks","issue_events_url":"https://api.github.com/repos/williardx/stress/issues/events{/number}","events_url":"https://api.github.com/repos/williardx/stress/events","assignees_url":"https://api.github.com/repos/williardx/stress/assignees{/user}","branches_url":"https://api.github.com/repos/williardx/stress/branches{/branch}","tags_url":"https://api.github.com/repos/williardx/stress/tags","blobs_url":"https://api.github.com/repos/williardx/stress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/williardx/stress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/williardx/stress/git/refs{/sha}","trees_url":"https://api.github.com/repos/williardx/stress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/williardx/stress/statuses/{sha}","languages_url":"https://api.github.com/repos/williardx/stress/languages","stargazers_url":"https://api.github.com/repos/williardx/stress/stargazers","contributors_url":"https://api.github.com/repos/williardx/stress/contributors","subscribers_url":"https://api.github.com/repos/williardx/stress/subscribers","subscription_url":"https://api.github.com/repos/williardx/stress/subscription","commits_url":"https://api.github.com/repos/williardx/stress/commits{/sha}","git_commits_url":"https://api.github.com/repos/williardx/stress/git/commits{/sha}","comments_url":"https://api.github.com/repos/williardx/stress/comments{/number}","issue_comment_url":"https://api.github.com/repos/williardx/stress/issues/comments{/number}","contents_url":"https://api.github.com/repos/williardx/stress/contents/{+path}","compare_url":"https://api.github.com/repos/williardx/stress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/williardx/stress/merges","archive_url":"https://api.github.com/repos/williardx/stress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/williardx/stress/downloads","issues_url":"https://api.github.com/repos/williardx/stress/issues{/number}","pulls_url":"https://api.github.com/repos/williardx/stress/pulls{/number}","milestones_url":"https://api.github.com/repos/williardx/stress/milestones{/number}","notifications_url":"https://api.github.com/repos/williardx/stress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/williardx/stress/labels{/name}","releases_url":"https://api.github.com/repos/williardx/stress/releases{/id}","deployments_url":"https://api.github.com/repos/williardx/stress/deployments","created_at":"2018-06-19T17:18:03Z","updated_at":"2018-07-19T19:56:42Z","pushed_at":"2018-07-25T22:45:35Z","git_url":"git://github.com/williardx/stress.git","ssh_url":"git@github.com:williardx/stress.git","clone_url":"https://github.com/williardx/stress.git","svn_url":"https://github.com/williardx/stress","homepage":"","size":271,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"14a073fd1bf1d572ea6201b6881080ba6a44aa0a","user":{"login":"artsy","id":546231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":136387707,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYzODc3MDc=","name":"exchange","full_name":"artsy/exchange","owner":{"login":"artsy","id":546231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/exchange","description":"Artsy Order Management","fork":false,"url":"https://api.github.com/repos/artsy/exchange","forks_url":"https://api.github.com/repos/artsy/exchange/forks","keys_url":"https://api.github.com/repos/artsy/exchange/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/exchange/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/exchange/teams","hooks_url":"https://api.github.com/repos/artsy/exchange/hooks","issue_events_url":"https://api.github.com/repos/artsy/exchange/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/exchange/events","assignees_url":"https://api.github.com/repos/artsy/exchange/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/exchange/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/exchange/tags","blobs_url":"https://api.github.com/repos/artsy/exchange/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/exchange/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/exchange/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/exchange/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/exchange/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/exchange/languages","stargazers_url":"https://api.github.com/repos/artsy/exchange/stargazers","contributors_url":"https://api.github.com/repos/artsy/exchange/contributors","subscribers_url":"https://api.github.com/repos/artsy/exchange/subscribers","subscription_url":"https://api.github.com/repos/artsy/exchange/subscription","commits_url":"https://api.github.com/repos/artsy/exchange/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/exchange/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/exchange/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/exchange/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/exchange/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/exchange/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/exchange/merges","archive_url":"https://api.github.com/repos/artsy/exchange/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/exchange/downloads","issues_url":"https://api.github.com/repos/artsy/exchange/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/exchange/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/exchange/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/exchange/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/exchange/labels{/name}","releases_url":"https://api.github.com/repos/artsy/exchange/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/exchange/deployments","created_at":"2018-06-06T21:24:37Z","updated_at":"2018-07-25T20:54:39Z","pushed_at":"2018-07-25T22:45:07Z","git_url":"git://github.com/artsy/exchange.git","ssh_url":"git@github.com:artsy/exchange.git","clone_url":"https://github.com/artsy/exchange.git","svn_url":"https://github.com/artsy/exchange","homepage":"","size":281,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":9,"open_issues":12,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/exchange/pulls/83"},"html":{"href":"https://github.com/artsy/exchange/pull/83"},"issue":{"href":"https://api.github.com/repos/artsy/exchange/issues/83"},"comments":{"href":"https://api.github.com/repos/artsy/exchange/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/exchange/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/exchange/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/exchange/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/exchange/statuses/95ad27fdb3d96c9e909357a00de28cb9fca556b0"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":48,"deletions":20,"changed_files":3}}
{"actor":{"display_login":"williardx"}}