Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Messente API Library

- Messente API version: 1.3.0
- Python package version: 1.3.0
- Python package version: 1.3.1

[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.

Expand Down
2 changes: 1 addition & 1 deletion docs/ContactEnvelope.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A container for a contact
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**contact** | [**ContactFields**](ContactFields.md) | | [optional]
**contact** | [**ContactResponseFields**](ContactResponseFields.md) | | [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)

Expand Down
3 changes: 1 addition & 2 deletions docs/ContactFields.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ContactFields

A container for fields of a contact
A container for fields of a request body of a contact
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand All @@ -14,7 +14,6 @@ Name | Type | Description | Notes
**custom2** | **str** | The second custom field | [optional]
**custom3** | **str** | The third custom field | [optional]
**custom4** | **str** | The fourth custom field | [optional]
**scheduled_deletion_date** | **date** | The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days | [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)

Expand Down
2 changes: 1 addition & 1 deletion docs/ContactListEnvelope.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A container for contacts
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**contacts** | [**list[ContactFields]**](ContactFields.md) | An array of contacts | [optional]
**contacts** | [**list[ContactResponseFields]**](ContactResponseFields.md) | An array of contacts | [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)

Expand Down
21 changes: 21 additions & 0 deletions docs/ContactResponseFields.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ContactResponseFields

A container for response fields of a contact
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**phone_number** | **str** | Phone number in e.164 format | [optional]
**email** | **str** | The email of the contact | [optional]
**first_name** | **str** | The first name of the contact | [optional]
**last_name** | **str** | The last name of the contact | [optional]
**company** | **str** | The company of the contact | [optional]
**title** | **str** | The title of the contact | [optional]
**custom** | **str** | The first custom field | [optional]
**custom2** | **str** | The second custom field | [optional]
**custom3** | **str** | The third custom field | [optional]
**custom4** | **str** | The fourth custom field | [optional]
**scheduled_deletion_date** | **date** | The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days | [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)


4 changes: 2 additions & 2 deletions docs/ContactsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ configuration = messente_api.Configuration(
with messente_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = messente_api.ContactsApi(api_client)
contact_fields = {"phoneNumber":"+37251000000","email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"} # ContactFields |
contact_fields = {"phoneNumber":"+37251000000","email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactFields |

try:
# Creates a new contact
Expand Down Expand Up @@ -575,7 +575,7 @@ with messente_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = messente_api.ContactsApi(api_client)
phone = '+37251000000' # str | A phone number
contact_update_fields = {"email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"} # ContactUpdateFields |
contact_update_fields = {"email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactUpdateFields |

try:
# Updates a contact
Expand Down
3 changes: 2 additions & 1 deletion messente_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from __future__ import absolute_import

__version__ = "1.3.0"
__version__ = "1.3.1"

# import apis into sdk package
from messente_api.api.blacklist_api import BlacklistApi
Expand All @@ -39,6 +39,7 @@
from messente_api.models.contact_envelope import ContactEnvelope
from messente_api.models.contact_fields import ContactFields
from messente_api.models.contact_list_envelope import ContactListEnvelope
from messente_api.models.contact_response_fields import ContactResponseFields
from messente_api.models.contact_update_fields import ContactUpdateFields
from messente_api.models.delivery_report_response import DeliveryReportResponse
from messente_api.models.delivery_result import DeliveryResult
Expand Down
2 changes: 1 addition & 1 deletion messente_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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.3.0/python'
self.user_agent = 'OpenAPI-Generator/1.3.1/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion messente_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.3.0\n"\
"SDK Package Version: 1.3.0".\
"SDK Package Version: 1.3.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
1 change: 1 addition & 0 deletions messente_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from messente_api.models.contact_envelope import ContactEnvelope
from messente_api.models.contact_fields import ContactFields
from messente_api.models.contact_list_envelope import ContactListEnvelope
from messente_api.models.contact_response_fields import ContactResponseFields
from messente_api.models.contact_update_fields import ContactUpdateFields
from messente_api.models.delivery_report_response import DeliveryReportResponse
from messente_api.models.delivery_result import DeliveryResult
Expand Down
6 changes: 3 additions & 3 deletions messente_api/models/contact_envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ContactEnvelope(object):
and the value is json key in definition.
"""
openapi_types = {
'contact': 'ContactFields'
'contact': 'ContactResponseFields'
}

attribute_map = {
Expand All @@ -59,7 +59,7 @@ def contact(self):


:return: The contact of this ContactEnvelope. # noqa: E501
:rtype: ContactFields
:rtype: ContactResponseFields
"""
return self._contact

Expand All @@ -69,7 +69,7 @@ def contact(self, contact):


:param contact: The contact of this ContactEnvelope. # noqa: E501
:type: ContactFields
:type: ContactResponseFields
"""

self._contact = contact
Expand Down
33 changes: 3 additions & 30 deletions messente_api/models/contact_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ class ContactFields(object):
'custom': 'str',
'custom2': 'str',
'custom3': 'str',
'custom4': 'str',
'scheduled_deletion_date': 'date'
'custom4': 'str'
}

attribute_map = {
Expand All @@ -57,11 +56,10 @@ class ContactFields(object):
'custom': 'custom',
'custom2': 'custom2',
'custom3': 'custom3',
'custom4': 'custom4',
'scheduled_deletion_date': 'scheduledDeletionDate'
'custom4': 'custom4'
}

def __init__(self, phone_number=None, email=None, first_name=None, last_name=None, company=None, title=None, custom=None, custom2=None, custom3=None, custom4=None, scheduled_deletion_date=None, local_vars_configuration=None): # noqa: E501
def __init__(self, phone_number=None, email=None, first_name=None, last_name=None, company=None, title=None, custom=None, custom2=None, custom3=None, custom4=None, local_vars_configuration=None): # noqa: E501
"""ContactFields - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
Expand All @@ -77,7 +75,6 @@ def __init__(self, phone_number=None, email=None, first_name=None, last_name=Non
self._custom2 = None
self._custom3 = None
self._custom4 = None
self._scheduled_deletion_date = None
self.discriminator = None

self.phone_number = phone_number
Expand All @@ -90,7 +87,6 @@ def __init__(self, phone_number=None, email=None, first_name=None, last_name=Non
self.custom2 = custom2
self.custom3 = custom3
self.custom4 = custom4
self.scheduled_deletion_date = scheduled_deletion_date

@property
def phone_number(self):
Expand Down Expand Up @@ -324,29 +320,6 @@ def custom4(self, custom4):

self._custom4 = custom4

@property
def scheduled_deletion_date(self):
"""Gets the scheduled_deletion_date of this ContactFields. # noqa: E501

The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days # noqa: E501

:return: The scheduled_deletion_date of this ContactFields. # noqa: E501
:rtype: date
"""
return self._scheduled_deletion_date

@scheduled_deletion_date.setter
def scheduled_deletion_date(self, scheduled_deletion_date):
"""Sets the scheduled_deletion_date of this ContactFields.

The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days # noqa: E501

:param scheduled_deletion_date: The scheduled_deletion_date of this ContactFields. # noqa: E501
:type: date
"""

self._scheduled_deletion_date = scheduled_deletion_date

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
6 changes: 3 additions & 3 deletions messente_api/models/contact_list_envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ContactListEnvelope(object):
and the value is json key in definition.
"""
openapi_types = {
'contacts': 'list[ContactFields]'
'contacts': 'list[ContactResponseFields]'
}

attribute_map = {
Expand All @@ -60,7 +60,7 @@ def contacts(self):
An array of contacts # noqa: E501

:return: The contacts of this ContactListEnvelope. # noqa: E501
:rtype: list[ContactFields]
:rtype: list[ContactResponseFields]
"""
return self._contacts

Expand All @@ -71,7 +71,7 @@ def contacts(self, contacts):
An array of contacts # noqa: E501

:param contacts: The contacts of this ContactListEnvelope. # noqa: E501
:type: list[ContactFields]
:type: list[ContactResponseFields]
"""

self._contacts = contacts
Expand Down
Loading