Skip to content

Commit 96c30c4

Browse files
committed
Travis update: Sep 2024 (Build 799)
[skip ci]
1 parent 163c795 commit 96c30c4

13 files changed

Lines changed: 8 additions & 160 deletions

File tree

.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ docs/SyncNumberLookupSuccess.md
6262
docs/Telegram.md
6363
docs/TextStore.md
6464
docs/Viber.md
65-
docs/ViberVideo.md
6665
docs/WhatsApp.md
6766
docs/WhatsAppComponent.md
6867
docs/WhatsAppCurrency.md
@@ -137,7 +136,6 @@ messente_api/models/sync_number_lookup_success.py
137136
messente_api/models/telegram.py
138137
messente_api/models/text_store.py
139138
messente_api/models/viber.py
140-
messente_api/models/viber_video.py
141139
messente_api/models/whats_app.py
142140
messente_api/models/whats_app_component.py
143141
messente_api/models/whats_app_currency.py

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- Python package version: 2.2.0
4+
- Python package version: 2.1.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

docs/OmnimessageMessagesInner.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Name | Type | Description | Notes
1313
**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
1414
**button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
1515
**channel** | **str** | The channel used to deliver the message | [optional] [default to 'telegram']
16-
**video** | [**ViberVideo**](ViberVideo.md) | | [optional]
1716
**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]
1817
**udh** | **str** | hex-encoded string containing SMS UDH | [optional]
1918
**template** | [**WhatsAppTemplate**](WhatsAppTemplate.md) | | [optional]

docs/Viber.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
1414
**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
1515
**button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
1616
**channel** | **str** | The channel used to deliver the message | [optional] [default to 'viber']
17-
**video** | [**ViberVideo**](ViberVideo.md) | | [optional]
1817

1918
## Example
2019

docs/ViberVideo.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

messente_api/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "2.2.0"
18+
__version__ = "2.1.0"
1919

2020
# import apis into sdk package
2121
from messente_api.api.blacklist_api import BlacklistApi
@@ -89,7 +89,6 @@
8989
from messente_api.models.telegram import Telegram
9090
from messente_api.models.text_store import TextStore
9191
from messente_api.models.viber import Viber
92-
from messente_api.models.viber_video import ViberVideo
9392
from messente_api.models.whats_app import WhatsApp
9493
from messente_api.models.whats_app_component import WhatsAppComponent
9594
from messente_api.models.whats_app_currency import WhatsAppCurrency

messente_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
self.default_headers[header_name] = header_value
9090
self.cookie = cookie
9191
# Set default User-Agent.
92-
self.user_agent = 'OpenAPI-Generator/2.2.0/python'
92+
self.user_agent = 'OpenAPI-Generator/2.1.0/python'
9393
self.client_side_validation = configuration.client_side_validation
9494

9595
def __enter__(self):

messente_api/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def to_debug_report(self):
395395
"OS: {env}\n"\
396396
"Python Version: {pyversion}\n"\
397397
"Version of the API: 2.0.0\n"\
398-
"SDK Package Version: 2.2.0".\
398+
"SDK Package Version: 2.1.0".\
399399
format(env=sys.platform, pyversion=sys.version)
400400

401401
def get_host_settings(self):

messente_api/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
from messente_api.models.telegram import Telegram
6666
from messente_api.models.text_store import TextStore
6767
from messente_api.models.viber import Viber
68-
from messente_api.models.viber_video import ViberVideo
6968
from messente_api.models.whats_app import WhatsApp
7069
from messente_api.models.whats_app_component import WhatsAppComponent
7170
from messente_api.models.whats_app_currency import WhatsAppCurrency

messente_api/models/viber.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
2222
from typing import Any, ClassVar, Dict, List, Optional
23-
from messente_api.models.viber_video import ViberVideo
2423
from typing import Optional, Set
2524
from typing_extensions import Self
2625

@@ -36,9 +35,8 @@ class Viber(BaseModel):
3635
button_url: Optional[StrictStr] = Field(default=None, description="URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional)")
3736
button_text: Optional[StrictStr] = Field(default=None, description="Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional)")
3837
channel: Optional[StrictStr] = Field(default='viber', description="The channel used to deliver the message")
39-
video: Optional[ViberVideo] = None
4038
additional_properties: Dict[str, Any] = {}
41-
__properties: ClassVar[List[str]] = ["sender", "validity", "ttl", "text", "image_url", "button_url", "button_text", "channel", "video"]
39+
__properties: ClassVar[List[str]] = ["sender", "validity", "ttl", "text", "image_url", "button_url", "button_text", "channel"]
4240

4341
@field_validator('channel')
4442
def channel_validate_enum(cls, value):
@@ -91,9 +89,6 @@ def to_dict(self) -> Dict[str, Any]:
9189
exclude=excluded_fields,
9290
exclude_none=True,
9391
)
94-
# override the default output from pydantic by calling `to_dict()` of video
95-
if self.video:
96-
_dict['video'] = self.video.to_dict()
9792
# puts key-value pairs in additional_properties in the top level
9893
if self.additional_properties is not None:
9994
for _key, _value in self.additional_properties.items():
@@ -118,8 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
118113
"image_url": obj.get("image_url"),
119114
"button_url": obj.get("button_url"),
120115
"button_text": obj.get("button_text"),
121-
"channel": obj.get("channel") if obj.get("channel") is not None else 'viber',
122-
"video": ViberVideo.from_dict(obj["video"]) if obj.get("video") is not None else None
116+
"channel": obj.get("channel") if obj.get("channel") is not None else 'viber'
123117
})
124118
# store additional fields in additional_properties
125119
for _key in obj.keys():

0 commit comments

Comments
 (0)