python-terminusgps 28.4.2__py3-none-any.whl → 28.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: 28.4.2
3
+ Version: 28.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://app.terminusgps.com/docs/apps/python-terminusgps/index.html
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -9,9 +9,9 @@ terminusgps/authorizenet/profiles/addresses.py,sha256=7yrOrb9kIsiiazgWbeH8v_YUBi
9
9
  terminusgps/authorizenet/profiles/base.py,sha256=TOUHr22QRQBLErdysOkfcpJBusTjrUTqOmWEyNvMacA,2240
10
10
  terminusgps/authorizenet/profiles/customers.py,sha256=-F8IsQEn2CyHpfxyVZjKayHSuVe4ENNUj_ck7SE8LO0,8568
11
11
  terminusgps/authorizenet/profiles/payments.py,sha256=ohhZrs9MB7GkCi7jQvPVvELNKnR9BwzMd607jJmT4n4,11316
12
- terminusgps/authorizenet/profiles/subscriptions.py,sha256=zqXc-Cge8-a7mGWsDf7n2wH_JolmSHnbPYWKGwFCA_k,13120
12
+ terminusgps/authorizenet/profiles/subscriptions.py,sha256=zCHkhI1z2gdsbNKnbinYD870NVjTuuiY62QM8z1TS-g,12545
13
13
  terminusgps/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- terminusgps/aws/connect.py,sha256=FVngMLBq5sFXdQaueHHzUDt79e-pOvyhnP0CyqwNXhM,730
14
+ terminusgps/aws/connect.py,sha256=TWf2bVz6LqSNQfVD7FKRn3K71VuLOwBj05Gs-9BsROg,693
15
15
  terminusgps/aws/secrets.py,sha256=MxQEmmBLpMUQ2tYAsHdCYf-7RZ84LiogdKcTsACX5dw,361
16
16
  terminusgps/twilio/__init__.py,sha256=dYo41F2jft_eHDWSUtSpKGSRG1bewq_qClqilUJZkYM,33
17
17
  terminusgps/twilio/caller.py,sha256=TiQ4f0TDDC35he1M1iSsBM2vutdGriwtV4pc17T--6I,3552
@@ -30,7 +30,7 @@ terminusgps/wialon/items/route.py,sha256=8SzlqNmpYVdt-ZAY--B_KHoDIHgN0Zb7KBsBWAz
30
30
  terminusgps/wialon/items/unit.py,sha256=i7sQiRu3N0XxyTHVN2RnmjYy9X48KdnZLSB18ic37w8,9363
31
31
  terminusgps/wialon/items/unit_group.py,sha256=YsYh34l2DjSKcv5SIZkEVi5FSjveGB1gxU2fwdLyvl4,4101
32
32
  terminusgps/wialon/items/user.py,sha256=PFYBie04F16YE2B5364PLxkmlTmQr4sZXpItvRBxsDc,7143
33
- python_terminusgps-28.4.2.dist-info/METADATA,sha256=KGNR1WxQ88b_AFBSqFUJRMkUT5bwMbLc2dZIANPS9mc,946
34
- python_terminusgps-28.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
- python_terminusgps-28.4.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
- python_terminusgps-28.4.2.dist-info/RECORD,,
33
+ python_terminusgps-28.4.4.dist-info/METADATA,sha256=Ot3whXDvcABhtsljgZZ5_PjTXGYdjriy02K9xlFgPZQ,946
34
+ python_terminusgps-28.4.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
+ python_terminusgps-28.4.4.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
+ python_terminusgps-28.4.4.dist-info/RECORD,,
@@ -93,13 +93,9 @@ class SubscriptionProfile(ControllerExecutionMixin):
93
93
  self,
94
94
  name: str,
95
95
  amount: decimal.Decimal,
96
- schedule: apicontractsv1.paymentScheduleType,
97
96
  profile_id: int | str,
98
97
  payment_id: int | str,
99
98
  address_id: int | str,
100
- trial_amount: decimal.Decimal = decimal.Decimal(
101
- 0.00, context=decimal.Context(prec=2, rounding=decimal.ROUND_HALF_UP)
102
- ),
103
99
  ) -> None:
104
100
  """
105
101
  Updates a subscription in Authorizenet.
@@ -108,16 +104,12 @@ class SubscriptionProfile(ControllerExecutionMixin):
108
104
  :type name: :py:obj:`str`
109
105
  :param amount: An amount of money paid per occurrence of the subscription.
110
106
  :type amount: :py:obj:`~decimal.Decimal`
111
- :param schedule: A payment schedule for the subscription.
112
- :type amount: :py:obj:`~authorizenet.apicontractsv1.paymentScheduleType`
113
107
  :param profile_id: An Authorizenet customer profile id.
114
108
  :type profile_id: :py:obj:`int` | :py:obj:`str`
115
109
  :param payment_id: An Authorizenet customer payment profile id.
116
110
  :type payment_id: :py:obj:`int` | :py:obj:`str`
117
111
  :param address_id: An Authorizenet customer address profile id.
118
112
  :type address_id: :py:obj:`int` | :py:obj:`str`
119
- :param trial_amount: Trial amount for the subscription. Default is ``0.00``.
120
- :type trial_amount: :py:obj:`~decimal.Decimal`
121
113
  :raises ControllerExecutionError: If something goes wrong during an Authorizenet API call.
122
114
  :raises ValueError: If ``profile_id`` wasn't a digit.
123
115
  :raises ValueError: If ``payment_id`` wasn't a digit.
@@ -137,9 +129,7 @@ class SubscriptionProfile(ControllerExecutionMixin):
137
129
  subscription: apicontractsv1.ARBSubscriptionType = (
138
130
  apicontractsv1.ARBSubscriptionType(
139
131
  name=name,
140
- paymentSchedule=schedule,
141
132
  amount=amount,
142
- trialAmount=trial_amount,
143
133
  profile=apicontractsv1.customerProfileIdType(
144
134
  customerProfileId=str(profile_id),
145
135
  customerPaymentProfileId=str(payment_id),
@@ -8,14 +8,12 @@ def get_aws_connect_jwt(widget_id: str, expires_in: int = 500) -> str:
8
8
  if expires_in > 600:
9
9
  raise ValueError(f"'expires_in' must be less than 600, got '{expires_in}'.")
10
10
 
11
- payload = (
12
- {
13
- "sub": widget_id,
14
- "iat": datetime.datetime.utcnow(),
15
- "exp": datetime.datetime.utcnow() - datetime.timedelta(seconds=expires_in),
16
- "segmentAttributes": {"connect:Subtype": {"ValueString": "connect:Guide"}},
17
- },
18
- )
11
+ payload = {
12
+ "sub": widget_id,
13
+ "iat": datetime.datetime.utcnow(),
14
+ "exp": datetime.datetime.utcnow() - datetime.timedelta(seconds=expires_in),
15
+ "segmentAttributes": {"connect:Subtype": {"ValueString": "connect:Guide"}},
16
+ }
19
17
  header = {"typ": "JWT", "alg": "HS256"}
20
18
  encoded_token = jwt.encode(
21
19
  payload, settings.CONNECT_SECRET, algorithm=header["alg"], headers=header