pingram-python 1.0.35__py3-none-any.whl → 1.0.36__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.
- pingram/__init__.py +1 -1
- pingram/api_client.py +1 -1
- pingram/configuration.py +1 -1
- pingram/models/send_email_request.py +6 -2
- pingram/models/sender_post_body_options_email.py +6 -2
- {pingram_python-1.0.35.dist-info → pingram_python-1.0.36.dist-info}/METADATA +1 -1
- {pingram_python-1.0.35.dist-info → pingram_python-1.0.36.dist-info}/RECORD +10 -10
- {pingram_python-1.0.35.dist-info → pingram_python-1.0.36.dist-info}/WHEEL +0 -0
- {pingram_python-1.0.35.dist-info → pingram_python-1.0.36.dist-info}/licenses/LICENSE +0 -0
- {pingram_python-1.0.35.dist-info → pingram_python-1.0.36.dist-info}/top_level.txt +0 -0
pingram/__init__.py
CHANGED
pingram/api_client.py
CHANGED
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'pingram-python/1.0.
|
|
94
|
+
self.user_agent = 'pingram-python/1.0.36'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
async def __aenter__(self):
|
pingram/configuration.py
CHANGED
|
@@ -551,7 +551,7 @@ conf = pingram.Configuration(
|
|
|
551
551
|
"OS: {env}\n"\
|
|
552
552
|
"Python Version: {pyversion}\n"\
|
|
553
553
|
"Version of the API: 1.0.0\n"\
|
|
554
|
-
"SDK Package Version: 1.0.
|
|
554
|
+
"SDK Package Version: 1.0.36".\
|
|
555
555
|
format(env=sys.platform, pyversion=sys.version)
|
|
556
556
|
|
|
557
557
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from pingram.models.send_email_request_attachments_inner import SendEmailRequestAttachmentsInner
|
|
23
23
|
from typing import Optional, Set
|
|
@@ -37,9 +37,11 @@ class SendEmailRequest(BaseModel):
|
|
|
37
37
|
reply_to_addresses: Optional[List[StrictStr]] = Field(default=None, description="The reply-to addresses of the email.", alias="replyToAddresses")
|
|
38
38
|
cc_addresses: Optional[List[StrictStr]] = Field(default=None, description="The CC addresses of the email.", alias="ccAddresses")
|
|
39
39
|
bcc_addresses: Optional[List[StrictStr]] = Field(default=None, description="The BCC addresses of the email.", alias="bccAddresses")
|
|
40
|
+
open_tracking: Optional[StrictBool] = Field(default=None, description="When false, this send does not record opens and no open pixel is added. Delivery, bounce, and complaint events are unchanged. Defaults to true.", alias="openTracking")
|
|
41
|
+
click_tracking: Optional[StrictBool] = Field(default=None, description="When false, links are left as written and clicks are not recorded. Delivery, bounce, and complaint events are unchanged. Defaults to true.", alias="clickTracking")
|
|
40
42
|
attachments: Optional[List[SendEmailRequestAttachmentsInner]] = Field(default=None, description="URL-based file attachments. Up to 20 MB per file.")
|
|
41
43
|
schedule: Optional[StrictStr] = Field(default=None, description="The ISO 8601 datetime to schedule the email.")
|
|
42
|
-
__properties: ClassVar[List[str]] = ["type", "to", "subject", "html", "fromName", "fromAddress", "previewText", "replyToAddresses", "ccAddresses", "bccAddresses", "attachments", "schedule"]
|
|
44
|
+
__properties: ClassVar[List[str]] = ["type", "to", "subject", "html", "fromName", "fromAddress", "previewText", "replyToAddresses", "ccAddresses", "bccAddresses", "openTracking", "clickTracking", "attachments", "schedule"]
|
|
43
45
|
|
|
44
46
|
model_config = ConfigDict(
|
|
45
47
|
populate_by_name=True,
|
|
@@ -109,6 +111,8 @@ class SendEmailRequest(BaseModel):
|
|
|
109
111
|
"replyToAddresses": obj.get("replyToAddresses"),
|
|
110
112
|
"ccAddresses": obj.get("ccAddresses"),
|
|
111
113
|
"bccAddresses": obj.get("bccAddresses"),
|
|
114
|
+
"openTracking": obj.get("openTracking"),
|
|
115
|
+
"clickTracking": obj.get("clickTracking"),
|
|
112
116
|
"attachments": [SendEmailRequestAttachmentsInner.from_dict(_item) for _item in obj["attachments"]] if obj.get("attachments") is not None else None,
|
|
113
117
|
"schedule": obj.get("schedule")
|
|
114
118
|
})
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from pingram.models.sender_post_body_options_email_attachments_inner import SenderPostBodyOptionsEmailAttachmentsInner
|
|
23
23
|
from typing import Optional, Set
|
|
@@ -32,8 +32,10 @@ class SenderPostBodyOptionsEmail(BaseModel):
|
|
|
32
32
|
bcc_addresses: Optional[List[StrictStr]] = Field(default=None, description="BCC recipients.", alias="bccAddresses")
|
|
33
33
|
from_address: Optional[StrictStr] = Field(default=None, description="Override sender email address.", alias="fromAddress")
|
|
34
34
|
from_name: Optional[StrictStr] = Field(default=None, description="Override sender display name.", alias="fromName")
|
|
35
|
+
open_tracking: Optional[StrictBool] = Field(default=None, description="When false, this send does not record opens and no open pixel is added. Delivery, bounce, and complaint events are unchanged. Defaults to true.", alias="openTracking")
|
|
36
|
+
click_tracking: Optional[StrictBool] = Field(default=None, description="When false, links are left as written and clicks are not recorded. Delivery, bounce, and complaint events are unchanged. Defaults to true.", alias="clickTracking")
|
|
35
37
|
attachments: Optional[List[SenderPostBodyOptionsEmailAttachmentsInner]] = Field(default=None, description="File attachments (by URL or inline base64 content). Inline `content`: ~4 MB raw per file (413 if exceeded). URL `url`: up to 20 MB per file.")
|
|
36
|
-
__properties: ClassVar[List[str]] = ["replyToAddresses", "ccAddresses", "bccAddresses", "fromAddress", "fromName", "attachments"]
|
|
38
|
+
__properties: ClassVar[List[str]] = ["replyToAddresses", "ccAddresses", "bccAddresses", "fromAddress", "fromName", "openTracking", "clickTracking", "attachments"]
|
|
37
39
|
|
|
38
40
|
model_config = ConfigDict(
|
|
39
41
|
populate_by_name=True,
|
|
@@ -98,6 +100,8 @@ class SenderPostBodyOptionsEmail(BaseModel):
|
|
|
98
100
|
"bccAddresses": obj.get("bccAddresses"),
|
|
99
101
|
"fromAddress": obj.get("fromAddress"),
|
|
100
102
|
"fromName": obj.get("fromName"),
|
|
103
|
+
"openTracking": obj.get("openTracking"),
|
|
104
|
+
"clickTracking": obj.get("clickTracking"),
|
|
101
105
|
"attachments": [SenderPostBodyOptionsEmailAttachmentsInner.from_dict(_item) for _item in obj["attachments"]] if obj.get("attachments") is not None else None
|
|
102
106
|
})
|
|
103
107
|
return _obj
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
pingram/__init__.py,sha256=
|
|
2
|
-
pingram/api_client.py,sha256=
|
|
1
|
+
pingram/__init__.py,sha256=_ExMoboWL1bM8ZH_tt1PSswwquDE2qJC8sF7zPjOczc,49665
|
|
2
|
+
pingram/api_client.py,sha256=3aU5QlLMo3l5zX8VJjarri9JEHoxa9z2kPz5mkFn6o8,27792
|
|
3
3
|
pingram/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
4
|
pingram/client_wrapper.py,sha256=sreT63NgmWEWLUzdYQWZTN0PneHhYITsfPTSjthCjqw,15358
|
|
5
|
-
pingram/configuration.py,sha256=
|
|
5
|
+
pingram/configuration.py,sha256=nA6-DHXkoL0BckvAjlKT0HyNQxEezPKm5dG5yHulYno,19466
|
|
6
6
|
pingram/exceptions.py,sha256=0l6B9dlFRwmPx-sfytj3wC9rdGgVPJY3AQ39qHx3GS4,8483
|
|
7
7
|
pingram/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
pingram/rest.py,sha256=soB0_p6OMFlXrz5pDmdf2nIZchqPua9hgtuj8A5Yea4,6426
|
|
@@ -257,7 +257,7 @@ pingram/models/send_email_api_response.py,sha256=6pHiN_jf2waE-so7-fOJq9i_8i-_O9C
|
|
|
257
257
|
pingram/models/send_email_api_response_any_of.py,sha256=sRNf349F_JcjqafYBhSa36UJWamHFu46keazSju8lrA,2620
|
|
258
258
|
pingram/models/send_email_api_response_any_of1.py,sha256=YjRBWzMDpGjt2ksE8_lASCyS30NIhsrmDamARzg-vWI,2960
|
|
259
259
|
pingram/models/send_email_api_response_any_of1_error.py,sha256=yOHBKPKYZPYyavxFikrCA2pshWkBnhD7ilyva4fjRPI,2839
|
|
260
|
-
pingram/models/send_email_request.py,sha256=
|
|
260
|
+
pingram/models/send_email_request.py,sha256=gpqDZw3WrTcOUqQAE8LHeRS1UmIcohfAWx2XfHg4IAY,5696
|
|
261
261
|
pingram/models/send_email_request_attachments_inner.py,sha256=_GeyktqWqhSFLI_VLn51DQ77sr5egKs4Iif0TiUwKjw,2568
|
|
262
262
|
pingram/models/send_sms_request.py,sha256=WsTOWWpNtFJGKe-DNoXs3N82P9MgdMUQsFED-6MXoEI,3466
|
|
263
263
|
pingram/models/send_sms_response.py,sha256=EpVQRFRGr48dwxdZvCvBbPXNm6gH4mtBWfug7kpPoVc,5094
|
|
@@ -271,7 +271,7 @@ pingram/models/sender_post_body_inapp.py,sha256=Lw7xLfTULlOyLuUl42LM679hUJVqqX9M
|
|
|
271
271
|
pingram/models/sender_post_body_mobile_push.py,sha256=rXWqwjM8sNDAx3UzQ2rMQFhhJ7z2pPcuVV_EQsIE0OY,2644
|
|
272
272
|
pingram/models/sender_post_body_options.py,sha256=JZBpoWnKHvxS0g3lp4ok0VfCvSolzue2TuxL5oRBLTE,4036
|
|
273
273
|
pingram/models/sender_post_body_options_apn.py,sha256=1o6_CJOEaC5voVyG1qxp3GiE8U0UFKHK3bn5oPkHo3A,3785
|
|
274
|
-
pingram/models/sender_post_body_options_email.py,sha256=
|
|
274
|
+
pingram/models/sender_post_body_options_email.py,sha256=eNPPMVNzpA-qhpv9lnythB6ih2EbuQKj0_orIhlwgqA,4939
|
|
275
275
|
pingram/models/sender_post_body_options_email_attachments_inner.py,sha256=nGXzs1MXwGlnuGAgrHxuAEKDNjvsJt39Nv-RW9tnckg,5794
|
|
276
276
|
pingram/models/sender_post_body_options_email_attachments_inner_any_of.py,sha256=AOGDqGonRd3zf74nSrQuui4zh0jbHjEb78ifJ78ipkM,2808
|
|
277
277
|
pingram/models/sender_post_body_options_fcm.py,sha256=g8cAr1pp2SvvWFkbbWHSQxIAUjiAc68fYeMune91B-Q,2870
|
|
@@ -335,8 +335,8 @@ pingram/models/webhook_endpoints_response.py,sha256=ukoMTHiFVi1h2lUsZKCzxhOcwZqZ
|
|
|
335
335
|
pingram/models/webhook_endpoints_response_endpoints_inner.py,sha256=xc24goqXnJrTLHKaUk9AIcRmebq2fMotdWccdVNgJ2M,4196
|
|
336
336
|
pingram/models/webhook_event.py,sha256=T_f1G9eLhOjMlCDwHru3J6KDCKBxgiZBmata_pvBlU8,4879
|
|
337
337
|
pingram/models/webhook_response.py,sha256=rwCh3OTCE3TK6tVEKOKVlq9w0b1fZ-fKKEoe9Tz0tIc,3233
|
|
338
|
-
pingram_python-1.0.
|
|
339
|
-
pingram_python-1.0.
|
|
340
|
-
pingram_python-1.0.
|
|
341
|
-
pingram_python-1.0.
|
|
342
|
-
pingram_python-1.0.
|
|
338
|
+
pingram_python-1.0.36.dist-info/licenses/LICENSE,sha256=jFcP99OXuZ-3f_86j4Q4OjmvvHNm7SG94ytcAhqvldk,1059
|
|
339
|
+
pingram_python-1.0.36.dist-info/METADATA,sha256=Ou53eKmMRivl0iJuRjDHB6vA5PwLsM2oDtZ2AOiReRQ,2268
|
|
340
|
+
pingram_python-1.0.36.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
341
|
+
pingram_python-1.0.36.dist-info/top_level.txt,sha256=6BmMatn4_wswGo1u11HkRU892yP2gG5dddsmmRhSjD8,8
|
|
342
|
+
pingram_python-1.0.36.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|