{"action":"closed","number":158,"pull_request":{"url":"https://api.github.com/repos/recurly/recurly-client-python/pulls/158","id":65222565,"html_url":"https://github.com/recurly/recurly-client-python/pull/158","diff_url":"https://github.com/recurly/recurly-client-python/pull/158.diff","patch_url":"https://github.com/recurly/recurly-client-python/pull/158.patch","issue_url":"https://api.github.com/repos/recurly/recurly-client-python/issues/158","number":158,"state":"closed","locked":false,"title":"Add transaction_error_code property to ValidationError class","user":{"login":"nhippenmeyer","id":656637,"avatar_url":"https://avatars.githubusercontent.com/u/656637?v=3","gravatar_id":"","url":"https://api.github.com/users/nhippenmeyer","html_url":"https://github.com/nhippenmeyer","followers_url":"https://api.github.com/users/nhippenmeyer/followers","following_url":"https://api.github.com/users/nhippenmeyer/following{/other_user}","gists_url":"https://api.github.com/users/nhippenmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/nhippenmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhippenmeyer/subscriptions","organizations_url":"https://api.github.com/users/nhippenmeyer/orgs","repos_url":"https://api.github.com/users/nhippenmeyer/repos","events_url":"https://api.github.com/users/nhippenmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/nhippenmeyer/received_events","type":"User","site_admin":false},"body":"This adds the `transaction_error_code` property to the `ValidationError` class so we can easily determine the error type for transaction errors returned by the Recurly API.\r\n\r\nReasoning: We want to maintain a dictionary of our own error messages so they can be translated into multiple languages - using the error_code as a lookup key provides a quick and efficient way to do this.","created_at":"2016-04-04T22:20:04Z","updated_at":"2016-04-13T22:47:59Z","closed_at":"2016-04-13T22:47:59Z","merged_at":"2016-04-13T22:47:59Z","merge_commit_sha":"829c1b9d1eb8f896476af0bfcce8d18ab4708771","assignee":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/recurly/recurly-client-python/pulls/158/commits","review_comments_url":"https://api.github.com/repos/recurly/recurly-client-python/pulls/158/comments","review_comment_url":"https://api.github.com/repos/recurly/recurly-client-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/recurly/recurly-client-python/issues/158/comments","statuses_url":"https://api.github.com/repos/recurly/recurly-client-python/statuses/942d38baa5d621913918d77182ab25dcdfcf7e60","head":{"label":"nhippenmeyer:add_error_code_property_to_error_class","ref":"add_error_code_property_to_error_class","sha":"942d38baa5d621913918d77182ab25dcdfcf7e60","user":{"login":"nhippenmeyer","id":656637,"avatar_url":"https://avatars.githubusercontent.com/u/656637?v=3","gravatar_id":"","url":"https://api.github.com/users/nhippenmeyer","html_url":"https://github.com/nhippenmeyer","followers_url":"https://api.github.com/users/nhippenmeyer/followers","following_url":"https://api.github.com/users/nhippenmeyer/following{/other_user}","gists_url":"https://api.github.com/users/nhippenmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/nhippenmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhippenmeyer/subscriptions","organizations_url":"https://api.github.com/users/nhippenmeyer/orgs","repos_url":"https://api.github.com/users/nhippenmeyer/repos","events_url":"https://api.github.com/users/nhippenmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/nhippenmeyer/received_events","type":"User","site_admin":false},"repo":{"id":55441903,"name":"recurly-client-python","full_name":"nhippenmeyer/recurly-client-python","owner":{"login":"nhippenmeyer","id":656637,"avatar_url":"https://avatars.githubusercontent.com/u/656637?v=3","gravatar_id":"","url":"https://api.github.com/users/nhippenmeyer","html_url":"https://github.com/nhippenmeyer","followers_url":"https://api.github.com/users/nhippenmeyer/followers","following_url":"https://api.github.com/users/nhippenmeyer/following{/other_user}","gists_url":"https://api.github.com/users/nhippenmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/nhippenmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhippenmeyer/subscriptions","organizations_url":"https://api.github.com/users/nhippenmeyer/orgs","repos_url":"https://api.github.com/users/nhippenmeyer/repos","events_url":"https://api.github.com/users/nhippenmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/nhippenmeyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nhippenmeyer/recurly-client-python","description":"Recurly Python Client","fork":true,"url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python","forks_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/forks","keys_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/teams","hooks_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/hooks","issue_events_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/issues/events{/number}","events_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/events","assignees_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/assignees{/user}","branches_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/branches{/branch}","tags_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/tags","blobs_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/languages","stargazers_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/stargazers","contributors_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/contributors","subscribers_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/subscribers","subscription_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/subscription","commits_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/contents/{+path}","compare_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/merges","archive_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/downloads","issues_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/issues{/number}","pulls_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/labels{/name}","releases_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/releases{/id}","deployments_url":"https://api.github.com/repos/nhippenmeyer/recurly-client-python/deployments","created_at":"2016-04-04T20:19:36Z","updated_at":"2016-04-04T20:19:37Z","pushed_at":"2016-04-04T23:17:57Z","git_url":"git://github.com/nhippenmeyer/recurly-client-python.git","ssh_url":"git@github.com:nhippenmeyer/recurly-client-python.git","clone_url":"https://github.com/nhippenmeyer/recurly-client-python.git","svn_url":"https://github.com/nhippenmeyer/recurly-client-python","homepage":"http://recurly.com","size":577,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"recurly:master","ref":"master","sha":"efab4fbad13b24fb7b2e3bad179b019c06941c2b","user":{"login":"recurly","id":144605,"avatar_url":"https://avatars.githubusercontent.com/u/144605?v=3","gravatar_id":"","url":"https://api.github.com/users/recurly","html_url":"https://github.com/recurly","followers_url":"https://api.github.com/users/recurly/followers","following_url":"https://api.github.com/users/recurly/following{/other_user}","gists_url":"https://api.github.com/users/recurly/gists{/gist_id}","starred_url":"https://api.github.com/users/recurly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recurly/subscriptions","organizations_url":"https://api.github.com/users/recurly/orgs","repos_url":"https://api.github.com/users/recurly/repos","events_url":"https://api.github.com/users/recurly/events{/privacy}","received_events_url":"https://api.github.com/users/recurly/received_events","type":"Organization","site_admin":false},"repo":{"id":527040,"name":"recurly-client-python","full_name":"recurly/recurly-client-python","owner":{"login":"recurly","id":144605,"avatar_url":"https://avatars.githubusercontent.com/u/144605?v=3","gravatar_id":"","url":"https://api.github.com/users/recurly","html_url":"https://github.com/recurly","followers_url":"https://api.github.com/users/recurly/followers","following_url":"https://api.github.com/users/recurly/following{/other_user}","gists_url":"https://api.github.com/users/recurly/gists{/gist_id}","starred_url":"https://api.github.com/users/recurly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recurly/subscriptions","organizations_url":"https://api.github.com/users/recurly/orgs","repos_url":"https://api.github.com/users/recurly/repos","events_url":"https://api.github.com/users/recurly/events{/privacy}","received_events_url":"https://api.github.com/users/recurly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/recurly/recurly-client-python","description":"Recurly Python Client","fork":false,"url":"https://api.github.com/repos/recurly/recurly-client-python","forks_url":"https://api.github.com/repos/recurly/recurly-client-python/forks","keys_url":"https://api.github.com/repos/recurly/recurly-client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/recurly/recurly-client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/recurly/recurly-client-python/teams","hooks_url":"https://api.github.com/repos/recurly/recurly-client-python/hooks","issue_events_url":"https://api.github.com/repos/recurly/recurly-client-python/issues/events{/number}","events_url":"https://api.github.com/repos/recurly/recurly-client-python/events","assignees_url":"https://api.github.com/repos/recurly/recurly-client-python/assignees{/user}","branches_url":"https://api.github.com/repos/recurly/recurly-client-python/branches{/branch}","tags_url":"https://api.github.com/repos/recurly/recurly-client-python/tags","blobs_url":"https://api.github.com/repos/recurly/recurly-client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/recurly/recurly-client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/recurly/recurly-client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/recurly/recurly-client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/recurly/recurly-client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/recurly/recurly-client-python/languages","stargazers_url":"https://api.github.com/repos/recurly/recurly-client-python/stargazers","contributors_url":"https://api.github.com/repos/recurly/recurly-client-python/contributors","subscribers_url":"https://api.github.com/repos/recurly/recurly-client-python/subscribers","subscription_url":"https://api.github.com/repos/recurly/recurly-client-python/subscription","commits_url":"https://api.github.com/repos/recurly/recurly-client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/recurly/recurly-client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/recurly/recurly-client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/recurly/recurly-client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/recurly/recurly-client-python/contents/{+path}","compare_url":"https://api.github.com/repos/recurly/recurly-client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/recurly/recurly-client-python/merges","archive_url":"https://api.github.com/repos/recurly/recurly-client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/recurly/recurly-client-python/downloads","issues_url":"https://api.github.com/repos/recurly/recurly-client-python/issues{/number}","pulls_url":"https://api.github.com/repos/recurly/recurly-client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/recurly/recurly-client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/recurly/recurly-client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/recurly/recurly-client-python/labels{/name}","releases_url":"https://api.github.com/repos/recurly/recurly-client-python/releases{/id}","deployments_url":"https://api.github.com/repos/recurly/recurly-client-python/deployments","created_at":"2010-02-20T03:54:56Z","updated_at":"2016-04-04T20:29:45Z","pushed_at":"2016-04-13T22:47:59Z","git_url":"git://github.com/recurly/recurly-client-python.git","ssh_url":"git@github.com:recurly/recurly-client-python.git","clone_url":"https://github.com/recurly/recurly-client-python.git","svn_url":"https://github.com/recurly/recurly-client-python","homepage":"http://recurly.com","size":620,"stargazers_count":49,"watchers_count":49,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":9,"forks":52,"open_issues":9,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/recurly/recurly-client-python/pulls/158"},"html":{"href":"https://github.com/recurly/recurly-client-python/pull/158"},"issue":{"href":"https://api.github.com/repos/recurly/recurly-client-python/issues/158"},"comments":{"href":"https://api.github.com/repos/recurly/recurly-client-python/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/recurly/recurly-client-python/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/recurly/recurly-client-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/recurly/recurly-client-python/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/recurly/recurly-client-python/statuses/942d38baa5d621913918d77182ab25dcdfcf7e60"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":41,"deletions":9,"changed_files":3}}