Skip to content

Commit f68698b

Browse files
author
Erik Räni
authored
🎉 1.3.1 (#10)
**Bug Fix** [phonebook-api][contacts] Make sure scheduled deletion date field is only in responses, not in requests
1 parent ae459ea commit f68698b

15 files changed

Lines changed: 435 additions & 47 deletions

README.md

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

33
- Messente API version: 1.3.0
4-
- Python package version: 1.3.0
4+
- Python package version: 1.3.1
55

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

docs/ContactEnvelope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A container for a contact
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**contact** | [**ContactFields**](ContactFields.md) | | [optional]
7+
**contact** | [**ContactResponseFields**](ContactResponseFields.md) | | [optional]
88

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

docs/ContactFields.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ContactFields
22

3-
A container for fields of a contact
3+
A container for fields of a request body of a contact
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
1414
**custom2** | **str** | The second custom field | [optional]
1515
**custom3** | **str** | The third custom field | [optional]
1616
**custom4** | **str** | The fourth custom field | [optional]
17-
**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]
1817

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

docs/ContactListEnvelope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A container for contacts
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**contacts** | [**list[ContactFields]**](ContactFields.md) | An array of contacts | [optional]
7+
**contacts** | [**list[ContactResponseFields]**](ContactResponseFields.md) | An array of contacts | [optional]
88

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

docs/ContactResponseFields.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# ContactResponseFields
2+
3+
A container for response fields of a contact
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**phone_number** | **str** | Phone number in e.164 format | [optional]
8+
**email** | **str** | The email of the contact | [optional]
9+
**first_name** | **str** | The first name of the contact | [optional]
10+
**last_name** | **str** | The last name of the contact | [optional]
11+
**company** | **str** | The company of the contact | [optional]
12+
**title** | **str** | The title of the contact | [optional]
13+
**custom** | **str** | The first custom field | [optional]
14+
**custom2** | **str** | The second custom field | [optional]
15+
**custom3** | **str** | The third custom field | [optional]
16+
**custom4** | **str** | The fourth custom field | [optional]
17+
**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]
18+
19+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
20+
21+

docs/ContactsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ configuration = messente_api.Configuration(
127127
with messente_api.ApiClient(configuration) as api_client:
128128
# Create an instance of the API class
129129
api_instance = messente_api.ContactsApi(api_client)
130-
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 |
130+
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 |
131131

132132
try:
133133
# Creates a new contact
@@ -575,7 +575,7 @@ with messente_api.ApiClient(configuration) as api_client:
575575
# Create an instance of the API class
576576
api_instance = messente_api.ContactsApi(api_client)
577577
phone = '+37251000000' # str | A phone number
578-
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 |
578+
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 |
579579

580580
try:
581581
# Updates a contact

messente_api/__init__.py

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

1616
from __future__ import absolute_import
1717

18-
__version__ = "1.3.0"
18+
__version__ = "1.3.1"
1919

2020
# import apis into sdk package
2121
from messente_api.api.blacklist_api import BlacklistApi
@@ -39,6 +39,7 @@
3939
from messente_api.models.contact_envelope import ContactEnvelope
4040
from messente_api.models.contact_fields import ContactFields
4141
from messente_api.models.contact_list_envelope import ContactListEnvelope
42+
from messente_api.models.contact_response_fields import ContactResponseFields
4243
from messente_api.models.contact_update_fields import ContactUpdateFields
4344
from messente_api.models.delivery_report_response import DeliveryReportResponse
4445
from messente_api.models.delivery_result import DeliveryResult

messente_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7979
self.default_headers[header_name] = header_value
8080
self.cookie = cookie
8181
# Set default User-Agent.
82-
self.user_agent = 'OpenAPI-Generator/1.3.0/python'
82+
self.user_agent = 'OpenAPI-Generator/1.3.1/python'
8383
self.client_side_validation = configuration.client_side_validation
8484

8585
def __enter__(self):

messente_api/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def to_debug_report(self):
350350
"OS: {env}\n"\
351351
"Python Version: {pyversion}\n"\
352352
"Version of the API: 1.3.0\n"\
353-
"SDK Package Version: 1.3.0".\
353+
"SDK Package Version: 1.3.1".\
354354
format(env=sys.platform, pyversion=sys.version)
355355

356356
def get_host_settings(self):

messente_api/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from messente_api.models.contact_envelope import ContactEnvelope
2020
from messente_api.models.contact_fields import ContactFields
2121
from messente_api.models.contact_list_envelope import ContactListEnvelope
22+
from messente_api.models.contact_response_fields import ContactResponseFields
2223
from messente_api.models.contact_update_fields import ContactUpdateFields
2324
from messente_api.models.delivery_report_response import DeliveryReportResponse
2425
from messente_api.models.delivery_result import DeliveryResult

0 commit comments

Comments
 (0)