Skip to content

Commit c274a03

Browse files
authored
Merge pull request #19 from messente/travis
Release version 2.2.0
2 parents 9da3b30 + c1bb407 commit c274a03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+758
-8
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ docs/SyncNumberLookupSuccess.md
6262
docs/Telegram.md
6363
docs/TextStore.md
6464
docs/Viber.md
65+
docs/ViberVideo.md
6566
docs/WhatsApp.md
6667
docs/WhatsAppComponent.md
6768
docs/WhatsAppCurrency.md
@@ -136,6 +137,7 @@ messente_api/models/sync_number_lookup_success.py
136137
messente_api/models/telegram.py
137138
messente_api/models/text_store.py
138139
messente_api/models/viber.py
140+
messente_api/models/viber_video.py
139141
messente_api/models/whats_app.py
140142
messente_api/models/whats_app_component.py
141143
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.1.0
4+
- Python package version: 2.2.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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ 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]
1617
**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]
1718
**udh** | **str** | hex-encoded string containing SMS UDH | [optional]
1819
**template** | [**WhatsAppTemplate**](WhatsAppTemplate.md) | | [optional]

docs/Viber.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ 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]
1718

1819
## Example
1920

docs/ViberVideo.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ViberVideo
2+
3+
Viber video object
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**url** | **str** | URL pointing to the video resource. |
10+
**thumbnail** | **str** | URL pointing to the video thumbnail resource. |
11+
**file_size** | **int** | Size of the video file in bytes. Cannot be larger than 200MB. |
12+
**duration** | **int** | Duration of the video in seconds. Cannot be longer than 600 seconds. |
13+
14+
## Example
15+
16+
```python
17+
from messente_api.models.viber_video import ViberVideo
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of ViberVideo from a JSON string
22+
viber_video_instance = ViberVideo.from_json(json)
23+
# print the JSON string representation of the object
24+
print(ViberVideo.to_json())
25+
26+
# convert the object into a dict
27+
viber_video_dict = viber_video_instance.to_dict()
28+
# create an instance of ViberVideo from a dict
29+
viber_video_from_dict = ViberVideo.from_dict(viber_video_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

messente_api/__init__.py

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

1717

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

2020
# import apis into sdk package
2121
from messente_api.api.blacklist_api import BlacklistApi
@@ -89,6 +89,7 @@
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
9293
from messente_api.models.whats_app import WhatsApp
9394
from messente_api.models.whats_app_component import WhatsAppComponent
9495
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.1.0/python'
92+
self.user_agent = 'OpenAPI-Generator/2.2.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.1.0".\
398+
"SDK Package Version: 2.2.0".\
399399
format(env=sys.platform, pyversion=sys.version)
400400

401401
def get_host_settings(self):

messente_api/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
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
6869
from messente_api.models.whats_app import WhatsApp
6970
from messente_api.models.whats_app_component import WhatsAppComponent
7071
from messente_api.models.whats_app_currency import WhatsAppCurrency

messente_api/models/bulk_omni_message_create_success_response.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class BulkOmniMessageCreateSuccessResponse(BaseModel):
2929
Response received after successfully created bulk omnimessage.
3030
""" # noqa: E501
3131
messages: List[BulkOmniMessageCreateSuccessResponseMessagesInner] = Field(description="List of responses for each Omnimessage in the bulk. These can be errors or successful responses")
32+
additional_properties: Dict[str, Any] = {}
3233
__properties: ClassVar[List[str]] = ["messages"]
3334

3435
model_config = ConfigDict(
@@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]:
6162
* `None` is only added to the output dict for nullable fields that
6263
were set at model initialization. Other fields with value `None`
6364
are ignored.
65+
* Fields in `self.additional_properties` are added to the output dict.
6466
"""
6567
excluded_fields: Set[str] = set([
68+
"additional_properties",
6669
])
6770

6871
_dict = self.model_dump(
@@ -77,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]:
7780
if _item:
7881
_items.append(_item.to_dict())
7982
_dict['messages'] = _items
83+
# puts key-value pairs in additional_properties in the top level
84+
if self.additional_properties is not None:
85+
for _key, _value in self.additional_properties.items():
86+
_dict[_key] = _value
87+
8088
return _dict
8189

8290
@classmethod
@@ -91,6 +99,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9199
_obj = cls.model_validate({
92100
"messages": [BulkOmniMessageCreateSuccessResponseMessagesInner.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None
93101
})
102+
# store additional fields in additional_properties
103+
for _key in obj.keys():
104+
if _key not in cls.__properties:
105+
_obj.additional_properties[_key] = obj.get(_key)
106+
94107
return _obj
95108

96109

0 commit comments

Comments
 (0)