python-terminusgps 40.1.2__py3-none-any.whl → 40.1.4__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-40.1.2.dist-info → python_terminusgps-40.1.4.dist-info}/METADATA +1 -1
- {python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.4.dist-info}/RECORD +6 -6
- terminusgps/authorizenet/profiles/customers.py +2 -3
- terminusgps/wialon/session.py +14 -4
- {python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.4.dist-info}/WHEEL +0 -0
- {python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.4.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 40.1.
|
|
3
|
+
Version: 40.1.4
|
|
4
4
|
Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
|
|
5
5
|
Project-URL: Documentation, https://docs.terminusgps.com
|
|
6
6
|
Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
|
|
@@ -8,7 +8,7 @@ terminusgps/authorizenet/utils.py,sha256=LosPGnOam97Fk51aoCAIdoyrQRdxV43mXxpZ1Ts
|
|
|
8
8
|
terminusgps/authorizenet/validators.py,sha256=Z4JfKMHhMIH9elsmzW-6KHi9TwOlNp3h_uvtRPCX0GI,3822
|
|
9
9
|
terminusgps/authorizenet/profiles/__init__.py,sha256=WYODXV43js8JN_rd__0FiW0-6GsiDPqfOAIlpyASiak,74
|
|
10
10
|
terminusgps/authorizenet/profiles/addresses.py,sha256=7heMIOSQtk5eHgApH-vxigDRejWDCbO3sO362IsYDXw,4673
|
|
11
|
-
terminusgps/authorizenet/profiles/customers.py,sha256=
|
|
11
|
+
terminusgps/authorizenet/profiles/customers.py,sha256=4MUgDgZak9vxCxcGMQaVyGUPyciC4Oa8Uo-zh3fgn3U,4298
|
|
12
12
|
terminusgps/authorizenet/profiles/payments.py,sha256=G13Ag9zXGQD9joJr06F6PSeufdq7Ngml8ZqryZnjmTU,6033
|
|
13
13
|
terminusgps/django/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
terminusgps/django/mixins.py,sha256=Q9ZJuzpk3d9lDnlVA8ZTVvnZWxB13p08EQ8yVJcztn4,1034
|
|
@@ -24,7 +24,7 @@ terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
24
24
|
terminusgps/wialon/constants.py,sha256=05pLc_0S-x0tT87cQcxOmr8plesjOQxoXfUdjIHwI90,7732
|
|
25
25
|
terminusgps/wialon/flags.py,sha256=M50EdhxQ8IMnJnU0mrHK7-h8Asc6tvNiTOOfd1dBW6A,12815
|
|
26
26
|
terminusgps/wialon/renderer.py,sha256=ubmaLjdJyksO2qiWHbIBvYeDqlFya2br7oJYsdfoyV8,7046
|
|
27
|
-
terminusgps/wialon/session.py,sha256=
|
|
27
|
+
terminusgps/wialon/session.py,sha256=jQbPmQy6z7ghhgflRemybn8_uoCnCJzuTcbovLHFpI4,5795
|
|
28
28
|
terminusgps/wialon/utils.py,sha256=bSptHwLqkYr-NUE5dflEKjGyQCOF1XGeurliKZ6GHDw,11606
|
|
29
29
|
terminusgps/wialon/validators.py,sha256=o5__H9HHnGYth8QAKErJG5rEub7FnT8ue0S3IQ8b67o,4232
|
|
30
30
|
terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
|
|
@@ -35,7 +35,7 @@ terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9L
|
|
|
35
35
|
terminusgps/wialon/items/unit.py,sha256=kee7dwpvjxbfDuRFzqbhKjLWjCN9iAimkjTyMilqKek,12124
|
|
36
36
|
terminusgps/wialon/items/unit_group.py,sha256=HhYMZ9b7UATXeEgHkXN9r5-M_w82fabjDYADCUwBtxQ,4442
|
|
37
37
|
terminusgps/wialon/items/user.py,sha256=pR6OTrm6f7Zo0J8eLvKtWVsdhGi430OxMsMMthGh8YE,5382
|
|
38
|
-
python_terminusgps-40.1.
|
|
39
|
-
python_terminusgps-40.1.
|
|
40
|
-
python_terminusgps-40.1.
|
|
41
|
-
python_terminusgps-40.1.
|
|
38
|
+
python_terminusgps-40.1.4.dist-info/METADATA,sha256=VEcgYIHZ4kNMboOeoIqRkG4U4M8SiojRexFUpjbFCWw,1036
|
|
39
|
+
python_terminusgps-40.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
40
|
+
python_terminusgps-40.1.4.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
41
|
+
python_terminusgps-40.1.4.dist-info/RECORD,,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from authorizenet import apicontractsv1, apicontrollers
|
|
2
2
|
|
|
3
|
-
from terminusgps.authorizenet.auth import get_merchant_auth
|
|
3
|
+
from terminusgps.authorizenet.auth import get_merchant_auth
|
|
4
4
|
from terminusgps.authorizenet.controllers import execute_controller
|
|
5
5
|
|
|
6
6
|
__all__ = [
|
|
@@ -29,9 +29,8 @@ def create_customer_profile(merchant_id: int | str, email: str, description: str
|
|
|
29
29
|
request = apicontractsv1.createCustomerProfileRequest(
|
|
30
30
|
merchantAuthentication=get_merchant_auth(),
|
|
31
31
|
profile=apicontractsv1.customerProfileType(
|
|
32
|
-
merchantCustomerId=merchant_id, description=description, email=email
|
|
32
|
+
merchantCustomerId=str(merchant_id), description=description, email=email
|
|
33
33
|
),
|
|
34
|
-
validationMode=get_validation_mode(),
|
|
35
34
|
)
|
|
36
35
|
return execute_controller(apicontrollers.createCustomerProfileController(request))
|
|
37
36
|
|
terminusgps/wialon/session.py
CHANGED
|
@@ -4,13 +4,23 @@ import typing
|
|
|
4
4
|
import wialon.api
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
class WialonAPIError(Exception):
|
|
8
|
+
def __init__(self, message, *args, **kwargs) -> None:
|
|
9
|
+
self.message = message
|
|
10
|
+
self._code = int(message._code)
|
|
11
|
+
super().__init__(message, *args, **kwargs)
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def code(self) -> int:
|
|
15
|
+
return self._code
|
|
16
|
+
|
|
17
|
+
|
|
7
18
|
class Wialon(wialon.api.Wialon):
|
|
8
|
-
def call(self,
|
|
19
|
+
def call(self, *argc, **kwargs) -> dict[str, typing.Any]:
|
|
9
20
|
try:
|
|
10
|
-
return super().call(
|
|
21
|
+
return super().call(*argc, **kwargs)
|
|
11
22
|
except wialon.api.WialonError as e:
|
|
12
|
-
|
|
13
|
-
return {}
|
|
23
|
+
raise WialonAPIError(e)
|
|
14
24
|
|
|
15
25
|
|
|
16
26
|
class WialonSession:
|
|
File without changes
|
{python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.4.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|