python-terminusgps 35.4.0__py3-none-any.whl → 35.5.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.
- {python_terminusgps-35.4.0.dist-info → python_terminusgps-35.5.0.dist-info}/METADATA +1 -1
- {python_terminusgps-35.4.0.dist-info → python_terminusgps-35.5.0.dist-info}/RECORD +6 -6
- terminusgps/authorizenet/profiles/addresses.py +2 -2
- terminusgps/authorizenet/profiles/customers.py +27 -0
- {python_terminusgps-35.4.0.dist-info → python_terminusgps-35.5.0.dist-info}/WHEEL +0 -0
- {python_terminusgps-35.4.0.dist-info → python_terminusgps-35.5.0.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 35.
|
|
3
|
+
Version: 35.5.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=
|
|
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=
|
|
10
|
+
terminusgps/authorizenet/profiles/customers.py,sha256=SHFKr2Q8KbtJ1DUWuduiJTSJoVp_jV-65nVVd_Ew2lI,12624
|
|
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.
|
|
56
|
-
python_terminusgps-35.
|
|
57
|
-
python_terminusgps-35.
|
|
58
|
-
python_terminusgps-35.
|
|
55
|
+
python_terminusgps-35.5.0.dist-info/METADATA,sha256=ioZ70eDiKBrxzHB368OpivXu9sP9AspIFVuxi9FvE10,1616
|
|
56
|
+
python_terminusgps-35.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
57
|
+
python_terminusgps-35.5.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
58
|
+
python_terminusgps-35.5.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:
|
|
16
|
-
:rtype: :py:obj:`
|
|
15
|
+
:returns: An address profile id.
|
|
16
|
+
:rtype: :py:obj:`int`
|
|
17
17
|
|
|
18
18
|
"""
|
|
19
19
|
return int(
|
|
@@ -160,6 +160,33 @@ 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
|
+
]
|
|
177
|
+
|
|
178
|
+
def get_address_profile_ids(self) -> list[int]:
|
|
179
|
+
"""
|
|
180
|
+
Returns a list of address profile ids assigned to the customer profile.
|
|
181
|
+
|
|
182
|
+
:returns: A list of address profile ids.
|
|
183
|
+
:rtype: :py:obj:`list`
|
|
184
|
+
|
|
185
|
+
"""
|
|
186
|
+
response = self._authorizenet_get_customer_profile()
|
|
187
|
+
if response is not None:
|
|
188
|
+
return [int(p.customerAddressId) for p in response.profile.shipToList]
|
|
189
|
+
|
|
163
190
|
def _generate_customer_profile_ex_type(
|
|
164
191
|
self,
|
|
165
192
|
) -> apicontractsv1.customerProfileExType:
|
|
File without changes
|
{python_terminusgps-35.4.0.dist-info → python_terminusgps-35.5.0.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|