python-terminusgps 37.4.4__py3-none-any.whl → 37.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.
- {python_terminusgps-37.4.4.dist-info → python_terminusgps-37.5.0.dist-info}/METADATA +1 -1
- {python_terminusgps-37.4.4.dist-info → python_terminusgps-37.5.0.dist-info}/RECORD +6 -6
- terminusgps/wialon/items/resource.py +11 -1
- terminusgps/wialon/session.py +1 -0
- {python_terminusgps-37.4.4.dist-info → python_terminusgps-37.5.0.dist-info}/WHEEL +0 -0
- {python_terminusgps-37.4.4.dist-info → python_terminusgps-37.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: 37.
|
|
3
|
+
Version: 37.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
|
|
@@ -44,12 +44,12 @@ terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
44
44
|
terminusgps/wialon/constants.py,sha256=05pLc_0S-x0tT87cQcxOmr8plesjOQxoXfUdjIHwI90,7732
|
|
45
45
|
terminusgps/wialon/flags.py,sha256=M50EdhxQ8IMnJnU0mrHK7-h8Asc6tvNiTOOfd1dBW6A,12815
|
|
46
46
|
terminusgps/wialon/renderer.py,sha256=ubmaLjdJyksO2qiWHbIBvYeDqlFya2br7oJYsdfoyV8,7046
|
|
47
|
-
terminusgps/wialon/session.py,sha256=
|
|
47
|
+
terminusgps/wialon/session.py,sha256=tS_XNaw0d1I_IwNwCX7aZ9lZkvEzo2GRfTpfrcUBsME,10144
|
|
48
48
|
terminusgps/wialon/utils.py,sha256=ntHLAVJSJBdIgJK704xxFNFRopaFz-No9YZZOMmvWO8,11627
|
|
49
49
|
terminusgps/wialon/validators.py,sha256=o5__H9HHnGYth8QAKErJG5rEub7FnT8ue0S3IQ8b67o,4232
|
|
50
50
|
terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
|
|
51
51
|
terminusgps/wialon/items/base.py,sha256=vS8xIo5WLiwzpB81i7aHFnwOHzCf4lQG6azjq79HDM4,11775
|
|
52
|
-
terminusgps/wialon/items/resource.py,sha256=
|
|
52
|
+
terminusgps/wialon/items/resource.py,sha256=L8fZEItLal1fxKW-YUUV6E70WKyf0DtIa7G1fd8ekes,18627
|
|
53
53
|
terminusgps/wialon/items/retranslator.py,sha256=2J1x7lNxRck-IEXrmJ7RM9bVL60mrZkfmczOSiUhiO8,3873
|
|
54
54
|
terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9LyedE,1326
|
|
55
55
|
terminusgps/wialon/items/unit.py,sha256=P828NaWkTQncNre3n4h7AedeSxUXPKSxQFpBiliZCBk,12133
|
|
@@ -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.
|
|
63
|
-
python_terminusgps-37.
|
|
64
|
-
python_terminusgps-37.
|
|
65
|
-
python_terminusgps-37.
|
|
62
|
+
python_terminusgps-37.5.0.dist-info/METADATA,sha256=lY8LBgUGWlLsmakPxfxI7zBAlTXIHB-1eqbcikJKpmw,1329
|
|
63
|
+
python_terminusgps-37.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
64
|
+
python_terminusgps-37.5.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
65
|
+
python_terminusgps-37.5.0.dist-info/RECORD,,
|
|
@@ -60,6 +60,16 @@ class WialonResource(WialonBase):
|
|
|
60
60
|
"""
|
|
61
61
|
self.delete_account() if self.is_account else super().delete()
|
|
62
62
|
|
|
63
|
+
def get_remaining_days(self) -> int:
|
|
64
|
+
"""Returns the remaining account days for the resource."""
|
|
65
|
+
if not self.is_account:
|
|
66
|
+
return 0
|
|
67
|
+
return int(
|
|
68
|
+
self.session.wialon_api.account_get_account_data(
|
|
69
|
+
**{"itemId": self.id, "type": 1}
|
|
70
|
+
).get("daysCounter", 0)
|
|
71
|
+
)
|
|
72
|
+
|
|
63
73
|
@property
|
|
64
74
|
def is_dealer(self) -> bool:
|
|
65
75
|
"""
|
|
@@ -72,7 +82,7 @@ class WialonResource(WialonBase):
|
|
|
72
82
|
"""
|
|
73
83
|
return (
|
|
74
84
|
bool(
|
|
75
|
-
self.session.wialon_api.
|
|
85
|
+
self.session.wialon_api.account_get_account_data(
|
|
76
86
|
**{"itemId": self.id, "type": 1}
|
|
77
87
|
).get("dealerRights")
|
|
78
88
|
)
|
terminusgps/wialon/session.py
CHANGED
|
File without changes
|
{python_terminusgps-37.4.4.dist-info → python_terminusgps-37.5.0.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|