python-terminusgps 47.2.0__py3-none-any.whl → 47.3.1__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: 47.2.0
3
+ Version: 47.3.1
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
@@ -7,7 +7,7 @@ terminusgps/authorizenet/constants.py,sha256=nz3XX2jp9icsJhbSTKi9X-TQDr6jrs35opS
7
7
  terminusgps/authorizenet/service.py,sha256=jjYo1vLgTZSXVNeBY6uKSma94AgEj3Q5xOAT5wUB6ko,4260
8
8
  terminusgps/authorizenet/api/__init__.py,sha256=VXR4Yco1yz5R-R7vgaH2zTP9VFqzfvvGy_XJVjyb3i0,154
9
9
  terminusgps/authorizenet/api/address_profiles.py,sha256=VouUN6dIxlnuE3qEiacFqqDBi_VtwvSbsELqTqFZ0BE,4746
10
- terminusgps/authorizenet/api/customer_profiles.py,sha256=oya9KMRE10nKLjECTIdanfV_P8-gnNZLE0sYmRYVkgM,4505
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
13
  terminusgps/authorizenet/api/transactions.py,sha256=zwbUXGxI1wkTXSPG4L4O5Y2fdNgxOrNaak1jwcC9PeM,8531
@@ -26,7 +26,7 @@ terminusgps/wialon/items/route.py,sha256=9hmRBEFRJF3lKukv_y3blZxqxv75YgFCcRALrU6
26
26
  terminusgps/wialon/items/unit.py,sha256=B5iuGEghu89SL8KzYLUytYNRa8cogsVtf-bJ_RybPTA,5522
27
27
  terminusgps/wialon/items/unit_group.py,sha256=MIR0x5IlTjcnwx8Y9wXLNTql-wwVVj7NCe7dL2vOw4c,2131
28
28
  terminusgps/wialon/items/user.py,sha256=CRSICiJ-qzybEO_gXuKyzW5oa2RQeIp0SzX9ARcdME4,5151
29
- python_terminusgps-47.2.0.dist-info/METADATA,sha256=veoG4d_SMj3UvLulHNO5-j7nMVzmBJA5Gtd4Df_ia2w,938
30
- python_terminusgps-47.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- python_terminusgps-47.2.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
32
- python_terminusgps-47.2.0.dist-info/RECORD,,
29
+ python_terminusgps-47.3.1.dist-info/METADATA,sha256=QSdb6bOXj7fkX8N1C1CjwFLkkCgfub5J0tjahKVMCOw,938
30
+ python_terminusgps-47.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
+ python_terminusgps-47.3.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
32
+ python_terminusgps-47.3.1.dist-info/RECORD,,
@@ -4,10 +4,12 @@ from lxml.objectify import ObjectifiedElement
4
4
 
5
5
  __all__ = [
6
6
  "create_customer_profile",
7
+ "delete_customer_profile",
7
8
  "get_customer_profile",
9
+ "get_customer_profile_by_email",
10
+ "get_customer_profile_by_merchant_id",
8
11
  "get_customer_profile_ids",
9
12
  "update_customer_profile",
10
- "delete_customer_profile",
11
13
  ]
12
14
 
13
15
 
@@ -55,6 +57,46 @@ def get_customer_profile(
55
57
  return request, apicontrollers.getCustomerProfileController
56
58
 
57
59
 
60
+ def get_customer_profile_by_email(
61
+ email: str, include_issuer_info: bool = False
62
+ ) -> tuple[ObjectifiedElement, type[APIOperationBase]]:
63
+ """
64
+ `getCustomerProfileRequest <https://developer.authorize.net/api/reference/index.html#customer-profiles-get-customer-profile>`_.
65
+
66
+ :param email: Merchant designated customer profile email address.
67
+ :type email: str
68
+ :param include_issuer_info: Whether to include issuer info in the response. Default is :py:obj:`False`.
69
+ :type include_issuer_info: bool
70
+ :returns: A tuple containing an Authorizenet API request element and controller class.
71
+ :rtype: tuple[~lxml.objectify.ObjectifiedElement, type[~authorizenet.apicontrollersbase.APIOperationBase]]
72
+
73
+ """
74
+ request = apicontractsv1.getCustomerProfileRequest()
75
+ request.email = str(email)
76
+ request.includeIssuerInfo = str(include_issuer_info).lower()
77
+ return request, apicontrollers.getCustomerProfileController
78
+
79
+
80
+ def get_customer_profile_by_merchant_id(
81
+ merchant_id: str, include_issuer_info: bool = False
82
+ ) -> tuple[ObjectifiedElement, type[APIOperationBase]]:
83
+ """
84
+ `getCustomerProfileRequest <https://developer.authorize.net/api/reference/index.html#customer-profiles-get-customer-profile>`_.
85
+
86
+ :param merchant_id: Merchant designated customer profile id.
87
+ :type merchant_id: str
88
+ :param include_issuer_info: Whether to include issuer info in the response. Default is :py:obj:`False`.
89
+ :type include_issuer_info: bool
90
+ :returns: A tuple containing an Authorizenet API request element and controller class.
91
+ :rtype: tuple[~lxml.objectify.ObjectifiedElement, type[~authorizenet.apicontrollersbase.APIOperationBase]]
92
+
93
+ """
94
+ request = apicontractsv1.getCustomerProfileRequest()
95
+ request.merchantCustomerId = str(merchant_id)
96
+ request.includeIssuerInfo = str(include_issuer_info).lower()
97
+ return request, apicontrollers.getCustomerProfileController
98
+
99
+
58
100
  def get_customer_profile_ids() -> tuple[
59
101
  ObjectifiedElement, type[APIOperationBase]
60
102
  ]: