Skip to content

Commit a4c14fd

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

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
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** | | [default to 'sms']
11+
**channel** | **str** | | [optional] [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** | | [default to 'viber']
12+
**channel** | **str** | | [optional] [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** | | [default to 'whatsapp']
12+
**channel** | **str** | | [optional] [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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ 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-
self.channel = channel
72+
if channel is not None:
73+
self.channel = channel
7374

7475
@property
7576
def text(self):
@@ -212,8 +213,6 @@ def channel(self, channel):
212213
:param channel: The channel of this SMS. # noqa: E501
213214
:type: str
214215
"""
215-
if channel is None:
216-
raise ValueError("Invalid value for `channel`, must not be `None`") # noqa: E501
217216
allowed_values = ["sms"] # noqa: E501
218217
if channel not in allowed_values:
219218
raise ValueError(

messente_api/models/viber.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ 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-
self.channel = channel
78+
if channel is not None:
79+
self.channel = channel
7980

8081
@property
8182
def sender(self):
@@ -233,8 +234,6 @@ def channel(self, channel):
233234
:param channel: The channel of this Viber. # noqa: E501
234235
:type: str
235236
"""
236-
if channel is None:
237-
raise ValueError("Invalid value for `channel`, must not be `None`") # noqa: E501
238237
allowed_values = ["viber"] # noqa: E501
239238
if channel not in allowed_values:
240239
raise ValueError(

messente_api/models/whats_app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ 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-
self.channel = channel
78+
if channel is not None:
79+
self.channel = channel
7980

8081
@property
8182
def sender(self):
@@ -225,8 +226,6 @@ def channel(self, channel):
225226
:param channel: The channel of this WhatsApp. # noqa: E501
226227
:type: str
227228
"""
228-
if channel is None:
229-
raise ValueError("Invalid value for `channel`, must not be `None`") # noqa: E501
230229
allowed_values = ["whatsapp"] # noqa: E501
231230
if channel not in allowed_values:
232231
raise ValueError(

0 commit comments

Comments
 (0)