python-terminusgps 36.4.4__py3-none-any.whl → 36.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 36.4.4
3
+ Version: 36.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
@@ -9,7 +9,7 @@ terminusgps/authorizenet/profiles/addresses.py,sha256=5GudJStBa4P0Hd7G_hRFH2C-Wp
9
9
  terminusgps/authorizenet/profiles/base.py,sha256=Pu1NGrvC5Ox2W1oZuVcPqUw3aUoSK191Evexw1U6_3k,3940
10
10
  terminusgps/authorizenet/profiles/customers.py,sha256=mKPHSFoDqJqHL1CvTximNVRb1myRwQ9NvMkA2-iswOg,11701
11
11
  terminusgps/authorizenet/profiles/payments.py,sha256=nhudGuJ6RzmK0MrhDVuYL2BxvyzKNpliBIfIpFU5Y-4,11038
12
- terminusgps/authorizenet/profiles/subscriptions.py,sha256=t2oWcmChx0-YHer958Mi3IQ4whJeOinVq_SYc4cTFew,8539
12
+ terminusgps/authorizenet/profiles/subscriptions.py,sha256=g3htRNqCUFvefEYAueQb8Vkd7oQ-vJySV_zenG05tV8,9239
13
13
  terminusgps/authorizenet/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  terminusgps/authorizenet/tests/test_auth.py,sha256=sdByYrcv8RKjcJckOHbyHH1z_M4qrATFI3qj_XDQXbk,1624
15
15
  terminusgps/authorizenet/tests/test_profiles.py,sha256=tvLBY0iSAC33RlWiBP_NSnPskUQBjfrf0YHMpR-m22k,7566
@@ -52,7 +52,7 @@ terminusgps/wialon/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
52
52
  terminusgps/wialon/tests/test_items.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  terminusgps/wialon/tests/test_session.py,sha256=9mBlYchMo9NeqRIZsmxYzrM1zBHorqu4ooxqSNppLpI,1336
54
54
  terminusgps/wialon/tests/test_utils.py,sha256=SK4PxJQGECFnzx_EQeRAQfsQ5_3FLaVcis2W9u_ibuI,1730
55
- python_terminusgps-36.4.4.dist-info/METADATA,sha256=3VQh9CB1YlDZ-r8I5FiHqTMLO4okxY9Yio3pe1LIb1g,1616
56
- python_terminusgps-36.4.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
57
- python_terminusgps-36.4.4.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
- python_terminusgps-36.4.4.dist-info/RECORD,,
55
+ python_terminusgps-36.5.0.dist-info/METADATA,sha256=0JgptuZbVU-CxyarHYq3N5eY36IQ3P4wNQyvPvCnV8E,1616
56
+ python_terminusgps-36.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
57
+ python_terminusgps-36.5.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
+ python_terminusgps-36.5.0.dist-info/RECORD,,
@@ -61,6 +61,30 @@ class SubscriptionProfile(AuthorizenetSubProfileBase):
61
61
  ).subscription
62
62
  return [t.arbTransaction for t in sub.arbTransactions]
63
63
 
64
+ @property
65
+ def address_id(self) -> int | None:
66
+ """
67
+ Returns the address id for the subscription profile.
68
+
69
+ :type: :py:obj:`int` | :py:obj:`None`
70
+
71
+ """
72
+ if self.id:
73
+ sub = self._authorizenet_get_subscription().subscription
74
+ return int(sub.profile.shippingProfile.customerAddressId)
75
+
76
+ @property
77
+ def payment_id(self) -> int | None:
78
+ """
79
+ Returns the payment id for the subscription profile.
80
+
81
+ :type: :py:obj:`int` | :py:obj:`None`
82
+
83
+ """
84
+ if self.id:
85
+ sub = self._authorizenet_get_subscription().subscription
86
+ return int(sub.profile.paymentProfile.customerPaymentProfileId)
87
+
64
88
  def create(self, subscription: apicontractsv1.ARBSubscriptionType) -> int:
65
89
  """
66
90
  Creates a subscription in Authorizenet.