diff --git a/payme/exceptions/general.py b/payme/exceptions/general.py index 9e6ebae..9825245 100644 --- a/payme/exceptions/general.py +++ b/payme/exceptions/general.py @@ -237,6 +237,12 @@ def __init__(self, message="No receipts found for the given transaction ID.", da super().__init__(message, data) +class UnknownPartnerError(BaseException): + """The given partner ID is unknown.""" + def __init__(self, message="Unknown partner or ID and Key not active", data=None): + super().__init__(message, data) + + errors_map = { -32300: TransportError, -32700: ParseError, @@ -255,5 +261,6 @@ def __init__(self, message="No receipts found for the given transaction ID.", da -31102: OtpAttemptsExceededError, -31103: OtpInvalidCodeError, -31602: ReceiptsNotFoundError, - -32500: InvalidTokenFormat + -32500: InvalidTokenFormat, + -31601: UnknownPartnerError, } diff --git a/payme/types/response/receipts.py b/payme/types/response/receipts.py index 6fe5014..757c862 100644 --- a/payme/types/response/receipts.py +++ b/payme/types/response/receipts.py @@ -123,7 +123,6 @@ class Receipt(Common): type: int external: bool operation: int - category: any = None error: any = None description: str = None detail: Detail = None