# Path: payway/accounts/models.py
# class ResponsePayment(InheritanceCastModel, AbstractPayment):
#     """
#     Parent response model
#     """
#     OK_STATUS = Choices((True, 'SUCCESS', _('success')), (False, 'FAIL', _('fail')))
# 
#     is_OK = models.BooleanField(choices=OK_STATUS, default=OK_STATUS.FAIL)
# 
#     class Meta:
#         db_table = 'payway_response_payments'
# 
#     def __unicode__(self):
#         return u'id:{0} is_ok:{2}'.format(self.id, self.money_amount, self.is_OK)


from django.db import models
from django.utils.translation import ugettext_lazy as _
from model_utils import Choices
from payway.accounts.models import ResponsePayment
# -*- coding: UTF-8 -*-


__author__ = 'Razzhivin Alexander'
__email__ = 'admin@httpbots.com'

TERMINATION_CODES = Choices(
    (0, 'SUCCESS',_('0 Success')),
    (13, 'SERVER_IS_BUSY', _('13 Server is busy, please repeat your request later')),
    (150, 'AUTHORIZATION_ERROR', _('150 Authorization error (wrong login/password)  ')),
    (210, 'BILL_NOT_FOUND', _('210 Bill not found')),
    (215, 'BILL_TXNID_EXISTS', _('215 Bill with this txn-id already exists')),
    (241, 'BILL_VERY_SMALL_SUM', _('241 Very small bill sum')),
    (242, 'BILL_MAXIMUM_SUM_EXCEEDED', _('242 Bill maximum sum exceeded')),
    (278, 'BILL_LIST_MAX_TIME_RANGE_EXCEEDED', _('278 Bill list maximum time range exceeded')),
    (298, 'NO_SUCH_AGENT', _('298 No such agent in the system')),
    (300, 'UNKNOWN_ERROR', _('300 Unknown error')),
    (330, 'ENCRYPTION_ERROR', _('330 Encryption error')),
    (370, 'MAXIMUM_REQUEST_OVERLIMIT', _('370 Maximum allowed concurrent requests overlimit'))
)



# Path: payway/accounts/models.py
# class ResponsePayment(InheritanceCastModel, AbstractPayment):
#     """
#     Parent response model
#     """
#     OK_STATUS = Choices((True, 'SUCCESS', _('success')), (False, 'FAIL', _('fail')))
# 
#     is_OK = models.BooleanField(choices=OK_STATUS, default=OK_STATUS.FAIL)
# 
#     class Meta:
#         db_table = 'payway_response_payments'
# 
#     def __unicode__(self):
#         return u'id:{0} is_ok:{2}'.format(self.id, self.money_amount, self.is_OK)


# Path: payway/qiwi/models.py
from django.db import models
from django.utils.translation import ugettext_lazy as _
from model_utils import Choices
from payway.accounts.models import ResponsePayment

# -*- coding: UTF-8 -*-


__author__ = 'Razzhivin Alexander'
__email__ = 'admin@httpbots.com'

TERMINATION_CODES = Choices(
    (0, 'SUCCESS',_('0 Success')),
    (13, 'SERVER_IS_BUSY', _('13 Server is busy, please repeat your request later')),
    (150, 'AUTHORIZATION_ERROR', _('150 Authorization error (wrong login/password)  ')),
    (210, 'BILL_NOT_FOUND', _('210 Bill not found')),
    (215, 'BILL_TXNID_EXISTS', _('215 Bill with this txn-id already exists')),
    (241, 'BILL_VERY_SMALL_SUM', _('241 Very small bill sum')),
    (242, 'BILL_MAXIMUM_SUM_EXCEEDED', _('242 Bill maximum sum exceeded')),
    (278, 'BILL_LIST_MAX_TIME_RANGE_EXCEEDED', _('278 Bill list maximum time range exceeded')),
    (298, 'NO_SUCH_AGENT', _('298 No such agent in the system')),
    (300, 'UNKNOWN_ERROR', _('300 Unknown error')),
    (330, 'ENCRYPTION_ERROR', _('330 Encryption error')),
    (370, 'MAXIMUM_REQUEST_OVERLIMIT', _('370 Maximum allowed concurrent requests overlimit'))
)



class Bill(ResponsePayment):