diff --git a/README.md b/README.md index 00a30f5..d01d103 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Messente API Library -- Messente API version: 1.1.0 -- Python package version: 1.1.0 +- Messente API version: 1.2.0 +- Python package version: 1.2.0 -[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. +[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. ## Installation @@ -48,11 +48,19 @@ Messente API Library provides the operations described below to access the featu 1. Returns all groups [`fetch_groups`](docs/GroupsApi.md#fetch_groups) 1. Updates a group with the provided name [`update_group`](docs/GroupsApi.md#update_group) +### NumberLookupApi + +1. Requests info about phone numbers [`fetch_info`](docs/NumberLookupApi.md#fetch_info) + ### OmnimessageApi 1. Cancels a scheduled Omnimessage [`cancel_scheduled_message`](docs/OmnimessageApi.md#cancel_scheduled_message) 1. Sends an Omnimessage [`send_omnimessage`](docs/OmnimessageApi.md#send_omnimessage) +### StatisticsApi + +1. Requests statistics reports for each country [`create_statistics_report`](docs/StatisticsApi.md#create_statistics_report) + ## Auth **Type**: HTTP basic authentication diff --git a/docs/ErrorCodeStatistics.md b/docs/ErrorCodeStatistics.md new file mode 100644 index 0000000..acecb43 --- /dev/null +++ b/docs/ErrorCodeStatistics.md @@ -0,0 +1,9 @@ +# ErrorCodeStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ErrorItemNumberLookup.md b/docs/ErrorItemNumberLookup.md new file mode 100644 index 0000000..becec20 --- /dev/null +++ b/docs/ErrorItemNumberLookup.md @@ -0,0 +1,10 @@ +# ErrorItemNumberLookup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | [**ErrorItemNumberLookupError**](ErrorItemNumberLookupError.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ErrorItemNumberLookupError.md b/docs/ErrorItemNumberLookupError.md new file mode 100644 index 0000000..c634005 --- /dev/null +++ b/docs/ErrorItemNumberLookupError.md @@ -0,0 +1,11 @@ +# ErrorItemNumberLookupError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Error description | +**code** | **int** | Matches the following error title. This field is a constant * 101 - Unauthorized * 102 - Invalid arguments or parameters * 103 - Server error * 104 - Crediting error #1 * 105 - Crediting error #2 * 106 - Client error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ErrorItemStatistics.md b/docs/ErrorItemStatistics.md new file mode 100644 index 0000000..f5776f1 --- /dev/null +++ b/docs/ErrorItemStatistics.md @@ -0,0 +1,12 @@ +# ErrorItemStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | Error title | +**details** | **str** | Error details | +**code** | [**ErrorCodeStatistics**](ErrorCodeStatistics.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ErrorNumberLookup.md b/docs/ErrorNumberLookup.md new file mode 100644 index 0000000..9c21aa9 --- /dev/null +++ b/docs/ErrorNumberLookup.md @@ -0,0 +1,10 @@ +# ErrorNumberLookup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**list[ErrorItemNumberLookup]**](ErrorItemNumberLookup.md) | An array of errors | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ErrorStatistics.md b/docs/ErrorStatistics.md new file mode 100644 index 0000000..3031ba7 --- /dev/null +++ b/docs/ErrorStatistics.md @@ -0,0 +1,10 @@ +# ErrorStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**list[ErrorItemStatistics]**](ErrorItemStatistics.md) | An array of errors | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MobileNetwork.md b/docs/MobileNetwork.md new file mode 100644 index 0000000..50704a6 --- /dev/null +++ b/docs/MobileNetwork.md @@ -0,0 +1,14 @@ +# MobileNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mccmnc** | **str** | Mobile country and mobile network code | [optional] +**network_name** | **str** | Mobile network name | [optional] +**country_name** | **str** | Country name | [optional] +**country_prefix** | **str** | Country prefix | [optional] +**country_code** | **str** | Country code | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NumberLookupApi.md b/docs/NumberLookupApi.md new file mode 100644 index 0000000..c221500 --- /dev/null +++ b/docs/NumberLookupApi.md @@ -0,0 +1,71 @@ +# messente_api.NumberLookupApi + +All URIs are relative to *https://api.messente.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_info**](NumberLookupApi.md#fetch_info) | **POST** /hlr/sync | Requests info about phone numbers + + +# **fetch_info** +> SyncNumberLookupSuccess fetch_info(numbers_to_investigate) + +Requests info about phone numbers + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# Defining host is optional and default to https://api.messente.com/v1 +configuration.host = "https://api.messente.com/v1" +# Create an instance of the API class +api_instance = messente_api.NumberLookupApi(messente_api.ApiClient(configuration)) +numbers_to_investigate = {"numbers":["+37251000000","+37251000001"]} # NumbersToInvestigate | Numbers for lookup + +try: + # Requests info about phone numbers + api_response = api_instance.fetch_info(numbers_to_investigate) + pprint(api_response) +except ApiException as e: + print("Exception when calling NumberLookupApi->fetch_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **numbers_to_investigate** | [**NumbersToInvestigate**](NumbersToInvestigate.md)| Numbers for lookup | + +### Return type + +[**SyncNumberLookupSuccess**](SyncNumberLookupSuccess.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Info about phone numbers returned | - | +**400** | Invalid request | - | +**401** | Unauthorized | - | +**402** | Failed crediting | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/NumbersToInvestigate.md b/docs/NumbersToInvestigate.md new file mode 100644 index 0000000..bccb64d --- /dev/null +++ b/docs/NumbersToInvestigate.md @@ -0,0 +1,10 @@ +# NumbersToInvestigate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**numbers** | **list[str]** | Array of phone numbers | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md new file mode 100644 index 0000000..5a859ff --- /dev/null +++ b/docs/StatisticsApi.md @@ -0,0 +1,72 @@ +# messente_api.StatisticsApi + +All URIs are relative to *https://api.messente.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_statistics_report**](StatisticsApi.md#create_statistics_report) | **POST** /statistics/reports | Requests statistics reports for each country + + +# **create_statistics_report** +> StatisticsReportSuccess create_statistics_report(statistics_report_settings) + +Requests statistics reports for each country + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# Defining host is optional and default to https://api.messente.com/v1 +configuration.host = "https://api.messente.com/v1" +# Create an instance of the API class +api_instance = messente_api.StatisticsApi(messente_api.ApiClient(configuration)) +statistics_report_settings = {"start_date":"2017-01-01","end_date":"2019-06-20","message_types":["sms"]} # StatisticsReportSettings | Settings for statistics report + +try: + # Requests statistics reports for each country + api_response = api_instance.create_statistics_report(statistics_report_settings) + pprint(api_response) +except ApiException as e: + print("Exception when calling StatisticsApi->create_statistics_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **statistics_report_settings** | [**StatisticsReportSettings**](StatisticsReportSettings.md)| Settings for statistics report | + +### Return type + +[**StatisticsReportSuccess**](StatisticsReportSuccess.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Created reports by countries | - | +**400** | Client Error | - | +**401** | Unauthorized | - | +**422** | Invalid data | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/StatisticsReport.md b/docs/StatisticsReport.md new file mode 100644 index 0000000..6052b9a --- /dev/null +++ b/docs/StatisticsReport.md @@ -0,0 +1,12 @@ +# StatisticsReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_messages** | **int** | Sum of all messages | +**total_price** | **str** | Price for all messages | +**country** | **str** | Target country of all messages | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsReportSettings.md b/docs/StatisticsReportSettings.md new file mode 100644 index 0000000..ab97820 --- /dev/null +++ b/docs/StatisticsReportSettings.md @@ -0,0 +1,12 @@ +# StatisticsReportSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **date** | Start date for the report | +**end_date** | **date** | End date for the report | +**message_types** | **list[str]** | Optional list of message types (sms, viber, whatsapp, hlr) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsReportSuccess.md b/docs/StatisticsReportSuccess.md new file mode 100644 index 0000000..67fda84 --- /dev/null +++ b/docs/StatisticsReportSuccess.md @@ -0,0 +1,10 @@ +# StatisticsReportSuccess + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[StatisticsReport]**](StatisticsReport.md) | Array of report objects | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncNumberLookupResult.md b/docs/SyncNumberLookupResult.md new file mode 100644 index 0000000..ae5ab14 --- /dev/null +++ b/docs/SyncNumberLookupResult.md @@ -0,0 +1,18 @@ +# SyncNumberLookupResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **str** | Phone number in e.164 format | +**roaming** | **bool** | Indicates if a number is roaming | [optional] +**ported** | **bool** | Indicates if a number is ported | [optional] +**roaming_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional] +**current_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional] +**original_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional] +**ported_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional] +**status** | **str** | Status of the phone number | [optional] +**error** | **object** | Indicates if any error occurred while handling the request | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncNumberLookupSuccess.md b/docs/SyncNumberLookupSuccess.md new file mode 100644 index 0000000..ec4cbb3 --- /dev/null +++ b/docs/SyncNumberLookupSuccess.md @@ -0,0 +1,11 @@ +# SyncNumberLookupSuccess + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | **str** | ID of the request | +**result** | [**list[SyncNumberLookupResult]**](SyncNumberLookupResult.md) | A container for phone number info objects | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/messente_api/__init__.py b/messente_api/__init__.py index a8d0518..1dc51d5 100644 --- a/messente_api/__init__.py +++ b/messente_api/__init__.py @@ -5,9 +5,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -15,14 +15,16 @@ from __future__ import absolute_import -__version__ = "1.1.0" +__version__ = "1.2.0" # import apis into sdk package from messente_api.api.blacklist_api import BlacklistApi from messente_api.api.contacts_api import ContactsApi from messente_api.api.delivery_report_api import DeliveryReportApi from messente_api.api.groups_api import GroupsApi +from messente_api.api.number_lookup_api import NumberLookupApi from messente_api.api.omnimessage_api import OmnimessageApi +from messente_api.api.statistics_api import StatisticsApi # import ApiClient from messente_api.api_client import ApiClient @@ -43,10 +45,16 @@ from messente_api.models.error_code_omnichannel import ErrorCodeOmnichannel from messente_api.models.error_code_omnichannel_machine import ErrorCodeOmnichannelMachine from messente_api.models.error_code_phonebook import ErrorCodePhonebook +from messente_api.models.error_code_statistics import ErrorCodeStatistics +from messente_api.models.error_item_number_lookup import ErrorItemNumberLookup +from messente_api.models.error_item_number_lookup_error import ErrorItemNumberLookupError from messente_api.models.error_item_omnichannel import ErrorItemOmnichannel from messente_api.models.error_item_phonebook import ErrorItemPhonebook +from messente_api.models.error_item_statistics import ErrorItemStatistics +from messente_api.models.error_number_lookup import ErrorNumberLookup from messente_api.models.error_omnichannel import ErrorOmnichannel from messente_api.models.error_phonebook import ErrorPhonebook +from messente_api.models.error_statistics import ErrorStatistics from messente_api.models.error_title_omnichannel import ErrorTitleOmnichannel from messente_api.models.error_title_phonebook import ErrorTitlePhonebook from messente_api.models.fetch_blacklist_success import FetchBlacklistSuccess @@ -55,11 +63,18 @@ from messente_api.models.group_name import GroupName from messente_api.models.group_response_fields import GroupResponseFields from messente_api.models.message_result import MessageResult +from messente_api.models.mobile_network import MobileNetwork from messente_api.models.number_to_blacklist import NumberToBlacklist +from messente_api.models.numbers_to_investigate import NumbersToInvestigate from messente_api.models.omni_message_create_success_response import OmniMessageCreateSuccessResponse from messente_api.models.omnimessage import Omnimessage from messente_api.models.sms import SMS +from messente_api.models.statistics_report import StatisticsReport +from messente_api.models.statistics_report_settings import StatisticsReportSettings +from messente_api.models.statistics_report_success import StatisticsReportSuccess from messente_api.models.status import Status +from messente_api.models.sync_number_lookup_result import SyncNumberLookupResult +from messente_api.models.sync_number_lookup_success import SyncNumberLookupSuccess from messente_api.models.telegram import Telegram from messente_api.models.text_store import TextStore from messente_api.models.viber import Viber diff --git a/messente_api/api/__init__.py b/messente_api/api/__init__.py index c38198f..46467b5 100644 --- a/messente_api/api/__init__.py +++ b/messente_api/api/__init__.py @@ -7,4 +7,6 @@ from messente_api.api.contacts_api import ContactsApi from messente_api.api.delivery_report_api import DeliveryReportApi from messente_api.api.groups_api import GroupsApi +from messente_api.api.number_lookup_api import NumberLookupApi from messente_api.api.omnimessage_api import OmnimessageApi +from messente_api.api.statistics_api import StatisticsApi diff --git a/messente_api/api/blacklist_api.py b/messente_api/api/blacklist_api.py index bf95163..764d6e9 100644 --- a/messente_api/api/blacklist_api.py +++ b/messente_api/api/blacklist_api.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/contacts_api.py b/messente_api/api/contacts_api.py index aa9a984..32a0683 100644 --- a/messente_api/api/contacts_api.py +++ b/messente_api/api/contacts_api.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/delivery_report_api.py b/messente_api/api/delivery_report_api.py index 73e472f..f842840 100644 --- a/messente_api/api/delivery_report_api.py +++ b/messente_api/api/delivery_report_api.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/groups_api.py b/messente_api/api/groups_api.py index 68ff50e..6c06048 100644 --- a/messente_api/api/groups_api.py +++ b/messente_api/api/groups_api.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/number_lookup_api.py b/messente_api/api/number_lookup_api.py new file mode 100644 index 0000000..a4289fe --- /dev/null +++ b/messente_api/api/number_lookup_api.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from messente_api.api_client import ApiClient +from messente_api.exceptions import ( + ApiTypeError, + ApiValueError +) + + +class NumberLookupApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def fetch_info(self, numbers_to_investigate, **kwargs): # noqa: E501 + """Requests info about phone numbers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_info(numbers_to_investigate, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param NumbersToInvestigate numbers_to_investigate: Numbers for lookup (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: SyncNumberLookupSuccess + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.fetch_info_with_http_info(numbers_to_investigate, **kwargs) # noqa: E501 + + def fetch_info_with_http_info(self, numbers_to_investigate, **kwargs): # noqa: E501 + """Requests info about phone numbers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_info_with_http_info(numbers_to_investigate, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param NumbersToInvestigate numbers_to_investigate: Numbers for lookup (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(SyncNumberLookupSuccess, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['numbers_to_investigate'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method fetch_info" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'numbers_to_investigate' is set + if ('numbers_to_investigate' not in local_var_params or + local_var_params['numbers_to_investigate'] is None): + raise ApiValueError("Missing the required parameter `numbers_to_investigate` when calling `fetch_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'numbers_to_investigate' in local_var_params: + body_params = local_var_params['numbers_to_investigate'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/hlr/sync', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SyncNumberLookupSuccess', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/messente_api/api/omnimessage_api.py b/messente_api/api/omnimessage_api.py index 6595178..add1f5a 100644 --- a/messente_api/api/omnimessage_api.py +++ b/messente_api/api/omnimessage_api.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/statistics_api.py b/messente_api/api/statistics_api.py new file mode 100644 index 0000000..c390f87 --- /dev/null +++ b/messente_api/api/statistics_api.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from messente_api.api_client import ApiClient +from messente_api.exceptions import ( + ApiTypeError, + ApiValueError +) + + +class StatisticsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_statistics_report(self, statistics_report_settings, **kwargs): # noqa: E501 + """Requests statistics reports for each country # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_statistics_report(statistics_report_settings, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param StatisticsReportSettings statistics_report_settings: Settings for statistics report (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: StatisticsReportSuccess + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.create_statistics_report_with_http_info(statistics_report_settings, **kwargs) # noqa: E501 + + def create_statistics_report_with_http_info(self, statistics_report_settings, **kwargs): # noqa: E501 + """Requests statistics reports for each country # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_statistics_report_with_http_info(statistics_report_settings, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param StatisticsReportSettings statistics_report_settings: Settings for statistics report (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(StatisticsReportSuccess, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['statistics_report_settings'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_statistics_report" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'statistics_report_settings' is set + if ('statistics_report_settings' not in local_var_params or + local_var_params['statistics_report_settings'] is None): + raise ApiValueError("Missing the required parameter `statistics_report_settings` when calling `create_statistics_report`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'statistics_report_settings' in local_var_params: + body_params = local_var_params['statistics_report_settings'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/statistics/reports', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StatisticsReportSuccess', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/messente_api/api_client.py b/messente_api/api_client.py index 1c5e47f..34f8e67 100644 --- a/messente_api/api_client.py +++ b/messente_api/api_client.py @@ -2,9 +2,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.1.0/python' + self.user_agent = 'OpenAPI-Generator/1.2.0/python' def __del__(self): if self._pool: diff --git a/messente_api/configuration.py b/messente_api/configuration.py index 32ddddb..0c8bb51 100644 --- a/messente_api/configuration.py +++ b/messente_api/configuration.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -263,8 +263,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0\n"\ - "SDK Package Version: 1.1.0".\ + "Version of the API: 1.2.0\n"\ + "SDK Package Version: 1.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/messente_api/exceptions.py b/messente_api/exceptions.py index d2f633e..fc7556a 100644 --- a/messente_api/exceptions.py +++ b/messente_api/exceptions.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/__init__.py b/messente_api/models/__init__.py index e5b1b3f..760d533 100644 --- a/messente_api/models/__init__.py +++ b/messente_api/models/__init__.py @@ -4,9 +4,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -25,10 +25,16 @@ from messente_api.models.error_code_omnichannel import ErrorCodeOmnichannel from messente_api.models.error_code_omnichannel_machine import ErrorCodeOmnichannelMachine from messente_api.models.error_code_phonebook import ErrorCodePhonebook +from messente_api.models.error_code_statistics import ErrorCodeStatistics +from messente_api.models.error_item_number_lookup import ErrorItemNumberLookup +from messente_api.models.error_item_number_lookup_error import ErrorItemNumberLookupError from messente_api.models.error_item_omnichannel import ErrorItemOmnichannel from messente_api.models.error_item_phonebook import ErrorItemPhonebook +from messente_api.models.error_item_statistics import ErrorItemStatistics +from messente_api.models.error_number_lookup import ErrorNumberLookup from messente_api.models.error_omnichannel import ErrorOmnichannel from messente_api.models.error_phonebook import ErrorPhonebook +from messente_api.models.error_statistics import ErrorStatistics from messente_api.models.error_title_omnichannel import ErrorTitleOmnichannel from messente_api.models.error_title_phonebook import ErrorTitlePhonebook from messente_api.models.fetch_blacklist_success import FetchBlacklistSuccess @@ -37,11 +43,18 @@ from messente_api.models.group_name import GroupName from messente_api.models.group_response_fields import GroupResponseFields from messente_api.models.message_result import MessageResult +from messente_api.models.mobile_network import MobileNetwork from messente_api.models.number_to_blacklist import NumberToBlacklist +from messente_api.models.numbers_to_investigate import NumbersToInvestigate from messente_api.models.omni_message_create_success_response import OmniMessageCreateSuccessResponse from messente_api.models.omnimessage import Omnimessage from messente_api.models.sms import SMS +from messente_api.models.statistics_report import StatisticsReport +from messente_api.models.statistics_report_settings import StatisticsReportSettings +from messente_api.models.statistics_report_success import StatisticsReportSuccess from messente_api.models.status import Status +from messente_api.models.sync_number_lookup_result import SyncNumberLookupResult +from messente_api.models.sync_number_lookup_success import SyncNumberLookupSuccess from messente_api.models.telegram import Telegram from messente_api.models.text_store import TextStore from messente_api.models.viber import Viber diff --git a/messente_api/models/channel.py b/messente_api/models/channel.py index ffbc79a..4ba0006 100644 --- a/messente_api/models/channel.py +++ b/messente_api/models/channel.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/contact_envelope.py b/messente_api/models/contact_envelope.py index 88a5a68..2463b1d 100644 --- a/messente_api/models/contact_envelope.py +++ b/messente_api/models/contact_envelope.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/contact_fields.py b/messente_api/models/contact_fields.py index 87432a2..5f7760e 100644 --- a/messente_api/models/contact_fields.py +++ b/messente_api/models/contact_fields.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/contact_list_envelope.py b/messente_api/models/contact_list_envelope.py index 7988038..d170859 100644 --- a/messente_api/models/contact_list_envelope.py +++ b/messente_api/models/contact_list_envelope.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/contact_update_fields.py b/messente_api/models/contact_update_fields.py index 942e69d..afa82bc 100644 --- a/messente_api/models/contact_update_fields.py +++ b/messente_api/models/contact_update_fields.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/delivery_report_response.py b/messente_api/models/delivery_report_response.py index d37d5cc..1e1fcd9 100644 --- a/messente_api/models/delivery_report_response.py +++ b/messente_api/models/delivery_report_response.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/delivery_result.py b/messente_api/models/delivery_result.py index 438abb8..ebfb6c7 100644 --- a/messente_api/models/delivery_result.py +++ b/messente_api/models/delivery_result.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_code_omnichannel.py b/messente_api/models/error_code_omnichannel.py index 6a1c24a..6c312df 100644 --- a/messente_api/models/error_code_omnichannel.py +++ b/messente_api/models/error_code_omnichannel.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_code_omnichannel_machine.py b/messente_api/models/error_code_omnichannel_machine.py index e2db156..eaff84c 100644 --- a/messente_api/models/error_code_omnichannel_machine.py +++ b/messente_api/models/error_code_omnichannel_machine.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_code_phonebook.py b/messente_api/models/error_code_phonebook.py index a09c41e..955eb7b 100644 --- a/messente_api/models/error_code_phonebook.py +++ b/messente_api/models/error_code_phonebook.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_code_statistics.py b/messente_api/models/error_code_statistics.py new file mode 100644 index 0000000..8bb9020 --- /dev/null +++ b/messente_api/models/error_code_statistics.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorCodeStatistics(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + _100 = "100" + _103 = "103" + _104 = "104" + _105 = "105" + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ErrorCodeStatistics - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ErrorCodeStatistics): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/error_item_number_lookup.py b/messente_api/models/error_item_number_lookup.py new file mode 100644 index 0000000..e398f8e --- /dev/null +++ b/messente_api/models/error_item_number_lookup.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorItemNumberLookup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'error': 'ErrorItemNumberLookupError' + } + + attribute_map = { + 'error': 'error' + } + + def __init__(self, error=None): # noqa: E501 + """ErrorItemNumberLookup - a model defined in OpenAPI""" # noqa: E501 + + self._error = None + self.discriminator = None + + self.error = error + + @property + def error(self): + """Gets the error of this ErrorItemNumberLookup. # noqa: E501 + + + :return: The error of this ErrorItemNumberLookup. # noqa: E501 + :rtype: ErrorItemNumberLookupError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this ErrorItemNumberLookup. + + + :param error: The error of this ErrorItemNumberLookup. # noqa: E501 + :type: ErrorItemNumberLookupError + """ + if error is None: + raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501 + + self._error = error + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ErrorItemNumberLookup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/error_item_number_lookup_error.py b/messente_api/models/error_item_number_lookup_error.py new file mode 100644 index 0000000..44e5c9f --- /dev/null +++ b/messente_api/models/error_item_number_lookup_error.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorItemNumberLookupError(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'description': 'str', + 'code': 'int' + } + + attribute_map = { + 'description': 'description', + 'code': 'code' + } + + def __init__(self, description=None, code=None): # noqa: E501 + """ErrorItemNumberLookupError - a model defined in OpenAPI""" # noqa: E501 + + self._description = None + self._code = None + self.discriminator = None + + self.description = description + self.code = code + + @property + def description(self): + """Gets the description of this ErrorItemNumberLookupError. # noqa: E501 + + Error description # noqa: E501 + + :return: The description of this ErrorItemNumberLookupError. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ErrorItemNumberLookupError. + + Error description # noqa: E501 + + :param description: The description of this ErrorItemNumberLookupError. # noqa: E501 + :type: str + """ + if description is None: + raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 + + self._description = description + + @property + def code(self): + """Gets the code of this ErrorItemNumberLookupError. # noqa: E501 + + Matches the following error title. This field is a constant * 101 - Unauthorized * 102 - Invalid arguments or parameters * 103 - Server error * 104 - Crediting error #1 * 105 - Crediting error #2 * 106 - Client error # noqa: E501 + + :return: The code of this ErrorItemNumberLookupError. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ErrorItemNumberLookupError. + + Matches the following error title. This field is a constant * 101 - Unauthorized * 102 - Invalid arguments or parameters * 103 - Server error * 104 - Crediting error #1 * 105 - Crediting error #2 * 106 - Client error # noqa: E501 + + :param code: The code of this ErrorItemNumberLookupError. # noqa: E501 + :type: int + """ + if code is None: + raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 + if code is not None and code > 106: # noqa: E501 + raise ValueError("Invalid value for `code`, must be a value less than or equal to `106`") # noqa: E501 + if code is not None and code < 101: # noqa: E501 + raise ValueError("Invalid value for `code`, must be a value greater than or equal to `101`") # noqa: E501 + + self._code = code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ErrorItemNumberLookupError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/error_item_omnichannel.py b/messente_api/models/error_item_omnichannel.py index 8961da1..2828d47 100644 --- a/messente_api/models/error_item_omnichannel.py +++ b/messente_api/models/error_item_omnichannel.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_item_phonebook.py b/messente_api/models/error_item_phonebook.py index f3f72d8..671fdec 100644 --- a/messente_api/models/error_item_phonebook.py +++ b/messente_api/models/error_item_phonebook.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_item_statistics.py b/messente_api/models/error_item_statistics.py new file mode 100644 index 0000000..a3cc45e --- /dev/null +++ b/messente_api/models/error_item_statistics.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorItemStatistics(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'title': 'str', + 'details': 'str', + 'code': 'ErrorCodeStatistics' + } + + attribute_map = { + 'title': 'title', + 'details': 'details', + 'code': 'code' + } + + def __init__(self, title=None, details=None, code=None): # noqa: E501 + """ErrorItemStatistics - a model defined in OpenAPI""" # noqa: E501 + + self._title = None + self._details = None + self._code = None + self.discriminator = None + + self.title = title + self.details = details + self.code = code + + @property + def title(self): + """Gets the title of this ErrorItemStatistics. # noqa: E501 + + Error title # noqa: E501 + + :return: The title of this ErrorItemStatistics. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ErrorItemStatistics. + + Error title # noqa: E501 + + :param title: The title of this ErrorItemStatistics. # noqa: E501 + :type: str + """ + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 + + self._title = title + + @property + def details(self): + """Gets the details of this ErrorItemStatistics. # noqa: E501 + + Error details # noqa: E501 + + :return: The details of this ErrorItemStatistics. # noqa: E501 + :rtype: str + """ + return self._details + + @details.setter + def details(self, details): + """Sets the details of this ErrorItemStatistics. + + Error details # noqa: E501 + + :param details: The details of this ErrorItemStatistics. # noqa: E501 + :type: str + """ + if details is None: + raise ValueError("Invalid value for `details`, must not be `None`") # noqa: E501 + + self._details = details + + @property + def code(self): + """Gets the code of this ErrorItemStatistics. # noqa: E501 + + + :return: The code of this ErrorItemStatistics. # noqa: E501 + :rtype: ErrorCodeStatistics + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ErrorItemStatistics. + + + :param code: The code of this ErrorItemStatistics. # noqa: E501 + :type: ErrorCodeStatistics + """ + if code is None: + raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 + + self._code = code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ErrorItemStatistics): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/error_number_lookup.py b/messente_api/models/error_number_lookup.py new file mode 100644 index 0000000..bc03506 --- /dev/null +++ b/messente_api/models/error_number_lookup.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorNumberLookup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'errors': 'list[ErrorItemNumberLookup]' + } + + attribute_map = { + 'errors': 'errors' + } + + def __init__(self, errors=None): # noqa: E501 + """ErrorNumberLookup - a model defined in OpenAPI""" # noqa: E501 + + self._errors = None + self.discriminator = None + + self.errors = errors + + @property + def errors(self): + """Gets the errors of this ErrorNumberLookup. # noqa: E501 + + An array of errors # noqa: E501 + + :return: The errors of this ErrorNumberLookup. # noqa: E501 + :rtype: list[ErrorItemNumberLookup] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this ErrorNumberLookup. + + An array of errors # noqa: E501 + + :param errors: The errors of this ErrorNumberLookup. # noqa: E501 + :type: list[ErrorItemNumberLookup] + """ + if errors is None: + raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 + + self._errors = errors + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ErrorNumberLookup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/error_omnichannel.py b/messente_api/models/error_omnichannel.py index 3aea5f0..3a9bc86 100644 --- a/messente_api/models/error_omnichannel.py +++ b/messente_api/models/error_omnichannel.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_phonebook.py b/messente_api/models/error_phonebook.py index 03ebe6b..0b241a2 100644 --- a/messente_api/models/error_phonebook.py +++ b/messente_api/models/error_phonebook.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_statistics.py b/messente_api/models/error_statistics.py new file mode 100644 index 0000000..a55b734 --- /dev/null +++ b/messente_api/models/error_statistics.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorStatistics(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'errors': 'list[ErrorItemStatistics]' + } + + attribute_map = { + 'errors': 'errors' + } + + def __init__(self, errors=None): # noqa: E501 + """ErrorStatistics - a model defined in OpenAPI""" # noqa: E501 + + self._errors = None + self.discriminator = None + + self.errors = errors + + @property + def errors(self): + """Gets the errors of this ErrorStatistics. # noqa: E501 + + An array of errors # noqa: E501 + + :return: The errors of this ErrorStatistics. # noqa: E501 + :rtype: list[ErrorItemStatistics] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this ErrorStatistics. + + An array of errors # noqa: E501 + + :param errors: The errors of this ErrorStatistics. # noqa: E501 + :type: list[ErrorItemStatistics] + """ + if errors is None: + raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 + + self._errors = errors + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ErrorStatistics): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/error_title_omnichannel.py b/messente_api/models/error_title_omnichannel.py index 82688bb..4466081 100644 --- a/messente_api/models/error_title_omnichannel.py +++ b/messente_api/models/error_title_omnichannel.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_title_phonebook.py b/messente_api/models/error_title_phonebook.py index 9e93b14..3ff3dbe 100644 --- a/messente_api/models/error_title_phonebook.py +++ b/messente_api/models/error_title_phonebook.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/fetch_blacklist_success.py b/messente_api/models/fetch_blacklist_success.py index a463836..13c3b4d 100644 --- a/messente_api/models/fetch_blacklist_success.py +++ b/messente_api/models/fetch_blacklist_success.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/group_envelope.py b/messente_api/models/group_envelope.py index 201af58..2c548bf 100644 --- a/messente_api/models/group_envelope.py +++ b/messente_api/models/group_envelope.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/group_list_envelope.py b/messente_api/models/group_list_envelope.py index 3447985..ed2ce5a 100644 --- a/messente_api/models/group_list_envelope.py +++ b/messente_api/models/group_list_envelope.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/group_name.py b/messente_api/models/group_name.py index 1d1d886..65aa219 100644 --- a/messente_api/models/group_name.py +++ b/messente_api/models/group_name.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/group_response_fields.py b/messente_api/models/group_response_fields.py index 64afb3c..133d7b0 100644 --- a/messente_api/models/group_response_fields.py +++ b/messente_api/models/group_response_fields.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/message_result.py b/messente_api/models/message_result.py index 84ee0bd..733d88a 100644 --- a/messente_api/models/message_result.py +++ b/messente_api/models/message_result.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/mobile_network.py b/messente_api/models/mobile_network.py new file mode 100644 index 0000000..cd94a6f --- /dev/null +++ b/messente_api/models/mobile_network.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class MobileNetwork(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'mccmnc': 'str', + 'network_name': 'str', + 'country_name': 'str', + 'country_prefix': 'str', + 'country_code': 'str' + } + + attribute_map = { + 'mccmnc': 'mccmnc', + 'network_name': 'networkName', + 'country_name': 'countryName', + 'country_prefix': 'countryPrefix', + 'country_code': 'countryCode' + } + + def __init__(self, mccmnc=None, network_name=None, country_name=None, country_prefix=None, country_code=None): # noqa: E501 + """MobileNetwork - a model defined in OpenAPI""" # noqa: E501 + + self._mccmnc = None + self._network_name = None + self._country_name = None + self._country_prefix = None + self._country_code = None + self.discriminator = None + + if mccmnc is not None: + self.mccmnc = mccmnc + if network_name is not None: + self.network_name = network_name + if country_name is not None: + self.country_name = country_name + if country_prefix is not None: + self.country_prefix = country_prefix + if country_code is not None: + self.country_code = country_code + + @property + def mccmnc(self): + """Gets the mccmnc of this MobileNetwork. # noqa: E501 + + Mobile country and mobile network code # noqa: E501 + + :return: The mccmnc of this MobileNetwork. # noqa: E501 + :rtype: str + """ + return self._mccmnc + + @mccmnc.setter + def mccmnc(self, mccmnc): + """Sets the mccmnc of this MobileNetwork. + + Mobile country and mobile network code # noqa: E501 + + :param mccmnc: The mccmnc of this MobileNetwork. # noqa: E501 + :type: str + """ + + self._mccmnc = mccmnc + + @property + def network_name(self): + """Gets the network_name of this MobileNetwork. # noqa: E501 + + Mobile network name # noqa: E501 + + :return: The network_name of this MobileNetwork. # noqa: E501 + :rtype: str + """ + return self._network_name + + @network_name.setter + def network_name(self, network_name): + """Sets the network_name of this MobileNetwork. + + Mobile network name # noqa: E501 + + :param network_name: The network_name of this MobileNetwork. # noqa: E501 + :type: str + """ + + self._network_name = network_name + + @property + def country_name(self): + """Gets the country_name of this MobileNetwork. # noqa: E501 + + Country name # noqa: E501 + + :return: The country_name of this MobileNetwork. # noqa: E501 + :rtype: str + """ + return self._country_name + + @country_name.setter + def country_name(self, country_name): + """Sets the country_name of this MobileNetwork. + + Country name # noqa: E501 + + :param country_name: The country_name of this MobileNetwork. # noqa: E501 + :type: str + """ + + self._country_name = country_name + + @property + def country_prefix(self): + """Gets the country_prefix of this MobileNetwork. # noqa: E501 + + Country prefix # noqa: E501 + + :return: The country_prefix of this MobileNetwork. # noqa: E501 + :rtype: str + """ + return self._country_prefix + + @country_prefix.setter + def country_prefix(self, country_prefix): + """Sets the country_prefix of this MobileNetwork. + + Country prefix # noqa: E501 + + :param country_prefix: The country_prefix of this MobileNetwork. # noqa: E501 + :type: str + """ + + self._country_prefix = country_prefix + + @property + def country_code(self): + """Gets the country_code of this MobileNetwork. # noqa: E501 + + Country code # noqa: E501 + + :return: The country_code of this MobileNetwork. # noqa: E501 + :rtype: str + """ + return self._country_code + + @country_code.setter + def country_code(self, country_code): + """Sets the country_code of this MobileNetwork. + + Country code # noqa: E501 + + :param country_code: The country_code of this MobileNetwork. # noqa: E501 + :type: str + """ + + self._country_code = country_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MobileNetwork): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/number_to_blacklist.py b/messente_api/models/number_to_blacklist.py index 2e039d5..68498ac 100644 --- a/messente_api/models/number_to_blacklist.py +++ b/messente_api/models/number_to_blacklist.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/numbers_to_investigate.py b/messente_api/models/numbers_to_investigate.py new file mode 100644 index 0000000..a3a9b1b --- /dev/null +++ b/messente_api/models/numbers_to_investigate.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NumbersToInvestigate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'numbers': 'list[str]' + } + + attribute_map = { + 'numbers': 'numbers' + } + + def __init__(self, numbers=None): # noqa: E501 + """NumbersToInvestigate - a model defined in OpenAPI""" # noqa: E501 + + self._numbers = None + self.discriminator = None + + self.numbers = numbers + + @property + def numbers(self): + """Gets the numbers of this NumbersToInvestigate. # noqa: E501 + + Array of phone numbers # noqa: E501 + + :return: The numbers of this NumbersToInvestigate. # noqa: E501 + :rtype: list[str] + """ + return self._numbers + + @numbers.setter + def numbers(self, numbers): + """Sets the numbers of this NumbersToInvestigate. + + Array of phone numbers # noqa: E501 + + :param numbers: The numbers of this NumbersToInvestigate. # noqa: E501 + :type: list[str] + """ + if numbers is None: + raise ValueError("Invalid value for `numbers`, must not be `None`") # noqa: E501 + + self._numbers = numbers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NumbersToInvestigate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/omni_message_create_success_response.py b/messente_api/models/omni_message_create_success_response.py index 3dc0df1..e759b82 100644 --- a/messente_api/models/omni_message_create_success_response.py +++ b/messente_api/models/omni_message_create_success_response.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/omnimessage.py b/messente_api/models/omnimessage.py index 2a38e71..47dfe70 100644 --- a/messente_api/models/omnimessage.py +++ b/messente_api/models/omnimessage.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/sms.py b/messente_api/models/sms.py index af00ddd..fd2c581 100644 --- a/messente_api/models/sms.py +++ b/messente_api/models/sms.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/statistics_report.py b/messente_api/models/statistics_report.py new file mode 100644 index 0000000..626dad2 --- /dev/null +++ b/messente_api/models/statistics_report.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StatisticsReport(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'total_messages': 'int', + 'total_price': 'str', + 'country': 'str' + } + + attribute_map = { + 'total_messages': 'total_messages', + 'total_price': 'total_price', + 'country': 'country' + } + + def __init__(self, total_messages=None, total_price=None, country=None): # noqa: E501 + """StatisticsReport - a model defined in OpenAPI""" # noqa: E501 + + self._total_messages = None + self._total_price = None + self._country = None + self.discriminator = None + + self.total_messages = total_messages + self.total_price = total_price + self.country = country + + @property + def total_messages(self): + """Gets the total_messages of this StatisticsReport. # noqa: E501 + + Sum of all messages # noqa: E501 + + :return: The total_messages of this StatisticsReport. # noqa: E501 + :rtype: int + """ + return self._total_messages + + @total_messages.setter + def total_messages(self, total_messages): + """Sets the total_messages of this StatisticsReport. + + Sum of all messages # noqa: E501 + + :param total_messages: The total_messages of this StatisticsReport. # noqa: E501 + :type: int + """ + if total_messages is None: + raise ValueError("Invalid value for `total_messages`, must not be `None`") # noqa: E501 + + self._total_messages = total_messages + + @property + def total_price(self): + """Gets the total_price of this StatisticsReport. # noqa: E501 + + Price for all messages # noqa: E501 + + :return: The total_price of this StatisticsReport. # noqa: E501 + :rtype: str + """ + return self._total_price + + @total_price.setter + def total_price(self, total_price): + """Sets the total_price of this StatisticsReport. + + Price for all messages # noqa: E501 + + :param total_price: The total_price of this StatisticsReport. # noqa: E501 + :type: str + """ + if total_price is None: + raise ValueError("Invalid value for `total_price`, must not be `None`") # noqa: E501 + + self._total_price = total_price + + @property + def country(self): + """Gets the country of this StatisticsReport. # noqa: E501 + + Target country of all messages # noqa: E501 + + :return: The country of this StatisticsReport. # noqa: E501 + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """Sets the country of this StatisticsReport. + + Target country of all messages # noqa: E501 + + :param country: The country of this StatisticsReport. # noqa: E501 + :type: str + """ + if country is None: + raise ValueError("Invalid value for `country`, must not be `None`") # noqa: E501 + + self._country = country + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StatisticsReport): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/statistics_report_settings.py b/messente_api/models/statistics_report_settings.py new file mode 100644 index 0000000..e57bb5e --- /dev/null +++ b/messente_api/models/statistics_report_settings.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StatisticsReportSettings(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'start_date': 'date', + 'end_date': 'date', + 'message_types': 'list[str]' + } + + attribute_map = { + 'start_date': 'start_date', + 'end_date': 'end_date', + 'message_types': 'message_types' + } + + def __init__(self, start_date=None, end_date=None, message_types=None): # noqa: E501 + """StatisticsReportSettings - a model defined in OpenAPI""" # noqa: E501 + + self._start_date = None + self._end_date = None + self._message_types = None + self.discriminator = None + + self.start_date = start_date + self.end_date = end_date + if message_types is not None: + self.message_types = message_types + + @property + def start_date(self): + """Gets the start_date of this StatisticsReportSettings. # noqa: E501 + + Start date for the report # noqa: E501 + + :return: The start_date of this StatisticsReportSettings. # noqa: E501 + :rtype: date + """ + return self._start_date + + @start_date.setter + def start_date(self, start_date): + """Sets the start_date of this StatisticsReportSettings. + + Start date for the report # noqa: E501 + + :param start_date: The start_date of this StatisticsReportSettings. # noqa: E501 + :type: date + """ + if start_date is None: + raise ValueError("Invalid value for `start_date`, must not be `None`") # noqa: E501 + + self._start_date = start_date + + @property + def end_date(self): + """Gets the end_date of this StatisticsReportSettings. # noqa: E501 + + End date for the report # noqa: E501 + + :return: The end_date of this StatisticsReportSettings. # noqa: E501 + :rtype: date + """ + return self._end_date + + @end_date.setter + def end_date(self, end_date): + """Sets the end_date of this StatisticsReportSettings. + + End date for the report # noqa: E501 + + :param end_date: The end_date of this StatisticsReportSettings. # noqa: E501 + :type: date + """ + if end_date is None: + raise ValueError("Invalid value for `end_date`, must not be `None`") # noqa: E501 + + self._end_date = end_date + + @property + def message_types(self): + """Gets the message_types of this StatisticsReportSettings. # noqa: E501 + + Optional list of message types (sms, viber, whatsapp, hlr) # noqa: E501 + + :return: The message_types of this StatisticsReportSettings. # noqa: E501 + :rtype: list[str] + """ + return self._message_types + + @message_types.setter + def message_types(self, message_types): + """Sets the message_types of this StatisticsReportSettings. + + Optional list of message types (sms, viber, whatsapp, hlr) # noqa: E501 + + :param message_types: The message_types of this StatisticsReportSettings. # noqa: E501 + :type: list[str] + """ + + self._message_types = message_types + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StatisticsReportSettings): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/statistics_report_success.py b/messente_api/models/statistics_report_success.py new file mode 100644 index 0000000..e21e630 --- /dev/null +++ b/messente_api/models/statistics_report_success.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StatisticsReportSuccess(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'reports': 'list[StatisticsReport]' + } + + attribute_map = { + 'reports': 'reports' + } + + def __init__(self, reports=None): # noqa: E501 + """StatisticsReportSuccess - a model defined in OpenAPI""" # noqa: E501 + + self._reports = None + self.discriminator = None + + self.reports = reports + + @property + def reports(self): + """Gets the reports of this StatisticsReportSuccess. # noqa: E501 + + Array of report objects # noqa: E501 + + :return: The reports of this StatisticsReportSuccess. # noqa: E501 + :rtype: list[StatisticsReport] + """ + return self._reports + + @reports.setter + def reports(self, reports): + """Sets the reports of this StatisticsReportSuccess. + + Array of report objects # noqa: E501 + + :param reports: The reports of this StatisticsReportSuccess. # noqa: E501 + :type: list[StatisticsReport] + """ + if reports is None: + raise ValueError("Invalid value for `reports`, must not be `None`") # noqa: E501 + + self._reports = reports + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StatisticsReportSuccess): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/status.py b/messente_api/models/status.py index 6f045e3..c4ffec6 100644 --- a/messente_api/models/status.py +++ b/messente_api/models/status.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/sync_number_lookup_result.py b/messente_api/models/sync_number_lookup_result.py new file mode 100644 index 0000000..4e090a6 --- /dev/null +++ b/messente_api/models/sync_number_lookup_result.py @@ -0,0 +1,332 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SyncNumberLookupResult(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'number': 'str', + 'roaming': 'bool', + 'ported': 'bool', + 'roaming_network': 'MobileNetwork', + 'current_network': 'MobileNetwork', + 'original_network': 'MobileNetwork', + 'ported_network': 'MobileNetwork', + 'status': 'str', + 'error': 'object' + } + + attribute_map = { + 'number': 'number', + 'roaming': 'roaming', + 'ported': 'ported', + 'roaming_network': 'roamingNetwork', + 'current_network': 'currentNetwork', + 'original_network': 'originalNetwork', + 'ported_network': 'portedNetwork', + 'status': 'status', + 'error': 'error' + } + + def __init__(self, number=None, roaming=None, ported=None, roaming_network=None, current_network=None, original_network=None, ported_network=None, status=None, error=None): # noqa: E501 + """SyncNumberLookupResult - a model defined in OpenAPI""" # noqa: E501 + + self._number = None + self._roaming = None + self._ported = None + self._roaming_network = None + self._current_network = None + self._original_network = None + self._ported_network = None + self._status = None + self._error = None + self.discriminator = None + + self.number = number + self.roaming = roaming + self.ported = ported + self.roaming_network = roaming_network + self.current_network = current_network + self.original_network = original_network + self.ported_network = ported_network + if status is not None: + self.status = status + if error is not None: + self.error = error + + @property + def number(self): + """Gets the number of this SyncNumberLookupResult. # noqa: E501 + + Phone number in e.164 format # noqa: E501 + + :return: The number of this SyncNumberLookupResult. # noqa: E501 + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """Sets the number of this SyncNumberLookupResult. + + Phone number in e.164 format # noqa: E501 + + :param number: The number of this SyncNumberLookupResult. # noqa: E501 + :type: str + """ + if number is None: + raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501 + + self._number = number + + @property + def roaming(self): + """Gets the roaming of this SyncNumberLookupResult. # noqa: E501 + + Indicates if a number is roaming # noqa: E501 + + :return: The roaming of this SyncNumberLookupResult. # noqa: E501 + :rtype: bool + """ + return self._roaming + + @roaming.setter + def roaming(self, roaming): + """Sets the roaming of this SyncNumberLookupResult. + + Indicates if a number is roaming # noqa: E501 + + :param roaming: The roaming of this SyncNumberLookupResult. # noqa: E501 + :type: bool + """ + + self._roaming = roaming + + @property + def ported(self): + """Gets the ported of this SyncNumberLookupResult. # noqa: E501 + + Indicates if a number is ported # noqa: E501 + + :return: The ported of this SyncNumberLookupResult. # noqa: E501 + :rtype: bool + """ + return self._ported + + @ported.setter + def ported(self, ported): + """Sets the ported of this SyncNumberLookupResult. + + Indicates if a number is ported # noqa: E501 + + :param ported: The ported of this SyncNumberLookupResult. # noqa: E501 + :type: bool + """ + + self._ported = ported + + @property + def roaming_network(self): + """Gets the roaming_network of this SyncNumberLookupResult. # noqa: E501 + + + :return: The roaming_network of this SyncNumberLookupResult. # noqa: E501 + :rtype: MobileNetwork + """ + return self._roaming_network + + @roaming_network.setter + def roaming_network(self, roaming_network): + """Sets the roaming_network of this SyncNumberLookupResult. + + + :param roaming_network: The roaming_network of this SyncNumberLookupResult. # noqa: E501 + :type: MobileNetwork + """ + + self._roaming_network = roaming_network + + @property + def current_network(self): + """Gets the current_network of this SyncNumberLookupResult. # noqa: E501 + + + :return: The current_network of this SyncNumberLookupResult. # noqa: E501 + :rtype: MobileNetwork + """ + return self._current_network + + @current_network.setter + def current_network(self, current_network): + """Sets the current_network of this SyncNumberLookupResult. + + + :param current_network: The current_network of this SyncNumberLookupResult. # noqa: E501 + :type: MobileNetwork + """ + + self._current_network = current_network + + @property + def original_network(self): + """Gets the original_network of this SyncNumberLookupResult. # noqa: E501 + + + :return: The original_network of this SyncNumberLookupResult. # noqa: E501 + :rtype: MobileNetwork + """ + return self._original_network + + @original_network.setter + def original_network(self, original_network): + """Sets the original_network of this SyncNumberLookupResult. + + + :param original_network: The original_network of this SyncNumberLookupResult. # noqa: E501 + :type: MobileNetwork + """ + + self._original_network = original_network + + @property + def ported_network(self): + """Gets the ported_network of this SyncNumberLookupResult. # noqa: E501 + + + :return: The ported_network of this SyncNumberLookupResult. # noqa: E501 + :rtype: MobileNetwork + """ + return self._ported_network + + @ported_network.setter + def ported_network(self, ported_network): + """Sets the ported_network of this SyncNumberLookupResult. + + + :param ported_network: The ported_network of this SyncNumberLookupResult. # noqa: E501 + :type: MobileNetwork + """ + + self._ported_network = ported_network + + @property + def status(self): + """Gets the status of this SyncNumberLookupResult. # noqa: E501 + + Status of the phone number # noqa: E501 + + :return: The status of this SyncNumberLookupResult. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this SyncNumberLookupResult. + + Status of the phone number # noqa: E501 + + :param status: The status of this SyncNumberLookupResult. # noqa: E501 + :type: str + """ + allowed_values = ["ON", "OFF", "INVALID", "UNKNOWN"] # noqa: E501 + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 + .format(status, allowed_values) + ) + + self._status = status + + @property + def error(self): + """Gets the error of this SyncNumberLookupResult. # noqa: E501 + + Indicates if any error occurred while handling the request # noqa: E501 + + :return: The error of this SyncNumberLookupResult. # noqa: E501 + :rtype: object + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this SyncNumberLookupResult. + + Indicates if any error occurred while handling the request # noqa: E501 + + :param error: The error of this SyncNumberLookupResult. # noqa: E501 + :type: object + """ + + self._error = error + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SyncNumberLookupResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/sync_number_lookup_success.py b/messente_api/models/sync_number_lookup_success.py new file mode 100644 index 0000000..5093499 --- /dev/null +++ b/messente_api/models/sync_number_lookup_success.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Messente API + + [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. # noqa: E501 + + The version of the OpenAPI document: 1.2.0 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SyncNumberLookupSuccess(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'request_id': 'str', + 'result': 'list[SyncNumberLookupResult]' + } + + attribute_map = { + 'request_id': 'request_id', + 'result': 'result' + } + + def __init__(self, request_id=None, result=None): # noqa: E501 + """SyncNumberLookupSuccess - a model defined in OpenAPI""" # noqa: E501 + + self._request_id = None + self._result = None + self.discriminator = None + + self.request_id = request_id + self.result = result + + @property + def request_id(self): + """Gets the request_id of this SyncNumberLookupSuccess. # noqa: E501 + + ID of the request # noqa: E501 + + :return: The request_id of this SyncNumberLookupSuccess. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this SyncNumberLookupSuccess. + + ID of the request # noqa: E501 + + :param request_id: The request_id of this SyncNumberLookupSuccess. # noqa: E501 + :type: str + """ + if request_id is None: + raise ValueError("Invalid value for `request_id`, must not be `None`") # noqa: E501 + + self._request_id = request_id + + @property + def result(self): + """Gets the result of this SyncNumberLookupSuccess. # noqa: E501 + + A container for phone number info objects # noqa: E501 + + :return: The result of this SyncNumberLookupSuccess. # noqa: E501 + :rtype: list[SyncNumberLookupResult] + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this SyncNumberLookupSuccess. + + A container for phone number info objects # noqa: E501 + + :param result: The result of this SyncNumberLookupSuccess. # noqa: E501 + :type: list[SyncNumberLookupResult] + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SyncNumberLookupSuccess): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/messente_api/models/telegram.py b/messente_api/models/telegram.py index 7c2f8c2..f98b60c 100644 --- a/messente_api/models/telegram.py +++ b/messente_api/models/telegram.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/text_store.py b/messente_api/models/text_store.py index b9a0a4e..8b9c099 100644 --- a/messente_api/models/text_store.py +++ b/messente_api/models/text_store.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/viber.py b/messente_api/models/viber.py index bc92e90..83535de 100644 --- a/messente_api/models/viber.py +++ b/messente_api/models/viber.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app.py b/messente_api/models/whats_app.py index 892327b..fe77a02 100644 --- a/messente_api/models/whats_app.py +++ b/messente_api/models/whats_app.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app_audio.py b/messente_api/models/whats_app_audio.py index 0c485af..abd6f7f 100644 --- a/messente_api/models/whats_app_audio.py +++ b/messente_api/models/whats_app_audio.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app_document.py b/messente_api/models/whats_app_document.py index 6df915b..01ee694 100644 --- a/messente_api/models/whats_app_document.py +++ b/messente_api/models/whats_app_document.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app_image.py b/messente_api/models/whats_app_image.py index ee57777..7004e8e 100644 --- a/messente_api/models/whats_app_image.py +++ b/messente_api/models/whats_app_image.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app_text.py b/messente_api/models/whats_app_text.py index 22115f2..bafaae2 100644 --- a/messente_api/models/whats_app_text.py +++ b/messente_api/models/whats_app_text.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/rest.py b/messente_api/rest.py index d3e39e5..56c5657 100644 --- a/messente_api/rest.py +++ b/messente_api/rest.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index dd89d53..78b72f8 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,9 @@ """ Messente API - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 - The version of the OpenAPI document: 1.1.0 + The version of the OpenAPI document: 1.2.0 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "messente-api" -VERSION = "1.1.0" +VERSION = "1.2.0" # To install the library, run the following # # python setup.py install @@ -35,7 +35,7 @@ packages=find_packages(), include_package_data=True, long_description="""\ - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + [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. # noqa: E501 """, long_description_content_type="text/markdown" )