python-terminusgps 37.4.2__py3-none-any.whl → 37.4.3__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.
- {python_terminusgps-37.4.2.dist-info → python_terminusgps-37.4.3.dist-info}/METADATA +1 -1
- {python_terminusgps-37.4.2.dist-info → python_terminusgps-37.4.3.dist-info}/RECORD +5 -5
- terminusgps/authorizenet/utils.py +16 -0
- {python_terminusgps-37.4.2.dist-info → python_terminusgps-37.4.3.dist-info}/WHEEL +0 -0
- {python_terminusgps-37.4.2.dist-info → python_terminusgps-37.4.3.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 37.4.
|
|
3
|
+
Version: 37.4.3
|
|
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=
|
|
6
|
+
terminusgps/authorizenet/utils.py,sha256=NK-X071iUYIGrvf3A-7PLMYC0liNIcqKorlPGURk_Ts,6813
|
|
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.
|
|
63
|
-
python_terminusgps-37.4.
|
|
64
|
-
python_terminusgps-37.4.
|
|
65
|
-
python_terminusgps-37.4.
|
|
62
|
+
python_terminusgps-37.4.3.dist-info/METADATA,sha256=r_EWBopKYc5EpIkjeCDdrfzV9zLpRHoSdNAPzATnNlA,1329
|
|
63
|
+
python_terminusgps-37.4.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
64
|
+
python_terminusgps-37.4.3.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
65
|
+
python_terminusgps-37.4.3.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,21 @@ 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.datetime,
|
|
69
|
+
total_occurrences: int = 9999,
|
|
70
|
+
trial_occurrences: int = 0,
|
|
71
|
+
) -> apicontractsv1.paymentScheduleType:
|
|
72
|
+
return apicontractsv1.paymentScheduleType(
|
|
73
|
+
interval=apicontractsv1.paymentScheduleTypeInterval(
|
|
74
|
+
length=1, unit=apicontractsv1.ARBSubscriptionUnitEnum.months
|
|
75
|
+
),
|
|
76
|
+
startDate=f"{start_date:%Y-%m-%d}",
|
|
77
|
+
totalOccurrences=str(total_occurrences),
|
|
78
|
+
trialOccurrences=str(trial_occurrences),
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
66
82
|
def get_customer_profile_ids() -> list[int]:
|
|
67
83
|
"""
|
|
68
84
|
Returns a list of all customer profile ids in Authorizenet.
|
|
File without changes
|
{python_terminusgps-37.4.2.dist-info → python_terminusgps-37.4.3.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|