From df2d676448abe649dd14616a243e2dd76bbccf48 Mon Sep 17 00:00:00 2001
From: Muhammadali <79622590+Muhammadali-Akbarov@users.noreply.github.com>
Date: Tue, 19 Nov 2024 11:32:18 +0500
Subject: [PATCH 1/3] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a51b1ea..2d91d1a 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@
- Watch the YouTube Demo
+ Watch the YouTube Demo
## Installation
From 9e7e535ed5fd2e875d77acf2ae7d5b47934a4b97 Mon Sep 17 00:00:00 2001
From: ChogirmaliYigit
Date: Sat, 23 Nov 2024 10:32:48 +0500
Subject: [PATCH 2/3] removed: field on dataclass and added
UnknownPartnerError
---
payme/exceptions/general.py | 9 ++++++++-
payme/types/response/receipts.py | 1 -
2 files changed, 8 insertions(+), 2 deletions(-)
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
From 81666639a2fd8eb0bfeeec6c8321c87f3d33839e Mon Sep 17 00:00:00 2001
From: muhammadalive
Date: Sat, 23 Nov 2024 10:39:34 +0500
Subject: [PATCH 3/3] improving payme response
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 000eeeb..210c34a 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@
setup(
name='payme-pkg',
- version='3.0.11',
+ version='3.0.12',
license='MIT',
author="Muhammadali Akbarov",
author_email='muhammadali17abc@gmail.com',