Skip to content

Commit a141e18

Browse files
Merge pull request #12 from sendinblue/feature_updated_swagger_sync
email-event-report-api: from and tag removed from mandatory fields fr…
2 parents 2c74a14 + 40fce86 commit a141e18

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

docs/GetEmailEventReportEvents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Name | Type | Description | Notes
99
**message_id** | **str** | Message ID which generated the event |
1010
**event** | **str** | Event which occurred |
1111
**reason** | **str** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional]
12-
**tag** | **str** | Tag of the email which generated the event |
12+
**tag** | **str** | Tag of the email which generated the event | [optional]
1313
**ip** | **str** | IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) | [optional]
1414
**link** | **str** | The link which is sent to the user (only available if the event is requests or opened or clicks) | [optional]
15-
**_from** | **str** | Sender email from which the emails are sent |
15+
**_from** | **str** | Sender email from which the emails are sent | [optional]
1616

1717
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1818

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from setuptools import setup, find_packages
1616

1717
NAME = "sib-api-v3-sdk"
18-
VERSION = "2.0.0"
18+
VERSION = "2.0.1"
1919
# To install the library, run the following
2020
#
2121
# python setup.py install

sib_api_v3_sdk/models/get_email_event_report_events.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@ def __init__(self, email=None, date=None, subject=None, message_id=None, event=N
7979
self.event = event
8080
if reason is not None:
8181
self.reason = reason
82-
self.tag = tag
82+
if tag is not None:
83+
self.tag = tag
8384
if ip is not None:
8485
self.ip = ip
8586
if link is not None:
8687
self.link = link
87-
self._from = _from
88+
if _from is not None:
89+
self._from = _from
8890

8991
@property
9092
def email(self):
@@ -258,8 +260,6 @@ def tag(self, tag):
258260
:param tag: The tag of this GetEmailEventReportEvents. # noqa: E501
259261
:type: str
260262
"""
261-
if tag is None:
262-
raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501
263263

264264
self._tag = tag
265265

@@ -329,8 +329,6 @@ def _from(self, _from):
329329
:param _from: The _from of this GetEmailEventReportEvents. # noqa: E501
330330
:type: str
331331
"""
332-
if _from is None:
333-
raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501
334332

335333
self.__from = _from
336334

0 commit comments

Comments
 (0)