python-terminusgps 35.4.0__py3-none-any.whl → 35.6.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: 35.4.0
3
+ Version: 35.6.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://docs.terminusgps.com
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -5,9 +5,9 @@ terminusgps/authorizenet/constants.py,sha256=xmulPmiBLhFfZoc7Il3l-DZA9Nq5HSaJmJK
5
5
  terminusgps/authorizenet/controllers.py,sha256=9t62qdGpmAkP4tNyPefd7vBRutXvMWsxql6z_pg52Bg,2146
6
6
  terminusgps/authorizenet/utils.py,sha256=FrKqXWrplcgiET1rDTmUaqmN_ze7j93jWgfFeJR8rlg,7073
7
7
  terminusgps/authorizenet/profiles/__init__.py,sha256=IG4XCEEYtHKqXOatlZlob6J3ukAgF7cFR-RXxOSMS1c,161
8
- terminusgps/authorizenet/profiles/addresses.py,sha256=xDlnFlIjuR7NVXwfj5aJT9E_GolnYFuYASkfenvWfm8,6292
8
+ terminusgps/authorizenet/profiles/addresses.py,sha256=5GudJStBa4P0Hd7G_hRFH2C-WpICAH_k3MT9YJkicKw,6305
9
9
  terminusgps/authorizenet/profiles/base.py,sha256=Pu1NGrvC5Ox2W1oZuVcPqUw3aUoSK191Evexw1U6_3k,3940
10
- terminusgps/authorizenet/profiles/customers.py,sha256=ArXOHPgyBu01tgBPHHYyezb4PIeXh70IWjYCy-lHpWg,11734
10
+ terminusgps/authorizenet/profiles/customers.py,sha256=lLzQPJByu_oEck8u3h4vzoV_uVOKKeLr6qhFAV5uQ_E,12793
11
11
  terminusgps/authorizenet/profiles/payments.py,sha256=nhudGuJ6RzmK0MrhDVuYL2BxvyzKNpliBIfIpFU5Y-4,11038
12
12
  terminusgps/authorizenet/profiles/subscriptions.py,sha256=m_jb9GqeD1tLmeqSnaGwJrzPcQOulEkF8K1wCaqKR24,7924
13
13
  terminusgps/authorizenet/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -52,7 +52,7 @@ terminusgps/wialon/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
52
52
  terminusgps/wialon/tests/test_items.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  terminusgps/wialon/tests/test_session.py,sha256=9mBlYchMo9NeqRIZsmxYzrM1zBHorqu4ooxqSNppLpI,1336
54
54
  terminusgps/wialon/tests/test_utils.py,sha256=SK4PxJQGECFnzx_EQeRAQfsQ5_3FLaVcis2W9u_ibuI,1730
55
- python_terminusgps-35.4.0.dist-info/METADATA,sha256=yyOAC6wbzHngb7UQQuqNchUZeeikcsH43qdyJLwBQTg,1616
56
- python_terminusgps-35.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
57
- python_terminusgps-35.4.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
- python_terminusgps-35.4.0.dist-info/RECORD,,
55
+ python_terminusgps-35.6.0.dist-info/METADATA,sha256=X1DuwOhyOEoHoJjTMXXg5-6RpyXpB0F8m42BY8M4oUE,1616
56
+ python_terminusgps-35.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
57
+ python_terminusgps-35.6.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
+ python_terminusgps-35.6.0.dist-info/RECORD,,
@@ -12,8 +12,8 @@ class AddressProfile(AuthorizenetSubProfileBase):
12
12
 
13
13
  :param address: A customer address.
14
14
  :type address: :py:obj:`~authorizenet.apicontractsv1.customerAddressType`
15
- :returns: Nothing.
16
- :rtype: :py:obj:`None`
15
+ :returns: An address profile id.
16
+ :rtype: :py:obj:`int`
17
17
 
18
18
  """
19
19
  return int(
@@ -160,6 +160,38 @@ class CustomerProfile(AuthorizenetProfileBase):
160
160
  self._authorizenet_delete_customer_profile()
161
161
  self.id = None
162
162
 
163
+ def get_payment_profile_ids(self) -> list[int]:
164
+ """
165
+ Returns a list of payment profile ids assigned to the customer profile.
166
+
167
+ :returns: A list of payment profile ids.
168
+ :rtype: :py:obj:`list`
169
+
170
+ """
171
+ response = self._authorizenet_get_customer_profile()
172
+ if response is not None:
173
+ return [
174
+ int(p.customerPaymentProfileId)
175
+ for p in response.profile.paymentProfiles
176
+ if hasattr(response.profile, "paymentProfiles")
177
+ ]
178
+
179
+ def get_address_profile_ids(self) -> list[int]:
180
+ """
181
+ Returns a list of address profile ids assigned to the customer profile.
182
+
183
+ :returns: A list of address profile ids.
184
+ :rtype: :py:obj:`list`
185
+
186
+ """
187
+ response = self._authorizenet_get_customer_profile()
188
+ if response is not None:
189
+ return [
190
+ int(p.customerAddressId)
191
+ for p in response.profile.shipToList
192
+ if hasattr(response.profile, "shipToList")
193
+ ]
194
+
163
195
  def _generate_customer_profile_ex_type(
164
196
  self,
165
197
  ) -> apicontractsv1.customerProfileExType: