python-terminusgps 27.2.0__py3-none-any.whl → 27.3.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 27.2.0
3
+ Version: 27.3.1
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
@@ -7,7 +7,7 @@ terminusgps/authorizenet/utils.py,sha256=RQ_R9YEoNGYQNV7vePmNxbYyhf_DImumATyROck
7
7
  terminusgps/authorizenet/profiles/__init__.py,sha256=QKjMKcXpCSCEhv6LBCz0yGP8t0VxAyKyYRS4_HLYnxQ,114
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=kxYj9naCsHhFkHdWl8dLk0ketORMxMMhO2XzVOyGd4g,8363
10
+ terminusgps/authorizenet/profiles/customers.py,sha256=xQB0M9Hr1vvtoiBEV2Fp0RELgJ9Mx8kAJ3sFwZif80o,8532
11
11
  terminusgps/authorizenet/profiles/payments.py,sha256=ohhZrs9MB7GkCi7jQvPVvELNKnR9BwzMd607jJmT4n4,11316
12
12
  terminusgps/authorizenet/subscriptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  terminusgps/authorizenet/subscriptions/subscriptions.py,sha256=t1yNGMnfVEhSLMerZmEr479XDgOY-ksqvCn3FNcymVE,1609
@@ -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-27.2.0.dist-info/METADATA,sha256=Lp10-pqEswlaroK6JEUozDyl3Wl75QrfNKIsEUe3Cwo,946
34
- python_terminusgps-27.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
- python_terminusgps-27.2.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
- python_terminusgps-27.2.0.dist-info/RECORD,,
33
+ python_terminusgps-27.3.1.dist-info/METADATA,sha256=5XcDojmOYJL2eB9wIxo6OGhWPFKAONFOC0IJZBE79Bk,946
34
+ python_terminusgps-27.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
+ python_terminusgps-27.3.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
+ python_terminusgps-27.3.1.dist-info/RECORD,,
@@ -54,22 +54,28 @@ class CustomerProfile(AuthorizenetProfileBase):
54
54
  self._authorizenet_delete_customer_profile()
55
55
 
56
56
  @property
57
- def payment_profiles(self) -> list[dict] | None:
58
- """A list of the customer's payment profiles, if any."""
57
+ def payment_profile_ids(self) -> list[int]:
58
+ """A list of the customer's payment profile ids, if any."""
59
59
  try:
60
60
  response = self._authorizenet_get_customer_profile(issuer_info=False)
61
- return response.paymentProfiles if response else None
61
+ return [
62
+ int(profile.customerPaymentProfileId)
63
+ for profile in response.profile.paymentProfiles
64
+ ]
62
65
  except ControllerExecutionError:
63
- return
66
+ return []
64
67
 
65
68
  @property
66
- def address_profiles(self) -> list[dict] | None:
67
- """A list of the customer's address profiles, if any."""
69
+ def address_profile_ids(self) -> list[int]:
70
+ """A list of the customer's address profile ids, if any."""
68
71
  try:
69
72
  response = self._authorizenet_get_customer_profile(issuer_info=False)
70
- return response.shipToList if response else None
73
+ return [
74
+ int(profile.customerAddressId)
75
+ for profile in response.profile.shipToList
76
+ ]
71
77
  except ControllerExecutionError:
72
- return
78
+ return []
73
79
 
74
80
  @property
75
81
  def exists(self) -> bool: