python-terminusgps 28.7.2__py3-none-any.whl → 28.9.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.

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: 28.7.2
3
+ Version: 28.9.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://app.terminusgps.com/docs/apps/python-terminusgps/index.html
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -3,13 +3,13 @@ terminusgps/settings.py,sha256=vY5yNjyMu-7Ya0bIPWUvrrSLERtxHGdkfeoY4Ul6cP0,613
3
3
  terminusgps/authorizenet/__init__.py,sha256=LiGLlWNNiqS7RSOP4Apabx-b9EBYyNbxRY_a0mvJoaE,466
4
4
  terminusgps/authorizenet/auth.py,sha256=ICxPPzoUc64VbsIIemEWKrn8xjHGwbNdo2VbtaFCFss,1107
5
5
  terminusgps/authorizenet/errors.py,sha256=HG5NwVxQCtOYidVl30y49PC0Ovw5VYdsy9wTgUFMw9M,949
6
- terminusgps/authorizenet/utils.py,sha256=171ysRwp_Fnp5v6JUHXV3iFu5_yARFnonR8ysbQumIc,2819
6
+ terminusgps/authorizenet/utils.py,sha256=T0ufuNiBgn54VS07qJRJHf7pmapA3sFLSiSGe_nfUog,2802
7
7
  terminusgps/authorizenet/profiles/__init__.py,sha256=IG4XCEEYtHKqXOatlZlob6J3ukAgF7cFR-RXxOSMS1c,161
8
8
  terminusgps/authorizenet/profiles/addresses.py,sha256=7yrOrb9kIsiiazgWbeH8v_YUBiWG3Y61g46R3S5DD-k,6592
9
9
  terminusgps/authorizenet/profiles/base.py,sha256=TOUHr22QRQBLErdysOkfcpJBusTjrUTqOmWEyNvMacA,2240
10
- terminusgps/authorizenet/profiles/customers.py,sha256=-F8IsQEn2CyHpfxyVZjKayHSuVe4ENNUj_ck7SE8LO0,8568
10
+ terminusgps/authorizenet/profiles/customers.py,sha256=IgH4f7vQHwUiGfrOTRVz3mFDS-_JN1yyV9JOpWO2AE4,8297
11
11
  terminusgps/authorizenet/profiles/payments.py,sha256=ohhZrs9MB7GkCi7jQvPVvELNKnR9BwzMd607jJmT4n4,11316
12
- terminusgps/authorizenet/profiles/subscriptions.py,sha256=Trv-wY0POSA1zk3Ra4y0eLFeFSu3_gnZgJYDHlhtYWA,11077
12
+ terminusgps/authorizenet/profiles/subscriptions.py,sha256=N4_0kbBBJ0FtKdIydN8FLnAG2kSI9DHQWAwemMt7Qu8,11020
13
13
  terminusgps/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  terminusgps/aws/connect.py,sha256=TWf2bVz6LqSNQfVD7FKRn3K71VuLOwBj05Gs-9BsROg,693
15
15
  terminusgps/aws/secrets.py,sha256=MxQEmmBLpMUQ2tYAsHdCYf-7RZ84LiogdKcTsACX5dw,361
@@ -30,7 +30,7 @@ terminusgps/wialon/items/route.py,sha256=8SzlqNmpYVdt-ZAY--B_KHoDIHgN0Zb7KBsBWAz
30
30
  terminusgps/wialon/items/unit.py,sha256=i7sQiRu3N0XxyTHVN2RnmjYy9X48KdnZLSB18ic37w8,9363
31
31
  terminusgps/wialon/items/unit_group.py,sha256=YsYh34l2DjSKcv5SIZkEVi5FSjveGB1gxU2fwdLyvl4,4101
32
32
  terminusgps/wialon/items/user.py,sha256=PFYBie04F16YE2B5364PLxkmlTmQr4sZXpItvRBxsDc,7143
33
- python_terminusgps-28.7.2.dist-info/METADATA,sha256=feiwz7ivj_NDfrP3i-T-yqetIXQ8BAQ41ceamyyPtLI,946
34
- python_terminusgps-28.7.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
- python_terminusgps-28.7.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
- python_terminusgps-28.7.2.dist-info/RECORD,,
33
+ python_terminusgps-28.9.0.dist-info/METADATA,sha256=ikW1QHGC85Ch9G2-99zUIpaOrYiQCOnmU8gkUy-zNTc,946
34
+ python_terminusgps-28.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
+ python_terminusgps-28.9.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
+ python_terminusgps-28.9.0.dist-info/RECORD,,
@@ -1,7 +1,7 @@
1
1
  from authorizenet import apicontractsv1, apicontrollers
2
2
  from authorizenet.apicontractsv1 import customerProfileType
3
3
 
4
- from ..utils import ControllerExecutionError, get_customer_profile_ids
4
+ from ..utils import ControllerExecutionError
5
5
  from .base import AuthorizenetProfileBase
6
6
 
7
7
 
@@ -77,12 +77,6 @@ class CustomerProfile(AuthorizenetProfileBase):
77
77
  except (ControllerExecutionError, AttributeError):
78
78
  return []
79
79
 
80
- @property
81
- def exists(self) -> bool:
82
- """Whether or not the customer profile exists in Authorizenet."""
83
- profile_ids = get_customer_profile_ids()
84
- return int(self.id) in profile_ids if self.id is not None else False
85
-
86
80
  def _authorizenet_get_customer_profile_ids(self) -> dict | None:
87
81
  """
88
82
  Executes a :py:obj:`~authorizenet.apicontractsv1.getCustomerProfileIdsRequest` using the Authorizenet API.
@@ -124,8 +124,7 @@ class SubscriptionProfile(ControllerExecutionMixin):
124
124
  return
125
125
 
126
126
  response = self._authorizenet_get_subscription(include_transactions=True)
127
- if response is not None and "arbTransactions" in response.getchildren():
128
- return [t for t in response.arbTransactions]
127
+ return [t for t in response.subscription.arbTransactions.iterchildren()]
129
128
 
130
129
  @property
131
130
  def payment_id(self) -> int | None:
@@ -35,7 +35,7 @@ def get_customer_profile_ids() -> list[int]:
35
35
  """
36
36
  Returns a list of all customer profile ids in Authorizenet.
37
37
 
38
- :raises ValueError: If something goes wrong calling the Authorizenet API.
38
+ :raises ControllerExecutionError: If the API call fails.
39
39
  :returns: A list of all customer profile ids in Authorizenet.
40
40
  :rtype: :py:obj:`list`
41
41