python-terminusgps 45.0.0__py3-none-any.whl → 45.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.
- {python_terminusgps-45.0.0.dist-info → python_terminusgps-45.1.0.dist-info}/METADATA +1 -1
- {python_terminusgps-45.0.0.dist-info → python_terminusgps-45.1.0.dist-info}/RECORD +5 -5
- terminusgps/authorizenet/controllers.py +9 -5
- {python_terminusgps-45.0.0.dist-info → python_terminusgps-45.1.0.dist-info}/WHEEL +0 -0
- {python_terminusgps-45.0.0.dist-info → python_terminusgps-45.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: 45.
|
|
3
|
+
Version: 45.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
|
|
@@ -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=N0MXJ035Y-cAbkkk248n3QS-LuQ_XasNsw51uV5Sc1E,2051
|
|
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.1.0.dist-info/METADATA,sha256=qY6XAMxDoTQ-02ip3AJqQ8bzJ-zqQIhYyWvXKAbODyQ,938
|
|
33
|
+
python_terminusgps-45.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
34
|
+
python_terminusgps-45.1.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
35
|
+
python_terminusgps-45.1.0.dist-info/RECORD,,
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
+
from authorizenet import apicontractsv1
|
|
1
2
|
from authorizenet.apicontrollersbase import APIOperationBase
|
|
2
3
|
from lxml.objectify import ObjectifiedElement
|
|
3
4
|
|
|
4
|
-
from .auth import get_environment, get_merchant_auth
|
|
5
|
-
|
|
6
5
|
|
|
7
6
|
def execute_controller(
|
|
8
7
|
controller: APIOperationBase,
|
|
8
|
+
environment: str,
|
|
9
|
+
merchant_auth: apicontractsv1.merchantAuthenticationType,
|
|
9
10
|
) -> ObjectifiedElement | None:
|
|
10
11
|
"""
|
|
11
12
|
Executes an Authorizenet API controller and returns its response.
|
|
12
13
|
|
|
13
14
|
:param controller: An Authorizenet API controller.
|
|
14
15
|
:type controller: ~authorizenet.apicontrollersbase.APIOperationBase
|
|
16
|
+
:param environment: Authorizenet environment to execute the controller in.
|
|
17
|
+
:type environment: :py:obj:`str`
|
|
18
|
+
:param merchant_auth: Authorizenet merchant authentication element.
|
|
19
|
+
:type merchant_auth: ~authorizenet.apicontractsv1.merchantAuthenticationType
|
|
15
20
|
:raises AuthorizenetControllerExecutionError: If the API call fails.
|
|
16
21
|
:returns: An Authorizenet API response, if any.
|
|
17
22
|
:rtype: ~lxml.objectify.ObjectifiedElement | None
|
|
18
23
|
|
|
19
24
|
"""
|
|
20
|
-
controller.setenvironment(
|
|
21
|
-
controller.setmerchantauthentication(
|
|
25
|
+
controller.setenvironment(environment)
|
|
26
|
+
controller.setmerchantauthentication(merchant_auth)
|
|
22
27
|
controller.execute()
|
|
23
|
-
|
|
24
28
|
response = controller.getresponse()
|
|
25
29
|
if response is not None and response.messages.resultCode != "Ok":
|
|
26
30
|
raise AuthorizenetControllerExecutionError(
|
|
File without changes
|
{python_terminusgps-45.0.0.dist-info → python_terminusgps-45.1.0.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|