python-terminusgps 37.4.2__py3-none-any.whl → 37.4.4__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: 37.4.2
3
+ Version: 37.4.4
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
@@ -3,7 +3,7 @@ terminusgps/authorizenet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
3
3
  terminusgps/authorizenet/auth.py,sha256=g2tJPxP9V1nXnUcKzhHSRSs6ruSIHej5_hcf8P7bod8,1262
4
4
  terminusgps/authorizenet/constants.py,sha256=xmulPmiBLhFfZoc7Il3l-DZA9Nq5HSaJmJKU-v-5X-Y,420
5
5
  terminusgps/authorizenet/controllers.py,sha256=rMuBwSoKJjte7wVuB1ewaqnzfuDXxwus-d5mkqbfnGE,2193
6
- terminusgps/authorizenet/utils.py,sha256=vxUTLT4rheWDd_2UprpcI8qo_Gw_zl0oiVHnUwHpNfE,6283
6
+ terminusgps/authorizenet/utils.py,sha256=lkXjKfegFFN8TgtjlyI03416X6oqFIciFnWgSEuIgSM,6800
7
7
  terminusgps/authorizenet/items/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  terminusgps/authorizenet/items/address_profiles.py,sha256=oiFw2T3TmyhLn8Vw-GWFrAeBbyOEG_dV8LLGr3oH7aI,5669
9
9
  terminusgps/authorizenet/items/base.py,sha256=fcO0RRrOXytlSbBDLLFajfdkxYtqmniJ5FWV4z0UkOk,2004
@@ -59,7 +59,7 @@ terminusgps/wialon/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
59
59
  terminusgps/wialon/tests/test_items.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
60
  terminusgps/wialon/tests/test_session.py,sha256=9mBlYchMo9NeqRIZsmxYzrM1zBHorqu4ooxqSNppLpI,1336
61
61
  terminusgps/wialon/tests/test_utils.py,sha256=SK4PxJQGECFnzx_EQeRAQfsQ5_3FLaVcis2W9u_ibuI,1730
62
- python_terminusgps-37.4.2.dist-info/METADATA,sha256=TSV8Y5Jk0AShk21KLbQYmGivghytk-1c4UdTeeeGlmk,1329
63
- python_terminusgps-37.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
64
- python_terminusgps-37.4.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
65
- python_terminusgps-37.4.2.dist-info/RECORD,,
62
+ python_terminusgps-37.4.4.dist-info/METADATA,sha256=6dnl1Baq_0Y1qpR1FFjYGdATlkBHO1rlNb_cJHvttmk,1329
63
+ python_terminusgps-37.4.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
64
+ python_terminusgps-37.4.4.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
65
+ python_terminusgps-37.4.4.dist-info/RECORD,,
@@ -21,6 +21,7 @@ def get_days_between(start_date: datetime.date, end_date: datetime.date) -> int:
21
21
  """
22
22
  return (end_date - start_date).days
23
23
 
24
+
24
25
  def get_merchant_details() -> dict | None:
25
26
  """
26
27
  Returns Authorizenet merchant details.
@@ -63,6 +64,19 @@ def get_transaction(id: int | str) -> dict | None:
63
64
  return AuthorizenetControllerExecutor.execute_controller(controller)
64
65
 
65
66
 
67
+ def generate_monthly_subscription_schedule(
68
+ start_date: datetime.date, total_occurrences: int = 9999, trial_occurrences: int = 0
69
+ ) -> apicontractsv1.paymentScheduleType:
70
+ return apicontractsv1.paymentScheduleType(
71
+ interval=apicontractsv1.paymentScheduleTypeInterval(
72
+ length=1, unit=apicontractsv1.ARBSubscriptionUnitEnum.months
73
+ ),
74
+ startDate=f"{start_date:%Y-%m-%d}",
75
+ totalOccurrences=str(total_occurrences),
76
+ trialOccurrences=str(trial_occurrences),
77
+ )
78
+
79
+
66
80
  def get_customer_profile_ids() -> list[int]:
67
81
  """
68
82
  Returns a list of all customer profile ids in Authorizenet.