Skip to content

Commit e0dcd00

Browse files
authored
Merge pull request #56 from sendinblue/feature_AP-1036
AP-1036: Making IP non mandatory for get_contact_details
2 parents 268a9bd + d312540 commit e0dcd00

5 files changed

+7
-9
lines changed

docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**event_time** | **datetime** | UTC date-time of the event |
7-
**ip** | **str** | IP from which the user has been unsubscribed |
7+
**ip** | **str** | IP from which the user has been unsubscribed | [optional]
88

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

docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**campaign_id** | **int** | ID of the campaign which generated the event |
77
**event_time** | **datetime** | UTC date-time of the event |
8-
**ip** | **str** | IP from which the user has unsubscribed |
8+
**ip** | **str** | IP from which the user has unsubscribed | [optional]
99

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from setuptools import setup, find_packages # noqa: H301
1515

1616
NAME = "sib-api-v3-sdk"
17-
VERSION = "6.3.0"
17+
VERSION = "6.3.1"
1818
# To install the library, run the following
1919
#
2020
# python setup.py install

sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def __init__(self, event_time=None, ip=None): # noqa: E501
4848
self.discriminator = None
4949

5050
self.event_time = event_time
51-
self.ip = ip
51+
if ip is not None:
52+
self.ip = ip
5253

5354
@property
5455
def event_time(self):
@@ -95,8 +96,6 @@ def ip(self, ip):
9596
:param ip: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501
9697
:type: str
9798
"""
98-
if ip is None:
99-
raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501
10099

101100
self._ip = ip
102101

sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def __init__(self, campaign_id=None, event_time=None, ip=None): # noqa: E501
5252

5353
self.campaign_id = campaign_id
5454
self.event_time = event_time
55-
self.ip = ip
55+
if ip is not None:
56+
self.ip = ip
5657

5758
@property
5859
def campaign_id(self):
@@ -124,8 +125,6 @@ def ip(self, ip):
124125
:param ip: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501
125126
:type: str
126127
"""
127-
if ip is None:
128-
raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501
129128

130129
self._ip = ip
131130

0 commit comments

Comments
 (0)