Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 17, 2024
1 parent 07aa80d commit ac776ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions payments/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ def autocomplete_with_subscription(self, payment):
Throws RedirectNeeded if there is problem with the payment
that needs to be solved by user.
"""
raise NotImplementedError()
raise NotImplementedError

def cancel_subscription(self, subscription):
"""
Cancel subscription
Used by providers, that use provider initiated cancellation workflow
"""
raise NotImplementedError()
raise NotImplementedError

def capture(self, payment, amount=None):
raise NotImplementedError
Expand Down
9 changes: 4 additions & 5 deletions payments/models.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from __future__ import annotations

import json
import enum
import json
from typing import Iterable
from typing import Optional
from typing import Union
from uuid import uuid4

from django.db import models
Expand Down Expand Up @@ -73,10 +72,10 @@ def set_recurrence(self, token: str, **kwargs):
self.token = token

def get_period(self) -> int:
raise NotImplementedError()
raise NotImplementedError

def get_unit(self) -> TimeUnit:
raise NotImplementedError()
raise NotImplementedError

def cancel(self):
"""
Expand Down Expand Up @@ -244,7 +243,7 @@ def get_payment_url(self) -> str:
Get the url the view that handles the payment (payment_details() in documentation)
For now used only by PayU provider to redirect users back to CVV2 form
"""
raise NotImplementedError()
raise NotImplementedError

def get_subscription(self) -> Optional[BaseSubscription]:
"""
Expand Down

0 comments on commit ac776ef

Please sign in to comment.