Skip to content

Commit c0d66fb

Browse files
committed
Travis update: Apr 2019 (Build 117)
[skip ci]
1 parent a1dbc34 commit c0d66fb

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

docs/SMS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] [default to 360]
99
**autoconvert** | **str** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace)(default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional]
1010
**udh** | **str** | hex-encoded string containing SMS UDH | [optional]
11-
**channel** | **str** | | [optional] [default to 'sms']
11+
**channel** | **str** | | [default to 'sms']
1212

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

docs/Viber.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**image_url** | **str** | URL for the embedded image. Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional]
1010
**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
1111
**button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
12-
**channel** | **str** | | [optional] [default to 'viber']
12+
**channel** | **str** | | [default to 'viber']
1313

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

docs/WhatsApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional]
1010
**document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional]
1111
**audio** | [**WhatsAppAudio**](WhatsAppAudio.md) | | [optional]
12-
**channel** | **str** | | [optional] [default to 'whatsapp']
12+
**channel** | **str** | | [default to 'whatsapp']
1313

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

messente_api/models/sms.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ def __init__(self, text='Hello world!', sender=None, validity=360, autoconvert=N
6969
self.autoconvert = autoconvert
7070
if udh is not None:
7171
self.udh = udh
72-
if channel is not None:
73-
self.channel = channel
72+
self.channel = channel
7473

7574
@property
7675
def text(self):
@@ -213,6 +212,8 @@ def channel(self, channel):
213212
:param channel: The channel of this SMS. # noqa: E501
214213
:type: str
215214
"""
215+
if channel is None:
216+
raise ValueError("Invalid value for `channel`, must not be `None`") # noqa: E501
216217
allowed_values = ["sms"] # noqa: E501
217218
if channel not in allowed_values:
218219
raise ValueError(

messente_api/models/viber.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def __init__(self, sender=None, validity=360, text=None, image_url=None, button_
7575
self.button_url = button_url
7676
if button_text is not None:
7777
self.button_text = button_text
78-
if channel is not None:
79-
self.channel = channel
78+
self.channel = channel
8079

8180
@property
8281
def sender(self):
@@ -234,6 +233,8 @@ def channel(self, channel):
234233
:param channel: The channel of this Viber. # noqa: E501
235234
:type: str
236235
"""
236+
if channel is None:
237+
raise ValueError("Invalid value for `channel`, must not be `None`") # noqa: E501
237238
allowed_values = ["viber"] # noqa: E501
238239
if channel not in allowed_values:
239240
raise ValueError(

messente_api/models/whats_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def __init__(self, sender=None, validity=360, text=None, image=None, document=No
7575
self.document = document
7676
if audio is not None:
7777
self.audio = audio
78-
if channel is not None:
79-
self.channel = channel
78+
self.channel = channel
8079

8180
@property
8281
def sender(self):
@@ -226,6 +225,8 @@ def channel(self, channel):
226225
:param channel: The channel of this WhatsApp. # noqa: E501
227226
:type: str
228227
"""
228+
if channel is None:
229+
raise ValueError("Invalid value for `channel`, must not be `None`") # noqa: E501
229230
allowed_values = ["whatsapp"] # noqa: E501
230231
if channel not in allowed_values:
231232
raise ValueError(

0 commit comments

Comments
 (0)