python-terminusgps 37.6.1__py3-none-any.whl → 37.6.2__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-37.6.1.dist-info → python_terminusgps-37.6.2.dist-info}/METADATA +1 -1
- {python_terminusgps-37.6.1.dist-info → python_terminusgps-37.6.2.dist-info}/RECORD +5 -5
- terminusgps/authorizenet/profiles/customers.py +20 -27
- {python_terminusgps-37.6.1.dist-info → python_terminusgps-37.6.2.dist-info}/WHEEL +0 -0
- {python_terminusgps-37.6.1.dist-info → python_terminusgps-37.6.2.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 37.6.
|
|
3
|
+
Version: 37.6.2
|
|
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
|
|
@@ -7,7 +7,7 @@ terminusgps/authorizenet/utils.py,sha256=lkXjKfegFFN8TgtjlyI03416X6oqFIciFnWgSEu
|
|
|
7
7
|
terminusgps/authorizenet/profiles/__init__.py,sha256=IG4XCEEYtHKqXOatlZlob6J3ukAgF7cFR-RXxOSMS1c,161
|
|
8
8
|
terminusgps/authorizenet/profiles/addresses.py,sha256=MwJQzq3IrjYCLJzOglLfJIcMvH5osDu1MzN6_XGO0Tc,6376
|
|
9
9
|
terminusgps/authorizenet/profiles/base.py,sha256=Pu1NGrvC5Ox2W1oZuVcPqUw3aUoSK191Evexw1U6_3k,3940
|
|
10
|
-
terminusgps/authorizenet/profiles/customers.py,sha256=
|
|
10
|
+
terminusgps/authorizenet/profiles/customers.py,sha256=OlAY1ypK41PaTqiVVD-K-HyQsD7taxJdig0pxFc21wU,11832
|
|
11
11
|
terminusgps/authorizenet/profiles/payments.py,sha256=57qtiPKGS6loPMccLXQJoHV3fGyNNQ0AXcR9ukDNrXE,11313
|
|
12
12
|
terminusgps/authorizenet/profiles/subscriptions.py,sha256=TKTGeYCNSiDMAQGwMnFOL7E_SKt3GsiwgtIfGJE3yHc,10256
|
|
13
13
|
terminusgps/authorizenet/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -50,7 +50,7 @@ terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9L
|
|
|
50
50
|
terminusgps/wialon/items/unit.py,sha256=P828NaWkTQncNre3n4h7AedeSxUXPKSxQFpBiliZCBk,12133
|
|
51
51
|
terminusgps/wialon/items/unit_group.py,sha256=HhYMZ9b7UATXeEgHkXN9r5-M_w82fabjDYADCUwBtxQ,4442
|
|
52
52
|
terminusgps/wialon/items/user.py,sha256=pR6OTrm6f7Zo0J8eLvKtWVsdhGi430OxMsMMthGh8YE,5382
|
|
53
|
-
python_terminusgps-37.6.
|
|
54
|
-
python_terminusgps-37.6.
|
|
55
|
-
python_terminusgps-37.6.
|
|
56
|
-
python_terminusgps-37.6.
|
|
53
|
+
python_terminusgps-37.6.2.dist-info/METADATA,sha256=jkLVAoaBjCBtOlDFZANLhnarDJa8DU4sA3T45Zjrgmk,1329
|
|
54
|
+
python_terminusgps-37.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
55
|
+
python_terminusgps-37.6.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
56
|
+
python_terminusgps-37.6.2.dist-info/RECORD,,
|
|
@@ -2,7 +2,6 @@ from authorizenet import apicontractsv1, apicontrollers
|
|
|
2
2
|
|
|
3
3
|
from terminusgps.authorizenet.auth import get_validation_mode
|
|
4
4
|
from terminusgps.authorizenet.constants import ANET_XMLNS
|
|
5
|
-
from terminusgps.authorizenet.controllers import AuthorizenetControllerExecutionError
|
|
6
5
|
from terminusgps.authorizenet.profiles.base import AuthorizenetProfileBase
|
|
7
6
|
|
|
8
7
|
|
|
@@ -27,16 +26,7 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
27
26
|
self._merchant_id = merchant_id
|
|
28
27
|
self._email = email
|
|
29
28
|
self._desc = desc
|
|
30
|
-
|
|
31
|
-
if not self.id:
|
|
32
|
-
try:
|
|
33
|
-
self.id = int(
|
|
34
|
-
self._authorizenet_get_customer_profile()
|
|
35
|
-
.find(f"{ANET_XMLNS}profile")
|
|
36
|
-
.find(f"{ANET_XMLNS}customerProfileId")
|
|
37
|
-
)
|
|
38
|
-
except AuthorizenetControllerExecutionError:
|
|
39
|
-
self.id = self.create()
|
|
29
|
+
self.id = self._get_id()
|
|
40
30
|
|
|
41
31
|
@property
|
|
42
32
|
def merchant_id(self) -> str:
|
|
@@ -46,13 +36,11 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
46
36
|
:type: :py:obj:`str`
|
|
47
37
|
|
|
48
38
|
"""
|
|
49
|
-
if self.id and not self._merchant_id:
|
|
50
|
-
response = self._authorizenet_get_customer_profile()
|
|
39
|
+
if self.id or self._email and not self._merchant_id:
|
|
51
40
|
self._merchant_id = (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
else None
|
|
41
|
+
self._authorizenet_get_customer_profile()
|
|
42
|
+
.find(f"{ANET_XMLNS}profile")
|
|
43
|
+
.find(f"{ANET_XMLNS}merchantCustomerId")
|
|
56
44
|
)
|
|
57
45
|
return str(self._merchant_id)
|
|
58
46
|
|
|
@@ -69,12 +57,11 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
69
57
|
:type: :py:obj:`str`
|
|
70
58
|
|
|
71
59
|
"""
|
|
72
|
-
if self.id and not self._email:
|
|
73
|
-
response = self._authorizenet_get_customer_profile()
|
|
60
|
+
if self.id or self._merchant_id and not self._email:
|
|
74
61
|
self._email = (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
self._authorizenet_get_customer_profile()
|
|
63
|
+
.find(f"{ANET_XMLNS}profile")
|
|
64
|
+
.find(f"{ANET_XMLNS}email")
|
|
78
65
|
)
|
|
79
66
|
return str(self._email)
|
|
80
67
|
|
|
@@ -91,12 +78,11 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
91
78
|
:type: :py:obj:`str`
|
|
92
79
|
|
|
93
80
|
"""
|
|
94
|
-
if self.id and not self._desc:
|
|
95
|
-
response = self._authorizenet_get_customer_profile()
|
|
81
|
+
if self.id or self._merchant_id or self._email and not self._desc:
|
|
96
82
|
self._desc = (
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
83
|
+
self._authorizenet_get_customer_profile()
|
|
84
|
+
.find(f"{ANET_XMLNS}profile")
|
|
85
|
+
.find(f"{ANET_XMLNS}description")
|
|
100
86
|
)
|
|
101
87
|
return str(self._desc)
|
|
102
88
|
|
|
@@ -201,6 +187,13 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
201
187
|
else []
|
|
202
188
|
)
|
|
203
189
|
|
|
190
|
+
def _get_id(self) -> int:
|
|
191
|
+
return int(
|
|
192
|
+
self._authorizenet_get_customer_profile()
|
|
193
|
+
.find(f"{ANET_XMLNS}profile")
|
|
194
|
+
.find(f"{ANET_XMLNS}customerProfileId")
|
|
195
|
+
)
|
|
196
|
+
|
|
204
197
|
def _generate_customer_profile_ex_type(
|
|
205
198
|
self,
|
|
206
199
|
) -> apicontractsv1.customerProfileExType:
|
|
File without changes
|
{python_terminusgps-37.6.1.dist-info → python_terminusgps-37.6.2.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|