python-terminusgps 1.9.7__py3-none-any.whl → 1.9.8__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: 1.9.7
3
+ Version: 1.9.8
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
@@ -4,7 +4,7 @@ terminusgps/authorizenet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
4
4
  terminusgps/authorizenet/auth.py,sha256=kWsqRT9OVEAQuNxDzQNzY1x2SqmvJr-HAbLwgkILntk,997
5
5
  terminusgps/authorizenet/profiles/__init__.py,sha256=QKjMKcXpCSCEhv6LBCz0yGP8t0VxAyKyYRS4_HLYnxQ,114
6
6
  terminusgps/authorizenet/profiles/addresses.py,sha256=ffAi3LcEOB3Xsr9f4N_PfjSZcN3I9dTKNamoAmnLpo4,3838
7
- terminusgps/authorizenet/profiles/base.py,sha256=Uk_VwtEVOomyV92ljVn7vcRn8BfwWHu80Jnct0NNlmw,2491
7
+ terminusgps/authorizenet/profiles/base.py,sha256=IooSz_PTeq23IIgq6upx2CcpWEOXgK3mFNylADYlF3I,2553
8
8
  terminusgps/authorizenet/profiles/customers.py,sha256=iEuNFP6PHuGdFQftgxxKpQFYaGw8IWLjsOaugvEOA-g,4513
9
9
  terminusgps/authorizenet/profiles/payments.py,sha256=qOWp-gO6qBCADP98WjoNCHm-jtq7DY5-moiPsOnT5yI,5263
10
10
  terminusgps/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -23,7 +23,7 @@ terminusgps/wialon/items/route.py,sha256=qOHPN_rejwiGqvwWzlwmUIAIyc3lKavCalf8ki6
23
23
  terminusgps/wialon/items/unit.py,sha256=wzcLa0adMTKX6rtO4Vz6ntaxgY50rLk2KK_VBXlW_lQ,4680
24
24
  terminusgps/wialon/items/unit_group.py,sha256=1yc7ldPIgGbtiTj0djRDWmt6Q9K_VT9sxOaioasbbLY,5212
25
25
  terminusgps/wialon/items/user.py,sha256=bkcMw_YiocaMuhP_pBfB7apjAZwnsOzGScnGkn8Ybbw,6107
26
- python_terminusgps-1.9.7.dist-info/METADATA,sha256=AM9Wj1ho_7YrRdExekgsaiPG6zL8rrYRQfago0bpc6Q,882
27
- python_terminusgps-1.9.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- python_terminusgps-1.9.7.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
29
- python_terminusgps-1.9.7.dist-info/RECORD,,
26
+ python_terminusgps-1.9.8.dist-info/METADATA,sha256=LuMGvDMdgCMd1dCFqaXQDHGSd0YRkS_1S_PEe561X2c,882
27
+ python_terminusgps-1.9.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ python_terminusgps-1.9.8.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
29
+ python_terminusgps-1.9.8.dist-info/RECORD,,
@@ -7,9 +7,11 @@ from ..auth import get_merchant_auth, get_environment, get_validation_mode
7
7
 
8
8
 
9
9
  class AuthorizenetProfileBase:
10
- def __init__(self, merchant_id: int | str, id: int | str | None = None) -> None:
10
+ def __init__(
11
+ self, merchant_id: int | str, id: int | str | None = None, **kwargs
12
+ ) -> None:
11
13
  self._merchantCustomerId = merchant_id
12
- self._id = id
14
+ self._id = str(id) if id else self.create(**kwargs)
13
15
 
14
16
  def __str__(self) -> str:
15
17
  return f"#{self.id}"