bank account existance exception

This commit is contained in:
2025-11-05 12:47:13 +03:30
parent 1942042a2b
commit 57b8d10714
3 changed files with 18 additions and 4 deletions

View File

@@ -11,6 +11,12 @@ class TokenBlackListedException(APIException):
default_code = 'unauthorized'
class BankAccountExistException(APIException):
status_code = status.HTTP_403_FORBIDDEN
default_detail = "اطلاعات بانکی وارد شده از قبل ثبت شده است" # noqa
default_code = "اطلاعات بانکی وارد شده از قبل ثبت شده است" # noqa
class OrganizationBankAccountException(APIException):
""" if organization does not have bank account """