Skip to content

Commit 2aeb842

Browse files
Merge pull request #19 from sendinblue/feature_updated_swagger_sync
Swagger update: transactional sms length check update
2 parents 830ec6f + 4003e47 commit 2aeb842

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: python
33
python:
44
# - "2.7"
55
# - "3.2"
6-
- "3.3"
6+
# - "3.3"
77
- "3.4"
88
- "3.5"
99
#- "3.5-dev" # 3.5 development branch

docs/SendTransacSms.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
**sender** | **str** | Name of the sender. Only alphanumeric characters. No more than 11 characters |
77
**recipient** | **str** | Mobile number to send SMS with the country code |
8-
**content** | **str** | Content of the message. If more than 160 characters long, multiple text messages will be sent |
8+
**content** | **str** | Content of the message. If more than 160 characters long, will be sent as multiple text messages |
99
**type** | **str** | Type of the SMS | [optional] [default to 'transactional']
1010
**tag** | **str** | Tag of the message | [optional]
1111
**web_url** | **str** | Webhook to call for each event triggered by the message (delivered etc.) | [optional]

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 = "4.0.0"
18+
VERSION = "4.0.1"
1919
# To install the library, run the following
2020
#
2121
# python setup.py install

sib_api_v3_sdk/models/send_transac_sms.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def recipient(self, recipient):
125125
def content(self):
126126
"""Gets the content of this SendTransacSms. # noqa: E501
127127
128-
Content of the message. If more than 160 characters long, multiple text messages will be sent # noqa: E501
128+
Content of the message. If more than 160 characters long, will be sent as multiple text messages # noqa: E501
129129
130130
:return: The content of this SendTransacSms. # noqa: E501
131131
:rtype: str
@@ -136,15 +136,13 @@ def content(self):
136136
def content(self, content):
137137
"""Sets the content of this SendTransacSms.
138138
139-
Content of the message. If more than 160 characters long, multiple text messages will be sent # noqa: E501
139+
Content of the message. If more than 160 characters long, will be sent as multiple text messages # noqa: E501
140140
141141
:param content: The content of this SendTransacSms. # noqa: E501
142142
:type: str
143143
"""
144144
if content is None:
145145
raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
146-
if content is not None and len(content) > 160:
147-
raise ValueError("Invalid value for `content`, length must be less than or equal to `160`") # noqa: E501
148146

149147
self._content = content
150148

0 commit comments

Comments
 (0)