Skip to content

Commit 3d81536

Browse files
authored
Merge pull request #22 from messente/travis
Upgrade to 7.11.0
2 parents fdc86c4 + 1bd3c17 commit 3d81536

Some content is hidden

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

44 files changed

+653
-289
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ stages:
1414
- pip install -r test-requirements.txt
1515
- pytest --cov=messente_api
1616

17-
pytest-3.7:
18-
extends: .pytest
19-
image: python:3.7-alpine
2017
pytest-3.8:
2118
extends: .pytest
2219
image: python:3.8-alpine
@@ -29,3 +26,6 @@ pytest-3.10:
2926
pytest-3.11:
3027
extends: .pytest
3128
image: python:3.11-alpine
29+
pytest-3.12:
30+
extends: .pytest
31+
image: python:3.12-alpine

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.6.0
1+
7.11.0

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
language: python
2-
dist: jammy
32
python:
4-
- 3.10
3+
- "3.9"
54

65
script:
76
- echo "skipping tests"
7+
8+
deploy:
9+
provider: pypi
10+
user: messente
11+
password:
12+
secure: T6b+hfVKTyJUUprT/7c6+nuEpqjENHWbZ5OrFLq/fo0N++aUgB7/VgsY7L2U9vmuog2xf34Di0C66fe/Tmy5czc+iXbwSnS6uP0aJk6dnERrdhiarUHgsDq4/txx59qYXZfelCO38M54GBPAlDzVp5/ONocbOrrJUPnt++0t/ocwbq2x5m6RSycJCEBWjxkBuLclrIkUvI+0IgJl/CXUro2OeVUg4J7rrwI68XAKAZF2SOQm/V3Ak30ax7CE2XFScVSvfz2g5kJbvtamFwdPRAwA5ThU4q6TDlL49DEblZCSKzAwOTkKkIkjFY5m6PPkNnxFAEsBjRyU5tl+T1pPvM0Gd/AY3lBXruRbU8SmGJgZbz59q1SQ1NRm5gHKpFEQ0kwWJvEJMOwRDLH16nFY4XX15ffVWFqw8Pkaso6NV6RTRVFTV3rVY2YPa1ili2QvkHYjejMZRDG+13MR+gJGWbjU2Uql3kj/QbIBFMyzXcfbLSpdn65KkzI5Svvzl/CsBZ0NsXIhH8rRsK464bZUuDY7qLbNca4IxARZRb2jH9C3Zas4kjJzl9J5TjkZTc8HTl+5PB8k+XsBaPSa1BvGvS3YEpQF6mVOr/SkQGX/yMV/WcmZJekSaWVrgdt5twPlfah0bwfKx60FKJqQYP2+2HeoA56UPrwSGT5ocz0wQC8=
13+
on:
14+
tags: true

docs/Channel.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
Defines the delivery channel
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `SMS` (value: `'sms'`)
8+
9+
* `VIBER` (value: `'viber'`)
10+
11+
* `WHATSAPP` (value: `'whatsapp'`)
12+
13+
* `TELEGRAM` (value: `'telegram'`)
914

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

docs/ErrorCodeOmnichannel.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,21 @@
22

33
Matches the following error title. This field is a constant * 101 - Not found * 102 - Forbidden * 103 - Unauthorized * 104 - Internal Server Error * 105 - Invalid data * 106 - Missing data * 107 - Method not allowed
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `ENUM_101` (value: `'101'`)
8+
9+
* `ENUM_102` (value: `'102'`)
10+
11+
* `ENUM_103` (value: `'103'`)
12+
13+
* `ENUM_104` (value: `'104'`)
14+
15+
* `ENUM_105` (value: `'105'`)
16+
17+
* `ENUM_106` (value: `'106'`)
18+
19+
* `ENUM_107` (value: `'107'`)
920

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

docs/ErrorCodeOmnichannelMachine.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,31 @@
22

33
Machine-readable error code, 'null' when the message has not been processed yet Matches the following meanings * 0 - No error * 1 - Delivery failure * 2 - Sending message expired * 3 - Invalid number * 4 - Error crediting account * 5 - Invalid number format * 6 - Too many identical messages * 7 - Sender name not allowed * 8 - Operator blacklisted * 9 - Unroutable * 10 - Seen * 999 - General temporary error
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `NUMBER_0` (value: `0`)
8+
9+
* `NUMBER_1` (value: `1`)
10+
11+
* `NUMBER_2` (value: `2`)
12+
13+
* `NUMBER_3` (value: `3`)
14+
15+
* `NUMBER_4` (value: `4`)
16+
17+
* `NUMBER_5` (value: `5`)
18+
19+
* `NUMBER_6` (value: `6`)
20+
21+
* `NUMBER_7` (value: `7`)
22+
23+
* `NUMBER_8` (value: `8`)
24+
25+
* `NUMBER_9` (value: `9`)
26+
27+
* `NUMBER_10` (value: `10`)
28+
29+
* `NUMBER_999` (value: `999`)
930

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

docs/ErrorCodePhonebook.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22

33
Matches the following error title. This field is a constant * 201 - Invalid data * 202 - Unauthorized * 203 - Missing resource * 204 - Conflict * 244 - Client error * 205 - General error
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `ENUM_201` (value: `'201'`)
8+
9+
* `ENUM_202` (value: `'202'`)
10+
11+
* `ENUM_203` (value: `'203'`)
12+
13+
* `ENUM_204` (value: `'204'`)
14+
15+
* `ENUM_244` (value: `'244'`)
16+
17+
* `ENUM_205` (value: `'205'`)
918

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

docs/ErrorCodeStatistics.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
Matches the following error title. This field is a constant * 100 - Client Error * 103 - Unauthorized * 104 - Invalid data * 105 - Internal Server Error
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `ENUM_100` (value: `'100'`)
8+
9+
* `ENUM_103` (value: `'103'`)
10+
11+
* `ENUM_104` (value: `'104'`)
12+
13+
* `ENUM_105` (value: `'105'`)
914

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

docs/ErrorTitleOmnichannel.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,21 @@
22

33
Textual value which corresponds to an error code
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `NOT_FOUND` (value: `'Not found'`)
8+
9+
* `FORBIDDEN` (value: `'Forbidden'`)
10+
11+
* `UNAUTHORIZED` (value: `'Unauthorized'`)
12+
13+
* `INVALID_DATA` (value: `'Invalid data'`)
14+
15+
* `INTERNAL_SERVER_ERROR` (value: `'Internal Server Error'`)
16+
17+
* `MISSING_DATA` (value: `'Missing data'`)
18+
19+
* `METHOD_NOT_ALLOWED` (value: `'Method not allowed'`)
920

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

docs/ErrorTitlePhonebook.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22

33
Textual value which corresponds to an error code
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `INVALID_DATA` (value: `'Invalid data'`)
8+
9+
* `UNAUTHORIZED` (value: `'Unauthorized'`)
10+
11+
* `MISSING_RESOURCE` (value: `'Missing resource'`)
12+
13+
* `CONFLICT` (value: `'Conflict'`)
14+
15+
* `CLIENT_ERROR` (value: `'Client error'`)
16+
17+
* `GENERAL_ERROR` (value: `'General error'`)
918

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

docs/Priority.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
Set the priority of the message. Messages are processed starting with in highest priority queue first and lowest priority queue last. This for example allows to prioritize OTP messages over marketing traffic.
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `LOW` (value: `'low'`)
8+
9+
* `REGULAR` (value: `'regular'`)
10+
11+
* `HIGH` (value: `'high'`)
912

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

docs/Status.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,29 @@
22

33
The human-readable equivalent for this field is contained in \"error\". This value is *null* if the message is still being processed
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `ACK` (value: `'ACK'`)
8+
9+
* `DELIVRD` (value: `'DELIVRD'`)
10+
11+
* `UNDELIV` (value: `'UNDELIV'`)
12+
13+
* `FAILED` (value: `'FAILED'`)
14+
15+
* `UNKNOWN` (value: `'UNKNOWN'`)
16+
17+
* `ACCEPTD` (value: `'ACCEPTD'`)
18+
19+
* `REJECTD` (value: `'REJECTD'`)
20+
21+
* `DELETED` (value: `'DELETED'`)
22+
23+
* `EXPIRED` (value: `'EXPIRED'`)
24+
25+
* `NACK` (value: `'NACK'`)
26+
27+
* `SEEN` (value: `'SEEN'`)
928

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

docs/TextStore.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
Whether to store message content as is (plaintext), as a hashed value (sha256) or not at all (nostore)
44

5-
## Properties
5+
## Enum
66

7-
Name | Type | Description | Notes
8-
------------ | ------------- | ------------- | -------------
7+
* `NOSTORE` (value: `'nostore'`)
8+
9+
* `PLAINTEXT` (value: `'plaintext'`)
10+
11+
* `SHA256` (value: `'sha256'`)
912

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

messente_api/api/blacklist_api.py

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ def _add_to_blacklist_serialize(
261261
_query_params: List[Tuple[str, str]] = []
262262
_header_params: Dict[str, Optional[str]] = _headers or {}
263263
_form_params: List[Tuple[str, str]] = []
264-
_files: Dict[str, Union[str, bytes]] = {}
264+
_files: Dict[
265+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
266+
] = {}
265267
_body_params: Optional[bytes] = None
266268

267269
# process the path parameters
@@ -274,11 +276,12 @@ def _add_to_blacklist_serialize(
274276

275277

276278
# set the HTTP header `Accept`
277-
_header_params['Accept'] = self.api_client.select_header_accept(
278-
[
279-
'application/json'
280-
]
281-
)
279+
if 'Accept' not in _header_params:
280+
_header_params['Accept'] = self.api_client.select_header_accept(
281+
[
282+
'application/json'
283+
]
284+
)
282285

283286
# set the HTTP header `Content-Type`
284287
if _content_type:
@@ -538,7 +541,9 @@ def _delete_from_blacklist_serialize(
538541
_query_params: List[Tuple[str, str]] = []
539542
_header_params: Dict[str, Optional[str]] = _headers or {}
540543
_form_params: List[Tuple[str, str]] = []
541-
_files: Dict[str, Union[str, bytes]] = {}
544+
_files: Dict[
545+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
546+
] = {}
542547
_body_params: Optional[bytes] = None
543548

544549
# process the path parameters
@@ -551,11 +556,12 @@ def _delete_from_blacklist_serialize(
551556

552557

553558
# set the HTTP header `Accept`
554-
_header_params['Accept'] = self.api_client.select_header_accept(
555-
[
556-
'application/json'
557-
]
558-
)
559+
if 'Accept' not in _header_params:
560+
_header_params['Accept'] = self.api_client.select_header_accept(
561+
[
562+
'application/json'
563+
]
564+
)
559565

560566

561567
# authentication setting
@@ -783,7 +789,9 @@ def _fetch_blacklist_serialize(
783789
_query_params: List[Tuple[str, str]] = []
784790
_header_params: Dict[str, Optional[str]] = _headers or {}
785791
_form_params: List[Tuple[str, str]] = []
786-
_files: Dict[str, Union[str, bytes]] = {}
792+
_files: Dict[
793+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
794+
] = {}
787795
_body_params: Optional[bytes] = None
788796

789797
# process the path parameters
@@ -794,11 +802,12 @@ def _fetch_blacklist_serialize(
794802

795803

796804
# set the HTTP header `Accept`
797-
_header_params['Accept'] = self.api_client.select_header_accept(
798-
[
799-
'application/json'
800-
]
801-
)
805+
if 'Accept' not in _header_params:
806+
_header_params['Accept'] = self.api_client.select_header_accept(
807+
[
808+
'application/json'
809+
]
810+
)
802811

803812

804813
# authentication setting
@@ -1045,7 +1054,9 @@ def _is_blacklisted_serialize(
10451054
_query_params: List[Tuple[str, str]] = []
10461055
_header_params: Dict[str, Optional[str]] = _headers or {}
10471056
_form_params: List[Tuple[str, str]] = []
1048-
_files: Dict[str, Union[str, bytes]] = {}
1057+
_files: Dict[
1058+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1059+
] = {}
10491060
_body_params: Optional[bytes] = None
10501061

10511062
# process the path parameters
@@ -1058,11 +1069,12 @@ def _is_blacklisted_serialize(
10581069

10591070

10601071
# set the HTTP header `Accept`
1061-
_header_params['Accept'] = self.api_client.select_header_accept(
1062-
[
1063-
'application/json'
1064-
]
1065-
)
1072+
if 'Accept' not in _header_params:
1073+
_header_params['Accept'] = self.api_client.select_header_accept(
1074+
[
1075+
'application/json'
1076+
]
1077+
)
10661078

10671079

10681080
# authentication setting

0 commit comments

Comments
 (0)