validation of organization bank accounts
This commit is contained in:
@@ -17,6 +17,24 @@ class BankAccountExistException(APIException):
|
||||
default_code = "اطلاعات بانکی وارد شده از قبل ثبت شده است" # noqa
|
||||
|
||||
|
||||
class BankAccountCardException(APIException):
|
||||
status_code = status.HTTP_403_FORBIDDEN
|
||||
default_detail = "شماره کارت از قبل ثبت شده است" # noqa
|
||||
default_code = "شماره کارت از قبل ثبت شده است" # noqa
|
||||
|
||||
|
||||
class BankAccountShebaException(APIException):
|
||||
status_code = status.HTTP_403_FORBIDDEN
|
||||
default_detail = "شماره شبا از قبل ثبت شده است" # noqa
|
||||
default_code = "شماره شبا از قبل ثبت شده است" # noqa
|
||||
|
||||
|
||||
class BankAccountNumberAccountException(APIException):
|
||||
status_code = status.HTTP_403_FORBIDDEN
|
||||
default_detail = "شماره حساب از قبل ثبت شده است" # noqa
|
||||
default_code = "شماره حساب از قبل ثبت شده است" # noqa
|
||||
|
||||
|
||||
class OrganizationBankAccountException(APIException):
|
||||
""" if organization does not have bank account """
|
||||
|
||||
|
||||
Reference in New Issue
Block a user