{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/comments/56211327","id":56211327,"diff_hunk":"@@ -9,6 +10,12 @@ def _get_first_by_status(resources, status):\n \n class RecurringApplicationCharge(ShopifyResource):\n \n+    def usage_charges(self):\n+        return shopify.UsageCharge.find(recurring_application_charge_id=self.id)","path":"shopify/resources/recurring_application_charge.py","position":11,"original_position":11,"commit_id":"8dce3e8e5e5cd1edbd568ea630c9c1275bbb6211","original_commit_id":"8dce3e8e5e5cd1edbd568ea630c9c1275bbb6211","user":{"login":"sluggoman","id":7141852,"avatar_url":"https://avatars.githubusercontent.com/u/7141852?v=3","gravatar_id":"","url":"https://api.github.com/users/sluggoman","html_url":"https://github.com/sluggoman","followers_url":"https://api.github.com/users/sluggoman/followers","following_url":"https://api.github.com/users/sluggoman/following{/other_user}","gists_url":"https://api.github.com/users/sluggoman/gists{/gist_id}","starred_url":"https://api.github.com/users/sluggoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sluggoman/subscriptions","organizations_url":"https://api.github.com/users/sluggoman/orgs","repos_url":"https://api.github.com/users/sluggoman/repos","events_url":"https://api.github.com/users/sluggoman/events{/privacy}","received_events_url":"https://api.github.com/users/sluggoman/received_events","type":"User","site_admin":false},"body":"__init__ is importing usage_charge as UsageCharge why \"import shopify\" and use the namespaced version?","created_at":"2016-03-15T18:03:15Z","updated_at":"2016-03-15T18:03:15Z","html_url":"https://github.com/Shopify/shopify_python_api/pull/131#discussion_r56211327","pull_request_url":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/131","_links":{"self":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/comments/56211327"},"html":{"href":"https://github.com/Shopify/shopify_python_api/pull/131#discussion_r56211327"},"pull_request":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/131"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/131","id":62947707,"html_url":"https://github.com/Shopify/shopify_python_api/pull/131","diff_url":"https://github.com/Shopify/shopify_python_api/pull/131.diff","patch_url":"https://github.com/Shopify/shopify_python_api/pull/131.patch","issue_url":"https://api.github.com/repos/Shopify/shopify_python_api/issues/131","number":131,"state":"open","locked":false,"title":"add usage_charge resource and update recurring charge","user":{"login":"ch33sybr3ad","id":9372981,"avatar_url":"https://avatars.githubusercontent.com/u/9372981?v=3","gravatar_id":"","url":"https://api.github.com/users/ch33sybr3ad","html_url":"https://github.com/ch33sybr3ad","followers_url":"https://api.github.com/users/ch33sybr3ad/followers","following_url":"https://api.github.com/users/ch33sybr3ad/following{/other_user}","gists_url":"https://api.github.com/users/ch33sybr3ad/gists{/gist_id}","starred_url":"https://api.github.com/users/ch33sybr3ad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch33sybr3ad/subscriptions","organizations_url":"https://api.github.com/users/ch33sybr3ad/orgs","repos_url":"https://api.github.com/users/ch33sybr3ad/repos","events_url":"https://api.github.com/users/ch33sybr3ad/events{/privacy}","received_events_url":"https://api.github.com/users/ch33sybr3ad/received_events","type":"User","site_admin":false},"body":"## Description\r\n- adds support for `usage_charge` resource\r\n- adds `#customize` and `#usage_charges` to `recurring_application_charge`\r\n\r\n@Shopify/finance @dominiquesr @kevinhughes27 @dylanahsmith ","created_at":"2016-03-15T17:43:53Z","updated_at":"2016-03-15T18:03:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93eb1af8c93ff21c1b92cc9900c99aec8c43958e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/131/commits","review_comments_url":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/131/comments","review_comment_url":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/shopify_python_api/issues/131/comments","statuses_url":"https://api.github.com/repos/Shopify/shopify_python_api/statuses/8dce3e8e5e5cd1edbd568ea630c9c1275bbb6211","head":{"label":"Shopify:usage_charge_resource","ref":"usage_charge_resource","sha":"8dce3e8e5e5cd1edbd568ea630c9c1275bbb6211","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":2249127,"name":"shopify_python_api","full_name":"Shopify/shopify_python_api","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/shopify_python_api","description":"ShopifyAPI library allows Python developers to programmatically access the admin section of stores","fork":false,"url":"https://api.github.com/repos/Shopify/shopify_python_api","forks_url":"https://api.github.com/repos/Shopify/shopify_python_api/forks","keys_url":"https://api.github.com/repos/Shopify/shopify_python_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/shopify_python_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/shopify_python_api/teams","hooks_url":"https://api.github.com/repos/Shopify/shopify_python_api/hooks","issue_events_url":"https://api.github.com/repos/Shopify/shopify_python_api/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/shopify_python_api/events","assignees_url":"https://api.github.com/repos/Shopify/shopify_python_api/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/shopify_python_api/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/shopify_python_api/tags","blobs_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/shopify_python_api/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/shopify_python_api/languages","stargazers_url":"https://api.github.com/repos/Shopify/shopify_python_api/stargazers","contributors_url":"https://api.github.com/repos/Shopify/shopify_python_api/contributors","subscribers_url":"https://api.github.com/repos/Shopify/shopify_python_api/subscribers","subscription_url":"https://api.github.com/repos/Shopify/shopify_python_api/subscription","commits_url":"https://api.github.com/repos/Shopify/shopify_python_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/shopify_python_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/shopify_python_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/shopify_python_api/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/shopify_python_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/shopify_python_api/merges","archive_url":"https://api.github.com/repos/Shopify/shopify_python_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/shopify_python_api/downloads","issues_url":"https://api.github.com/repos/Shopify/shopify_python_api/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/shopify_python_api/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/shopify_python_api/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/shopify_python_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/shopify_python_api/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/shopify_python_api/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/shopify_python_api/deployments","created_at":"2011-08-22T14:49:21Z","updated_at":"2016-02-16T10:57:13Z","pushed_at":"2016-03-15T17:43:54Z","git_url":"git://github.com/Shopify/shopify_python_api.git","ssh_url":"git@github.com:Shopify/shopify_python_api.git","clone_url":"https://github.com/Shopify/shopify_python_api.git","svn_url":"https://github.com/Shopify/shopify_python_api","homepage":"http://shopify.github.io/shopify_python_api","size":431,"stargazers_count":130,"watchers_count":130,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":53,"mirror_url":null,"open_issues_count":17,"forks":53,"open_issues":17,"watchers":130,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"2cff80bbb6c69958e8a50b73dac019da7de5eb25","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":2249127,"name":"shopify_python_api","full_name":"Shopify/shopify_python_api","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/shopify_python_api","description":"ShopifyAPI library allows Python developers to programmatically access the admin section of stores","fork":false,"url":"https://api.github.com/repos/Shopify/shopify_python_api","forks_url":"https://api.github.com/repos/Shopify/shopify_python_api/forks","keys_url":"https://api.github.com/repos/Shopify/shopify_python_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/shopify_python_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/shopify_python_api/teams","hooks_url":"https://api.github.com/repos/Shopify/shopify_python_api/hooks","issue_events_url":"https://api.github.com/repos/Shopify/shopify_python_api/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/shopify_python_api/events","assignees_url":"https://api.github.com/repos/Shopify/shopify_python_api/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/shopify_python_api/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/shopify_python_api/tags","blobs_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/shopify_python_api/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/shopify_python_api/languages","stargazers_url":"https://api.github.com/repos/Shopify/shopify_python_api/stargazers","contributors_url":"https://api.github.com/repos/Shopify/shopify_python_api/contributors","subscribers_url":"https://api.github.com/repos/Shopify/shopify_python_api/subscribers","subscription_url":"https://api.github.com/repos/Shopify/shopify_python_api/subscription","commits_url":"https://api.github.com/repos/Shopify/shopify_python_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/shopify_python_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/shopify_python_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/shopify_python_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/shopify_python_api/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/shopify_python_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/shopify_python_api/merges","archive_url":"https://api.github.com/repos/Shopify/shopify_python_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/shopify_python_api/downloads","issues_url":"https://api.github.com/repos/Shopify/shopify_python_api/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/shopify_python_api/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/shopify_python_api/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/shopify_python_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/shopify_python_api/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/shopify_python_api/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/shopify_python_api/deployments","created_at":"2011-08-22T14:49:21Z","updated_at":"2016-02-16T10:57:13Z","pushed_at":"2016-03-15T17:43:54Z","git_url":"git://github.com/Shopify/shopify_python_api.git","ssh_url":"git@github.com:Shopify/shopify_python_api.git","clone_url":"https://github.com/Shopify/shopify_python_api.git","svn_url":"https://github.com/Shopify/shopify_python_api","homepage":"http://shopify.github.io/shopify_python_api","size":431,"stargazers_count":130,"watchers_count":130,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":53,"mirror_url":null,"open_issues_count":17,"forks":53,"open_issues":17,"watchers":130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/131"},"html":{"href":"https://github.com/Shopify/shopify_python_api/pull/131"},"issue":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/issues/131"},"comments":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/shopify_python_api/statuses/8dce3e8e5e5cd1edbd568ea630c9c1275bbb6211"}}}}