Skip to content

Commit 15d1dee

Browse files
committed
Travis update: Jun 2024 (Build 738)
[skip ci]
1 parent ba00749 commit 15d1dee

File tree

13 files changed

+252
-276
lines changed

13 files changed

+252
-276
lines changed

.openapi-generator/FILES

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ docs/Telegram.md
5656
docs/TextStore.md
5757
docs/Viber.md
5858
docs/WhatsApp.md
59-
docs/WhatsAppAudio.md
60-
docs/WhatsAppDocument.md
61-
docs/WhatsAppImage.md
62-
docs/WhatsAppText.md
59+
docs/WhatsAppComponent.md
60+
docs/WhatsAppLanguage.md
61+
docs/WhatsAppParameter.md
62+
docs/WhatsAppTemplate.md
6363
git_push.sh
6464
messente_api/__init__.py
6565
messente_api/api/__init__.py
@@ -120,10 +120,10 @@ messente_api/models/telegram.py
120120
messente_api/models/text_store.py
121121
messente_api/models/viber.py
122122
messente_api/models/whats_app.py
123-
messente_api/models/whats_app_audio.py
124-
messente_api/models/whats_app_document.py
125-
messente_api/models/whats_app_image.py
126-
messente_api/models/whats_app_text.py
123+
messente_api/models/whats_app_component.py
124+
messente_api/models/whats_app_language.py
125+
messente_api/models/whats_app_parameter.py
126+
messente_api/models/whats_app_template.py
127127
messente_api/rest.py
128128
requirements.txt
129129
setup.cfg

docs/WhatsApp.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ Name | Type | Description | Notes
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]
99
**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]
10-
**text** | [**WhatsAppText**](WhatsAppText.md) | | [optional]
11-
**image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional]
12-
**document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional]
13-
**audio** | [**WhatsAppAudio**](WhatsAppAudio.md) | | [optional]
10+
**template** | [**WhatsAppTemplate**](WhatsAppTemplate.md) | | [optional]
1411
**channel** | **str** | The channel used to deliver the message | [optional] [default to 'whatsapp']
1512

1613
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# WhatsAppDocument
1+
# WhatsAppComponent
22

3-
A document
3+
Whatsapp template component
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**caption** | **str** | Description for the document | [optional]
8-
**content** | **str** | Base64-encoded image |
7+
**type** | **str** | Type of the component |
8+
**parameters** | [**list[WhatsAppParameter]**](WhatsAppParameter.md) | List of parameters for the component | [optional]
99

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# WhatsAppAudio
1+
# WhatsAppLanguage
22

3-
A sound
3+
Whatsapp template language
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**content** | **str** | Base64-encoded audio |
7+
**code** | **str** | Language code |
8+
**policy** | **str** | Language policy | [optional]
89

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# WhatsAppImage
1+
# WhatsAppParameter
22

3-
An image
3+
Whatsapp component parameter
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**caption** | **str** | Description for the image | [optional]
8-
**content** | **str** | Base64-encoded image |
7+
**type** | **str** | Type of the parameter |
8+
**text** | **str** | A text | [optional]
99

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# WhatsAppText
1+
# WhatsAppTemplate
22

3-
A text
3+
Whatsapp Cloud API template
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**preview_url** | **bool** | Whether to display link preview if the message contains a hyperlink | [optional] [default to True]
8-
**body** | **str** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting |
7+
**name** | **str** | Name of the template |
8+
**language** | [**WhatsAppLanguage**](WhatsAppLanguage.md) | |
9+
**components** | [**list[WhatsAppComponent]**](WhatsAppComponent.md) | List of template components | [optional]
910

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

messente_api/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
from messente_api.models.text_store import TextStore
8383
from messente_api.models.viber import Viber
8484
from messente_api.models.whats_app import WhatsApp
85-
from messente_api.models.whats_app_audio import WhatsAppAudio
86-
from messente_api.models.whats_app_document import WhatsAppDocument
87-
from messente_api.models.whats_app_image import WhatsAppImage
88-
from messente_api.models.whats_app_text import WhatsAppText
85+
from messente_api.models.whats_app_component import WhatsAppComponent
86+
from messente_api.models.whats_app_language import WhatsAppLanguage
87+
from messente_api.models.whats_app_parameter import WhatsAppParameter
88+
from messente_api.models.whats_app_template import WhatsAppTemplate
8989

messente_api/models/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
from messente_api.models.text_store import TextStore
6262
from messente_api.models.viber import Viber
6363
from messente_api.models.whats_app import WhatsApp
64-
from messente_api.models.whats_app_audio import WhatsAppAudio
65-
from messente_api.models.whats_app_document import WhatsAppDocument
66-
from messente_api.models.whats_app_image import WhatsAppImage
67-
from messente_api.models.whats_app_text import WhatsAppText
64+
from messente_api.models.whats_app_component import WhatsAppComponent
65+
from messente_api.models.whats_app_language import WhatsAppLanguage
66+
from messente_api.models.whats_app_parameter import WhatsAppParameter
67+
from messente_api.models.whats_app_template import WhatsAppTemplate

messente_api/models/whats_app.py

Lines changed: 17 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,19 @@ class WhatsApp(object):
3737
'sender': 'str',
3838
'validity': 'int',
3939
'ttl': 'int',
40-
'text': 'WhatsAppText',
41-
'image': 'WhatsAppImage',
42-
'document': 'WhatsAppDocument',
43-
'audio': 'WhatsAppAudio',
40+
'template': 'WhatsAppTemplate',
4441
'channel': 'str'
4542
}
4643

4744
attribute_map = {
4845
'sender': 'sender',
4946
'validity': 'validity',
5047
'ttl': 'ttl',
51-
'text': 'text',
52-
'image': 'image',
53-
'document': 'document',
54-
'audio': 'audio',
48+
'template': 'template',
5549
'channel': 'channel'
5650
}
5751

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
52+
def __init__(self, sender=None, validity=None, ttl=None, template=None, channel='whatsapp', local_vars_configuration=None): # noqa: E501
5953
"""WhatsApp - a model defined in OpenAPI""" # noqa: E501
6054
if local_vars_configuration is None:
6155
local_vars_configuration = Configuration()
@@ -64,10 +58,7 @@ def __init__(self, sender=None, validity=None, ttl=None, text=None, image=None,
6458
self._sender = None
6559
self._validity = None
6660
self._ttl = None
67-
self._text = None
68-
self._image = None
69-
self._document = None
70-
self._audio = None
61+
self._template = None
7162
self._channel = None
7263
self.discriminator = None
7364

@@ -77,14 +68,8 @@ def __init__(self, sender=None, validity=None, ttl=None, text=None, image=None,
7768
self.validity = validity
7869
if ttl is not None:
7970
self.ttl = ttl
80-
if text is not None:
81-
self.text = text
82-
if image is not None:
83-
self.image = image
84-
if document is not None:
85-
self.document = document
86-
if audio is not None:
87-
self.audio = audio
71+
if template is not None:
72+
self.template = template
8873
if channel is not None:
8974
self.channel = channel
9075

@@ -158,88 +143,25 @@ def ttl(self, ttl):
158143
self._ttl = ttl
159144

160145
@property
161-
def text(self):
162-
"""Gets the text of this WhatsApp. # noqa: E501
146+
def template(self):
147+
"""Gets the template of this WhatsApp. # noqa: E501
163148
164149
165-
:return: The text of this WhatsApp. # noqa: E501
166-
:rtype: WhatsAppText
150+
:return: The template of this WhatsApp. # noqa: E501
151+
:rtype: WhatsAppTemplate
167152
"""
168-
return self._text
153+
return self._template
169154

170-
@text.setter
171-
def text(self, text):
172-
"""Sets the text of this WhatsApp.
155+
@template.setter
156+
def template(self, template):
157+
"""Sets the template of this WhatsApp.
173158
174159
175-
:param text: The text of this WhatsApp. # noqa: E501
176-
:type text: WhatsAppText
160+
:param template: The template of this WhatsApp. # noqa: E501
161+
:type template: WhatsAppTemplate
177162
"""
178163

179-
self._text = text
180-
181-
@property
182-
def image(self):
183-
"""Gets the image of this WhatsApp. # noqa: E501
184-
185-
186-
:return: The image of this WhatsApp. # noqa: E501
187-
:rtype: WhatsAppImage
188-
"""
189-
return self._image
190-
191-
@image.setter
192-
def image(self, image):
193-
"""Sets the image of this WhatsApp.
194-
195-
196-
:param image: The image of this WhatsApp. # noqa: E501
197-
:type image: WhatsAppImage
198-
"""
199-
200-
self._image = image
201-
202-
@property
203-
def document(self):
204-
"""Gets the document of this WhatsApp. # noqa: E501
205-
206-
207-
:return: The document of this WhatsApp. # noqa: E501
208-
:rtype: WhatsAppDocument
209-
"""
210-
return self._document
211-
212-
@document.setter
213-
def document(self, document):
214-
"""Sets the document of this WhatsApp.
215-
216-
217-
:param document: The document of this WhatsApp. # noqa: E501
218-
:type document: WhatsAppDocument
219-
"""
220-
221-
self._document = document
222-
223-
@property
224-
def audio(self):
225-
"""Gets the audio of this WhatsApp. # noqa: E501
226-
227-
228-
:return: The audio of this WhatsApp. # noqa: E501
229-
:rtype: WhatsAppAudio
230-
"""
231-
return self._audio
232-
233-
@audio.setter
234-
def audio(self, audio):
235-
"""Sets the audio of this WhatsApp.
236-
237-
238-
:param audio: The audio of this WhatsApp. # noqa: E501
239-
:type audio: WhatsAppAudio
240-
"""
241-
242-
self._audio = audio
164+
self._template = template
243165

244166
@property
245167
def channel(self):

0 commit comments

Comments
 (0)