oncall-engine/engine/apps/user_management/subscription_strategy/base_subsription_strategy.py
Joey Orlando 385e1377d6
remove deprecated backend code (#2502)
# 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)
2023-07-12 02:07:45 -04:00

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