python-terminusgps 45.1.0__py3-none-any.whl → 45.2.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.1.0.dist-info → python_terminusgps-45.2.0.dist-info}/METADATA +1 -1
- {python_terminusgps-45.1.0.dist-info → python_terminusgps-45.2.0.dist-info}/RECORD +5 -5
- terminusgps/authorizenet/controllers.py +4 -5
- {python_terminusgps-45.1.0.dist-info → python_terminusgps-45.2.0.dist-info}/WHEEL +0 -0
- {python_terminusgps-45.1.0.dist-info → python_terminusgps-45.2.0.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 45.
|
|
3
|
+
Version: 45.2.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
|
|
@@ -5,7 +5,7 @@ terminusgps/validators.py,sha256=Mf0c7ku_wTQ7uv4hcLRyz0r2eRjvznIL77LLTE5uJ6E,915
|
|
|
5
5
|
terminusgps/authorizenet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
terminusgps/authorizenet/auth.py,sha256=ZWb9ebJp22o-ImiMLQIzSMENICnbPZOlbX5RO0IEyRU,2199
|
|
7
7
|
terminusgps/authorizenet/constants.py,sha256=eukAZQVuv3XHL-Kd1gqxf8IYUqNC67ClTz4ZU7JPNYE,1459
|
|
8
|
-
terminusgps/authorizenet/controllers.py,sha256=
|
|
8
|
+
terminusgps/authorizenet/controllers.py,sha256=ohRm4tTrGcZGxU9YmELDMdRgOM57w43fPrXZCKhrQF8,1994
|
|
9
9
|
terminusgps/authorizenet/validators.py,sha256=Wq4rqEuqG3JzOO7O1wM6oQ0FciNxxOK0HnJqTuLa8CY,3916
|
|
10
10
|
terminusgps/authorizenet/api/__init__.py,sha256=VXR4Yco1yz5R-R7vgaH2zTP9VFqzfvvGy_XJVjyb3i0,154
|
|
11
11
|
terminusgps/authorizenet/api/address_profiles.py,sha256=VouUN6dIxlnuE3qEiacFqqDBi_VtwvSbsELqTqFZ0BE,4746
|
|
@@ -29,7 +29,7 @@ terminusgps/wialon/items/route.py,sha256=9hmRBEFRJF3lKukv_y3blZxqxv75YgFCcRALrU6
|
|
|
29
29
|
terminusgps/wialon/items/unit.py,sha256=B5iuGEghu89SL8KzYLUytYNRa8cogsVtf-bJ_RybPTA,5522
|
|
30
30
|
terminusgps/wialon/items/unit_group.py,sha256=MIR0x5IlTjcnwx8Y9wXLNTql-wwVVj7NCe7dL2vOw4c,2131
|
|
31
31
|
terminusgps/wialon/items/user.py,sha256=CRSICiJ-qzybEO_gXuKyzW5oa2RQeIp0SzX9ARcdME4,5151
|
|
32
|
-
python_terminusgps-45.
|
|
33
|
-
python_terminusgps-45.
|
|
34
|
-
python_terminusgps-45.
|
|
35
|
-
python_terminusgps-45.
|
|
32
|
+
python_terminusgps-45.2.0.dist-info/METADATA,sha256=gE5fkjeU-YUxEa_MYu7QnUF4J2brjvYRf8X_yDvmYFg,938
|
|
33
|
+
python_terminusgps-45.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
34
|
+
python_terminusgps-45.2.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
35
|
+
python_terminusgps-45.2.0.dist-info/RECORD,,
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
from authorizenet import apicontractsv1
|
|
2
1
|
from authorizenet.apicontrollersbase import APIOperationBase
|
|
3
2
|
from lxml.objectify import ObjectifiedElement
|
|
4
3
|
|
|
5
4
|
|
|
6
5
|
def execute_controller(
|
|
7
6
|
controller: APIOperationBase,
|
|
8
|
-
environment: str,
|
|
9
|
-
merchant_auth: apicontractsv1.merchantAuthenticationType,
|
|
10
7
|
) -> ObjectifiedElement | None:
|
|
11
8
|
"""
|
|
12
9
|
Executes an Authorizenet API controller and returns its response.
|
|
@@ -22,10 +19,12 @@ def execute_controller(
|
|
|
22
19
|
:rtype: ~lxml.objectify.ObjectifiedElement | None
|
|
23
20
|
|
|
24
21
|
"""
|
|
25
|
-
controller.setenvironment(environment)
|
|
26
|
-
controller.setmerchantauthentication(merchant_auth)
|
|
27
22
|
controller.execute()
|
|
28
23
|
response = controller.getresponse()
|
|
24
|
+
if response is None:
|
|
25
|
+
raise AuthorizenetControllerExecutionError(
|
|
26
|
+
message="Authorizenet controller response didn't exist.", code="1"
|
|
27
|
+
)
|
|
29
28
|
if response is not None and response.messages.resultCode != "Ok":
|
|
30
29
|
raise AuthorizenetControllerExecutionError(
|
|
31
30
|
message=response.messages.message[0]["text"].text,
|
|
File without changes
|
{python_terminusgps-45.1.0.dist-info → python_terminusgps-45.2.0.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|