You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
451 B
16 lines
451 B
# -*- coding: utf-8 -*-
|
|
from abc import ABCMeta, abstractmethod
|
|
|
|
|
|
class TariffBase(object):
|
|
__metaclass__ = ABCMeta
|
|
|
|
# Принимает на вход:
|
|
# abon_tariff - models.AbonTariff object
|
|
@abstractmethod
|
|
def calc_amount(self, abon_tariff):
|
|
"""Считает итоговую сумму платежа"""
|
|
|
|
@staticmethod
|
|
def description():
|
|
"""Возвращает текстовое описание"""
|