python-terminusgps 45.9.0__py3-none-any.whl → 46.1.0__py3-none-any.whl
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 python-terminusgps might be problematic. Click here for more details.
- {python_terminusgps-45.9.0.dist-info → python_terminusgps-46.1.0.dist-info}/METADATA +1 -1
- {python_terminusgps-45.9.0.dist-info → python_terminusgps-46.1.0.dist-info}/RECORD +6 -6
- terminusgps/authorizenet/constants.py +7 -5
- terminusgps/authorizenet/service.py +5 -4
- {python_terminusgps-45.9.0.dist-info → python_terminusgps-46.1.0.dist-info}/WHEEL +0 -0
- {python_terminusgps-45.9.0.dist-info → python_terminusgps-46.1.0.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version:
|
|
3
|
+
Version: 46.1.0
|
|
4
4
|
Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
|
|
5
5
|
Project-URL: Documentation, https://terminusgps.github.io/python-terminusgps
|
|
6
6
|
Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
|
|
@@ -3,8 +3,8 @@ terminusgps/default_settings.py,sha256=7GLW3RlkuTbpj82KSWjcbgf-unEmrPvKCyLci14LG
|
|
|
3
3
|
terminusgps/mixins.py,sha256=Q9ZJuzpk3d9lDnlVA8ZTVvnZWxB13p08EQ8yVJcztn4,1034
|
|
4
4
|
terminusgps/validators.py,sha256=Mf0c7ku_wTQ7uv4hcLRyz0r2eRjvznIL77LLTE5uJ6E,9152
|
|
5
5
|
terminusgps/authorizenet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
terminusgps/authorizenet/constants.py,sha256=
|
|
7
|
-
terminusgps/authorizenet/service.py,sha256=
|
|
6
|
+
terminusgps/authorizenet/constants.py,sha256=nz3XX2jp9icsJhbSTKi9X-TQDr6jrs35opSWpYuwePc,2757
|
|
7
|
+
terminusgps/authorizenet/service.py,sha256=jjYo1vLgTZSXVNeBY6uKSma94AgEj3Q5xOAT5wUB6ko,4260
|
|
8
8
|
terminusgps/authorizenet/api/__init__.py,sha256=VXR4Yco1yz5R-R7vgaH2zTP9VFqzfvvGy_XJVjyb3i0,154
|
|
9
9
|
terminusgps/authorizenet/api/address_profiles.py,sha256=VouUN6dIxlnuE3qEiacFqqDBi_VtwvSbsELqTqFZ0BE,4746
|
|
10
10
|
terminusgps/authorizenet/api/customer_profiles.py,sha256=oya9KMRE10nKLjECTIdanfV_P8-gnNZLE0sYmRYVkgM,4505
|
|
@@ -27,7 +27,7 @@ terminusgps/wialon/items/route.py,sha256=9hmRBEFRJF3lKukv_y3blZxqxv75YgFCcRALrU6
|
|
|
27
27
|
terminusgps/wialon/items/unit.py,sha256=B5iuGEghu89SL8KzYLUytYNRa8cogsVtf-bJ_RybPTA,5522
|
|
28
28
|
terminusgps/wialon/items/unit_group.py,sha256=MIR0x5IlTjcnwx8Y9wXLNTql-wwVVj7NCe7dL2vOw4c,2131
|
|
29
29
|
terminusgps/wialon/items/user.py,sha256=CRSICiJ-qzybEO_gXuKyzW5oa2RQeIp0SzX9ARcdME4,5151
|
|
30
|
-
python_terminusgps-
|
|
31
|
-
python_terminusgps-
|
|
32
|
-
python_terminusgps-
|
|
33
|
-
python_terminusgps-
|
|
30
|
+
python_terminusgps-46.1.0.dist-info/METADATA,sha256=Y3GlKb_oNSOITfidGg92VNK1egdHkP0r42F4fcGL4GQ,938
|
|
31
|
+
python_terminusgps-46.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
32
|
+
python_terminusgps-46.1.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
33
|
+
python_terminusgps-46.1.0.dist-info/RECORD,,
|
|
@@ -46,15 +46,17 @@ class SubscriptionStatus(models.TextChoices):
|
|
|
46
46
|
"""An Authorizenet subscription status."""
|
|
47
47
|
|
|
48
48
|
ACTIVE = "active", _("Active")
|
|
49
|
-
"""Active
|
|
49
|
+
"""Active status."""
|
|
50
50
|
EXPIRED = "expired", _("Expired")
|
|
51
|
-
"""Expired
|
|
51
|
+
"""Expired status."""
|
|
52
52
|
SUSPENDED = "suspended", _("Suspended")
|
|
53
|
-
"""Suspended
|
|
53
|
+
"""Suspended status."""
|
|
54
54
|
CANCELED = "canceled", _("Canceled")
|
|
55
|
-
"""Canceled
|
|
55
|
+
"""Canceled status."""
|
|
56
56
|
TERMINATED = "terminated", _("Terminated")
|
|
57
|
-
"""Terminated
|
|
57
|
+
"""Terminated status."""
|
|
58
|
+
UNKNOWN = "unknown", _("Unknown")
|
|
59
|
+
"""Unknown status."""
|
|
58
60
|
|
|
59
61
|
|
|
60
62
|
class SubscriptionIntervalUnit(models.TextChoices):
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from abc import ABC
|
|
1
2
|
from functools import cached_property
|
|
2
3
|
|
|
3
4
|
from authorizenet.apicontractsv1 import merchantAuthenticationType
|
|
@@ -34,8 +35,8 @@ class AuthorizenetControllerExecutionError(Exception):
|
|
|
34
35
|
return self._code
|
|
35
36
|
|
|
36
37
|
|
|
37
|
-
class AuthorizenetService:
|
|
38
|
-
"""
|
|
38
|
+
class AuthorizenetService(ABC):
|
|
39
|
+
"""Base service for safely interacting with the Authorizenet API."""
|
|
39
40
|
|
|
40
41
|
REQUIRED_SETTINGS = (
|
|
41
42
|
"MERCHANT_AUTH_ENVIRONMENT",
|
|
@@ -50,13 +51,13 @@ class AuthorizenetService:
|
|
|
50
51
|
if not hasattr(settings, setting):
|
|
51
52
|
raise ImproperlyConfigured(f"'{setting}' setting is required.")
|
|
52
53
|
|
|
53
|
-
def
|
|
54
|
+
def execute(
|
|
54
55
|
self,
|
|
55
56
|
request_tuple: tuple[ObjectifiedElement, type[APIOperationBase]],
|
|
56
57
|
reference_id: str | None = None,
|
|
57
58
|
) -> ObjectifiedElement:
|
|
58
59
|
"""
|
|
59
|
-
Adds required authentication data to the request before executing it and returning its response.
|
|
60
|
+
Adds required authentication data to the Authorizenet API request before executing it and returning its response.
|
|
60
61
|
|
|
61
62
|
If ``reference_id`` was provided, it is added to the request before execution.
|
|
62
63
|
|
|
File without changes
|
{python_terminusgps-45.9.0.dist-info → python_terminusgps-46.1.0.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|