diff --git a/README.md b/README.md index 9d06b689..16c3cb14 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,6 @@ Class | Method | HTTP request | Description - [AddCredits](docs/Model/AddCredits.md) - [AddRemoveContactToList](docs/Model/AddRemoveContactToList.md) - - [CreaUpdateFolder](docs/Model/CreaUpdateFolder.md) - [CreateAttribute](docs/Model/CreateAttribute.md) - [CreateAttributeEnumemaration](docs/Model/CreateAttributeEnumemaration.md) - [CreateChild](docs/Model/CreateChild.md) @@ -209,6 +208,7 @@ Class | Method | HTTP request | Description - [CreateSmtpEmail](docs/Model/CreateSmtpEmail.md) - [CreateSmtpTemplate](docs/Model/CreateSmtpTemplate.md) - [CreateSmtpTemplateSender](docs/Model/CreateSmtpTemplateSender.md) + - [CreateUpdateFolder](docs/Model/CreateUpdateFolder.md) - [CreateWebhook](docs/Model/CreateWebhook.md) - [CreatedProcessId](docs/Model/CreatedProcessId.md) - [DeleteHardbounces](docs/Model/DeleteHardbounces.md) diff --git a/docs/Api/AttributesApi.md b/docs/Api/AttributesApi.md index f01deaa4..8978af53 100644 --- a/docs/Api/AttributesApi.md +++ b/docs/Api/AttributesApi.md @@ -73,7 +73,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\AttributesApi(); -$attributeId = "attributeId_example"; // string | id of the attribute +$attributeId = 789; // int | id of the attribute try { $api_instance->deleteAttribute($attributeId); @@ -87,7 +87,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **string**| id of the attribute | + **attributeId** | **int**| id of the attribute | ### Return type diff --git a/docs/Api/ContactsApi.md b/docs/Api/ContactsApi.md index cfaa4c96..e684fa35 100644 --- a/docs/Api/ContactsApi.md +++ b/docs/Api/ContactsApi.md @@ -46,7 +46,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list $contactEmails = new \SendinBlue\Client\Model\AddRemoveContactToList(); // \SendinBlue\Client\Model\AddRemoveContactToList | Emails addresses of the contacts try { @@ -62,7 +62,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | **contactEmails** | [**\SendinBlue\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails addresses of the contacts | ### Return type @@ -177,7 +177,7 @@ Name | Type | Description | Notes [[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) # **createFolder** -> \SendinBlue\Client\Model\CreateModel createFolder($name) +> \SendinBlue\Client\Model\CreateModel createFolder($createFolder) Create a folder @@ -192,10 +192,10 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$name = new \SendinBlue\Client\Model\CreaUpdateFolder(); // \SendinBlue\Client\Model\CreaUpdateFolder | Name of the folder +$createFolder = new \SendinBlue\Client\Model\CreateUpdateFolder(); // \SendinBlue\Client\Model\CreateUpdateFolder | Name of the folder try { - $result = $api_instance->createFolder($name); + $result = $api_instance->createFolder($createFolder); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->createFolder: ', $e->getMessage(), PHP_EOL; @@ -207,7 +207,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**\SendinBlue\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder | + **createFolder** | [**\SendinBlue\Client\Model\CreateUpdateFolder**](../Model/CreateUpdateFolder.md)| Name of the folder | ### Return type @@ -288,7 +288,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$attributeId = "attributeId_example"; // string | id of the attribute +$attributeId = 789; // int | id of the attribute try { $api_instance->deleteAttribute($attributeId); @@ -302,7 +302,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **string**| id of the attribute | + **attributeId** | **int**| id of the attribute | ### Return type @@ -335,7 +335,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$folderId = "folderId_example"; // string | Id of the folder +$folderId = 789; // int | Id of the folder try { $api_instance->deleteFolder($folderId); @@ -349,7 +349,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| Id of the folder | + **folderId** | **int**| Id of the folder | ### Return type @@ -382,7 +382,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list try { $api_instance->deleteList($listId); @@ -396,7 +396,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | ### Return type @@ -619,8 +619,8 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$listId = "listId_example"; // string | Id of the list -$modifiedSince = "modifiedSince_example"; // string | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) +$listId = 789; // int | Id of the list +$modifiedSince = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) $limit = 50; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page @@ -637,8 +637,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | - **modifiedSince** | **string**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional] + **listId** | **int**| Id of the list | + **modifiedSince** | **\DateTime**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **limit** | **int**| Number of documents per page | [optional] [default to 50] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] @@ -673,7 +673,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$folderId = "folderId_example"; // string | id of the folder +$folderId = 789; // int | id of the folder try { $result = $api_instance->getFolder($folderId); @@ -688,7 +688,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| id of the folder | + **folderId** | **int**| id of the folder | ### Return type @@ -721,7 +721,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$folderId = "folderId_example"; // string | Id of the folder +$folderId = 789; // int | Id of the folder $limit = 10; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page @@ -738,7 +738,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| Id of the folder | + **folderId** | **int**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] @@ -823,7 +823,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list try { $result = $api_instance->getList($listId); @@ -838,7 +838,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | ### Return type @@ -971,7 +971,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list $contactEmails = new \SendinBlue\Client\Model\AddRemoveContactToList(); // \SendinBlue\Client\Model\AddRemoveContactToList | Emails adresses of the contact try { @@ -987,7 +987,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | **contactEmails** | [**\SendinBlue\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails adresses of the contact | ### Return type @@ -1105,7 +1105,7 @@ void (empty response body) [[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) # **updateFolder** -> updateFolder($folderId, $name) +> updateFolder($folderId, $updateFolder) Update a contact folder @@ -1120,11 +1120,11 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$folderId = "folderId_example"; // string | Id of the folder -$name = new \SendinBlue\Client\Model\CreaUpdateFolder(); // \SendinBlue\Client\Model\CreaUpdateFolder | Name of the folder +$folderId = 789; // int | Id of the folder +$updateFolder = new \SendinBlue\Client\Model\CreateUpdateFolder(); // \SendinBlue\Client\Model\CreateUpdateFolder | Name of the folder try { - $api_instance->updateFolder($folderId, $name); + $api_instance->updateFolder($folderId, $updateFolder); } catch (Exception $e) { echo 'Exception when calling ContactsApi->updateFolder: ', $e->getMessage(), PHP_EOL; } @@ -1135,8 +1135,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| Id of the folder | - **name** | [**\SendinBlue\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder | + **folderId** | **int**| Id of the folder | + **updateFolder** | [**\SendinBlue\Client\Model\CreateUpdateFolder**](../Model/CreateUpdateFolder.md)| Name of the folder | ### Return type @@ -1169,7 +1169,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ContactsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list $updateList = new \SendinBlue\Client\Model\UpdateList(); // \SendinBlue\Client\Model\UpdateList | Values to update a list try { @@ -1184,7 +1184,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | **updateList** | [**\SendinBlue\Client\Model\UpdateList**](../Model/UpdateList.md)| Values to update a list | ### Return type diff --git a/docs/Api/EmailCampaignsApi.md b/docs/Api/EmailCampaignsApi.md index b413138c..9e8746ff 100644 --- a/docs/Api/EmailCampaignsApi.md +++ b/docs/Api/EmailCampaignsApi.md @@ -80,7 +80,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\EmailCampaignsApi(); -$campaignId = "campaignId_example"; // string | id of the campaign +$campaignId = 789; // int | id of the campaign try { $api_instance->deleteEmailCampaigns($campaignId); @@ -94,7 +94,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| id of the campaign | + **campaignId** | **int**| id of the campaign | ### Return type @@ -127,7 +127,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\EmailCampaignsApi(); -$campaignId = "campaignId_example"; // string | Id of the campaign +$campaignId = 789; // int | Id of the campaign $recipientExport = new \SendinBlue\Client\Model\EmailExportRecipients(); // \SendinBlue\Client\Model\EmailExportRecipients | Values to send for a recipient export request try { @@ -143,7 +143,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| Id of the campaign | + **campaignId** | **int**| Id of the campaign | **recipientExport** | [**\SendinBlue\Client\Model\EmailExportRecipients**](../Model/EmailExportRecipients.md)| Values to send for a recipient export request | [optional] ### Return type @@ -177,7 +177,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\EmailCampaignsApi(); -$campaignId = "campaignId_example"; // string | Id of the campaign +$campaignId = 789; // int | Id of the campaign try { $result = $api_instance->getEmailCampaign($campaignId); @@ -192,7 +192,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| Id of the campaign | + **campaignId** | **int**| Id of the campaign | ### Return type @@ -279,7 +279,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\EmailCampaignsApi(); -$campaignId = "campaignId_example"; // string | Id of the campaign +$campaignId = 789; // int | Id of the campaign try { $api_instance->sendEmailCampaignNow($campaignId); @@ -293,7 +293,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| Id of the campaign | + **campaignId** | **int**| Id of the campaign | ### Return type @@ -328,7 +328,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\EmailCampaignsApi(); -$campaignId = "campaignId_example"; // string | Id of the campaign +$campaignId = 789; // int | Id of the campaign $sendReport = new \SendinBlue\Client\Model\SendReport(); // \SendinBlue\Client\Model\SendReport | Values for send a report try { @@ -343,7 +343,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| Id of the campaign | + **campaignId** | **int**| Id of the campaign | **sendReport** | [**\SendinBlue\Client\Model\SendReport**](../Model/SendReport.md)| Values for send a report | ### Return type @@ -377,7 +377,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\EmailCampaignsApi(); -$campaignId = "campaignId_example"; // string | Id of the campaign +$campaignId = 789; // int | Id of the campaign $emailTo = new \SendinBlue\Client\Model\SendTestEmail(); // \SendinBlue\Client\Model\SendTestEmail | try { @@ -392,7 +392,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| Id of the campaign | + **campaignId** | **int**| Id of the campaign | **emailTo** | [**\SendinBlue\Client\Model\SendTestEmail**](../Model/SendTestEmail.md)| | ### Return type @@ -426,7 +426,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\EmailCampaignsApi(); -$campaignId = "campaignId_example"; // string | Id of the campaign +$campaignId = 789; // int | Id of the campaign $status = new \SendinBlue\Client\Model\UpdateCampaignStatus(); // \SendinBlue\Client\Model\UpdateCampaignStatus | Status of the campaign try { @@ -441,7 +441,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| Id of the campaign | + **campaignId** | **int**| Id of the campaign | **status** | [**\SendinBlue\Client\Model\UpdateCampaignStatus**](../Model/UpdateCampaignStatus.md)| Status of the campaign | ### Return type @@ -475,7 +475,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\EmailCampaignsApi(); -$campaignId = "campaignId_example"; // string | Id of the campaign +$campaignId = 789; // int | Id of the campaign $emailCampaign = new \SendinBlue\Client\Model\UpdateEmailCampaign(); // \SendinBlue\Client\Model\UpdateEmailCampaign | Values to update a campaign try { @@ -490,7 +490,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| Id of the campaign | + **campaignId** | **int**| Id of the campaign | **emailCampaign** | [**\SendinBlue\Client\Model\UpdateEmailCampaign**](../Model/UpdateEmailCampaign.md)| Values to update a campaign | ### Return type diff --git a/docs/Api/FoldersApi.md b/docs/Api/FoldersApi.md index 0878ca2a..27d40c22 100644 --- a/docs/Api/FoldersApi.md +++ b/docs/Api/FoldersApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **createFolder** -> \SendinBlue\Client\Model\CreateModel createFolder($name) +> \SendinBlue\Client\Model\CreateModel createFolder($createFolder) Create a folder @@ -28,10 +28,10 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\FoldersApi(); -$name = new \SendinBlue\Client\Model\CreaUpdateFolder(); // \SendinBlue\Client\Model\CreaUpdateFolder | Name of the folder +$createFolder = new \SendinBlue\Client\Model\CreateUpdateFolder(); // \SendinBlue\Client\Model\CreateUpdateFolder | Name of the folder try { - $result = $api_instance->createFolder($name); + $result = $api_instance->createFolder($createFolder); print_r($result); } catch (Exception $e) { echo 'Exception when calling FoldersApi->createFolder: ', $e->getMessage(), PHP_EOL; @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**\SendinBlue\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder | + **createFolder** | [**\SendinBlue\Client\Model\CreateUpdateFolder**](../Model/CreateUpdateFolder.md)| Name of the folder | ### Return type @@ -76,7 +76,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\FoldersApi(); -$folderId = "folderId_example"; // string | Id of the folder +$folderId = 789; // int | Id of the folder try { $api_instance->deleteFolder($folderId); @@ -90,7 +90,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| Id of the folder | + **folderId** | **int**| Id of the folder | ### Return type @@ -123,7 +123,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\FoldersApi(); -$folderId = "folderId_example"; // string | id of the folder +$folderId = 789; // int | id of the folder try { $result = $api_instance->getFolder($folderId); @@ -138,7 +138,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| id of the folder | + **folderId** | **int**| id of the folder | ### Return type @@ -171,7 +171,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\FoldersApi(); -$folderId = "folderId_example"; // string | Id of the folder +$folderId = 789; // int | Id of the folder $limit = 10; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page @@ -188,7 +188,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| Id of the folder | + **folderId** | **int**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] @@ -258,7 +258,7 @@ Name | Type | Description | Notes [[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) # **updateFolder** -> updateFolder($folderId, $name) +> updateFolder($folderId, $updateFolder) Update a contact folder @@ -273,11 +273,11 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\FoldersApi(); -$folderId = "folderId_example"; // string | Id of the folder -$name = new \SendinBlue\Client\Model\CreaUpdateFolder(); // \SendinBlue\Client\Model\CreaUpdateFolder | Name of the folder +$folderId = 789; // int | Id of the folder +$updateFolder = new \SendinBlue\Client\Model\CreateUpdateFolder(); // \SendinBlue\Client\Model\CreateUpdateFolder | Name of the folder try { - $api_instance->updateFolder($folderId, $name); + $api_instance->updateFolder($folderId, $updateFolder); } catch (Exception $e) { echo 'Exception when calling FoldersApi->updateFolder: ', $e->getMessage(), PHP_EOL; } @@ -288,8 +288,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| Id of the folder | - **name** | [**\SendinBlue\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder | + **folderId** | **int**| Id of the folder | + **updateFolder** | [**\SendinBlue\Client\Model\CreateUpdateFolder**](../Model/CreateUpdateFolder.md)| Name of the folder | ### Return type diff --git a/docs/Api/ListsApi.md b/docs/Api/ListsApi.md index 2812f93e..674b86b0 100644 --- a/docs/Api/ListsApi.md +++ b/docs/Api/ListsApi.md @@ -31,7 +31,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ListsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list $contactEmails = new \SendinBlue\Client\Model\AddRemoveContactToList(); // \SendinBlue\Client\Model\AddRemoveContactToList | Emails addresses of the contacts try { @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | **contactEmails** | [**\SendinBlue\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails addresses of the contacts | ### Return type @@ -129,7 +129,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ListsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list try { $api_instance->deleteList($listId); @@ -143,7 +143,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | ### Return type @@ -176,8 +176,8 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ListsApi(); -$listId = "listId_example"; // string | Id of the list -$modifiedSince = "modifiedSince_example"; // string | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) +$listId = 789; // int | Id of the list +$modifiedSince = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) $limit = 50; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page @@ -194,8 +194,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | - **modifiedSince** | **string**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional] + **listId** | **int**| Id of the list | + **modifiedSince** | **\DateTime**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **limit** | **int**| Number of documents per page | [optional] [default to 50] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] @@ -230,7 +230,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ListsApi(); -$folderId = "folderId_example"; // string | Id of the folder +$folderId = 789; // int | Id of the folder $limit = 10; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page @@ -247,7 +247,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folderId** | **string**| Id of the folder | + **folderId** | **int**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] @@ -282,7 +282,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ListsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list try { $result = $api_instance->getList($listId); @@ -297,7 +297,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | ### Return type @@ -380,7 +380,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ListsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list $contactEmails = new \SendinBlue\Client\Model\AddRemoveContactToList(); // \SendinBlue\Client\Model\AddRemoveContactToList | Emails adresses of the contact try { @@ -396,7 +396,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | **contactEmails** | [**\SendinBlue\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails adresses of the contact | ### Return type @@ -430,7 +430,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ListsApi(); -$listId = "listId_example"; // string | Id of the list +$listId = 789; // int | Id of the list $updateList = new \SendinBlue\Client\Model\UpdateList(); // \SendinBlue\Client\Model\UpdateList | Values to update a list try { @@ -445,7 +445,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listId** | **string**| Id of the list | + **listId** | **int**| Id of the list | **updateList** | [**\SendinBlue\Client\Model\UpdateList**](../Model/UpdateList.md)| Values to update a list | ### Return type diff --git a/docs/Api/ProcessApi.md b/docs/Api/ProcessApi.md index 89dfae26..196c13cd 100644 --- a/docs/Api/ProcessApi.md +++ b/docs/Api/ProcessApi.md @@ -24,7 +24,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ProcessApi(); -$processId = "processId_example"; // string | Id of the process +$processId = 789; // int | Id of the process try { $result = $api_instance->getProcess($processId); @@ -39,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **processId** | **string**| Id of the process | + **processId** | **int**| Id of the process | ### Return type diff --git a/docs/Api/ResellerApi.md b/docs/Api/ResellerApi.md index 8e963780..6f1dba09 100644 --- a/docs/Api/ResellerApi.md +++ b/docs/Api/ResellerApi.md @@ -31,7 +31,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ResellerApi(); -$childId = 56; // int | id of reseller's child +$childId = 789; // int | id of reseller's child $addCredits = new \SendinBlue\Client\Model\AddCredits(); // \SendinBlue\Client\Model\AddCredits | Values to post to add credit to a specific child account try { @@ -81,7 +81,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ResellerApi(); -$childId = 56; // int | id of reseller's child +$childId = 789; // int | id of reseller's child $ipId = new \SendinBlue\Client\Model\ManageIp(); // \SendinBlue\Client\Model\ManageIp | IP's id try { @@ -178,7 +178,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ResellerApi(); -$childId = 56; // int | id of reseller's child +$childId = 789; // int | id of reseller's child try { $api_instance->deleteResellerChild($childId); @@ -225,7 +225,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ResellerApi(); -$childId = 56; // int | id of reseller's child +$childId = 789; // int | id of reseller's child $ipId = new \SendinBlue\Client\Model\ManageIp(); // \SendinBlue\Client\Model\ManageIp | IP's id try { @@ -274,7 +274,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ResellerApi(); -$childId = 56; // int | id of reseller's child +$childId = 789; // int | id of reseller's child try { $result = $api_instance->getChildInfo($childId); @@ -366,7 +366,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ResellerApi(); -$childId = 56; // int | id of reseller's child +$childId = 789; // int | id of reseller's child $removeCredits = new \SendinBlue\Client\Model\RemoveCredits(); // \SendinBlue\Client\Model\RemoveCredits | Values to post to remove email or SMS credits from a specific child account try { @@ -416,7 +416,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\ResellerApi(); -$childId = 56; // int | id of reseller's child +$childId = 789; // int | id of reseller's child $resellerChild = new \SendinBlue\Client\Model\UpdateChild(); // \SendinBlue\Client\Model\UpdateChild | values to update in child profile try { diff --git a/docs/Api/SMSCampaignsApi.md b/docs/Api/SMSCampaignsApi.md index 25950ad8..dbea4e33 100644 --- a/docs/Api/SMSCampaignsApi.md +++ b/docs/Api/SMSCampaignsApi.md @@ -80,7 +80,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMSCampaignsApi(); -$campaignId = "campaignId_example"; // string | id of the SMS campaign +$campaignId = 789; // int | id of the SMS campaign try { $api_instance->deleteSMSCampaigns($campaignId); @@ -94,7 +94,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| id of the SMS campaign | + **campaignId** | **int**| id of the SMS campaign | ### Return type @@ -179,7 +179,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMSCampaignsApi(); -$campaignId = "campaignId_example"; // string | id of the SMS campaign +$campaignId = 789; // int | id of the SMS campaign $getSmsCampaign = new \SendinBlue\Client\Model\GetSmsCampaign(); // \SendinBlue\Client\Model\GetSmsCampaign | Values to update an SMS Campaign try { @@ -195,7 +195,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| id of the SMS campaign | + **campaignId** | **int**| id of the SMS campaign | **getSmsCampaign** | [**\SendinBlue\Client\Model\GetSmsCampaign**](../Model/GetSmsCampaign.md)| Values to update an SMS Campaign | ### Return type @@ -231,7 +231,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMSCampaignsApi(); -$campaignId = "campaignId_example"; // string | id of the campaign +$campaignId = 789; // int | id of the campaign $recipientExport = new \SendinBlue\Client\Model\RequestSMSRecipientExport(); // \SendinBlue\Client\Model\RequestSMSRecipientExport | Values to send for a recipient export request try { @@ -247,7 +247,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| id of the campaign | + **campaignId** | **int**| id of the campaign | **recipientExport** | [**\SendinBlue\Client\Model\RequestSMSRecipientExport**](../Model/RequestSMSRecipientExport.md)| Values to send for a recipient export request | [optional] ### Return type @@ -281,7 +281,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMSCampaignsApi(); -$campaignId = "campaignId_example"; // string | id of the campaign +$campaignId = 789; // int | id of the campaign try { $api_instance->sendSMSCampaignNow($campaignId); @@ -295,7 +295,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| id of the campaign | + **campaignId** | **int**| id of the campaign | ### Return type @@ -330,7 +330,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMSCampaignsApi(); -$campaignId = "campaignId_example"; // string | id of the campaign +$campaignId = 789; // int | id of the campaign $sendReport = new \SendinBlue\Client\Model\SendReport(); // \SendinBlue\Client\Model\SendReport | Values for send a report try { @@ -345,7 +345,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| id of the campaign | + **campaignId** | **int**| id of the campaign | **sendReport** | [**\SendinBlue\Client\Model\SendReport**](../Model/SendReport.md)| Values for send a report | ### Return type @@ -379,7 +379,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMSCampaignsApi(); -$campaignId = "campaignId_example"; // string | Id of the SMS campaign +$campaignId = 789; // int | Id of the SMS campaign $sendTestSms = new \SendinBlue\Client\Model\SendTestSms(); // \SendinBlue\Client\Model\SendTestSms | Mobile number to which send the test try { @@ -394,7 +394,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| Id of the SMS campaign | + **campaignId** | **int**| Id of the SMS campaign | **sendTestSms** | [**\SendinBlue\Client\Model\SendTestSms**](../Model/SendTestSms.md)| Mobile number to which send the test | ### Return type @@ -428,7 +428,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMSCampaignsApi(); -$campaignId = "campaignId_example"; // string | id of the campaign +$campaignId = 789; // int | id of the campaign $status = new \SendinBlue\Client\Model\UpdateCampaignStatus(); // \SendinBlue\Client\Model\UpdateCampaignStatus | Status of the campaign. try { @@ -443,7 +443,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| id of the campaign | + **campaignId** | **int**| id of the campaign | **status** | [**\SendinBlue\Client\Model\UpdateCampaignStatus**](../Model/UpdateCampaignStatus.md)| Status of the campaign. | ### Return type @@ -477,7 +477,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMSCampaignsApi(); -$campaignId = "campaignId_example"; // string | id of the SMS campaign +$campaignId = 789; // int | id of the SMS campaign $updateSmsCampaign = new \SendinBlue\Client\Model\UpdateSmsCampaign(); // \SendinBlue\Client\Model\UpdateSmsCampaign | Values to update an SMS Campaign try { @@ -492,7 +492,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignId** | **string**| id of the SMS campaign | + **campaignId** | **int**| id of the SMS campaign | **updateSmsCampaign** | [**\SendinBlue\Client\Model\UpdateSmsCampaign**](../Model/UpdateSmsCampaign.md)| Values to update an SMS Campaign | ### Return type diff --git a/docs/Api/SMTPApi.md b/docs/Api/SMTPApi.md index aa877176..eb004712 100644 --- a/docs/Api/SMTPApi.md +++ b/docs/Api/SMTPApi.md @@ -193,7 +193,7 @@ $email = "email_example"; // string | Filter the report for a specific email add $event = "event_example"; // string | Filter the report for a specific event type $tags = "tags_example"; // string | Filter the report for tags (serialized and urlencoded array) $messageId = "messageId_example"; // string | Filter on a specific message id -$templateId = "templateId_example"; // string | Filter on a specific template id +$templateId = 789; // int | Filter on a specific template id try { $result = $api_instance->getEmailEventReport($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId); @@ -217,7 +217,7 @@ Name | Type | Description | Notes **event** | **string**| Filter the report for a specific event type | [optional] **tags** | **string**| Filter the report for tags (serialized and urlencoded array) | [optional] **messageId** | **string**| Filter on a specific message id | [optional] - **templateId** | **string**| Filter on a specific template id | [optional] + **templateId** | **int**| Filter on a specific template id | [optional] ### Return type @@ -308,7 +308,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMTPApi(); -$templateId = "templateId_example"; // string | id of the template +$templateId = 789; // int | id of the template try { $result = $api_instance->getSmtpTemplate($templateId); @@ -323,7 +323,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **templateId** | **string**| id of the template | + **templateId** | **int**| id of the template | ### Return type @@ -408,7 +408,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMTPApi(); -$templateId = "templateId_example"; // string | Id of the template +$templateId = 789; // int | Id of the template $sendEmail = new \SendinBlue\Client\Model\SendEmail(); // \SendinBlue\Client\Model\SendEmail | try { @@ -424,7 +424,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **templateId** | **string**| Id of the template | + **templateId** | **int**| Id of the template | **sendEmail** | [**\SendinBlue\Client\Model\SendEmail**](../Model/SendEmail.md)| | ### Return type @@ -458,7 +458,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMTPApi(); -$templateId = "templateId_example"; // string | Id of the template +$templateId = 789; // int | Id of the template $sendTestEmail = new \SendinBlue\Client\Model\SendTestEmail(); // \SendinBlue\Client\Model\SendTestEmail | try { @@ -473,7 +473,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **templateId** | **string**| Id of the template | + **templateId** | **int**| Id of the template | **sendTestEmail** | [**\SendinBlue\Client\Model\SendTestEmail**](../Model/SendTestEmail.md)| | ### Return type @@ -555,7 +555,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SMTPApi(); -$templateId = "templateId_example"; // string | id of the template +$templateId = 789; // int | id of the template $smtpTemplate = new \SendinBlue\Client\Model\UpdateSmtpTemplate(); // \SendinBlue\Client\Model\UpdateSmtpTemplate | values to update in smtp template try { @@ -570,7 +570,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **templateId** | **string**| id of the template | + **templateId** | **int**| id of the template | **smtpTemplate** | [**\SendinBlue\Client\Model\UpdateSmtpTemplate**](../Model/UpdateSmtpTemplate.md)| values to update in smtp template | ### Return type diff --git a/docs/Api/SendersApi.md b/docs/Api/SendersApi.md index e4139354..0ae40011 100644 --- a/docs/Api/SendersApi.md +++ b/docs/Api/SendersApi.md @@ -76,7 +76,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SendersApi(); -$senderId = "senderId_example"; // string | Id of the sender +$senderId = 789; // int | Id of the sender try { $api_instance->deleteSender($senderId); @@ -90,7 +90,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **senderId** | **string**| Id of the sender | + **senderId** | **int**| Id of the sender | ### Return type @@ -167,7 +167,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SendersApi(); -$senderId = "senderId_example"; // string | Id of the sender +$senderId = 789; // int | Id of the sender try { $result = $api_instance->getIpsFromSender($senderId); @@ -182,7 +182,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **senderId** | **string**| Id of the sender | + **senderId** | **int**| Id of the sender | ### Return type @@ -265,7 +265,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\SendersApi(); -$senderId = "senderId_example"; // string | Id of the sender +$senderId = 789; // int | Id of the sender $sender = new \SendinBlue\Client\Model\UpdateSender(); // \SendinBlue\Client\Model\UpdateSender | sender's name try { @@ -280,7 +280,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **senderId** | **string**| Id of the sender | + **senderId** | **int**| Id of the sender | **sender** | [**\SendinBlue\Client\Model\UpdateSender**](../Model/UpdateSender.md)| sender's name | [optional] ### Return type diff --git a/docs/Api/WebhooksApi.md b/docs/Api/WebhooksApi.md index a78d499e..4ac9b31e 100644 --- a/docs/Api/WebhooksApi.md +++ b/docs/Api/WebhooksApi.md @@ -75,7 +75,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\WebhooksApi(); -$webhookId = "webhookId_example"; // string | Id of the webhook +$webhookId = 789; // int | Id of the webhook try { $api_instance->deleteWebhook($webhookId); @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhookId** | **string**| Id of the webhook | + **webhookId** | **int**| Id of the webhook | ### Return type @@ -122,7 +122,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\WebhooksApi(); -$webhookId = "webhookId_example"; // string | Id of the webhook +$webhookId = 789; // int | Id of the webhook try { $result = $api_instance->getWebhook($webhookId); @@ -137,7 +137,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhookId** | **string**| Id of the webhook | + **webhookId** | **int**| Id of the webhook | ### Return type @@ -218,7 +218,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); $api_instance = new SendinBlue\Client\Api\WebhooksApi(); -$webhookId = "webhookId_example"; // string | Id of the webhook +$webhookId = 789; // int | Id of the webhook $updateWebhook = new \SendinBlue\Client\Model\UpdateWebhook(); // \SendinBlue\Client\Model\UpdateWebhook | Values to update a webhook try { @@ -233,7 +233,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhookId** | **string**| Id of the webhook | + **webhookId** | **int**| Id of the webhook | **updateWebhook** | [**\SendinBlue\Client\Model\UpdateWebhook**](../Model/UpdateWebhook.md)| Values to update a webhook | ### Return type diff --git a/docs/Model/CreateEmailCampaign.md b/docs/Model/CreateEmailCampaign.md index 32c0d1c7..0001e190 100644 --- a/docs/Model/CreateEmailCampaign.md +++ b/docs/Model/CreateEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **string** | Name of the campaign | **htmlContent** | **string** | Mandatory if htmlUrl is empty. Body of the message (HTML) | [optional] **htmlUrl** | **string** | Mandatory if htmlContent is empty. Url to the message (HTML) | [optional] -**scheduledAt** | **string** | Sending date and time (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduledAt** | **\DateTime** | Sending date and time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **subject** | **string** | Subject of the campaign | **replyTo** | **string** | Email on which the campaign recipients will be able to reply to | [optional] **toField** | **string** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database | [optional] diff --git a/docs/Model/CreateSmsCampaign.md b/docs/Model/CreateSmsCampaign.md index 0b8ab5ba..e9b48f76 100644 --- a/docs/Model/CreateSmsCampaign.md +++ b/docs/Model/CreateSmsCampaign.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **sender** | **string** | Name of the sender. The number of characters is limited to 11 | **content** | **string** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] **recipients** | [**\SendinBlue\Client\Model\CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] -**scheduledAt** | **string** | Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduledAt** | **\DateTime** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CreaUpdateFolder.md b/docs/Model/CreateUpdateFolder.md similarity index 94% rename from docs/Model/CreaUpdateFolder.md rename to docs/Model/CreateUpdateFolder.md index 9077a029..0a4d2e08 100644 --- a/docs/Model/CreaUpdateFolder.md +++ b/docs/Model/CreateUpdateFolder.md @@ -1,4 +1,4 @@ -# CreaUpdateFolder +# CreateUpdateFolder ## Properties Name | Type | Description | Notes diff --git a/docs/Model/DeleteHardbounces.md b/docs/Model/DeleteHardbounces.md index 6b1dce95..ee1e5dad 100644 --- a/docs/Model/DeleteHardbounces.md +++ b/docs/Model/DeleteHardbounces.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**startDate** | [**\DateTime**](Date.md) | Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate | [optional] -**endDate** | [**\DateTime**](Date.md) | Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate | [optional] +**startDate** | **\DateTime** | Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate | [optional] +**endDate** | **\DateTime** | Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate | [optional] **contactEmail** | **string** | Target a specific email address | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetAccountPlan.md b/docs/Model/GetAccountPlan.md index e3f60a6a..becaf513 100644 --- a/docs/Model/GetAccountPlan.md +++ b/docs/Model/GetAccountPlan.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes **type** | **string** | Displays the plan type of the user | **creditsType** | **string** | This is the type of the credit, \"User Limit\" or \"Send Limit\" are two possible types of credit of a user. \"User Limit\" implies the total number of subscribers you can add to your account, and \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. | **credits** | **float** | Remaining credits of the user. This can either be \"User Limit\" or \"Send Limit\" depending on the plan. | +**startDate** | **\DateTime** | Date of the period from which the plan will start (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) | [optional] +**endDate** | **\DateTime** | Date of the period from which the plan will end (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetCampaignOverview.md b/docs/Model/GetCampaignOverview.md index c252a61c..4e30e7cc 100644 --- a/docs/Model/GetCampaignOverview.md +++ b/docs/Model/GetCampaignOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **string** | Subject of the campaign | **type** | **string** | Type of campaign | **status** | **string** | Status of the campaign | -**scheduledAt** | **string** | Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduledAt** | **\DateTime** | Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetContactCampaignStatsOpened.md b/docs/Model/GetContactCampaignStatsOpened.md index 627afc3e..9f87a379 100644 --- a/docs/Model/GetContactCampaignStatsOpened.md +++ b/docs/Model/GetContactCampaignStatsOpened.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaignId** | **int** | ID of the campaign which generated the event | **count** | **int** | Number of openings of the campaign | -**eventTime** | **string** | Date of the event | +**eventTime** | **\DateTime** | Date of the event | **ip** | **string** | IP from which the user has opened the campaign | [[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/GetContactCampaignStatsTransacAttributes.md b/docs/Model/GetContactCampaignStatsTransacAttributes.md index bfe92bbf..55405804 100644 --- a/docs/Model/GetContactCampaignStatsTransacAttributes.md +++ b/docs/Model/GetContactCampaignStatsTransacAttributes.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**orderDate** | [**\DateTime**](Date.md) | Date of the order | +**orderDate** | **\DateTime** | Date of the order | **orderPrice** | **float** | Price of the order | **orderId** | **int** | ID of the order | diff --git a/docs/Model/GetContactDetails.md b/docs/Model/GetContactDetails.md index 7dbadf05..f0f3398b 100644 --- a/docs/Model/GetContactDetails.md +++ b/docs/Model/GetContactDetails.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **int** | ID of the contact for which you requested the details | **emailBlacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | **smsBlacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**modifiedAt** | **string** | Last modification date of the contact (YYYY-MM-DD HH:mm:ss) | +**modifiedAt** | **\DateTime** | Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | **listIds** | **int[]** | | **listUnsubscribed** | **int[]** | | [optional] **attributes** | **map[string,string]** | | diff --git a/docs/Model/GetEmailCampaign.md b/docs/Model/GetEmailCampaign.md index c405be84..27274531 100644 --- a/docs/Model/GetEmailCampaign.md +++ b/docs/Model/GetEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **string** | Subject of the campaign | **type** | **string** | Type of campaign | **status** | **string** | Status of the campaign | -**scheduledAt** | **string** | Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduledAt** | **\DateTime** | Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **testSent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | **header** | **string** | Header of the campaign | **footer** | **string** | Footer of the campaign | @@ -18,8 +18,8 @@ Name | Type | Description | Notes **htmlContent** | **string** | HTML content of the campaign | **shareLink** | **string** | Link to share the campaign on social medias | [optional] **tag** | **string** | Tag of the campaign | -**createdAt** | **string** | Creation date of the campaign (YYYY-MM-DD HH:mm:ss) | -**modifiedAt** | **string** | Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) | +**createdAt** | **\DateTime** | Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **\DateTime** | Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | **inlineImageActivation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] **mirrorActive** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] diff --git a/docs/Model/GetEmailEventReportEvents.md b/docs/Model/GetEmailEventReportEvents.md index f0326c0a..6e30411b 100644 --- a/docs/Model/GetEmailEventReportEvents.md +++ b/docs/Model/GetEmailEventReportEvents.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Email address which generates the event | -**date** | [**\DateTime**](Date.md) | Date on which the event has been generated | +**date** | **\DateTime** | Date on which the event has been generated | **subject** | **string** | Subject of the event | [optional] **messageId** | **string** | Message ID which generated the event | -**event** | **string** | Event which occured | -**reason** | **string** | Reason of bounce (only availble if the event is hardbounce or softbounce) | +**event** | **string** | Event which occurred | +**reason** | **string** | Reason of bounce (only available if the event is hardbounce or softbounce) | **tag** | **string** | Tag of the email which generated the event | -**ip** | **string** | IP from which the user has opened the email or clicked on the link (only availble if the event is opened or clicks) | [optional] -**link** | **string** | The link which is sent to the user (only availble if the event is requests or opened or clicks) | [optional] +**ip** | **string** | IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) | [optional] +**link** | **string** | The link which is sent to the user (only available if the event is requests or opened or clicks) | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetExtendedCampaignOverview.md b/docs/Model/GetExtendedCampaignOverview.md index 4f174287..c853f8b7 100644 --- a/docs/Model/GetExtendedCampaignOverview.md +++ b/docs/Model/GetExtendedCampaignOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **string** | Subject of the campaign | **type** | **string** | Type of campaign | **status** | **string** | Status of the campaign | -**scheduledAt** | **string** | Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduledAt** | **\DateTime** | Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **testSent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | **header** | **string** | Header of the campaign | **footer** | **string** | Footer of the campaign | @@ -18,8 +18,8 @@ Name | Type | Description | Notes **htmlContent** | **string** | HTML content of the campaign | **shareLink** | **string** | Link to share the campaign on social medias | [optional] **tag** | **string** | Tag of the campaign | -**createdAt** | **string** | Creation date of the campaign (YYYY-MM-DD HH:mm:ss) | -**modifiedAt** | **string** | Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) | +**createdAt** | **\DateTime** | Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **\DateTime** | Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | **inlineImageActivation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] **mirrorActive** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] diff --git a/docs/Model/GetExtendedContactDetails.md b/docs/Model/GetExtendedContactDetails.md index 3a8a6766..01f57836 100644 --- a/docs/Model/GetExtendedContactDetails.md +++ b/docs/Model/GetExtendedContactDetails.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **int** | ID of the contact for which you requested the details | **emailBlacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | **smsBlacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**modifiedAt** | **string** | Last modification date of the contact (YYYY-MM-DD HH:mm:ss) | +**modifiedAt** | **\DateTime** | Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | **listIds** | **int[]** | | **listUnsubscribed** | **int[]** | | [optional] **attributes** | **map[string,string]** | | diff --git a/docs/Model/GetExtendedContactDetailsStatisticsLinks.md b/docs/Model/GetExtendedContactDetailsStatisticsLinks.md index 12ab320d..9a64d727 100644 --- a/docs/Model/GetExtendedContactDetailsStatisticsLinks.md +++ b/docs/Model/GetExtendedContactDetailsStatisticsLinks.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Number of clicks on this link for the campaign | -**eventTime** | **string** | Date of the event | +**eventTime** | **\DateTime** | Date of the event | **ip** | **string** | IP from which the user has clicked on the link | **url** | **string** | URL of the clicked link | diff --git a/docs/Model/GetExtendedContactDetailsStatisticsMessagesSent.md b/docs/Model/GetExtendedContactDetailsStatisticsMessagesSent.md index 38339f84..549ef543 100644 --- a/docs/Model/GetExtendedContactDetailsStatisticsMessagesSent.md +++ b/docs/Model/GetExtendedContactDetailsStatisticsMessagesSent.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaignId** | **int** | ID of the campaign which generated the event | -**eventTime** | **string** | Date of the event | +**eventTime** | **\DateTime** | Date of the event | [[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/GetExtendedContactDetailsStatisticsOpened.md b/docs/Model/GetExtendedContactDetailsStatisticsOpened.md index dfd0877f..f3b1639e 100644 --- a/docs/Model/GetExtendedContactDetailsStatisticsOpened.md +++ b/docs/Model/GetExtendedContactDetailsStatisticsOpened.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaignId** | **int** | ID of the campaign which generated the event | **count** | **int** | Number of openings for the campaign | -**eventTime** | **string** | Date of the event | +**eventTime** | **\DateTime** | Date of the event | **ip** | **string** | IP from which the user has opened the email | [[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/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md b/docs/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md index 3f4f8042..e55f1ecf 100644 --- a/docs/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +++ b/docs/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventTime** | **string** | Date of the event | +**eventTime** | **\DateTime** | Date of the event | **ip** | **string** | IP from which the user has been unsubscribed | [[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/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md b/docs/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md index c0a2d485..cc6f0a1f 100644 --- a/docs/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +++ b/docs/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaignId** | **int** | ID of the campaign which generated the event | -**eventTime** | **string** | Date of the event | +**eventTime** | **\DateTime** | Date of the event | **ip** | **string** | IP from which the user has unsubscribed | [[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/GetExtendedList.md b/docs/Model/GetExtendedList.md index fe45591d..4ad18105 100644 --- a/docs/Model/GetExtendedList.md +++ b/docs/Model/GetExtendedList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **totalBlacklisted** | **int** | Number of blacklisted contacts in the list | **totalSubscribers** | **int** | Number of contacts in the list | **folderId** | **int** | ID of the folder | -**createdAt** | **string** | Creation Date of the list (YYYY-MM-DD HH:mm:ss) | +**createdAt** | **\DateTime** | Creation Date of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) | **campaignStats** | [**\SendinBlue\Client\Model\GetExtendedListCampaignStats[]**](GetExtendedListCampaignStats.md) | | [optional] **dynamicList** | **bool** | Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) | [optional] diff --git a/docs/Model/GetReportsReports.md b/docs/Model/GetReportsReports.md index 7996c552..771af712 100644 --- a/docs/Model/GetReportsReports.md +++ b/docs/Model/GetReportsReports.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | [**\DateTime**](Date.md) | Date of the statistics | +**date** | **\DateTime** | Date of the statistics | **tag** | **string** | Reminder of the specified tag (only available if a specific tag has been specified in the request) | **requests** | **int** | Number of requests for the date | **delivered** | **int** | Number of delivered emails for the date | diff --git a/docs/Model/GetSmsCampaign.md b/docs/Model/GetSmsCampaign.md index 9a33c917..b0087888 100644 --- a/docs/Model/GetSmsCampaign.md +++ b/docs/Model/GetSmsCampaign.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes **name** | **string** | Name of the SMS Campaign | **status** | **string** | Status of the SMS Campaign | **content** | **string** | Content of the SMS Campaign | -**scheduledAt** | **string** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format | +**scheduledAt** | **\DateTime** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | **testSent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | **sender** | **string** | Sender of the SMS Campaign | -**createdAt** | **string** | Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) | -**modifiedAt** | **string** | Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) | +**createdAt** | **\DateTime** | Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **\DateTime** | Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | [[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/GetSmsCampaignOverview.md b/docs/Model/GetSmsCampaignOverview.md index c55e95ec..42e75ec5 100644 --- a/docs/Model/GetSmsCampaignOverview.md +++ b/docs/Model/GetSmsCampaignOverview.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes **name** | **string** | Name of the SMS Campaign | **status** | **string** | Status of the SMS Campaign | **content** | **string** | Content of the SMS Campaign | -**scheduledAt** | **string** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format | +**scheduledAt** | **\DateTime** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | **testSent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | **sender** | **string** | Sender of the SMS Campaign | -**createdAt** | **string** | Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) | -**modifiedAt** | **string** | Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) | +**createdAt** | **\DateTime** | Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **\DateTime** | Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | [[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/GetSmsEventReportEvents.md b/docs/Model/GetSmsEventReportEvents.md index 9aad7c4a..702d32cb 100644 --- a/docs/Model/GetSmsEventReportEvents.md +++ b/docs/Model/GetSmsEventReportEvents.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phoneNumber** | **string** | Phone number which has generated the event | -**date** | [**\DateTime**](Date.md) | Date on which the event has been generated | +**date** | **\DateTime** | Date on which the event has been generated | **messageId** | **string** | Message ID which generated the event | -**event** | **string** | Event which occured | -**reason** | **string** | Reason of bounce (only availble if the event is hardbounce or softbounce) | +**event** | **string** | Event which occurred | +**reason** | **string** | Reason of bounce (only available if the event is hardbounce or softbounce) | **reply** | **string** | | [optional] **tag** | **string** | Tag of the SMS which generated the event | diff --git a/docs/Model/GetSmtpTemplateOverview.md b/docs/Model/GetSmtpTemplateOverview.md index ddcb8d27..10fcbbce 100644 --- a/docs/Model/GetSmtpTemplateOverview.md +++ b/docs/Model/GetSmtpTemplateOverview.md @@ -13,8 +13,8 @@ Name | Type | Description | Notes **toField** | **string** | Customisation of the \"to\" field for the template | **tag** | **string** | Tag of the template | **htmlContent** | **string** | HTML content of the template | -**createdAt** | **string** | Creation date of the template (YYYY-MM-DD HH:mm:ss) | -**modifiedAt** | **string** | Last modification date of the template (YYYY-MM-DD HH:mm:ss) | +**createdAt** | **\DateTime** | Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **\DateTime** | Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | [[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/GetTransacSmsReportReports.md b/docs/Model/GetTransacSmsReportReports.md index 7ea6d143..f8d069df 100644 --- a/docs/Model/GetTransacSmsReportReports.md +++ b/docs/Model/GetTransacSmsReportReports.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | [**\DateTime**](Date.md) | Date for which statistics are retrieved | +**date** | **\DateTime** | Date for which statistics are retrieved | **tag** | **string** | Tag specified in request | **requests** | **int** | Number of requests for the date | **delivered** | **int** | Number of delivered SMS for the date | diff --git a/docs/Model/GetWebhook.md b/docs/Model/GetWebhook.md index 2677c63b..67d35d3f 100644 --- a/docs/Model/GetWebhook.md +++ b/docs/Model/GetWebhook.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **description** | **string** | Description of the webhook | **events** | **string[]** | | **type** | **string** | Type of webhook (marketing or transac) | -**createdAt** | **string** | Creation date of the webhook (YYYY-MM-DD HH:mm:ss) | -**modifiedAt** | **string** | Last modification date of the webhook (YYYY-MM-DD HH:mm:ss) | +**createdAt** | **\DateTime** | Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **\DateTime** | Last modification date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | [[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/SendTransacSms.md b/docs/Model/SendTransacSms.md index 5384f40f..33f11fb5 100644 --- a/docs/Model/SendTransacSms.md +++ b/docs/Model/SendTransacSms.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **sender** | **string** | Name of the sender. Only alphanumeric characters. No more than 11 characters | **recipient** | **string** | Mobile number to send SMS with the country code | **content** | **string** | Content of the message. If more than 160 characters long, multiple text messages will be sent | +**type** | **string** | Type of the SMS | [optional] [default to 'transactional'] **tag** | **string** | Tag of the message | [optional] **webUrl** | **string** | Webhook to call for each event triggered by the message (delivered etc.) | [optional] diff --git a/docs/Model/UpdateEmailCampaign.md b/docs/Model/UpdateEmailCampaign.md index f9e59d34..7e55fb57 100644 --- a/docs/Model/UpdateEmailCampaign.md +++ b/docs/Model/UpdateEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **string** | Name of the campaign | [optional] **htmlContent** | **string** | Body of the message (HTML version). REQUIRED if htmlUrl is empty | [optional] **htmlUrl** | **string** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] -**scheduledAt** | **string** | Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduledAt** | **\DateTime** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **subject** | **string** | Subject of the campaign | [optional] **replyTo** | **string** | Email on which campaign recipients will be able to reply to | [optional] **toField** | **string** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] diff --git a/docs/Model/UpdateSmsCampaign.md b/docs/Model/UpdateSmsCampaign.md index c8555df7..cf60685a 100644 --- a/docs/Model/UpdateSmsCampaign.md +++ b/docs/Model/UpdateSmsCampaign.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **sender** | **string** | Name of the sender. The number of characters is limited to 11 | [optional] **content** | **string** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] **recipients** | [**\SendinBlue\Client\Model\CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] -**scheduledAt** | **string** | Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduledAt** | **\DateTime** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/lib/Api/AttributesApi.php b/lib/Api/AttributesApi.php index ea13f0be..b9bac0b8 100644 --- a/lib/Api/AttributesApi.php +++ b/lib/Api/AttributesApi.php @@ -180,7 +180,7 @@ public function createAttributeWithHttpInfo($createAttribute) * * Deletes an attribute * - * @param string $attributeId id of the attribute (required) + * @param int $attributeId id of the attribute (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -195,7 +195,7 @@ public function deleteAttribute($attributeId) * * Deletes an attribute * - * @param string $attributeId id of the attribute (required) + * @param int $attributeId id of the attribute (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ diff --git a/lib/Api/ContactsApi.php b/lib/Api/ContactsApi.php index 17e97891..65fd3e67 100644 --- a/lib/Api/ContactsApi.php +++ b/lib/Api/ContactsApi.php @@ -92,7 +92,7 @@ public function setApiClient(\SendinBlue\Client\ApiClient $apiClient) * * Add existing contacts to a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\AddRemoveContactToList $contactEmails Emails addresses of the contacts (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\PostContactInfo @@ -108,7 +108,7 @@ public function addContactToList($listId, $contactEmails) * * Add existing contacts to a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\AddRemoveContactToList $contactEmails Emails addresses of the contacts (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\PostContactInfo, HTTP status code, HTTP response headers (array of strings) @@ -374,13 +374,13 @@ public function createContactWithHttpInfo($createContact) * * Create a folder * - * @param \SendinBlue\Client\Model\CreaUpdateFolder $name Name of the folder (required) + * @param \SendinBlue\Client\Model\CreateUpdateFolder $createFolder Name of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\CreateModel */ - public function createFolder($name) + public function createFolder($createFolder) { - list($response) = $this->createFolderWithHttpInfo($name); + list($response) = $this->createFolderWithHttpInfo($createFolder); return $response; } @@ -389,15 +389,15 @@ public function createFolder($name) * * Create a folder * - * @param \SendinBlue\Client\Model\CreaUpdateFolder $name Name of the folder (required) + * @param \SendinBlue\Client\Model\CreateUpdateFolder $createFolder Name of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createFolderWithHttpInfo($name) + public function createFolderWithHttpInfo($createFolder) { - // verify the required parameter 'name' is set - if ($name === null) { - throw new \InvalidArgumentException('Missing the required parameter $name when calling createFolder'); + // verify the required parameter 'createFolder' is set + if ($createFolder === null) { + throw new \InvalidArgumentException('Missing the required parameter $createFolder when calling createFolder'); } // parse inputs $resourcePath = "/contacts/folders"; @@ -413,8 +413,8 @@ public function createFolderWithHttpInfo($name) // body params $_tempBody = null; - if (isset($name)) { - $_tempBody = $name; + if (isset($createFolder)) { + $_tempBody = $createFolder; } // for model (json/xml) @@ -550,7 +550,7 @@ public function createListWithHttpInfo($createList) * * Deletes an attribute * - * @param string $attributeId id of the attribute (required) + * @param int $attributeId id of the attribute (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -565,7 +565,7 @@ public function deleteAttribute($attributeId) * * Deletes an attribute * - * @param string $attributeId id of the attribute (required) + * @param int $attributeId id of the attribute (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -641,7 +641,7 @@ public function deleteAttributeWithHttpInfo($attributeId) * * Delete a folder (and all its lists) * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -656,7 +656,7 @@ public function deleteFolder($folderId) * * Delete a folder (and all its lists) * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -732,7 +732,7 @@ public function deleteFolderWithHttpInfo($folderId) * * Delete a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -747,7 +747,7 @@ public function deleteList($listId) * * Delete a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -1179,8 +1179,8 @@ public function getContactsWithHttpInfo($limit = '50', $offset = '0') * * Get the contacts in a list * - * @param string $listId Id of the list (required) - * @param string $modifiedSince Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) + * @param int $listId Id of the list (required) + * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) (optional) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -1197,8 +1197,8 @@ public function getContactsFromList($listId, $modifiedSince = null, $limit = '50 * * Get the contacts in a list * - * @param string $listId Id of the list (required) - * @param string $modifiedSince Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) + * @param int $listId Id of the list (required) + * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) (optional) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -1210,10 +1210,6 @@ public function getContactsFromListWithHttpInfo($listId, $modifiedSince = null, if ($listId === null) { throw new \InvalidArgumentException('Missing the required parameter $listId when calling getContactsFromList'); } - if (!is_null($modifiedSince) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedSince)) { - throw new \InvalidArgumentException("invalid value for \"modifiedSince\" when calling ContactsApi.getContactsFromList, must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - if (!is_null($limit) && ($limit > 500)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getContactsFromList, must be smaller than or equal to 500.'); } @@ -1300,7 +1296,7 @@ public function getContactsFromListWithHttpInfo($listId, $modifiedSince = null, * * Returns folder details * - * @param string $folderId id of the folder (required) + * @param int $folderId id of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetFolder */ @@ -1315,7 +1311,7 @@ public function getFolder($folderId) * * Returns folder details * - * @param string $folderId id of the folder (required) + * @param int $folderId id of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetFolder, HTTP status code, HTTP response headers (array of strings) */ @@ -1395,7 +1391,7 @@ public function getFolderWithHttpInfo($folderId) * * Get the lists in a folder * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -1412,7 +1408,7 @@ public function getFolderLists($folderId, $limit = '10', $offset = '0') * * Get the lists in a folder * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -1607,7 +1603,7 @@ public function getFoldersWithHttpInfo($limit, $offset) * * Get the details of a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetExtendedList */ @@ -1622,7 +1618,7 @@ public function getList($listId) * * Get the details of a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetExtendedList, HTTP status code, HTTP response headers (array of strings) */ @@ -1883,7 +1879,7 @@ public function importContactsWithHttpInfo($requestContactImport) * * Remove existing contacts from a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\AddRemoveContactToList $contactEmails Emails adresses of the contact (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\PostContactInfo @@ -1899,7 +1895,7 @@ public function removeContactToList($listId, $contactEmails) * * Remove existing contacts from a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\AddRemoveContactToList $contactEmails Emails adresses of the contact (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\PostContactInfo, HTTP status code, HTTP response headers (array of strings) @@ -2179,14 +2175,14 @@ public function updateContactWithHttpInfo($email, $updateContact) * * Update a contact folder * - * @param string $folderId Id of the folder (required) - * @param \SendinBlue\Client\Model\CreaUpdateFolder $name Name of the folder (required) + * @param int $folderId Id of the folder (required) + * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ - public function updateFolder($folderId, $name) + public function updateFolder($folderId, $updateFolder) { - list($response) = $this->updateFolderWithHttpInfo($folderId, $name); + list($response) = $this->updateFolderWithHttpInfo($folderId, $updateFolder); return $response; } @@ -2195,20 +2191,20 @@ public function updateFolder($folderId, $name) * * Update a contact folder * - * @param string $folderId Id of the folder (required) - * @param \SendinBlue\Client\Model\CreaUpdateFolder $name Name of the folder (required) + * @param int $folderId Id of the folder (required) + * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateFolderWithHttpInfo($folderId, $name) + public function updateFolderWithHttpInfo($folderId, $updateFolder) { // verify the required parameter 'folderId' is set if ($folderId === null) { throw new \InvalidArgumentException('Missing the required parameter $folderId when calling updateFolder'); } - // verify the required parameter 'name' is set - if ($name === null) { - throw new \InvalidArgumentException('Missing the required parameter $name when calling updateFolder'); + // verify the required parameter 'updateFolder' is set + if ($updateFolder === null) { + throw new \InvalidArgumentException('Missing the required parameter $updateFolder when calling updateFolder'); } // parse inputs $resourcePath = "/contacts/folders/{folderId}"; @@ -2232,8 +2228,8 @@ public function updateFolderWithHttpInfo($folderId, $name) } // body params $_tempBody = null; - if (isset($name)) { - $_tempBody = $name; + if (isset($updateFolder)) { + $_tempBody = $updateFolder; } // for model (json/xml) @@ -2281,7 +2277,7 @@ public function updateFolderWithHttpInfo($folderId, $name) * * Update a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\UpdateList $updateList Values to update a list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -2297,7 +2293,7 @@ public function updateList($listId, $updateList) * * Update a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\UpdateList $updateList Values to update a list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) diff --git a/lib/Api/EmailCampaignsApi.php b/lib/Api/EmailCampaignsApi.php index 3c026f63..922bd898 100644 --- a/lib/Api/EmailCampaignsApi.php +++ b/lib/Api/EmailCampaignsApi.php @@ -180,7 +180,7 @@ public function createEmailCampaignWithHttpInfo($emailCampaigns) * * Delete an email campaign * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -195,7 +195,7 @@ public function deleteEmailCampaigns($campaignId) * * Delete an email campaign * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -271,7 +271,7 @@ public function deleteEmailCampaignsWithHttpInfo($campaignId) * * Export the recipients of a campaign * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\EmailExportRecipients $recipientExport Values to send for a recipient export request (optional) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\CreatedProcessId @@ -287,7 +287,7 @@ public function emailExportRecipients($campaignId, $recipientExport = null) * * Export the recipients of a campaign * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\EmailExportRecipients $recipientExport Values to send for a recipient export request (optional) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\CreatedProcessId, HTTP status code, HTTP response headers (array of strings) @@ -373,7 +373,7 @@ public function emailExportRecipientsWithHttpInfo($campaignId, $recipientExport * * Get campaign informations * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetEmailCampaign */ @@ -388,7 +388,7 @@ public function getEmailCampaign($campaignId) * * Get campaign informations * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetEmailCampaign, HTTP status code, HTTP response headers (array of strings) */ @@ -573,7 +573,7 @@ public function getEmailCampaignsWithHttpInfo($type = null, $status = null, $lim * * Send an email campaign id of the campaign immediately * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -588,7 +588,7 @@ public function sendEmailCampaignNow($campaignId) * * Send an email campaign id of the campaign immediately * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -668,7 +668,7 @@ public function sendEmailCampaignNowWithHttpInfo($campaignId) * * Send the report of a campaigns * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -684,7 +684,7 @@ public function sendReport($campaignId, $sendReport) * * Send the report of a campaigns * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) @@ -770,7 +770,7 @@ public function sendReportWithHttpInfo($campaignId, $sendReport) * * Send an email campaign to your test list * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\SendTestEmail $emailTo (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -786,7 +786,7 @@ public function sendTestEmail($campaignId, $emailTo) * * Send an email campaign to your test list * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\SendTestEmail $emailTo (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) @@ -872,7 +872,7 @@ public function sendTestEmailWithHttpInfo($campaignId, $emailTo) * * Update a campaign status * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -888,7 +888,7 @@ public function updateCampaignStatus($campaignId, $status) * * Update a campaign status * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) @@ -974,7 +974,7 @@ public function updateCampaignStatusWithHttpInfo($campaignId, $status) * * Update a campaign * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateEmailCampaign $emailCampaign Values to update a campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -990,7 +990,7 @@ public function updateEmailCampaigns($campaignId, $emailCampaign) * * Update a campaign * - * @param string $campaignId Id of the campaign (required) + * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateEmailCampaign $emailCampaign Values to update a campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) diff --git a/lib/Api/FoldersApi.php b/lib/Api/FoldersApi.php index 832a4e3c..67b5ca33 100644 --- a/lib/Api/FoldersApi.php +++ b/lib/Api/FoldersApi.php @@ -92,13 +92,13 @@ public function setApiClient(\SendinBlue\Client\ApiClient $apiClient) * * Create a folder * - * @param \SendinBlue\Client\Model\CreaUpdateFolder $name Name of the folder (required) + * @param \SendinBlue\Client\Model\CreateUpdateFolder $createFolder Name of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\CreateModel */ - public function createFolder($name) + public function createFolder($createFolder) { - list($response) = $this->createFolderWithHttpInfo($name); + list($response) = $this->createFolderWithHttpInfo($createFolder); return $response; } @@ -107,15 +107,15 @@ public function createFolder($name) * * Create a folder * - * @param \SendinBlue\Client\Model\CreaUpdateFolder $name Name of the folder (required) + * @param \SendinBlue\Client\Model\CreateUpdateFolder $createFolder Name of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createFolderWithHttpInfo($name) + public function createFolderWithHttpInfo($createFolder) { - // verify the required parameter 'name' is set - if ($name === null) { - throw new \InvalidArgumentException('Missing the required parameter $name when calling createFolder'); + // verify the required parameter 'createFolder' is set + if ($createFolder === null) { + throw new \InvalidArgumentException('Missing the required parameter $createFolder when calling createFolder'); } // parse inputs $resourcePath = "/contacts/folders"; @@ -131,8 +131,8 @@ public function createFolderWithHttpInfo($name) // body params $_tempBody = null; - if (isset($name)) { - $_tempBody = $name; + if (isset($createFolder)) { + $_tempBody = $createFolder; } // for model (json/xml) @@ -180,7 +180,7 @@ public function createFolderWithHttpInfo($name) * * Delete a folder (and all its lists) * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -195,7 +195,7 @@ public function deleteFolder($folderId) * * Delete a folder (and all its lists) * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -271,7 +271,7 @@ public function deleteFolderWithHttpInfo($folderId) * * Returns folder details * - * @param string $folderId id of the folder (required) + * @param int $folderId id of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetFolder */ @@ -286,7 +286,7 @@ public function getFolder($folderId) * * Returns folder details * - * @param string $folderId id of the folder (required) + * @param int $folderId id of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetFolder, HTTP status code, HTTP response headers (array of strings) */ @@ -366,7 +366,7 @@ public function getFolderWithHttpInfo($folderId) * * Get the lists in a folder * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -383,7 +383,7 @@ public function getFolderLists($folderId, $limit = '10', $offset = '0') * * Get the lists in a folder * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -578,14 +578,14 @@ public function getFoldersWithHttpInfo($limit, $offset) * * Update a contact folder * - * @param string $folderId Id of the folder (required) - * @param \SendinBlue\Client\Model\CreaUpdateFolder $name Name of the folder (required) + * @param int $folderId Id of the folder (required) + * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ - public function updateFolder($folderId, $name) + public function updateFolder($folderId, $updateFolder) { - list($response) = $this->updateFolderWithHttpInfo($folderId, $name); + list($response) = $this->updateFolderWithHttpInfo($folderId, $updateFolder); return $response; } @@ -594,20 +594,20 @@ public function updateFolder($folderId, $name) * * Update a contact folder * - * @param string $folderId Id of the folder (required) - * @param \SendinBlue\Client\Model\CreaUpdateFolder $name Name of the folder (required) + * @param int $folderId Id of the folder (required) + * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateFolderWithHttpInfo($folderId, $name) + public function updateFolderWithHttpInfo($folderId, $updateFolder) { // verify the required parameter 'folderId' is set if ($folderId === null) { throw new \InvalidArgumentException('Missing the required parameter $folderId when calling updateFolder'); } - // verify the required parameter 'name' is set - if ($name === null) { - throw new \InvalidArgumentException('Missing the required parameter $name when calling updateFolder'); + // verify the required parameter 'updateFolder' is set + if ($updateFolder === null) { + throw new \InvalidArgumentException('Missing the required parameter $updateFolder when calling updateFolder'); } // parse inputs $resourcePath = "/contacts/folders/{folderId}"; @@ -631,8 +631,8 @@ public function updateFolderWithHttpInfo($folderId, $name) } // body params $_tempBody = null; - if (isset($name)) { - $_tempBody = $name; + if (isset($updateFolder)) { + $_tempBody = $updateFolder; } // for model (json/xml) diff --git a/lib/Api/ListsApi.php b/lib/Api/ListsApi.php index dabb62ec..397e0677 100644 --- a/lib/Api/ListsApi.php +++ b/lib/Api/ListsApi.php @@ -92,7 +92,7 @@ public function setApiClient(\SendinBlue\Client\ApiClient $apiClient) * * Add existing contacts to a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\AddRemoveContactToList $contactEmails Emails addresses of the contacts (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\PostContactInfo @@ -108,7 +108,7 @@ public function addContactToList($listId, $contactEmails) * * Add existing contacts to a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\AddRemoveContactToList $contactEmails Emails addresses of the contacts (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\PostContactInfo, HTTP status code, HTTP response headers (array of strings) @@ -286,7 +286,7 @@ public function createListWithHttpInfo($createList) * * Delete a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -301,7 +301,7 @@ public function deleteList($listId) * * Delete a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -377,8 +377,8 @@ public function deleteListWithHttpInfo($listId) * * Get the contacts in a list * - * @param string $listId Id of the list (required) - * @param string $modifiedSince Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) + * @param int $listId Id of the list (required) + * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) (optional) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -395,8 +395,8 @@ public function getContactsFromList($listId, $modifiedSince = null, $limit = '50 * * Get the contacts in a list * - * @param string $listId Id of the list (required) - * @param string $modifiedSince Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) + * @param int $listId Id of the list (required) + * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) (optional) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -408,10 +408,6 @@ public function getContactsFromListWithHttpInfo($listId, $modifiedSince = null, if ($listId === null) { throw new \InvalidArgumentException('Missing the required parameter $listId when calling getContactsFromList'); } - if (!is_null($modifiedSince) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedSince)) { - throw new \InvalidArgumentException("invalid value for \"modifiedSince\" when calling ListsApi.getContactsFromList, must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - if (!is_null($limit) && ($limit > 500)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ListsApi.getContactsFromList, must be smaller than or equal to 500.'); } @@ -498,7 +494,7 @@ public function getContactsFromListWithHttpInfo($listId, $modifiedSince = null, * * Get the lists in a folder * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -515,7 +511,7 @@ public function getFolderLists($folderId, $limit = '10', $offset = '0') * * Get the lists in a folder * - * @param string $folderId Id of the folder (required) + * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -609,7 +605,7 @@ public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = ' * * Get the details of a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetExtendedList */ @@ -624,7 +620,7 @@ public function getList($listId) * * Get the details of a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetExtendedList, HTTP status code, HTTP response headers (array of strings) */ @@ -797,7 +793,7 @@ public function getListsWithHttpInfo($limit = '10', $offset = '0') * * Remove existing contacts from a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\AddRemoveContactToList $contactEmails Emails adresses of the contact (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\PostContactInfo @@ -813,7 +809,7 @@ public function removeContactToList($listId, $contactEmails) * * Remove existing contacts from a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\AddRemoveContactToList $contactEmails Emails adresses of the contact (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\PostContactInfo, HTTP status code, HTTP response headers (array of strings) @@ -903,7 +899,7 @@ public function removeContactToListWithHttpInfo($listId, $contactEmails) * * Update a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\UpdateList $updateList Values to update a list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -919,7 +915,7 @@ public function updateList($listId, $updateList) * * Update a list * - * @param string $listId Id of the list (required) + * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\UpdateList $updateList Values to update a list (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) diff --git a/lib/Api/ProcessApi.php b/lib/Api/ProcessApi.php index 219cab9b..97b2eb7c 100644 --- a/lib/Api/ProcessApi.php +++ b/lib/Api/ProcessApi.php @@ -92,7 +92,7 @@ public function setApiClient(\SendinBlue\Client\ApiClient $apiClient) * * Return the informations for a process * - * @param string $processId Id of the process (required) + * @param int $processId Id of the process (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetProcess */ @@ -107,7 +107,7 @@ public function getProcess($processId) * * Return the informations for a process * - * @param string $processId Id of the process (required) + * @param int $processId Id of the process (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetProcess, HTTP status code, HTTP response headers (array of strings) */ diff --git a/lib/Api/SMSCampaignsApi.php b/lib/Api/SMSCampaignsApi.php index 733c5ce0..49602f38 100644 --- a/lib/Api/SMSCampaignsApi.php +++ b/lib/Api/SMSCampaignsApi.php @@ -180,7 +180,7 @@ public function createSMSCampaignWithHttpInfo($createSmsCampaign) * * Delete the SMS campaign * - * @param string $campaignId id of the SMS campaign (required) + * @param int $campaignId id of the SMS campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -195,7 +195,7 @@ public function deleteSMSCampaigns($campaignId) * * Delete the SMS campaign * - * @param string $campaignId id of the SMS campaign (required) + * @param int $campaignId id of the SMS campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -370,7 +370,7 @@ public function getSMSCampaignsWithHttpInfo($status = null, $limit = '500', $off * * Get a SMS campaign * - * @param string $campaignId id of the SMS campaign (required) + * @param int $campaignId id of the SMS campaign (required) * @param \SendinBlue\Client\Model\GetSmsCampaign $getSmsCampaign Values to update an SMS Campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetSmsCampaign @@ -386,7 +386,7 @@ public function getSmsCampaign($campaignId, $getSmsCampaign) * * Get a SMS campaign * - * @param string $campaignId id of the SMS campaign (required) + * @param int $campaignId id of the SMS campaign (required) * @param \SendinBlue\Client\Model\GetSmsCampaign $getSmsCampaign Values to update an SMS Campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetSmsCampaign, HTTP status code, HTTP response headers (array of strings) @@ -476,7 +476,7 @@ public function getSmsCampaignWithHttpInfo($campaignId, $getSmsCampaign) * * Exports the recipients of the specified campaign. * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\RequestSMSRecipientExport $recipientExport Values to send for a recipient export request (optional) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\CreatedProcessId @@ -492,7 +492,7 @@ public function requestSMSRecipientExport($campaignId, $recipientExport = null) * * Exports the recipients of the specified campaign. * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\RequestSMSRecipientExport $recipientExport Values to send for a recipient export request (optional) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\CreatedProcessId, HTTP status code, HTTP response headers (array of strings) @@ -578,7 +578,7 @@ public function requestSMSRecipientExportWithHttpInfo($campaignId, $recipientExp * * Send your SMS campaign immediately * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -593,7 +593,7 @@ public function sendSMSCampaignNow($campaignId) * * Send your SMS campaign immediately * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -673,7 +673,7 @@ public function sendSMSCampaignNowWithHttpInfo($campaignId) * * Send report of SMS campaigns * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -689,7 +689,7 @@ public function sendSMSReport($campaignId, $sendReport) * * Send report of SMS campaigns * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) @@ -775,7 +775,7 @@ public function sendSMSReportWithHttpInfo($campaignId, $sendReport) * * Send an SMS * - * @param string $campaignId Id of the SMS campaign (required) + * @param int $campaignId Id of the SMS campaign (required) * @param \SendinBlue\Client\Model\SendTestSms $sendTestSms Mobile number to which send the test (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -791,7 +791,7 @@ public function sendTestSms($campaignId, $sendTestSms) * * Send an SMS * - * @param string $campaignId Id of the SMS campaign (required) + * @param int $campaignId Id of the SMS campaign (required) * @param \SendinBlue\Client\Model\SendTestSms $sendTestSms Mobile number to which send the test (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) @@ -877,7 +877,7 @@ public function sendTestSmsWithHttpInfo($campaignId, $sendTestSms) * * Update the campaign status * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign. (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -893,7 +893,7 @@ public function updateSMSCampaignStatus($campaignId, $status) * * Update the campaign status * - * @param string $campaignId id of the campaign (required) + * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign. (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) @@ -979,7 +979,7 @@ public function updateSMSCampaignStatusWithHttpInfo($campaignId, $status) * * Updates a SMS campaign * - * @param string $campaignId id of the SMS campaign (required) + * @param int $campaignId id of the SMS campaign (required) * @param \SendinBlue\Client\Model\UpdateSmsCampaign $updateSmsCampaign Values to update an SMS Campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -995,7 +995,7 @@ public function updateSmsCampaign($campaignId, $updateSmsCampaign) * * Updates a SMS campaign * - * @param string $campaignId id of the SMS campaign (required) + * @param int $campaignId id of the SMS campaign (required) * @param \SendinBlue\Client\Model\UpdateSmsCampaign $updateSmsCampaign Values to update an SMS Campaign (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) diff --git a/lib/Api/SMTPApi.php b/lib/Api/SMTPApi.php index a2ba8d89..dbe18fef 100644 --- a/lib/Api/SMTPApi.php +++ b/lib/Api/SMTPApi.php @@ -370,7 +370,7 @@ public function getAggregatedSmtpReportWithHttpInfo($startDate = null, $endDate * @param string $event Filter the report for a specific event type (optional) * @param string $tags Filter the report for tags (serialized and urlencoded array) (optional) * @param string $messageId Filter on a specific message id (optional) - * @param string $templateId Filter on a specific template id (optional) + * @param int $templateId Filter on a specific template id (optional) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetEmailEventReport */ @@ -394,7 +394,7 @@ public function getEmailEventReport($limit = '50', $offset = '0', $startDate = n * @param string $event Filter the report for a specific event type (optional) * @param string $tags Filter the report for tags (serialized and urlencoded array) (optional) * @param string $messageId Filter on a specific message id (optional) - * @param string $templateId Filter on a specific template id (optional) + * @param int $templateId Filter on a specific template id (optional) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetEmailEventReport, HTTP status code, HTTP response headers (array of strings) */ @@ -619,7 +619,7 @@ public function getSmtpReportWithHttpInfo($limit = '50', $offset = '0', $startDa * * Returns the template informations * - * @param string $templateId id of the template (required) + * @param int $templateId id of the template (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetSmtpTemplateOverview */ @@ -634,7 +634,7 @@ public function getSmtpTemplate($templateId) * * Returns the template informations * - * @param string $templateId id of the template (required) + * @param int $templateId id of the template (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetSmtpTemplateOverview, HTTP status code, HTTP response headers (array of strings) */ @@ -813,7 +813,7 @@ public function getSmtpTemplatesWithHttpInfo($templateStatus = null, $limit = '5 * * Send a template * - * @param string $templateId Id of the template (required) + * @param int $templateId Id of the template (required) * @param \SendinBlue\Client\Model\SendEmail $sendEmail (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\SendTemplateEmail @@ -829,7 +829,7 @@ public function sendTemplate($templateId, $sendEmail) * * Send a template * - * @param string $templateId Id of the template (required) + * @param int $templateId Id of the template (required) * @param \SendinBlue\Client\Model\SendEmail $sendEmail (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\SendTemplateEmail, HTTP status code, HTTP response headers (array of strings) @@ -919,7 +919,7 @@ public function sendTemplateWithHttpInfo($templateId, $sendEmail) * * Send a template to your test list * - * @param string $templateId Id of the template (required) + * @param int $templateId Id of the template (required) * @param \SendinBlue\Client\Model\SendTestEmail $sendTestEmail (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -935,7 +935,7 @@ public function sendTestTemplate($templateId, $sendTestEmail) * * Send a template to your test list * - * @param string $templateId Id of the template (required) + * @param int $templateId Id of the template (required) * @param \SendinBlue\Client\Model\SendTestEmail $sendTestEmail (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) @@ -1109,7 +1109,7 @@ public function sendTransacEmailWithHttpInfo($sendSmtpEmail) * * Updates an smtp templates * - * @param string $templateId id of the template (required) + * @param int $templateId id of the template (required) * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -1125,7 +1125,7 @@ public function updateSmtpTemplate($templateId, $smtpTemplate) * * Updates an smtp templates * - * @param string $templateId id of the template (required) + * @param int $templateId id of the template (required) * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) diff --git a/lib/Api/SendersApi.php b/lib/Api/SendersApi.php index 4e00a576..f3ffab7c 100644 --- a/lib/Api/SendersApi.php +++ b/lib/Api/SendersApi.php @@ -176,7 +176,7 @@ public function createSenderWithHttpInfo($sender = null) * * Delete a sender * - * @param string $senderId Id of the sender (required) + * @param int $senderId Id of the sender (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -191,7 +191,7 @@ public function deleteSender($senderId) * * Delete a sender * - * @param string $senderId Id of the sender (required) + * @param int $senderId Id of the sender (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -340,7 +340,7 @@ public function getIpsWithHttpInfo() * * Return all the dedicated IPs for a sender * - * @param string $senderId Id of the sender (required) + * @param int $senderId Id of the sender (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetIpsFromSender */ @@ -355,7 +355,7 @@ public function getIpsFromSender($senderId) * * Return all the dedicated IPs for a sender * - * @param string $senderId Id of the sender (required) + * @param int $senderId Id of the sender (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetIpsFromSender, HTTP status code, HTTP response headers (array of strings) */ @@ -524,7 +524,7 @@ public function getSendersWithHttpInfo($ip = null, $domain = null) * * Update a sender * - * @param string $senderId Id of the sender (required) + * @param int $senderId Id of the sender (required) * @param \SendinBlue\Client\Model\UpdateSender $sender sender's name (optional) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -540,7 +540,7 @@ public function updateSender($senderId, $sender = null) * * Update a sender * - * @param string $senderId Id of the sender (required) + * @param int $senderId Id of the sender (required) * @param \SendinBlue\Client\Model\UpdateSender $sender sender's name (optional) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) diff --git a/lib/Api/WebhooksApi.php b/lib/Api/WebhooksApi.php index 409c0ae7..a1ed3bd3 100644 --- a/lib/Api/WebhooksApi.php +++ b/lib/Api/WebhooksApi.php @@ -180,7 +180,7 @@ public function createWebhookWithHttpInfo($createWebhook) * * Delete a webhook * - * @param string $webhookId Id of the webhook (required) + * @param int $webhookId Id of the webhook (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void */ @@ -195,7 +195,7 @@ public function deleteWebhook($webhookId) * * Delete a webhook * - * @param string $webhookId Id of the webhook (required) + * @param int $webhookId Id of the webhook (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ @@ -271,7 +271,7 @@ public function deleteWebhookWithHttpInfo($webhookId) * * Get a webhook details * - * @param string $webhookId Id of the webhook (required) + * @param int $webhookId Id of the webhook (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return \SendinBlue\Client\Model\GetWebhook */ @@ -286,7 +286,7 @@ public function getWebhook($webhookId) * * Get a webhook details * - * @param string $webhookId Id of the webhook (required) + * @param int $webhookId Id of the webhook (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of \SendinBlue\Client\Model\GetWebhook, HTTP status code, HTTP response headers (array of strings) */ @@ -449,7 +449,7 @@ public function getWebhooksWithHttpInfo($type = 'transactional') * * Update a webhook * - * @param string $webhookId Id of the webhook (required) + * @param int $webhookId Id of the webhook (required) * @param \SendinBlue\Client\Model\UpdateWebhook $updateWebhook Values to update a webhook (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return void @@ -465,7 +465,7 @@ public function updateWebhook($webhookId, $updateWebhook) * * Update a webhook * - * @param string $webhookId Id of the webhook (required) + * @param int $webhookId Id of the webhook (required) * @param \SendinBlue\Client\Model\UpdateWebhook $updateWebhook Values to update a webhook (required) * @throws \SendinBlue\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) diff --git a/lib/Model/AddCredits.php b/lib/Model/AddCredits.php index 0400aae2..55fa2e23 100644 --- a/lib/Model/AddCredits.php +++ b/lib/Model/AddCredits.php @@ -63,8 +63,8 @@ class AddCredits implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'sms' => 'int32', - 'email' => 'int32' + 'sms' => 'int64', + 'email' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/CreateContact.php b/lib/Model/CreateContact.php index 24489f62..b01bda78 100644 --- a/lib/Model/CreateContact.php +++ b/lib/Model/CreateContact.php @@ -70,7 +70,7 @@ class CreateContact implements ArrayAccess 'attributes' => null, 'emailBlacklisted' => null, 'smsBlacklisted' => null, - 'listIds' => 'int32' + 'listIds' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/CreateEmailCampaign.php b/lib/Model/CreateEmailCampaign.php index 3628b1f6..b0605b85 100644 --- a/lib/Model/CreateEmailCampaign.php +++ b/lib/Model/CreateEmailCampaign.php @@ -59,7 +59,7 @@ class CreateEmailCampaign implements ArrayAccess 'name' => 'string', 'htmlContent' => 'string', 'htmlUrl' => 'string', - 'scheduledAt' => 'string', + 'scheduledAt' => '\DateTime', 'subject' => 'string', 'replyTo' => 'string', 'toField' => 'string', @@ -84,7 +84,7 @@ class CreateEmailCampaign implements ArrayAccess 'name' => null, 'htmlContent' => null, 'htmlUrl' => 'url', - 'scheduledAt' => null, + 'scheduledAt' => 'date-time', 'subject' => null, 'replyTo' => 'email', 'toField' => null, @@ -263,10 +263,6 @@ public function listInvalidProperties() if ($this->container['name'] === null) { $invalid_properties[] = "'name' can't be null"; } - if (!is_null($this->container['scheduledAt']) && !preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['subject'] === null) { $invalid_properties[] = "'subject' can't be null"; } @@ -296,9 +292,6 @@ public function valid() if ($this->container['name'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } if ($this->container['subject'] === null) { return false; } @@ -420,7 +413,7 @@ public function setHtmlUrl($htmlUrl) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -429,16 +422,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Sending date and time (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $scheduledAt Sending date and time (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setScheduledAt($scheduledAt) { - - if (!is_null($scheduledAt) && (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling CreateEmailCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; diff --git a/lib/Model/CreateEmailCampaignRecipients.php b/lib/Model/CreateEmailCampaignRecipients.php index 250d945d..3a418b50 100644 --- a/lib/Model/CreateEmailCampaignRecipients.php +++ b/lib/Model/CreateEmailCampaignRecipients.php @@ -63,8 +63,8 @@ class CreateEmailCampaignRecipients implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'exclusionListIds' => 'int32', - 'listIds' => 'int32' + 'exclusionListIds' => 'int64', + 'listIds' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/CreateList.php b/lib/Model/CreateList.php index f3dcada8..ef23e6bd 100644 --- a/lib/Model/CreateList.php +++ b/lib/Model/CreateList.php @@ -64,7 +64,7 @@ class CreateList implements ArrayAccess */ protected static $swaggerFormats = [ 'name' => null, - 'folderId' => 'int32' + 'folderId' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/CreateModel.php b/lib/Model/CreateModel.php index b8dcab47..c294e931 100644 --- a/lib/Model/CreateModel.php +++ b/lib/Model/CreateModel.php @@ -62,7 +62,7 @@ class CreateModel implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32' + 'id' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/CreateSenderIps.php b/lib/Model/CreateSenderIps.php index e0a68a53..777dfa8b 100644 --- a/lib/Model/CreateSenderIps.php +++ b/lib/Model/CreateSenderIps.php @@ -66,7 +66,7 @@ class CreateSenderIps implements ArrayAccess protected static $swaggerFormats = [ 'ip' => null, 'domain' => null, - 'weight' => 'int32' + 'weight' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/CreateSenderModel.php b/lib/Model/CreateSenderModel.php index a1c3bf5c..6915865a 100644 --- a/lib/Model/CreateSenderModel.php +++ b/lib/Model/CreateSenderModel.php @@ -64,7 +64,7 @@ class CreateSenderModel implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'spfError' => null, 'dkimError' => null ]; diff --git a/lib/Model/CreateSmsCampaign.php b/lib/Model/CreateSmsCampaign.php index 54ca521b..121c87d4 100644 --- a/lib/Model/CreateSmsCampaign.php +++ b/lib/Model/CreateSmsCampaign.php @@ -58,7 +58,7 @@ class CreateSmsCampaign implements ArrayAccess 'sender' => 'string', 'content' => 'string', 'recipients' => '\SendinBlue\Client\Model\CreateSmsCampaignRecipients', - 'scheduledAt' => 'string' + 'scheduledAt' => '\DateTime' ]; /** @@ -70,7 +70,7 @@ class CreateSmsCampaign implements ArrayAccess 'sender' => null, 'content' => null, 'recipients' => null, - 'scheduledAt' => null + 'scheduledAt' => 'date-time' ]; public static function swaggerTypes() @@ -178,10 +178,6 @@ public function listInvalidProperties() $invalid_properties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; } - if (!is_null($this->container['scheduledAt']) && !preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -203,9 +199,6 @@ public function valid() if (strlen($this->container['sender']) > 11) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } return true; } @@ -300,7 +293,7 @@ public function setRecipients($recipients) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -309,16 +302,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $scheduledAt Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setScheduledAt($scheduledAt) { - - if (!is_null($scheduledAt) && (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling CreateSmsCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; diff --git a/lib/Model/CreateSmsCampaignRecipients.php b/lib/Model/CreateSmsCampaignRecipients.php index 62f61470..8d4c5d67 100644 --- a/lib/Model/CreateSmsCampaignRecipients.php +++ b/lib/Model/CreateSmsCampaignRecipients.php @@ -63,8 +63,8 @@ class CreateSmsCampaignRecipients implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'listIds' => 'int32', - 'exclusionListIds' => 'int32' + 'listIds' => 'int64', + 'exclusionListIds' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/CreaUpdateFolder.php b/lib/Model/CreateUpdateFolder.php similarity index 97% rename from lib/Model/CreaUpdateFolder.php rename to lib/Model/CreateUpdateFolder.php index e9da5086..37ed7eb3 100644 --- a/lib/Model/CreaUpdateFolder.php +++ b/lib/Model/CreateUpdateFolder.php @@ -1,6 +1,6 @@ 'int32' + 'processId' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetAccountPlan.php b/lib/Model/GetAccountPlan.php index cfbdaacc..c3db6328 100644 --- a/lib/Model/GetAccountPlan.php +++ b/lib/Model/GetAccountPlan.php @@ -56,7 +56,9 @@ class GetAccountPlan implements ArrayAccess protected static $swaggerTypes = [ 'type' => 'string', 'creditsType' => 'string', - 'credits' => 'float' + 'credits' => 'float', + 'startDate' => '\DateTime', + 'endDate' => '\DateTime' ]; /** @@ -66,7 +68,9 @@ class GetAccountPlan implements ArrayAccess protected static $swaggerFormats = [ 'type' => null, 'creditsType' => null, - 'credits' => 'float' + 'credits' => 'float', + 'startDate' => 'date', + 'endDate' => 'date' ]; public static function swaggerTypes() @@ -86,7 +90,9 @@ public static function swaggerFormats() protected static $attributeMap = [ 'type' => 'type', 'creditsType' => 'creditsType', - 'credits' => 'credits' + 'credits' => 'credits', + 'startDate' => 'startDate', + 'endDate' => 'endDate' ]; @@ -97,7 +103,9 @@ public static function swaggerFormats() protected static $setters = [ 'type' => 'setType', 'creditsType' => 'setCreditsType', - 'credits' => 'setCredits' + 'credits' => 'setCredits', + 'startDate' => 'setStartDate', + 'endDate' => 'setEndDate' ]; @@ -108,7 +116,9 @@ public static function swaggerFormats() protected static $getters = [ 'type' => 'getType', 'creditsType' => 'getCreditsType', - 'credits' => 'getCredits' + 'credits' => 'getCredits', + 'startDate' => 'getStartDate', + 'endDate' => 'getEndDate' ]; public static function attributeMap() @@ -181,6 +191,8 @@ public function __construct(array $data = null) $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['creditsType'] = isset($data['creditsType']) ? $data['creditsType'] : null; $this->container['credits'] = isset($data['credits']) ? $data['credits'] : null; + $this->container['startDate'] = isset($data['startDate']) ? $data['startDate'] : null; + $this->container['endDate'] = isset($data['endDate']) ? $data['endDate'] : null; } /** @@ -330,6 +342,48 @@ public function setCredits($credits) return $this; } + + /** + * Gets startDate + * @return \DateTime + */ + public function getStartDate() + { + return $this->container['startDate']; + } + + /** + * Sets startDate + * @param \DateTime $startDate Date of the period from which the plan will start (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) + * @return $this + */ + public function setStartDate($startDate) + { + $this->container['startDate'] = $startDate; + + return $this; + } + + /** + * Gets endDate + * @return \DateTime + */ + public function getEndDate() + { + return $this->container['endDate']; + } + + /** + * Sets endDate + * @param \DateTime $endDate Date of the period from which the plan will end (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) + * @return $this + */ + public function setEndDate($endDate) + { + $this->container['endDate'] = $endDate; + + return $this; + } /** * Returns true if offset exists. False otherwise. * @param integer $offset Offset diff --git a/lib/Model/GetAggregatedReport.php b/lib/Model/GetAggregatedReport.php index 1d4fd713..655b00b3 100644 --- a/lib/Model/GetAggregatedReport.php +++ b/lib/Model/GetAggregatedReport.php @@ -74,17 +74,17 @@ class GetAggregatedReport implements ArrayAccess */ protected static $swaggerFormats = [ 'range' => null, - 'requests' => 'int32', - 'delivered' => 'int32', - 'hardBounces' => 'int32', - 'softBounces' => 'int32', - 'clicks' => 'int32', - 'uniqueClicks' => 'int32', - 'opens' => 'int32', - 'uniqueOpens' => 'int32', - 'spamReports' => 'int32', - 'blocked' => 'int32', - 'invalid' => 'int32' + 'requests' => 'int64', + 'delivered' => 'int64', + 'hardBounces' => 'int64', + 'softBounces' => 'int64', + 'clicks' => 'int64', + 'uniqueClicks' => 'int64', + 'opens' => 'int64', + 'uniqueOpens' => 'int64', + 'spamReports' => 'int64', + 'blocked' => 'int64', + 'invalid' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetAttributesAttributes.php b/lib/Model/GetAttributesAttributes.php index feca442f..081616e2 100644 --- a/lib/Model/GetAttributesAttributes.php +++ b/lib/Model/GetAttributesAttributes.php @@ -67,7 +67,7 @@ class GetAttributesAttributes implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, 'category' => null, 'type' => null, diff --git a/lib/Model/GetAttributesEnumeration.php b/lib/Model/GetAttributesEnumeration.php index 561d9cbd..be3b12d1 100644 --- a/lib/Model/GetAttributesEnumeration.php +++ b/lib/Model/GetAttributesEnumeration.php @@ -63,7 +63,7 @@ class GetAttributesEnumeration implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'value' => 'int32', + 'value' => 'int64', 'label' => null ]; diff --git a/lib/Model/GetCampaignOverview.php b/lib/Model/GetCampaignOverview.php index 996f11d0..1663bb41 100644 --- a/lib/Model/GetCampaignOverview.php +++ b/lib/Model/GetCampaignOverview.php @@ -59,7 +59,7 @@ class GetCampaignOverview implements ArrayAccess 'subject' => 'string', 'type' => 'string', 'status' => 'string', - 'scheduledAt' => 'string' + 'scheduledAt' => '\DateTime' ]; /** @@ -67,12 +67,12 @@ class GetCampaignOverview implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, 'subject' => null, 'type' => null, 'status' => null, - 'scheduledAt' => null + 'scheduledAt' => 'date-time' ]; public static function swaggerTypes() @@ -241,10 +241,6 @@ public function listInvalidProperties() ); } - if (!is_null($this->container['scheduledAt']) && !preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -280,9 +276,6 @@ public function valid() if (!in_array($this->container['status'], $allowed_values)) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } return true; } @@ -412,7 +405,7 @@ public function setStatus($status) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -421,16 +414,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $scheduledAt Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setScheduledAt($scheduledAt) { - - if (!is_null($scheduledAt) && (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetCampaignOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; diff --git a/lib/Model/GetCampaignRecipientsExclusionLists.php b/lib/Model/GetCampaignRecipientsExclusionLists.php index c2356b85..87728b2a 100644 --- a/lib/Model/GetCampaignRecipientsExclusionLists.php +++ b/lib/Model/GetCampaignRecipientsExclusionLists.php @@ -63,7 +63,7 @@ class GetCampaignRecipientsExclusionLists implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null ]; diff --git a/lib/Model/GetCampaignRecipientsLists.php b/lib/Model/GetCampaignRecipientsLists.php index a6cb9df8..74a5895a 100644 --- a/lib/Model/GetCampaignRecipientsLists.php +++ b/lib/Model/GetCampaignRecipientsLists.php @@ -63,7 +63,7 @@ class GetCampaignRecipientsLists implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null ]; diff --git a/lib/Model/GetCampaignStats.php b/lib/Model/GetCampaignStats.php index 87a7824d..44451414 100644 --- a/lib/Model/GetCampaignStats.php +++ b/lib/Model/GetCampaignStats.php @@ -73,18 +73,18 @@ class GetCampaignStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'listId' => 'int32', - 'uniqueClicks' => 'int32', - 'clickers' => 'int32', - 'complaints' => 'int32', - 'delivered' => 'int32', - 'sent' => 'int32', - 'softBounces' => 'int32', - 'hardBounces' => 'int32', - 'uniqueViews' => 'int32', - 'unsubscriptions' => 'int32', - 'viewed' => 'int32', - 'deferred' => 'int32' + 'listId' => 'int64', + 'uniqueClicks' => 'int64', + 'clickers' => 'int64', + 'complaints' => 'int64', + 'delivered' => 'int64', + 'sent' => 'int64', + 'softBounces' => 'int64', + 'hardBounces' => 'int64', + 'uniqueViews' => 'int64', + 'unsubscriptions' => 'int64', + 'viewed' => 'int64', + 'deferred' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetChildInfoCredits.php b/lib/Model/GetChildInfoCredits.php index c324318d..efcdb91d 100644 --- a/lib/Model/GetChildInfoCredits.php +++ b/lib/Model/GetChildInfoCredits.php @@ -64,8 +64,8 @@ class GetChildInfoCredits implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'emailCredits' => 'int32', - 'smsCredits' => 'int32' + 'emailCredits' => 'int64', + 'smsCredits' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetChildInfoIps.php b/lib/Model/GetChildInfoIps.php index df7a897f..df6e24ba 100644 --- a/lib/Model/GetChildInfoIps.php +++ b/lib/Model/GetChildInfoIps.php @@ -63,7 +63,7 @@ class GetChildInfoIps implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'ip' => 'ip' ]; diff --git a/lib/Model/GetChildInfoStatistics.php b/lib/Model/GetChildInfoStatistics.php index 069a205e..2c4a5637 100644 --- a/lib/Model/GetChildInfoStatistics.php +++ b/lib/Model/GetChildInfoStatistics.php @@ -65,9 +65,9 @@ class GetChildInfoStatistics implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'previousMonthTotalSent' => 'int32', - 'currentMonthTotalSent' => 'int32', - 'totalSent' => 'int32' + 'previousMonthTotalSent' => 'int64', + 'currentMonthTotalSent' => 'int64', + 'totalSent' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetContactCampaignStatsClicked.php b/lib/Model/GetContactCampaignStatsClicked.php index 61a50764..7f2d6778 100644 --- a/lib/Model/GetContactCampaignStatsClicked.php +++ b/lib/Model/GetContactCampaignStatsClicked.php @@ -63,7 +63,7 @@ class GetContactCampaignStatsClicked implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaignId' => 'int32', + 'campaignId' => 'int64', 'links' => null ]; diff --git a/lib/Model/GetContactCampaignStatsOpened.php b/lib/Model/GetContactCampaignStatsOpened.php index b114827b..f1b7b122 100644 --- a/lib/Model/GetContactCampaignStatsOpened.php +++ b/lib/Model/GetContactCampaignStatsOpened.php @@ -56,7 +56,7 @@ class GetContactCampaignStatsOpened implements ArrayAccess protected static $swaggerTypes = [ 'campaignId' => 'int', 'count' => 'int', - 'eventTime' => 'string', + 'eventTime' => '\DateTime', 'ip' => 'string' ]; @@ -65,9 +65,9 @@ class GetContactCampaignStatsOpened implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaignId' => 'int32', - 'count' => 'int32', - 'eventTime' => null, + 'campaignId' => 'int64', + 'count' => 'int64', + 'eventTime' => 'date-time', 'ip' => null ]; @@ -171,10 +171,6 @@ public function listInvalidProperties() if ($this->container['eventTime'] === null) { $invalid_properties[] = "'eventTime' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - $invalid_properties[] = "invalid value for 'eventTime', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; } @@ -199,9 +195,6 @@ public function valid() if ($this->container['eventTime'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - return false; - } if ($this->container['ip'] === null) { return false; } @@ -253,7 +246,7 @@ public function setCount($count) /** * Gets eventTime - * @return string + * @return \DateTime */ public function getEventTime() { @@ -262,16 +255,11 @@ public function getEventTime() /** * Sets eventTime - * @param string $eventTime Date of the event + * @param \DateTime $eventTime Date of the event * @return $this */ public function setEventTime($eventTime) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $eventTime))) { - throw new \InvalidArgumentException("invalid value for $eventTime when calling GetContactCampaignStatsOpened., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['eventTime'] = $eventTime; return $this; diff --git a/lib/Model/GetContactCampaignStatsTransacAttributes.php b/lib/Model/GetContactCampaignStatsTransacAttributes.php index 46cb471e..2a2e7599 100644 --- a/lib/Model/GetContactCampaignStatsTransacAttributes.php +++ b/lib/Model/GetContactCampaignStatsTransacAttributes.php @@ -66,7 +66,7 @@ class GetContactCampaignStatsTransacAttributes implements ArrayAccess protected static $swaggerFormats = [ 'orderDate' => 'date', 'orderPrice' => 'float', - 'orderId' => 'int32' + 'orderId' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetContactDetails.php b/lib/Model/GetContactDetails.php index 312b442a..ab2aa277 100644 --- a/lib/Model/GetContactDetails.php +++ b/lib/Model/GetContactDetails.php @@ -58,7 +58,7 @@ class GetContactDetails implements ArrayAccess 'id' => 'int', 'emailBlacklisted' => 'bool', 'smsBlacklisted' => 'bool', - 'modifiedAt' => 'string', + 'modifiedAt' => '\DateTime', 'listIds' => 'int[]', 'listUnsubscribed' => 'int[]', 'attributes' => 'map[string,string]' @@ -70,12 +70,12 @@ class GetContactDetails implements ArrayAccess */ protected static $swaggerFormats = [ 'email' => 'email', - 'id' => 'int32', + 'id' => 'int64', 'emailBlacklisted' => null, 'smsBlacklisted' => null, - 'modifiedAt' => null, - 'listIds' => 'int32', - 'listUnsubscribed' => 'int32', + 'modifiedAt' => 'date-time', + 'listIds' => 'int64', + 'listUnsubscribed' => 'int64', 'attributes' => null ]; @@ -201,10 +201,6 @@ public function listInvalidProperties() if ($this->container['modifiedAt'] === null) { $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['listIds'] === null) { $invalid_properties[] = "'listIds' can't be null"; } @@ -238,9 +234,6 @@ public function valid() if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - return false; - } if ($this->container['listIds'] === null) { return false; } @@ -337,7 +330,7 @@ public function setSmsBlacklisted($smsBlacklisted) /** * Gets modifiedAt - * @return string + * @return \DateTime */ public function getModifiedAt() { @@ -346,16 +339,11 @@ public function getModifiedAt() /** * Sets modifiedAt - * @param string $modifiedAt Last modification date of the contact (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $modifiedAt Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setModifiedAt($modifiedAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $modifiedAt))) { - throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetContactDetails., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['modifiedAt'] = $modifiedAt; return $this; diff --git a/lib/Model/GetContacts.php b/lib/Model/GetContacts.php index a2a133cd..2d3fadac 100644 --- a/lib/Model/GetContacts.php +++ b/lib/Model/GetContacts.php @@ -64,7 +64,7 @@ class GetContacts implements ArrayAccess */ protected static $swaggerFormats = [ 'contacts' => null, - 'count' => 'int32' + 'count' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetEmailCampaign.php b/lib/Model/GetEmailCampaign.php index 8988c82e..f69d4a5d 100644 --- a/lib/Model/GetEmailCampaign.php +++ b/lib/Model/GetEmailCampaign.php @@ -59,7 +59,7 @@ class GetEmailCampaign implements ArrayAccess 'subject' => 'string', 'type' => 'string', 'status' => 'string', - 'scheduledAt' => 'string', + 'scheduledAt' => '\DateTime', 'testSent' => 'bool', 'header' => 'string', 'footer' => 'string', @@ -69,8 +69,8 @@ class GetEmailCampaign implements ArrayAccess 'htmlContent' => 'string', 'shareLink' => 'string', 'tag' => 'string', - 'createdAt' => 'string', - 'modifiedAt' => 'string', + 'createdAt' => '\DateTime', + 'modifiedAt' => '\DateTime', 'inlineImageActivation' => 'bool', 'mirrorActive' => 'bool', 'recurring' => 'bool' @@ -81,12 +81,12 @@ class GetEmailCampaign implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, 'subject' => null, 'type' => null, 'status' => null, - 'scheduledAt' => null, + 'scheduledAt' => 'date-time', 'testSent' => null, 'header' => null, 'footer' => null, @@ -96,8 +96,8 @@ class GetEmailCampaign implements ArrayAccess 'htmlContent' => null, 'shareLink' => 'url', 'tag' => null, - 'createdAt' => null, - 'modifiedAt' => null, + 'createdAt' => 'date-time', + 'modifiedAt' => 'date-time', 'inlineImageActivation' => null, 'mirrorActive' => null, 'recurring' => null @@ -325,10 +325,6 @@ public function listInvalidProperties() ); } - if (!is_null($this->container['scheduledAt']) && !preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['testSent'] === null) { $invalid_properties[] = "'testSent' can't be null"; } @@ -353,17 +349,9 @@ public function listInvalidProperties() if ($this->container['createdAt'] === null) { $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['modifiedAt'] === null) { $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -399,9 +387,6 @@ public function valid() if (!in_array($this->container['status'], $allowed_values)) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } if ($this->container['testSent'] === null) { return false; } @@ -426,15 +411,9 @@ public function valid() if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - return false; - } if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - return false; - } return true; } @@ -564,7 +543,7 @@ public function setStatus($status) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -573,16 +552,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $scheduledAt Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setScheduledAt($scheduledAt) { - - if (!is_null($scheduledAt) && (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetEmailCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; @@ -779,7 +753,7 @@ public function setTag($tag) /** * Gets createdAt - * @return string + * @return \DateTime */ public function getCreatedAt() { @@ -788,16 +762,11 @@ public function getCreatedAt() /** * Sets createdAt - * @param string $createdAt Creation date of the campaign (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $createdAt Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setCreatedAt($createdAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $createdAt))) { - throw new \InvalidArgumentException("invalid value for $createdAt when calling GetEmailCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['createdAt'] = $createdAt; return $this; @@ -805,7 +774,7 @@ public function setCreatedAt($createdAt) /** * Gets modifiedAt - * @return string + * @return \DateTime */ public function getModifiedAt() { @@ -814,16 +783,11 @@ public function getModifiedAt() /** * Sets modifiedAt - * @param string $modifiedAt Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $modifiedAt Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setModifiedAt($modifiedAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $modifiedAt))) { - throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetEmailCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['modifiedAt'] = $modifiedAt; return $this; diff --git a/lib/Model/GetEmailCampaigns.php b/lib/Model/GetEmailCampaigns.php index 1c7434db..0f441353 100644 --- a/lib/Model/GetEmailCampaigns.php +++ b/lib/Model/GetEmailCampaigns.php @@ -64,7 +64,7 @@ class GetEmailCampaigns implements ArrayAccess */ protected static $swaggerFormats = [ 'campaigns' => null, - 'count' => 'int32' + 'count' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetEmailEventReportEvents.php b/lib/Model/GetEmailEventReportEvents.php index d73f72ee..a47e2ab2 100644 --- a/lib/Model/GetEmailEventReportEvents.php +++ b/lib/Model/GetEmailEventReportEvents.php @@ -383,7 +383,7 @@ public function getEvent() /** * Sets event - * @param string $event Event which occured + * @param string $event Event which occurred * @return $this */ public function setEvent($event) @@ -413,7 +413,7 @@ public function getReason() /** * Sets reason - * @param string $reason Reason of bounce (only availble if the event is hardbounce or softbounce) + * @param string $reason Reason of bounce (only available if the event is hardbounce or softbounce) * @return $this */ public function setReason($reason) @@ -455,7 +455,7 @@ public function getIp() /** * Sets ip - * @param string $ip IP from which the user has opened the email or clicked on the link (only availble if the event is opened or clicks) + * @param string $ip IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) * @return $this */ public function setIp($ip) @@ -476,7 +476,7 @@ public function getLink() /** * Sets link - * @param string $link The link which is sent to the user (only availble if the event is requests or opened or clicks) + * @param string $link The link which is sent to the user (only available if the event is requests or opened or clicks) * @return $this */ public function setLink($link) diff --git a/lib/Model/GetExtendedCampaignOverview.php b/lib/Model/GetExtendedCampaignOverview.php index b8ed7237..7299e1b9 100644 --- a/lib/Model/GetExtendedCampaignOverview.php +++ b/lib/Model/GetExtendedCampaignOverview.php @@ -59,7 +59,7 @@ class GetExtendedCampaignOverview implements ArrayAccess 'subject' => 'string', 'type' => 'string', 'status' => 'string', - 'scheduledAt' => 'string', + 'scheduledAt' => '\DateTime', 'testSent' => 'bool', 'header' => 'string', 'footer' => 'string', @@ -69,8 +69,8 @@ class GetExtendedCampaignOverview implements ArrayAccess 'htmlContent' => 'string', 'shareLink' => 'string', 'tag' => 'string', - 'createdAt' => 'string', - 'modifiedAt' => 'string', + 'createdAt' => '\DateTime', + 'modifiedAt' => '\DateTime', 'inlineImageActivation' => 'bool', 'mirrorActive' => 'bool', 'recurring' => 'bool' @@ -81,12 +81,12 @@ class GetExtendedCampaignOverview implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, 'subject' => null, 'type' => null, 'status' => null, - 'scheduledAt' => null, + 'scheduledAt' => 'date-time', 'testSent' => null, 'header' => null, 'footer' => null, @@ -96,8 +96,8 @@ class GetExtendedCampaignOverview implements ArrayAccess 'htmlContent' => null, 'shareLink' => 'url', 'tag' => null, - 'createdAt' => null, - 'modifiedAt' => null, + 'createdAt' => 'date-time', + 'modifiedAt' => 'date-time', 'inlineImageActivation' => null, 'mirrorActive' => null, 'recurring' => null @@ -325,10 +325,6 @@ public function listInvalidProperties() ); } - if (!is_null($this->container['scheduledAt']) && !preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['testSent'] === null) { $invalid_properties[] = "'testSent' can't be null"; } @@ -353,17 +349,9 @@ public function listInvalidProperties() if ($this->container['createdAt'] === null) { $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['modifiedAt'] === null) { $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -399,9 +387,6 @@ public function valid() if (!in_array($this->container['status'], $allowed_values)) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } if ($this->container['testSent'] === null) { return false; } @@ -426,15 +411,9 @@ public function valid() if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - return false; - } if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - return false; - } return true; } @@ -564,7 +543,7 @@ public function setStatus($status) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -573,16 +552,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $scheduledAt Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setScheduledAt($scheduledAt) { - - if (!is_null($scheduledAt) && (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetExtendedCampaignOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; @@ -779,7 +753,7 @@ public function setTag($tag) /** * Gets createdAt - * @return string + * @return \DateTime */ public function getCreatedAt() { @@ -788,16 +762,11 @@ public function getCreatedAt() /** * Sets createdAt - * @param string $createdAt Creation date of the campaign (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $createdAt Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setCreatedAt($createdAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $createdAt))) { - throw new \InvalidArgumentException("invalid value for $createdAt when calling GetExtendedCampaignOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['createdAt'] = $createdAt; return $this; @@ -805,7 +774,7 @@ public function setCreatedAt($createdAt) /** * Gets modifiedAt - * @return string + * @return \DateTime */ public function getModifiedAt() { @@ -814,16 +783,11 @@ public function getModifiedAt() /** * Sets modifiedAt - * @param string $modifiedAt Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $modifiedAt Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setModifiedAt($modifiedAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $modifiedAt))) { - throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetExtendedCampaignOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['modifiedAt'] = $modifiedAt; return $this; diff --git a/lib/Model/GetExtendedCampaignStats.php b/lib/Model/GetExtendedCampaignStats.php index 580045e6..c8e4ae61 100644 --- a/lib/Model/GetExtendedCampaignStats.php +++ b/lib/Model/GetExtendedCampaignStats.php @@ -67,8 +67,8 @@ class GetExtendedCampaignStats implements ArrayAccess */ protected static $swaggerFormats = [ 'campaignStats' => null, - 'mirrorClick' => 'int32', - 'remaining' => 'int32', + 'mirrorClick' => 'int64', + 'remaining' => 'int64', 'linksStats' => null, 'statsByDomain' => null ]; diff --git a/lib/Model/GetExtendedCampaignStatsLinksStats.php b/lib/Model/GetExtendedCampaignStatsLinksStats.php index 4bcf8d39..98353aa6 100644 --- a/lib/Model/GetExtendedCampaignStatsLinksStats.php +++ b/lib/Model/GetExtendedCampaignStatsLinksStats.php @@ -63,7 +63,7 @@ class GetExtendedCampaignStatsLinksStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'nbClick' => 'int32' + 'nbClick' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetExtendedContactDetails.php b/lib/Model/GetExtendedContactDetails.php index b27c5469..d8eaa0f1 100644 --- a/lib/Model/GetExtendedContactDetails.php +++ b/lib/Model/GetExtendedContactDetails.php @@ -58,7 +58,7 @@ class GetExtendedContactDetails implements ArrayAccess 'id' => 'int', 'emailBlacklisted' => 'bool', 'smsBlacklisted' => 'bool', - 'modifiedAt' => 'string', + 'modifiedAt' => '\DateTime', 'listIds' => 'int[]', 'listUnsubscribed' => 'int[]', 'attributes' => 'map[string,string]', @@ -71,12 +71,12 @@ class GetExtendedContactDetails implements ArrayAccess */ protected static $swaggerFormats = [ 'email' => 'email', - 'id' => 'int32', + 'id' => 'int64', 'emailBlacklisted' => null, 'smsBlacklisted' => null, - 'modifiedAt' => null, - 'listIds' => 'int32', - 'listUnsubscribed' => 'int32', + 'modifiedAt' => 'date-time', + 'listIds' => 'int64', + 'listUnsubscribed' => 'int64', 'attributes' => null, 'statistics' => null ]; @@ -207,10 +207,6 @@ public function listInvalidProperties() if ($this->container['modifiedAt'] === null) { $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['listIds'] === null) { $invalid_properties[] = "'listIds' can't be null"; } @@ -244,9 +240,6 @@ public function valid() if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - return false; - } if ($this->container['listIds'] === null) { return false; } @@ -343,7 +336,7 @@ public function setSmsBlacklisted($smsBlacklisted) /** * Gets modifiedAt - * @return string + * @return \DateTime */ public function getModifiedAt() { @@ -352,16 +345,11 @@ public function getModifiedAt() /** * Sets modifiedAt - * @param string $modifiedAt Last modification date of the contact (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $modifiedAt Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setModifiedAt($modifiedAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $modifiedAt))) { - throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetExtendedContactDetails., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['modifiedAt'] = $modifiedAt; return $this; diff --git a/lib/Model/GetExtendedContactDetailsStatisticsClicked.php b/lib/Model/GetExtendedContactDetailsStatisticsClicked.php index ef541a6c..707c56d5 100644 --- a/lib/Model/GetExtendedContactDetailsStatisticsClicked.php +++ b/lib/Model/GetExtendedContactDetailsStatisticsClicked.php @@ -63,7 +63,7 @@ class GetExtendedContactDetailsStatisticsClicked implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaignId' => 'int32', + 'campaignId' => 'int64', 'links' => null ]; diff --git a/lib/Model/GetExtendedContactDetailsStatisticsLinks.php b/lib/Model/GetExtendedContactDetailsStatisticsLinks.php index a1a7bc28..4562ee65 100644 --- a/lib/Model/GetExtendedContactDetailsStatisticsLinks.php +++ b/lib/Model/GetExtendedContactDetailsStatisticsLinks.php @@ -55,7 +55,7 @@ class GetExtendedContactDetailsStatisticsLinks implements ArrayAccess */ protected static $swaggerTypes = [ 'count' => 'int', - 'eventTime' => 'string', + 'eventTime' => '\DateTime', 'ip' => 'string', 'url' => 'string' ]; @@ -65,8 +65,8 @@ class GetExtendedContactDetailsStatisticsLinks implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'count' => 'int32', - 'eventTime' => null, + 'count' => 'int64', + 'eventTime' => 'date-time', 'ip' => null, 'url' => null ]; @@ -168,10 +168,6 @@ public function listInvalidProperties() if ($this->container['eventTime'] === null) { $invalid_properties[] = "'eventTime' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - $invalid_properties[] = "invalid value for 'eventTime', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; } @@ -196,9 +192,6 @@ public function valid() if ($this->container['eventTime'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - return false; - } if ($this->container['ip'] === null) { return false; } @@ -232,7 +225,7 @@ public function setCount($count) /** * Gets eventTime - * @return string + * @return \DateTime */ public function getEventTime() { @@ -241,16 +234,11 @@ public function getEventTime() /** * Sets eventTime - * @param string $eventTime Date of the event + * @param \DateTime $eventTime Date of the event * @return $this */ public function setEventTime($eventTime) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $eventTime))) { - throw new \InvalidArgumentException("invalid value for $eventTime when calling GetExtendedContactDetailsStatisticsLinks., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['eventTime'] = $eventTime; return $this; diff --git a/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php b/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php index 3981fd0e..e4f4a060 100644 --- a/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php +++ b/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php @@ -55,7 +55,7 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ArrayAccess */ protected static $swaggerTypes = [ 'campaignId' => 'int', - 'eventTime' => 'string' + 'eventTime' => '\DateTime' ]; /** @@ -63,8 +63,8 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaignId' => 'int32', - 'eventTime' => null + 'campaignId' => 'int64', + 'eventTime' => 'date-time' ]; public static function swaggerTypes() @@ -156,10 +156,6 @@ public function listInvalidProperties() if ($this->container['eventTime'] === null) { $invalid_properties[] = "'eventTime' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - $invalid_properties[] = "invalid value for 'eventTime', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -178,9 +174,6 @@ public function valid() if ($this->container['eventTime'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - return false; - } return true; } @@ -208,7 +201,7 @@ public function setCampaignId($campaignId) /** * Gets eventTime - * @return string + * @return \DateTime */ public function getEventTime() { @@ -217,16 +210,11 @@ public function getEventTime() /** * Sets eventTime - * @param string $eventTime Date of the event + * @param \DateTime $eventTime Date of the event * @return $this */ public function setEventTime($eventTime) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $eventTime))) { - throw new \InvalidArgumentException("invalid value for $eventTime when calling GetExtendedContactDetailsStatisticsMessagesSent., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['eventTime'] = $eventTime; return $this; diff --git a/lib/Model/GetExtendedContactDetailsStatisticsOpened.php b/lib/Model/GetExtendedContactDetailsStatisticsOpened.php index 3ce9df4e..6540511c 100644 --- a/lib/Model/GetExtendedContactDetailsStatisticsOpened.php +++ b/lib/Model/GetExtendedContactDetailsStatisticsOpened.php @@ -56,7 +56,7 @@ class GetExtendedContactDetailsStatisticsOpened implements ArrayAccess protected static $swaggerTypes = [ 'campaignId' => 'int', 'count' => 'int', - 'eventTime' => 'string', + 'eventTime' => '\DateTime', 'ip' => 'string' ]; @@ -65,9 +65,9 @@ class GetExtendedContactDetailsStatisticsOpened implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaignId' => 'int32', - 'count' => 'int32', - 'eventTime' => null, + 'campaignId' => 'int64', + 'count' => 'int64', + 'eventTime' => 'date-time', 'ip' => null ]; @@ -171,10 +171,6 @@ public function listInvalidProperties() if ($this->container['eventTime'] === null) { $invalid_properties[] = "'eventTime' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - $invalid_properties[] = "invalid value for 'eventTime', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; } @@ -199,9 +195,6 @@ public function valid() if ($this->container['eventTime'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - return false; - } if ($this->container['ip'] === null) { return false; } @@ -253,7 +246,7 @@ public function setCount($count) /** * Gets eventTime - * @return string + * @return \DateTime */ public function getEventTime() { @@ -262,16 +255,11 @@ public function getEventTime() /** * Sets eventTime - * @param string $eventTime Date of the event + * @param \DateTime $eventTime Date of the event * @return $this */ public function setEventTime($eventTime) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $eventTime))) { - throw new \InvalidArgumentException("invalid value for $eventTime when calling GetExtendedContactDetailsStatisticsOpened., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['eventTime'] = $eventTime; return $this; diff --git a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php index 7630dc48..c28f2ccd 100644 --- a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php +++ b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php @@ -54,7 +54,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl * @var string[] */ protected static $swaggerTypes = [ - 'eventTime' => 'string', + 'eventTime' => '\DateTime', 'ip' => 'string' ]; @@ -63,7 +63,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl * @var string[] */ protected static $swaggerFormats = [ - 'eventTime' => null, + 'eventTime' => 'date-time', 'ip' => null ]; @@ -153,10 +153,6 @@ public function listInvalidProperties() if ($this->container['eventTime'] === null) { $invalid_properties[] = "'eventTime' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - $invalid_properties[] = "invalid value for 'eventTime', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; } @@ -175,9 +171,6 @@ public function valid() if ($this->container['eventTime'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - return false; - } if ($this->container['ip'] === null) { return false; } @@ -187,7 +180,7 @@ public function valid() /** * Gets eventTime - * @return string + * @return \DateTime */ public function getEventTime() { @@ -196,16 +189,11 @@ public function getEventTime() /** * Sets eventTime - * @param string $eventTime Date of the event + * @param \DateTime $eventTime Date of the event * @return $this */ public function setEventTime($eventTime) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $eventTime))) { - throw new \InvalidArgumentException("invalid value for $eventTime when calling GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['eventTime'] = $eventTime; return $this; diff --git a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php index 795469d6..a570aeb3 100644 --- a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php +++ b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php @@ -55,7 +55,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple */ protected static $swaggerTypes = [ 'campaignId' => 'int', - 'eventTime' => 'string', + 'eventTime' => '\DateTime', 'ip' => 'string' ]; @@ -64,8 +64,8 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple * @var string[] */ protected static $swaggerFormats = [ - 'campaignId' => 'int32', - 'eventTime' => null, + 'campaignId' => 'int64', + 'eventTime' => 'date-time', 'ip' => null ]; @@ -162,10 +162,6 @@ public function listInvalidProperties() if ($this->container['eventTime'] === null) { $invalid_properties[] = "'eventTime' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - $invalid_properties[] = "invalid value for 'eventTime', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; } @@ -187,9 +183,6 @@ public function valid() if ($this->container['eventTime'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['eventTime'])) { - return false; - } if ($this->container['ip'] === null) { return false; } @@ -220,7 +213,7 @@ public function setCampaignId($campaignId) /** * Gets eventTime - * @return string + * @return \DateTime */ public function getEventTime() { @@ -229,16 +222,11 @@ public function getEventTime() /** * Sets eventTime - * @param string $eventTime Date of the event + * @param \DateTime $eventTime Date of the event * @return $this */ public function setEventTime($eventTime) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $eventTime))) { - throw new \InvalidArgumentException("invalid value for $eventTime when calling GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['eventTime'] = $eventTime; return $this; diff --git a/lib/Model/GetExtendedList.php b/lib/Model/GetExtendedList.php index af113320..d21c728d 100644 --- a/lib/Model/GetExtendedList.php +++ b/lib/Model/GetExtendedList.php @@ -59,7 +59,7 @@ class GetExtendedList implements ArrayAccess 'totalBlacklisted' => 'int', 'totalSubscribers' => 'int', 'folderId' => 'int', - 'createdAt' => 'string', + 'createdAt' => '\DateTime', 'campaignStats' => '\SendinBlue\Client\Model\GetExtendedListCampaignStats[]', 'dynamicList' => 'bool' ]; @@ -69,12 +69,12 @@ class GetExtendedList implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, - 'totalBlacklisted' => 'int32', - 'totalSubscribers' => 'int32', - 'folderId' => 'int32', - 'createdAt' => null, + 'totalBlacklisted' => 'int64', + 'totalSubscribers' => 'int64', + 'folderId' => 'int64', + 'createdAt' => 'date-time', 'campaignStats' => null, 'dynamicList' => null ]; @@ -204,10 +204,6 @@ public function listInvalidProperties() if ($this->container['createdAt'] === null) { $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -238,9 +234,6 @@ public function valid() if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - return false; - } return true; } @@ -352,7 +345,7 @@ public function setFolderId($folderId) /** * Gets createdAt - * @return string + * @return \DateTime */ public function getCreatedAt() { @@ -361,16 +354,11 @@ public function getCreatedAt() /** * Sets createdAt - * @param string $createdAt Creation Date of the list (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $createdAt Creation Date of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setCreatedAt($createdAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $createdAt))) { - throw new \InvalidArgumentException("invalid value for $createdAt when calling GetExtendedList., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['createdAt'] = $createdAt; return $this; diff --git a/lib/Model/GetExtendedListCampaignStats.php b/lib/Model/GetExtendedListCampaignStats.php index f319babc..24b55a9c 100644 --- a/lib/Model/GetExtendedListCampaignStats.php +++ b/lib/Model/GetExtendedListCampaignStats.php @@ -63,7 +63,7 @@ class GetExtendedListCampaignStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaignId' => 'int32', + 'campaignId' => 'int64', 'stats' => null ]; diff --git a/lib/Model/GetFolder.php b/lib/Model/GetFolder.php index c4dfe436..fb0208a0 100644 --- a/lib/Model/GetFolder.php +++ b/lib/Model/GetFolder.php @@ -66,11 +66,11 @@ class GetFolder implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, - 'totalBlacklisted' => 'int32', - 'totalSubscribers' => 'int32', - 'uniqueSubscribers' => 'int32' + 'totalBlacklisted' => 'int64', + 'totalSubscribers' => 'int64', + 'uniqueSubscribers' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetFolderLists.php b/lib/Model/GetFolderLists.php index 540c3707..00f57e72 100644 --- a/lib/Model/GetFolderLists.php +++ b/lib/Model/GetFolderLists.php @@ -64,7 +64,7 @@ class GetFolderLists implements ArrayAccess */ protected static $swaggerFormats = [ 'lists' => null, - 'count' => 'int32' + 'count' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetFolders.php b/lib/Model/GetFolders.php index 79aeb514..6ab4c3f6 100644 --- a/lib/Model/GetFolders.php +++ b/lib/Model/GetFolders.php @@ -64,7 +64,7 @@ class GetFolders implements ArrayAccess */ protected static $swaggerFormats = [ 'folders' => null, - 'count' => 'int32' + 'count' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetIp.php b/lib/Model/GetIp.php index 3465f74a..f873e631 100644 --- a/lib/Model/GetIp.php +++ b/lib/Model/GetIp.php @@ -65,7 +65,7 @@ class GetIp implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'ip' => null, 'active' => null, 'domain' => null diff --git a/lib/Model/GetIpFromSender.php b/lib/Model/GetIpFromSender.php index de636a8f..7a0a0fac 100644 --- a/lib/Model/GetIpFromSender.php +++ b/lib/Model/GetIpFromSender.php @@ -65,10 +65,10 @@ class GetIpFromSender implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'ip' => null, 'domain' => null, - 'weight' => 'int32' + 'weight' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetList.php b/lib/Model/GetList.php index eb2a73d9..f760f728 100644 --- a/lib/Model/GetList.php +++ b/lib/Model/GetList.php @@ -65,10 +65,10 @@ class GetList implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, - 'totalBlacklisted' => 'int32', - 'totalSubscribers' => 'int32' + 'totalBlacklisted' => 'int64', + 'totalSubscribers' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetLists.php b/lib/Model/GetLists.php index 992a7ebc..5546e8c6 100644 --- a/lib/Model/GetLists.php +++ b/lib/Model/GetLists.php @@ -64,7 +64,7 @@ class GetLists implements ArrayAccess */ protected static $swaggerFormats = [ 'lists' => null, - 'count' => 'int32' + 'count' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetProcess.php b/lib/Model/GetProcess.php index d4a0f628..a2fec915 100644 --- a/lib/Model/GetProcess.php +++ b/lib/Model/GetProcess.php @@ -65,7 +65,7 @@ class GetProcess implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'status' => null, 'name' => null, 'exportUrl' => null diff --git a/lib/Model/GetProcesses.php b/lib/Model/GetProcesses.php index 23033ebf..ed660085 100644 --- a/lib/Model/GetProcesses.php +++ b/lib/Model/GetProcesses.php @@ -64,7 +64,7 @@ class GetProcesses implements ArrayAccess */ protected static $swaggerFormats = [ 'processes' => null, - 'count' => 'int32' + 'count' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetReportsReports.php b/lib/Model/GetReportsReports.php index d6f44dc0..b9a74ce2 100644 --- a/lib/Model/GetReportsReports.php +++ b/lib/Model/GetReportsReports.php @@ -76,17 +76,17 @@ class GetReportsReports implements ArrayAccess protected static $swaggerFormats = [ 'date' => 'date', 'tag' => null, - 'requests' => 'int32', - 'delivered' => 'int32', - 'hardBounces' => 'int32', - 'softBounces' => 'int32', - 'clicks' => 'int32', - 'uniqueClicks' => 'int32', - 'opens' => 'int32', - 'uniqueOpens' => 'int32', - 'spamReports' => 'int32', - 'blocked' => 'int32', - 'invalid' => 'int32' + 'requests' => 'int64', + 'delivered' => 'int64', + 'hardBounces' => 'int64', + 'softBounces' => 'int64', + 'clicks' => 'int64', + 'uniqueClicks' => 'int64', + 'opens' => 'int64', + 'uniqueOpens' => 'int64', + 'spamReports' => 'int64', + 'blocked' => 'int64', + 'invalid' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetSendersListIps.php b/lib/Model/GetSendersListIps.php index 1e16a980..536db95a 100644 --- a/lib/Model/GetSendersListIps.php +++ b/lib/Model/GetSendersListIps.php @@ -66,7 +66,7 @@ class GetSendersListIps implements ArrayAccess protected static $swaggerFormats = [ 'ip' => null, 'domain' => null, - 'weight' => 'int32' + 'weight' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetSendersListSenders.php b/lib/Model/GetSendersListSenders.php index 7c061f6f..6d561bfb 100644 --- a/lib/Model/GetSendersListSenders.php +++ b/lib/Model/GetSendersListSenders.php @@ -66,7 +66,7 @@ class GetSendersListSenders implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => null, + 'id' => 'int64', 'name' => null, 'email' => null, 'active' => null, diff --git a/lib/Model/GetSmsCampaign.php b/lib/Model/GetSmsCampaign.php index 22901e7b..6ac8eb17 100644 --- a/lib/Model/GetSmsCampaign.php +++ b/lib/Model/GetSmsCampaign.php @@ -58,11 +58,11 @@ class GetSmsCampaign implements ArrayAccess 'name' => 'string', 'status' => 'string', 'content' => 'string', - 'scheduledAt' => 'string', + 'scheduledAt' => '\DateTime', 'testSent' => 'bool', 'sender' => 'string', - 'createdAt' => 'string', - 'modifiedAt' => 'string' + 'createdAt' => '\DateTime', + 'modifiedAt' => '\DateTime' ]; /** @@ -70,15 +70,15 @@ class GetSmsCampaign implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, 'status' => null, 'content' => null, - 'scheduledAt' => null, + 'scheduledAt' => 'date-time', 'testSent' => null, 'sender' => null, - 'createdAt' => null, - 'modifiedAt' => null + 'createdAt' => 'date-time', + 'modifiedAt' => 'date-time' ]; public static function swaggerTypes() @@ -237,10 +237,6 @@ public function listInvalidProperties() if ($this->container['scheduledAt'] === null) { $invalid_properties[] = "'scheduledAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['testSent'] === null) { $invalid_properties[] = "'testSent' can't be null"; } @@ -250,17 +246,9 @@ public function listInvalidProperties() if ($this->container['createdAt'] === null) { $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['modifiedAt'] === null) { $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -292,9 +280,6 @@ public function valid() if ($this->container['scheduledAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } if ($this->container['testSent'] === null) { return false; } @@ -304,15 +289,9 @@ public function valid() if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - return false; - } if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - return false; - } return true; } @@ -412,7 +391,7 @@ public function setContent($content) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -421,16 +400,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format + * @param \DateTime $scheduledAt Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format * @return $this */ public function setScheduledAt($scheduledAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetSmsCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; @@ -480,7 +454,7 @@ public function setSender($sender) /** * Gets createdAt - * @return string + * @return \DateTime */ public function getCreatedAt() { @@ -489,16 +463,11 @@ public function getCreatedAt() /** * Sets createdAt - * @param string $createdAt Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $createdAt Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setCreatedAt($createdAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $createdAt))) { - throw new \InvalidArgumentException("invalid value for $createdAt when calling GetSmsCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['createdAt'] = $createdAt; return $this; @@ -506,7 +475,7 @@ public function setCreatedAt($createdAt) /** * Gets modifiedAt - * @return string + * @return \DateTime */ public function getModifiedAt() { @@ -515,16 +484,11 @@ public function getModifiedAt() /** * Sets modifiedAt - * @param string $modifiedAt Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $modifiedAt Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setModifiedAt($modifiedAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $modifiedAt))) { - throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetSmsCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['modifiedAt'] = $modifiedAt; return $this; diff --git a/lib/Model/GetSmsCampaignOverview.php b/lib/Model/GetSmsCampaignOverview.php index 2a2d5282..aa968878 100644 --- a/lib/Model/GetSmsCampaignOverview.php +++ b/lib/Model/GetSmsCampaignOverview.php @@ -58,11 +58,11 @@ class GetSmsCampaignOverview implements ArrayAccess 'name' => 'string', 'status' => 'string', 'content' => 'string', - 'scheduledAt' => 'string', + 'scheduledAt' => '\DateTime', 'testSent' => 'bool', 'sender' => 'string', - 'createdAt' => 'string', - 'modifiedAt' => 'string' + 'createdAt' => '\DateTime', + 'modifiedAt' => '\DateTime' ]; /** @@ -70,15 +70,15 @@ class GetSmsCampaignOverview implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, 'status' => null, 'content' => null, - 'scheduledAt' => null, + 'scheduledAt' => 'date-time', 'testSent' => null, 'sender' => null, - 'createdAt' => null, - 'modifiedAt' => null + 'createdAt' => 'date-time', + 'modifiedAt' => 'date-time' ]; public static function swaggerTypes() @@ -237,10 +237,6 @@ public function listInvalidProperties() if ($this->container['scheduledAt'] === null) { $invalid_properties[] = "'scheduledAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['testSent'] === null) { $invalid_properties[] = "'testSent' can't be null"; } @@ -250,17 +246,9 @@ public function listInvalidProperties() if ($this->container['createdAt'] === null) { $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['modifiedAt'] === null) { $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -292,9 +280,6 @@ public function valid() if ($this->container['scheduledAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } if ($this->container['testSent'] === null) { return false; } @@ -304,15 +289,9 @@ public function valid() if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - return false; - } if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - return false; - } return true; } @@ -412,7 +391,7 @@ public function setContent($content) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -421,16 +400,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format + * @param \DateTime $scheduledAt Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format * @return $this */ public function setScheduledAt($scheduledAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetSmsCampaignOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; @@ -480,7 +454,7 @@ public function setSender($sender) /** * Gets createdAt - * @return string + * @return \DateTime */ public function getCreatedAt() { @@ -489,16 +463,11 @@ public function getCreatedAt() /** * Sets createdAt - * @param string $createdAt Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $createdAt Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setCreatedAt($createdAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $createdAt))) { - throw new \InvalidArgumentException("invalid value for $createdAt when calling GetSmsCampaignOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['createdAt'] = $createdAt; return $this; @@ -506,7 +475,7 @@ public function setCreatedAt($createdAt) /** * Gets modifiedAt - * @return string + * @return \DateTime */ public function getModifiedAt() { @@ -515,16 +484,11 @@ public function getModifiedAt() /** * Sets modifiedAt - * @param string $modifiedAt Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $modifiedAt Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setModifiedAt($modifiedAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $modifiedAt))) { - throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetSmsCampaignOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['modifiedAt'] = $modifiedAt; return $this; diff --git a/lib/Model/GetSmsCampaignStats.php b/lib/Model/GetSmsCampaignStats.php index 63d7aa7c..48dca702 100644 --- a/lib/Model/GetSmsCampaignStats.php +++ b/lib/Model/GetSmsCampaignStats.php @@ -68,13 +68,13 @@ class GetSmsCampaignStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'delivered' => 'int32', - 'sent' => 'int32', - 'processing' => 'int32', - 'softBounces' => 'int32', - 'hardBounces' => 'int32', - 'unsubscriptions' => 'int32', - 'answered' => 'int32' + 'delivered' => 'int64', + 'sent' => 'int64', + 'processing' => 'int64', + 'softBounces' => 'int64', + 'hardBounces' => 'int64', + 'unsubscriptions' => 'int64', + 'answered' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetSmsCampaigns.php b/lib/Model/GetSmsCampaigns.php index 44494ef0..3d24fb06 100644 --- a/lib/Model/GetSmsCampaigns.php +++ b/lib/Model/GetSmsCampaigns.php @@ -64,7 +64,7 @@ class GetSmsCampaigns implements ArrayAccess */ protected static $swaggerFormats = [ 'campaigns' => null, - 'count' => 'int32' + 'count' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetSmsEventReportEvents.php b/lib/Model/GetSmsEventReportEvents.php index ce0d77f7..ffdc8c37 100644 --- a/lib/Model/GetSmsEventReportEvents.php +++ b/lib/Model/GetSmsEventReportEvents.php @@ -346,7 +346,7 @@ public function getEvent() /** * Sets event - * @param string $event Event which occured + * @param string $event Event which occurred * @return $this */ public function setEvent($event) @@ -376,7 +376,7 @@ public function getReason() /** * Sets reason - * @param string $reason Reason of bounce (only availble if the event is hardbounce or softbounce) + * @param string $reason Reason of bounce (only available if the event is hardbounce or softbounce) * @return $this */ public function setReason($reason) diff --git a/lib/Model/GetSmtpTemplateOverview.php b/lib/Model/GetSmtpTemplateOverview.php index 5b136164..dd27b349 100644 --- a/lib/Model/GetSmtpTemplateOverview.php +++ b/lib/Model/GetSmtpTemplateOverview.php @@ -64,8 +64,8 @@ class GetSmtpTemplateOverview implements ArrayAccess 'toField' => 'string', 'tag' => 'string', 'htmlContent' => 'string', - 'createdAt' => 'string', - 'modifiedAt' => 'string' + 'createdAt' => '\DateTime', + 'modifiedAt' => '\DateTime' ]; /** @@ -73,7 +73,7 @@ class GetSmtpTemplateOverview implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'id' => 'int32', + 'id' => 'int64', 'name' => null, 'subject' => null, 'isActive' => null, @@ -83,8 +83,8 @@ class GetSmtpTemplateOverview implements ArrayAccess 'toField' => null, 'tag' => null, 'htmlContent' => null, - 'createdAt' => null, - 'modifiedAt' => null + 'createdAt' => 'date-time', + 'modifiedAt' => 'date-time' ]; public static function swaggerTypes() @@ -240,17 +240,9 @@ public function listInvalidProperties() if ($this->container['createdAt'] === null) { $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['modifiedAt'] === null) { $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -293,15 +285,9 @@ public function valid() if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - return false; - } if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - return false; - } return true; } @@ -518,7 +504,7 @@ public function setHtmlContent($htmlContent) /** * Gets createdAt - * @return string + * @return \DateTime */ public function getCreatedAt() { @@ -527,16 +513,11 @@ public function getCreatedAt() /** * Sets createdAt - * @param string $createdAt Creation date of the template (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $createdAt Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setCreatedAt($createdAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $createdAt))) { - throw new \InvalidArgumentException("invalid value for $createdAt when calling GetSmtpTemplateOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['createdAt'] = $createdAt; return $this; @@ -544,7 +525,7 @@ public function setCreatedAt($createdAt) /** * Gets modifiedAt - * @return string + * @return \DateTime */ public function getModifiedAt() { @@ -553,16 +534,11 @@ public function getModifiedAt() /** * Sets modifiedAt - * @param string $modifiedAt Last modification date of the template (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $modifiedAt Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setModifiedAt($modifiedAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $modifiedAt))) { - throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetSmtpTemplateOverview., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['modifiedAt'] = $modifiedAt; return $this; diff --git a/lib/Model/GetSmtpTemplates.php b/lib/Model/GetSmtpTemplates.php index eb3ea8f3..964d6e14 100644 --- a/lib/Model/GetSmtpTemplates.php +++ b/lib/Model/GetSmtpTemplates.php @@ -63,7 +63,7 @@ class GetSmtpTemplates implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'count' => 'int32', + 'count' => 'int64', 'templates' => null ]; diff --git a/lib/Model/GetTransacAggregatedSmsReport.php b/lib/Model/GetTransacAggregatedSmsReport.php index a718b5ea..f6c76ea4 100644 --- a/lib/Model/GetTransacAggregatedSmsReport.php +++ b/lib/Model/GetTransacAggregatedSmsReport.php @@ -72,15 +72,15 @@ class GetTransacAggregatedSmsReport implements ArrayAccess */ protected static $swaggerFormats = [ 'range' => null, - 'requests' => 'int32', - 'delivered' => 'int32', - 'hardBounces' => 'int32', - 'softBounces' => 'int32', - 'blocked' => 'int32', - 'unsubscribed' => 'int32', - 'replied' => 'int32', - 'accepted' => 'int32', - 'rejected' => 'int32' + 'requests' => 'int64', + 'delivered' => 'int64', + 'hardBounces' => 'int64', + 'softBounces' => 'int64', + 'blocked' => 'int64', + 'unsubscribed' => 'int64', + 'replied' => 'int64', + 'accepted' => 'int64', + 'rejected' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetTransacSmsReportReports.php b/lib/Model/GetTransacSmsReportReports.php index c42b709a..e9d62351 100644 --- a/lib/Model/GetTransacSmsReportReports.php +++ b/lib/Model/GetTransacSmsReportReports.php @@ -74,15 +74,15 @@ class GetTransacSmsReportReports implements ArrayAccess protected static $swaggerFormats = [ 'date' => 'date', 'tag' => null, - 'requests' => 'int32', - 'delivered' => 'int32', - 'hardBounces' => 'int32', - 'softBounces' => 'int32', - 'blocked' => 'int32', - 'unsubscribed' => 'int32', - 'replied' => 'int32', - 'accepted' => 'int32', - 'rejected' => 'int32' + 'requests' => 'int64', + 'delivered' => 'int64', + 'hardBounces' => 'int64', + 'softBounces' => 'int64', + 'blocked' => 'int64', + 'unsubscribed' => 'int64', + 'replied' => 'int64', + 'accepted' => 'int64', + 'rejected' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/GetWebhook.php b/lib/Model/GetWebhook.php index 3a7fcb88..35636b9d 100644 --- a/lib/Model/GetWebhook.php +++ b/lib/Model/GetWebhook.php @@ -59,8 +59,8 @@ class GetWebhook implements ArrayAccess 'description' => 'string', 'events' => 'string[]', 'type' => 'string', - 'createdAt' => 'string', - 'modifiedAt' => 'string' + 'createdAt' => '\DateTime', + 'modifiedAt' => '\DateTime' ]; /** @@ -69,12 +69,12 @@ class GetWebhook implements ArrayAccess */ protected static $swaggerFormats = [ 'url' => 'url', - 'id' => 'int32', + 'id' => 'int64', 'description' => null, 'events' => null, 'type' => null, - 'createdAt' => null, - 'modifiedAt' => null + 'createdAt' => 'date-time', + 'modifiedAt' => 'date-time' ]; public static function swaggerTypes() @@ -220,17 +220,9 @@ public function listInvalidProperties() if ($this->container['createdAt'] === null) { $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - if ($this->container['modifiedAt'] === null) { $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -265,15 +257,9 @@ public function valid() if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['createdAt'])) { - return false; - } if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['modifiedAt'])) { - return false; - } return true; } @@ -394,7 +380,7 @@ public function setType($type) /** * Gets createdAt - * @return string + * @return \DateTime */ public function getCreatedAt() { @@ -403,16 +389,11 @@ public function getCreatedAt() /** * Sets createdAt - * @param string $createdAt Creation date of the webhook (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $createdAt Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setCreatedAt($createdAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $createdAt))) { - throw new \InvalidArgumentException("invalid value for $createdAt when calling GetWebhook., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['createdAt'] = $createdAt; return $this; @@ -420,7 +401,7 @@ public function setCreatedAt($createdAt) /** * Gets modifiedAt - * @return string + * @return \DateTime */ public function getModifiedAt() { @@ -429,16 +410,11 @@ public function getModifiedAt() /** * Sets modifiedAt - * @param string $modifiedAt Last modification date of the webhook (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $modifiedAt Last modification date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setModifiedAt($modifiedAt) { - - if ((!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $modifiedAt))) { - throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetWebhook., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['modifiedAt'] = $modifiedAt; return $this; diff --git a/lib/Model/ManageIp.php b/lib/Model/ManageIp.php index 32dddd4a..9051aea9 100644 --- a/lib/Model/ManageIp.php +++ b/lib/Model/ManageIp.php @@ -62,7 +62,7 @@ class ManageIp implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'ipId' => 'int32' + 'ipId' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/PostSendFailed.php b/lib/Model/PostSendFailed.php index e82ed0ed..517b3944 100644 --- a/lib/Model/PostSendFailed.php +++ b/lib/Model/PostSendFailed.php @@ -66,7 +66,7 @@ class PostSendFailed implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'code' => 'int32', + 'code' => 'int64', 'message' => null, 'unexistingEmails' => 'email', 'withoutListEmails' => 'email', diff --git a/lib/Model/PostSendSmsTestFailed.php b/lib/Model/PostSendSmsTestFailed.php index 45560b9f..73de0839 100644 --- a/lib/Model/PostSendSmsTestFailed.php +++ b/lib/Model/PostSendSmsTestFailed.php @@ -65,7 +65,7 @@ class PostSendSmsTestFailed implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'code' => 'int32', + 'code' => 'int64', 'message' => null, 'unexistingSms' => 'email', 'withoutListSms' => 'email' diff --git a/lib/Model/RemainingCreditModelChild.php b/lib/Model/RemainingCreditModelChild.php index 4155c647..8cb3926d 100644 --- a/lib/Model/RemainingCreditModelChild.php +++ b/lib/Model/RemainingCreditModelChild.php @@ -64,8 +64,8 @@ class RemainingCreditModelChild implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'sms' => 'int32', - 'email' => 'int32' + 'sms' => 'int64', + 'email' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/RemainingCreditModelReseller.php b/lib/Model/RemainingCreditModelReseller.php index 96755e94..015bf91f 100644 --- a/lib/Model/RemainingCreditModelReseller.php +++ b/lib/Model/RemainingCreditModelReseller.php @@ -63,8 +63,8 @@ class RemainingCreditModelReseller implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'sms' => 'int32', - 'email' => 'int32' + 'sms' => 'int64', + 'email' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/RemoveCredits.php b/lib/Model/RemoveCredits.php index 64c56711..f232877e 100644 --- a/lib/Model/RemoveCredits.php +++ b/lib/Model/RemoveCredits.php @@ -63,8 +63,8 @@ class RemoveCredits implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'sms' => 'int32', - 'email' => 'int32' + 'sms' => 'int64', + 'email' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/RequestContactImport.php b/lib/Model/RequestContactImport.php index 3ed6d91d..f1e9515e 100644 --- a/lib/Model/RequestContactImport.php +++ b/lib/Model/RequestContactImport.php @@ -68,7 +68,7 @@ class RequestContactImport implements ArrayAccess protected static $swaggerFormats = [ 'fileUrl' => 'url', 'fileBody' => null, - 'listIds' => 'int32', + 'listIds' => 'int64', 'notifyUrl' => 'url', 'newList' => null ]; diff --git a/lib/Model/RequestContactImportNewList.php b/lib/Model/RequestContactImportNewList.php index 0f706730..fc654a2d 100644 --- a/lib/Model/RequestContactImportNewList.php +++ b/lib/Model/RequestContactImportNewList.php @@ -64,7 +64,7 @@ class RequestContactImportNewList implements ArrayAccess */ protected static $swaggerFormats = [ 'listName' => null, - 'folderId' => 'int32' + 'folderId' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/SendTransacSms.php b/lib/Model/SendTransacSms.php index e6d4fc68..f0d3032f 100644 --- a/lib/Model/SendTransacSms.php +++ b/lib/Model/SendTransacSms.php @@ -57,6 +57,7 @@ class SendTransacSms implements ArrayAccess 'sender' => 'string', 'recipient' => 'string', 'content' => 'string', + 'type' => 'string', 'tag' => 'string', 'webUrl' => 'string' ]; @@ -69,6 +70,7 @@ class SendTransacSms implements ArrayAccess 'sender' => null, 'recipient' => null, 'content' => null, + 'type' => null, 'tag' => null, 'webUrl' => 'url' ]; @@ -91,6 +93,7 @@ public static function swaggerFormats() 'sender' => 'sender', 'recipient' => 'recipient', 'content' => 'content', + 'type' => 'type', 'tag' => 'tag', 'webUrl' => 'webUrl' ]; @@ -104,6 +107,7 @@ public static function swaggerFormats() 'sender' => 'setSender', 'recipient' => 'setRecipient', 'content' => 'setContent', + 'type' => 'setType', 'tag' => 'setTag', 'webUrl' => 'setWebUrl' ]; @@ -117,6 +121,7 @@ public static function swaggerFormats() 'sender' => 'getSender', 'recipient' => 'getRecipient', 'content' => 'getContent', + 'type' => 'getType', 'tag' => 'getTag', 'webUrl' => 'getWebUrl' ]; @@ -136,9 +141,23 @@ public static function getters() return self::$getters; } + const TYPE_TRANSACTIONAL = 'transactional'; + const TYPE_MARKETING = 'marketing'; + /** + * Gets allowable values of the enum + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_TRANSACTIONAL, + self::TYPE_MARKETING, + ]; + } + /** * Associative array for storing property values @@ -155,6 +174,7 @@ public function __construct(array $data = null) $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; $this->container['recipient'] = isset($data['recipient']) ? $data['recipient'] : null; $this->container['content'] = isset($data['content']) ? $data['content'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : 'transactional'; $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; $this->container['webUrl'] = isset($data['webUrl']) ? $data['webUrl'] : null; } @@ -185,6 +205,14 @@ public function listInvalidProperties() $invalid_properties[] = "invalid value for 'content', the character length must be smaller than or equal to 160."; } + $allowed_values = $this->getTypeAllowableValues(); + if (!in_array($this->container['type'], $allowed_values)) { + $invalid_properties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowed_values) + ); + } + return $invalid_properties; } @@ -212,6 +240,10 @@ public function valid() if (strlen($this->container['content']) > 160) { return false; } + $allowed_values = $this->getTypeAllowableValues(); + if (!in_array($this->container['type'], $allowed_values)) { + return false; + } return true; } @@ -287,6 +319,36 @@ public function setContent($content) return $this; } + /** + * Gets type + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * @param string $type Type of the SMS + * @return $this + */ + public function setType($type) + { + $allowed_values = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowed_values)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowed_values) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + /** * Gets tag * @return string diff --git a/lib/Model/UpdateChild.php b/lib/Model/UpdateChild.php index dbf9c9e2..70d8489e 100644 --- a/lib/Model/UpdateChild.php +++ b/lib/Model/UpdateChild.php @@ -72,7 +72,7 @@ class UpdateChild implements ArrayAccess 'lastName' => null, 'companyName' => null, 'password' => 'password', - 'ips' => 'int32' + 'ips' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/UpdateContact.php b/lib/Model/UpdateContact.php index 14131f50..93ab4875 100644 --- a/lib/Model/UpdateContact.php +++ b/lib/Model/UpdateContact.php @@ -69,8 +69,8 @@ class UpdateContact implements ArrayAccess 'attributes' => null, 'emailBlacklisted' => null, 'smsBlacklisted' => null, - 'listIds' => 'int32', - 'unlinkListIds' => 'int32' + 'listIds' => 'int64', + 'unlinkListIds' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/UpdateEmailCampaign.php b/lib/Model/UpdateEmailCampaign.php index 68fbe151..39cb96b9 100644 --- a/lib/Model/UpdateEmailCampaign.php +++ b/lib/Model/UpdateEmailCampaign.php @@ -59,7 +59,7 @@ class UpdateEmailCampaign implements ArrayAccess 'name' => 'string', 'htmlContent' => 'string', 'htmlUrl' => 'string', - 'scheduledAt' => 'string', + 'scheduledAt' => '\DateTime', 'subject' => 'string', 'replyTo' => 'string', 'toField' => 'string', @@ -83,7 +83,7 @@ class UpdateEmailCampaign implements ArrayAccess 'name' => null, 'htmlContent' => null, 'htmlUrl' => 'url', - 'scheduledAt' => null, + 'scheduledAt' => 'date-time', 'subject' => null, 'replyTo' => 'email', 'toField' => null, @@ -240,10 +240,6 @@ public function listInvalidProperties() { $invalid_properties = []; - if (!is_null($this->container['scheduledAt']) && !preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -256,9 +252,6 @@ public function listInvalidProperties() public function valid() { - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } return true; } @@ -370,7 +363,7 @@ public function setHtmlUrl($htmlUrl) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -379,16 +372,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $scheduledAt Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setScheduledAt($scheduledAt) { - - if (!is_null($scheduledAt) && (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling UpdateEmailCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; diff --git a/lib/Model/UpdateEmailCampaignRecipients.php b/lib/Model/UpdateEmailCampaignRecipients.php index a9626c7e..e29272d2 100644 --- a/lib/Model/UpdateEmailCampaignRecipients.php +++ b/lib/Model/UpdateEmailCampaignRecipients.php @@ -63,8 +63,8 @@ class UpdateEmailCampaignRecipients implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'exclusionListIds' => 'int32', - 'listIds' => 'int32' + 'exclusionListIds' => 'int64', + 'listIds' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/UpdateList.php b/lib/Model/UpdateList.php index 5a875895..77e874c3 100644 --- a/lib/Model/UpdateList.php +++ b/lib/Model/UpdateList.php @@ -64,7 +64,7 @@ class UpdateList implements ArrayAccess */ protected static $swaggerFormats = [ 'name' => null, - 'folderId' => 'int32' + 'folderId' => 'int64' ]; public static function swaggerTypes() diff --git a/lib/Model/UpdateSmsCampaign.php b/lib/Model/UpdateSmsCampaign.php index d3484431..ee66406f 100644 --- a/lib/Model/UpdateSmsCampaign.php +++ b/lib/Model/UpdateSmsCampaign.php @@ -58,7 +58,7 @@ class UpdateSmsCampaign implements ArrayAccess 'sender' => 'string', 'content' => 'string', 'recipients' => '\SendinBlue\Client\Model\CreateSmsCampaignRecipients', - 'scheduledAt' => 'string' + 'scheduledAt' => '\DateTime' ]; /** @@ -70,7 +70,7 @@ class UpdateSmsCampaign implements ArrayAccess 'sender' => null, 'content' => null, 'recipients' => null, - 'scheduledAt' => null + 'scheduledAt' => 'date-time' ]; public static function swaggerTypes() @@ -172,10 +172,6 @@ public function listInvalidProperties() $invalid_properties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; } - if (!is_null($this->container['scheduledAt']) && !preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."; - } - return $invalid_properties; } @@ -191,9 +187,6 @@ public function valid() if (strlen($this->container['sender']) > 11) { return false; } - if (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $this->container['scheduledAt'])) { - return false; - } return true; } @@ -288,7 +281,7 @@ public function setRecipients($recipients) /** * Gets scheduledAt - * @return string + * @return \DateTime */ public function getScheduledAt() { @@ -297,16 +290,11 @@ public function getScheduledAt() /** * Sets scheduledAt - * @param string $scheduledAt Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + * @param \DateTime $scheduledAt Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return $this */ public function setScheduledAt($scheduledAt) { - - if (!is_null($scheduledAt) && (!preg_match("/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/", $scheduledAt))) { - throw new \InvalidArgumentException("invalid value for $scheduledAt when calling UpdateSmsCampaign., must conform to the pattern /^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/."); - } - $this->container['scheduledAt'] = $scheduledAt; return $this; diff --git a/test/Model/CreaUpdateFolderTest.php b/test/Model/CreateUpdateFolderTest.php similarity index 89% rename from test/Model/CreaUpdateFolderTest.php rename to test/Model/CreateUpdateFolderTest.php index 85a774bd..ccb07e81 100644 --- a/test/Model/CreaUpdateFolderTest.php +++ b/test/Model/CreateUpdateFolderTest.php @@ -1,6 +1,6 @@