Skip to content

Commit 8a78557

Browse files
committed
Travis update: Jan 2023 (Build 710)
[skip ci]
1 parent 40be664 commit 8a78557

File tree

6 files changed

+96
-9
lines changed

6 files changed

+96
-9
lines changed

docs/SMS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**text** | **str** | Text content of the SMS |
88
**sender** | **str** | Phone number or alphanumeric sender name | [optional]
9-
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
9+
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. | [optional]
10+
**ttl** | **int** | After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. | [optional]
1011
**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]
1112
**udh** | **str** | hex-encoded string containing SMS UDH | [optional]
1213
**channel** | **str** | The channel used to deliver the message | [optional] [default to 'sms']

docs/Viber.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Viber message content
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**sender** | **str** | Phone number or alphanumeric sender name | [optional]
8-
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
8+
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. | [optional]
9+
**ttl** | **int** | After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. | [optional]
910
**text** | **str** | Plaintext content for Viber | [optional]
1011
**image_url** | **str** | URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional]
1112
**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]

docs/WhatsApp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**sender** | **str** | Phone number or alphanumeric sender name | [optional]
88
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
9+
**ttl** | **int** | After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. | [optional]
910
**text** | [**WhatsAppText**](WhatsAppText.md) | | [optional]
1011
**image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional]
1112
**document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional]

messente_api/models/sms.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class SMS(object):
3737
'text': 'str',
3838
'sender': 'str',
3939
'validity': 'int',
40+
'ttl': 'int',
4041
'autoconvert': 'str',
4142
'udh': 'str',
4243
'channel': 'str'
@@ -46,12 +47,13 @@ class SMS(object):
4647
'text': 'text',
4748
'sender': 'sender',
4849
'validity': 'validity',
50+
'ttl': 'ttl',
4951
'autoconvert': 'autoconvert',
5052
'udh': 'udh',
5153
'channel': 'channel'
5254
}
5355

54-
def __init__(self, text=None, sender=None, validity=None, autoconvert=None, udh=None, channel='sms', local_vars_configuration=None): # noqa: E501
56+
def __init__(self, text=None, sender=None, validity=None, ttl=None, autoconvert=None, udh=None, channel='sms', local_vars_configuration=None): # noqa: E501
5557
"""SMS - a model defined in OpenAPI""" # noqa: E501
5658
if local_vars_configuration is None:
5759
local_vars_configuration = Configuration()
@@ -60,6 +62,7 @@ def __init__(self, text=None, sender=None, validity=None, autoconvert=None, udh=
6062
self._text = None
6163
self._sender = None
6264
self._validity = None
65+
self._ttl = None
6366
self._autoconvert = None
6467
self._udh = None
6568
self._channel = None
@@ -70,6 +73,8 @@ def __init__(self, text=None, sender=None, validity=None, autoconvert=None, udh=
7073
self.sender = sender
7174
if validity is not None:
7275
self.validity = validity
76+
if ttl is not None:
77+
self.ttl = ttl
7378
if autoconvert is not None:
7479
self.autoconvert = autoconvert
7580
if udh is not None:
@@ -129,7 +134,7 @@ def sender(self, sender):
129134
def validity(self):
130135
"""Gets the validity of this SMS. # noqa: E501
131136
132-
After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501
137+
After how many minutes this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
133138
134139
:return: The validity of this SMS. # noqa: E501
135140
:rtype: int
@@ -140,14 +145,37 @@ def validity(self):
140145
def validity(self, validity):
141146
"""Sets the validity of this SMS.
142147
143-
After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501
148+
After how many minutes this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
144149
145150
:param validity: The validity of this SMS. # noqa: E501
146151
:type validity: int
147152
"""
148153

149154
self._validity = validity
150155

156+
@property
157+
def ttl(self):
158+
"""Gets the ttl of this SMS. # noqa: E501
159+
160+
After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
161+
162+
:return: The ttl of this SMS. # noqa: E501
163+
:rtype: int
164+
"""
165+
return self._ttl
166+
167+
@ttl.setter
168+
def ttl(self, ttl):
169+
"""Sets the ttl of this SMS.
170+
171+
After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
172+
173+
:param ttl: The ttl of this SMS. # noqa: E501
174+
:type ttl: int
175+
"""
176+
177+
self._ttl = ttl
178+
151179
@property
152180
def autoconvert(self):
153181
"""Gets the autoconvert of this SMS. # noqa: E501

messente_api/models/viber.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Viber(object):
3636
openapi_types = {
3737
'sender': 'str',
3838
'validity': 'int',
39+
'ttl': 'int',
3940
'text': 'str',
4041
'image_url': 'str',
4142
'button_url': 'str',
@@ -46,21 +47,23 @@ class Viber(object):
4647
attribute_map = {
4748
'sender': 'sender',
4849
'validity': 'validity',
50+
'ttl': 'ttl',
4951
'text': 'text',
5052
'image_url': 'image_url',
5153
'button_url': 'button_url',
5254
'button_text': 'button_text',
5355
'channel': 'channel'
5456
}
5557

56-
def __init__(self, sender=None, validity=None, text=None, image_url=None, button_url=None, button_text=None, channel='viber', local_vars_configuration=None): # noqa: E501
58+
def __init__(self, sender=None, validity=None, ttl=None, text=None, image_url=None, button_url=None, button_text=None, channel='viber', local_vars_configuration=None): # noqa: E501
5759
"""Viber - a model defined in OpenAPI""" # noqa: E501
5860
if local_vars_configuration is None:
5961
local_vars_configuration = Configuration()
6062
self.local_vars_configuration = local_vars_configuration
6163

6264
self._sender = None
6365
self._validity = None
66+
self._ttl = None
6467
self._text = None
6568
self._image_url = None
6669
self._button_url = None
@@ -72,6 +75,8 @@ def __init__(self, sender=None, validity=None, text=None, image_url=None, button
7275
self.sender = sender
7376
if validity is not None:
7477
self.validity = validity
78+
if ttl is not None:
79+
self.ttl = ttl
7580
if text is not None:
7681
self.text = text
7782
if image_url is not None:
@@ -110,7 +115,7 @@ def sender(self, sender):
110115
def validity(self):
111116
"""Gets the validity of this Viber. # noqa: E501
112117
113-
After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501
118+
After how many minutes this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
114119
115120
:return: The validity of this Viber. # noqa: E501
116121
:rtype: int
@@ -121,14 +126,37 @@ def validity(self):
121126
def validity(self, validity):
122127
"""Sets the validity of this Viber.
123128
124-
After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501
129+
After how many minutes this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
125130
126131
:param validity: The validity of this Viber. # noqa: E501
127132
:type validity: int
128133
"""
129134

130135
self._validity = validity
131136

137+
@property
138+
def ttl(self):
139+
"""Gets the ttl of this Viber. # noqa: E501
140+
141+
After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
142+
143+
:return: The ttl of this Viber. # noqa: E501
144+
:rtype: int
145+
"""
146+
return self._ttl
147+
148+
@ttl.setter
149+
def ttl(self, ttl):
150+
"""Sets the ttl of this Viber.
151+
152+
After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
153+
154+
:param ttl: The ttl of this Viber. # noqa: E501
155+
:type ttl: int
156+
"""
157+
158+
self._ttl = ttl
159+
132160
@property
133161
def text(self):
134162
"""Gets the text of this Viber. # noqa: E501

messente_api/models/whats_app.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class WhatsApp(object):
3636
openapi_types = {
3737
'sender': 'str',
3838
'validity': 'int',
39+
'ttl': 'int',
3940
'text': 'WhatsAppText',
4041
'image': 'WhatsAppImage',
4142
'document': 'WhatsAppDocument',
@@ -46,21 +47,23 @@ class WhatsApp(object):
4647
attribute_map = {
4748
'sender': 'sender',
4849
'validity': 'validity',
50+
'ttl': 'ttl',
4951
'text': 'text',
5052
'image': 'image',
5153
'document': 'document',
5254
'audio': 'audio',
5355
'channel': 'channel'
5456
}
5557

56-
def __init__(self, sender=None, validity=None, text=None, image=None, document=None, audio=None, channel='whatsapp', local_vars_configuration=None): # noqa: E501
58+
def __init__(self, sender=None, validity=None, ttl=None, text=None, image=None, document=None, audio=None, channel='whatsapp', local_vars_configuration=None): # noqa: E501
5759
"""WhatsApp - a model defined in OpenAPI""" # noqa: E501
5860
if local_vars_configuration is None:
5961
local_vars_configuration = Configuration()
6062
self.local_vars_configuration = local_vars_configuration
6163

6264
self._sender = None
6365
self._validity = None
66+
self._ttl = None
6467
self._text = None
6568
self._image = None
6669
self._document = None
@@ -72,6 +75,8 @@ def __init__(self, sender=None, validity=None, text=None, image=None, document=N
7275
self.sender = sender
7376
if validity is not None:
7477
self.validity = validity
78+
if ttl is not None:
79+
self.ttl = ttl
7580
if text is not None:
7681
self.text = text
7782
if image is not None:
@@ -129,6 +134,29 @@ def validity(self, validity):
129134

130135
self._validity = validity
131136

137+
@property
138+
def ttl(self):
139+
"""Gets the ttl of this WhatsApp. # noqa: E501
140+
141+
After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
142+
143+
:return: The ttl of this WhatsApp. # noqa: E501
144+
:rtype: int
145+
"""
146+
return self._ttl
147+
148+
@ttl.setter
149+
def ttl(self, ttl):
150+
"""Sets the ttl of this WhatsApp.
151+
152+
After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. # noqa: E501
153+
154+
:param ttl: The ttl of this WhatsApp. # noqa: E501
155+
:type ttl: int
156+
"""
157+
158+
self._ttl = ttl
159+
132160
@property
133161
def text(self):
134162
"""Gets the text of this WhatsApp. # noqa: E501

0 commit comments

Comments
 (0)