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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 37.5.1
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=VqpMWaVe60r9l0GcswZZZ88-ZQbwJz7hocCP0wk8bSo,513
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=KEa8JdjDkf1cSagyj6ZgdraltMBC2hubtcQJtPhQuCE,6378
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=a3UuWn8Z2U9L1122xWxSQDs_OdH3vqDR8PZckqKv8lE,12195
16
- terminusgps/authorizenet/profiles/payments.py,sha256=2ZkBud4Sq3bPUkPlu7MYIz0dO3L_88XUS_OxQM40Khk,11319
17
- terminusgps/authorizenet/profiles/subscriptions.py,sha256=_H1qJtc19lsITs5uyTUgJ_wtQWSbuS5vZTHR1a2Irjc,10274
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.1.dist-info/METADATA,sha256=nMM27N33lDVtRQRqSWaSYvg9HP4zhw3HKN5-eKDTBhQ,1329
63
- python_terminusgps-37.5.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
64
- python_terminusgps-37.5.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
65
- python_terminusgps-37.5.1.dist-info/RECORD,,
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
  import enum
2
2
 
3
- ANET_XML_NS = "{AnetApi/xml/v1/schema/AnetApiSchema.xsd}"
3
+ ANET_XMLNS = "{AnetApi/xml/v1/schema/AnetApiSchema.xsd}"
4
4
  """Authorizenet XML namespace."""
5
5
 
6
6
 
@@ -1,6 +1,6 @@
1
1
  from authorizenet import apicontractsv1, apicontrollers
2
2
 
3
- from terminusgps.authorizenet.constants import ANET_XML_NS
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"{ANET_XML_NS}customerAddressId"
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 ANET_XML_NS
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"{ANET_XML_NS}profile")
36
- .find(f"{ANET_XML_NS}customerProfileId")
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"{ANET_XML_NS}customerProfileId"
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"{ANET_XML_NS}profile")
171
- .findall(f"{ANET_XML_NS}paymentProfiles")
170
+ .find(f"{ANET_XMLNS}profile")
171
+ .findall(f"{ANET_XMLNS}paymentProfiles")
172
172
  )
173
173
  return (
174
174
  [
175
- int(profile.find(f"{ANET_XML_NS}customerPaymentProfileId"))
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"{ANET_XML_NS}profile")
193
- .findall(f"{ANET_XML_NS}shipToList")
192
+ .find(f"{ANET_XMLNS}profile")
193
+ .findall(f"{ANET_XMLNS}shipToList")
194
194
  )
195
195
  return (
196
196
  [
197
- int(profile.find(f"{ANET_XML_NS}customerAddressId"))
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 ANET_XML_NS
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"{ANET_XML_NS}paymentProfile")
22
- .find(f"{ANET_XML_NS}payment")
23
- .find(f"{ANET_XML_NS}creditCard")
24
- .find(f"{ANET_XML_NS}cardNumber")
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"{ANET_XML_NS}customerPaymentProfileId")
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
- ANET_XML_NS,
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"{ANET_XML_NS}subscription")
27
- .find(f"{ANET_XML_NS}name")
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"{ANET_XML_NS}subscription")
43
- .find(f"{ANET_XML_NS}amount")
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"{ANET_XML_NS}status"
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"{ANET_XML_NS}subscription")
78
- .find(f"{ANET_XML_NS}arbTransactions")
79
- .findall(f"{ANET_XML_NS}arbTransaction")
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"{ANET_XML_NS}subscription")
95
- .find(f"{ANET_XML_NS}profile")
96
- .find(f"{ANET_XML_NS}shippingProfile")
97
- .find(f"{ANET_XML_NS}customerAddressId")
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"{ANET_XML_NS}subscription")
113
- .find(f"{ANET_XML_NS}profile")
114
- .find(f"{ANET_XML_NS}paymentProfile")
115
- .find(f"{ANET_XML_NS}customerPaymentProfileId")
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"{ANET_XML_NS}subscriptionId"
132
+ f"{ANET_XMLNS}subscriptionId"
133
133
  )
134
134
  )
135
135