payme-pkg 3.0.13b0__tar.gz → 3.0.14b0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of payme-pkg might be problematic. Click here for more details.
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/PKG-INFO +2 -2
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/README.md +1 -1
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/exceptions/general.py +4 -46
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/types/response/receipts.py +0 -1
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/PKG-INFO +2 -2
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/setup.py +1 -1
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/LICENSE.txt +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/__init__.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/admin.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/apps.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/classes/__init__.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/classes/cards.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/classes/client.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/classes/http.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/classes/initializer.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/classes/receipts.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/const.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/exceptions/__init__.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/exceptions/webhook.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/migrations/__init__.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/models.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/types/__init__.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/types/request/__init__.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/types/response/__init__.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/types/response/cards.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/types/response/webhook.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/urls.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/util.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme/views.py +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/SOURCES.txt +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/dependency_links.txt +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/requires.txt +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/top_level.txt +0 -0
- {payme_pkg-3.0.13b0 → payme_pkg-3.0.14b0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: payme-pkg
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.14b0
|
|
4
4
|
Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
|
|
5
5
|
Author: Muhammadali Akbarov
|
|
6
6
|
Author-email: muhammadali17abc@gmail.com
|
|
@@ -36,7 +36,7 @@ Requires-Dist: djangorestframework==3.*
|
|
|
36
36
|
</a>
|
|
37
37
|
|
|
38
38
|
<p align="center">
|
|
39
|
-
<a href="https://youtu.be/
|
|
39
|
+
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">Watch the YouTube Demo</a>
|
|
40
40
|
</p>
|
|
41
41
|
|
|
42
42
|
## Installation
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</a>
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
25
|
-
<a href="https://youtu.be/
|
|
25
|
+
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">Watch the YouTube Demo</a>
|
|
26
26
|
</p>
|
|
27
27
|
|
|
28
28
|
## Installation
|
|
@@ -2,51 +2,16 @@ import logging
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class BaseError(Exception):
|
|
5
|
-
"""
|
|
6
|
-
Base class for all errors in the payment system.
|
|
7
|
-
|
|
8
|
-
Attributes:
|
|
9
|
-
code (str or int): Error code identifying the type of error.
|
|
10
|
-
message (str): A human-readable error message.
|
|
11
|
-
data (dict, optional): Additional context or metadata for the error.
|
|
12
|
-
"""
|
|
5
|
+
"""Base class for all errors in the payment system."""
|
|
13
6
|
logger = logging.getLogger(__name__)
|
|
14
7
|
|
|
15
|
-
def __init__(self, code
|
|
16
|
-
"""
|
|
17
|
-
Initialize the BaseError instance.
|
|
18
|
-
|
|
19
|
-
Args:
|
|
20
|
-
code (str or int, optional): Error code identifying the error type.
|
|
21
|
-
message (str, optional): Human-readable error description.
|
|
22
|
-
data (dict, optional): Additional context or metadata.
|
|
23
|
-
*args: Additional positional arguments for exception context.
|
|
24
|
-
**kwargs: Additional keyword arguments for exception context.
|
|
25
|
-
"""
|
|
26
|
-
# Use default values if none provided
|
|
27
|
-
code = code or "UNKNOWN_ERROR"
|
|
28
|
-
message = message or "An unspecified error occurred."
|
|
29
|
-
|
|
8
|
+
def __init__(self, code, message, data=None):
|
|
30
9
|
super().__init__(message)
|
|
31
|
-
|
|
32
10
|
self.code = code
|
|
33
11
|
self.data = data
|
|
34
|
-
self.args = args
|
|
35
|
-
self.kwargs = kwargs
|
|
36
12
|
|
|
37
|
-
#
|
|
38
|
-
self.logger.error(
|
|
39
|
-
f"[{self.__class__.__name__}] Code: {code}, Message: {message}, "
|
|
40
|
-
f"Data: {data}, Args: {args}, Kwargs: {kwargs}",
|
|
41
|
-
exc_info=True
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
def __repr__(self):
|
|
45
|
-
"""Provide a developer-friendly string representation."""
|
|
46
|
-
return (
|
|
47
|
-
f"<{self.__class__.__name__} code={self.code!r} message={self.message!r} "
|
|
48
|
-
f"data={self.data!r}>"
|
|
49
|
-
)
|
|
13
|
+
# pylint: disable=W1203
|
|
14
|
+
self.logger.error(f"Error {code}: {message}. Data: {data}")
|
|
50
15
|
|
|
51
16
|
|
|
52
17
|
class CardError(BaseError):
|
|
@@ -278,12 +243,6 @@ class UnknownPartnerError(BaseException):
|
|
|
278
243
|
super().__init__(message, data)
|
|
279
244
|
|
|
280
245
|
|
|
281
|
-
class UnknownError(BaseException):
|
|
282
|
-
"""An unknown error occurred."""
|
|
283
|
-
def __init__(self, message="An unknown error occurred.", data=None):
|
|
284
|
-
super().__init__(message, data)
|
|
285
|
-
|
|
286
|
-
|
|
287
246
|
errors_map = {
|
|
288
247
|
-32300: TransportError,
|
|
289
248
|
-32700: ParseError,
|
|
@@ -304,5 +263,4 @@ errors_map = {
|
|
|
304
263
|
-31602: ReceiptsNotFoundError,
|
|
305
264
|
-32500: InvalidTokenFormat,
|
|
306
265
|
-31601: UnknownPartnerError,
|
|
307
|
-
"UNKNOWN_ERROR": UnknownError
|
|
308
266
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: payme-pkg
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.14b0
|
|
4
4
|
Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
|
|
5
5
|
Author: Muhammadali Akbarov
|
|
6
6
|
Author-email: muhammadali17abc@gmail.com
|
|
@@ -36,7 +36,7 @@ Requires-Dist: djangorestframework==3.*
|
|
|
36
36
|
</a>
|
|
37
37
|
|
|
38
38
|
<p align="center">
|
|
39
|
-
<a href="https://youtu.be/
|
|
39
|
+
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">Watch the YouTube Demo</a>
|
|
40
40
|
</p>
|
|
41
41
|
|
|
42
42
|
## Installation
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|