validation of organization bank accounts

This commit is contained in:
2025-11-05 17:16:54 +03:30
parent 6811217f01
commit 6791938bd9
2 changed files with 34 additions and 3 deletions

View File

@@ -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 """