python-terminusgps 49.0.0__py3-none-any.whl → 49.2.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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 49.0.0
3
+ Version: 49.2.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://terminusgps.github.io/python-terminusgps
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -10,11 +10,14 @@ terminusgps/authorizenet/api/address_profiles.py,sha256=VouUN6dIxlnuE3qEiacFqqDB
10
10
  terminusgps/authorizenet/api/customer_profiles.py,sha256=1SBUxHgsyImKgl_hJpZU7TJfAEHU2KD8-Lwlc1VDRuE,6511
11
11
  terminusgps/authorizenet/api/payment_profiles.py,sha256=s-telQZXdq6bu5TxWVYv5xBNHWq81ve_hQVrRlqoBb0,8089
12
12
  terminusgps/authorizenet/api/subscriptions.py,sha256=VAXKjOHLOfifrixObK6XbiJCmPobkYBzXJQrjtos9LE,4542
13
- terminusgps/authorizenet/api/transactions.py,sha256=ecqDyvvd1U04lNiIWEtNjFWH9nlSjkmVKyFb2Kfa9wE,10036
13
+ terminusgps/authorizenet/api/transactions.py,sha256=HB7-tVKWL1CSirLgEg_sMkNNdiBLuH1y25KUDC11S14,10331
14
+ terminusgps/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ terminusgps/tests/authorizenet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ terminusgps/tests/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
17
  terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
18
  terminusgps/wialon/constants.py,sha256=fs0KpTSEBddYKgvuB6OZfy_JCIgKoiupQJxx53EBg8k,15486
16
19
  terminusgps/wialon/flags.py,sha256=M50EdhxQ8IMnJnU0mrHK7-h8Asc6tvNiTOOfd1dBW6A,12815
17
- terminusgps/wialon/session.py,sha256=To-aOuCSuzvDQoUtjRNw_X6FDfoV_49B3mXY6laGisY,6862
20
+ terminusgps/wialon/session.py,sha256=FI8Kf5saa_nHb_doug7aV8M2JssArQgJ4lOoXnI1BCo,7115
18
21
  terminusgps/wialon/utils.py,sha256=LlXiqUFrIkpIl2LX_aBcwpJVp5gzjulWM8udMUodF3U,18187
19
22
  terminusgps/wialon/items/__init__.py,sha256=RTiY9ziXqKCB8VWGoExOIErDlUMBBfzzsA7nlOlCZ2w,41
20
23
  terminusgps/wialon/items/account.py,sha256=eN9oOuXReVR_x5P9HKg2xlk6vk7FlVnki7bjzlzaWg4,7868
@@ -26,7 +29,7 @@ terminusgps/wialon/items/route.py,sha256=9hmRBEFRJF3lKukv_y3blZxqxv75YgFCcRALrU6
26
29
  terminusgps/wialon/items/unit.py,sha256=B5iuGEghu89SL8KzYLUytYNRa8cogsVtf-bJ_RybPTA,5522
27
30
  terminusgps/wialon/items/unit_group.py,sha256=MIR0x5IlTjcnwx8Y9wXLNTql-wwVVj7NCe7dL2vOw4c,2131
28
31
  terminusgps/wialon/items/user.py,sha256=CRSICiJ-qzybEO_gXuKyzW5oa2RQeIp0SzX9ARcdME4,5151
29
- python_terminusgps-49.0.0.dist-info/METADATA,sha256=LI26DuoXl1XjEZkEe9Z2g98NHv2ke-wWaG2bOMtLK_0,973
30
- python_terminusgps-49.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- python_terminusgps-49.0.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
32
- python_terminusgps-49.0.0.dist-info/RECORD,,
32
+ python_terminusgps-49.2.0.dist-info/METADATA,sha256=bSQ_yumWgA0nf3ou8jpZhmRe-MwgMJ5faCVSGqKVLJE,973
33
+ python_terminusgps-49.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ python_terminusgps-49.2.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
35
+ python_terminusgps-49.2.0.dist-info/RECORD,,
@@ -203,10 +203,13 @@ def void_transaction(
203
203
 
204
204
 
205
205
  def charge_customer_profile(
206
- customer_profile_id: int, payment_profile_id: int, amount: Decimal
206
+ customer_profile_id: int,
207
+ payment_profile_id: int,
208
+ amount: Decimal,
209
+ line_items: apicontractsv1.ArrayOfLineItem | None = None,
207
210
  ) -> tuple[ObjectifiedElement, type[APIOperationBase]]:
208
211
  """
209
- `Charges a customer profile <https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-customer-profile>_`.
212
+ `Charges a customer profile <https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-customer-profile>`_.
210
213
 
211
214
  :param customer_profile_id: An Authorizenet customer profile id.
212
215
  :type customer_profile_id: int
@@ -214,6 +217,8 @@ def charge_customer_profile(
214
217
  :type payment_profile_id: int
215
218
  :param amount: Amount to change the customer profile.
216
219
  :type amount: ~decimal.Decimal
220
+ :param line_items: An array of line items. Default is :py:obj:`None`.
221
+ :type line_items: ~apicontractsv1.ArrayOfLineItem | None
217
222
  :returns: A tuple containing an Authorizenet API request element and controller class.
218
223
  :rtype: tuple[~lxml.objectify.ObjectifiedElement, type[~authorizenet.apicontrollersbase.APIOperationBase]]
219
224
 
@@ -229,4 +234,6 @@ def charge_customer_profile(
229
234
  request.transactionRequest.transactionType = (
230
235
  apicontractsv1.transactionTypeEnum.authCaptureTransaction
231
236
  )
237
+ if line_items is not None:
238
+ request.transactionRequest.lineItems = line_items
232
239
  return request, apicontrollers.createTransactionController
File without changes
File without changes
File without changes
@@ -123,6 +123,7 @@ class WialonSession:
123
123
  self.wialon_api.sid = response.get("eid")
124
124
  self._username = response.get("au")
125
125
  self._uid = response.get("user", {}).get("id")
126
+ self._gis_sid = response.get("gis_sid")
126
127
 
127
128
  def auth_hash_login(
128
129
  self, auth_hash: str, username: str, check_service: str | None = None
@@ -192,6 +193,17 @@ class WialonSession:
192
193
  """
193
194
  return self._username
194
195
 
196
+ @property
197
+ def gis_sid(self) -> str | None:
198
+ """
199
+ GIS session id for the Wialon API session.
200
+
201
+ :type: str | None
202
+ :value: None
203
+
204
+ """
205
+ return self._gis_sid
206
+
195
207
  @property
196
208
  def id(self) -> str | None:
197
209
  """