{"action":"created","comment":{"url":"https://api.github.com/repos/Pikkupomo/shoop/pulls/comments/37303319","id":37303319,"diff_hunk":"@@ -0,0 +1,32 @@\n+# -*- coding: utf-8 -*-\n+# This file is part of Shoop.\n+#\n+# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.\n+#\n+# This source code is licensed under the AGPLv3 license found in the\n+# LICENSE file in the root directory of this source tree.\n+\n+from decimal import Decimal\n+\n+from shoop.core.pricing import Price, TaxfulPrice\n+\n+\n+class PriceInfo(object):\n+    def __init__(self, price, base_price):\n+        assert isinstance(price, Price)\n+        assert isinstance(base_price, Price)\n+        assert price._units_match(base_price)\n+        self.price = price\n+        self.base_price = base_price\n+        self.includes_tax = bool(isinstance(price, TaxfulPrice))\n+        self.expires_on = None","path":"shoop/core/pricing/price_info.py","position":22,"original_position":22,"commit_id":"974f4fa085a770e0af12fdb3ca2429ff1bf0862d","original_commit_id":"974f4fa085a770e0af12fdb3ca2429ff1bf0862d","user":{"login":"suutari-ai","id":3531281,"avatar_url":"https://avatars.githubusercontent.com/u/3531281?v=3","gravatar_id":"","url":"https://api.github.com/users/suutari-ai","html_url":"https://github.com/suutari-ai","followers_url":"https://api.github.com/users/suutari-ai/followers","following_url":"https://api.github.com/users/suutari-ai/following{/other_user}","gists_url":"https://api.github.com/users/suutari-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/suutari-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suutari-ai/subscriptions","organizations_url":"https://api.github.com/users/suutari-ai/orgs","repos_url":"https://api.github.com/users/suutari-ai/repos","events_url":"https://api.github.com/users/suutari-ai/events{/privacy}","received_events_url":"https://api.github.com/users/suutari-ai/received_events","type":"User","site_admin":false},"body":"It should.","created_at":"2015-08-18T14:21:19Z","updated_at":"2015-08-18T14:21:19Z","html_url":"https://github.com/Pikkupomo/shoop/pull/1#discussion_r37303319","pull_request_url":"https://api.github.com/repos/Pikkupomo/shoop/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Pikkupomo/shoop/pulls/comments/37303319"},"html":{"href":"https://github.com/Pikkupomo/shoop/pull/1#discussion_r37303319"},"pull_request":{"href":"https://api.github.com/repos/Pikkupomo/shoop/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Pikkupomo/shoop/pulls/1","id":42669302,"html_url":"https://github.com/Pikkupomo/shoop/pull/1","diff_url":"https://github.com/Pikkupomo/shoop/pull/1.diff","patch_url":"https://github.com/Pikkupomo/shoop/pull/1.patch","issue_url":"https://api.github.com/repos/Pikkupomo/shoop/issues/1","number":1,"state":"open","locked":false,"title":"Pricing RFC","user":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-18T07:37:30Z","updated_at":"2015-08-18T14:21:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4c758bc1addf38f135b511a9b18919023a16edf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Pikkupomo/shoop/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Pikkupomo/shoop/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Pikkupomo/shoop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Pikkupomo/shoop/issues/1/comments","statuses_url":"https://api.github.com/repos/Pikkupomo/shoop/statuses/974f4fa085a770e0af12fdb3ca2429ff1bf0862d","head":{"label":"Pikkupomo:pricing","ref":"pricing","sha":"974f4fa085a770e0af12fdb3ca2429ff1bf0862d","user":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"repo":{"id":37525161,"name":"shoop","full_name":"Pikkupomo/shoop","owner":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pikkupomo/shoop","description":"","fork":true,"url":"https://api.github.com/repos/Pikkupomo/shoop","forks_url":"https://api.github.com/repos/Pikkupomo/shoop/forks","keys_url":"https://api.github.com/repos/Pikkupomo/shoop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pikkupomo/shoop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pikkupomo/shoop/teams","hooks_url":"https://api.github.com/repos/Pikkupomo/shoop/hooks","issue_events_url":"https://api.github.com/repos/Pikkupomo/shoop/issues/events{/number}","events_url":"https://api.github.com/repos/Pikkupomo/shoop/events","assignees_url":"https://api.github.com/repos/Pikkupomo/shoop/assignees{/user}","branches_url":"https://api.github.com/repos/Pikkupomo/shoop/branches{/branch}","tags_url":"https://api.github.com/repos/Pikkupomo/shoop/tags","blobs_url":"https://api.github.com/repos/Pikkupomo/shoop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pikkupomo/shoop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pikkupomo/shoop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pikkupomo/shoop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pikkupomo/shoop/statuses/{sha}","languages_url":"https://api.github.com/repos/Pikkupomo/shoop/languages","stargazers_url":"https://api.github.com/repos/Pikkupomo/shoop/stargazers","contributors_url":"https://api.github.com/repos/Pikkupomo/shoop/contributors","subscribers_url":"https://api.github.com/repos/Pikkupomo/shoop/subscribers","subscription_url":"https://api.github.com/repos/Pikkupomo/shoop/subscription","commits_url":"https://api.github.com/repos/Pikkupomo/shoop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pikkupomo/shoop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pikkupomo/shoop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pikkupomo/shoop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pikkupomo/shoop/contents/{+path}","compare_url":"https://api.github.com/repos/Pikkupomo/shoop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pikkupomo/shoop/merges","archive_url":"https://api.github.com/repos/Pikkupomo/shoop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pikkupomo/shoop/downloads","issues_url":"https://api.github.com/repos/Pikkupomo/shoop/issues{/number}","pulls_url":"https://api.github.com/repos/Pikkupomo/shoop/pulls{/number}","milestones_url":"https://api.github.com/repos/Pikkupomo/shoop/milestones{/number}","notifications_url":"https://api.github.com/repos/Pikkupomo/shoop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pikkupomo/shoop/labels{/name}","releases_url":"https://api.github.com/repos/Pikkupomo/shoop/releases{/id}","created_at":"2015-06-16T11:06:34Z","updated_at":"2015-06-16T11:06:35Z","pushed_at":"2015-08-18T12:02:15Z","git_url":"git://github.com/Pikkupomo/shoop.git","ssh_url":"git@github.com:Pikkupomo/shoop.git","clone_url":"https://github.com/Pikkupomo/shoop.git","svn_url":"https://github.com/Pikkupomo/shoop","homepage":null,"size":2861,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Pikkupomo:master","ref":"master","sha":"bc11139a0f586d939b320fe9576a0c81f7f79ae4","user":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"repo":{"id":37525161,"name":"shoop","full_name":"Pikkupomo/shoop","owner":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pikkupomo/shoop","description":"","fork":true,"url":"https://api.github.com/repos/Pikkupomo/shoop","forks_url":"https://api.github.com/repos/Pikkupomo/shoop/forks","keys_url":"https://api.github.com/repos/Pikkupomo/shoop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pikkupomo/shoop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pikkupomo/shoop/teams","hooks_url":"https://api.github.com/repos/Pikkupomo/shoop/hooks","issue_events_url":"https://api.github.com/repos/Pikkupomo/shoop/issues/events{/number}","events_url":"https://api.github.com/repos/Pikkupomo/shoop/events","assignees_url":"https://api.github.com/repos/Pikkupomo/shoop/assignees{/user}","branches_url":"https://api.github.com/repos/Pikkupomo/shoop/branches{/branch}","tags_url":"https://api.github.com/repos/Pikkupomo/shoop/tags","blobs_url":"https://api.github.com/repos/Pikkupomo/shoop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pikkupomo/shoop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pikkupomo/shoop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pikkupomo/shoop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pikkupomo/shoop/statuses/{sha}","languages_url":"https://api.github.com/repos/Pikkupomo/shoop/languages","stargazers_url":"https://api.github.com/repos/Pikkupomo/shoop/stargazers","contributors_url":"https://api.github.com/repos/Pikkupomo/shoop/contributors","subscribers_url":"https://api.github.com/repos/Pikkupomo/shoop/subscribers","subscription_url":"https://api.github.com/repos/Pikkupomo/shoop/subscription","commits_url":"https://api.github.com/repos/Pikkupomo/shoop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pikkupomo/shoop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pikkupomo/shoop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pikkupomo/shoop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pikkupomo/shoop/contents/{+path}","compare_url":"https://api.github.com/repos/Pikkupomo/shoop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pikkupomo/shoop/merges","archive_url":"https://api.github.com/repos/Pikkupomo/shoop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pikkupomo/shoop/downloads","issues_url":"https://api.github.com/repos/Pikkupomo/shoop/issues{/number}","pulls_url":"https://api.github.com/repos/Pikkupomo/shoop/pulls{/number}","milestones_url":"https://api.github.com/repos/Pikkupomo/shoop/milestones{/number}","notifications_url":"https://api.github.com/repos/Pikkupomo/shoop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pikkupomo/shoop/labels{/name}","releases_url":"https://api.github.com/repos/Pikkupomo/shoop/releases{/id}","created_at":"2015-06-16T11:06:34Z","updated_at":"2015-06-16T11:06:35Z","pushed_at":"2015-08-18T12:02:15Z","git_url":"git://github.com/Pikkupomo/shoop.git","ssh_url":"git@github.com:Pikkupomo/shoop.git","clone_url":"https://github.com/Pikkupomo/shoop.git","svn_url":"https://github.com/Pikkupomo/shoop","homepage":null,"size":2861,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Pikkupomo/shoop/pulls/1"},"html":{"href":"https://github.com/Pikkupomo/shoop/pull/1"},"issue":{"href":"https://api.github.com/repos/Pikkupomo/shoop/issues/1"},"comments":{"href":"https://api.github.com/repos/Pikkupomo/shoop/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Pikkupomo/shoop/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Pikkupomo/shoop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Pikkupomo/shoop/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Pikkupomo/shoop/statuses/974f4fa085a770e0af12fdb3ca2429ff1bf0862d"}}}}