From 4585e68f3ce3eb9bad1a834dd63fc8ff5fe13d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20R=C3=A4ni?= Date: Wed, 22 May 2019 16:41:15 +0300 Subject: [PATCH] 1.0.1 (#2) --- .openapi-generator/VERSION | 2 +- README.md | 4 +- composer.json | 5 +- docs/Api/BlacklistApi.md | 60 ++++++--- docs/Api/ContactsApi.md | 120 +++++++++++++----- docs/Api/DeliveryReportApi.md | 15 ++- docs/Api/GroupsApi.md | 75 ++++++++--- docs/Api/OmnimessageApi.md | 30 +++-- docs/Model/Channel.md | 5 +- docs/Model/ContactEnvelope.md | 5 +- docs/Model/ContactFields.md | 5 +- docs/Model/ContactListEnvelope.md | 5 +- docs/Model/ContactUpdateFields.md | 5 +- docs/Model/DeliveryReportResponse.md | 5 +- docs/Model/DeliveryResult.md | 5 +- docs/Model/ErrorCodeOmnichannel.md | 5 +- docs/Model/ErrorCodeOmnichannelMachine.md | 5 +- docs/Model/ErrorCodePhonebook.md | 5 +- docs/Model/ErrorItemOmnichannel.md | 5 +- docs/Model/ErrorItemPhonebook.md | 5 +- docs/Model/ErrorOmnichannel.md | 5 +- docs/Model/ErrorPhonebook.md | 5 +- docs/Model/ErrorTitleOmnichannel.md | 5 +- docs/Model/ErrorTitlePhonebook.md | 5 +- docs/Model/FetchBlacklistSuccess.md | 5 +- docs/Model/GroupEnvelope.md | 5 +- docs/Model/GroupListEnvelope.md | 5 +- docs/Model/GroupName.md | 5 +- docs/Model/GroupResponseFields.md | 5 +- docs/Model/MessageResult.md | 5 +- docs/Model/NumberToBlacklist.md | 5 +- .../Model/OmniMessageCreateSuccessResponse.md | 5 +- docs/Model/Omnimessage.md | 8 +- docs/Model/SMS.md | 5 +- docs/Model/Status.md | 5 +- docs/Model/TextStore.md | 10 ++ docs/Model/Viber.md | 5 +- docs/Model/WhatsApp.md | 5 +- docs/Model/WhatsAppAudio.md | 5 +- docs/Model/WhatsAppDocument.md | 5 +- docs/Model/WhatsAppImage.md | 5 +- docs/Model/WhatsAppText.md | 5 +- lib/Api/BlacklistApi.php | 42 +++++- lib/Api/ContactsApi.php | 50 ++++++-- lib/Api/DeliveryReportApi.php | 36 +++++- lib/Api/GroupsApi.php | 44 +++++-- lib/Api/OmnimessageApi.php | 38 +++++- lib/ApiException.php | 4 +- lib/Configuration.php | 10 +- lib/HeaderSelector.php | 4 +- lib/Model/Channel.php | 4 +- lib/Model/ContactEnvelope.php | 4 +- lib/Model/ContactFields.php | 4 +- lib/Model/ContactListEnvelope.php | 4 +- lib/Model/ContactUpdateFields.php | 4 +- lib/Model/DeliveryReportResponse.php | 4 +- lib/Model/DeliveryResult.php | 4 +- lib/Model/ErrorCodeOmnichannel.php | 4 +- lib/Model/ErrorCodeOmnichannelMachine.php | 4 +- lib/Model/ErrorCodePhonebook.php | 4 +- lib/Model/ErrorItemOmnichannel.php | 4 +- lib/Model/ErrorItemPhonebook.php | 4 +- lib/Model/ErrorOmnichannel.php | 4 +- lib/Model/ErrorPhonebook.php | 4 +- lib/Model/ErrorTitleOmnichannel.php | 4 +- lib/Model/ErrorTitlePhonebook.php | 4 +- lib/Model/FetchBlacklistSuccess.php | 4 +- lib/Model/GroupEnvelope.php | 4 +- lib/Model/GroupListEnvelope.php | 4 +- lib/Model/GroupName.php | 4 +- lib/Model/GroupResponseFields.php | 6 +- lib/Model/MessageResult.php | 4 +- lib/Model/ModelInterface.php | 4 +- lib/Model/NumberToBlacklist.php | 4 +- .../OmniMessageCreateSuccessResponse.php | 4 +- lib/Model/Omnimessage.php | 36 +++++- lib/Model/SMS.php | 6 +- lib/Model/Status.php | 4 +- lib/Model/TextStore.php | 65 ++++++++++ lib/Model/Viber.php | 6 +- lib/Model/WhatsApp.php | 6 +- lib/Model/WhatsAppAudio.php | 4 +- lib/Model/WhatsAppDocument.php | 4 +- lib/Model/WhatsAppImage.php | 4 +- lib/Model/WhatsAppText.php | 4 +- lib/ObjectSerializer.php | 9 +- test/Api/BlacklistApiTest.php | 4 +- test/Api/ContactsApiTest.php | 4 +- test/Api/DeliveryReportApiTest.php | 4 +- test/Api/GroupsApiTest.php | 4 +- test/Api/OmnimessageApiTest.php | 4 +- test/Model/ChannelTest.php | 4 +- test/Model/ContactEnvelopeTest.php | 4 +- test/Model/ContactFieldsTest.php | 4 +- test/Model/ContactListEnvelopeTest.php | 4 +- test/Model/ContactUpdateFieldsTest.php | 4 +- test/Model/DeliveryReportResponseTest.php | 4 +- test/Model/DeliveryResultTest.php | 4 +- .../Model/ErrorCodeOmnichannelMachineTest.php | 4 +- test/Model/ErrorCodeOmnichannelTest.php | 4 +- test/Model/ErrorCodePhonebookTest.php | 4 +- test/Model/ErrorItemOmnichannelTest.php | 4 +- test/Model/ErrorItemPhonebookTest.php | 4 +- test/Model/ErrorOmnichannelTest.php | 4 +- test/Model/ErrorPhonebookTest.php | 4 +- test/Model/ErrorTitleOmnichannelTest.php | 4 +- test/Model/ErrorTitlePhonebookTest.php | 4 +- test/Model/FetchBlacklistSuccessTest.php | 4 +- test/Model/GroupEnvelopeTest.php | 4 +- test/Model/GroupListEnvelopeTest.php | 4 +- test/Model/GroupNameTest.php | 4 +- test/Model/GroupResponseFieldsTest.php | 4 +- test/Model/MessageResultTest.php | 4 +- test/Model/NumberToBlacklistTest.php | 4 +- .../OmniMessageCreateSuccessResponseTest.php | 4 +- test/Model/OmnimessageTest.php | 11 +- test/Model/SMSTest.php | 4 +- test/Model/StatusTest.php | 4 +- test/Model/TextStoreTest.php | 80 ++++++++++++ test/Model/ViberTest.php | 4 +- test/Model/WhatsAppAudioTest.php | 4 +- test/Model/WhatsAppDocumentTest.php | 4 +- test/Model/WhatsAppImageTest.php | 4 +- test/Model/WhatsAppTest.php | 4 +- test/Model/WhatsAppTextTest.php | 4 +- 125 files changed, 858 insertions(+), 348 deletions(-) create mode 100644 docs/Model/TextStore.md create mode 100644 lib/Model/TextStore.php create mode 100644 test/Model/TextStoreTest.php diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index f9dfe82..0c89fc9 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -4.0.0-beta2 \ No newline at end of file +4.0.0 \ No newline at end of file diff --git a/README.md b/README.md index c51ce4f..6c50d3d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Messente API Library -- Messente API version: 1.0.0 -- PHP artifact version: 1.0.0 +- Messente API version: 1.0.1 +- PHP artifact version: 1.0.1 [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. diff --git a/composer.json b/composer.json index 570d92e..6b54a14 100644 --- a/composer.json +++ b/composer.json @@ -1,16 +1,17 @@ { "name": "messente/messente-api-php", - "version": "1.0.0", + "version": "1.0.1", "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 and WhatsApp 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.", "keywords": ["viber", "sms", "whatsapp", "phonebook", "openapitools", "openapi-generator", + "openapi", "php", "sdk", "rest", "api" ], "homepage": "https://messente.com", - "license": "proprietary", + "license": "unlicense", "authors": [ { "name": "Messente", diff --git a/docs/Api/BlacklistApi.md b/docs/Api/BlacklistApi.md index dd13323..3fce172 100644 --- a/docs/Api/BlacklistApi.md +++ b/docs/Api/BlacklistApi.md @@ -10,16 +10,20 @@ Method | HTTP request | Description [**isBlacklisted**](BlacklistApi.md#isBlacklisted) | **GET** /blacklist/{phone} | Checks if a phone number is blacklisted. -# **addToBlacklist** + +## addToBlacklist + > addToBlacklist($numberToBlacklist) Adds a phone number to the blacklist. ### Example + ```php setUsername('YOUR_USERNAME') @@ -44,6 +48,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **numberToBlacklist** | [**\Messente\Api\Model\NumberToBlacklist**](../Model/NumberToBlacklist.md)| Phone number to be blacklisted | @@ -58,21 +63,27 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json -[[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) +[[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) + + +## deleteFromBlacklist -# **deleteFromBlacklist** > deleteFromBlacklist($phone) Deletes a phone number from the blacklist. ### Example + ```php setUsername('YOUR_USERNAME') @@ -97,6 +108,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **phone** | **string**| A phone number | @@ -111,21 +123,27 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## fetchBlacklist -# **fetchBlacklist** > \Messente\Api\Model\FetchBlacklistSuccess fetchBlacklist() Returns all blacklisted phone numbers. ### Example + ```php setUsername('YOUR_USERNAME') @@ -149,6 +167,7 @@ try { ``` ### Parameters + This endpoint does not need any parameter. ### Return type @@ -161,21 +180,27 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## isBlacklisted -# **isBlacklisted** > isBlacklisted($phone) Checks if a phone number is blacklisted. ### Example + ```php setUsername('YOUR_USERNAME') @@ -200,6 +225,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **phone** | **string**| A phone number | @@ -214,8 +240,10 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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/Api/ContactsApi.md b/docs/Api/ContactsApi.md index 5f7e65b..0b6b7a6 100644 --- a/docs/Api/ContactsApi.md +++ b/docs/Api/ContactsApi.md @@ -14,16 +14,20 @@ Method | HTTP request | Description [**updateContact**](ContactsApi.md#updateContact) | **PATCH** /contacts/{phone} | Updates a contact. -# **addContactToGroup** + +## addContactToGroup + > object addContactToGroup($groupId, $phone) Adds a contact to a group. ### Example + ```php setUsername('YOUR_USERNAME') @@ -50,6 +54,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupId** | **string**| String in uuid format. | @@ -65,21 +70,27 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## createContact -# **createContact** > \Messente\Api\Model\ContactEnvelope createContact($contactFields) Creates a new contact. ### Example + ```php setUsername('YOUR_USERNAME') @@ -105,6 +116,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contactFields** | [**\Messente\Api\Model\ContactFields**](../Model/ContactFields.md)| | @@ -119,21 +131,27 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json -[[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) +[[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) + + +## deleteContact -# **deleteContact** > deleteContact($phone) Deletes a contact. ### Example + ```php setUsername('YOUR_USERNAME') @@ -158,6 +176,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **phone** | **string**| A phone number | @@ -172,21 +191,27 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## fetchContact -# **fetchContact** > \Messente\Api\Model\ContactEnvelope fetchContact($phone) Lists a contact. ### Example + ```php setUsername('YOUR_USERNAME') @@ -212,6 +237,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **phone** | **string**| A phone number | @@ -226,21 +252,27 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## fetchContactGroups -# **fetchContactGroups** > \Messente\Api\Model\GroupListEnvelope fetchContactGroups($phone) Lists groups of a contact. ### Example + ```php setUsername('YOUR_USERNAME') @@ -266,6 +298,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **phone** | **string**| A phone number | @@ -280,21 +313,27 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## fetchContacts -# **fetchContacts** > \Messente\Api\Model\ContactListEnvelope fetchContacts($groupIds) Returns all contacts. ### Example + ```php setUsername('YOUR_USERNAME') @@ -320,6 +359,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupIds** | [**string[]**](../Model/string.md)| Optional one or many group id strings in uuid format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | [optional] @@ -334,21 +374,27 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## removeContactFromGroup -# **removeContactFromGroup** > removeContactFromGroup($groupId, $phone) Removes a contact from a group. ### Example + ```php setUsername('YOUR_USERNAME') @@ -374,6 +420,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupId** | **string**| String in uuid format. | @@ -389,21 +436,27 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## updateContact -# **updateContact** > \Messente\Api\Model\ContactEnvelope updateContact($phone, $contactUpdateFields) Updates a contact. ### Example + ```php setUsername('YOUR_USERNAME') @@ -430,6 +483,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **phone** | **string**| A phone number | @@ -445,8 +499,10 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json -[[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) +[[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/Api/DeliveryReportApi.md b/docs/Api/DeliveryReportApi.md index a7afc12..d9358a1 100644 --- a/docs/Api/DeliveryReportApi.md +++ b/docs/Api/DeliveryReportApi.md @@ -7,16 +7,20 @@ Method | HTTP request | Description [**retrieveDeliveryReport**](DeliveryReportApi.md#retrieveDeliveryReport) | **GET** /omnimessage/{omnimessageId}/status | Retrieves the delivery report for the Omnimessage. -# **retrieveDeliveryReport** + +## retrieveDeliveryReport + > \Messente\Api\Model\DeliveryReportResponse retrieveDeliveryReport($omnimessageId) Retrieves the delivery report for the Omnimessage. ### Example + ```php setUsername('YOUR_USERNAME') @@ -42,6 +46,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **omnimessageId** | [**string**](../Model/.md)| UUID of the Omnimessage to for which the delivery report is to be retrieved | @@ -56,8 +61,10 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: */* +- **Content-Type**: Not defined +- **Accept**: */* -[[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) +[[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/Api/GroupsApi.md b/docs/Api/GroupsApi.md index 673701b..f542f3a 100644 --- a/docs/Api/GroupsApi.md +++ b/docs/Api/GroupsApi.md @@ -11,16 +11,20 @@ Method | HTTP request | Description [**updateGroup**](GroupsApi.md#updateGroup) | **PUT** /groups/{groupId} | Updates a group with the provided name. -# **createGroup** + +## createGroup + > \Messente\Api\Model\GroupEnvelope createGroup($groupName) Creates a new group with the provided name. ### Example + ```php setUsername('YOUR_USERNAME') @@ -46,6 +50,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupName** | [**\Messente\Api\Model\GroupName**](../Model/GroupName.md)| | @@ -60,21 +65,27 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json + +[[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) + -[[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) +## deleteGroup -# **deleteGroup** > deleteGroup($groupId) Deletes a group. ### Example + ```php setUsername('YOUR_USERNAME') @@ -99,6 +110,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupId** | **string**| String in uuid format. | @@ -113,21 +125,27 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## fetchGroup -# **fetchGroup** > \Messente\Api\Model\GroupEnvelope fetchGroup($groupId) Lists a group. ### Example + ```php setUsername('YOUR_USERNAME') @@ -153,6 +171,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupId** | **string**| String in uuid format. | @@ -167,21 +186,27 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) -[[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) -# **fetchGroups** +## fetchGroups + > \Messente\Api\Model\GroupListEnvelope fetchGroups() Returns all groups. ### Example + ```php setUsername('YOUR_USERNAME') @@ -205,6 +230,7 @@ try { ``` ### Parameters + This endpoint does not need any parameter. ### Return type @@ -217,21 +243,27 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + -[[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) +## updateGroup -# **updateGroup** > \Messente\Api\Model\GroupEnvelope updateGroup($groupId, $groupName) Updates a group with the provided name. ### Example + ```php setUsername('YOUR_USERNAME') @@ -258,6 +290,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupId** | **string**| String in uuid format. | @@ -273,8 +306,10 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json -[[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) +[[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/Api/OmnimessageApi.md b/docs/Api/OmnimessageApi.md index a65441d..5cf758b 100644 --- a/docs/Api/OmnimessageApi.md +++ b/docs/Api/OmnimessageApi.md @@ -8,16 +8,20 @@ Method | HTTP request | Description [**sendOmnimessage**](OmnimessageApi.md#sendOmnimessage) | **POST** /omnimessage | Sends an Omnimessage. -# **cancelScheduledMessage** + +## cancelScheduledMessage + > cancelScheduledMessage($omnimessageId) Cancels a scheduled Omnimessage. ### Example + ```php setUsername('YOUR_USERNAME') @@ -42,6 +46,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **omnimessageId** | [**string**](../Model/.md)| UUID of the scheduled Omnimessage to be cancelled | @@ -56,21 +61,27 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[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) +[[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) + + +## sendOmnimessage -# **sendOmnimessage** > \Messente\Api\Model\OmniMessageCreateSuccessResponse sendOmnimessage($omnimessage) Sends an Omnimessage. ### Example + ```php setUsername('YOUR_USERNAME') @@ -96,6 +107,7 @@ try { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **omnimessage** | [**\Messente\Api\Model\Omnimessage**](../Model/Omnimessage.md)| Omnimessage to be sent | @@ -110,8 +122,10 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json -[[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) +[[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/Model/Channel.md b/docs/Model/Channel.md index a76c8af..7028070 100644 --- a/docs/Model/Channel.md +++ b/docs/Model/Channel.md @@ -1,9 +1,10 @@ -# Channel +# # Channel ## 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) +[[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/Model/ContactEnvelope.md b/docs/Model/ContactEnvelope.md index dd4316f..59801f8 100644 --- a/docs/Model/ContactEnvelope.md +++ b/docs/Model/ContactEnvelope.md @@ -1,10 +1,11 @@ -# ContactEnvelope +# # ContactEnvelope ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **contact** | [**\Messente\Api\Model\ContactFields**](ContactFields.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) +[[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/Model/ContactFields.md b/docs/Model/ContactFields.md index 81c43e4..dba8c9a 100644 --- a/docs/Model/ContactFields.md +++ b/docs/Model/ContactFields.md @@ -1,6 +1,7 @@ -# ContactFields +# # ContactFields ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phoneNumber** | **string** | Phone number in e.164 format | @@ -14,6 +15,6 @@ Name | Type | Description | Notes **custom3** | **string** | | [optional] **custom4** | **string** | | [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) +[[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/Model/ContactListEnvelope.md b/docs/Model/ContactListEnvelope.md index fc1b8e7..c756423 100644 --- a/docs/Model/ContactListEnvelope.md +++ b/docs/Model/ContactListEnvelope.md @@ -1,10 +1,11 @@ -# ContactListEnvelope +# # ContactListEnvelope ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **contacts** | [**\Messente\Api\Model\ContactFields[]**](ContactFields.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) +[[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/Model/ContactUpdateFields.md b/docs/Model/ContactUpdateFields.md index ae1095f..8a5e491 100644 --- a/docs/Model/ContactUpdateFields.md +++ b/docs/Model/ContactUpdateFields.md @@ -1,6 +1,7 @@ -# ContactUpdateFields +# # ContactUpdateFields ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | | [optional] @@ -13,6 +14,6 @@ Name | Type | Description | Notes **custom3** | **string** | | [optional] **custom4** | **string** | | [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) +[[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/Model/DeliveryReportResponse.md b/docs/Model/DeliveryReportResponse.md index 06eb847..94669fd 100644 --- a/docs/Model/DeliveryReportResponse.md +++ b/docs/Model/DeliveryReportResponse.md @@ -1,12 +1,13 @@ -# DeliveryReportResponse +# # DeliveryReportResponse ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **statuses** | [**\Messente\Api\Model\DeliveryResult[]**](DeliveryResult.md) | Contains the delivery reports for each channnel, ordered by send order | **to** | **string** | Phone number in e.164 format | **omnimessageId** | **string** | Unique identifier for the Omnimessage | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/DeliveryResult.md b/docs/Model/DeliveryResult.md index 899243e..8b6607a 100644 --- a/docs/Model/DeliveryResult.md +++ b/docs/Model/DeliveryResult.md @@ -1,6 +1,7 @@ -# DeliveryResult +# # DeliveryResult ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**\Messente\Api\Model\Status**](Status.md) | | [optional] @@ -10,6 +11,6 @@ Name | Type | Description | Notes **err** | [**\Messente\Api\Model\ErrorCodeOmnichannelMachine**](ErrorCodeOmnichannelMachine.md) | | [optional] **timestamp** | [**\DateTime**](\DateTime.md) | When this status was received by Omnichannel API | [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) +[[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/Model/ErrorCodeOmnichannel.md b/docs/Model/ErrorCodeOmnichannel.md index c1b0288..a8d3477 100644 --- a/docs/Model/ErrorCodeOmnichannel.md +++ b/docs/Model/ErrorCodeOmnichannel.md @@ -1,9 +1,10 @@ -# ErrorCodeOmnichannel +# # ErrorCodeOmnichannel ## 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) +[[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/Model/ErrorCodeOmnichannelMachine.md b/docs/Model/ErrorCodeOmnichannelMachine.md index 7efcc02..9269270 100644 --- a/docs/Model/ErrorCodeOmnichannelMachine.md +++ b/docs/Model/ErrorCodeOmnichannelMachine.md @@ -1,9 +1,10 @@ -# ErrorCodeOmnichannelMachine +# # ErrorCodeOmnichannelMachine ## 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) +[[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/Model/ErrorCodePhonebook.md b/docs/Model/ErrorCodePhonebook.md index fdc5ce8..0718169 100644 --- a/docs/Model/ErrorCodePhonebook.md +++ b/docs/Model/ErrorCodePhonebook.md @@ -1,9 +1,10 @@ -# ErrorCodePhonebook +# # ErrorCodePhonebook ## 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) +[[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/Model/ErrorItemOmnichannel.md b/docs/Model/ErrorItemOmnichannel.md index aa44c16..e284dee 100644 --- a/docs/Model/ErrorItemOmnichannel.md +++ b/docs/Model/ErrorItemOmnichannel.md @@ -1,6 +1,7 @@ -# ErrorItemOmnichannel +# # ErrorItemOmnichannel ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | [**\Messente\Api\Model\ErrorTitleOmnichannel**](ErrorTitleOmnichannel.md) | | @@ -8,6 +9,6 @@ Name | Type | Description | Notes **code** | [**\Messente\Api\Model\ErrorCodeOmnichannel**](ErrorCodeOmnichannel.md) | | **source** | **string** | Describes which field is causing the issue in the payload, null for non 400 status code responses | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/ErrorItemPhonebook.md b/docs/Model/ErrorItemPhonebook.md index 1082fd3..d760d27 100644 --- a/docs/Model/ErrorItemPhonebook.md +++ b/docs/Model/ErrorItemPhonebook.md @@ -1,12 +1,13 @@ -# ErrorItemPhonebook +# # ErrorItemPhonebook ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | [**\Messente\Api\Model\ErrorTitlePhonebook**](ErrorTitlePhonebook.md) | | **detail** | **string** | Free form more detailed description of the error. | **code** | [**\Messente\Api\Model\ErrorCodePhonebook**](ErrorCodePhonebook.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) +[[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/Model/ErrorOmnichannel.md b/docs/Model/ErrorOmnichannel.md index 9dfc420..5ca0af1 100644 --- a/docs/Model/ErrorOmnichannel.md +++ b/docs/Model/ErrorOmnichannel.md @@ -1,10 +1,11 @@ -# ErrorOmnichannel +# # ErrorOmnichannel ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **errors** | [**\Messente\Api\Model\ErrorItemOmnichannel[]**](ErrorItemOmnichannel.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) +[[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/Model/ErrorPhonebook.md b/docs/Model/ErrorPhonebook.md index 02394b9..2d8c3fc 100644 --- a/docs/Model/ErrorPhonebook.md +++ b/docs/Model/ErrorPhonebook.md @@ -1,10 +1,11 @@ -# ErrorPhonebook +# # ErrorPhonebook ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **errors** | [**\Messente\Api\Model\ErrorItemPhonebook[]**](ErrorItemPhonebook.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) +[[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/Model/ErrorTitleOmnichannel.md b/docs/Model/ErrorTitleOmnichannel.md index 4988d32..b17deca 100644 --- a/docs/Model/ErrorTitleOmnichannel.md +++ b/docs/Model/ErrorTitleOmnichannel.md @@ -1,9 +1,10 @@ -# ErrorTitleOmnichannel +# # ErrorTitleOmnichannel ## 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) +[[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/Model/ErrorTitlePhonebook.md b/docs/Model/ErrorTitlePhonebook.md index cbd0cee..1efae0b 100644 --- a/docs/Model/ErrorTitlePhonebook.md +++ b/docs/Model/ErrorTitlePhonebook.md @@ -1,9 +1,10 @@ -# ErrorTitlePhonebook +# # ErrorTitlePhonebook ## 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) +[[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/Model/FetchBlacklistSuccess.md b/docs/Model/FetchBlacklistSuccess.md index 8ac35c1..b3ab136 100644 --- a/docs/Model/FetchBlacklistSuccess.md +++ b/docs/Model/FetchBlacklistSuccess.md @@ -1,10 +1,11 @@ -# FetchBlacklistSuccess +# # FetchBlacklistSuccess ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phoneNumbers** | **string[]** | | [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) +[[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/Model/GroupEnvelope.md b/docs/Model/GroupEnvelope.md index 0059d8f..421db2c 100644 --- a/docs/Model/GroupEnvelope.md +++ b/docs/Model/GroupEnvelope.md @@ -1,10 +1,11 @@ -# GroupEnvelope +# # GroupEnvelope ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **group** | [**\Messente\Api\Model\GroupResponseFields**](GroupResponseFields.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) +[[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/Model/GroupListEnvelope.md b/docs/Model/GroupListEnvelope.md index 4d238b5..73522fb 100644 --- a/docs/Model/GroupListEnvelope.md +++ b/docs/Model/GroupListEnvelope.md @@ -1,10 +1,11 @@ -# GroupListEnvelope +# # GroupListEnvelope ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **groups** | [**\Messente\Api\Model\GroupResponseFields[]**](GroupResponseFields.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) +[[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/Model/GroupName.md b/docs/Model/GroupName.md index e804200..df32227 100644 --- a/docs/Model/GroupName.md +++ b/docs/Model/GroupName.md @@ -1,10 +1,11 @@ -# GroupName +# # GroupName ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/GroupResponseFields.md b/docs/Model/GroupResponseFields.md index f2ec4eb..c0e51d3 100644 --- a/docs/Model/GroupResponseFields.md +++ b/docs/Model/GroupResponseFields.md @@ -1,6 +1,7 @@ -# GroupResponseFields +# # GroupResponseFields ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **string** | Id string in uuid format | @@ -8,6 +9,6 @@ Name | Type | Description | Notes **createdOn** | **string** | format %Y-%m-%dT%H:%M:%S.%fZ | [optional] **contactsCount** | **int** | | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/MessageResult.md b/docs/Model/MessageResult.md index d41f119..291b60c 100644 --- a/docs/Model/MessageResult.md +++ b/docs/Model/MessageResult.md @@ -1,12 +1,13 @@ -# MessageResult +# # MessageResult ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **messageId** | **string** | Unique identifier for the message | **channel** | [**\Messente\Api\Model\Channel**](Channel.md) | | **sender** | **string** | Sender that was used for the message | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/NumberToBlacklist.md b/docs/Model/NumberToBlacklist.md index 5c474cd..15862b1 100644 --- a/docs/Model/NumberToBlacklist.md +++ b/docs/Model/NumberToBlacklist.md @@ -1,10 +1,11 @@ -# NumberToBlacklist +# # NumberToBlacklist ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phoneNumber** | **string** | Phone number in e.164 format | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/OmniMessageCreateSuccessResponse.md b/docs/Model/OmniMessageCreateSuccessResponse.md index 29f6f61..37583a0 100644 --- a/docs/Model/OmniMessageCreateSuccessResponse.md +++ b/docs/Model/OmniMessageCreateSuccessResponse.md @@ -1,12 +1,13 @@ -# OmniMessageCreateSuccessResponse +# # OmniMessageCreateSuccessResponse ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **messages** | [**\Messente\Api\Model\MessageResult[]**](MessageResult.md) | List of messages that compose the Omnimessage | **to** | **string** | Phone number in e.164 format | **omnimessageId** | **string** | Unique identifier for the Omnimessage | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/Omnimessage.md b/docs/Model/Omnimessage.md index 790ffa3..480e14c 100644 --- a/docs/Model/Omnimessage.md +++ b/docs/Model/Omnimessage.md @@ -1,13 +1,15 @@ -# Omnimessage +# # Omnimessage ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **to** | **string** | Phone number in e.164 format | **messages** | [**OneOfViberSMSWhatsApp[]**](OneOfViberSMSWhatsApp.md) | | **dlrUrl** | **string** | URL where the delivery report will be sent | [optional] -**timeToSend** | [**\DateTime**](\DateTime.md) | Optional parameter for sending messages at some specific time in the future. Time must be specified in the 8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [optional] +**textStore** | [**\Messente\Api\Model\TextStore**](TextStore.md) | | [optional] +**timeToSend** | [**\DateTime**](\DateTime.md) | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [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) +[[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/Model/SMS.md b/docs/Model/SMS.md index fe12231..f9c1238 100644 --- a/docs/Model/SMS.md +++ b/docs/Model/SMS.md @@ -1,6 +1,7 @@ -# SMS +# # SMS ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **text** | **string** | Text content of the SMS | @@ -10,6 +11,6 @@ Name | Type | Description | Notes **udh** | **string** | hex-encoded string containing SMS UDH | [optional] **channel** | **string** | | [optional] [default to 'sms'] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/Status.md b/docs/Model/Status.md index 347eb0b..fb7c6c7 100644 --- a/docs/Model/Status.md +++ b/docs/Model/Status.md @@ -1,9 +1,10 @@ -# Status +# # Status ## 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) +[[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/Model/TextStore.md b/docs/Model/TextStore.md new file mode 100644 index 0000000..8fc3b29 --- /dev/null +++ b/docs/Model/TextStore.md @@ -0,0 +1,10 @@ +# # TextStore + +## 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/Model/Viber.md b/docs/Model/Viber.md index 338417f..47528ba 100644 --- a/docs/Model/Viber.md +++ b/docs/Model/Viber.md @@ -1,6 +1,7 @@ -# Viber +# # Viber ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sender** | **string** | Phone number or alphanumeric sender name | [optional] @@ -11,6 +12,6 @@ Name | Type | Description | Notes **buttonText** | **string** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional] **channel** | **string** | | [optional] [default to 'viber'] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/WhatsApp.md b/docs/Model/WhatsApp.md index 8ef9bec..da9451d 100644 --- a/docs/Model/WhatsApp.md +++ b/docs/Model/WhatsApp.md @@ -1,6 +1,7 @@ -# WhatsApp +# # WhatsApp ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sender** | **string** | Phone number or alphanumeric sender name | [optional] @@ -11,6 +12,6 @@ Name | Type | Description | Notes **audio** | [**\Messente\Api\Model\WhatsAppAudio**](WhatsAppAudio.md) | | [optional] **channel** | **string** | | [optional] [default to 'whatsapp'] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/WhatsAppAudio.md b/docs/Model/WhatsAppAudio.md index bd4b331..9be0439 100644 --- a/docs/Model/WhatsAppAudio.md +++ b/docs/Model/WhatsAppAudio.md @@ -1,10 +1,11 @@ -# WhatsAppAudio +# # WhatsAppAudio ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content** | **string** | Base64-encoded audio | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/WhatsAppDocument.md b/docs/Model/WhatsAppDocument.md index 5d2b1e5..5d5dc71 100644 --- a/docs/Model/WhatsAppDocument.md +++ b/docs/Model/WhatsAppDocument.md @@ -1,11 +1,12 @@ -# WhatsAppDocument +# # WhatsAppDocument ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caption** | **string** | Description for the document | [optional] **content** | **string** | Base64-encoded image | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/WhatsAppImage.md b/docs/Model/WhatsAppImage.md index 757b9a6..2c578d1 100644 --- a/docs/Model/WhatsAppImage.md +++ b/docs/Model/WhatsAppImage.md @@ -1,11 +1,12 @@ -# WhatsAppImage +# # WhatsAppImage ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caption** | **string** | Description for the image | [optional] **content** | **string** | Base64-encoded image | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/Model/WhatsAppText.md b/docs/Model/WhatsAppText.md index 687abcd..5bba372 100644 --- a/docs/Model/WhatsAppText.md +++ b/docs/Model/WhatsAppText.md @@ -1,11 +1,12 @@ -# WhatsAppText +# # WhatsAppText ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **previewUrl** | **bool** | Whether to display link preview if the message contains a hyperlink. | [optional] [default to true] **body** | **string** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/lib/Api/BlacklistApi.php b/lib/Api/BlacklistApi.php index 9b8bfe2..078f9bf 100644 --- a/lib/Api/BlacklistApi.php +++ b/lib/Api/BlacklistApi.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -64,19 +64,47 @@ class BlacklistApi */ protected $headerSelector; + /** + * @var int Host index + */ + protected $hostIndex; + /** * @param ClientInterface $client * @param Configuration $config * @param HeaderSelector $selector + * @param int $host_index (Optional) host index to select the list of hosts if defined in the OpenAPI spec */ public function __construct( ClientInterface $client = null, Configuration $config = null, - HeaderSelector $selector = null + HeaderSelector $selector = null, + $host_index = 0 ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $host_index; + } + + /** + * Set the host index + * + * @param int Host index (required) + */ + public function setHostIndex($host_index) + { + $this->hostIndex = $host_index; + } + + /** + * Get the host index + * + * @return Host index + */ + public function getHostIndex() + { + return $this->hostIndex; } /** @@ -318,7 +346,7 @@ protected function addToBlacklistRequest($numberToBlacklist) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -578,7 +606,7 @@ protected function deleteFromBlacklistRequest($phone) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -875,7 +903,7 @@ protected function fetchBlacklistRequest() } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -1127,7 +1155,7 @@ protected function isBlacklistedRequest($phone) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } diff --git a/lib/Api/ContactsApi.php b/lib/Api/ContactsApi.php index 309e132..08918b2 100644 --- a/lib/Api/ContactsApi.php +++ b/lib/Api/ContactsApi.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -64,19 +64,47 @@ class ContactsApi */ protected $headerSelector; + /** + * @var int Host index + */ + protected $hostIndex; + /** * @param ClientInterface $client * @param Configuration $config * @param HeaderSelector $selector + * @param int $host_index (Optional) host index to select the list of hosts if defined in the OpenAPI spec */ public function __construct( ClientInterface $client = null, Configuration $config = null, - HeaderSelector $selector = null + HeaderSelector $selector = null, + $host_index = 0 ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $host_index; + } + + /** + * Set the host index + * + * @param int Host index (required) + */ + public function setHostIndex($host_index) + { + $this->hostIndex = $host_index; + } + + /** + * Get the host index + * + * @return Host index + */ + public function getHostIndex() + { + return $this->hostIndex; } /** @@ -458,7 +486,7 @@ protected function addContactToGroupRequest($groupId, $phone) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -809,7 +837,7 @@ protected function createContactRequest($contactFields) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -1069,7 +1097,7 @@ protected function deleteContactRequest($phone) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -1405,7 +1433,7 @@ protected function fetchContactRequest($phone) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -1741,7 +1769,7 @@ protected function fetchContactGroupsRequest($phone) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -2065,7 +2093,7 @@ protected function fetchContactsRequest($groupIds = null) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -2344,7 +2372,7 @@ protected function removeContactFromGroupRequest($groupId, $phone) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -2714,7 +2742,7 @@ protected function updateContactRequest($phone, $contactUpdateFields) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } diff --git a/lib/Api/DeliveryReportApi.php b/lib/Api/DeliveryReportApi.php index 57c96be..11afeb8 100644 --- a/lib/Api/DeliveryReportApi.php +++ b/lib/Api/DeliveryReportApi.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -64,19 +64,47 @@ class DeliveryReportApi */ protected $headerSelector; + /** + * @var int Host index + */ + protected $hostIndex; + /** * @param ClientInterface $client * @param Configuration $config * @param HeaderSelector $selector + * @param int $host_index (Optional) host index to select the list of hosts if defined in the OpenAPI spec */ public function __construct( ClientInterface $client = null, Configuration $config = null, - HeaderSelector $selector = null + HeaderSelector $selector = null, + $host_index = 0 ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $host_index; + } + + /** + * Set the host index + * + * @param int Host index (required) + */ + public function setHostIndex($host_index) + { + $this->hostIndex = $host_index; + } + + /** + * Get the host index + * + * @return Host index + */ + public function getHostIndex() + { + return $this->hostIndex; } /** @@ -359,7 +387,7 @@ protected function retrieveDeliveryReportRequest($omnimessageId) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } diff --git a/lib/Api/GroupsApi.php b/lib/Api/GroupsApi.php index ef54825..f84258b 100644 --- a/lib/Api/GroupsApi.php +++ b/lib/Api/GroupsApi.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -64,19 +64,47 @@ class GroupsApi */ protected $headerSelector; + /** + * @var int Host index + */ + protected $hostIndex; + /** * @param ClientInterface $client * @param Configuration $config * @param HeaderSelector $selector + * @param int $host_index (Optional) host index to select the list of hosts if defined in the OpenAPI spec */ public function __construct( ClientInterface $client = null, Configuration $config = null, - HeaderSelector $selector = null + HeaderSelector $selector = null, + $host_index = 0 ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $host_index; + } + + /** + * Set the host index + * + * @param int Host index (required) + */ + public function setHostIndex($host_index) + { + $this->hostIndex = $host_index; + } + + /** + * Get the host index + * + * @return Host index + */ + public function getHostIndex() + { + return $this->hostIndex; } /** @@ -394,7 +422,7 @@ protected function createGroupRequest($groupName) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -646,7 +674,7 @@ protected function deleteGroupRequest($groupId) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -962,7 +990,7 @@ protected function fetchGroupRequest($groupId) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -1259,7 +1287,7 @@ protected function fetchGroupsRequest() } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -1629,7 +1657,7 @@ protected function updateGroupRequest($groupId, $groupName) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } diff --git a/lib/Api/OmnimessageApi.php b/lib/Api/OmnimessageApi.php index d467157..aa889e3 100644 --- a/lib/Api/OmnimessageApi.php +++ b/lib/Api/OmnimessageApi.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -64,19 +64,47 @@ class OmnimessageApi */ protected $headerSelector; + /** + * @var int Host index + */ + protected $hostIndex; + /** * @param ClientInterface $client * @param Configuration $config * @param HeaderSelector $selector + * @param int $host_index (Optional) host index to select the list of hosts if defined in the OpenAPI spec */ public function __construct( ClientInterface $client = null, Configuration $config = null, - HeaderSelector $selector = null + HeaderSelector $selector = null, + $host_index = 0 ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $host_index; + } + + /** + * Set the host index + * + * @param int Host index (required) + */ + public function setHostIndex($host_index) + { + $this->hostIndex = $host_index; + } + + /** + * Get the host index + * + * @return Host index + */ + public function getHostIndex() + { + return $this->hostIndex; } /** @@ -299,7 +327,7 @@ protected function cancelScheduledMessageRequest($omnimessageId) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } @@ -590,7 +618,7 @@ protected function sendOmnimessageRequest($omnimessage) } // this endpoint requires HTTP basic authentication - if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); } diff --git a/lib/ApiException.php b/lib/ApiException.php index cf83581..2d9d151 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Configuration.php b/lib/Configuration.php index 741a0fd..0f87cfc 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -88,7 +88,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/1.0.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/1.0.1/PHP'; /** * Debug switch (default set to false) @@ -396,8 +396,8 @@ public static function toDebugReport() $report = 'PHP SDK (Messente\Api) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 1.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 1.0.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 1.0.1' . PHP_EOL; + $report .= ' SDK Package Version: 1.0.1' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 74421b3..fea4b67 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/Channel.php b/lib/Model/Channel.php index 51764f1..daf5b20 100644 --- a/lib/Model/Channel.php +++ b/lib/Model/Channel.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ContactEnvelope.php b/lib/Model/ContactEnvelope.php index 1caa590..dcd5406 100644 --- a/lib/Model/ContactEnvelope.php +++ b/lib/Model/ContactEnvelope.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ContactFields.php b/lib/Model/ContactFields.php index 69e6a791..f625fea 100644 --- a/lib/Model/ContactFields.php +++ b/lib/Model/ContactFields.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ContactListEnvelope.php b/lib/Model/ContactListEnvelope.php index 5389964..f8c953e 100644 --- a/lib/Model/ContactListEnvelope.php +++ b/lib/Model/ContactListEnvelope.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ContactUpdateFields.php b/lib/Model/ContactUpdateFields.php index 935c592..677e3cf 100644 --- a/lib/Model/ContactUpdateFields.php +++ b/lib/Model/ContactUpdateFields.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/DeliveryReportResponse.php b/lib/Model/DeliveryReportResponse.php index b6227b3..524b27e 100644 --- a/lib/Model/DeliveryReportResponse.php +++ b/lib/Model/DeliveryReportResponse.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/DeliveryResult.php b/lib/Model/DeliveryResult.php index 1c39c11..4814ee5 100644 --- a/lib/Model/DeliveryResult.php +++ b/lib/Model/DeliveryResult.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorCodeOmnichannel.php b/lib/Model/ErrorCodeOmnichannel.php index 2111ed1..15b6fb6 100644 --- a/lib/Model/ErrorCodeOmnichannel.php +++ b/lib/Model/ErrorCodeOmnichannel.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorCodeOmnichannelMachine.php b/lib/Model/ErrorCodeOmnichannelMachine.php index fc4326e..15974ae 100644 --- a/lib/Model/ErrorCodeOmnichannelMachine.php +++ b/lib/Model/ErrorCodeOmnichannelMachine.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorCodePhonebook.php b/lib/Model/ErrorCodePhonebook.php index e65257a..228fc86 100644 --- a/lib/Model/ErrorCodePhonebook.php +++ b/lib/Model/ErrorCodePhonebook.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorItemOmnichannel.php b/lib/Model/ErrorItemOmnichannel.php index 79802b9..a13ce82 100644 --- a/lib/Model/ErrorItemOmnichannel.php +++ b/lib/Model/ErrorItemOmnichannel.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorItemPhonebook.php b/lib/Model/ErrorItemPhonebook.php index e6fedcf..4f39e91 100644 --- a/lib/Model/ErrorItemPhonebook.php +++ b/lib/Model/ErrorItemPhonebook.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorOmnichannel.php b/lib/Model/ErrorOmnichannel.php index 03c1d18..91c0705 100644 --- a/lib/Model/ErrorOmnichannel.php +++ b/lib/Model/ErrorOmnichannel.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorPhonebook.php b/lib/Model/ErrorPhonebook.php index 3b355a6..3bdc1f9 100644 --- a/lib/Model/ErrorPhonebook.php +++ b/lib/Model/ErrorPhonebook.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorTitleOmnichannel.php b/lib/Model/ErrorTitleOmnichannel.php index 326b2c8..8084602 100644 --- a/lib/Model/ErrorTitleOmnichannel.php +++ b/lib/Model/ErrorTitleOmnichannel.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ErrorTitlePhonebook.php b/lib/Model/ErrorTitlePhonebook.php index 427e0b5..69cd55a 100644 --- a/lib/Model/ErrorTitlePhonebook.php +++ b/lib/Model/ErrorTitlePhonebook.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/FetchBlacklistSuccess.php b/lib/Model/FetchBlacklistSuccess.php index baf025c..d73815d 100644 --- a/lib/Model/FetchBlacklistSuccess.php +++ b/lib/Model/FetchBlacklistSuccess.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/GroupEnvelope.php b/lib/Model/GroupEnvelope.php index b6f9992..dfe6a27 100644 --- a/lib/Model/GroupEnvelope.php +++ b/lib/Model/GroupEnvelope.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/GroupListEnvelope.php b/lib/Model/GroupListEnvelope.php index 9fc0ae2..73968d9 100644 --- a/lib/Model/GroupListEnvelope.php +++ b/lib/Model/GroupListEnvelope.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/GroupName.php b/lib/Model/GroupName.php index c7d0a37..9ae25ad 100644 --- a/lib/Model/GroupName.php +++ b/lib/Model/GroupName.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/GroupResponseFields.php b/lib/Model/GroupResponseFields.php index 633ae41..92c1175 100644 --- a/lib/Model/GroupResponseFields.php +++ b/lib/Model/GroupResponseFields.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -72,7 +72,7 @@ class GroupResponseFields implements ModelInterface, ArrayAccess 'id' => null, 'name' => null, 'createdOn' => null, - 'contactsCount' => 'int32' + 'contactsCount' => null ]; /** diff --git a/lib/Model/MessageResult.php b/lib/Model/MessageResult.php index 8fa1655..b59649f 100644 --- a/lib/Model/MessageResult.php +++ b/lib/Model/MessageResult.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index f9fa979..69e6a793 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/NumberToBlacklist.php b/lib/Model/NumberToBlacklist.php index 1de01c6..0ccebd9 100644 --- a/lib/Model/NumberToBlacklist.php +++ b/lib/Model/NumberToBlacklist.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/OmniMessageCreateSuccessResponse.php b/lib/Model/OmniMessageCreateSuccessResponse.php index 4016bb2..a21269c 100644 --- a/lib/Model/OmniMessageCreateSuccessResponse.php +++ b/lib/Model/OmniMessageCreateSuccessResponse.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/Omnimessage.php b/lib/Model/Omnimessage.php index ca9024e..88feda5 100644 --- a/lib/Model/Omnimessage.php +++ b/lib/Model/Omnimessage.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -60,6 +60,7 @@ class Omnimessage implements ModelInterface, ArrayAccess 'to' => 'string', 'messages' => 'OneOfViberSMSWhatsApp[]', 'dlrUrl' => 'string', + 'textStore' => '\Messente\Api\Model\TextStore', 'timeToSend' => '\DateTime' ]; @@ -72,6 +73,7 @@ class Omnimessage implements ModelInterface, ArrayAccess 'to' => null, 'messages' => null, 'dlrUrl' => 'url', + 'textStore' => null, 'timeToSend' => 'date-time' ]; @@ -105,6 +107,7 @@ public static function openAPIFormats() 'to' => 'to', 'messages' => 'messages', 'dlrUrl' => 'dlr_url', + 'textStore' => 'text_store', 'timeToSend' => 'time_to_send' ]; @@ -117,6 +120,7 @@ public static function openAPIFormats() 'to' => 'setTo', 'messages' => 'setMessages', 'dlrUrl' => 'setDlrUrl', + 'textStore' => 'setTextStore', 'timeToSend' => 'setTimeToSend' ]; @@ -129,6 +133,7 @@ public static function openAPIFormats() 'to' => 'getTo', 'messages' => 'getMessages', 'dlrUrl' => 'getDlrUrl', + 'textStore' => 'getTextStore', 'timeToSend' => 'getTimeToSend' ]; @@ -195,6 +200,7 @@ public function __construct(array $data = null) $this->container['to'] = isset($data['to']) ? $data['to'] : null; $this->container['messages'] = isset($data['messages']) ? $data['messages'] : null; $this->container['dlrUrl'] = isset($data['dlrUrl']) ? $data['dlrUrl'] : null; + $this->container['textStore'] = isset($data['textStore']) ? $data['textStore'] : null; $this->container['timeToSend'] = isset($data['timeToSend']) ? $data['timeToSend'] : null; } @@ -300,6 +306,30 @@ public function setDlrUrl($dlrUrl) return $this; } + /** + * Gets textStore + * + * @return \Messente\Api\Model\TextStore|null + */ + public function getTextStore() + { + return $this->container['textStore']; + } + + /** + * Sets textStore + * + * @param \Messente\Api\Model\TextStore|null $textStore textStore + * + * @return $this + */ + public function setTextStore($textStore) + { + $this->container['textStore'] = $textStore; + + return $this; + } + /** * Gets timeToSend * @@ -313,7 +343,7 @@ public function getTimeToSend() /** * Sets timeToSend * - * @param \DateTime|null $timeToSend Optional parameter for sending messages at some specific time in the future. Time must be specified in the 8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) + * @param \DateTime|null $timeToSend Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) * * @return $this */ diff --git a/lib/Model/SMS.php b/lib/Model/SMS.php index a00eae7..e91ecf8 100644 --- a/lib/Model/SMS.php +++ b/lib/Model/SMS.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -74,7 +74,7 @@ class SMS implements ModelInterface, ArrayAccess protected static $openAPIFormats = [ 'text' => null, 'sender' => null, - 'validity' => 'int32', + 'validity' => null, 'autoconvert' => null, 'udh' => null, 'channel' => null diff --git a/lib/Model/Status.php b/lib/Model/Status.php index 4a47f71..3487ab4 100644 --- a/lib/Model/Status.php +++ b/lib/Model/Status.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/TextStore.php b/lib/Model/TextStore.php new file mode 100644 index 0000000..69e38a1 --- /dev/null +++ b/lib/Model/TextStore.php @@ -0,0 +1,65 @@ + null, - 'validity' => 'int32', + 'validity' => null, 'text' => null, 'imageUrl' => null, 'buttonUrl' => null, diff --git a/lib/Model/WhatsApp.php b/lib/Model/WhatsApp.php index ee9d433..d7684e8 100644 --- a/lib/Model/WhatsApp.php +++ b/lib/Model/WhatsApp.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -74,7 +74,7 @@ class WhatsApp implements ModelInterface, ArrayAccess */ protected static $openAPIFormats = [ 'sender' => null, - 'validity' => 'int32', + 'validity' => null, 'text' => null, 'image' => null, 'document' => null, diff --git a/lib/Model/WhatsAppAudio.php b/lib/Model/WhatsAppAudio.php index 014ebdf..77d0d44 100644 --- a/lib/Model/WhatsAppAudio.php +++ b/lib/Model/WhatsAppAudio.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/WhatsAppDocument.php b/lib/Model/WhatsAppDocument.php index 8dcb9b8..f3cebf9 100644 --- a/lib/Model/WhatsAppDocument.php +++ b/lib/Model/WhatsAppDocument.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/WhatsAppImage.php b/lib/Model/WhatsAppImage.php index ed101cd..708ec03 100644 --- a/lib/Model/WhatsAppImage.php +++ b/lib/Model/WhatsAppImage.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/Model/WhatsAppText.php b/lib/Model/WhatsAppText.php index f678245..0ca9fe5 100644 --- a/lib/Model/WhatsAppText.php +++ b/lib/Model/WhatsAppText.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 3c6d0ed..61b705d 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -175,8 +175,9 @@ public static function toFormValue($value) * Take value and turn it into a string suitable for inclusion in * the parameter. If it's a string, pass through unchanged * If it's a datetime object, format it in ISO8601 + * If it's a boolean, convert it to "true" or "false". * - * @param string|\DateTime $value the value of the parameter + * @param string|bool|\DateTime $value the value of the parameter * * @return string the header string */ @@ -184,6 +185,8 @@ public static function toString($value) { if ($value instanceof \DateTime) { // datetime in ISO8601 format return $value->format(\DateTime::ATOM); + } else if (is_bool($value)) { + return $value ? 'true' : 'false'; } else { return $value; } diff --git a/test/Api/BlacklistApiTest.php b/test/Api/BlacklistApiTest.php index 1d14e5a..1a908db 100644 --- a/test/Api/BlacklistApiTest.php +++ b/test/Api/BlacklistApiTest.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Api/ContactsApiTest.php b/test/Api/ContactsApiTest.php index afbe748..ac23134 100644 --- a/test/Api/ContactsApiTest.php +++ b/test/Api/ContactsApiTest.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Api/DeliveryReportApiTest.php b/test/Api/DeliveryReportApiTest.php index 26ede99..1ec715f 100644 --- a/test/Api/DeliveryReportApiTest.php +++ b/test/Api/DeliveryReportApiTest.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Api/GroupsApiTest.php b/test/Api/GroupsApiTest.php index 4208060..cc1456c 100644 --- a/test/Api/GroupsApiTest.php +++ b/test/Api/GroupsApiTest.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Api/OmnimessageApiTest.php b/test/Api/OmnimessageApiTest.php index 8684151..c15b718 100644 --- a/test/Api/OmnimessageApiTest.php +++ b/test/Api/OmnimessageApiTest.php @@ -14,10 +14,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ChannelTest.php b/test/Model/ChannelTest.php index 229d1c8..8f152c6 100644 --- a/test/Model/ChannelTest.php +++ b/test/Model/ChannelTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ContactEnvelopeTest.php b/test/Model/ContactEnvelopeTest.php index 97a57f0..5460358 100644 --- a/test/Model/ContactEnvelopeTest.php +++ b/test/Model/ContactEnvelopeTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ContactFieldsTest.php b/test/Model/ContactFieldsTest.php index 6ba7104..29e7af7 100644 --- a/test/Model/ContactFieldsTest.php +++ b/test/Model/ContactFieldsTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ContactListEnvelopeTest.php b/test/Model/ContactListEnvelopeTest.php index 6263672..4afd5a2 100644 --- a/test/Model/ContactListEnvelopeTest.php +++ b/test/Model/ContactListEnvelopeTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ContactUpdateFieldsTest.php b/test/Model/ContactUpdateFieldsTest.php index 2cfcd6f..dd8d9ab 100644 --- a/test/Model/ContactUpdateFieldsTest.php +++ b/test/Model/ContactUpdateFieldsTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/DeliveryReportResponseTest.php b/test/Model/DeliveryReportResponseTest.php index 6e8fe1d..d6cdfa7 100644 --- a/test/Model/DeliveryReportResponseTest.php +++ b/test/Model/DeliveryReportResponseTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/DeliveryResultTest.php b/test/Model/DeliveryResultTest.php index cbeacac..58afc43 100644 --- a/test/Model/DeliveryResultTest.php +++ b/test/Model/DeliveryResultTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorCodeOmnichannelMachineTest.php b/test/Model/ErrorCodeOmnichannelMachineTest.php index dce13cc..6e7e4b0 100644 --- a/test/Model/ErrorCodeOmnichannelMachineTest.php +++ b/test/Model/ErrorCodeOmnichannelMachineTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorCodeOmnichannelTest.php b/test/Model/ErrorCodeOmnichannelTest.php index f66501e..c05e7fc 100644 --- a/test/Model/ErrorCodeOmnichannelTest.php +++ b/test/Model/ErrorCodeOmnichannelTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorCodePhonebookTest.php b/test/Model/ErrorCodePhonebookTest.php index 7224346..5987880 100644 --- a/test/Model/ErrorCodePhonebookTest.php +++ b/test/Model/ErrorCodePhonebookTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorItemOmnichannelTest.php b/test/Model/ErrorItemOmnichannelTest.php index 8f2db3f..c0228ba 100644 --- a/test/Model/ErrorItemOmnichannelTest.php +++ b/test/Model/ErrorItemOmnichannelTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorItemPhonebookTest.php b/test/Model/ErrorItemPhonebookTest.php index 3ea7eb6..63403d9 100644 --- a/test/Model/ErrorItemPhonebookTest.php +++ b/test/Model/ErrorItemPhonebookTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorOmnichannelTest.php b/test/Model/ErrorOmnichannelTest.php index 0ac6aaa..13e0e67 100644 --- a/test/Model/ErrorOmnichannelTest.php +++ b/test/Model/ErrorOmnichannelTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorPhonebookTest.php b/test/Model/ErrorPhonebookTest.php index 54eedde..c8516ed 100644 --- a/test/Model/ErrorPhonebookTest.php +++ b/test/Model/ErrorPhonebookTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorTitleOmnichannelTest.php b/test/Model/ErrorTitleOmnichannelTest.php index 3c64db8..61490da 100644 --- a/test/Model/ErrorTitleOmnichannelTest.php +++ b/test/Model/ErrorTitleOmnichannelTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/ErrorTitlePhonebookTest.php b/test/Model/ErrorTitlePhonebookTest.php index 32f5766..bbd2a0c 100644 --- a/test/Model/ErrorTitlePhonebookTest.php +++ b/test/Model/ErrorTitlePhonebookTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/FetchBlacklistSuccessTest.php b/test/Model/FetchBlacklistSuccessTest.php index 5a19ae5..82a42d2 100644 --- a/test/Model/FetchBlacklistSuccessTest.php +++ b/test/Model/FetchBlacklistSuccessTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/GroupEnvelopeTest.php b/test/Model/GroupEnvelopeTest.php index aab0c8c..775aa0b 100644 --- a/test/Model/GroupEnvelopeTest.php +++ b/test/Model/GroupEnvelopeTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/GroupListEnvelopeTest.php b/test/Model/GroupListEnvelopeTest.php index d63b776..dd68609 100644 --- a/test/Model/GroupListEnvelopeTest.php +++ b/test/Model/GroupListEnvelopeTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/GroupNameTest.php b/test/Model/GroupNameTest.php index bd94b88..da458b0 100644 --- a/test/Model/GroupNameTest.php +++ b/test/Model/GroupNameTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/GroupResponseFieldsTest.php b/test/Model/GroupResponseFieldsTest.php index 1a4803d..9e28dd3 100644 --- a/test/Model/GroupResponseFieldsTest.php +++ b/test/Model/GroupResponseFieldsTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/MessageResultTest.php b/test/Model/MessageResultTest.php index 0ac6283..f78e777 100644 --- a/test/Model/MessageResultTest.php +++ b/test/Model/MessageResultTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/NumberToBlacklistTest.php b/test/Model/NumberToBlacklistTest.php index ad84ad9..3874433 100644 --- a/test/Model/NumberToBlacklistTest.php +++ b/test/Model/NumberToBlacklistTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/OmniMessageCreateSuccessResponseTest.php b/test/Model/OmniMessageCreateSuccessResponseTest.php index d94df66..fd3424c 100644 --- a/test/Model/OmniMessageCreateSuccessResponseTest.php +++ b/test/Model/OmniMessageCreateSuccessResponseTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/OmnimessageTest.php b/test/Model/OmnimessageTest.php index b6d1fcf..64fcd66 100644 --- a/test/Model/OmnimessageTest.php +++ b/test/Model/OmnimessageTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** @@ -99,6 +99,13 @@ public function testPropertyDlrUrl() { } + /** + * Test attribute "textStore" + */ + public function testPropertyTextStore() + { + } + /** * Test attribute "timeToSend" */ diff --git a/test/Model/SMSTest.php b/test/Model/SMSTest.php index 7af03e6..b486249 100644 --- a/test/Model/SMSTest.php +++ b/test/Model/SMSTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/StatusTest.php b/test/Model/StatusTest.php index 68d2a34..cda1a2e 100644 --- a/test/Model/StatusTest.php +++ b/test/Model/StatusTest.php @@ -15,10 +15,10 @@ * * [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp 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. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.1 * Contact: messente@messente.com * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.0.0-beta2 + * OpenAPI Generator version: 4.0.0 */ /** diff --git a/test/Model/TextStoreTest.php b/test/Model/TextStoreTest.php new file mode 100644 index 0000000..a769a51 --- /dev/null +++ b/test/Model/TextStoreTest.php @@ -0,0 +1,80 @@ +