{"action":"created","comment":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/comments/52146243","id":52146243,"diff_hunk":"@@ -0,0 +1,286 @@\n+from __future__ import unicode_literals\n+from datetime import date\n+from decimal import Decimal\n+\n+from django.conf import settings\n+from django.db import models\n+from django.utils.translation import pgettext, pgettext_lazy\n+from django.utils.encoding import python_2_unicode_compatible, smart_text\n+from django_countries import countries\n+from django_prices.models import PriceField\n+from prices import FixedDiscount, percentage_discount, Price\n+\n+from ..cart.utils import (\n+    get_product_variants_and_prices, get_category_variants_and_prices)\n+\n+\n+class NotApplicable(ValueError):\n+    pass\n+\n+\n+class VoucherQueryset(models.QuerySet):\n+\n+    def active(self):\n+        today = date.today()\n+        queryset = self.filter(\n+            models.Q(usage_limit__isnull=True)\n+            | models.Q(used__lt=models.F('usage_limit')))\n+        queryset = queryset.filter(\n+            models.Q(end_date__isnull=True)\n+            | models.Q(end_date__gte=today))\n+        queryset = queryset.filter(start_date__lte=today)\n+        return queryset\n+\n+\n+@python_2_unicode_compatible\n+class Voucher(models.Model):\n+\n+    APPLY_TO_ONE_PRODUCT = 'one'\n+    APPLY_TO_ALL_PRODUCTS = 'all'\n+\n+    APPLY_TO_PRODUCT_CHOICES = (\n+        (APPLY_TO_ONE_PRODUCT,\n+         pgettext_lazy('voucher', 'Apply to a single item')),\n+        (APPLY_TO_ALL_PRODUCTS,\n+         pgettext_lazy('voucher', 'Apply to all matching products')))\n+\n+    DISCOUNT_VALUE_FIXED = 'fixed'\n+    DISCOUNT_VALUE_PERCENTAGE = 'percentage'\n+\n+    DISCOUNT_VALUE_TYPE_CHOICES = (\n+        (DISCOUNT_VALUE_FIXED,\n+         pgettext_lazy('voucher', settings.DEFAULT_CURRENCY)),\n+        (DISCOUNT_VALUE_PERCENTAGE, pgettext_lazy('voucher', '%')))\n+\n+    PRODUCT_TYPE = 'product'\n+    CATEGORY_TYPE = 'category'\n+    SHIPPING_TYPE = 'shipping'\n+    VALUE_TYPE = 'value'\n+\n+    TYPE_CHOICES = (\n+        (VALUE_TYPE, pgettext_lazy('voucher', 'All purchases')),\n+        (PRODUCT_TYPE, pgettext_lazy('voucher', 'One product')),\n+        (CATEGORY_TYPE, pgettext_lazy('voucherl', 'A category of products')),\n+        (SHIPPING_TYPE, pgettext_lazy('voucher', 'Shipping')))\n+\n+    type = models.CharField(\n+        pgettext_lazy('voucher', 'discount for'), max_length=20,\n+        choices=TYPE_CHOICES, default=VALUE_TYPE)\n+    name = models.CharField(\n+        pgettext_lazy('voucher', 'name'), max_length=255, null=True,\n+        blank=True)\n+    code = models.CharField(\n+        pgettext_lazy('voucher', 'code'), max_length=12, unique=True,\n+        db_index=True)\n+    usage_limit = models.PositiveIntegerField(\n+        pgettext_lazy('voucher', 'usage limit'), null=True, blank=True)\n+    used = models.PositiveIntegerField(default=0, editable=False)\n+    start_date = models.DateField(\n+        pgettext_lazy('voucher', 'start date'), default=date.today)\n+    end_date = models.DateField(\n+        pgettext_lazy('voucher', 'end date'), null=True, blank=True)\n+\n+    discount_value_type = models.CharField(\n+        pgettext_lazy('voucher', 'discount type'), max_length=10,\n+        choices=DISCOUNT_VALUE_TYPE_CHOICES, default=DISCOUNT_VALUE_FIXED)\n+    discount_value = models.DecimalField(\n+        pgettext_lazy('voucher', 'discount value'), max_digits=12,\n+        decimal_places=2)\n+\n+    # not mandatory fields, usage depends on type\n+    product = models.ForeignKey('product.Product', blank=True, null=True)\n+    category = models.ForeignKey('product.Category', blank=True, null=True)\n+    apply_to = models.CharField(max_length=20, blank=True, null=True)\n+    limit = PriceField(max_digits=12, decimal_places=2, null=True,\n+                       blank=True, currency=settings.DEFAULT_CURRENCY)\n+\n+    objects = VoucherQueryset.as_manager()\n+\n+    @property\n+    def is_free(self):\n+        return (self.discount_value == Decimal(100) and\n+                self.discount_value_type == Voucher.DISCOUNT_VALUE_PERCENTAGE)\n+\n+    def __str__(self):\n+        if self.name:\n+            return self.name\n+        discount = '%s%s' % (\n+            self.discount_value, self.get_discount_value_type_display())\n+        if self.type == Voucher.SHIPPING_TYPE:\n+            if self.is_free:\n+                return pgettext('voucher', 'Free shipping')\n+            else:\n+                return pgettext('voucher', '%(discount)s off shipping') % {\n+                    'discount': discount}\n+        if self.type == Voucher.PRODUCT_TYPE:\n+            return pgettext('voucher', '%(discount)s off %(product)s') % {\n+                'discount': discount, 'product': self.product}\n+        if self.type == Voucher.CATEGORY_TYPE:\n+            return pgettext('voucher', '%(discount)s off %(category)s') % {\n+                'discount': discount, 'category': self.category}\n+        return pgettext('voucher', '%(discount)s off') % {'discount': discount}\n+\n+    def get_apply_to_display(self):\n+        if self.type == Voucher.SHIPPING_TYPE and self.apply_to:\n+            return countries.name(self.apply_to)\n+        if self.type == Voucher.SHIPPING_TYPE:\n+            return pgettext('voucher', 'Any country')\n+        if self.apply_to and self.type in {\n+                Voucher.PRODUCT_TYPE, Voucher.CATEGORY_TYPE}:\n+            choices = dict(self.APPLY_TO_PRODUCT_CHOICES)\n+            return choices[self.apply_to]\n+\n+    def get_fixed_discount_for(self, amount):\n+        if self.discount_value_type == self.DISCOUNT_VALUE_FIXED:\n+            discount_price = Price(net=self.discount_value,\n+                                   currency=settings.DEFAULT_CURRENCY)\n+            discount = FixedDiscount(\n+                amount=discount_price, name=smart_text(self))\n+        elif self.discount_value_type == self.DISCOUNT_VALUE_PERCENTAGE:\n+            discount = percentage_discount(\n+                value=self.discount_value, name=smart_text(self))\n+            fixed_discount_value = amount - discount.apply(amount)\n+            # todo: Fix prces to quantize this discount type\n+            cent = Decimal('0.01')\n+            fixed_discount_value = fixed_discount_value.quantize(cent)\n+            discount = FixedDiscount(\n+                amount=fixed_discount_value, name=smart_text(self))\n+        else:\n+            raise NotImplementedError('Unknown discount value type')\n+        # todo: Fix the price apply method to not return negative values\n+        if discount.amount > amount:\n+            return FixedDiscount(amount, name=smart_text(self))\n+        else:\n+            return discount\n+\n+    def get_discount_for_checkout(self, checkout):\n+        if self.type == Voucher.VALUE_TYPE:\n+            cart_total = checkout.cart.get_total()\n+            limit = self.limit if self.limit is not None else cart_total\n+            if cart_total < limit:\n+                msg = pgettext('voucher', 'Discount applicable only for cart '\n+                               'total equal or greater than %(amount)s'\n+                               '%(currency)s')\n+                raise NotApplicable(msg % {\n+                    'amount': limit.net,\n+                    'currency': limit.currency})\n+            return self.get_fixed_discount_for(cart_total)\n+\n+        elif self.type == Voucher.SHIPPING_TYPE:\n+            if not checkout.is_shipping_required:\n+                msg = pgettext('voucher', 'Checkout is not shippable')","path":"saleor/discount/models.py","position":171,"original_position":171,"commit_id":"8c30756c2a1858913004bd1403d773f457ca4173","original_commit_id":"77280b9e4500af82e6cf018a8766f8f2e4610677","user":{"login":"patrys","id":81205,"avatar_url":"https://avatars.githubusercontent.com/u/81205?v=3","gravatar_id":"","url":"https://api.github.com/users/patrys","html_url":"https://github.com/patrys","followers_url":"https://api.github.com/users/patrys/followers","following_url":"https://api.github.com/users/patrys/following{/other_user}","gists_url":"https://api.github.com/users/patrys/gists{/gist_id}","starred_url":"https://api.github.com/users/patrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrys/subscriptions","organizations_url":"https://api.github.com/users/patrys/orgs","repos_url":"https://api.github.com/users/patrys/repos","events_url":"https://api.github.com/users/patrys/events{/privacy}","received_events_url":"https://api.github.com/users/patrys/received_events","type":"User","site_admin":false},"body":"`Your order does not require shipping.`","created_at":"2016-02-08T09:23:43Z","updated_at":"2016-02-08T09:23:43Z","html_url":"https://github.com/mirumee/saleor/pull/455#discussion_r52146243","pull_request_url":"https://api.github.com/repos/mirumee/saleor/pulls/455","_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments/52146243"},"html":{"href":"https://github.com/mirumee/saleor/pull/455#discussion_r52146243"},"pull_request":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/455"}}},"pull_request":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/455","id":57735686,"html_url":"https://github.com/mirumee/saleor/pull/455","diff_url":"https://github.com/mirumee/saleor/pull/455.diff","patch_url":"https://github.com/mirumee/saleor/pull/455.patch","issue_url":"https://api.github.com/repos/mirumee/saleor/issues/455","number":455,"state":"open","locked":false,"title":"Coupons and sales","user":{"login":"mociepka","id":1870738,"avatar_url":"https://avatars.githubusercontent.com/u/1870738?v=3","gravatar_id":"","url":"https://api.github.com/users/mociepka","html_url":"https://github.com/mociepka","followers_url":"https://api.github.com/users/mociepka/followers","following_url":"https://api.github.com/users/mociepka/following{/other_user}","gists_url":"https://api.github.com/users/mociepka/gists{/gist_id}","starred_url":"https://api.github.com/users/mociepka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mociepka/subscriptions","organizations_url":"https://api.github.com/users/mociepka/orgs","repos_url":"https://api.github.com/users/mociepka/repos","events_url":"https://api.github.com/users/mociepka/events{/privacy}","received_events_url":"https://api.github.com/users/mociepka/received_events","type":"User","site_admin":false},"body":"Features:\r\n* [x] one module with all discounts,\r\n* [x] coupons/vouchers functionality,\r\n* [x] discount form in checkout:\r\n    ![image](https://cloud.githubusercontent.com/assets/1870738/12694986/68e2c420-c73f-11e5-826b-79fda1b3ba3d.png)\r\n\r\nFixes #365","created_at":"2016-01-30T09:43:24Z","updated_at":"2016-02-08T09:23:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a21ea5d93a78a76dbc3387adf93928ba8976c14e","assignee":{"login":"patrys","id":81205,"avatar_url":"https://avatars.githubusercontent.com/u/81205?v=3","gravatar_id":"","url":"https://api.github.com/users/patrys","html_url":"https://github.com/patrys","followers_url":"https://api.github.com/users/patrys/followers","following_url":"https://api.github.com/users/patrys/following{/other_user}","gists_url":"https://api.github.com/users/patrys/gists{/gist_id}","starred_url":"https://api.github.com/users/patrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrys/subscriptions","organizations_url":"https://api.github.com/users/patrys/orgs","repos_url":"https://api.github.com/users/patrys/repos","events_url":"https://api.github.com/users/patrys/events{/privacy}","received_events_url":"https://api.github.com/users/patrys/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mirumee/saleor/pulls/455/commits","review_comments_url":"https://api.github.com/repos/mirumee/saleor/pulls/455/comments","review_comment_url":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirumee/saleor/issues/455/comments","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/8c30756c2a1858913004bd1403d773f457ca4173","head":{"label":"mociepka:feature/cupons","ref":"feature/cupons","sha":"8c30756c2a1858913004bd1403d773f457ca4173","user":{"login":"mociepka","id":1870738,"avatar_url":"https://avatars.githubusercontent.com/u/1870738?v=3","gravatar_id":"","url":"https://api.github.com/users/mociepka","html_url":"https://github.com/mociepka","followers_url":"https://api.github.com/users/mociepka/followers","following_url":"https://api.github.com/users/mociepka/following{/other_user}","gists_url":"https://api.github.com/users/mociepka/gists{/gist_id}","starred_url":"https://api.github.com/users/mociepka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mociepka/subscriptions","organizations_url":"https://api.github.com/users/mociepka/orgs","repos_url":"https://api.github.com/users/mociepka/repos","events_url":"https://api.github.com/users/mociepka/events{/privacy}","received_events_url":"https://api.github.com/users/mociepka/received_events","type":"User","site_admin":false},"repo":{"id":39761548,"name":"saleor","full_name":"mociepka/saleor","owner":{"login":"mociepka","id":1870738,"avatar_url":"https://avatars.githubusercontent.com/u/1870738?v=3","gravatar_id":"","url":"https://api.github.com/users/mociepka","html_url":"https://github.com/mociepka","followers_url":"https://api.github.com/users/mociepka/followers","following_url":"https://api.github.com/users/mociepka/following{/other_user}","gists_url":"https://api.github.com/users/mociepka/gists{/gist_id}","starred_url":"https://api.github.com/users/mociepka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mociepka/subscriptions","organizations_url":"https://api.github.com/users/mociepka/orgs","repos_url":"https://api.github.com/users/mociepka/repos","events_url":"https://api.github.com/users/mociepka/events{/privacy}","received_events_url":"https://api.github.com/users/mociepka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mociepka/saleor","description":"An e-commerce storefront for Python","fork":true,"url":"https://api.github.com/repos/mociepka/saleor","forks_url":"https://api.github.com/repos/mociepka/saleor/forks","keys_url":"https://api.github.com/repos/mociepka/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mociepka/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mociepka/saleor/teams","hooks_url":"https://api.github.com/repos/mociepka/saleor/hooks","issue_events_url":"https://api.github.com/repos/mociepka/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mociepka/saleor/events","assignees_url":"https://api.github.com/repos/mociepka/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mociepka/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mociepka/saleor/tags","blobs_url":"https://api.github.com/repos/mociepka/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mociepka/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mociepka/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mociepka/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mociepka/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mociepka/saleor/languages","stargazers_url":"https://api.github.com/repos/mociepka/saleor/stargazers","contributors_url":"https://api.github.com/repos/mociepka/saleor/contributors","subscribers_url":"https://api.github.com/repos/mociepka/saleor/subscribers","subscription_url":"https://api.github.com/repos/mociepka/saleor/subscription","commits_url":"https://api.github.com/repos/mociepka/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mociepka/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mociepka/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mociepka/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mociepka/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mociepka/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mociepka/saleor/merges","archive_url":"https://api.github.com/repos/mociepka/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mociepka/saleor/downloads","issues_url":"https://api.github.com/repos/mociepka/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mociepka/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mociepka/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mociepka/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mociepka/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mociepka/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/mociepka/saleor/deployments","created_at":"2015-07-27T07:40:24Z","updated_at":"2016-01-19T12:45:24Z","pushed_at":"2016-02-08T09:21:39Z","git_url":"git://github.com/mociepka/saleor.git","ssh_url":"git@github.com:mociepka/saleor.git","clone_url":"https://github.com/mociepka/saleor.git","svn_url":"https://github.com/mociepka/saleor","homepage":"http://getsaleor.com","size":4779,"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":"mirumee:master","ref":"master","sha":"21cbc40a241f8424f052b5fb7b1403411399e0ca","user":{"login":"mirumee","id":170574,"avatar_url":"https://avatars.githubusercontent.com/u/170574?v=3","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"repo":{"id":8162715,"name":"saleor","full_name":"mirumee/saleor","owner":{"login":"mirumee","id":170574,"avatar_url":"https://avatars.githubusercontent.com/u/170574?v=3","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirumee/saleor","description":"An e-commerce storefront for Python and Django","fork":false,"url":"https://api.github.com/repos/mirumee/saleor","forks_url":"https://api.github.com/repos/mirumee/saleor/forks","keys_url":"https://api.github.com/repos/mirumee/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirumee/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirumee/saleor/teams","hooks_url":"https://api.github.com/repos/mirumee/saleor/hooks","issue_events_url":"https://api.github.com/repos/mirumee/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mirumee/saleor/events","assignees_url":"https://api.github.com/repos/mirumee/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mirumee/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mirumee/saleor/tags","blobs_url":"https://api.github.com/repos/mirumee/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirumee/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirumee/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirumee/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mirumee/saleor/languages","stargazers_url":"https://api.github.com/repos/mirumee/saleor/stargazers","contributors_url":"https://api.github.com/repos/mirumee/saleor/contributors","subscribers_url":"https://api.github.com/repos/mirumee/saleor/subscribers","subscription_url":"https://api.github.com/repos/mirumee/saleor/subscription","commits_url":"https://api.github.com/repos/mirumee/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirumee/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirumee/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirumee/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirumee/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mirumee/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirumee/saleor/merges","archive_url":"https://api.github.com/repos/mirumee/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirumee/saleor/downloads","issues_url":"https://api.github.com/repos/mirumee/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mirumee/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mirumee/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mirumee/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirumee/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mirumee/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/mirumee/saleor/deployments","created_at":"2013-02-12T16:46:39Z","updated_at":"2016-02-01T10:11:30Z","pushed_at":"2016-02-08T09:21:40Z","git_url":"git://github.com/mirumee/saleor.git","ssh_url":"git@github.com:mirumee/saleor.git","clone_url":"https://github.com/mirumee/saleor.git","svn_url":"https://github.com/mirumee/saleor","homepage":"http://getsaleor.com","size":10051,"stargazers_count":404,"watchers_count":404,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":150,"mirror_url":null,"open_issues_count":57,"forks":150,"open_issues":57,"watchers":404,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/455"},"html":{"href":"https://github.com/mirumee/saleor/pull/455"},"issue":{"href":"https://api.github.com/repos/mirumee/saleor/issues/455"},"comments":{"href":"https://api.github.com/repos/mirumee/saleor/issues/455/comments"},"review_comments":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/455/comments"},"review_comment":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/455/commits"},"statuses":{"href":"https://api.github.com/repos/mirumee/saleor/statuses/8c30756c2a1858913004bd1403d773f457ca4173"}}}}