python-terminusgps 37.5.1__py3-none-any.whl → 37.5.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.
Potentially problematic release.
This version of python-terminusgps might be problematic. Click here for more details.
- {python_terminusgps-37.5.1.dist-info → python_terminusgps-37.5.2.dist-info}/METADATA +1 -1
- {python_terminusgps-37.5.1.dist-info → python_terminusgps-37.5.2.dist-info}/RECORD +9 -9
- terminusgps/authorizenet/constants.py +1 -1
- terminusgps/authorizenet/profiles/addresses.py +2 -2
- terminusgps/authorizenet/profiles/customers.py +10 -10
- terminusgps/authorizenet/profiles/payments.py +6 -6
- terminusgps/authorizenet/profiles/subscriptions.py +18 -18
- {python_terminusgps-37.5.1.dist-info → python_terminusgps-37.5.2.dist-info}/WHEEL +0 -0
- {python_terminusgps-37.5.1.dist-info → python_terminusgps-37.5.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.5.
|
|
3
|
+
Version: 37.5.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
terminusgps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
terminusgps/authorizenet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
terminusgps/authorizenet/auth.py,sha256=g2tJPxP9V1nXnUcKzhHSRSs6ruSIHej5_hcf8P7bod8,1262
|
|
4
|
-
terminusgps/authorizenet/constants.py,sha256=
|
|
4
|
+
terminusgps/authorizenet/constants.py,sha256=uXkYVmQPrnYBDfGahVEmzwTny21A8jGcrH7qfSdLhvc,512
|
|
5
5
|
terminusgps/authorizenet/controllers.py,sha256=rMuBwSoKJjte7wVuB1ewaqnzfuDXxwus-d5mkqbfnGE,2193
|
|
6
6
|
terminusgps/authorizenet/utils.py,sha256=lkXjKfegFFN8TgtjlyI03416X6oqFIciFnWgSEuIgSM,6800
|
|
7
7
|
terminusgps/authorizenet/items/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -10,11 +10,11 @@ terminusgps/authorizenet/items/base.py,sha256=fcO0RRrOXytlSbBDLLFajfdkxYtqmniJ5F
|
|
|
10
10
|
terminusgps/authorizenet/items/customer_profiles.py,sha256=53cqXooXszTqMv2PuifDsDknuDxGtA73jZkquWZl0zs,9262
|
|
11
11
|
terminusgps/authorizenet/items/payment_profiles.py,sha256=kYvuq1xCmeIUmmXgbOapbA01roQ4k0zOLafcBtG-eM0,10830
|
|
12
12
|
terminusgps/authorizenet/profiles/__init__.py,sha256=IG4XCEEYtHKqXOatlZlob6J3ukAgF7cFR-RXxOSMS1c,161
|
|
13
|
-
terminusgps/authorizenet/profiles/addresses.py,sha256=
|
|
13
|
+
terminusgps/authorizenet/profiles/addresses.py,sha256=MwJQzq3IrjYCLJzOglLfJIcMvH5osDu1MzN6_XGO0Tc,6376
|
|
14
14
|
terminusgps/authorizenet/profiles/base.py,sha256=Pu1NGrvC5Ox2W1oZuVcPqUw3aUoSK191Evexw1U6_3k,3940
|
|
15
|
-
terminusgps/authorizenet/profiles/customers.py,sha256=
|
|
16
|
-
terminusgps/authorizenet/profiles/payments.py,sha256=
|
|
17
|
-
terminusgps/authorizenet/profiles/subscriptions.py,sha256=
|
|
15
|
+
terminusgps/authorizenet/profiles/customers.py,sha256=GFSG5hPsShLCrqa40eDtdxxVIwJUqcgSFyhxsN5tbhw,12185
|
|
16
|
+
terminusgps/authorizenet/profiles/payments.py,sha256=57qtiPKGS6loPMccLXQJoHV3fGyNNQ0AXcR9ukDNrXE,11313
|
|
17
|
+
terminusgps/authorizenet/profiles/subscriptions.py,sha256=TKTGeYCNSiDMAQGwMnFOL7E_SKt3GsiwgtIfGJE3yHc,10256
|
|
18
18
|
terminusgps/authorizenet/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
terminusgps/authorizenet/tests/test_auth.py,sha256=qwACQK6R4mu7i6IoSlY015X2ABB9jkTJE9JcHpfiZaQ,1601
|
|
20
20
|
terminusgps/authorizenet/tests/test_profiles.py,sha256=MkpMSU9cgSeLy9bBuZdhdFiPxFT5858u9C8BqAmRhGY,7537
|
|
@@ -59,7 +59,7 @@ terminusgps/wialon/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
59
59
|
terminusgps/wialon/tests/test_items.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
60
|
terminusgps/wialon/tests/test_session.py,sha256=9mBlYchMo9NeqRIZsmxYzrM1zBHorqu4ooxqSNppLpI,1336
|
|
61
61
|
terminusgps/wialon/tests/test_utils.py,sha256=SK4PxJQGECFnzx_EQeRAQfsQ5_3FLaVcis2W9u_ibuI,1730
|
|
62
|
-
python_terminusgps-37.5.
|
|
63
|
-
python_terminusgps-37.5.
|
|
64
|
-
python_terminusgps-37.5.
|
|
65
|
-
python_terminusgps-37.5.
|
|
62
|
+
python_terminusgps-37.5.2.dist-info/METADATA,sha256=rs7iVZ9GR7e21fCHspgV86OVQ2cKErylAeGzzsFMk9c,1329
|
|
63
|
+
python_terminusgps-37.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
64
|
+
python_terminusgps-37.5.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
65
|
+
python_terminusgps-37.5.2.dist-info/RECORD,,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from authorizenet import apicontractsv1, apicontrollers
|
|
2
2
|
|
|
3
|
-
from terminusgps.authorizenet.constants import
|
|
3
|
+
from terminusgps.authorizenet.constants import ANET_XMLNS
|
|
4
4
|
from terminusgps.authorizenet.profiles.base import AuthorizenetSubProfileBase
|
|
5
5
|
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ class AddressProfile(AuthorizenetSubProfileBase):
|
|
|
19
19
|
"""
|
|
20
20
|
return int(
|
|
21
21
|
self._authorizenet_create_shipping_address(address).find(
|
|
22
|
-
f"{
|
|
22
|
+
f"{ANET_XMLNS}customerAddressId"
|
|
23
23
|
)
|
|
24
24
|
)
|
|
25
25
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from authorizenet import apicontractsv1, apicontrollers
|
|
2
2
|
|
|
3
3
|
from terminusgps.authorizenet.auth import get_validation_mode
|
|
4
|
-
from terminusgps.authorizenet.constants import
|
|
4
|
+
from terminusgps.authorizenet.constants import ANET_XMLNS
|
|
5
5
|
from terminusgps.authorizenet.controllers import AuthorizenetControllerExecutionError
|
|
6
6
|
from terminusgps.authorizenet.profiles.base import AuthorizenetProfileBase
|
|
7
7
|
|
|
@@ -32,8 +32,8 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
32
32
|
try:
|
|
33
33
|
self.id = int(
|
|
34
34
|
self._authorizenet_get_customer_profile()
|
|
35
|
-
.find(f"{
|
|
36
|
-
.find(f"{
|
|
35
|
+
.find(f"{ANET_XMLNS}profile")
|
|
36
|
+
.find(f"{ANET_XMLNS}customerProfileId")
|
|
37
37
|
)
|
|
38
38
|
except AuthorizenetControllerExecutionError:
|
|
39
39
|
self.id = self.create()
|
|
@@ -130,7 +130,7 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
130
130
|
)
|
|
131
131
|
return int(
|
|
132
132
|
self._authorizenet_create_customer_profile().find(
|
|
133
|
-
f"{
|
|
133
|
+
f"{ANET_XMLNS}customerProfileId"
|
|
134
134
|
)
|
|
135
135
|
)
|
|
136
136
|
|
|
@@ -167,12 +167,12 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
167
167
|
"""
|
|
168
168
|
payment_profiles = (
|
|
169
169
|
self._authorizenet_get_customer_profile()
|
|
170
|
-
.find(f"{
|
|
171
|
-
.findall(f"{
|
|
170
|
+
.find(f"{ANET_XMLNS}profile")
|
|
171
|
+
.findall(f"{ANET_XMLNS}paymentProfiles")
|
|
172
172
|
)
|
|
173
173
|
return (
|
|
174
174
|
[
|
|
175
|
-
int(profile.find(f"{
|
|
175
|
+
int(profile.find(f"{ANET_XMLNS}customerPaymentProfileId"))
|
|
176
176
|
for profile in payment_profiles
|
|
177
177
|
]
|
|
178
178
|
if payment_profiles is not None
|
|
@@ -189,12 +189,12 @@ class CustomerProfile(AuthorizenetProfileBase):
|
|
|
189
189
|
"""
|
|
190
190
|
address_profiles = (
|
|
191
191
|
self._authorizenet_get_customer_profile()
|
|
192
|
-
.find(f"{
|
|
193
|
-
.findall(f"{
|
|
192
|
+
.find(f"{ANET_XMLNS}profile")
|
|
193
|
+
.findall(f"{ANET_XMLNS}shipToList")
|
|
194
194
|
)
|
|
195
195
|
return (
|
|
196
196
|
[
|
|
197
|
-
int(profile.find(f"{
|
|
197
|
+
int(profile.find(f"{ANET_XMLNS}customerAddressId"))
|
|
198
198
|
for profile in address_profiles
|
|
199
199
|
]
|
|
200
200
|
if address_profiles is not None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from authorizenet import apicontractsv1, apicontrollers
|
|
2
2
|
|
|
3
|
-
from terminusgps.authorizenet.constants import
|
|
3
|
+
from terminusgps.authorizenet.constants import ANET_XMLNS
|
|
4
4
|
from terminusgps.authorizenet.profiles.base import AuthorizenetSubProfileBase
|
|
5
5
|
|
|
6
6
|
|
|
@@ -18,10 +18,10 @@ class PaymentProfile(AuthorizenetSubProfileBase):
|
|
|
18
18
|
if self.id:
|
|
19
19
|
cc_num = (
|
|
20
20
|
self._authorizenet_get_payment_profile()
|
|
21
|
-
.find(f"{
|
|
22
|
-
.find(f"{
|
|
23
|
-
.find(f"{
|
|
24
|
-
.find(f"{
|
|
21
|
+
.find(f"{ANET_XMLNS}paymentProfile")
|
|
22
|
+
.find(f"{ANET_XMLNS}payment")
|
|
23
|
+
.find(f"{ANET_XMLNS}creditCard")
|
|
24
|
+
.find(f"{ANET_XMLNS}cardNumber")
|
|
25
25
|
) # returns string like: "XXXX<last_4>"
|
|
26
26
|
return int(str(cc_num[-4:])) if cc_num is not None else None
|
|
27
27
|
|
|
@@ -44,7 +44,7 @@ class PaymentProfile(AuthorizenetSubProfileBase):
|
|
|
44
44
|
return int(
|
|
45
45
|
self._authorizenet_create_payment_profile(
|
|
46
46
|
address=address, payment=payment
|
|
47
|
-
).find(f"{
|
|
47
|
+
).find(f"{ANET_XMLNS}customerPaymentProfileId")
|
|
48
48
|
)
|
|
49
49
|
|
|
50
50
|
def update(
|
|
@@ -3,7 +3,7 @@ import decimal
|
|
|
3
3
|
from authorizenet import apicontractsv1, apicontrollers
|
|
4
4
|
|
|
5
5
|
from terminusgps.authorizenet.constants import (
|
|
6
|
-
|
|
6
|
+
ANET_XMLNS,
|
|
7
7
|
AuthorizenetSubscriptionStatus,
|
|
8
8
|
)
|
|
9
9
|
from terminusgps.authorizenet.profiles.base import AuthorizenetSubProfileBase
|
|
@@ -23,8 +23,8 @@ class SubscriptionProfile(AuthorizenetSubProfileBase):
|
|
|
23
23
|
if self.id:
|
|
24
24
|
name = (
|
|
25
25
|
self._authorizenet_get_subscription()
|
|
26
|
-
.find(f"{
|
|
27
|
-
.find(f"{
|
|
26
|
+
.find(f"{ANET_XMLNS}subscription")
|
|
27
|
+
.find(f"{ANET_XMLNS}name")
|
|
28
28
|
)
|
|
29
29
|
return str(name) if name is not None else None
|
|
30
30
|
|
|
@@ -39,8 +39,8 @@ class SubscriptionProfile(AuthorizenetSubProfileBase):
|
|
|
39
39
|
if self.id:
|
|
40
40
|
amount = (
|
|
41
41
|
self._authorizenet_get_subscription()
|
|
42
|
-
.find(f"{
|
|
43
|
-
.find(f"{
|
|
42
|
+
.find(f"{ANET_XMLNS}subscription")
|
|
43
|
+
.find(f"{ANET_XMLNS}amount")
|
|
44
44
|
)
|
|
45
45
|
decimal.getcontext().prec = 4
|
|
46
46
|
return decimal.Decimal(float(amount)) * 1 if amount is not None else None
|
|
@@ -55,7 +55,7 @@ class SubscriptionProfile(AuthorizenetSubProfileBase):
|
|
|
55
55
|
"""
|
|
56
56
|
if self.id:
|
|
57
57
|
status = self._authorizenet_get_subscription_status().find(
|
|
58
|
-
f"{
|
|
58
|
+
f"{ANET_XMLNS}status"
|
|
59
59
|
)
|
|
60
60
|
return (
|
|
61
61
|
AuthorizenetSubscriptionStatus(status) if status is not None else None
|
|
@@ -74,9 +74,9 @@ class SubscriptionProfile(AuthorizenetSubProfileBase):
|
|
|
74
74
|
|
|
75
75
|
transactions = (
|
|
76
76
|
self._authorizenet_get_subscription(include_transactions=True)
|
|
77
|
-
.find(f"{
|
|
78
|
-
.find(f"{
|
|
79
|
-
.findall(f"{
|
|
77
|
+
.find(f"{ANET_XMLNS}subscription")
|
|
78
|
+
.find(f"{ANET_XMLNS}arbTransactions")
|
|
79
|
+
.findall(f"{ANET_XMLNS}arbTransaction")
|
|
80
80
|
)
|
|
81
81
|
return transactions if transactions is not None else [{}]
|
|
82
82
|
|
|
@@ -91,10 +91,10 @@ class SubscriptionProfile(AuthorizenetSubProfileBase):
|
|
|
91
91
|
if self.id:
|
|
92
92
|
address_id = (
|
|
93
93
|
self._authorizenet_get_subscription()
|
|
94
|
-
.find(f"{
|
|
95
|
-
.find(f"{
|
|
96
|
-
.find(f"{
|
|
97
|
-
.find(f"{
|
|
94
|
+
.find(f"{ANET_XMLNS}subscription")
|
|
95
|
+
.find(f"{ANET_XMLNS}profile")
|
|
96
|
+
.find(f"{ANET_XMLNS}shippingProfile")
|
|
97
|
+
.find(f"{ANET_XMLNS}customerAddressId")
|
|
98
98
|
)
|
|
99
99
|
return int(address_id) if address_id is not None else None
|
|
100
100
|
|
|
@@ -109,10 +109,10 @@ class SubscriptionProfile(AuthorizenetSubProfileBase):
|
|
|
109
109
|
if self.id:
|
|
110
110
|
payment_id = (
|
|
111
111
|
self._authorizenet_get_subscription()
|
|
112
|
-
.find(f"{
|
|
113
|
-
.find(f"{
|
|
114
|
-
.find(f"{
|
|
115
|
-
.find(f"{
|
|
112
|
+
.find(f"{ANET_XMLNS}subscription")
|
|
113
|
+
.find(f"{ANET_XMLNS}profile")
|
|
114
|
+
.find(f"{ANET_XMLNS}paymentProfile")
|
|
115
|
+
.find(f"{ANET_XMLNS}customerPaymentProfileId")
|
|
116
116
|
)
|
|
117
117
|
return int(payment_id) if payment_id is not None else None
|
|
118
118
|
|
|
@@ -129,7 +129,7 @@ class SubscriptionProfile(AuthorizenetSubProfileBase):
|
|
|
129
129
|
"""
|
|
130
130
|
return int(
|
|
131
131
|
self._authorizenet_create_subscription(subscription).find(
|
|
132
|
-
f"{
|
|
132
|
+
f"{ANET_XMLNS}subscriptionId"
|
|
133
133
|
)
|
|
134
134
|
)
|
|
135
135
|
|
|
File without changes
|
{python_terminusgps-37.5.1.dist-info → python_terminusgps-37.5.2.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|