Skip to content

Commit a77450f

Browse files
committed
Travis update: Apr 2019 (Build 115)
[skip ci]
1 parent 0ad5917 commit a77450f

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
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** | | [optional]
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** | | [optional]
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** | | [optional]
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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class SMS(object):
4949
'channel': 'channel'
5050
}
5151

52-
def __init__(self, text='Hello world!', sender=None, validity=360, autoconvert=None, udh=None, channel='sms'): # noqa: E501
52+
def __init__(self, text='Hello world!', sender=None, validity=360, autoconvert=None, udh=None, channel=None): # noqa: E501
5353
"""SMS - a model defined in OpenAPI""" # noqa: E501
5454

5555
self._text = None
@@ -213,6 +213,12 @@ def channel(self, channel):
213213
:param channel: The channel of this SMS. # noqa: E501
214214
:type: str
215215
"""
216+
allowed_values = ["sms"] # noqa: E501
217+
if channel not in allowed_values:
218+
raise ValueError(
219+
"Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501
220+
.format(channel, allowed_values)
221+
)
216222

217223
self._channel = channel
218224

messente_api/models/viber.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Viber(object):
5151
'channel': 'channel'
5252
}
5353

54-
def __init__(self, sender=None, validity=360, text=None, image_url=None, button_url=None, button_text=None, channel='viber'): # noqa: E501
54+
def __init__(self, sender=None, validity=360, text=None, image_url=None, button_url=None, button_text=None, channel=None): # noqa: E501
5555
"""Viber - a model defined in OpenAPI""" # noqa: E501
5656

5757
self._sender = None
@@ -234,6 +234,12 @@ def channel(self, channel):
234234
:param channel: The channel of this Viber. # noqa: E501
235235
:type: str
236236
"""
237+
allowed_values = ["viber"] # noqa: E501
238+
if channel not in allowed_values:
239+
raise ValueError(
240+
"Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501
241+
.format(channel, allowed_values)
242+
)
237243

238244
self._channel = channel
239245

messente_api/models/whats_app.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class WhatsApp(object):
5151
'channel': 'channel'
5252
}
5353

54-
def __init__(self, sender=None, validity=360, text=None, image=None, document=None, audio=None, channel='whatsapp'): # noqa: E501
54+
def __init__(self, sender=None, validity=360, text=None, image=None, document=None, audio=None, channel=None): # noqa: E501
5555
"""WhatsApp - a model defined in OpenAPI""" # noqa: E501
5656

5757
self._sender = None
@@ -226,6 +226,12 @@ def channel(self, channel):
226226
:param channel: The channel of this WhatsApp. # noqa: E501
227227
:type: str
228228
"""
229+
allowed_values = ["whatsapp"] # noqa: E501
230+
if channel not in allowed_values:
231+
raise ValueError(
232+
"Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501
233+
.format(channel, allowed_values)
234+
)
229235

230236
self._channel = channel
231237

0 commit comments

Comments
 (0)