# What this PR does See more details comments alongside the code. Regarding frontend changes, the main changes in this PR are to remove unused fields on the `Team` interface + unused methods on the `Team` model. ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) (N/A) - [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) (N/A)
18 lines
420 B
Python
18 lines
420 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class BaseSubscriptionStrategy(ABC):
|
|
def __init__(self, organization):
|
|
self.organization = organization
|
|
|
|
@abstractmethod
|
|
def phone_calls_left(self, user):
|
|
raise NotImplementedError
|
|
|
|
@abstractmethod
|
|
def sms_left(self, user):
|
|
raise NotImplementedError
|
|
|
|
@abstractmethod
|
|
def emails_left(self, user):
|
|
raise NotImplementedError
|