diff --git a/.travis.yml b/.travis.yml
index 13c6e2c6..e93086b8 100755
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,4 +4,4 @@ php:
- 5.6
- 7.0
before_install: "composer install"
-script: "vendor/bin/phpunit"
+script: "vendor/bin/phpunit"
\ No newline at end of file
diff --git a/README.md b/README.md
index bc973831..9df258b9 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,17 @@ PHP 5.6 and later
To install the bindings via [Composer](http://getcomposer.org/):
+Create a ```composer.json``` file in any directory & add below code in composer.json file.
+
+```
+{
+"require": {
+"sendinblue/api-v3-sdk": "8.x.x"
+}
+}
+```
+
+Then run below commands in the same directory
```
composer require sendinblue/api-v3-sdk "8.x.x"
```
@@ -80,6 +91,13 @@ All URIs are relative to *https://api.sendinblue.com/v3*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccountApi* | [**getAccount**](docs/Api/AccountApi.md#getaccount) | **GET** /account | Get your account information, plan and credits details
+*CompaniesApi* | [**companiesAttributesGet**](docs/Api/CompaniesApi.md#companiesattributesget) | **GET** /companies/attributes | Get company attributes
+*CompaniesApi* | [**companiesGet**](docs/Api/CompaniesApi.md#companiesget) | **GET** /companies | Get all companies
+*CompaniesApi* | [**companiesIdDelete**](docs/Api/CompaniesApi.md#companiesiddelete) | **DELETE** /companies/{id} | Delete a company
+*CompaniesApi* | [**companiesIdGet**](docs/Api/CompaniesApi.md#companiesidget) | **GET** /companies/{id} | Get a company
+*CompaniesApi* | [**companiesIdPatch**](docs/Api/CompaniesApi.md#companiesidpatch) | **PATCH** /companies/{id} | Update a company
+*CompaniesApi* | [**companiesLinkUnlinkIdPatch**](docs/Api/CompaniesApi.md#companieslinkunlinkidpatch) | **PATCH** /companies/link-unlink/{id} | Link and Unlink company with contacts and deals
+*CompaniesApi* | [**companiesPost**](docs/Api/CompaniesApi.md#companiespost) | **POST** /companies | Create a company
*AttributesApi* | [**createAttribute**](docs/Api/AttributesApi.md#createattribute) | **POST** /contacts/attributes/{attributeCategory}/{attributeName} | Create contact attribute
*AttributesApi* | [**deleteAttribute**](docs/Api/AttributesApi.md#deleteattribute) | **DELETE** /contacts/attributes/{attributeCategory}/{attributeName} | Delete an attribute
*AttributesApi* | [**getAttributes**](docs/Api/AttributesApi.md#getattributes) | **GET** /contacts/attributes | List all attributes
@@ -123,6 +141,34 @@ Class | Method | HTTP request | Description
*ContactsApi* | [**updateContact**](docs/Api/ContactsApi.md#updatecontact) | **PUT** /contacts/{identifier} | Update a contact
*ContactsApi* | [**updateFolder**](docs/Api/ContactsApi.md#updatefolder) | **PUT** /contacts/folders/{folderId} | Update a folder
*ContactsApi* | [**updateList**](docs/Api/ContactsApi.md#updatelist) | **PUT** /contacts/lists/{listId} | Update a list
+*ConversationsApi* | [**conversationsAgentOnlinePingPost**](docs/Api/ConversationsApi.md#conversationsagentonlinepingpost) | **POST** /conversations/agentOnlinePing | Sets agent’s status to online for 2-3 minutes
+*ConversationsApi* | [**conversationsMessagesIdDelete**](docs/Api/ConversationsApi.md#conversationsmessagesiddelete) | **DELETE** /conversations/messages/{id} | Delete a message sent by an agent
+*ConversationsApi* | [**conversationsMessagesIdGet**](docs/Api/ConversationsApi.md#conversationsmessagesidget) | **GET** /conversations/messages/{id} | Get a message
+*ConversationsApi* | [**conversationsMessagesIdPut**](docs/Api/ConversationsApi.md#conversationsmessagesidput) | **PUT** /conversations/messages/{id} | Update a message sent by an agent
+*ConversationsApi* | [**conversationsMessagesPost**](docs/Api/ConversationsApi.md#conversationsmessagespost) | **POST** /conversations/messages | Send a message as an agent
+*ConversationsApi* | [**conversationsPushedMessagesIdDelete**](docs/Api/ConversationsApi.md#conversationspushedmessagesiddelete) | **DELETE** /conversations/pushedMessages/{id} | Delete an automated message
+*ConversationsApi* | [**conversationsPushedMessagesIdGet**](docs/Api/ConversationsApi.md#conversationspushedmessagesidget) | **GET** /conversations/pushedMessages/{id} | Get an automated message
+*ConversationsApi* | [**conversationsPushedMessagesIdPut**](docs/Api/ConversationsApi.md#conversationspushedmessagesidput) | **PUT** /conversations/pushedMessages/{id} | Update an automated message
+*ConversationsApi* | [**conversationsPushedMessagesPost**](docs/Api/ConversationsApi.md#conversationspushedmessagespost) | **POST** /conversations/pushedMessages | Send an automated message to a visitor
+*DealsApi* | [**crmAttributesDealsGet**](docs/Api/DealsApi.md#crmattributesdealsget) | **GET** /crm/attributes/deals | Get deal attributes
+*DealsApi* | [**crmDealsGet**](docs/Api/DealsApi.md#crmdealsget) | **GET** /crm/deals | Get all deals
+*DealsApi* | [**crmDealsIdDelete**](docs/Api/DealsApi.md#crmdealsiddelete) | **DELETE** /crm/deals/{id} | Delete a deal
+*DealsApi* | [**crmDealsIdGet**](docs/Api/DealsApi.md#crmdealsidget) | **GET** /crm/deals/{id} | Get a deal
+*DealsApi* | [**crmDealsIdPatch**](docs/Api/DealsApi.md#crmdealsidpatch) | **PATCH** /crm/deals/{id} | Update a deal
+*DealsApi* | [**crmDealsLinkUnlinkIdPatch**](docs/Api/DealsApi.md#crmdealslinkunlinkidpatch) | **PATCH** /crm/deals/link-unlink/{id} | Link and Unlink a deal with contacts and companies
+*DealsApi* | [**crmDealsPost**](docs/Api/DealsApi.md#crmdealspost) | **POST** /crm/deals | Create a deal
+*DealsApi* | [**crmPipelineDetailsGet**](docs/Api/DealsApi.md#crmpipelinedetailsget) | **GET** /crm/pipeline/details | Get pipeline stages
+*EcommerceApi* | [**createBatchOrder**](docs/Api/EcommerceApi.md#createbatchorder) | **POST** /orders/status/batch | Maintains a batch of orders
+*EcommerceApi* | [**createOrder**](docs/Api/EcommerceApi.md#createorder) | **POST** /orders/status | Maintains every transactional status of the order
+*EcommerceApi* | [**createUpdateBatchCategory**](docs/Api/EcommerceApi.md#createupdatebatchcategory) | **POST** /categories/batch | Create the categories in a batch
+*EcommerceApi* | [**createUpdateBatchProducts**](docs/Api/EcommerceApi.md#createupdatebatchproducts) | **POST** /products/batch | Creates the products in a batch
+*EcommerceApi* | [**createUpdateCategory**](docs/Api/EcommerceApi.md#createupdatecategory) | **POST** /categories | Create/Update a category
+*EcommerceApi* | [**createUpdateProduct**](docs/Api/EcommerceApi.md#createupdateproduct) | **POST** /products | Create/Update a product
+*EcommerceApi* | [**ecommerceActivatePost**](docs/Api/EcommerceApi.md#ecommerceactivatepost) | **POST** /ecommerce/activate | **Fulfills the eCommerce pre-requisites**
+*EcommerceApi* | [**getCategories**](docs/Api/EcommerceApi.md#getcategories) | **GET** /categories | Return all your categories
+*EcommerceApi* | [**getCategoryInfo**](docs/Api/EcommerceApi.md#getcategoryinfo) | **GET** /categories/{id} | Get a category details
+*EcommerceApi* | [**getProductInfo**](docs/Api/EcommerceApi.md#getproductinfo) | **GET** /products/{id} | Get a product's details
+*EcommerceApi* | [**getProducts**](docs/Api/EcommerceApi.md#getproducts) | **GET** /products | Return all your products
*EmailCampaignsApi* | [**createEmailCampaign**](docs/Api/EmailCampaignsApi.md#createemailcampaign) | **POST** /emailCampaigns | Create an email campaign
*EmailCampaignsApi* | [**deleteEmailCampaign**](docs/Api/EmailCampaignsApi.md#deleteemailcampaign) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign
*EmailCampaignsApi* | [**emailExportRecipients**](docs/Api/EmailCampaignsApi.md#emailexportrecipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of an email campaign
@@ -142,6 +188,12 @@ Class | Method | HTTP request | Description
*FoldersApi* | [**getFolderLists**](docs/Api/FoldersApi.md#getfolderlists) | **GET** /contacts/folders/{folderId}/lists | Get lists in a folder
*FoldersApi* | [**getFolders**](docs/Api/FoldersApi.md#getfolders) | **GET** /contacts/folders | Get all folders
*FoldersApi* | [**updateFolder**](docs/Api/FoldersApi.md#updatefolder) | **PUT** /contacts/folders/{folderId} | Update a folder
+*FilesApi* | [**crmFilesGet**](docs/Api/FilesApi.md#crmfilesget) | **GET** /crm/files | Get all files
+*FilesApi* | [**crmFilesIdDataGet**](docs/Api/FilesApi.md#crmfilesiddataget) | **GET** /crm/files/{id}/data | Get file details
+*FilesApi* | [**crmFilesIdDelete**](docs/Api/FilesApi.md#crmfilesiddelete) | **DELETE** /crm/files/{id} | Delete a file
+*FilesApi* | [**crmFilesIdGet**](docs/Api/FilesApi.md#crmfilesidget) | **GET** /crm/files/{id} | Download a file
+*FilesApi* | [**crmFilesPost**](docs/Api/FilesApi.md#crmfilespost) | **POST** /crm/files | Upload a file
+*InboundParsingApi* | [**getInboundEmailAttachment**](docs/Api/InboundParsingApi.md#getinboundemailattachment) | **GET** /inbound/attachments/{downloadToken} | Retrieve inbound attachment with download token.
*InboundParsingApi* | [**getInboundEmailEvents**](docs/Api/InboundParsingApi.md#getinboundemailevents) | **GET** /inbound/events | Get the list of all the events for the received emails.
*InboundParsingApi* | [**getInboundEmailEventsByUuid**](docs/Api/InboundParsingApi.md#getinboundemaileventsbyuuid) | **GET** /inbound/events/{uuid} | Fetch all events history for one particular received email.
*ListsApi* | [**addContactToList**](docs/Api/ListsApi.md#addcontacttolist) | **POST** /contacts/lists/{listId}/contacts/add | Add existing contacts to a list
@@ -160,6 +212,11 @@ Class | Method | HTTP request | Description
*MasterAccountApi* | [**corporateSubAccountIdPlanPut**](docs/Api/MasterAccountApi.md#corporatesubaccountidplanput) | **PUT** /corporate/subAccount/{id}/plan | Update sub-account plan
*MasterAccountApi* | [**corporateSubAccountPost**](docs/Api/MasterAccountApi.md#corporatesubaccountpost) | **POST** /corporate/subAccount | Create a new sub-account under a master account.
*MasterAccountApi* | [**corporateSubAccountSsoTokenPost**](docs/Api/MasterAccountApi.md#corporatesubaccountssotokenpost) | **POST** /corporate/subAccount/ssoToken | Generate SSO token to access Sendinblue
+*NotesApi* | [**crmNotesGet**](docs/Api/NotesApi.md#crmnotesget) | **GET** /crm/notes | Get all notes
+*NotesApi* | [**crmNotesIdDelete**](docs/Api/NotesApi.md#crmnotesiddelete) | **DELETE** /crm/notes/{id} | Delete a note
+*NotesApi* | [**crmNotesIdGet**](docs/Api/NotesApi.md#crmnotesidget) | **GET** /crm/notes/{id} | Get a note
+*NotesApi* | [**crmNotesIdPatch**](docs/Api/NotesApi.md#crmnotesidpatch) | **PATCH** /crm/notes/{id} | Update a note
+*NotesApi* | [**crmNotesPost**](docs/Api/NotesApi.md#crmnotespost) | **POST** /crm/notes | Create a note
*ProcessApi* | [**getProcess**](docs/Api/ProcessApi.md#getprocess) | **GET** /processes/{processId} | Return the informations for a process
*ProcessApi* | [**getProcesses**](docs/Api/ProcessApi.md#getprocesses) | **GET** /processes | Return all the processes for your account
*ResellerApi* | [**addCredits**](docs/Api/ResellerApi.md#addcredits) | **POST** /reseller/children/{childIdentifier}/credits/add | Add Email and/or SMS credits to a specific child account
@@ -194,6 +251,12 @@ Class | Method | HTTP request | Description
*SendersApi* | [**getIpsFromSender**](docs/Api/SendersApi.md#getipsfromsender) | **GET** /senders/{senderId}/ips | Get all the dedicated IPs for a sender
*SendersApi* | [**getSenders**](docs/Api/SendersApi.md#getsenders) | **GET** /senders | Get the list of all your senders
*SendersApi* | [**updateSender**](docs/Api/SendersApi.md#updatesender) | **PUT** /senders/{senderId} | Update a sender
+*TasksApi* | [**crmTasksGet**](docs/Api/TasksApi.md#crmtasksget) | **GET** /crm/tasks | Get all tasks
+*TasksApi* | [**crmTasksIdDelete**](docs/Api/TasksApi.md#crmtasksiddelete) | **DELETE** /crm/tasks/{id} | Delete a task
+*TasksApi* | [**crmTasksIdGet**](docs/Api/TasksApi.md#crmtasksidget) | **GET** /crm/tasks/{id} | Get a task
+*TasksApi* | [**crmTasksIdPatch**](docs/Api/TasksApi.md#crmtasksidpatch) | **PATCH** /crm/tasks/{id} | Update a task
+*TasksApi* | [**crmTasksPost**](docs/Api/TasksApi.md#crmtaskspost) | **POST** /crm/tasks | Create a task
+*TasksApi* | [**crmTasktypesGet**](docs/Api/TasksApi.md#crmtasktypesget) | **GET** /crm/tasktypes | Get all task types
*TransactionalEmailsApi* | [**blockNewDomain**](docs/Api/TransactionalEmailsApi.md#blocknewdomain) | **POST** /smtp/blockedDomains | Add a new domain to the list of blocked domains
*TransactionalEmailsApi* | [**createSmtpTemplate**](docs/Api/TransactionalEmailsApi.md#createsmtptemplate) | **POST** /smtp/templates | Create an email template
*TransactionalEmailsApi* | [**deleteBlockedDomain**](docs/Api/TransactionalEmailsApi.md#deleteblockeddomain) | **DELETE** /smtp/blockedDomains/{domain} | Unblock an existing domain from the list of blocked domains
@@ -242,9 +305,27 @@ Class | Method | HTTP request | Description
- [BlockDomain](docs/Model/BlockDomain.md)
- [Body](docs/Model/Body.md)
- [Body1](docs/Model/Body1.md)
- - [Contact](docs/Model/Contact.md)
+ - [Body10](docs/Model/Body10.md)
+ - [Body11](docs/Model/Body11.md)
+ - [Body12](docs/Model/Body12.md)
+ - [Body2](docs/Model/Body2.md)
+ - [Body3](docs/Model/Body3.md)
+ - [Body4](docs/Model/Body4.md)
+ - [Body5](docs/Model/Body5.md)
+ - [Body6](docs/Model/Body6.md)
+ - [Body7](docs/Model/Body7.md)
+ - [Body8](docs/Model/Body8.md)
+ - [Body9](docs/Model/Body9.md)
+ - [CompaniesList](docs/Model/CompaniesList.md)
+ - [Company](docs/Model/Company.md)
+ - [CompanyAttributes](docs/Model/CompanyAttributes.md)
+ - [CompanyAttributesInner](docs/Model/CompanyAttributesInner.md)
+ - [ConversationsMessage](docs/Model/ConversationsMessage.md)
+ - [ConversationsMessageFile](docs/Model/ConversationsMessageFile.md)
+ - [ConversationsMessageFileImageInfo](docs/Model/ConversationsMessageFileImageInfo.md)
- [CreateAttribute](docs/Model/CreateAttribute.md)
- [CreateAttributeEnumeration](docs/Model/CreateAttributeEnumeration.md)
+ - [CreateCategoryModel](docs/Model/CreateCategoryModel.md)
- [CreateChild](docs/Model/CreateChild.md)
- [CreateContact](docs/Model/CreateContact.md)
- [CreateDoiContact](docs/Model/CreateDoiContact.md)
@@ -253,6 +334,7 @@ Class | Method | HTTP request | Description
- [CreateEmailCampaignSender](docs/Model/CreateEmailCampaignSender.md)
- [CreateList](docs/Model/CreateList.md)
- [CreateModel](docs/Model/CreateModel.md)
+ - [CreateProductModel](docs/Model/CreateProductModel.md)
- [CreateReseller](docs/Model/CreateReseller.md)
- [CreateSender](docs/Model/CreateSender.md)
- [CreateSenderIps](docs/Model/CreateSenderIps.md)
@@ -264,13 +346,29 @@ Class | Method | HTTP request | Description
- [CreateSmtpTemplateSender](docs/Model/CreateSmtpTemplateSender.md)
- [CreateSubAccount](docs/Model/CreateSubAccount.md)
- [CreateSubAccountResponse](docs/Model/CreateSubAccountResponse.md)
+ - [CreateUpdateBatchCategory](docs/Model/CreateUpdateBatchCategory.md)
+ - [CreateUpdateBatchCategoryModel](docs/Model/CreateUpdateBatchCategoryModel.md)
+ - [CreateUpdateBatchProducts](docs/Model/CreateUpdateBatchProducts.md)
+ - [CreateUpdateBatchProductsModel](docs/Model/CreateUpdateBatchProductsModel.md)
+ - [CreateUpdateCategories](docs/Model/CreateUpdateCategories.md)
+ - [CreateUpdateCategory](docs/Model/CreateUpdateCategory.md)
- [CreateUpdateContactModel](docs/Model/CreateUpdateContactModel.md)
- [CreateUpdateFolder](docs/Model/CreateUpdateFolder.md)
+ - [CreateUpdateProduct](docs/Model/CreateUpdateProduct.md)
+ - [CreateUpdateProducts](docs/Model/CreateUpdateProducts.md)
- [CreateWebhook](docs/Model/CreateWebhook.md)
+ - [CreatedBatchId](docs/Model/CreatedBatchId.md)
- [CreatedProcessId](docs/Model/CreatedProcessId.md)
+ - [Deal](docs/Model/Deal.md)
+ - [DealAttributes](docs/Model/DealAttributes.md)
+ - [DealAttributesInner](docs/Model/DealAttributesInner.md)
+ - [DealsList](docs/Model/DealsList.md)
- [DeleteHardbounces](docs/Model/DeleteHardbounces.md)
- [EmailExportRecipients](docs/Model/EmailExportRecipients.md)
- [ErrorModel](docs/Model/ErrorModel.md)
+ - [FileData](docs/Model/FileData.md)
+ - [FileDownloadableLink](docs/Model/FileDownloadableLink.md)
+ - [FileList](docs/Model/FileList.md)
- [GetAccount](docs/Model/GetAccount.md)
- [GetAccountMarketingAutomation](docs/Model/GetAccountMarketingAutomation.md)
- [GetAccountPlan](docs/Model/GetAccountPlan.md)
@@ -284,6 +382,8 @@ Class | Method | HTTP request | Description
- [GetCampaignOverview](docs/Model/GetCampaignOverview.md)
- [GetCampaignRecipients](docs/Model/GetCampaignRecipients.md)
- [GetCampaignStats](docs/Model/GetCampaignStats.md)
+ - [GetCategories](docs/Model/GetCategories.md)
+ - [GetCategoryDetails](docs/Model/GetCategoryDetails.md)
- [GetChildAccountCreationStatus](docs/Model/GetChildAccountCreationStatus.md)
- [GetChildDomain](docs/Model/GetChildDomain.md)
- [GetChildDomains](docs/Model/GetChildDomains.md)
@@ -341,6 +441,8 @@ Class | Method | HTTP request | Description
- [GetLists](docs/Model/GetLists.md)
- [GetProcess](docs/Model/GetProcess.md)
- [GetProcesses](docs/Model/GetProcesses.md)
+ - [GetProductDetails](docs/Model/GetProductDetails.md)
+ - [GetProducts](docs/Model/GetProducts.md)
- [GetReports](docs/Model/GetReports.md)
- [GetReportsReports](docs/Model/GetReportsReports.md)
- [GetScheduledEmailByBatchId](docs/Model/GetScheduledEmailByBatchId.md)
@@ -376,7 +478,9 @@ Class | Method | HTTP request | Description
- [GetTransacSmsReportReports](docs/Model/GetTransacSmsReportReports.md)
- [GetWebhook](docs/Model/GetWebhook.md)
- [GetWebhooks](docs/Model/GetWebhooks.md)
+ - [InlineResponse200](docs/Model/InlineResponse200.md)
- [InlineResponse201](docs/Model/InlineResponse201.md)
+ - [InlineResponse2011](docs/Model/InlineResponse2011.md)
- [ManageIp](docs/Model/ManageIp.md)
- [MasterDetailsResponse](docs/Model/MasterDetailsResponse.md)
- [MasterDetailsResponseBillingInfo](docs/Model/MasterDetailsResponseBillingInfo.md)
@@ -388,6 +492,12 @@ Class | Method | HTTP request | Description
- [NoteData](docs/Model/NoteData.md)
- [NoteId](docs/Model/NoteId.md)
- [NoteList](docs/Model/NoteList.md)
+ - [Order](docs/Model/Order.md)
+ - [OrderBatch](docs/Model/OrderBatch.md)
+ - [OrderBilling](docs/Model/OrderBilling.md)
+ - [OrderProducts](docs/Model/OrderProducts.md)
+ - [Pipeline](docs/Model/Pipeline.md)
+ - [PipelineStage](docs/Model/PipelineStage.md)
- [PostContactInfo](docs/Model/PostContactInfo.md)
- [PostContactInfoContacts](docs/Model/PostContactInfoContacts.md)
- [PostSendFailed](docs/Model/PostSendFailed.md)
@@ -456,6 +566,7 @@ Class | Method | HTTP request | Description
- [UpdateSmtpTemplate](docs/Model/UpdateSmtpTemplate.md)
- [UpdateSmtpTemplateSender](docs/Model/UpdateSmtpTemplateSender.md)
- [UpdateWebhook](docs/Model/UpdateWebhook.md)
+ - [UploadImageModel](docs/Model/UploadImageModel.md)
- [UploadImageToGallery](docs/Model/UploadImageToGallery.md)
- [GetChildInfo](docs/Model/GetChildInfo.md)
- [GetExtendedCampaignOverview](docs/Model/GetExtendedCampaignOverview.md)
diff --git a/composer.json b/composer.json
index 08ede321..b424f41f 100755
--- a/composer.json
+++ b/composer.json
@@ -40,4 +40,4 @@
"dev-master": "8.x.x-dev"
}
}
-}
+}
\ No newline at end of file
diff --git a/composer.lock b/composer.lock
index eba6b48d..fb002d7f 100644
--- a/composer.lock
+++ b/composer.lock
@@ -2104,4 +2104,4 @@
"ext-mbstring": "*"
},
"platform-dev": []
-}
+}
\ No newline at end of file
diff --git a/docs/Api/CompaniesApi.md b/docs/Api/CompaniesApi.md
new file mode 100644
index 00000000..0be52693
--- /dev/null
+++ b/docs/Api/CompaniesApi.md
@@ -0,0 +1,424 @@
+# SendinBlue\Client\CompaniesApi
+
+All URIs are relative to *https://api.sendinblue.com/v3*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**companiesAttributesGet**](CompaniesApi.md#companiesAttributesGet) | **GET** /companies/attributes | Get company attributes
+[**companiesGet**](CompaniesApi.md#companiesGet) | **GET** /companies | Get all companies
+[**companiesIdDelete**](CompaniesApi.md#companiesIdDelete) | **DELETE** /companies/{id} | Delete a company
+[**companiesIdGet**](CompaniesApi.md#companiesIdGet) | **GET** /companies/{id} | Get a company
+[**companiesIdPatch**](CompaniesApi.md#companiesIdPatch) | **PATCH** /companies/{id} | Update a company
+[**companiesLinkUnlinkIdPatch**](CompaniesApi.md#companiesLinkUnlinkIdPatch) | **PATCH** /companies/link-unlink/{id} | Link and Unlink company with contacts and deals
+[**companiesPost**](CompaniesApi.md#companiesPost) | **POST** /companies | Create a company
+
+
+# **companiesAttributesGet**
+> \SendinBlue\Client\Model\CompanyAttributes companiesAttributesGet()
+
+Get company attributes
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\CompaniesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+
+try {
+ $result = $apiInstance->companiesAttributesGet();
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling CompaniesApi->companiesAttributesGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**\SendinBlue\Client\Model\CompanyAttributes**](../Model/CompanyAttributes.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **companiesGet**
+> \SendinBlue\Client\Model\CompaniesList companiesGet($filters, $linkedContactsIds, $linkedDealsIds, $page, $limit, $sort, $sortBy)
+
+Get all companies
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\CompaniesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$filters = "filters_example"; // string | Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"}
+$linkedContactsIds = 789; // int | Filter by linked contacts ids
+$linkedDealsIds = "linkedDealsIds_example"; // string | Filter by linked deals ids
+$page = 789; // int | Index of the first document of the page
+$limit = 50; // int | Number of documents per page
+$sort = "sort_example"; // string | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
+$sortBy = "sortBy_example"; // string | The field used to sort field names.
+
+try {
+ $result = $apiInstance->companiesGet($filters, $linkedContactsIds, $linkedDealsIds, $page, $limit, $sort, $sortBy);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling CompaniesApi->companiesGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **filters** | **string**| Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} | [optional]
+ **linkedContactsIds** | **int**| Filter by linked contacts ids | [optional]
+ **linkedDealsIds** | **string**| Filter by linked deals ids | [optional]
+ **page** | **int**| Index of the first document of the page | [optional]
+ **limit** | **int**| Number of documents per page | [optional] [default to 50]
+ **sort** | **string**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional]
+ **sortBy** | **string**| The field used to sort field names. | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\CompaniesList**](../Model/CompaniesList.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **companiesIdDelete**
+> companiesIdDelete($id)
+
+Delete a company
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\CompaniesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+
+try {
+ $apiInstance->companiesIdDelete($id);
+} catch (Exception $e) {
+ echo 'Exception when calling CompaniesApi->companiesIdDelete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **companiesIdGet**
+> \SendinBlue\Client\Model\Company companiesIdGet($id)
+
+Get a company
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\CompaniesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+
+try {
+ $result = $apiInstance->companiesIdGet($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling CompaniesApi->companiesIdGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+
+### Return type
+
+[**\SendinBlue\Client\Model\Company**](../Model/Company.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **companiesIdPatch**
+> \SendinBlue\Client\Model\Company companiesIdPatch($id, $body)
+
+Update a company
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\CompaniesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+$body = new \SendinBlue\Client\Model\Body1(); // \SendinBlue\Client\Model\Body1 | Updated company details.
+
+try {
+ $result = $apiInstance->companiesIdPatch($id, $body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling CompaniesApi->companiesIdPatch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+ **body** | [**\SendinBlue\Client\Model\Body1**](../Model/Body1.md)| Updated company details. |
+
+### Return type
+
+[**\SendinBlue\Client\Model\Company**](../Model/Company.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **companiesLinkUnlinkIdPatch**
+> companiesLinkUnlinkIdPatch($id, $body)
+
+Link and Unlink company with contacts and deals
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\CompaniesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+$body = new \SendinBlue\Client\Model\Body2(); // \SendinBlue\Client\Model\Body2 | Linked / Unlinked contacts and deals ids.
+
+try {
+ $apiInstance->companiesLinkUnlinkIdPatch($id, $body);
+} catch (Exception $e) {
+ echo 'Exception when calling CompaniesApi->companiesLinkUnlinkIdPatch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+ **body** | [**\SendinBlue\Client\Model\Body2**](../Model/Body2.md)| Linked / Unlinked contacts and deals ids. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **companiesPost**
+> \SendinBlue\Client\Model\InlineResponse200 companiesPost($body)
+
+Create a company
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\CompaniesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$body = new \SendinBlue\Client\Model\Body(); // \SendinBlue\Client\Model\Body | Company create data.
+
+try {
+ $result = $apiInstance->companiesPost($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling CompaniesApi->companiesPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**\SendinBlue\Client\Model\Body**](../Model/Body.md)| Company create data. |
+
+### Return type
+
+[**\SendinBlue\Client\Model\InlineResponse200**](../Model/InlineResponse200.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/docs/Api/ConversationsApi.md b/docs/Api/ConversationsApi.md
new file mode 100644
index 00000000..5f504522
--- /dev/null
+++ b/docs/Api/ConversationsApi.md
@@ -0,0 +1,539 @@
+# SendinBlue\Client\ConversationsApi
+
+All URIs are relative to *https://api.sendinblue.com/v3*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**conversationsAgentOnlinePingPost**](ConversationsApi.md#conversationsAgentOnlinePingPost) | **POST** /conversations/agentOnlinePing | Sets agent’s status to online for 2-3 minutes
+[**conversationsMessagesIdDelete**](ConversationsApi.md#conversationsMessagesIdDelete) | **DELETE** /conversations/messages/{id} | Delete a message sent by an agent
+[**conversationsMessagesIdGet**](ConversationsApi.md#conversationsMessagesIdGet) | **GET** /conversations/messages/{id} | Get a message
+[**conversationsMessagesIdPut**](ConversationsApi.md#conversationsMessagesIdPut) | **PUT** /conversations/messages/{id} | Update a message sent by an agent
+[**conversationsMessagesPost**](ConversationsApi.md#conversationsMessagesPost) | **POST** /conversations/messages | Send a message as an agent
+[**conversationsPushedMessagesIdDelete**](ConversationsApi.md#conversationsPushedMessagesIdDelete) | **DELETE** /conversations/pushedMessages/{id} | Delete an automated message
+[**conversationsPushedMessagesIdGet**](ConversationsApi.md#conversationsPushedMessagesIdGet) | **GET** /conversations/pushedMessages/{id} | Get an automated message
+[**conversationsPushedMessagesIdPut**](ConversationsApi.md#conversationsPushedMessagesIdPut) | **PUT** /conversations/pushedMessages/{id} | Update an automated message
+[**conversationsPushedMessagesPost**](ConversationsApi.md#conversationsPushedMessagesPost) | **POST** /conversations/pushedMessages | Send an automated message to a visitor
+
+
+# **conversationsAgentOnlinePingPost**
+> conversationsAgentOnlinePingPost($body)
+
+Sets agent’s status to online for 2-3 minutes
+
+We recommend pinging this endpoint every minute for as long as the agent has to be considered online.
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$body = new \SendinBlue\Client\Model\Body12(); // \SendinBlue\Client\Model\Body12 | Agent fields.
+
+try {
+ $apiInstance->conversationsAgentOnlinePingPost($body);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsAgentOnlinePingPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**\SendinBlue\Client\Model\Body12**](../Model/Body12.md)| Agent fields. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **conversationsMessagesIdDelete**
+> conversationsMessagesIdDelete($id)
+
+Delete a message sent by an agent
+
+Only agents’ messages can be deleted.
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | ID of the message
+
+try {
+ $apiInstance->conversationsMessagesIdDelete($id);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsMessagesIdDelete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the message |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **conversationsMessagesIdGet**
+> \SendinBlue\Client\Model\ConversationsMessage conversationsMessagesIdGet($id)
+
+Get a message
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | ID of the message
+
+try {
+ $result = $apiInstance->conversationsMessagesIdGet($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsMessagesIdGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the message |
+
+### Return type
+
+[**\SendinBlue\Client\Model\ConversationsMessage**](../Model/ConversationsMessage.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **conversationsMessagesIdPut**
+> \SendinBlue\Client\Model\ConversationsMessage conversationsMessagesIdPut($id, $body)
+
+Update a message sent by an agent
+
+Only agents’ messages can be edited.
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | ID of the message
+$body = new \SendinBlue\Client\Model\Body9(); // \SendinBlue\Client\Model\Body9 |
+
+try {
+ $result = $apiInstance->conversationsMessagesIdPut($id, $body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsMessagesIdPut: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the message |
+ **body** | [**\SendinBlue\Client\Model\Body9**](../Model/Body9.md)| | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\ConversationsMessage**](../Model/ConversationsMessage.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **conversationsMessagesPost**
+> \SendinBlue\Client\Model\ConversationsMessage conversationsMessagesPost($body)
+
+Send a message as an agent
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$body = new \SendinBlue\Client\Model\Body8(); // \SendinBlue\Client\Model\Body8 | Message fields.
+
+try {
+ $result = $apiInstance->conversationsMessagesPost($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsMessagesPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**\SendinBlue\Client\Model\Body8**](../Model/Body8.md)| Message fields. |
+
+### Return type
+
+[**\SendinBlue\Client\Model\ConversationsMessage**](../Model/ConversationsMessage.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **conversationsPushedMessagesIdDelete**
+> conversationsPushedMessagesIdDelete($id)
+
+Delete an automated message
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | ID of the message
+
+try {
+ $apiInstance->conversationsPushedMessagesIdDelete($id);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsPushedMessagesIdDelete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the message |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **conversationsPushedMessagesIdGet**
+> \SendinBlue\Client\Model\ConversationsMessage conversationsPushedMessagesIdGet($id)
+
+Get an automated message
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | ID of the message sent previously
+
+try {
+ $result = $apiInstance->conversationsPushedMessagesIdGet($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsPushedMessagesIdGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the message sent previously |
+
+### Return type
+
+[**\SendinBlue\Client\Model\ConversationsMessage**](../Model/ConversationsMessage.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **conversationsPushedMessagesIdPut**
+> \SendinBlue\Client\Model\ConversationsMessage conversationsPushedMessagesIdPut($id, $body)
+
+Update an automated message
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | ID of the message
+$body = new \SendinBlue\Client\Model\Body11(); // \SendinBlue\Client\Model\Body11 |
+
+try {
+ $result = $apiInstance->conversationsPushedMessagesIdPut($id, $body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsPushedMessagesIdPut: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| ID of the message |
+ **body** | [**\SendinBlue\Client\Model\Body11**](../Model/Body11.md)| |
+
+### Return type
+
+[**\SendinBlue\Client\Model\ConversationsMessage**](../Model/ConversationsMessage.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **conversationsPushedMessagesPost**
+> \SendinBlue\Client\Model\ConversationsMessage conversationsPushedMessagesPost($body)
+
+Send an automated message to a visitor
+
+Example of automated messages: order status, announce new features in your web app, etc.
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\ConversationsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$body = new \SendinBlue\Client\Model\Body10(); // \SendinBlue\Client\Model\Body10 |
+
+try {
+ $result = $apiInstance->conversationsPushedMessagesPost($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling ConversationsApi->conversationsPushedMessagesPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**\SendinBlue\Client\Model\Body10**](../Model/Body10.md)| |
+
+### Return type
+
+[**\SendinBlue\Client\Model\ConversationsMessage**](../Model/ConversationsMessage.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/docs/Api/DealsApi.md b/docs/Api/DealsApi.md
new file mode 100644
index 00000000..35ca5302
--- /dev/null
+++ b/docs/Api/DealsApi.md
@@ -0,0 +1,477 @@
+# SendinBlue\Client\DealsApi
+
+All URIs are relative to *https://api.sendinblue.com/v3*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**crmAttributesDealsGet**](DealsApi.md#crmAttributesDealsGet) | **GET** /crm/attributes/deals | Get deal attributes
+[**crmDealsGet**](DealsApi.md#crmDealsGet) | **GET** /crm/deals | Get all deals
+[**crmDealsIdDelete**](DealsApi.md#crmDealsIdDelete) | **DELETE** /crm/deals/{id} | Delete a deal
+[**crmDealsIdGet**](DealsApi.md#crmDealsIdGet) | **GET** /crm/deals/{id} | Get a deal
+[**crmDealsIdPatch**](DealsApi.md#crmDealsIdPatch) | **PATCH** /crm/deals/{id} | Update a deal
+[**crmDealsLinkUnlinkIdPatch**](DealsApi.md#crmDealsLinkUnlinkIdPatch) | **PATCH** /crm/deals/link-unlink/{id} | Link and Unlink a deal with contacts and companies
+[**crmDealsPost**](DealsApi.md#crmDealsPost) | **POST** /crm/deals | Create a deal
+[**crmPipelineDetailsGet**](DealsApi.md#crmPipelineDetailsGet) | **GET** /crm/pipeline/details | Get pipeline stages
+
+
+# **crmAttributesDealsGet**
+> \SendinBlue\Client\Model\DealAttributes crmAttributesDealsGet()
+
+Get deal attributes
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\DealsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+
+try {
+ $result = $apiInstance->crmAttributesDealsGet();
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DealsApi->crmAttributesDealsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**\SendinBlue\Client\Model\DealAttributes**](../Model/DealAttributes.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmDealsGet**
+> \SendinBlue\Client\Model\DealsList crmDealsGet($filtersAttributes, $filtersLinkedCompaniesIds, $filtersLinkedContactsIds, $offset, $limit, $sort, $sortBy)
+
+Get all deals
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\DealsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$filtersAttributes = "filtersAttributes_example"; // string | Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\"
+$filtersLinkedCompaniesIds = "filtersLinkedCompaniesIds_example"; // string | Filter by linked companies ids
+$filtersLinkedContactsIds = "filtersLinkedContactsIds_example"; // string | Filter by linked companies ids
+$offset = 789; // int | Index of the first document of the page
+$limit = 50; // int | Number of documents per page
+$sort = "sort_example"; // string | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
+$sortBy = "sortBy_example"; // string | The field used to sort field names.
+
+try {
+ $result = $apiInstance->crmDealsGet($filtersAttributes, $filtersLinkedCompaniesIds, $filtersLinkedContactsIds, $offset, $limit, $sort, $sortBy);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DealsApi->crmDealsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **filtersAttributes** | **string**| Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" | [optional]
+ **filtersLinkedCompaniesIds** | **string**| Filter by linked companies ids | [optional]
+ **filtersLinkedContactsIds** | **string**| Filter by linked companies ids | [optional]
+ **offset** | **int**| Index of the first document of the page | [optional]
+ **limit** | **int**| Number of documents per page | [optional] [default to 50]
+ **sort** | **string**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional]
+ **sortBy** | **string**| The field used to sort field names. | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\DealsList**](../Model/DealsList.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmDealsIdDelete**
+> crmDealsIdDelete($id)
+
+Delete a deal
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\DealsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+
+try {
+ $apiInstance->crmDealsIdDelete($id);
+} catch (Exception $e) {
+ echo 'Exception when calling DealsApi->crmDealsIdDelete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmDealsIdGet**
+> \SendinBlue\Client\Model\Deal crmDealsIdGet($id)
+
+Get a deal
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\DealsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+
+try {
+ $result = $apiInstance->crmDealsIdGet($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DealsApi->crmDealsIdGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+
+### Return type
+
+[**\SendinBlue\Client\Model\Deal**](../Model/Deal.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmDealsIdPatch**
+> crmDealsIdPatch($id, $body)
+
+Update a deal
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\DealsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+$body = new \SendinBlue\Client\Model\Body4(); // \SendinBlue\Client\Model\Body4 | Updated deal details.
+
+try {
+ $apiInstance->crmDealsIdPatch($id, $body);
+} catch (Exception $e) {
+ echo 'Exception when calling DealsApi->crmDealsIdPatch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+ **body** | [**\SendinBlue\Client\Model\Body4**](../Model/Body4.md)| Updated deal details. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmDealsLinkUnlinkIdPatch**
+> crmDealsLinkUnlinkIdPatch($id, $body)
+
+Link and Unlink a deal with contacts and companies
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\DealsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+$body = new \SendinBlue\Client\Model\Body5(); // \SendinBlue\Client\Model\Body5 | Linked / Unlinked contacts and companies ids.
+
+try {
+ $apiInstance->crmDealsLinkUnlinkIdPatch($id, $body);
+} catch (Exception $e) {
+ echo 'Exception when calling DealsApi->crmDealsLinkUnlinkIdPatch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+ **body** | [**\SendinBlue\Client\Model\Body5**](../Model/Body5.md)| Linked / Unlinked contacts and companies ids. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmDealsPost**
+> \SendinBlue\Client\Model\InlineResponse201 crmDealsPost($body)
+
+Create a deal
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\DealsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$body = new \SendinBlue\Client\Model\Body3(); // \SendinBlue\Client\Model\Body3 | Deal create data.
+
+try {
+ $result = $apiInstance->crmDealsPost($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DealsApi->crmDealsPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**\SendinBlue\Client\Model\Body3**](../Model/Body3.md)| Deal create data. |
+
+### Return type
+
+[**\SendinBlue\Client\Model\InlineResponse201**](../Model/InlineResponse201.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmPipelineDetailsGet**
+> \SendinBlue\Client\Model\Pipeline crmPipelineDetailsGet()
+
+Get pipeline stages
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\DealsApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+
+try {
+ $result = $apiInstance->crmPipelineDetailsGet();
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DealsApi->crmPipelineDetailsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**\SendinBlue\Client\Model\Pipeline**](../Model/Pipeline.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/docs/Api/EcommerceApi.md b/docs/Api/EcommerceApi.md
new file mode 100644
index 00000000..f03560a3
--- /dev/null
+++ b/docs/Api/EcommerceApi.md
@@ -0,0 +1,651 @@
+# SendinBlue\Client\EcommerceApi
+
+All URIs are relative to *https://api.sendinblue.com/v3*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createBatchOrder**](EcommerceApi.md#createBatchOrder) | **POST** /orders/status/batch | Maintains a batch of orders
+[**createOrder**](EcommerceApi.md#createOrder) | **POST** /orders/status | Maintains every transactional status of the order
+[**createUpdateBatchCategory**](EcommerceApi.md#createUpdateBatchCategory) | **POST** /categories/batch | Create the categories in a batch
+[**createUpdateBatchProducts**](EcommerceApi.md#createUpdateBatchProducts) | **POST** /products/batch | Creates the products in a batch
+[**createUpdateCategory**](EcommerceApi.md#createUpdateCategory) | **POST** /categories | Create/Update a category
+[**createUpdateProduct**](EcommerceApi.md#createUpdateProduct) | **POST** /products | Create/Update a product
+[**ecommerceActivatePost**](EcommerceApi.md#ecommerceActivatePost) | **POST** /ecommerce/activate | **Fulfills the eCommerce pre-requisites**
+[**getCategories**](EcommerceApi.md#getCategories) | **GET** /categories | Return all your categories
+[**getCategoryInfo**](EcommerceApi.md#getCategoryInfo) | **GET** /categories/{id} | Get a category details
+[**getProductInfo**](EcommerceApi.md#getProductInfo) | **GET** /products/{id} | Get a product's details
+[**getProducts**](EcommerceApi.md#getProducts) | **GET** /products | Return all your products
+
+
+# **createBatchOrder**
+> createBatchOrder($orderBatch)
+
+Maintains a batch of orders
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$orderBatch = new \SendinBlue\Client\Model\OrderBatch(); // \SendinBlue\Client\Model\OrderBatch |
+
+try {
+ $apiInstance->createBatchOrder($orderBatch);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->createBatchOrder: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **orderBatch** | [**\SendinBlue\Client\Model\OrderBatch**](../Model/OrderBatch.md)| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **createOrder**
+> createOrder($order)
+
+Maintains every transactional status of the order
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$order = new \SendinBlue\Client\Model\Order(); // \SendinBlue\Client\Model\Order |
+
+try {
+ $apiInstance->createOrder($order);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->createOrder: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **order** | [**\SendinBlue\Client\Model\Order**](../Model/Order.md)| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **createUpdateBatchCategory**
+> \SendinBlue\Client\Model\CreateUpdateBatchCategoryModel createUpdateBatchCategory($createUpdateBatchCategory)
+
+Create the categories in a batch
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$createUpdateBatchCategory = new \SendinBlue\Client\Model\CreateUpdateBatchCategory(); // \SendinBlue\Client\Model\CreateUpdateBatchCategory | Values to create a batch of categories
+
+try {
+ $result = $apiInstance->createUpdateBatchCategory($createUpdateBatchCategory);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->createUpdateBatchCategory: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **createUpdateBatchCategory** | [**\SendinBlue\Client\Model\CreateUpdateBatchCategory**](../Model/CreateUpdateBatchCategory.md)| Values to create a batch of categories |
+
+### Return type
+
+[**\SendinBlue\Client\Model\CreateUpdateBatchCategoryModel**](../Model/CreateUpdateBatchCategoryModel.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **createUpdateBatchProducts**
+> \SendinBlue\Client\Model\CreateUpdateBatchProductsModel createUpdateBatchProducts($createUpdateBatchProducts)
+
+Creates the products in a batch
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$createUpdateBatchProducts = new \SendinBlue\Client\Model\CreateUpdateBatchProducts(); // \SendinBlue\Client\Model\CreateUpdateBatchProducts | Values to create a batch of products
+
+try {
+ $result = $apiInstance->createUpdateBatchProducts($createUpdateBatchProducts);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->createUpdateBatchProducts: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **createUpdateBatchProducts** | [**\SendinBlue\Client\Model\CreateUpdateBatchProducts**](../Model/CreateUpdateBatchProducts.md)| Values to create a batch of products |
+
+### Return type
+
+[**\SendinBlue\Client\Model\CreateUpdateBatchProductsModel**](../Model/CreateUpdateBatchProductsModel.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **createUpdateCategory**
+> \SendinBlue\Client\Model\CreateCategoryModel createUpdateCategory($createUpdateCategory)
+
+Create/Update a category
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$createUpdateCategory = new \SendinBlue\Client\Model\CreateUpdateCategory(); // \SendinBlue\Client\Model\CreateUpdateCategory | Values to create/update a category
+
+try {
+ $result = $apiInstance->createUpdateCategory($createUpdateCategory);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->createUpdateCategory: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **createUpdateCategory** | [**\SendinBlue\Client\Model\CreateUpdateCategory**](../Model/CreateUpdateCategory.md)| Values to create/update a category |
+
+### Return type
+
+[**\SendinBlue\Client\Model\CreateCategoryModel**](../Model/CreateCategoryModel.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **createUpdateProduct**
+> \SendinBlue\Client\Model\CreateProductModel createUpdateProduct($createUpdateProduct)
+
+Create/Update a product
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$createUpdateProduct = new \SendinBlue\Client\Model\CreateUpdateProduct(); // \SendinBlue\Client\Model\CreateUpdateProduct | Values to create/update a product
+
+try {
+ $result = $apiInstance->createUpdateProduct($createUpdateProduct);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->createUpdateProduct: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **createUpdateProduct** | [**\SendinBlue\Client\Model\CreateUpdateProduct**](../Model/CreateUpdateProduct.md)| Values to create/update a product |
+
+### Return type
+
+[**\SendinBlue\Client\Model\CreateProductModel**](../Model/CreateProductModel.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **ecommerceActivatePost**
+> ecommerceActivatePost()
+
+**Fulfills the eCommerce pre-requisites**
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+
+try {
+ $apiInstance->ecommerceActivatePost();
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->ecommerceActivatePost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **getCategories**
+> \SendinBlue\Client\Model\GetCategories getCategories($limit, $offset, $sort, $ids)
+
+Return all your categories
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$limit = 50; // int | Number of documents per page
+$offset = 0; // int | Index of the first document in the page
+$sort = "desc"; // string | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
+$ids = array("ids_example"); // string[] | Filter by category ids
+
+try {
+ $result = $apiInstance->getCategories($limit, $offset, $sort, $ids);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->getCategories: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **limit** | **int**| Number of documents per page | [optional] [default to 50]
+ **offset** | **int**| Index of the first document in the page | [optional] [default to 0]
+ **sort** | **string**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc]
+ **ids** | [**string[]**](../Model/string.md)| Filter by category ids | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\GetCategories**](../Model/GetCategories.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **getCategoryInfo**
+> \SendinBlue\Client\Model\GetCategoryDetails getCategoryInfo($id)
+
+Get a category details
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | Category ID
+
+try {
+ $result = $apiInstance->getCategoryInfo($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->getCategoryInfo: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| Category ID |
+
+### Return type
+
+[**\SendinBlue\Client\Model\GetCategoryDetails**](../Model/GetCategoryDetails.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **getProductInfo**
+> \SendinBlue\Client\Model\GetProductDetails getProductInfo($id)
+
+Get a product's details
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | Product ID
+
+try {
+ $result = $apiInstance->getProductInfo($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->getProductInfo: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| Product ID |
+
+### Return type
+
+[**\SendinBlue\Client\Model\GetProductDetails**](../Model/GetProductDetails.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **getProducts**
+> \SendinBlue\Client\Model\GetProducts getProducts($limit, $offset, $sort, $ids)
+
+Return all your products
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\EcommerceApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$limit = 50; // int | Number of documents per page
+$offset = 0; // int | Index of the first document in the page
+$sort = "desc"; // string | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
+$ids = array("ids_example"); // string[] | Filter by product ids
+
+try {
+ $result = $apiInstance->getProducts($limit, $offset, $sort, $ids);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling EcommerceApi->getProducts: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **limit** | **int**| Number of documents per page | [optional] [default to 50]
+ **offset** | **int**| Index of the first document in the page | [optional] [default to 0]
+ **sort** | **string**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc]
+ **ids** | [**string[]**](../Model/string.md)| Filter by product ids | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\GetProducts**](../Model/GetProducts.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/docs/Api/EmailCampaignsApi.md b/docs/Api/EmailCampaignsApi.md
index dd24233f..0189ed23 100644
--- a/docs/Api/EmailCampaignsApi.md
+++ b/docs/Api/EmailCampaignsApi.md
@@ -336,7 +336,7 @@ $type = "type_example"; // string | Filter on the type of the campaigns
$status = "status_example"; // string | Filter on the status of the campaign
$startDate = "startDate_example"; // string | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
$endDate = "endDate_example"; // string | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
-$limit = 500; // int | Number of documents per page
+$limit = 50; // int | Number of documents per page
$offset = 0; // int | Index of the first document in the page
$sort = "desc"; // string | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
@@ -357,7 +357,7 @@ Name | Type | Description | Notes
**status** | **string**| Filter on the status of the campaign | [optional]
**startDate** | **string**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional]
**endDate** | **string**| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional]
- **limit** | **int**| Number of documents per page | [optional] [default to 500]
+ **limit** | **int**| Number of documents per page | [optional] [default to 50]
**offset** | **int**| Index of the first document in the page | [optional] [default to 0]
**sort** | **string**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc]
@@ -726,7 +726,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)
# **uploadImageToGallery**
-> uploadImageToGallery($uploadImage)
+> \SendinBlue\Client\Model\UploadImageModel uploadImageToGallery($uploadImage)
Upload an image to your account's image gallery
@@ -753,7 +753,8 @@ $apiInstance = new SendinBlue\Client\Api\EmailCampaignsApi(
$uploadImage = new \SendinBlue\Client\Model\UploadImageToGallery(); // \SendinBlue\Client\Model\UploadImageToGallery | Parameters to upload an image
try {
- $apiInstance->uploadImageToGallery($uploadImage);
+ $result = $apiInstance->uploadImageToGallery($uploadImage);
+ print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EmailCampaignsApi->uploadImageToGallery: ', $e->getMessage(), PHP_EOL;
}
@@ -768,7 +769,7 @@ Name | Type | Description | Notes
### Return type
-void (empty response body)
+[**\SendinBlue\Client\Model\UploadImageModel**](../Model/UploadImageModel.md)
### Authorization
diff --git a/docs/Api/FilesApi.md b/docs/Api/FilesApi.md
new file mode 100644
index 00000000..a6c73b04
--- /dev/null
+++ b/docs/Api/FilesApi.md
@@ -0,0 +1,315 @@
+# SendinBlue\Client\FilesApi
+
+All URIs are relative to *https://api.sendinblue.com/v3*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**crmFilesGet**](FilesApi.md#crmFilesGet) | **GET** /crm/files | Get all files
+[**crmFilesIdDataGet**](FilesApi.md#crmFilesIdDataGet) | **GET** /crm/files/{id}/data | Get file details
+[**crmFilesIdDelete**](FilesApi.md#crmFilesIdDelete) | **DELETE** /crm/files/{id} | Delete a file
+[**crmFilesIdGet**](FilesApi.md#crmFilesIdGet) | **GET** /crm/files/{id} | Download a file
+[**crmFilesPost**](FilesApi.md#crmFilesPost) | **POST** /crm/files | Upload a file
+
+
+# **crmFilesGet**
+> \SendinBlue\Client\Model\FileList crmFilesGet($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort)
+
+Get all files
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\FilesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$entity = "entity_example"; // string | Filter by file entity type
+$entityIds = "entityIds_example"; // string | Filter by file entity IDs
+$dateFrom = 56; // int | dateFrom to date range filter type (timestamp in milliseconds)
+$dateTo = 56; // int | dateTo to date range filter type (timestamp in milliseconds)
+$offset = 789; // int | Index of the first document of the page
+$limit = 50; // int | Number of documents per page
+$sort = "sort_example"; // string | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
+
+try {
+ $result = $apiInstance->crmFilesGet($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling FilesApi->crmFilesGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **entity** | **string**| Filter by file entity type | [optional]
+ **entityIds** | **string**| Filter by file entity IDs | [optional]
+ **dateFrom** | **int**| dateFrom to date range filter type (timestamp in milliseconds) | [optional]
+ **dateTo** | **int**| dateTo to date range filter type (timestamp in milliseconds) | [optional]
+ **offset** | **int**| Index of the first document of the page | [optional]
+ **limit** | **int**| Number of documents per page | [optional] [default to 50]
+ **sort** | **string**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\FileList**](../Model/FileList.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmFilesIdDataGet**
+> \SendinBlue\Client\Model\FileData crmFilesIdDataGet($id)
+
+Get file details
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\FilesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | File id to get file data.
+
+try {
+ $result = $apiInstance->crmFilesIdDataGet($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling FilesApi->crmFilesIdDataGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| File id to get file data. |
+
+### Return type
+
+[**\SendinBlue\Client\Model\FileData**](../Model/FileData.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmFilesIdDelete**
+> crmFilesIdDelete($id)
+
+Delete a file
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\FilesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | File id to delete.
+
+try {
+ $apiInstance->crmFilesIdDelete($id);
+} catch (Exception $e) {
+ echo 'Exception when calling FilesApi->crmFilesIdDelete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| File id to delete. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmFilesIdGet**
+> \SendinBlue\Client\Model\FileDownloadableLink crmFilesIdGet($id)
+
+Download a file
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\FilesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | File id to download.
+
+try {
+ $result = $apiInstance->crmFilesIdGet($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling FilesApi->crmFilesIdGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| File id to download. |
+
+### Return type
+
+[**\SendinBlue\Client\Model\FileDownloadableLink**](../Model/FileDownloadableLink.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmFilesPost**
+> \SendinBlue\Client\Model\FileData crmFilesPost($file, $dealId, $contactId, $companyId)
+
+Upload a file
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\FilesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$file = "/path/to/file.txt"; // \SplFileObject | File data to create a file.
+$dealId = "dealId_example"; // string | Deal id linked to a file
+$contactId = 789; // int | Contact id linked to a file
+$companyId = "companyId_example"; // string | Company id linked to a file
+
+try {
+ $result = $apiInstance->crmFilesPost($file, $dealId, $contactId, $companyId);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling FilesApi->crmFilesPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file** | **\SplFileObject**| File data to create a file. |
+ **dealId** | **string**| Deal id linked to a file | [optional]
+ **contactId** | **int**| Contact id linked to a file | [optional]
+ **companyId** | **string**| Company id linked to a file | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\FileData**](../Model/FileData.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/docs/Api/InboundParsingApi.md b/docs/Api/InboundParsingApi.md
index 2e287a37..65c883d4 100644
--- a/docs/Api/InboundParsingApi.md
+++ b/docs/Api/InboundParsingApi.md
@@ -4,10 +4,70 @@ All URIs are relative to *https://api.sendinblue.com/v3*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**getInboundEmailAttachment**](InboundParsingApi.md#getInboundEmailAttachment) | **GET** /inbound/attachments/{downloadToken} | Retrieve inbound attachment with download token.
[**getInboundEmailEvents**](InboundParsingApi.md#getInboundEmailEvents) | **GET** /inbound/events | Get the list of all the events for the received emails.
[**getInboundEmailEventsByUuid**](InboundParsingApi.md#getInboundEmailEventsByUuid) | **GET** /inbound/events/{uuid} | Fetch all events history for one particular received email.
+# **getInboundEmailAttachment**
+> \SplFileObject getInboundEmailAttachment($downloadToken)
+
+Retrieve inbound attachment with download token.
+
+This endpoint will retrieve inbound attachment with download token.
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\InboundParsingApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$downloadToken = "downloadToken_example"; // string | Token to fetch a particular attachment
+
+try {
+ $result = $apiInstance->getInboundEmailAttachment($downloadToken);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling InboundParsingApi->getInboundEmailAttachment: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **downloadToken** | **string**| Token to fetch a particular attachment |
+
+### Return type
+
+[**\SplFileObject**](../Model/\SplFileObject.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
# **getInboundEmailEvents**
> \SendinBlue\Client\Model\GetInboundEmailEvents getInboundEmailEvents($sender, $startDate, $endDate, $limit, $offset, $sort)
diff --git a/docs/Api/MasterAccountApi.md b/docs/Api/MasterAccountApi.md
index 14a6045d..be176ea4 100644
--- a/docs/Api/MasterAccountApi.md
+++ b/docs/Api/MasterAccountApi.md
@@ -368,7 +368,7 @@ Name | Type | Description | Notes
Generate SSO token to access Sendinblue
-This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
+This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
### Example
```php
diff --git a/docs/Api/NotesApi.md b/docs/Api/NotesApi.md
new file mode 100644
index 00000000..61e90009
--- /dev/null
+++ b/docs/Api/NotesApi.md
@@ -0,0 +1,310 @@
+# SendinBlue\Client\NotesApi
+
+All URIs are relative to *https://api.sendinblue.com/v3*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**crmNotesGet**](NotesApi.md#crmNotesGet) | **GET** /crm/notes | Get all notes
+[**crmNotesIdDelete**](NotesApi.md#crmNotesIdDelete) | **DELETE** /crm/notes/{id} | Delete a note
+[**crmNotesIdGet**](NotesApi.md#crmNotesIdGet) | **GET** /crm/notes/{id} | Get a note
+[**crmNotesIdPatch**](NotesApi.md#crmNotesIdPatch) | **PATCH** /crm/notes/{id} | Update a note
+[**crmNotesPost**](NotesApi.md#crmNotesPost) | **POST** /crm/notes | Create a note
+
+
+# **crmNotesGet**
+> \SendinBlue\Client\Model\NoteList crmNotesGet($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort)
+
+Get all notes
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\NotesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$entity = "entity_example"; // string | Filter by note entity type
+$entityIds = "entityIds_example"; // string | Filter by note entity IDs
+$dateFrom = 56; // int | dateFrom to date range filter type (timestamp in milliseconds)
+$dateTo = 56; // int | dateTo to date range filter type (timestamp in milliseconds)
+$offset = 789; // int | Index of the first document of the page
+$limit = 50; // int | Number of documents per page
+$sort = "sort_example"; // string | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
+
+try {
+ $result = $apiInstance->crmNotesGet($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling NotesApi->crmNotesGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **entity** | **string**| Filter by note entity type | [optional]
+ **entityIds** | **string**| Filter by note entity IDs | [optional]
+ **dateFrom** | **int**| dateFrom to date range filter type (timestamp in milliseconds) | [optional]
+ **dateTo** | **int**| dateTo to date range filter type (timestamp in milliseconds) | [optional]
+ **offset** | **int**| Index of the first document of the page | [optional]
+ **limit** | **int**| Number of documents per page | [optional] [default to 50]
+ **sort** | **string**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\NoteList**](../Model/NoteList.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmNotesIdDelete**
+> crmNotesIdDelete($id)
+
+Delete a note
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\NotesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | Note ID to delete
+
+try {
+ $apiInstance->crmNotesIdDelete($id);
+} catch (Exception $e) {
+ echo 'Exception when calling NotesApi->crmNotesIdDelete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| Note ID to delete |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmNotesIdGet**
+> \SendinBlue\Client\Model\Note crmNotesIdGet($id)
+
+Get a note
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\NotesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | Note ID to get
+
+try {
+ $result = $apiInstance->crmNotesIdGet($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling NotesApi->crmNotesIdGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| Note ID to get |
+
+### Return type
+
+[**\SendinBlue\Client\Model\Note**](../Model/Note.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmNotesIdPatch**
+> crmNotesIdPatch($id, $body)
+
+Update a note
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\NotesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string | Note ID to update
+$body = new \SendinBlue\Client\Model\NoteData(); // \SendinBlue\Client\Model\NoteData | Note data to update a note
+
+try {
+ $apiInstance->crmNotesIdPatch($id, $body);
+} catch (Exception $e) {
+ echo 'Exception when calling NotesApi->crmNotesIdPatch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| Note ID to update |
+ **body** | [**\SendinBlue\Client\Model\NoteData**](../Model/NoteData.md)| Note data to update a note |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmNotesPost**
+> \SendinBlue\Client\Model\NoteId crmNotesPost($body)
+
+Create a note
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\NotesApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$body = new \SendinBlue\Client\Model\NoteData(); // \SendinBlue\Client\Model\NoteData | Note data to create a note.
+
+try {
+ $result = $apiInstance->crmNotesPost($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling NotesApi->crmNotesPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**\SendinBlue\Client\Model\NoteData**](../Model/NoteData.md)| Note data to create a note. |
+
+### Return type
+
+[**\SendinBlue\Client\Model\NoteId**](../Model/NoteId.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/docs/Api/TasksApi.md b/docs/Api/TasksApi.md
new file mode 100644
index 00000000..6053194a
--- /dev/null
+++ b/docs/Api/TasksApi.md
@@ -0,0 +1,376 @@
+# SendinBlue\Client\TasksApi
+
+All URIs are relative to *https://api.sendinblue.com/v3*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**crmTasksGet**](TasksApi.md#crmTasksGet) | **GET** /crm/tasks | Get all tasks
+[**crmTasksIdDelete**](TasksApi.md#crmTasksIdDelete) | **DELETE** /crm/tasks/{id} | Delete a task
+[**crmTasksIdGet**](TasksApi.md#crmTasksIdGet) | **GET** /crm/tasks/{id} | Get a task
+[**crmTasksIdPatch**](TasksApi.md#crmTasksIdPatch) | **PATCH** /crm/tasks/{id} | Update a task
+[**crmTasksPost**](TasksApi.md#crmTasksPost) | **POST** /crm/tasks | Create a task
+[**crmTasktypesGet**](TasksApi.md#crmTasktypesGet) | **GET** /crm/tasktypes | Get all task types
+
+
+# **crmTasksGet**
+> \SendinBlue\Client\Model\TaskList crmTasksGet($filterType, $filterStatus, $filterDate, $filterAssignTo, $filterContacts, $filterDeals, $filterCompanies, $dateFrom, $dateTo, $offset, $limit, $sort, $sortBy)
+
+Get all tasks
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\TasksApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$filterType = "filterType_example"; // string | Filter by task type (ID)
+$filterStatus = "filterStatus_example"; // string | Filter by task status
+$filterDate = "filterDate_example"; // string | Filter by date
+$filterAssignTo = "filterAssignTo_example"; // string | Filter by assignTo id
+$filterContacts = "filterContacts_example"; // string | Filter by contact ids
+$filterDeals = "filterDeals_example"; // string | Filter by deals ids
+$filterCompanies = "filterCompanies_example"; // string | Filter by companies ids
+$dateFrom = 56; // int | dateFrom to date range filter type (timestamp in milliseconds)
+$dateTo = 56; // int | dateTo to date range filter type (timestamp in milliseconds)
+$offset = 789; // int | Index of the first document of the page
+$limit = 50; // int | Number of documents per page
+$sort = "sort_example"; // string | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
+$sortBy = "sortBy_example"; // string | The field used to sort field names.
+
+try {
+ $result = $apiInstance->crmTasksGet($filterType, $filterStatus, $filterDate, $filterAssignTo, $filterContacts, $filterDeals, $filterCompanies, $dateFrom, $dateTo, $offset, $limit, $sort, $sortBy);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling TasksApi->crmTasksGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **filterType** | **string**| Filter by task type (ID) | [optional]
+ **filterStatus** | **string**| Filter by task status | [optional]
+ **filterDate** | **string**| Filter by date | [optional]
+ **filterAssignTo** | **string**| Filter by assignTo id | [optional]
+ **filterContacts** | **string**| Filter by contact ids | [optional]
+ **filterDeals** | **string**| Filter by deals ids | [optional]
+ **filterCompanies** | **string**| Filter by companies ids | [optional]
+ **dateFrom** | **int**| dateFrom to date range filter type (timestamp in milliseconds) | [optional]
+ **dateTo** | **int**| dateTo to date range filter type (timestamp in milliseconds) | [optional]
+ **offset** | **int**| Index of the first document of the page | [optional]
+ **limit** | **int**| Number of documents per page | [optional] [default to 50]
+ **sort** | **string**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional]
+ **sortBy** | **string**| The field used to sort field names. | [optional]
+
+### Return type
+
+[**\SendinBlue\Client\Model\TaskList**](../Model/TaskList.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmTasksIdDelete**
+> crmTasksIdDelete($id)
+
+Delete a task
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\TasksApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+
+try {
+ $apiInstance->crmTasksIdDelete($id);
+} catch (Exception $e) {
+ echo 'Exception when calling TasksApi->crmTasksIdDelete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmTasksIdGet**
+> \SendinBlue\Client\Model\Task crmTasksIdGet($id)
+
+Get a task
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\TasksApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+
+try {
+ $result = $apiInstance->crmTasksIdGet($id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling TasksApi->crmTasksIdGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+
+### Return type
+
+[**\SendinBlue\Client\Model\Task**](../Model/Task.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmTasksIdPatch**
+> crmTasksIdPatch($id, $body)
+
+Update a task
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\TasksApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$id = "id_example"; // string |
+$body = new \SendinBlue\Client\Model\Body7(); // \SendinBlue\Client\Model\Body7 | Updated task details.
+
+try {
+ $apiInstance->crmTasksIdPatch($id, $body);
+} catch (Exception $e) {
+ echo 'Exception when calling TasksApi->crmTasksIdPatch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **string**| |
+ **body** | [**\SendinBlue\Client\Model\Body7**](../Model/Body7.md)| Updated task details. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmTasksPost**
+> \SendinBlue\Client\Model\InlineResponse2011 crmTasksPost($body)
+
+Create a task
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\TasksApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+$body = new \SendinBlue\Client\Model\Body6(); // \SendinBlue\Client\Model\Body6 | Task name.
+
+try {
+ $result = $apiInstance->crmTasksPost($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling TasksApi->crmTasksPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**\SendinBlue\Client\Model\Body6**](../Model/Body6.md)| Task name. |
+
+### Return type
+
+[**\SendinBlue\Client\Model\InlineResponse2011**](../Model/InlineResponse2011.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **crmTasktypesGet**
+> \SendinBlue\Client\Model\TaskTypes crmTasktypesGet()
+
+Get all task types
+
+### Example
+```php
+setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+// Configure API key authorization: partner-key
+$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');
+
+$apiInstance = new SendinBlue\Client\Api\TasksApi(
+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
+ // This is optional, `GuzzleHttp\Client` will be used as default.
+ new GuzzleHttp\Client(),
+ $config
+);
+
+try {
+ $result = $apiInstance->crmTasktypesGet();
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling TasksApi->crmTasktypesGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**\SendinBlue\Client\Model\TaskTypes**](../Model/TaskTypes.md)
+
+### Authorization
+
+[api-key](../../README.md#api-key), [partner-key](../../README.md#partner-key)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/docs/Api/TransactionalEmailsApi.md b/docs/Api/TransactionalEmailsApi.md
index 75b6f247..9517a914 100644
--- a/docs/Api/TransactionalEmailsApi.md
+++ b/docs/Api/TransactionalEmailsApi.md
@@ -520,7 +520,7 @@ $apiInstance = new SendinBlue\Client\Api\TransactionalEmailsApi(
new GuzzleHttp\Client(),
$config
);
-$limit = 50; // int | Number limitation for the result returned
+$limit = 2500; // int | Number limitation for the result returned
$offset = 0; // int | Beginning point in the list to retrieve from.
$startDate = "startDate_example"; // string | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
$endDate = "endDate_example"; // string | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
@@ -545,7 +545,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **limit** | **int**| Number limitation for the result returned | [optional] [default to 50]
+ **limit** | **int**| Number limitation for the result returned | [optional] [default to 2500]
**offset** | **int**| Beginning point in the list to retrieve from. | [optional] [default to 0]
**startDate** | **string**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional]
**endDate** | **string**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional]
diff --git a/docs/Model/Body10.md b/docs/Model/Body10.md
new file mode 100644
index 00000000..22b50874
--- /dev/null
+++ b/docs/Model/Body10.md
@@ -0,0 +1,13 @@
+# Body10
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**visitorId** | **string** | visitor’s ID received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a> or generated by you to <a href=\"https://developers.sendinblue.com/docs/customize-the-widget#identifying-existing-users\">bind existing user account to Conversations</a> |
+**text** | **string** | message text |
+**agentId** | **string** | agent ID. It can be found on agent’s page or received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a>. Optional if `groupId` is set. | [optional]
+**groupId** | **string** | group ID. It can be found on group’s page. Optional if `agentId` is set. | [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/Body11.md b/docs/Model/Body11.md
new file mode 100644
index 00000000..e74265d3
--- /dev/null
+++ b/docs/Model/Body11.md
@@ -0,0 +1,10 @@
+# Body11
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**text** | **string** | edited message text |
+
+[[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/Body12.md b/docs/Model/Body12.md
new file mode 100644
index 00000000..06c28ed2
--- /dev/null
+++ b/docs/Model/Body12.md
@@ -0,0 +1,13 @@
+# Body12
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**agentId** | **string** | agent ID. It can be found on agent’s page or received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a>. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). | [optional]
+**receivedFrom** | **string** | mark your messages to distinguish messages created by you from the others. | [optional]
+**agentEmail** | **string** | agent email. When sending online pings from a standalone system, it’s hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address. If there’s no agent with the specified email address in your Sendinblue organization, a dummy agent will be created automatically. | [optional]
+**agentName** | **string** | agent name. | [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/Body2.md b/docs/Model/Body2.md
new file mode 100644
index 00000000..aa06a26d
--- /dev/null
+++ b/docs/Model/Body2.md
@@ -0,0 +1,13 @@
+# Body2
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**linkContactIds** | **int[]** | Contact ids for contacts to be linked with company | [optional]
+**unlinkContactIds** | **int[]** | Contact ids for contacts to be unlinked from company | [optional]
+**linkDealsIds** | **string[]** | Deals ids for deals to be linked with company | [optional]
+**unlinkDealsIds** | **string[]** | Deals ids for deals to be unlinked from company | [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/Body3.md b/docs/Model/Body3.md
new file mode 100644
index 00000000..95d96de3
--- /dev/null
+++ b/docs/Model/Body3.md
@@ -0,0 +1,11 @@
+# Body3
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **string** | Name of deal |
+**attributes** | **object** | Attributes fo\\r deal creation | [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/Body4.md b/docs/Model/Body4.md
new file mode 100644
index 00000000..18fc071c
--- /dev/null
+++ b/docs/Model/Body4.md
@@ -0,0 +1,11 @@
+# Body4
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **string** | Name of deal | [optional]
+**attributes** | **object** | Attributes for deal update | [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/Body5.md b/docs/Model/Body5.md
new file mode 100644
index 00000000..51b66279
--- /dev/null
+++ b/docs/Model/Body5.md
@@ -0,0 +1,13 @@
+# Body5
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**linkContactIds** | **int[]** | Contact ids for contacts to be linked with deal | [optional]
+**unlinkContactIds** | **int[]** | Contact ids for contacts to be unlinked from deal | [optional]
+**linkCompanyIds** | **string[]** | Company ids to be linked with deal | [optional]
+**unlinkCompanyIds** | **string[]** | Company ids to be unlinked from deal | [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/Body6.md b/docs/Model/Body6.md
new file mode 100644
index 00000000..e809c274
--- /dev/null
+++ b/docs/Model/Body6.md
@@ -0,0 +1,20 @@
+# Body6
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **string** | Name of task |
+**duration** | **int** | Duration of task in milliseconds [1 minute = 60000 ms] | [optional]
+**taskTypeId** | **string** | Id for type of task e.g Call / Email / Meeting etc. |
+**date** | [**\DateTime**] | Task due date and time |
+**notes** | **string** | Notes added to a task | [optional]
+**done** | **bool** | Task marked as done | [optional]
+**assignToId** | **string** | User id to whom task is assigned | [optional]
+**contactsIds** | **int[]** | Contact ids for contacts linked to this task | [optional]
+**dealsIds** | **string[]** | Deal ids for deals a task is linked to | [optional]
+**companiesIds** | **string[]** | Companies ids for companies a task is linked to | [optional]
+**reminder** | [**\SendinBlue\Client\Model\TaskReminder**](TaskReminder.md) | | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
+
diff --git a/docs/Model/Body7.md b/docs/Model/Body7.md
new file mode 100644
index 00000000..41c958ec
--- /dev/null
+++ b/docs/Model/Body7.md
@@ -0,0 +1,19 @@
+# Body7
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **string** | Name of task | [optional]
+**duration** | **int** | Duration of task in milliseconds [1 minute = 60000 ms] | [optional]
+**taskTypeId** | **string** | Id for type of task e.g Call / Email / Meeting etc. | [optional]
+**date** | [**\DateTime**] | Task date/time | [optional]
+**notes** | **string** | Notes added to a task | [optional]
+**done** | **bool** | Task marked as done | [optional]
+**assignToId** | **string** | User id to whom task is assigned | [optional]
+**contactsIds** | **int[]** | Contact ids for contacts linked to this task | [optional]
+**dealsIds** | **string[]** | Deal ids for deals a task is linked to | [optional]
+**companiesIds** | **string[]** | Companies ids for companies a task is linked to | [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/Body8.md b/docs/Model/Body8.md
new file mode 100644
index 00000000..ed4042ce
--- /dev/null
+++ b/docs/Model/Body8.md
@@ -0,0 +1,15 @@
+# Body8
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**visitorId** | **string** | visitor’s ID received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a> or generated by you to <a href=\"https://developers.sendinblue.com/docs/customize-the-widget#identifying-existing-users\">bind existing user account to Conversations</a> |
+**text** | **string** | message text |
+**agentId** | **string** | agent ID. It can be found on agent’s page or received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a>. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). | [optional]
+**receivedFrom** | **string** | mark your messages to distinguish messages created by you from the others. | [optional]
+**agentEmail** | **string** | agent email. When sending messages from a standalone system, it’s hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address. | [optional]
+**agentName** | **string** | agent name | [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/Body9.md b/docs/Model/Body9.md
new file mode 100644
index 00000000..3c6740d9
--- /dev/null
+++ b/docs/Model/Body9.md
@@ -0,0 +1,10 @@
+# Body9
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**text** | **string** | edited message text |
+
+[[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/CompaniesList.md b/docs/Model/CompaniesList.md
new file mode 100644
index 00000000..8a6ddb58
--- /dev/null
+++ b/docs/Model/CompaniesList.md
@@ -0,0 +1,10 @@
+# CompaniesList
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**items** | [**\SendinBlue\Client\Model\Company[]**](Company.md) | List of compaies | [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/Company.md b/docs/Model/Company.md
new file mode 100644
index 00000000..7bfb6b34
--- /dev/null
+++ b/docs/Model/Company.md
@@ -0,0 +1,13 @@
+# Company
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Unique company id | [optional]
+**attributes** | **object** | Company attributes with values | [optional]
+**linkedContactsIds** | **int[]** | Contact ids for contacts linked to this company | [optional]
+**linkedDealsIds** | **string[]** | Deals ids for companies linked to this company | [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/CompanyAttributes.md b/docs/Model/CompanyAttributes.md
new file mode 100644
index 00000000..3698f9ec
--- /dev/null
+++ b/docs/Model/CompanyAttributes.md
@@ -0,0 +1,9 @@
+# CompanyAttributes
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
+
diff --git a/docs/Model/CompanyAttributesInner.md b/docs/Model/CompanyAttributesInner.md
new file mode 100644
index 00000000..c0011f0a
--- /dev/null
+++ b/docs/Model/CompanyAttributesInner.md
@@ -0,0 +1,14 @@
+# CompanyAttributesInner
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**internalName** | **string** | | [optional]
+**label** | **string** | | [optional]
+**attributeTypeName** | **string** | | [optional]
+**attributeOptions** | **object[]** | | [optional]
+**isRequired** | **bool** | | [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/ConversationsMessageFile.md b/docs/Model/ConversationsMessageFile.md
new file mode 100644
index 00000000..80fa6e5b
--- /dev/null
+++ b/docs/Model/ConversationsMessageFile.md
@@ -0,0 +1,14 @@
+# ConversationsMessageFile
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**filename** | **string** | Name of the file | [optional]
+**size** | **int** | Size in bytes | [optional]
+**isImage** | **bool** | Whether the file is an image | [optional]
+**url** | **string** | URL of the file | [optional]
+**imageInfo** | [**\SendinBlue\Client\Model\ConversationsMessageFileImageInfo**](ConversationsMessageFileImageInfo.md) | | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
+
diff --git a/docs/Model/Conversationsmessage.md b/docs/Model/Conversationsmessage.md
new file mode 100644
index 00000000..b045619b
--- /dev/null
+++ b/docs/Model/Conversationsmessage.md
@@ -0,0 +1,19 @@
+# ConversationsMessage
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Message ID. It can be used for further manipulations with the message. | [optional]
+**type** | **string** | `\"agent\"` for agents’ messages, `\"visitor\"` for visitors’ messages. | [optional]
+**text** | **string** | Message text or name of the attached file | [optional]
+**visitorId** | **string** | visitor’s ID | [optional]
+**agentId** | **string** | ID of the agent on whose behalf the message was sent (only in messages sent by an agent). | [optional]
+**agentName** | **string** | Agent’s name as displayed to the visitor. Only in the messages sent by an agent. | [optional]
+**createdAt** | **int** | Timestamp in milliseconds. | [optional]
+**isPushed** | **bool** | `true` for pushed messages | [optional]
+**receivedFrom** | **string** | In two-way integrations, messages sent via REST API can be marked with receivedFrom property and then filtered out when received in a webhook to avoid infinite loop. | [optional]
+**file** | [**\SendinBlue\Client\Model\ConversationsMessageFile**](ConversationsMessageFile.md) | | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
+
diff --git a/docs/Model/ConversationsmessageFileImageInfo.md b/docs/Model/ConversationsmessageFileImageInfo.md
new file mode 100644
index 00000000..12e18cae
--- /dev/null
+++ b/docs/Model/ConversationsmessageFileImageInfo.md
@@ -0,0 +1,12 @@
+# ConversationsMessageFileImageInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**width** | **int** | Width of the image | [optional]
+**height** | **int** | height of the image | [optional]
+**previewUrl** | **string** | URL of the preview | [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/CreateAttribute.md b/docs/Model/CreateAttribute.md
index 4781c03c..82da0cfe 100644
--- a/docs/Model/CreateAttribute.md
+++ b/docs/Model/CreateAttribute.md
@@ -4,7 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **string** | Value of the attribute. Use only if the attribute's category is 'calculated' or 'global' | [optional]
-**enumeration** | [**\SendinBlue\Client\Model\CreateAttributeEnumeration[]**](CreateAttributeEnumeration.md) | List of values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` | [optional]
+**isRecurring** | **bool** | Type of the calculated attribute. Use only if the attribute's category is 'calculated' | [optional]
+**enumeration** | [**\SendinBlue\Client\Model\CreateAttributeEnumeration[]**](CreateAttributeEnumeration.md) | List of values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, [{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}] | [optional]
**type** | **string** | Type of the attribute. Use only if the attribute's category is 'normal', 'category' or 'transactional' ( type 'boolean' is only available if the category is 'normal' attribute, type 'id' is only available if the category is 'transactional' attribute & type 'category' is only available if the category is 'category' attribute ) | [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/CreateCategoryModel.md b/docs/Model/CreateCategoryModel.md
new file mode 100644
index 00000000..b159bae1
--- /dev/null
+++ b/docs/Model/CreateCategoryModel.md
@@ -0,0 +1,10 @@
+# CreateCategoryModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **int** | ID of the category when a new category is created | [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/CreateContact.md b/docs/Model/CreateContact.md
index 9ad2386f..bed7bc04 100644
--- a/docs/Model/CreateContact.md
+++ b/docs/Model/CreateContact.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **string** | Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} | [optional]
-**attributes** | **object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. `{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"}` | [optional]
+**attributes** | **object** | Pass the set of attributes and their values. The attribute's parameter should be passed in capital letter while creating a contact. These attributes must be present in your SendinBlue account. For eg. `{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"}` | [optional]
**emailBlacklisted** | **bool** | Set this field to blacklist the contact for emails (emailBlacklisted = true) | [optional]
**smsBlacklisted** | **bool** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional]
**listIds** | **int[]** | Ids of the lists to add the contact to | [optional]
diff --git a/docs/Model/CreateEmailCampaign.md b/docs/Model/CreateEmailCampaign.md
index 1a064e4a..c41b854f 100644
--- a/docs/Model/CreateEmailCampaign.md
+++ b/docs/Model/CreateEmailCampaign.md
@@ -31,6 +31,8 @@ Name | Type | Description | Notes
**ipWarmupEnable** | **bool** | Available for dedicated ip clients. Set this to true if you wish to warm up your ip. | [optional] [default to false]
**initialQuota** | **int** | Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. | [optional]
**increaseRate** | **int** | Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. | [optional]
+**unsubscriptionPageId** | **string** | Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. If not entered, then the default unsubscription page will be used. | [optional]
+**updateFormId** | **string** | Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. If not entered, then the default update profile form will be used. | [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/CreateEmailCampaignRecipients.md b/docs/Model/CreateEmailCampaignRecipients.md
index 61de019f..3c037ee1 100644
--- a/docs/Model/CreateEmailCampaignRecipients.md
+++ b/docs/Model/CreateEmailCampaignRecipients.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**exclusionListIds** | **int[]** | List ids to exclude from the campaign | [optional]
**listIds** | **int[]** | Mandatory if scheduledAt is not empty. List Ids to send the campaign to | [optional]
+**segmentIds** | **int[]** | Mandatory if listIds are not used. Segment ids to send the campaign to. | [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/CreateProductModel.md b/docs/Model/CreateProductModel.md
new file mode 100644
index 00000000..38538c52
--- /dev/null
+++ b/docs/Model/CreateProductModel.md
@@ -0,0 +1,10 @@
+# CreateProductModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **int** | ID of the Product when a new product is created | [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/CreateSmsCampaign.md b/docs/Model/CreateSmsCampaign.md
index 292396ab..010125e9 100644
--- a/docs/Model/CreateSmsCampaign.md
+++ b/docs/Model/CreateSmsCampaign.md
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
**recipients** | [**\SendinBlue\Client\Model\CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional]
**scheduledAt** | **string** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
**unicodeEnabled** | **bool** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional] [default to false]
+**organisationPrefix** | **string** | A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** | [optional]
+**unsubscribeInstruction** | **string** | Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** | [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/CreateUpdateBatchCategory.md b/docs/Model/CreateUpdateBatchCategory.md
new file mode 100644
index 00000000..35547717
--- /dev/null
+++ b/docs/Model/CreateUpdateBatchCategory.md
@@ -0,0 +1,11 @@
+# CreateUpdateBatchCategory
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**categories** | [**\SendinBlue\Client\Model\CreateUpdateCategories[]**](CreateUpdateCategories.md) | array of categories objects |
+**updateEnabled** | **bool** | Facilitate to update the existing categories in the same request (updateEnabled = true) | [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/CreateUpdateBatchCategoryModel.md b/docs/Model/CreateUpdateBatchCategoryModel.md
new file mode 100644
index 00000000..1934ae9f
--- /dev/null
+++ b/docs/Model/CreateUpdateBatchCategoryModel.md
@@ -0,0 +1,11 @@
+# CreateUpdateBatchCategoryModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**createdCount** | **int** | Number of the new created categories | [optional]
+**updatedCount** | **int** | Number of the existing categories updated | [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/CreateUpdateBatchProducts.md b/docs/Model/CreateUpdateBatchProducts.md
new file mode 100644
index 00000000..6b1272e9
--- /dev/null
+++ b/docs/Model/CreateUpdateBatchProducts.md
@@ -0,0 +1,11 @@
+# CreateUpdateBatchProducts
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**products** | [**\SendinBlue\Client\Model\CreateUpdateProducts[]**](CreateUpdateProducts.md) | array of products objects |
+**updateEnabled** | **bool** | Facilitate to update the existing categories in the same request (updateEnabled = true) | [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/CreateUpdateBatchProductsModel.md b/docs/Model/CreateUpdateBatchProductsModel.md
new file mode 100644
index 00000000..7b9821c1
--- /dev/null
+++ b/docs/Model/CreateUpdateBatchProductsModel.md
@@ -0,0 +1,11 @@
+# CreateUpdateBatchProductsModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**createdCount** | **int** | Number of the new created products | [optional]
+**updatedCount** | **int** | Number of the existing products updated | [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/CreateUpdateCategories.md b/docs/Model/CreateUpdateCategories.md
new file mode 100644
index 00000000..05955c1b
--- /dev/null
+++ b/docs/Model/CreateUpdateCategories.md
@@ -0,0 +1,12 @@
+# CreateUpdateCategories
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Unique Category ID as saved in the shop |
+**name** | **string** | **Mandatory in case of creation**. Name of the Category, as displayed in the shop | [optional]
+**url** | **string** | URL to the category | [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/CreateUpdateCategory.md b/docs/Model/CreateUpdateCategory.md
new file mode 100644
index 00000000..c4dd91d7
--- /dev/null
+++ b/docs/Model/CreateUpdateCategory.md
@@ -0,0 +1,13 @@
+# CreateUpdateCategory
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Unique Category ID as saved in the shop |
+**name** | **string** | **Mandatory in case of creation**. Name of the Category, as displayed in the shop | [optional]
+**url** | **string** | URL to the category | [optional]
+**updateEnabled** | **bool** | Facilitate to update the existing category in the same request (updateEnabled = true) | [optional] [default to false]
+
+[[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/CreateUpdateProducts.md b/docs/Model/CreateUpdateProducts.md
new file mode 100644
index 00000000..eb674b25
--- /dev/null
+++ b/docs/Model/CreateUpdateProducts.md
@@ -0,0 +1,17 @@
+# CreateUpdateProducts
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Product ID for which you requested the details |
+**name** | **string** | Mandatory in case of creation**. Name of the product for which you requested the details |
+**url** | **string** | URL to the product | [optional]
+**imageUrl** | **string** | Absolute URL to the cover image of the product | [optional]
+**sku** | **string** | Product identifier from the shop | [optional]
+**price** | **float** | Price of the product | [optional]
+**categories** | **string[]** | Category ID-s of the product | [optional]
+**parentId** | **string** | Parent product id of the product | [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/CreateUpdateproduct.md b/docs/Model/CreateUpdateproduct.md
new file mode 100644
index 00000000..dc5bd403
--- /dev/null
+++ b/docs/Model/CreateUpdateproduct.md
@@ -0,0 +1,18 @@
+# CreateUpdateProduct
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Product ID for which you requested the details |
+**name** | **string** | Mandatory in case of creation**. Name of the product for which you requested the details |
+**url** | **string** | URL to the product | [optional]
+**imageUrl** | **string** | Absolute URL to the cover image of the product | [optional]
+**sku** | **string** | Product identifier from the shop | [optional]
+**price** | **float** | Price of the product | [optional]
+**categories** | **string[]** | Category ID-s of the product | [optional]
+**parentId** | **string** | Parent product id of the product | [optional]
+**updateEnabled** | **bool** | Facilitate to update the existing category in the same request (updateEnabled = true) | [optional] [default to false]
+
+[[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/CreatedBatchId.md b/docs/Model/CreatedBatchId.md
new file mode 100644
index 00000000..6007b704
--- /dev/null
+++ b/docs/Model/CreatedBatchId.md
@@ -0,0 +1,10 @@
+# CreatedBatchId
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**batchId** | **float** | Batch ID of the request |
+
+[[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/Deal.md b/docs/Model/Deal.md
new file mode 100644
index 00000000..79000250
--- /dev/null
+++ b/docs/Model/Deal.md
@@ -0,0 +1,13 @@
+# Deal
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Unique deal id | [optional]
+**attributes** | **object** | Deal attributes with values | [optional]
+**linkedContactsIds** | **int[]** | Contact ids for contacts linked to this deal | [optional]
+**linkedCompaniesIds** | **string[]** | Companies ids for companies linked to this deal | [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/DealAttributes.md b/docs/Model/DealAttributes.md
new file mode 100644
index 00000000..f8ee78df
--- /dev/null
+++ b/docs/Model/DealAttributes.md
@@ -0,0 +1,9 @@
+# DealAttributes
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
+
diff --git a/docs/Model/DealAttributesInner.md b/docs/Model/DealAttributesInner.md
new file mode 100644
index 00000000..5e8e2cb2
--- /dev/null
+++ b/docs/Model/DealAttributesInner.md
@@ -0,0 +1,14 @@
+# DealAttributesInner
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**internalName** | **string** | | [optional]
+**label** | **string** | | [optional]
+**attributeTypeName** | **string** | | [optional]
+**attributeOptions** | **object[]** | | [optional]
+**isRequired** | **bool** | | [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/DealsList.md b/docs/Model/DealsList.md
new file mode 100644
index 00000000..575961b0
--- /dev/null
+++ b/docs/Model/DealsList.md
@@ -0,0 +1,10 @@
+# DealsList
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**items** | [**\SendinBlue\Client\Model\Deal[]**](Deal.md) | List of deals | [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/FileData.md b/docs/Model/FileData.md
index 56eb71fc..8e87a734 100644
--- a/docs/Model/FileData.md
+++ b/docs/Model/FileData.md
@@ -9,10 +9,10 @@ Name | Type | Description | Notes
**authorId** | **string** | Account id of user which created the file | [optional]
**author** | **object** | Account details of user which created the file | [optional]
**contactId** | **int** | Contact id of contact on which file is uploaded | [optional]
-**dealIds** | **string[]** | Deal ids linked to a file | [optional]
-**size** | **int** | Size of file uploaded | [optional]
+**dealId** | **string** | Deal id linked to a file | [optional]
+**companyId** | **string** | Company id linked to a file | [optional]
+**size** | **int** | Size of file in bytes | [optional]
**createdAt** | [**\DateTime**] | File created date/time | [optional]
-**updatedAt** | [**\DateTime**] | File updated date/time | [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/FileDownloadableLink.md b/docs/Model/FileDownloadableLink.md
new file mode 100644
index 00000000..5e30ce35
--- /dev/null
+++ b/docs/Model/FileDownloadableLink.md
@@ -0,0 +1,10 @@
+# FileDownloadableLink
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**fileUrl** | **string** | A unique link to download the requested file. |
+
+[[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/FileList.md b/docs/Model/FileList.md
new file mode 100644
index 00000000..beb2b814
--- /dev/null
+++ b/docs/Model/FileList.md
@@ -0,0 +1,9 @@
+# FileList
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
+
diff --git a/docs/Model/GetCategories.md b/docs/Model/GetCategories.md
new file mode 100644
index 00000000..3479e5b9
--- /dev/null
+++ b/docs/Model/GetCategories.md
@@ -0,0 +1,11 @@
+# GetCategories
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**categories** | **object[]** | |
+**count** | **int** | Number of categories |
+
+[[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/GetCategoryDetails.md b/docs/Model/GetCategoryDetails.md
new file mode 100644
index 00000000..8a7a9f08
--- /dev/null
+++ b/docs/Model/GetCategoryDetails.md
@@ -0,0 +1,14 @@
+# GetCategoryDetails
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Category ID for which you requested the details |
+**name** | **string** | Name of the category for which you requested the details |
+**createdAt** | **string** | Creation UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ) |
+**modifiedAt** | **string** | Last modification UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ) |
+**url** | **string** | URL to the category | [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 52253c7a..94f11717 100644
--- a/docs/Model/GetExtendedCampaignOverview.md
+++ b/docs/Model/GetExtendedCampaignOverview.md
@@ -1,4 +1,5 @@
# GetExtendedCampaignOverview
+
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
@@ -31,4 +32,4 @@ Name | Type | Description | Notes
**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]
**sentDate** | **string** | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' | [optional]
**returnBounce** | **int** | Total number of non-delivered campaigns for a particular campaign id. | [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)
\ No newline at end of file
+[[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/GetExtendedContactDetails.md b/docs/Model/GetExtendedContactDetails.md
index b063650e..8e747625 100644
--- a/docs/Model/GetExtendedContactDetails.md
+++ b/docs/Model/GetExtendedContactDetails.md
@@ -1,4 +1,5 @@
# GetExtendedContactDetails
+
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
@@ -13,4 +14,4 @@ Name | Type | Description | Notes
**attributes** | **object** | Set of attributes of the contact |
**statistics** | [**\SendinBlue\Client\Model\GetExtendedContactDetailsStatistics**](GetExtendedContactDetailsStatistics.md) | |
-[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
\ No newline at end of file
+[[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/GetExtendedContactDetailsStatistics.md b/docs/Model/GetExtendedContactDetailsStatistics.md
index 7748b29c..8963b85a 100644
--- a/docs/Model/GetExtendedContactDetailsStatistics.md
+++ b/docs/Model/GetExtendedContactDetailsStatistics.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**opened** | [**\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsOpened[]**](GetExtendedContactDetailsStatisticsOpened.md) | Listing of the openings generated by the contact | [optional]
**clicked** | [**\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsClicked[]**](GetExtendedContactDetailsStatisticsClicked.md) | Listing of the clicks generated by the contact | [optional]
**transacAttributes** | **object[]** | Listing of the transactional attributes for the contact | [optional]
-**delivered** | [**\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsDelivered[]**](GetExtendedContactDetailsStatisticsDelivered.md) | Listing of the delivered campaign for the contact | [optional]
+**delivered** | [**\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | Listing of the delivered campaign for the contact | [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/GetProductDetails.md b/docs/Model/GetProductDetails.md
new file mode 100644
index 00000000..47a75304
--- /dev/null
+++ b/docs/Model/GetProductDetails.md
@@ -0,0 +1,22 @@
+# GetProductDetails
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Product ID for which you requested the details |
+**name** | **string** | Name of the product for which you requested the details |
+**createdAt** | **string** | Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) |
+**modifiedAt** | **string** | Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) |
+**url** | **string** | URL to the product | [optional]
+**imageUrl** | **string** | Absolute URL to the cover image of the product | [optional]
+**sku** | **string** | Product identifier from the shop | [optional]
+**price** | **float** | Price of the product | [optional]
+**categories** | **string[]** | Category ID-s of the product | [optional]
+**parentId** | **string** | Parent product id of the product | [optional]
+**s3Original** | **string** | S3 url of original image | [optional]
+**s3ThumbAnalytics** | **string** | S3 thumbnail url of original image in 120x120 dimension for analytics section |
+**s3ThumbEditor** | **string** | S3 thumbnail url of original image in 600x400 dimension for editor section |
+
+[[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/GetProducts.md b/docs/Model/GetProducts.md
new file mode 100644
index 00000000..48512f04
--- /dev/null
+++ b/docs/Model/GetProducts.md
@@ -0,0 +1,11 @@
+# GetProducts
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**products** | **object[]** | |
+**count** | **int** | Number of products |
+
+[[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/GetSmsCampaign.md b/docs/Model/GetSmsCampaign.md
index 099d917c..05645625 100644
--- a/docs/Model/GetSmsCampaign.md
+++ b/docs/Model/GetSmsCampaign.md
@@ -1,4 +1,5 @@
# GetSmsCampaign
+
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
@@ -13,4 +14,4 @@ Name | Type | Description | Notes
**recipients** | **object** | |
**statistics** | **object** | |
-[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
\ No newline at end of file
+[[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/InlineResponse200.md b/docs/Model/InlineResponse200.md
new file mode 100644
index 00000000..e3cf573d
--- /dev/null
+++ b/docs/Model/InlineResponse200.md
@@ -0,0 +1,10 @@
+# InlineResponse200
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Unique company id |
+
+[[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/InlineResponse201.md b/docs/Model/InlineResponse201.md
index 486f65fc..cc831c8d 100644
--- a/docs/Model/InlineResponse201.md
+++ b/docs/Model/InlineResponse201.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **string** | Unique task id |
+**id** | **string** | Unique deal id |
[[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/InlineResponse2011.md b/docs/Model/InlineResponse2011.md
new file mode 100644
index 00000000..14bc7a00
--- /dev/null
+++ b/docs/Model/InlineResponse2011.md
@@ -0,0 +1,10 @@
+# InlineResponse2011
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Unique task id |
+
+[[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/NoteData.md b/docs/Model/NoteData.md
index 1f6d6dc9..e70cbc7f 100644
--- a/docs/Model/NoteData.md
+++ b/docs/Model/NoteData.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
**text** | **string** | Text content of a note |
**contactIds** | **int[]** | Contact Ids linked to a note | [optional]
**dealIds** | **string[]** | Deal Ids linked to a note | [optional]
+**companyIds** | **string[]** | Company Ids linked to a note | [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/Order.md b/docs/Model/Order.md
new file mode 100644
index 00000000..4c455b0e
--- /dev/null
+++ b/docs/Model/Order.md
@@ -0,0 +1,18 @@
+# Order
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Unique ID of the order. |
+**createdAt** | **string** | Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created. |
+**updatedAt** | **string** | Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated. |
+**status** | **string** | State of the order. |
+**amount** | **float** | Total amount of the order, including all shipping expenses, tax and the price of items. |
+**products** | [**\SendinBlue\Client\Model\OrderProducts[]**](OrderProducts.md) | |
+**email** | **string** | Email of the contact, Mandatory if \"phone\" field is not passed in \"billing\" parameter. | [optional]
+**billing** | [**\SendinBlue\Client\Model\OrderBilling**](OrderBilling.md) | | [optional]
+**coupons** | **string[]** | Coupons applied to the order. Stored case insensitive. | [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/OrderBatch.md b/docs/Model/OrderBatch.md
new file mode 100644
index 00000000..81ce7ff1
--- /dev/null
+++ b/docs/Model/OrderBatch.md
@@ -0,0 +1,11 @@
+# OrderBatch
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**orders** | [**\SendinBlue\Client\Model\Order[]**](Order.md) | array of order objects |
+**notifyUrl** | **string** | Notify Url provided by client to get the status of batch request | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
+
diff --git a/docs/Model/OrderBilling.md b/docs/Model/OrderBilling.md
new file mode 100644
index 00000000..2c179c63
--- /dev/null
+++ b/docs/Model/OrderBilling.md
@@ -0,0 +1,16 @@
+# OrderBilling
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**address** | **string** | Full billing address. | [optional]
+**city** | **string** | Exact city of the address. | [optional]
+**countryCode** | **string** | Billing country 2-letter ISO code. | [optional]
+**phone** | **string** | Phone number to contact for further details about the order, Mandatory if \"email\" field is not passed. | [optional]
+**postCode** | **string** | Postcode for delivery and billing. | [optional]
+**paymentMethod** | **string** | How the visitor will pay for the item(s), e.g. paypal, check, etc. | [optional]
+**region** | **string** | Exact region (state/province) for delivery and billing. | [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/OrderProducts.md b/docs/Model/OrderProducts.md
new file mode 100644
index 00000000..9e1b2f00
--- /dev/null
+++ b/docs/Model/OrderProducts.md
@@ -0,0 +1,13 @@
+# OrderProducts
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**productId** | **string** | ID of the product. |
+**quantity** | **float** | How many pieces of the product the visitor has added to the cart. |
+**variantId** | **string** | Product ID of the red color shirts. | [optional]
+**price** | **float** | The price of a unit of product |
+
+[[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/Pipeline.md b/docs/Model/Pipeline.md
new file mode 100644
index 00000000..adc13679
--- /dev/null
+++ b/docs/Model/Pipeline.md
@@ -0,0 +1,10 @@
+# Pipeline
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stages** | [**\SendinBlue\Client\Model\PipelineStage[]**](PipelineStage.md) | List of stages | [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/PipelineStage.md b/docs/Model/PipelineStage.md
new file mode 100644
index 00000000..84645f84
--- /dev/null
+++ b/docs/Model/PipelineStage.md
@@ -0,0 +1,11 @@
+# PipelineStage
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **string** | Stage id | [optional]
+**name** | **string** | Stage name | [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/SendTransacSms.md b/docs/Model/SendTransacSms.md
index 0ad8566a..f1bddc29 100644
--- a/docs/Model/SendTransacSms.md
+++ b/docs/Model/SendTransacSms.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**tag** | **string** | Tag of the message | [optional]
**webUrl** | **string** | Webhook to call for each event triggered by the message (delivered etc.) | [optional]
**unicodeEnabled** | **bool** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional] [default to false]
+**organisationPrefix** | **string** | A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** | [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/UpdateContact.md b/docs/Model/UpdateContact.md
index 9ea9fa20..38801a3f 100644
--- a/docs/Model/UpdateContact.md
+++ b/docs/Model/UpdateContact.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**attributes** | **object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"} | [optional]
+**attributes** | **object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attributes. For example, `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"} | [optional]
**emailBlacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true) | [optional]
**smsBlacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true) | [optional]
**listIds** | **int[]** | Ids of the lists to add the contact to | [optional]
diff --git a/docs/Model/UpdateEmailCampaign.md b/docs/Model/UpdateEmailCampaign.md
index 9762c6e9..64ccf104 100644
--- a/docs/Model/UpdateEmailCampaign.md
+++ b/docs/Model/UpdateEmailCampaign.md
@@ -31,6 +31,8 @@ Name | Type | Description | Notes
**ipWarmupEnable** | **bool** | Available for dedicated ip clients. Set this to true if you wish to warm up your ip. | [optional] [default to false]
**initialQuota** | **int** | Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. | [optional]
**increaseRate** | **int** | Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. | [optional]
+**unsubscriptionPageId** | **string** | Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. | [optional]
+**updateFormId** | **string** | Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. | [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/UpdateEmailCampaignRecipients.md b/docs/Model/UpdateEmailCampaignRecipients.md
index a5e872a9..6ed00b19 100644
--- a/docs/Model/UpdateEmailCampaignRecipients.md
+++ b/docs/Model/UpdateEmailCampaignRecipients.md
@@ -4,7 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**exclusionListIds** | **int[]** | List ids which have to be excluded from a campaign | [optional]
-**listIds** | **int[]** | Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty | [optional]
+**listIds** | **int[]** | Lists Ids to send the campaign to. Campaign should only be updated with listIds if listIds were used to create it. REQUIRED if already not present in campaign and scheduledAt is not empty | [optional]
+**segmentIds** | **int[]** | Mandatory if listIds are not used. Campaign should only be updated with segmentIds if segmentIds were used to create it. Segment ids to send the campaign to. | [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/UpdateSmsCampaign.md b/docs/Model/UpdateSmsCampaign.md
index 8aad053f..77657a79 100644
--- a/docs/Model/UpdateSmsCampaign.md
+++ b/docs/Model/UpdateSmsCampaign.md
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
**recipients** | [**\SendinBlue\Client\Model\CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional]
**scheduledAt** | **string** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
**unicodeEnabled** | **bool** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional] [default to false]
+**organisationPrefix** | **string** | A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** | [optional]
+**unsubscribeInstruction** | **string** | Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** | [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/UploadImageModel.md b/docs/Model/UploadImageModel.md
new file mode 100644
index 00000000..49733001
--- /dev/null
+++ b/docs/Model/UploadImageModel.md
@@ -0,0 +1,10 @@
+# UploadImageModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**url** | **string** | URL of the image uploaded |
+
+[[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/AccountApi.php b/lib/Api/AccountApi.php
index f5bdc6a2..93ad71ea 100644
--- a/lib/Api/AccountApi.php
+++ b/lib/Api/AccountApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
diff --git a/lib/Api/CompaniesApi.php b/lib/Api/CompaniesApi.php
new file mode 100644
index 00000000..8ff5affd
--- /dev/null
+++ b/lib/Api/CompaniesApi.php
@@ -0,0 +1,2099 @@
+client = $client ?: new Client();
+ $this->config = $config ?: new Configuration();
+ $this->headerSelector = $selector ?: new HeaderSelector();
+ }
+
+ /**
+ * @return Configuration
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
+
+ /**
+ * Operation companiesAttributesGet
+ *
+ * Get company attributes
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\CompanyAttributes
+ */
+ public function companiesAttributesGet()
+ {
+ list($response) = $this->companiesAttributesGetWithHttpInfo();
+ return $response;
+ }
+
+ /**
+ * Operation companiesAttributesGetWithHttpInfo
+ *
+ * Get company attributes
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\CompanyAttributes, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function companiesAttributesGetWithHttpInfo()
+ {
+ $returnType = '\SendinBlue\Client\Model\CompanyAttributes';
+ $request = $this->companiesAttributesGetRequest();
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\CompanyAttributes',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation companiesAttributesGetAsync
+ *
+ * Get company attributes
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesAttributesGetAsync()
+ {
+ return $this->companiesAttributesGetAsyncWithHttpInfo()
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation companiesAttributesGetAsyncWithHttpInfo
+ *
+ * Get company attributes
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesAttributesGetAsyncWithHttpInfo()
+ {
+ $returnType = '\SendinBlue\Client\Model\CompanyAttributes';
+ $request = $this->companiesAttributesGetRequest();
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'companiesAttributesGet'
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function companiesAttributesGetRequest()
+ {
+
+ $resourcePath = '/companies/attributes';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation companiesGet
+ *
+ * Get all companies
+ *
+ * @param string $filters Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} (optional)
+ * @param int $linkedContactsIds Filter by linked contacts ids (optional)
+ * @param string $linkedDealsIds Filter by linked deals ids (optional)
+ * @param int $page Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\CompaniesList
+ */
+ public function companiesGet($filters = null, $linkedContactsIds = null, $linkedDealsIds = null, $page = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ list($response) = $this->companiesGetWithHttpInfo($filters, $linkedContactsIds, $linkedDealsIds, $page, $limit, $sort, $sortBy);
+ return $response;
+ }
+
+ /**
+ * Operation companiesGetWithHttpInfo
+ *
+ * Get all companies
+ *
+ * @param string $filters Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} (optional)
+ * @param int $linkedContactsIds Filter by linked contacts ids (optional)
+ * @param string $linkedDealsIds Filter by linked deals ids (optional)
+ * @param int $page Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\CompaniesList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function companiesGetWithHttpInfo($filters = null, $linkedContactsIds = null, $linkedDealsIds = null, $page = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\CompaniesList';
+ $request = $this->companiesGetRequest($filters, $linkedContactsIds, $linkedDealsIds, $page, $limit, $sort, $sortBy);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\CompaniesList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation companiesGetAsync
+ *
+ * Get all companies
+ *
+ * @param string $filters Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} (optional)
+ * @param int $linkedContactsIds Filter by linked contacts ids (optional)
+ * @param string $linkedDealsIds Filter by linked deals ids (optional)
+ * @param int $page Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesGetAsync($filters = null, $linkedContactsIds = null, $linkedDealsIds = null, $page = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ return $this->companiesGetAsyncWithHttpInfo($filters, $linkedContactsIds, $linkedDealsIds, $page, $limit, $sort, $sortBy)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation companiesGetAsyncWithHttpInfo
+ *
+ * Get all companies
+ *
+ * @param string $filters Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} (optional)
+ * @param int $linkedContactsIds Filter by linked contacts ids (optional)
+ * @param string $linkedDealsIds Filter by linked deals ids (optional)
+ * @param int $page Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesGetAsyncWithHttpInfo($filters = null, $linkedContactsIds = null, $linkedDealsIds = null, $page = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\CompaniesList';
+ $request = $this->companiesGetRequest($filters, $linkedContactsIds, $linkedDealsIds, $page, $limit, $sort, $sortBy);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'companiesGet'
+ *
+ * @param string $filters Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} (optional)
+ * @param int $linkedContactsIds Filter by linked contacts ids (optional)
+ * @param string $linkedDealsIds Filter by linked deals ids (optional)
+ * @param int $page Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function companiesGetRequest($filters = null, $linkedContactsIds = null, $linkedDealsIds = null, $page = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+
+ $resourcePath = '/companies';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($filters !== null) {
+ $queryParams['filters'] = ObjectSerializer::toQueryValue($filters);
+ }
+ // query params
+ if ($linkedContactsIds !== null) {
+ $queryParams['linkedContactsIds'] = ObjectSerializer::toQueryValue($linkedContactsIds);
+ }
+ // query params
+ if ($linkedDealsIds !== null) {
+ $queryParams['linkedDealsIds'] = ObjectSerializer::toQueryValue($linkedDealsIds);
+ }
+ // query params
+ if ($page !== null) {
+ $queryParams['page'] = ObjectSerializer::toQueryValue($page);
+ }
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($sort !== null) {
+ $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);
+ }
+ // query params
+ if ($sortBy !== null) {
+ $queryParams['sortBy'] = ObjectSerializer::toQueryValue($sortBy);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation companiesIdDelete
+ *
+ * Delete a company
+ *
+ * @param string $id id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function companiesIdDelete($id)
+ {
+ $this->companiesIdDeleteWithHttpInfo($id);
+ }
+
+ /**
+ * Operation companiesIdDeleteWithHttpInfo
+ *
+ * Delete a company
+ *
+ * @param string $id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function companiesIdDeleteWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->companiesIdDeleteRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation companiesIdDeleteAsync
+ *
+ * Delete a company
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesIdDeleteAsync($id)
+ {
+ return $this->companiesIdDeleteAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation companiesIdDeleteAsyncWithHttpInfo
+ *
+ * Delete a company
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesIdDeleteAsyncWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->companiesIdDeleteRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'companiesIdDelete'
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function companiesIdDeleteRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling companiesIdDelete'
+ );
+ }
+
+ $resourcePath = '/companies/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation companiesIdGet
+ *
+ * Get a company
+ *
+ * @param string $id id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\Company
+ */
+ public function companiesIdGet($id)
+ {
+ list($response) = $this->companiesIdGetWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation companiesIdGetWithHttpInfo
+ *
+ * Get a company
+ *
+ * @param string $id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\Company, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function companiesIdGetWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\Company';
+ $request = $this->companiesIdGetRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\Company',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation companiesIdGetAsync
+ *
+ * Get a company
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesIdGetAsync($id)
+ {
+ return $this->companiesIdGetAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation companiesIdGetAsyncWithHttpInfo
+ *
+ * Get a company
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesIdGetAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\Company';
+ $request = $this->companiesIdGetRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'companiesIdGet'
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function companiesIdGetRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling companiesIdGet'
+ );
+ }
+
+ $resourcePath = '/companies/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation companiesIdPatch
+ *
+ * Update a company
+ *
+ * @param string $id id (required)
+ * @param \SendinBlue\Client\Model\Body1 $body Updated company details. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\Company
+ */
+ public function companiesIdPatch($id, $body)
+ {
+ list($response) = $this->companiesIdPatchWithHttpInfo($id, $body);
+ return $response;
+ }
+
+ /**
+ * Operation companiesIdPatchWithHttpInfo
+ *
+ * Update a company
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body1 $body Updated company details. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\Company, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function companiesIdPatchWithHttpInfo($id, $body)
+ {
+ $returnType = '\SendinBlue\Client\Model\Company';
+ $request = $this->companiesIdPatchRequest($id, $body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\Company',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation companiesIdPatchAsync
+ *
+ * Update a company
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body1 $body Updated company details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesIdPatchAsync($id, $body)
+ {
+ return $this->companiesIdPatchAsyncWithHttpInfo($id, $body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation companiesIdPatchAsyncWithHttpInfo
+ *
+ * Update a company
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body1 $body Updated company details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesIdPatchAsyncWithHttpInfo($id, $body)
+ {
+ $returnType = '\SendinBlue\Client\Model\Company';
+ $request = $this->companiesIdPatchRequest($id, $body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'companiesIdPatch'
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body1 $body Updated company details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function companiesIdPatchRequest($id, $body)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling companiesIdPatch'
+ );
+ }
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling companiesIdPatch'
+ );
+ }
+
+ $resourcePath = '/companies/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation companiesLinkUnlinkIdPatch
+ *
+ * Link and Unlink company with contacts and deals
+ *
+ * @param string $id id (required)
+ * @param \SendinBlue\Client\Model\Body2 $body Linked / Unlinked contacts and deals ids. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function companiesLinkUnlinkIdPatch($id, $body)
+ {
+ $this->companiesLinkUnlinkIdPatchWithHttpInfo($id, $body);
+ }
+
+ /**
+ * Operation companiesLinkUnlinkIdPatchWithHttpInfo
+ *
+ * Link and Unlink company with contacts and deals
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body2 $body Linked / Unlinked contacts and deals ids. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function companiesLinkUnlinkIdPatchWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->companiesLinkUnlinkIdPatchRequest($id, $body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation companiesLinkUnlinkIdPatchAsync
+ *
+ * Link and Unlink company with contacts and deals
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body2 $body Linked / Unlinked contacts and deals ids. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesLinkUnlinkIdPatchAsync($id, $body)
+ {
+ return $this->companiesLinkUnlinkIdPatchAsyncWithHttpInfo($id, $body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation companiesLinkUnlinkIdPatchAsyncWithHttpInfo
+ *
+ * Link and Unlink company with contacts and deals
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body2 $body Linked / Unlinked contacts and deals ids. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesLinkUnlinkIdPatchAsyncWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->companiesLinkUnlinkIdPatchRequest($id, $body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'companiesLinkUnlinkIdPatch'
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body2 $body Linked / Unlinked contacts and deals ids. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function companiesLinkUnlinkIdPatchRequest($id, $body)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling companiesLinkUnlinkIdPatch'
+ );
+ }
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling companiesLinkUnlinkIdPatch'
+ );
+ }
+
+ $resourcePath = '/companies/link-unlink/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation companiesPost
+ *
+ * Create a company
+ *
+ * @param \SendinBlue\Client\Model\Body $body Company create data. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\InlineResponse200
+ */
+ public function companiesPost($body)
+ {
+ list($response) = $this->companiesPostWithHttpInfo($body);
+ return $response;
+ }
+
+ /**
+ * Operation companiesPostWithHttpInfo
+ *
+ * Create a company
+ *
+ * @param \SendinBlue\Client\Model\Body $body Company create data. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\InlineResponse200, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function companiesPostWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\InlineResponse200';
+ $request = $this->companiesPostRequest($body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\InlineResponse200',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation companiesPostAsync
+ *
+ * Create a company
+ *
+ * @param \SendinBlue\Client\Model\Body $body Company create data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesPostAsync($body)
+ {
+ return $this->companiesPostAsyncWithHttpInfo($body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation companiesPostAsyncWithHttpInfo
+ *
+ * Create a company
+ *
+ * @param \SendinBlue\Client\Model\Body $body Company create data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function companiesPostAsyncWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\InlineResponse200';
+ $request = $this->companiesPostRequest($body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'companiesPost'
+ *
+ * @param \SendinBlue\Client\Model\Body $body Company create data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function companiesPostRequest($body)
+ {
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling companiesPost'
+ );
+ }
+
+ $resourcePath = '/companies';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Create http client option
+ *
+ * @throws \RuntimeException on file opening failure
+ * @return array of http client options
+ */
+ protected function createHttpClientOption()
+ {
+ $options = [];
+ if ($this->config->getDebug()) {
+ $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
+ if (!$options[RequestOptions::DEBUG]) {
+ throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
+ }
+ }
+
+ return $options;
+ }
+}
diff --git a/lib/Api/ContactsApi.php b/lib/Api/ContactsApi.php
index 8a88b8ff..463da59f 100644
--- a/lib/Api/ContactsApi.php
+++ b/lib/Api/ContactsApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -1844,7 +1844,7 @@ public function deleteAttributeWithHttpInfo($attributeCategory, $attributeName)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1852,7 +1852,7 @@ public function deleteAttributeWithHttpInfo($attributeCategory, $attributeName)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2119,7 +2119,7 @@ public function deleteContactWithHttpInfo($identifier)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2127,7 +2127,7 @@ public function deleteContactWithHttpInfo($identifier)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2385,7 +2385,7 @@ public function deleteFolderWithHttpInfo($folderId)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2393,7 +2393,7 @@ public function deleteFolderWithHttpInfo($folderId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2643,7 +2643,7 @@ public function deleteListWithHttpInfo($listId)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2651,7 +2651,7 @@ public function deleteListWithHttpInfo($listId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3188,7 +3188,7 @@ public function getContactInfoWithHttpInfo($identifier, $startDate = null, $endD
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3196,7 +3196,7 @@ public function getContactInfoWithHttpInfo($identifier, $startDate = null, $endD
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3501,7 +3501,7 @@ public function getContactStatsWithHttpInfo($identifier, $startDate = null, $end
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3509,7 +3509,7 @@ public function getContactStatsWithHttpInfo($identifier, $startDate = null, $end
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3923,6 +3923,9 @@ protected function getContactsRequest($limit = '50', $offset = '0', $modifiedSin
if ($limit !== null && $limit > 1000) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getContacts, must be smaller than or equal to 1000.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getContacts, must be bigger than or equal to 0.');
+ }
$resourcePath = '/contacts';
@@ -4250,6 +4253,9 @@ protected function getContactsFromListRequest($listId, $modifiedSince = null, $l
if ($limit !== null && $limit > 500) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getContactsFromList, must be smaller than or equal to 500.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getContactsFromList, must be bigger than or equal to 0.');
+ }
$resourcePath = '/contacts/lists/{listId}/contacts';
@@ -4453,7 +4459,7 @@ public function getFolderWithHttpInfo($folderId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4461,7 +4467,7 @@ public function getFolderWithHttpInfo($folderId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4754,7 +4760,7 @@ public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = '
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4762,7 +4768,7 @@ public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = '
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4875,6 +4881,9 @@ protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0'
if ($limit !== null && $limit > 50) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getFolderLists, must be smaller than or equal to 50.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getFolderLists, must be bigger than or equal to 0.');
+ }
$resourcePath = '/contacts/folders/{folderId}/lists';
@@ -5188,6 +5197,9 @@ protected function getFoldersRequest($limit, $offset, $sort = 'desc')
if ($limit > 50) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getFolders, must be smaller than or equal to 50.');
}
+ if ($limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getFolders, must be bigger than or equal to 0.');
+ }
// verify the required parameter 'offset' is set
if ($offset === null || (is_array($offset) && count($offset) === 0)) {
@@ -5385,7 +5397,7 @@ public function getListWithHttpInfo($listId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -5393,7 +5405,7 @@ public function getListWithHttpInfo($listId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -5788,6 +5800,9 @@ protected function getListsRequest($limit = '10', $offset = '0', $sort = 'desc')
if ($limit !== null && $limit > 50) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getLists, must be smaller than or equal to 50.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getLists, must be bigger than or equal to 0.');
+ }
$resourcePath = '/contacts/lists';
diff --git a/lib/Api/ConversationsApi.php b/lib/Api/ConversationsApi.php
new file mode 100644
index 00000000..e751997d
--- /dev/null
+++ b/lib/Api/ConversationsApi.php
@@ -0,0 +1,2635 @@
+client = $client ?: new Client();
+ $this->config = $config ?: new Configuration();
+ $this->headerSelector = $selector ?: new HeaderSelector();
+ }
+
+ /**
+ * @return Configuration
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
+
+ /**
+ * Operation conversationsAgentOnlinePingPost
+ *
+ * Sets agent’s status to online for 2-3 minutes
+ *
+ * @param \SendinBlue\Client\Model\Body12 $body Agent fields. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function conversationsAgentOnlinePingPost($body)
+ {
+ $this->conversationsAgentOnlinePingPostWithHttpInfo($body);
+ }
+
+ /**
+ * Operation conversationsAgentOnlinePingPostWithHttpInfo
+ *
+ * Sets agent’s status to online for 2-3 minutes
+ *
+ * @param \SendinBlue\Client\Model\Body12 $body Agent fields. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsAgentOnlinePingPostWithHttpInfo($body)
+ {
+ $returnType = '';
+ $request = $this->conversationsAgentOnlinePingPostRequest($body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsAgentOnlinePingPostAsync
+ *
+ * Sets agent’s status to online for 2-3 minutes
+ *
+ * @param \SendinBlue\Client\Model\Body12 $body Agent fields. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsAgentOnlinePingPostAsync($body)
+ {
+ return $this->conversationsAgentOnlinePingPostAsyncWithHttpInfo($body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsAgentOnlinePingPostAsyncWithHttpInfo
+ *
+ * Sets agent’s status to online for 2-3 minutes
+ *
+ * @param \SendinBlue\Client\Model\Body12 $body Agent fields. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsAgentOnlinePingPostAsyncWithHttpInfo($body)
+ {
+ $returnType = '';
+ $request = $this->conversationsAgentOnlinePingPostRequest($body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsAgentOnlinePingPost'
+ *
+ * @param \SendinBlue\Client\Model\Body12 $body Agent fields. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsAgentOnlinePingPostRequest($body)
+ {
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling conversationsAgentOnlinePingPost'
+ );
+ }
+
+ $resourcePath = '/conversations/agentOnlinePing';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation conversationsMessagesIdDelete
+ *
+ * Delete a message sent by an agent
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function conversationsMessagesIdDelete($id)
+ {
+ $this->conversationsMessagesIdDeleteWithHttpInfo($id);
+ }
+
+ /**
+ * Operation conversationsMessagesIdDeleteWithHttpInfo
+ *
+ * Delete a message sent by an agent
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsMessagesIdDeleteWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->conversationsMessagesIdDeleteRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsMessagesIdDeleteAsync
+ *
+ * Delete a message sent by an agent
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsMessagesIdDeleteAsync($id)
+ {
+ return $this->conversationsMessagesIdDeleteAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsMessagesIdDeleteAsyncWithHttpInfo
+ *
+ * Delete a message sent by an agent
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsMessagesIdDeleteAsyncWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->conversationsMessagesIdDeleteRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsMessagesIdDelete'
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsMessagesIdDeleteRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling conversationsMessagesIdDelete'
+ );
+ }
+
+ $resourcePath = '/conversations/messages/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation conversationsMessagesIdGet
+ *
+ * Get a message
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\ConversationsMessage
+ */
+ public function conversationsMessagesIdGet($id)
+ {
+ list($response) = $this->conversationsMessagesIdGetWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation conversationsMessagesIdGetWithHttpInfo
+ *
+ * Get a message
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\ConversationsMessage, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsMessagesIdGetWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsMessagesIdGetRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ConversationsMessage',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsMessagesIdGetAsync
+ *
+ * Get a message
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsMessagesIdGetAsync($id)
+ {
+ return $this->conversationsMessagesIdGetAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsMessagesIdGetAsyncWithHttpInfo
+ *
+ * Get a message
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsMessagesIdGetAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsMessagesIdGetRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsMessagesIdGet'
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsMessagesIdGetRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling conversationsMessagesIdGet'
+ );
+ }
+
+ $resourcePath = '/conversations/messages/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation conversationsMessagesIdPut
+ *
+ * Update a message sent by an agent
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body9 $body body (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\ConversationsMessage
+ */
+ public function conversationsMessagesIdPut($id, $body = null)
+ {
+ list($response) = $this->conversationsMessagesIdPutWithHttpInfo($id, $body);
+ return $response;
+ }
+
+ /**
+ * Operation conversationsMessagesIdPutWithHttpInfo
+ *
+ * Update a message sent by an agent
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body9 $body (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\ConversationsMessage, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsMessagesIdPutWithHttpInfo($id, $body = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsMessagesIdPutRequest($id, $body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ConversationsMessage',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsMessagesIdPutAsync
+ *
+ * Update a message sent by an agent
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body9 $body (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsMessagesIdPutAsync($id, $body = null)
+ {
+ return $this->conversationsMessagesIdPutAsyncWithHttpInfo($id, $body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsMessagesIdPutAsyncWithHttpInfo
+ *
+ * Update a message sent by an agent
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body9 $body (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsMessagesIdPutAsyncWithHttpInfo($id, $body = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsMessagesIdPutRequest($id, $body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsMessagesIdPut'
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body9 $body (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsMessagesIdPutRequest($id, $body = null)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling conversationsMessagesIdPut'
+ );
+ }
+
+ $resourcePath = '/conversations/messages/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PUT',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation conversationsMessagesPost
+ *
+ * Send a message as an agent
+ *
+ * @param \SendinBlue\Client\Model\Body8 $body Message fields. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\ConversationsMessage
+ */
+ public function conversationsMessagesPost($body)
+ {
+ list($response) = $this->conversationsMessagesPostWithHttpInfo($body);
+ return $response;
+ }
+
+ /**
+ * Operation conversationsMessagesPostWithHttpInfo
+ *
+ * Send a message as an agent
+ *
+ * @param \SendinBlue\Client\Model\Body8 $body Message fields. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\ConversationsMessage, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsMessagesPostWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsMessagesPostRequest($body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ConversationsMessage',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsMessagesPostAsync
+ *
+ * Send a message as an agent
+ *
+ * @param \SendinBlue\Client\Model\Body8 $body Message fields. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsMessagesPostAsync($body)
+ {
+ return $this->conversationsMessagesPostAsyncWithHttpInfo($body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsMessagesPostAsyncWithHttpInfo
+ *
+ * Send a message as an agent
+ *
+ * @param \SendinBlue\Client\Model\Body8 $body Message fields. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsMessagesPostAsyncWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsMessagesPostRequest($body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsMessagesPost'
+ *
+ * @param \SendinBlue\Client\Model\Body8 $body Message fields. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsMessagesPostRequest($body)
+ {
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling conversationsMessagesPost'
+ );
+ }
+
+ $resourcePath = '/conversations/messages';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdDelete
+ *
+ * Delete an automated message
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function conversationsPushedMessagesIdDelete($id)
+ {
+ $this->conversationsPushedMessagesIdDeleteWithHttpInfo($id);
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdDeleteWithHttpInfo
+ *
+ * Delete an automated message
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsPushedMessagesIdDeleteWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->conversationsPushedMessagesIdDeleteRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdDeleteAsync
+ *
+ * Delete an automated message
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsPushedMessagesIdDeleteAsync($id)
+ {
+ return $this->conversationsPushedMessagesIdDeleteAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdDeleteAsyncWithHttpInfo
+ *
+ * Delete an automated message
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsPushedMessagesIdDeleteAsyncWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->conversationsPushedMessagesIdDeleteRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsPushedMessagesIdDelete'
+ *
+ * @param string $id ID of the message (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsPushedMessagesIdDeleteRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling conversationsPushedMessagesIdDelete'
+ );
+ }
+
+ $resourcePath = '/conversations/pushedMessages/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdGet
+ *
+ * Get an automated message
+ *
+ * @param string $id ID of the message sent previously (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\ConversationsMessage
+ */
+ public function conversationsPushedMessagesIdGet($id)
+ {
+ list($response) = $this->conversationsPushedMessagesIdGetWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdGetWithHttpInfo
+ *
+ * Get an automated message
+ *
+ * @param string $id ID of the message sent previously (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\ConversationsMessage, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsPushedMessagesIdGetWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsPushedMessagesIdGetRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ConversationsMessage',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdGetAsync
+ *
+ * Get an automated message
+ *
+ * @param string $id ID of the message sent previously (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsPushedMessagesIdGetAsync($id)
+ {
+ return $this->conversationsPushedMessagesIdGetAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdGetAsyncWithHttpInfo
+ *
+ * Get an automated message
+ *
+ * @param string $id ID of the message sent previously (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsPushedMessagesIdGetAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsPushedMessagesIdGetRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsPushedMessagesIdGet'
+ *
+ * @param string $id ID of the message sent previously (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsPushedMessagesIdGetRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling conversationsPushedMessagesIdGet'
+ );
+ }
+
+ $resourcePath = '/conversations/pushedMessages/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdPut
+ *
+ * Update an automated message
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body11 $body body (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\ConversationsMessage
+ */
+ public function conversationsPushedMessagesIdPut($id, $body)
+ {
+ list($response) = $this->conversationsPushedMessagesIdPutWithHttpInfo($id, $body);
+ return $response;
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdPutWithHttpInfo
+ *
+ * Update an automated message
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body11 $body (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\ConversationsMessage, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsPushedMessagesIdPutWithHttpInfo($id, $body)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsPushedMessagesIdPutRequest($id, $body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ConversationsMessage',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdPutAsync
+ *
+ * Update an automated message
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body11 $body (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsPushedMessagesIdPutAsync($id, $body)
+ {
+ return $this->conversationsPushedMessagesIdPutAsyncWithHttpInfo($id, $body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsPushedMessagesIdPutAsyncWithHttpInfo
+ *
+ * Update an automated message
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body11 $body (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsPushedMessagesIdPutAsyncWithHttpInfo($id, $body)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsPushedMessagesIdPutRequest($id, $body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsPushedMessagesIdPut'
+ *
+ * @param string $id ID of the message (required)
+ * @param \SendinBlue\Client\Model\Body11 $body (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsPushedMessagesIdPutRequest($id, $body)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling conversationsPushedMessagesIdPut'
+ );
+ }
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling conversationsPushedMessagesIdPut'
+ );
+ }
+
+ $resourcePath = '/conversations/pushedMessages/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PUT',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation conversationsPushedMessagesPost
+ *
+ * Send an automated message to a visitor
+ *
+ * @param \SendinBlue\Client\Model\Body10 $body body (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\ConversationsMessage
+ */
+ public function conversationsPushedMessagesPost($body)
+ {
+ list($response) = $this->conversationsPushedMessagesPostWithHttpInfo($body);
+ return $response;
+ }
+
+ /**
+ * Operation conversationsPushedMessagesPostWithHttpInfo
+ *
+ * Send an automated message to a visitor
+ *
+ * @param \SendinBlue\Client\Model\Body10 $body (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\ConversationsMessage, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function conversationsPushedMessagesPostWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsPushedMessagesPostRequest($body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ConversationsMessage',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation conversationsPushedMessagesPostAsync
+ *
+ * Send an automated message to a visitor
+ *
+ * @param \SendinBlue\Client\Model\Body10 $body (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsPushedMessagesPostAsync($body)
+ {
+ return $this->conversationsPushedMessagesPostAsyncWithHttpInfo($body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation conversationsPushedMessagesPostAsyncWithHttpInfo
+ *
+ * Send an automated message to a visitor
+ *
+ * @param \SendinBlue\Client\Model\Body10 $body (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function conversationsPushedMessagesPostAsyncWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\ConversationsMessage';
+ $request = $this->conversationsPushedMessagesPostRequest($body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'conversationsPushedMessagesPost'
+ *
+ * @param \SendinBlue\Client\Model\Body10 $body (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function conversationsPushedMessagesPostRequest($body)
+ {
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling conversationsPushedMessagesPost'
+ );
+ }
+
+ $resourcePath = '/conversations/pushedMessages';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Create http client option
+ *
+ * @throws \RuntimeException on file opening failure
+ * @return array of http client options
+ */
+ protected function createHttpClientOption()
+ {
+ $options = [];
+ if ($this->config->getDebug()) {
+ $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
+ if (!$options[RequestOptions::DEBUG]) {
+ throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
+ }
+ }
+
+ return $options;
+ }
+}
diff --git a/lib/Api/DealsApi.php b/lib/Api/DealsApi.php
new file mode 100644
index 00000000..210f9aae
--- /dev/null
+++ b/lib/Api/DealsApi.php
@@ -0,0 +1,2322 @@
+client = $client ?: new Client();
+ $this->config = $config ?: new Configuration();
+ $this->headerSelector = $selector ?: new HeaderSelector();
+ }
+
+ /**
+ * @return Configuration
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
+
+ /**
+ * Operation crmAttributesDealsGet
+ *
+ * Get deal attributes
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\DealAttributes
+ */
+ public function crmAttributesDealsGet()
+ {
+ list($response) = $this->crmAttributesDealsGetWithHttpInfo();
+ return $response;
+ }
+
+ /**
+ * Operation crmAttributesDealsGetWithHttpInfo
+ *
+ * Get deal attributes
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\DealAttributes, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmAttributesDealsGetWithHttpInfo()
+ {
+ $returnType = '\SendinBlue\Client\Model\DealAttributes';
+ $request = $this->crmAttributesDealsGetRequest();
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\DealAttributes',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmAttributesDealsGetAsync
+ *
+ * Get deal attributes
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmAttributesDealsGetAsync()
+ {
+ return $this->crmAttributesDealsGetAsyncWithHttpInfo()
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmAttributesDealsGetAsyncWithHttpInfo
+ *
+ * Get deal attributes
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmAttributesDealsGetAsyncWithHttpInfo()
+ {
+ $returnType = '\SendinBlue\Client\Model\DealAttributes';
+ $request = $this->crmAttributesDealsGetRequest();
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmAttributesDealsGet'
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmAttributesDealsGetRequest()
+ {
+
+ $resourcePath = '/crm/attributes/deals';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmDealsGet
+ *
+ * Get all deals
+ *
+ * @param string $filtersAttributes Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" (optional)
+ * @param string $filtersLinkedCompaniesIds Filter by linked companies ids (optional)
+ * @param string $filtersLinkedContactsIds Filter by linked companies ids (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\DealsList
+ */
+ public function crmDealsGet($filtersAttributes = null, $filtersLinkedCompaniesIds = null, $filtersLinkedContactsIds = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ list($response) = $this->crmDealsGetWithHttpInfo($filtersAttributes, $filtersLinkedCompaniesIds, $filtersLinkedContactsIds, $offset, $limit, $sort, $sortBy);
+ return $response;
+ }
+
+ /**
+ * Operation crmDealsGetWithHttpInfo
+ *
+ * Get all deals
+ *
+ * @param string $filtersAttributes Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" (optional)
+ * @param string $filtersLinkedCompaniesIds Filter by linked companies ids (optional)
+ * @param string $filtersLinkedContactsIds Filter by linked companies ids (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\DealsList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmDealsGetWithHttpInfo($filtersAttributes = null, $filtersLinkedCompaniesIds = null, $filtersLinkedContactsIds = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\DealsList';
+ $request = $this->crmDealsGetRequest($filtersAttributes, $filtersLinkedCompaniesIds, $filtersLinkedContactsIds, $offset, $limit, $sort, $sortBy);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\DealsList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmDealsGetAsync
+ *
+ * Get all deals
+ *
+ * @param string $filtersAttributes Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" (optional)
+ * @param string $filtersLinkedCompaniesIds Filter by linked companies ids (optional)
+ * @param string $filtersLinkedContactsIds Filter by linked companies ids (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsGetAsync($filtersAttributes = null, $filtersLinkedCompaniesIds = null, $filtersLinkedContactsIds = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ return $this->crmDealsGetAsyncWithHttpInfo($filtersAttributes, $filtersLinkedCompaniesIds, $filtersLinkedContactsIds, $offset, $limit, $sort, $sortBy)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmDealsGetAsyncWithHttpInfo
+ *
+ * Get all deals
+ *
+ * @param string $filtersAttributes Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" (optional)
+ * @param string $filtersLinkedCompaniesIds Filter by linked companies ids (optional)
+ * @param string $filtersLinkedContactsIds Filter by linked companies ids (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsGetAsyncWithHttpInfo($filtersAttributes = null, $filtersLinkedCompaniesIds = null, $filtersLinkedContactsIds = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\DealsList';
+ $request = $this->crmDealsGetRequest($filtersAttributes, $filtersLinkedCompaniesIds, $filtersLinkedContactsIds, $offset, $limit, $sort, $sortBy);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmDealsGet'
+ *
+ * @param string $filtersAttributes Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" (optional)
+ * @param string $filtersLinkedCompaniesIds Filter by linked companies ids (optional)
+ * @param string $filtersLinkedContactsIds Filter by linked companies ids (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmDealsGetRequest($filtersAttributes = null, $filtersLinkedCompaniesIds = null, $filtersLinkedContactsIds = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+
+ $resourcePath = '/crm/deals';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($filtersAttributes !== null) {
+ $queryParams['filters[attributes]'] = ObjectSerializer::toQueryValue($filtersAttributes);
+ }
+ // query params
+ if ($filtersLinkedCompaniesIds !== null) {
+ $queryParams['filters[linkedCompaniesIds]'] = ObjectSerializer::toQueryValue($filtersLinkedCompaniesIds);
+ }
+ // query params
+ if ($filtersLinkedContactsIds !== null) {
+ $queryParams['filters[linkedContactsIds]'] = ObjectSerializer::toQueryValue($filtersLinkedContactsIds);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
+ }
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($sort !== null) {
+ $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);
+ }
+ // query params
+ if ($sortBy !== null) {
+ $queryParams['sortBy'] = ObjectSerializer::toQueryValue($sortBy);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmDealsIdDelete
+ *
+ * Delete a deal
+ *
+ * @param string $id id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function crmDealsIdDelete($id)
+ {
+ $this->crmDealsIdDeleteWithHttpInfo($id);
+ }
+
+ /**
+ * Operation crmDealsIdDeleteWithHttpInfo
+ *
+ * Delete a deal
+ *
+ * @param string $id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmDealsIdDeleteWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->crmDealsIdDeleteRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmDealsIdDeleteAsync
+ *
+ * Delete a deal
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsIdDeleteAsync($id)
+ {
+ return $this->crmDealsIdDeleteAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmDealsIdDeleteAsyncWithHttpInfo
+ *
+ * Delete a deal
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsIdDeleteAsyncWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->crmDealsIdDeleteRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmDealsIdDelete'
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmDealsIdDeleteRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmDealsIdDelete'
+ );
+ }
+
+ $resourcePath = '/crm/deals/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmDealsIdGet
+ *
+ * Get a deal
+ *
+ * @param string $id id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\Deal
+ */
+ public function crmDealsIdGet($id)
+ {
+ list($response) = $this->crmDealsIdGetWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation crmDealsIdGetWithHttpInfo
+ *
+ * Get a deal
+ *
+ * @param string $id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\Deal, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmDealsIdGetWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\Deal';
+ $request = $this->crmDealsIdGetRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\Deal',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmDealsIdGetAsync
+ *
+ * Get a deal
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsIdGetAsync($id)
+ {
+ return $this->crmDealsIdGetAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmDealsIdGetAsyncWithHttpInfo
+ *
+ * Get a deal
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsIdGetAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\Deal';
+ $request = $this->crmDealsIdGetRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmDealsIdGet'
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmDealsIdGetRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmDealsIdGet'
+ );
+ }
+
+ $resourcePath = '/crm/deals/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmDealsIdPatch
+ *
+ * Update a deal
+ *
+ * @param string $id id (required)
+ * @param \SendinBlue\Client\Model\Body4 $body Updated deal details. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function crmDealsIdPatch($id, $body)
+ {
+ $this->crmDealsIdPatchWithHttpInfo($id, $body);
+ }
+
+ /**
+ * Operation crmDealsIdPatchWithHttpInfo
+ *
+ * Update a deal
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body4 $body Updated deal details. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmDealsIdPatchWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->crmDealsIdPatchRequest($id, $body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmDealsIdPatchAsync
+ *
+ * Update a deal
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body4 $body Updated deal details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsIdPatchAsync($id, $body)
+ {
+ return $this->crmDealsIdPatchAsyncWithHttpInfo($id, $body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmDealsIdPatchAsyncWithHttpInfo
+ *
+ * Update a deal
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body4 $body Updated deal details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsIdPatchAsyncWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->crmDealsIdPatchRequest($id, $body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmDealsIdPatch'
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body4 $body Updated deal details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmDealsIdPatchRequest($id, $body)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmDealsIdPatch'
+ );
+ }
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling crmDealsIdPatch'
+ );
+ }
+
+ $resourcePath = '/crm/deals/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmDealsLinkUnlinkIdPatch
+ *
+ * Link and Unlink a deal with contacts and companies
+ *
+ * @param string $id id (required)
+ * @param \SendinBlue\Client\Model\Body5 $body Linked / Unlinked contacts and companies ids. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function crmDealsLinkUnlinkIdPatch($id, $body)
+ {
+ $this->crmDealsLinkUnlinkIdPatchWithHttpInfo($id, $body);
+ }
+
+ /**
+ * Operation crmDealsLinkUnlinkIdPatchWithHttpInfo
+ *
+ * Link and Unlink a deal with contacts and companies
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body5 $body Linked / Unlinked contacts and companies ids. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmDealsLinkUnlinkIdPatchWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->crmDealsLinkUnlinkIdPatchRequest($id, $body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmDealsLinkUnlinkIdPatchAsync
+ *
+ * Link and Unlink a deal with contacts and companies
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body5 $body Linked / Unlinked contacts and companies ids. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsLinkUnlinkIdPatchAsync($id, $body)
+ {
+ return $this->crmDealsLinkUnlinkIdPatchAsyncWithHttpInfo($id, $body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmDealsLinkUnlinkIdPatchAsyncWithHttpInfo
+ *
+ * Link and Unlink a deal with contacts and companies
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body5 $body Linked / Unlinked contacts and companies ids. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsLinkUnlinkIdPatchAsyncWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->crmDealsLinkUnlinkIdPatchRequest($id, $body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmDealsLinkUnlinkIdPatch'
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body5 $body Linked / Unlinked contacts and companies ids. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmDealsLinkUnlinkIdPatchRequest($id, $body)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmDealsLinkUnlinkIdPatch'
+ );
+ }
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling crmDealsLinkUnlinkIdPatch'
+ );
+ }
+
+ $resourcePath = '/crm/deals/link-unlink/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmDealsPost
+ *
+ * Create a deal
+ *
+ * @param \SendinBlue\Client\Model\Body3 $body Deal create data. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\InlineResponse201
+ */
+ public function crmDealsPost($body)
+ {
+ list($response) = $this->crmDealsPostWithHttpInfo($body);
+ return $response;
+ }
+
+ /**
+ * Operation crmDealsPostWithHttpInfo
+ *
+ * Create a deal
+ *
+ * @param \SendinBlue\Client\Model\Body3 $body Deal create data. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmDealsPostWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\InlineResponse201';
+ $request = $this->crmDealsPostRequest($body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\InlineResponse201',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmDealsPostAsync
+ *
+ * Create a deal
+ *
+ * @param \SendinBlue\Client\Model\Body3 $body Deal create data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsPostAsync($body)
+ {
+ return $this->crmDealsPostAsyncWithHttpInfo($body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmDealsPostAsyncWithHttpInfo
+ *
+ * Create a deal
+ *
+ * @param \SendinBlue\Client\Model\Body3 $body Deal create data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmDealsPostAsyncWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\InlineResponse201';
+ $request = $this->crmDealsPostRequest($body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmDealsPost'
+ *
+ * @param \SendinBlue\Client\Model\Body3 $body Deal create data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmDealsPostRequest($body)
+ {
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling crmDealsPost'
+ );
+ }
+
+ $resourcePath = '/crm/deals';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmPipelineDetailsGet
+ *
+ * Get pipeline stages
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\Pipeline
+ */
+ public function crmPipelineDetailsGet()
+ {
+ list($response) = $this->crmPipelineDetailsGetWithHttpInfo();
+ return $response;
+ }
+
+ /**
+ * Operation crmPipelineDetailsGetWithHttpInfo
+ *
+ * Get pipeline stages
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\Pipeline, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmPipelineDetailsGetWithHttpInfo()
+ {
+ $returnType = '\SendinBlue\Client\Model\Pipeline';
+ $request = $this->crmPipelineDetailsGetRequest();
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\Pipeline',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmPipelineDetailsGetAsync
+ *
+ * Get pipeline stages
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmPipelineDetailsGetAsync()
+ {
+ return $this->crmPipelineDetailsGetAsyncWithHttpInfo()
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmPipelineDetailsGetAsyncWithHttpInfo
+ *
+ * Get pipeline stages
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmPipelineDetailsGetAsyncWithHttpInfo()
+ {
+ $returnType = '\SendinBlue\Client\Model\Pipeline';
+ $request = $this->crmPipelineDetailsGetRequest();
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmPipelineDetailsGet'
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmPipelineDetailsGetRequest()
+ {
+
+ $resourcePath = '/crm/pipeline/details';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Create http client option
+ *
+ * @throws \RuntimeException on file opening failure
+ * @return array of http client options
+ */
+ protected function createHttpClientOption()
+ {
+ $options = [];
+ if ($this->config->getDebug()) {
+ $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
+ if (!$options[RequestOptions::DEBUG]) {
+ throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
+ }
+ }
+
+ return $options;
+ }
+}
diff --git a/lib/Api/EcommerceApi.php b/lib/Api/EcommerceApi.php
new file mode 100644
index 00000000..51f880eb
--- /dev/null
+++ b/lib/Api/EcommerceApi.php
@@ -0,0 +1,3145 @@
+client = $client ?: new Client();
+ $this->config = $config ?: new Configuration();
+ $this->headerSelector = $selector ?: new HeaderSelector();
+ }
+
+ /**
+ * @return Configuration
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
+
+ /**
+ * Operation createBatchOrder
+ *
+ * Maintains a batch of orders
+ *
+ * @param \SendinBlue\Client\Model\OrderBatch $orderBatch orderBatch (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function createBatchOrder($orderBatch)
+ {
+ $this->createBatchOrderWithHttpInfo($orderBatch);
+ }
+
+ /**
+ * Operation createBatchOrderWithHttpInfo
+ *
+ * Maintains a batch of orders
+ *
+ * @param \SendinBlue\Client\Model\OrderBatch $orderBatch (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function createBatchOrderWithHttpInfo($orderBatch)
+ {
+ $returnType = '';
+ $request = $this->createBatchOrderRequest($orderBatch);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation createBatchOrderAsync
+ *
+ * Maintains a batch of orders
+ *
+ * @param \SendinBlue\Client\Model\OrderBatch $orderBatch (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createBatchOrderAsync($orderBatch)
+ {
+ return $this->createBatchOrderAsyncWithHttpInfo($orderBatch)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation createBatchOrderAsyncWithHttpInfo
+ *
+ * Maintains a batch of orders
+ *
+ * @param \SendinBlue\Client\Model\OrderBatch $orderBatch (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createBatchOrderAsyncWithHttpInfo($orderBatch)
+ {
+ $returnType = '';
+ $request = $this->createBatchOrderRequest($orderBatch);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'createBatchOrder'
+ *
+ * @param \SendinBlue\Client\Model\OrderBatch $orderBatch (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function createBatchOrderRequest($orderBatch)
+ {
+ // verify the required parameter 'orderBatch' is set
+ if ($orderBatch === null || (is_array($orderBatch) && count($orderBatch) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $orderBatch when calling createBatchOrder'
+ );
+ }
+
+ $resourcePath = '/orders/status/batch';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($orderBatch)) {
+ $_tempBody = $orderBatch;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation createOrder
+ *
+ * Maintains every transactional status of the order
+ *
+ * @param \SendinBlue\Client\Model\Order $order order (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function createOrder($order)
+ {
+ $this->createOrderWithHttpInfo($order);
+ }
+
+ /**
+ * Operation createOrderWithHttpInfo
+ *
+ * Maintains every transactional status of the order
+ *
+ * @param \SendinBlue\Client\Model\Order $order (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function createOrderWithHttpInfo($order)
+ {
+ $returnType = '';
+ $request = $this->createOrderRequest($order);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation createOrderAsync
+ *
+ * Maintains every transactional status of the order
+ *
+ * @param \SendinBlue\Client\Model\Order $order (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createOrderAsync($order)
+ {
+ return $this->createOrderAsyncWithHttpInfo($order)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation createOrderAsyncWithHttpInfo
+ *
+ * Maintains every transactional status of the order
+ *
+ * @param \SendinBlue\Client\Model\Order $order (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createOrderAsyncWithHttpInfo($order)
+ {
+ $returnType = '';
+ $request = $this->createOrderRequest($order);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'createOrder'
+ *
+ * @param \SendinBlue\Client\Model\Order $order (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function createOrderRequest($order)
+ {
+ // verify the required parameter 'order' is set
+ if ($order === null || (is_array($order) && count($order) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $order when calling createOrder'
+ );
+ }
+
+ $resourcePath = '/orders/status';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($order)) {
+ $_tempBody = $order;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation createUpdateBatchCategory
+ *
+ * Create the categories in a batch
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchCategory $createUpdateBatchCategory Values to create a batch of categories (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\CreateUpdateBatchCategoryModel
+ */
+ public function createUpdateBatchCategory($createUpdateBatchCategory)
+ {
+ list($response) = $this->createUpdateBatchCategoryWithHttpInfo($createUpdateBatchCategory);
+ return $response;
+ }
+
+ /**
+ * Operation createUpdateBatchCategoryWithHttpInfo
+ *
+ * Create the categories in a batch
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchCategory $createUpdateBatchCategory Values to create a batch of categories (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\CreateUpdateBatchCategoryModel, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function createUpdateBatchCategoryWithHttpInfo($createUpdateBatchCategory)
+ {
+ $returnType = '\SendinBlue\Client\Model\CreateUpdateBatchCategoryModel';
+ $request = $this->createUpdateBatchCategoryRequest($createUpdateBatchCategory);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\CreateUpdateBatchCategoryModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation createUpdateBatchCategoryAsync
+ *
+ * Create the categories in a batch
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchCategory $createUpdateBatchCategory Values to create a batch of categories (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createUpdateBatchCategoryAsync($createUpdateBatchCategory)
+ {
+ return $this->createUpdateBatchCategoryAsyncWithHttpInfo($createUpdateBatchCategory)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation createUpdateBatchCategoryAsyncWithHttpInfo
+ *
+ * Create the categories in a batch
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchCategory $createUpdateBatchCategory Values to create a batch of categories (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createUpdateBatchCategoryAsyncWithHttpInfo($createUpdateBatchCategory)
+ {
+ $returnType = '\SendinBlue\Client\Model\CreateUpdateBatchCategoryModel';
+ $request = $this->createUpdateBatchCategoryRequest($createUpdateBatchCategory);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'createUpdateBatchCategory'
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchCategory $createUpdateBatchCategory Values to create a batch of categories (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function createUpdateBatchCategoryRequest($createUpdateBatchCategory)
+ {
+ // verify the required parameter 'createUpdateBatchCategory' is set
+ if ($createUpdateBatchCategory === null || (is_array($createUpdateBatchCategory) && count($createUpdateBatchCategory) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $createUpdateBatchCategory when calling createUpdateBatchCategory'
+ );
+ }
+
+ $resourcePath = '/categories/batch';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($createUpdateBatchCategory)) {
+ $_tempBody = $createUpdateBatchCategory;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation createUpdateBatchProducts
+ *
+ * Creates the products in a batch
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchProducts $createUpdateBatchProducts Values to create a batch of products (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\CreateUpdateBatchProductsModel
+ */
+ public function createUpdateBatchProducts($createUpdateBatchProducts)
+ {
+ list($response) = $this->createUpdateBatchProductsWithHttpInfo($createUpdateBatchProducts);
+ return $response;
+ }
+
+ /**
+ * Operation createUpdateBatchProductsWithHttpInfo
+ *
+ * Creates the products in a batch
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchProducts $createUpdateBatchProducts Values to create a batch of products (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\CreateUpdateBatchProductsModel, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function createUpdateBatchProductsWithHttpInfo($createUpdateBatchProducts)
+ {
+ $returnType = '\SendinBlue\Client\Model\CreateUpdateBatchProductsModel';
+ $request = $this->createUpdateBatchProductsRequest($createUpdateBatchProducts);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\CreateUpdateBatchProductsModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation createUpdateBatchProductsAsync
+ *
+ * Creates the products in a batch
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchProducts $createUpdateBatchProducts Values to create a batch of products (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createUpdateBatchProductsAsync($createUpdateBatchProducts)
+ {
+ return $this->createUpdateBatchProductsAsyncWithHttpInfo($createUpdateBatchProducts)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation createUpdateBatchProductsAsyncWithHttpInfo
+ *
+ * Creates the products in a batch
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchProducts $createUpdateBatchProducts Values to create a batch of products (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createUpdateBatchProductsAsyncWithHttpInfo($createUpdateBatchProducts)
+ {
+ $returnType = '\SendinBlue\Client\Model\CreateUpdateBatchProductsModel';
+ $request = $this->createUpdateBatchProductsRequest($createUpdateBatchProducts);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'createUpdateBatchProducts'
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateBatchProducts $createUpdateBatchProducts Values to create a batch of products (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function createUpdateBatchProductsRequest($createUpdateBatchProducts)
+ {
+ // verify the required parameter 'createUpdateBatchProducts' is set
+ if ($createUpdateBatchProducts === null || (is_array($createUpdateBatchProducts) && count($createUpdateBatchProducts) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $createUpdateBatchProducts when calling createUpdateBatchProducts'
+ );
+ }
+
+ $resourcePath = '/products/batch';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($createUpdateBatchProducts)) {
+ $_tempBody = $createUpdateBatchProducts;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation createUpdateCategory
+ *
+ * Create/Update a category
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateCategory $createUpdateCategory Values to create/update a category (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\CreateCategoryModel
+ */
+ public function createUpdateCategory($createUpdateCategory)
+ {
+ list($response) = $this->createUpdateCategoryWithHttpInfo($createUpdateCategory);
+ return $response;
+ }
+
+ /**
+ * Operation createUpdateCategoryWithHttpInfo
+ *
+ * Create/Update a category
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateCategory $createUpdateCategory Values to create/update a category (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\CreateCategoryModel, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function createUpdateCategoryWithHttpInfo($createUpdateCategory)
+ {
+ $returnType = '\SendinBlue\Client\Model\CreateCategoryModel';
+ $request = $this->createUpdateCategoryRequest($createUpdateCategory);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\CreateCategoryModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation createUpdateCategoryAsync
+ *
+ * Create/Update a category
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateCategory $createUpdateCategory Values to create/update a category (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createUpdateCategoryAsync($createUpdateCategory)
+ {
+ return $this->createUpdateCategoryAsyncWithHttpInfo($createUpdateCategory)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation createUpdateCategoryAsyncWithHttpInfo
+ *
+ * Create/Update a category
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateCategory $createUpdateCategory Values to create/update a category (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createUpdateCategoryAsyncWithHttpInfo($createUpdateCategory)
+ {
+ $returnType = '\SendinBlue\Client\Model\CreateCategoryModel';
+ $request = $this->createUpdateCategoryRequest($createUpdateCategory);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'createUpdateCategory'
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateCategory $createUpdateCategory Values to create/update a category (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function createUpdateCategoryRequest($createUpdateCategory)
+ {
+ // verify the required parameter 'createUpdateCategory' is set
+ if ($createUpdateCategory === null || (is_array($createUpdateCategory) && count($createUpdateCategory) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $createUpdateCategory when calling createUpdateCategory'
+ );
+ }
+
+ $resourcePath = '/categories';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($createUpdateCategory)) {
+ $_tempBody = $createUpdateCategory;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation createUpdateProduct
+ *
+ * Create/Update a product
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateProduct $createUpdateProduct Values to create/update a product (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\CreateProductModel
+ */
+ public function createUpdateProduct($createUpdateProduct)
+ {
+ list($response) = $this->createUpdateProductWithHttpInfo($createUpdateProduct);
+ return $response;
+ }
+
+ /**
+ * Operation createUpdateProductWithHttpInfo
+ *
+ * Create/Update a product
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateProduct $createUpdateProduct Values to create/update a product (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\CreateProductModel, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function createUpdateProductWithHttpInfo($createUpdateProduct)
+ {
+ $returnType = '\SendinBlue\Client\Model\CreateProductModel';
+ $request = $this->createUpdateProductRequest($createUpdateProduct);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\CreateProductModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation createUpdateProductAsync
+ *
+ * Create/Update a product
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateProduct $createUpdateProduct Values to create/update a product (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createUpdateProductAsync($createUpdateProduct)
+ {
+ return $this->createUpdateProductAsyncWithHttpInfo($createUpdateProduct)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation createUpdateProductAsyncWithHttpInfo
+ *
+ * Create/Update a product
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateProduct $createUpdateProduct Values to create/update a product (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function createUpdateProductAsyncWithHttpInfo($createUpdateProduct)
+ {
+ $returnType = '\SendinBlue\Client\Model\CreateProductModel';
+ $request = $this->createUpdateProductRequest($createUpdateProduct);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'createUpdateProduct'
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateProduct $createUpdateProduct Values to create/update a product (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function createUpdateProductRequest($createUpdateProduct)
+ {
+ // verify the required parameter 'createUpdateProduct' is set
+ if ($createUpdateProduct === null || (is_array($createUpdateProduct) && count($createUpdateProduct) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $createUpdateProduct when calling createUpdateProduct'
+ );
+ }
+
+ $resourcePath = '/products';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($createUpdateProduct)) {
+ $_tempBody = $createUpdateProduct;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation ecommerceActivatePost
+ *
+ * **Fulfills the eCommerce pre-requisites**
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function ecommerceActivatePost()
+ {
+ $this->ecommerceActivatePostWithHttpInfo();
+ }
+
+ /**
+ * Operation ecommerceActivatePostWithHttpInfo
+ *
+ * **Fulfills the eCommerce pre-requisites**
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function ecommerceActivatePostWithHttpInfo()
+ {
+ $returnType = '';
+ $request = $this->ecommerceActivatePostRequest();
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 401:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation ecommerceActivatePostAsync
+ *
+ * **Fulfills the eCommerce pre-requisites**
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function ecommerceActivatePostAsync()
+ {
+ return $this->ecommerceActivatePostAsyncWithHttpInfo()
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation ecommerceActivatePostAsyncWithHttpInfo
+ *
+ * **Fulfills the eCommerce pre-requisites**
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function ecommerceActivatePostAsyncWithHttpInfo()
+ {
+ $returnType = '';
+ $request = $this->ecommerceActivatePostRequest();
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'ecommerceActivatePost'
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function ecommerceActivatePostRequest()
+ {
+
+ $resourcePath = '/ecommerce/activate';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation getCategories
+ *
+ * Return all your categories
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by category ids (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetCategories
+ */
+ public function getCategories($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ list($response) = $this->getCategoriesWithHttpInfo($limit, $offset, $sort, $ids);
+ return $response;
+ }
+
+ /**
+ * Operation getCategoriesWithHttpInfo
+ *
+ * Return all your categories
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by category ids (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetCategories, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getCategoriesWithHttpInfo($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetCategories';
+ $request = $this->getCategoriesRequest($limit, $offset, $sort, $ids);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetCategories',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getCategoriesAsync
+ *
+ * Return all your categories
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by category ids (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getCategoriesAsync($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ return $this->getCategoriesAsyncWithHttpInfo($limit, $offset, $sort, $ids)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getCategoriesAsyncWithHttpInfo
+ *
+ * Return all your categories
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by category ids (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getCategoriesAsyncWithHttpInfo($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetCategories';
+ $request = $this->getCategoriesRequest($limit, $offset, $sort, $ids);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getCategories'
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by category ids (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getCategoriesRequest($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ if ($limit !== null && $limit > 100) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling EcommerceApi.getCategories, must be smaller than or equal to 100.');
+ }
+
+
+ $resourcePath = '/categories';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
+ }
+ // query params
+ if ($sort !== null) {
+ $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);
+ }
+ // query params
+ if (is_array($ids)) {
+ $queryParams['ids'] = $ids;
+ } else
+ if ($ids !== null) {
+ $queryParams['ids'] = ObjectSerializer::toQueryValue($ids);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation getCategoryInfo
+ *
+ * Get a category details
+ *
+ * @param string $id Category ID (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetCategoryDetails
+ */
+ public function getCategoryInfo($id)
+ {
+ list($response) = $this->getCategoryInfoWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation getCategoryInfoWithHttpInfo
+ *
+ * Get a category details
+ *
+ * @param string $id Category ID (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetCategoryDetails, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getCategoryInfoWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetCategoryDetails';
+ $request = $this->getCategoryInfoRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetCategoryDetails',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getCategoryInfoAsync
+ *
+ * Get a category details
+ *
+ * @param string $id Category ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getCategoryInfoAsync($id)
+ {
+ return $this->getCategoryInfoAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getCategoryInfoAsyncWithHttpInfo
+ *
+ * Get a category details
+ *
+ * @param string $id Category ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getCategoryInfoAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetCategoryDetails';
+ $request = $this->getCategoryInfoRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getCategoryInfo'
+ *
+ * @param string $id Category ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getCategoryInfoRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling getCategoryInfo'
+ );
+ }
+
+ $resourcePath = '/categories/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation getProductInfo
+ *
+ * Get a product's details
+ *
+ * @param string $id Product ID (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetProductDetails
+ */
+ public function getProductInfo($id)
+ {
+ list($response) = $this->getProductInfoWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation getProductInfoWithHttpInfo
+ *
+ * Get a product's details
+ *
+ * @param string $id Product ID (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetProductDetails, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getProductInfoWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetProductDetails';
+ $request = $this->getProductInfoRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetProductDetails',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getProductInfoAsync
+ *
+ * Get a product's details
+ *
+ * @param string $id Product ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getProductInfoAsync($id)
+ {
+ return $this->getProductInfoAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getProductInfoAsyncWithHttpInfo
+ *
+ * Get a product's details
+ *
+ * @param string $id Product ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getProductInfoAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetProductDetails';
+ $request = $this->getProductInfoRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getProductInfo'
+ *
+ * @param string $id Product ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getProductInfoRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling getProductInfo'
+ );
+ }
+
+ $resourcePath = '/products/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation getProducts
+ *
+ * Return all your products
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by product ids (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetProducts
+ */
+ public function getProducts($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ list($response) = $this->getProductsWithHttpInfo($limit, $offset, $sort, $ids);
+ return $response;
+ }
+
+ /**
+ * Operation getProductsWithHttpInfo
+ *
+ * Return all your products
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by product ids (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetProducts, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getProductsWithHttpInfo($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetProducts';
+ $request = $this->getProductsRequest($limit, $offset, $sort, $ids);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetProducts',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getProductsAsync
+ *
+ * Return all your products
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by product ids (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getProductsAsync($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ return $this->getProductsAsyncWithHttpInfo($limit, $offset, $sort, $ids)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getProductsAsyncWithHttpInfo
+ *
+ * Return all your products
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by product ids (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getProductsAsyncWithHttpInfo($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetProducts';
+ $request = $this->getProductsRequest($limit, $offset, $sort, $ids);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getProducts'
+ *
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
+ * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
+ * @param string[] $ids Filter by product ids (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getProductsRequest($limit = '50', $offset = '0', $sort = 'desc', $ids = null)
+ {
+ if ($limit !== null && $limit > 1000) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling EcommerceApi.getProducts, must be smaller than or equal to 1000.');
+ }
+
+
+ $resourcePath = '/products';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
+ }
+ // query params
+ if ($sort !== null) {
+ $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);
+ }
+ // query params
+ if (is_array($ids)) {
+ $queryParams['ids'] = $ids;
+ } else
+ if ($ids !== null) {
+ $queryParams['ids'] = ObjectSerializer::toQueryValue($ids);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Create http client option
+ *
+ * @throws \RuntimeException on file opening failure
+ * @return array of http client options
+ */
+ protected function createHttpClientOption()
+ {
+ $options = [];
+ if ($this->config->getDebug()) {
+ $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
+ if (!$options[RequestOptions::DEBUG]) {
+ throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
+ }
+ }
+
+ return $options;
+ }
+}
diff --git a/lib/Api/EmailCampaignsApi.php b/lib/Api/EmailCampaignsApi.php
index 88d2cff5..02dc1778 100644
--- a/lib/Api/EmailCampaignsApi.php
+++ b/lib/Api/EmailCampaignsApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -433,7 +433,7 @@ public function deleteEmailCampaignWithHttpInfo($campaignId)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -441,7 +441,7 @@ public function deleteEmailCampaignWithHttpInfo($campaignId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1017,7 +1017,7 @@ public function getAbTestCampaignResultWithHttpInfo($campaignId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1025,7 +1025,7 @@ public function getAbTestCampaignResultWithHttpInfo($campaignId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1320,7 +1320,7 @@ public function getEmailCampaignWithHttpInfo($campaignId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1328,7 +1328,7 @@ public function getEmailCampaignWithHttpInfo($campaignId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1537,7 +1537,7 @@ protected function getEmailCampaignRequest($campaignId)
* @param string $status Filter on the status of the campaign (optional)
* @param string $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
* @param string $endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
- * @param int $limit Number of documents per page (optional, default to 500)
+ * @param int $limit Number of documents per page (optional, default to 50)
* @param int $offset Index of the first document in the page (optional, default to 0)
* @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
*
@@ -1545,7 +1545,7 @@ protected function getEmailCampaignRequest($campaignId)
* @throws \InvalidArgumentException
* @return \SendinBlue\Client\Model\GetEmailCampaigns
*/
- public function getEmailCampaigns($type = null, $status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0', $sort = 'desc')
+ public function getEmailCampaigns($type = null, $status = null, $startDate = null, $endDate = null, $limit = '50', $offset = '0', $sort = 'desc')
{
list($response) = $this->getEmailCampaignsWithHttpInfo($type, $status, $startDate, $endDate, $limit, $offset, $sort);
return $response;
@@ -1560,7 +1560,7 @@ public function getEmailCampaigns($type = null, $status = null, $startDate = nul
* @param string $status Filter on the status of the campaign (optional)
* @param string $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
* @param string $endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
- * @param int $limit Number of documents per page (optional, default to 500)
+ * @param int $limit Number of documents per page (optional, default to 50)
* @param int $offset Index of the first document in the page (optional, default to 0)
* @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
*
@@ -1568,7 +1568,7 @@ public function getEmailCampaigns($type = null, $status = null, $startDate = nul
* @throws \InvalidArgumentException
* @return array of \SendinBlue\Client\Model\GetEmailCampaigns, HTTP status code, HTTP response headers (array of strings)
*/
- public function getEmailCampaignsWithHttpInfo($type = null, $status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0', $sort = 'desc')
+ public function getEmailCampaignsWithHttpInfo($type = null, $status = null, $startDate = null, $endDate = null, $limit = '50', $offset = '0', $sort = 'desc')
{
$returnType = '\SendinBlue\Client\Model\GetEmailCampaigns';
$request = $this->getEmailCampaignsRequest($type, $status, $startDate, $endDate, $limit, $offset, $sort);
@@ -1649,14 +1649,14 @@ public function getEmailCampaignsWithHttpInfo($type = null, $status = null, $sta
* @param string $status Filter on the status of the campaign (optional)
* @param string $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
* @param string $endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
- * @param int $limit Number of documents per page (optional, default to 500)
+ * @param int $limit Number of documents per page (optional, default to 50)
* @param int $offset Index of the first document in the page (optional, default to 0)
* @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getEmailCampaignsAsync($type = null, $status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0', $sort = 'desc')
+ public function getEmailCampaignsAsync($type = null, $status = null, $startDate = null, $endDate = null, $limit = '50', $offset = '0', $sort = 'desc')
{
return $this->getEmailCampaignsAsyncWithHttpInfo($type, $status, $startDate, $endDate, $limit, $offset, $sort)
->then(
@@ -1675,14 +1675,14 @@ function ($response) {
* @param string $status Filter on the status of the campaign (optional)
* @param string $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
* @param string $endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
- * @param int $limit Number of documents per page (optional, default to 500)
+ * @param int $limit Number of documents per page (optional, default to 50)
* @param int $offset Index of the first document in the page (optional, default to 0)
* @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getEmailCampaignsAsyncWithHttpInfo($type = null, $status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0', $sort = 'desc')
+ public function getEmailCampaignsAsyncWithHttpInfo($type = null, $status = null, $startDate = null, $endDate = null, $limit = '50', $offset = '0', $sort = 'desc')
{
$returnType = '\SendinBlue\Client\Model\GetEmailCampaigns';
$request = $this->getEmailCampaignsRequest($type, $status, $startDate, $endDate, $limit, $offset, $sort);
@@ -1731,17 +1731,20 @@ function ($exception) {
* @param string $status Filter on the status of the campaign (optional)
* @param string $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
* @param string $endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional)
- * @param int $limit Number of documents per page (optional, default to 500)
+ * @param int $limit Number of documents per page (optional, default to 50)
* @param int $offset Index of the first document in the page (optional, default to 0)
* @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function getEmailCampaignsRequest($type = null, $status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0', $sort = 'desc')
+ protected function getEmailCampaignsRequest($type = null, $status = null, $startDate = null, $endDate = null, $limit = '50', $offset = '0', $sort = 'desc')
{
- if ($limit !== null && $limit > 1000) {
- throw new \InvalidArgumentException('invalid value for "$limit" when calling EmailCampaignsApi.getEmailCampaigns, must be smaller than or equal to 1000.');
+ if ($limit !== null && $limit > 100) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling EmailCampaignsApi.getEmailCampaigns, must be smaller than or equal to 100.');
+ }
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling EmailCampaignsApi.getEmailCampaigns, must be bigger than or equal to 0.');
}
@@ -1950,7 +1953,7 @@ public function getSharedTemplateUrlWithHttpInfo($campaignId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1958,7 +1961,7 @@ public function getSharedTemplateUrlWithHttpInfo($campaignId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3521,11 +3524,12 @@ protected function updateEmailCampaignRequest($campaignId, $emailCampaign)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return void
+ * @return \SendinBlue\Client\Model\UploadImageModel
*/
public function uploadImageToGallery($uploadImage)
{
- $this->uploadImageToGalleryWithHttpInfo($uploadImage);
+ list($response) = $this->uploadImageToGalleryWithHttpInfo($uploadImage);
+ return $response;
}
/**
@@ -3537,11 +3541,11 @@ public function uploadImageToGallery($uploadImage)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \SendinBlue\Client\Model\UploadImageModel, HTTP status code, HTTP response headers (array of strings)
*/
public function uploadImageToGalleryWithHttpInfo($uploadImage)
{
- $returnType = '';
+ $returnType = '\SendinBlue\Client\Model\UploadImageModel';
$request = $this->uploadImageToGalleryRequest($uploadImage);
try {
@@ -3572,10 +3576,32 @@ public function uploadImageToGalleryWithHttpInfo($uploadImage)
);
}
- return [null, $statusCode, $response->getHeaders()];
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
} catch (ApiException $e) {
switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\UploadImageModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
@@ -3621,14 +3647,28 @@ function ($response) {
*/
public function uploadImageToGalleryAsyncWithHttpInfo($uploadImage)
{
- $returnType = '';
+ $returnType = '\SendinBlue\Client\Model\UploadImageModel';
$request = $this->uploadImageToGalleryRequest($uploadImage);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
->then(
function ($response) use ($returnType) {
- return [null, $response->getStatusCode(), $response->getHeaders()];
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
},
function ($exception) {
$response = $exception->getResponse();
diff --git a/lib/Api/FilesApi.php b/lib/Api/FilesApi.php
new file mode 100644
index 00000000..5d1d8839
--- /dev/null
+++ b/lib/Api/FilesApi.php
@@ -0,0 +1,1598 @@
+client = $client ?: new Client();
+ $this->config = $config ?: new Configuration();
+ $this->headerSelector = $selector ?: new HeaderSelector();
+ }
+
+ /**
+ * @return Configuration
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
+
+ /**
+ * Operation crmFilesGet
+ *
+ * Get all files
+ *
+ * @param string $entity Filter by file entity type (optional)
+ * @param string $entityIds Filter by file entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\FileList
+ */
+ public function crmFilesGet($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+ list($response) = $this->crmFilesGetWithHttpInfo($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort);
+ return $response;
+ }
+
+ /**
+ * Operation crmFilesGetWithHttpInfo
+ *
+ * Get all files
+ *
+ * @param string $entity Filter by file entity type (optional)
+ * @param string $entityIds Filter by file entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\FileList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmFilesGetWithHttpInfo($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\FileList';
+ $request = $this->crmFilesGetRequest($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\FileList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmFilesGetAsync
+ *
+ * Get all files
+ *
+ * @param string $entity Filter by file entity type (optional)
+ * @param string $entityIds Filter by file entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesGetAsync($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+ return $this->crmFilesGetAsyncWithHttpInfo($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmFilesGetAsyncWithHttpInfo
+ *
+ * Get all files
+ *
+ * @param string $entity Filter by file entity type (optional)
+ * @param string $entityIds Filter by file entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesGetAsyncWithHttpInfo($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\FileList';
+ $request = $this->crmFilesGetRequest($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmFilesGet'
+ *
+ * @param string $entity Filter by file entity type (optional)
+ * @param string $entityIds Filter by file entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmFilesGetRequest($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+
+ $resourcePath = '/crm/files';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($entity !== null) {
+ $queryParams['entity'] = ObjectSerializer::toQueryValue($entity);
+ }
+ // query params
+ if ($entityIds !== null) {
+ $queryParams['entityIds'] = ObjectSerializer::toQueryValue($entityIds);
+ }
+ // query params
+ if ($dateFrom !== null) {
+ $queryParams['dateFrom'] = ObjectSerializer::toQueryValue($dateFrom);
+ }
+ // query params
+ if ($dateTo !== null) {
+ $queryParams['dateTo'] = ObjectSerializer::toQueryValue($dateTo);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
+ }
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($sort !== null) {
+ $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmFilesIdDataGet
+ *
+ * Get file details
+ *
+ * @param string $id File id to get file data. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\FileData
+ */
+ public function crmFilesIdDataGet($id)
+ {
+ list($response) = $this->crmFilesIdDataGetWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation crmFilesIdDataGetWithHttpInfo
+ *
+ * Get file details
+ *
+ * @param string $id File id to get file data. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\FileData, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmFilesIdDataGetWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\FileData';
+ $request = $this->crmFilesIdDataGetRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\FileData',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmFilesIdDataGetAsync
+ *
+ * Get file details
+ *
+ * @param string $id File id to get file data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesIdDataGetAsync($id)
+ {
+ return $this->crmFilesIdDataGetAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmFilesIdDataGetAsyncWithHttpInfo
+ *
+ * Get file details
+ *
+ * @param string $id File id to get file data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesIdDataGetAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\FileData';
+ $request = $this->crmFilesIdDataGetRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmFilesIdDataGet'
+ *
+ * @param string $id File id to get file data. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmFilesIdDataGetRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmFilesIdDataGet'
+ );
+ }
+
+ $resourcePath = '/crm/files/{id}/data';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmFilesIdDelete
+ *
+ * Delete a file
+ *
+ * @param string $id File id to delete. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function crmFilesIdDelete($id)
+ {
+ $this->crmFilesIdDeleteWithHttpInfo($id);
+ }
+
+ /**
+ * Operation crmFilesIdDeleteWithHttpInfo
+ *
+ * Delete a file
+ *
+ * @param string $id File id to delete. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmFilesIdDeleteWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->crmFilesIdDeleteRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmFilesIdDeleteAsync
+ *
+ * Delete a file
+ *
+ * @param string $id File id to delete. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesIdDeleteAsync($id)
+ {
+ return $this->crmFilesIdDeleteAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmFilesIdDeleteAsyncWithHttpInfo
+ *
+ * Delete a file
+ *
+ * @param string $id File id to delete. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesIdDeleteAsyncWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->crmFilesIdDeleteRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmFilesIdDelete'
+ *
+ * @param string $id File id to delete. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmFilesIdDeleteRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmFilesIdDelete'
+ );
+ }
+
+ $resourcePath = '/crm/files/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmFilesIdGet
+ *
+ * Download a file
+ *
+ * @param string $id File id to download. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\FileDownloadableLink
+ */
+ public function crmFilesIdGet($id)
+ {
+ list($response) = $this->crmFilesIdGetWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation crmFilesIdGetWithHttpInfo
+ *
+ * Download a file
+ *
+ * @param string $id File id to download. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\FileDownloadableLink, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmFilesIdGetWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\FileDownloadableLink';
+ $request = $this->crmFilesIdGetRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\FileDownloadableLink',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmFilesIdGetAsync
+ *
+ * Download a file
+ *
+ * @param string $id File id to download. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesIdGetAsync($id)
+ {
+ return $this->crmFilesIdGetAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmFilesIdGetAsyncWithHttpInfo
+ *
+ * Download a file
+ *
+ * @param string $id File id to download. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesIdGetAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\FileDownloadableLink';
+ $request = $this->crmFilesIdGetRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmFilesIdGet'
+ *
+ * @param string $id File id to download. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmFilesIdGetRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmFilesIdGet'
+ );
+ }
+
+ $resourcePath = '/crm/files/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmFilesPost
+ *
+ * Upload a file
+ *
+ * @param \SplFileObject $file File data to create a file. (required)
+ * @param string $dealId Deal id linked to a file (optional)
+ * @param int $contactId Contact id linked to a file (optional)
+ * @param string $companyId Company id linked to a file (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\FileData
+ */
+ public function crmFilesPost($file, $dealId = null, $contactId = null, $companyId = null)
+ {
+ list($response) = $this->crmFilesPostWithHttpInfo($file, $dealId, $contactId, $companyId);
+ return $response;
+ }
+
+ /**
+ * Operation crmFilesPostWithHttpInfo
+ *
+ * Upload a file
+ *
+ * @param \SplFileObject $file File data to create a file. (required)
+ * @param string $dealId Deal id linked to a file (optional)
+ * @param int $contactId Contact id linked to a file (optional)
+ * @param string $companyId Company id linked to a file (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\FileData, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmFilesPostWithHttpInfo($file, $dealId = null, $contactId = null, $companyId = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\FileData';
+ $request = $this->crmFilesPostRequest($file, $dealId, $contactId, $companyId);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\FileData',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmFilesPostAsync
+ *
+ * Upload a file
+ *
+ * @param \SplFileObject $file File data to create a file. (required)
+ * @param string $dealId Deal id linked to a file (optional)
+ * @param int $contactId Contact id linked to a file (optional)
+ * @param string $companyId Company id linked to a file (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesPostAsync($file, $dealId = null, $contactId = null, $companyId = null)
+ {
+ return $this->crmFilesPostAsyncWithHttpInfo($file, $dealId, $contactId, $companyId)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmFilesPostAsyncWithHttpInfo
+ *
+ * Upload a file
+ *
+ * @param \SplFileObject $file File data to create a file. (required)
+ * @param string $dealId Deal id linked to a file (optional)
+ * @param int $contactId Contact id linked to a file (optional)
+ * @param string $companyId Company id linked to a file (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmFilesPostAsyncWithHttpInfo($file, $dealId = null, $contactId = null, $companyId = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\FileData';
+ $request = $this->crmFilesPostRequest($file, $dealId, $contactId, $companyId);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmFilesPost'
+ *
+ * @param \SplFileObject $file File data to create a file. (required)
+ * @param string $dealId Deal id linked to a file (optional)
+ * @param int $contactId Contact id linked to a file (optional)
+ * @param string $companyId Company id linked to a file (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmFilesPostRequest($file, $dealId = null, $contactId = null, $companyId = null)
+ {
+ // verify the required parameter 'file' is set
+ if ($file === null || (is_array($file) && count($file) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $file when calling crmFilesPost'
+ );
+ }
+
+ $resourcePath = '/crm/files';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // form params
+ if ($file !== null) {
+ $multipart = true;
+ $formParams['file'] = \GuzzleHttp\Psr7\try_fopen(ObjectSerializer::toFormValue($file), 'rb');
+ }
+ // form params
+ if ($dealId !== null) {
+ $formParams['dealId'] = ObjectSerializer::toFormValue($dealId);
+ }
+ // form params
+ if ($contactId !== null) {
+ $formParams['contactId'] = ObjectSerializer::toFormValue($contactId);
+ }
+ // form params
+ if ($companyId !== null) {
+ $formParams['companyId'] = ObjectSerializer::toFormValue($companyId);
+ }
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['multipart/form-data']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Create http client option
+ *
+ * @throws \RuntimeException on file opening failure
+ * @return array of http client options
+ */
+ protected function createHttpClientOption()
+ {
+ $options = [];
+ if ($this->config->getDebug()) {
+ $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
+ if (!$options[RequestOptions::DEBUG]) {
+ throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
+ }
+ }
+
+ return $options;
+ }
+}
diff --git a/lib/Api/InboundParsingApi.php b/lib/Api/InboundParsingApi.php
index b72a0fbb..58f78297 100644
--- a/lib/Api/InboundParsingApi.php
+++ b/lib/Api/InboundParsingApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -87,6 +87,301 @@ public function getConfig()
return $this->config;
}
+ /**
+ * Operation getInboundEmailAttachment
+ *
+ * Retrieve inbound attachment with download token.
+ *
+ * @param string $downloadToken Token to fetch a particular attachment (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SplFileObject
+ */
+ public function getInboundEmailAttachment($downloadToken)
+ {
+ list($response) = $this->getInboundEmailAttachmentWithHttpInfo($downloadToken);
+ return $response;
+ }
+
+ /**
+ * Operation getInboundEmailAttachmentWithHttpInfo
+ *
+ * Retrieve inbound attachment with download token.
+ *
+ * @param string $downloadToken Token to fetch a particular attachment (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getInboundEmailAttachmentWithHttpInfo($downloadToken)
+ {
+ $returnType = '\SplFileObject';
+ $request = $this->getInboundEmailAttachmentRequest($downloadToken);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SplFileObject',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getInboundEmailAttachmentAsync
+ *
+ * Retrieve inbound attachment with download token.
+ *
+ * @param string $downloadToken Token to fetch a particular attachment (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getInboundEmailAttachmentAsync($downloadToken)
+ {
+ return $this->getInboundEmailAttachmentAsyncWithHttpInfo($downloadToken)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getInboundEmailAttachmentAsyncWithHttpInfo
+ *
+ * Retrieve inbound attachment with download token.
+ *
+ * @param string $downloadToken Token to fetch a particular attachment (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getInboundEmailAttachmentAsyncWithHttpInfo($downloadToken)
+ {
+ $returnType = '\SplFileObject';
+ $request = $this->getInboundEmailAttachmentRequest($downloadToken);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getInboundEmailAttachment'
+ *
+ * @param string $downloadToken Token to fetch a particular attachment (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getInboundEmailAttachmentRequest($downloadToken)
+ {
+ // verify the required parameter 'downloadToken' is set
+ if ($downloadToken === null || (is_array($downloadToken) && count($downloadToken) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $downloadToken when calling getInboundEmailAttachment'
+ );
+ }
+
+ $resourcePath = '/inbound/attachments/{downloadToken}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($downloadToken !== null) {
+ $resourcePath = str_replace(
+ '{' . 'downloadToken' . '}',
+ ObjectSerializer::toPathValue($downloadToken),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
/**
* Operation getInboundEmailEvents
*
@@ -297,6 +592,9 @@ protected function getInboundEmailEventsRequest($sender = null, $startDate = nul
if ($limit !== null && $limit > 500) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling InboundParsingApi.getInboundEmailEvents, must be smaller than or equal to 500.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling InboundParsingApi.getInboundEmailEvents, must be bigger than or equal to 0.');
+ }
$resourcePath = '/inbound/events';
diff --git a/lib/Api/MasterAccountApi.php b/lib/Api/MasterAccountApi.php
index 1b4ea0de..362a7b2f 100644
--- a/lib/Api/MasterAccountApi.php
+++ b/lib/Api/MasterAccountApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
diff --git a/lib/Api/NotesApi.php b/lib/Api/NotesApi.php
new file mode 100644
index 00000000..d9f618cb
--- /dev/null
+++ b/lib/Api/NotesApi.php
@@ -0,0 +1,1562 @@
+client = $client ?: new Client();
+ $this->config = $config ?: new Configuration();
+ $this->headerSelector = $selector ?: new HeaderSelector();
+ }
+
+ /**
+ * @return Configuration
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
+
+ /**
+ * Operation crmNotesGet
+ *
+ * Get all notes
+ *
+ * @param string $entity Filter by note entity type (optional)
+ * @param string $entityIds Filter by note entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\NoteList
+ */
+ public function crmNotesGet($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+ list($response) = $this->crmNotesGetWithHttpInfo($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort);
+ return $response;
+ }
+
+ /**
+ * Operation crmNotesGetWithHttpInfo
+ *
+ * Get all notes
+ *
+ * @param string $entity Filter by note entity type (optional)
+ * @param string $entityIds Filter by note entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\NoteList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmNotesGetWithHttpInfo($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\NoteList';
+ $request = $this->crmNotesGetRequest($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\NoteList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmNotesGetAsync
+ *
+ * Get all notes
+ *
+ * @param string $entity Filter by note entity type (optional)
+ * @param string $entityIds Filter by note entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesGetAsync($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+ return $this->crmNotesGetAsyncWithHttpInfo($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmNotesGetAsyncWithHttpInfo
+ *
+ * Get all notes
+ *
+ * @param string $entity Filter by note entity type (optional)
+ * @param string $entityIds Filter by note entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesGetAsyncWithHttpInfo($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\NoteList';
+ $request = $this->crmNotesGetRequest($entity, $entityIds, $dateFrom, $dateTo, $offset, $limit, $sort);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmNotesGet'
+ *
+ * @param string $entity Filter by note entity type (optional)
+ * @param string $entityIds Filter by note entity IDs (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmNotesGetRequest($entity = null, $entityIds = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null)
+ {
+
+ $resourcePath = '/crm/notes';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($entity !== null) {
+ $queryParams['entity'] = ObjectSerializer::toQueryValue($entity);
+ }
+ // query params
+ if ($entityIds !== null) {
+ $queryParams['entityIds'] = ObjectSerializer::toQueryValue($entityIds);
+ }
+ // query params
+ if ($dateFrom !== null) {
+ $queryParams['dateFrom'] = ObjectSerializer::toQueryValue($dateFrom);
+ }
+ // query params
+ if ($dateTo !== null) {
+ $queryParams['dateTo'] = ObjectSerializer::toQueryValue($dateTo);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
+ }
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($sort !== null) {
+ $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmNotesIdDelete
+ *
+ * Delete a note
+ *
+ * @param string $id Note ID to delete (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function crmNotesIdDelete($id)
+ {
+ $this->crmNotesIdDeleteWithHttpInfo($id);
+ }
+
+ /**
+ * Operation crmNotesIdDeleteWithHttpInfo
+ *
+ * Delete a note
+ *
+ * @param string $id Note ID to delete (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmNotesIdDeleteWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->crmNotesIdDeleteRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmNotesIdDeleteAsync
+ *
+ * Delete a note
+ *
+ * @param string $id Note ID to delete (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesIdDeleteAsync($id)
+ {
+ return $this->crmNotesIdDeleteAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmNotesIdDeleteAsyncWithHttpInfo
+ *
+ * Delete a note
+ *
+ * @param string $id Note ID to delete (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesIdDeleteAsyncWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->crmNotesIdDeleteRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmNotesIdDelete'
+ *
+ * @param string $id Note ID to delete (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmNotesIdDeleteRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmNotesIdDelete'
+ );
+ }
+
+ $resourcePath = '/crm/notes/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmNotesIdGet
+ *
+ * Get a note
+ *
+ * @param string $id Note ID to get (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\Note
+ */
+ public function crmNotesIdGet($id)
+ {
+ list($response) = $this->crmNotesIdGetWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation crmNotesIdGetWithHttpInfo
+ *
+ * Get a note
+ *
+ * @param string $id Note ID to get (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\Note, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmNotesIdGetWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\Note';
+ $request = $this->crmNotesIdGetRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\Note',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmNotesIdGetAsync
+ *
+ * Get a note
+ *
+ * @param string $id Note ID to get (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesIdGetAsync($id)
+ {
+ return $this->crmNotesIdGetAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmNotesIdGetAsyncWithHttpInfo
+ *
+ * Get a note
+ *
+ * @param string $id Note ID to get (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesIdGetAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\Note';
+ $request = $this->crmNotesIdGetRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmNotesIdGet'
+ *
+ * @param string $id Note ID to get (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmNotesIdGetRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmNotesIdGet'
+ );
+ }
+
+ $resourcePath = '/crm/notes/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmNotesIdPatch
+ *
+ * Update a note
+ *
+ * @param string $id Note ID to update (required)
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to update a note (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function crmNotesIdPatch($id, $body)
+ {
+ $this->crmNotesIdPatchWithHttpInfo($id, $body);
+ }
+
+ /**
+ * Operation crmNotesIdPatchWithHttpInfo
+ *
+ * Update a note
+ *
+ * @param string $id Note ID to update (required)
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to update a note (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmNotesIdPatchWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->crmNotesIdPatchRequest($id, $body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 415:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmNotesIdPatchAsync
+ *
+ * Update a note
+ *
+ * @param string $id Note ID to update (required)
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to update a note (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesIdPatchAsync($id, $body)
+ {
+ return $this->crmNotesIdPatchAsyncWithHttpInfo($id, $body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmNotesIdPatchAsyncWithHttpInfo
+ *
+ * Update a note
+ *
+ * @param string $id Note ID to update (required)
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to update a note (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesIdPatchAsyncWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->crmNotesIdPatchRequest($id, $body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmNotesIdPatch'
+ *
+ * @param string $id Note ID to update (required)
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to update a note (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmNotesIdPatchRequest($id, $body)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmNotesIdPatch'
+ );
+ }
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling crmNotesIdPatch'
+ );
+ }
+
+ $resourcePath = '/crm/notes/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmNotesPost
+ *
+ * Create a note
+ *
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to create a note. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\NoteId
+ */
+ public function crmNotesPost($body)
+ {
+ list($response) = $this->crmNotesPostWithHttpInfo($body);
+ return $response;
+ }
+
+ /**
+ * Operation crmNotesPostWithHttpInfo
+ *
+ * Create a note
+ *
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to create a note. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\NoteId, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmNotesPostWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\NoteId';
+ $request = $this->crmNotesPostRequest($body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\NoteId',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 415:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmNotesPostAsync
+ *
+ * Create a note
+ *
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to create a note. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesPostAsync($body)
+ {
+ return $this->crmNotesPostAsyncWithHttpInfo($body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmNotesPostAsyncWithHttpInfo
+ *
+ * Create a note
+ *
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to create a note. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmNotesPostAsyncWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\NoteId';
+ $request = $this->crmNotesPostRequest($body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmNotesPost'
+ *
+ * @param \SendinBlue\Client\Model\NoteData $body Note data to create a note. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmNotesPostRequest($body)
+ {
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling crmNotesPost'
+ );
+ }
+
+ $resourcePath = '/crm/notes';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Create http client option
+ *
+ * @throws \RuntimeException on file opening failure
+ * @return array of http client options
+ */
+ protected function createHttpClientOption()
+ {
+ $options = [];
+ if ($this->config->getDebug()) {
+ $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
+ if (!$options[RequestOptions::DEBUG]) {
+ throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
+ }
+ }
+
+ return $options;
+ }
+}
diff --git a/lib/Api/ProcessApi.php b/lib/Api/ProcessApi.php
index 0de1c302..2162f9a8 100644
--- a/lib/Api/ProcessApi.php
+++ b/lib/Api/ProcessApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -174,7 +174,7 @@ public function getProcessWithHttpInfo($processId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -182,7 +182,7 @@ public function getProcessWithHttpInfo($processId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -577,6 +577,9 @@ protected function getProcessesRequest($limit = '10', $offset = '0', $sort = 'de
if ($limit !== null && $limit > 50) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling ProcessApi.getProcesses, must be smaller than or equal to 50.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling ProcessApi.getProcesses, must be bigger than or equal to 0.');
+ }
$resourcePath = '/processes';
diff --git a/lib/Api/ResellerApi.php b/lib/Api/ResellerApi.php
index 26dd8bf9..c28852ac 100644
--- a/lib/Api/ResellerApi.php
+++ b/lib/Api/ResellerApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -184,7 +184,7 @@ public function addCreditsWithHttpInfo($childIdentifier, $addCredits)
);
$e->setResponseObject($data);
break;
- case 403:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -192,7 +192,7 @@ public function addCreditsWithHttpInfo($childIdentifier, $addCredits)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -750,7 +750,7 @@ public function createChildDomainWithHttpInfo($childIdentifier, $addChildDomain)
);
$e->setResponseObject($data);
break;
- case 403:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -758,7 +758,7 @@ public function createChildDomainWithHttpInfo($childIdentifier, $addChildDomain)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1306,7 +1306,7 @@ public function deleteChildDomainWithHttpInfo($childIdentifier, $domainName)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1322,7 +1322,7 @@ public function deleteChildDomainWithHttpInfo($childIdentifier, $domainName)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1589,7 +1589,7 @@ public function deleteResellerChildWithHttpInfo($childIdentifier)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1605,7 +1605,7 @@ public function deleteResellerChildWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2158,7 +2158,7 @@ public function getChildAccountCreationStatusWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 403:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2166,7 +2166,7 @@ public function getChildAccountCreationStatusWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2453,7 +2453,7 @@ public function getChildDomainsWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2461,7 +2461,7 @@ public function getChildDomainsWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 403:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2469,7 +2469,7 @@ public function getChildDomainsWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2756,7 +2756,7 @@ public function getChildInfoWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2764,7 +2764,7 @@ public function getChildInfoWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 403:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2772,7 +2772,7 @@ public function getChildInfoWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3162,6 +3162,9 @@ protected function getResellerChildsRequest($limit = '10', $offset = '0')
if ($limit !== null && $limit > 20) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling ResellerApi.getResellerChilds, must be smaller than or equal to 20.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling ResellerApi.getResellerChilds, must be bigger than or equal to 0.');
+ }
$resourcePath = '/reseller/children';
@@ -3349,7 +3352,7 @@ public function getSsoTokenWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3357,7 +3360,7 @@ public function getSsoTokenWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 403:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3365,7 +3368,7 @@ public function getSsoTokenWithHttpInfo($childIdentifier)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3662,7 +3665,7 @@ public function removeCreditsWithHttpInfo($childIdentifier, $removeCredits)
);
$e->setResponseObject($data);
break;
- case 403:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3670,7 +3673,7 @@ public function removeCreditsWithHttpInfo($childIdentifier, $removeCredits)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3948,7 +3951,7 @@ public function updateChildAccountStatusWithHttpInfo($childIdentifier, $updateCh
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3956,7 +3959,7 @@ public function updateChildAccountStatusWithHttpInfo($childIdentifier, $updateCh
);
$e->setResponseObject($data);
break;
- case 403:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3964,7 +3967,7 @@ public function updateChildAccountStatusWithHttpInfo($childIdentifier, $updateCh
);
$e->setResponseObject($data);
break;
- case 404:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4230,7 +4233,7 @@ public function updateChildDomainWithHttpInfo($childIdentifier, $domainName, $up
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4238,7 +4241,7 @@ public function updateChildDomainWithHttpInfo($childIdentifier, $domainName, $up
);
$e->setResponseObject($data);
break;
- case 403:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4246,7 +4249,7 @@ public function updateChildDomainWithHttpInfo($childIdentifier, $domainName, $up
);
$e->setResponseObject($data);
break;
- case 404:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4527,7 +4530,7 @@ public function updateResellerChildWithHttpInfo($childIdentifier, $resellerChild
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4535,7 +4538,7 @@ public function updateResellerChildWithHttpInfo($childIdentifier, $resellerChild
);
$e->setResponseObject($data);
break;
- case 403:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4543,7 +4546,7 @@ public function updateResellerChildWithHttpInfo($childIdentifier, $resellerChild
);
$e->setResponseObject($data);
break;
- case 404:
+ case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
diff --git a/lib/Api/SMSCampaignsApi.php b/lib/Api/SMSCampaignsApi.php
index 982d25b5..58194029 100644
--- a/lib/Api/SMSCampaignsApi.php
+++ b/lib/Api/SMSCampaignsApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -433,7 +433,7 @@ public function deleteSmsCampaignWithHttpInfo($campaignId)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -441,7 +441,7 @@ public function deleteSmsCampaignWithHttpInfo($campaignId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1132,6 +1132,9 @@ protected function getSmsCampaignsRequest($status = null, $startDate = null, $en
if ($limit !== null && $limit > 1000) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling SMSCampaignsApi.getSmsCampaigns, must be smaller than or equal to 1000.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling SMSCampaignsApi.getSmsCampaigns, must be bigger than or equal to 0.');
+ }
$resourcePath = '/smsCampaigns';
diff --git a/lib/Api/SendersApi.php b/lib/Api/SendersApi.php
index 79bffc13..31bac59b 100644
--- a/lib/Api/SendersApi.php
+++ b/lib/Api/SendersApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -427,7 +427,7 @@ public function deleteSenderWithHttpInfo($senderId)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -435,7 +435,7 @@ public function deleteSenderWithHttpInfo($senderId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -968,7 +968,7 @@ public function getIpsFromSenderWithHttpInfo($senderId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -976,7 +976,7 @@ public function getIpsFromSenderWithHttpInfo($senderId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
diff --git a/lib/Api/TasksApi.php b/lib/Api/TasksApi.php
new file mode 100644
index 00000000..782a85dc
--- /dev/null
+++ b/lib/Api/TasksApi.php
@@ -0,0 +1,1852 @@
+client = $client ?: new Client();
+ $this->config = $config ?: new Configuration();
+ $this->headerSelector = $selector ?: new HeaderSelector();
+ }
+
+ /**
+ * @return Configuration
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
+
+ /**
+ * Operation crmTasksGet
+ *
+ * Get all tasks
+ *
+ * @param string $filterType Filter by task type (ID) (optional)
+ * @param string $filterStatus Filter by task status (optional)
+ * @param string $filterDate Filter by date (optional)
+ * @param string $filterAssignTo Filter by assignTo id (optional)
+ * @param string $filterContacts Filter by contact ids (optional)
+ * @param string $filterDeals Filter by deals ids (optional)
+ * @param string $filterCompanies Filter by companies ids (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\TaskList
+ */
+ public function crmTasksGet($filterType = null, $filterStatus = null, $filterDate = null, $filterAssignTo = null, $filterContacts = null, $filterDeals = null, $filterCompanies = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ list($response) = $this->crmTasksGetWithHttpInfo($filterType, $filterStatus, $filterDate, $filterAssignTo, $filterContacts, $filterDeals, $filterCompanies, $dateFrom, $dateTo, $offset, $limit, $sort, $sortBy);
+ return $response;
+ }
+
+ /**
+ * Operation crmTasksGetWithHttpInfo
+ *
+ * Get all tasks
+ *
+ * @param string $filterType Filter by task type (ID) (optional)
+ * @param string $filterStatus Filter by task status (optional)
+ * @param string $filterDate Filter by date (optional)
+ * @param string $filterAssignTo Filter by assignTo id (optional)
+ * @param string $filterContacts Filter by contact ids (optional)
+ * @param string $filterDeals Filter by deals ids (optional)
+ * @param string $filterCompanies Filter by companies ids (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\TaskList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmTasksGetWithHttpInfo($filterType = null, $filterStatus = null, $filterDate = null, $filterAssignTo = null, $filterContacts = null, $filterDeals = null, $filterCompanies = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\TaskList';
+ $request = $this->crmTasksGetRequest($filterType, $filterStatus, $filterDate, $filterAssignTo, $filterContacts, $filterDeals, $filterCompanies, $dateFrom, $dateTo, $offset, $limit, $sort, $sortBy);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\TaskList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmTasksGetAsync
+ *
+ * Get all tasks
+ *
+ * @param string $filterType Filter by task type (ID) (optional)
+ * @param string $filterStatus Filter by task status (optional)
+ * @param string $filterDate Filter by date (optional)
+ * @param string $filterAssignTo Filter by assignTo id (optional)
+ * @param string $filterContacts Filter by contact ids (optional)
+ * @param string $filterDeals Filter by deals ids (optional)
+ * @param string $filterCompanies Filter by companies ids (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksGetAsync($filterType = null, $filterStatus = null, $filterDate = null, $filterAssignTo = null, $filterContacts = null, $filterDeals = null, $filterCompanies = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ return $this->crmTasksGetAsyncWithHttpInfo($filterType, $filterStatus, $filterDate, $filterAssignTo, $filterContacts, $filterDeals, $filterCompanies, $dateFrom, $dateTo, $offset, $limit, $sort, $sortBy)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmTasksGetAsyncWithHttpInfo
+ *
+ * Get all tasks
+ *
+ * @param string $filterType Filter by task type (ID) (optional)
+ * @param string $filterStatus Filter by task status (optional)
+ * @param string $filterDate Filter by date (optional)
+ * @param string $filterAssignTo Filter by assignTo id (optional)
+ * @param string $filterContacts Filter by contact ids (optional)
+ * @param string $filterDeals Filter by deals ids (optional)
+ * @param string $filterCompanies Filter by companies ids (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksGetAsyncWithHttpInfo($filterType = null, $filterStatus = null, $filterDate = null, $filterAssignTo = null, $filterContacts = null, $filterDeals = null, $filterCompanies = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\TaskList';
+ $request = $this->crmTasksGetRequest($filterType, $filterStatus, $filterDate, $filterAssignTo, $filterContacts, $filterDeals, $filterCompanies, $dateFrom, $dateTo, $offset, $limit, $sort, $sortBy);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmTasksGet'
+ *
+ * @param string $filterType Filter by task type (ID) (optional)
+ * @param string $filterStatus Filter by task status (optional)
+ * @param string $filterDate Filter by date (optional)
+ * @param string $filterAssignTo Filter by assignTo id (optional)
+ * @param string $filterContacts Filter by contact ids (optional)
+ * @param string $filterDeals Filter by deals ids (optional)
+ * @param string $filterCompanies Filter by companies ids (optional)
+ * @param int $dateFrom dateFrom to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $dateTo dateTo to date range filter type (timestamp in milliseconds) (optional)
+ * @param int $offset Index of the first document of the page (optional)
+ * @param int $limit Number of documents per page (optional, default to 50)
+ * @param string $sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
+ * @param string $sortBy The field used to sort field names. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmTasksGetRequest($filterType = null, $filterStatus = null, $filterDate = null, $filterAssignTo = null, $filterContacts = null, $filterDeals = null, $filterCompanies = null, $dateFrom = null, $dateTo = null, $offset = null, $limit = '50', $sort = null, $sortBy = null)
+ {
+
+ $resourcePath = '/crm/tasks';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($filterType !== null) {
+ $queryParams['filter[type]'] = ObjectSerializer::toQueryValue($filterType);
+ }
+ // query params
+ if ($filterStatus !== null) {
+ $queryParams['filter[status]'] = ObjectSerializer::toQueryValue($filterStatus);
+ }
+ // query params
+ if ($filterDate !== null) {
+ $queryParams['filter[date]'] = ObjectSerializer::toQueryValue($filterDate);
+ }
+ // query params
+ if ($filterAssignTo !== null) {
+ $queryParams['filter[assignTo]'] = ObjectSerializer::toQueryValue($filterAssignTo);
+ }
+ // query params
+ if ($filterContacts !== null) {
+ $queryParams['filter[contacts]'] = ObjectSerializer::toQueryValue($filterContacts);
+ }
+ // query params
+ if ($filterDeals !== null) {
+ $queryParams['filter[deals]'] = ObjectSerializer::toQueryValue($filterDeals);
+ }
+ // query params
+ if ($filterCompanies !== null) {
+ $queryParams['filter[companies]'] = ObjectSerializer::toQueryValue($filterCompanies);
+ }
+ // query params
+ if ($dateFrom !== null) {
+ $queryParams['dateFrom'] = ObjectSerializer::toQueryValue($dateFrom);
+ }
+ // query params
+ if ($dateTo !== null) {
+ $queryParams['dateTo'] = ObjectSerializer::toQueryValue($dateTo);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
+ }
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($sort !== null) {
+ $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);
+ }
+ // query params
+ if ($sortBy !== null) {
+ $queryParams['sortBy'] = ObjectSerializer::toQueryValue($sortBy);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmTasksIdDelete
+ *
+ * Delete a task
+ *
+ * @param string $id id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function crmTasksIdDelete($id)
+ {
+ $this->crmTasksIdDeleteWithHttpInfo($id);
+ }
+
+ /**
+ * Operation crmTasksIdDeleteWithHttpInfo
+ *
+ * Delete a task
+ *
+ * @param string $id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmTasksIdDeleteWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->crmTasksIdDeleteRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmTasksIdDeleteAsync
+ *
+ * Delete a task
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksIdDeleteAsync($id)
+ {
+ return $this->crmTasksIdDeleteAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmTasksIdDeleteAsyncWithHttpInfo
+ *
+ * Delete a task
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksIdDeleteAsyncWithHttpInfo($id)
+ {
+ $returnType = '';
+ $request = $this->crmTasksIdDeleteRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmTasksIdDelete'
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmTasksIdDeleteRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmTasksIdDelete'
+ );
+ }
+
+ $resourcePath = '/crm/tasks/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmTasksIdGet
+ *
+ * Get a task
+ *
+ * @param string $id id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\Task
+ */
+ public function crmTasksIdGet($id)
+ {
+ list($response) = $this->crmTasksIdGetWithHttpInfo($id);
+ return $response;
+ }
+
+ /**
+ * Operation crmTasksIdGetWithHttpInfo
+ *
+ * Get a task
+ *
+ * @param string $id (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\Task, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmTasksIdGetWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\Task';
+ $request = $this->crmTasksIdGetRequest($id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\Task',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmTasksIdGetAsync
+ *
+ * Get a task
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksIdGetAsync($id)
+ {
+ return $this->crmTasksIdGetAsyncWithHttpInfo($id)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmTasksIdGetAsyncWithHttpInfo
+ *
+ * Get a task
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksIdGetAsyncWithHttpInfo($id)
+ {
+ $returnType = '\SendinBlue\Client\Model\Task';
+ $request = $this->crmTasksIdGetRequest($id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmTasksIdGet'
+ *
+ * @param string $id (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmTasksIdGetRequest($id)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmTasksIdGet'
+ );
+ }
+
+ $resourcePath = '/crm/tasks/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmTasksIdPatch
+ *
+ * Update a task
+ *
+ * @param string $id id (required)
+ * @param \SendinBlue\Client\Model\Body7 $body Updated task details. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function crmTasksIdPatch($id, $body)
+ {
+ $this->crmTasksIdPatchWithHttpInfo($id, $body);
+ }
+
+ /**
+ * Operation crmTasksIdPatchWithHttpInfo
+ *
+ * Update a task
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body7 $body Updated task details. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmTasksIdPatchWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->crmTasksIdPatchRequest($id, $body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmTasksIdPatchAsync
+ *
+ * Update a task
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body7 $body Updated task details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksIdPatchAsync($id, $body)
+ {
+ return $this->crmTasksIdPatchAsyncWithHttpInfo($id, $body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmTasksIdPatchAsyncWithHttpInfo
+ *
+ * Update a task
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body7 $body Updated task details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksIdPatchAsyncWithHttpInfo($id, $body)
+ {
+ $returnType = '';
+ $request = $this->crmTasksIdPatchRequest($id, $body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmTasksIdPatch'
+ *
+ * @param string $id (required)
+ * @param \SendinBlue\Client\Model\Body7 $body Updated task details. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmTasksIdPatchRequest($id, $body)
+ {
+ // verify the required parameter 'id' is set
+ if ($id === null || (is_array($id) && count($id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $id when calling crmTasksIdPatch'
+ );
+ }
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling crmTasksIdPatch'
+ );
+ }
+
+ $resourcePath = '/crm/tasks/{id}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'id' . '}',
+ ObjectSerializer::toPathValue($id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'PATCH',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmTasksPost
+ *
+ * Create a task
+ *
+ * @param \SendinBlue\Client\Model\Body6 $body Task name. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\InlineResponse2011
+ */
+ public function crmTasksPost($body)
+ {
+ list($response) = $this->crmTasksPostWithHttpInfo($body);
+ return $response;
+ }
+
+ /**
+ * Operation crmTasksPostWithHttpInfo
+ *
+ * Create a task
+ *
+ * @param \SendinBlue\Client\Model\Body6 $body Task name. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\InlineResponse2011, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmTasksPostWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\InlineResponse2011';
+ $request = $this->crmTasksPostRequest($body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 201:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\InlineResponse2011',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmTasksPostAsync
+ *
+ * Create a task
+ *
+ * @param \SendinBlue\Client\Model\Body6 $body Task name. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksPostAsync($body)
+ {
+ return $this->crmTasksPostAsyncWithHttpInfo($body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmTasksPostAsyncWithHttpInfo
+ *
+ * Create a task
+ *
+ * @param \SendinBlue\Client\Model\Body6 $body Task name. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasksPostAsyncWithHttpInfo($body)
+ {
+ $returnType = '\SendinBlue\Client\Model\InlineResponse2011';
+ $request = $this->crmTasksPostRequest($body);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmTasksPost'
+ *
+ * @param \SendinBlue\Client\Model\Body6 $body Task name. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmTasksPostRequest($body)
+ {
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling crmTasksPost'
+ );
+ }
+
+ $resourcePath = '/crm/tasks';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation crmTasktypesGet
+ *
+ * Get all task types
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\TaskTypes
+ */
+ public function crmTasktypesGet()
+ {
+ list($response) = $this->crmTasktypesGetWithHttpInfo();
+ return $response;
+ }
+
+ /**
+ * Operation crmTasktypesGetWithHttpInfo
+ *
+ * Get all task types
+ *
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\TaskTypes, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function crmTasktypesGetWithHttpInfo()
+ {
+ $returnType = '\SendinBlue\Client\Model\TaskTypes';
+ $request = $this->crmTasktypesGetRequest();
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\TaskTypes',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation crmTasktypesGetAsync
+ *
+ * Get all task types
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasktypesGetAsync()
+ {
+ return $this->crmTasktypesGetAsyncWithHttpInfo()
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation crmTasktypesGetAsyncWithHttpInfo
+ *
+ * Get all task types
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function crmTasktypesGetAsyncWithHttpInfo()
+ {
+ $returnType = '\SendinBlue\Client\Model\TaskTypes';
+ $request = $this->crmTasktypesGetRequest();
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'crmTasktypesGet'
+ *
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function crmTasktypesGetRequest()
+ {
+
+ $resourcePath = '/crm/tasktypes';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Create http client option
+ *
+ * @throws \RuntimeException on file opening failure
+ * @return array of http client options
+ */
+ protected function createHttpClientOption()
+ {
+ $options = [];
+ if ($this->config->getDebug()) {
+ $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
+ if (!$options[RequestOptions::DEBUG]) {
+ throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
+ }
+ }
+
+ return $options;
+ }
+}
diff --git a/lib/Api/TransactionalEmailsApi.php b/lib/Api/TransactionalEmailsApi.php
index 659814aa..9d2bb8a4 100644
--- a/lib/Api/TransactionalEmailsApi.php
+++ b/lib/Api/TransactionalEmailsApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -1326,7 +1326,7 @@ protected function deleteScheduledEmailByIdRequest($identifier)
} else {
// for HTTP post (form)
- $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ $httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
}
}
@@ -1352,7 +1352,7 @@ protected function deleteScheduledEmailByIdRequest($identifier)
$headers
);
- $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ $query = \GuzzleHttp\Psr7\Query::build($queryParams);
return new Request(
'DELETE',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
@@ -1425,7 +1425,7 @@ public function deleteSmtpTemplateWithHttpInfo($templateId)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -1433,7 +1433,7 @@ public function deleteSmtpTemplateWithHttpInfo($templateId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -2188,7 +2188,7 @@ protected function getBlockedDomainsRequest()
*
* Get all your transactional email activity (unaggregated events)
*
- * @param int $limit Number limitation for the result returned (optional, default to 50)
+ * @param int $limit Number limitation for the result returned (optional, default to 2500)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -2204,7 +2204,7 @@ protected function getBlockedDomainsRequest()
* @throws \InvalidArgumentException
* @return \SendinBlue\Client\Model\GetEmailEventReport
*/
- public function getEmailEventReport($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
+ public function getEmailEventReport($limit = '2500', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
{
list($response) = $this->getEmailEventReportWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId, $sort);
return $response;
@@ -2215,7 +2215,7 @@ public function getEmailEventReport($limit = '50', $offset = '0', $startDate = n
*
* Get all your transactional email activity (unaggregated events)
*
- * @param int $limit Number limitation for the result returned (optional, default to 50)
+ * @param int $limit Number limitation for the result returned (optional, default to 2500)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -2231,7 +2231,7 @@ public function getEmailEventReport($limit = '50', $offset = '0', $startDate = n
* @throws \InvalidArgumentException
* @return array of \SendinBlue\Client\Model\GetEmailEventReport, HTTP status code, HTTP response headers (array of strings)
*/
- public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
+ public function getEmailEventReportWithHttpInfo($limit = '2500', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
{
$returnType = '\SendinBlue\Client\Model\GetEmailEventReport';
$request = $this->getEmailEventReportRequest($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId, $sort);
@@ -2308,7 +2308,7 @@ public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $s
*
* Get all your transactional email activity (unaggregated events)
*
- * @param int $limit Number limitation for the result returned (optional, default to 50)
+ * @param int $limit Number limitation for the result returned (optional, default to 2500)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -2323,7 +2323,7 @@ public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $s
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getEmailEventReportAsync($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
+ public function getEmailEventReportAsync($limit = '2500', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
{
return $this->getEmailEventReportAsyncWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId, $sort)
->then(
@@ -2338,7 +2338,7 @@ function ($response) {
*
* Get all your transactional email activity (unaggregated events)
*
- * @param int $limit Number limitation for the result returned (optional, default to 50)
+ * @param int $limit Number limitation for the result returned (optional, default to 2500)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -2353,7 +2353,7 @@ function ($response) {
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getEmailEventReportAsyncWithHttpInfo($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
+ public function getEmailEventReportAsyncWithHttpInfo($limit = '2500', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
{
$returnType = '\SendinBlue\Client\Model\GetEmailEventReport';
$request = $this->getEmailEventReportRequest($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId, $sort);
@@ -2398,7 +2398,7 @@ function ($exception) {
/**
* Create request for operation 'getEmailEventReport'
*
- * @param int $limit Number limitation for the result returned (optional, default to 50)
+ * @param int $limit Number limitation for the result returned (optional, default to 2500)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -2413,10 +2413,13 @@ function ($exception) {
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function getEmailEventReportRequest($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
+ protected function getEmailEventReportRequest($limit = '2500', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null, $sort = 'desc')
{
- if ($limit !== null && $limit > 100) {
- throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getEmailEventReport, must be smaller than or equal to 100.');
+ if ($limit !== null && $limit > 5000) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getEmailEventReport, must be smaller than or equal to 5000.');
+ }
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getEmailEventReport, must be bigger than or equal to 0.');
}
@@ -2783,6 +2786,9 @@ protected function getScheduledEmailByBatchIdRequest($batchId, $startDate = null
if ($limit !== null && $limit > 500) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getScheduledEmailByBatchId, must be smaller than or equal to 500.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getScheduledEmailByBatchId, must be bigger than or equal to 0.');
+ }
$resourcePath = '/smtp/emailStatus/{batchId}';
@@ -3435,6 +3441,9 @@ protected function getSmtpReportRequest($limit = '10', $offset = '0', $startDate
if ($limit !== null && $limit > 30) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getSmtpReport, must be smaller than or equal to 30.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getSmtpReport, must be bigger than or equal to 0.');
+ }
$resourcePath = '/smtp/statistics/reports';
@@ -3642,7 +3651,7 @@ public function getSmtpTemplateWithHttpInfo($templateId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -3650,7 +3659,7 @@ public function getSmtpTemplateWithHttpInfo($templateId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -4050,6 +4059,9 @@ protected function getSmtpTemplatesRequest($templateStatus = null, $limit = '50'
if ($limit !== null && $limit > 1000) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getSmtpTemplates, must be smaller than or equal to 1000.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getSmtpTemplates, must be bigger than or equal to 0.');
+ }
$resourcePath = '/smtp/templates';
@@ -4368,6 +4380,9 @@ protected function getTransacBlockedContactsRequest($startDate = null, $endDate
if ($limit !== null && $limit > 100) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getTransacBlockedContacts, must be smaller than or equal to 100.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getTransacBlockedContacts, must be bigger than or equal to 0.');
+ }
$resourcePath = '/smtp/blockedContacts';
@@ -4986,6 +5001,9 @@ protected function getTransacEmailsListRequest($email = null, $templateId = null
if ($limit !== null && $limit > 1000) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getTransacEmailsList, must be smaller than or equal to 1000.');
}
+ if ($limit !== null && $limit < 0) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalEmailsApi.getTransacEmailsList, must be bigger than or equal to 0.');
+ }
$resourcePath = '/smtp/emails';
@@ -5994,7 +6012,7 @@ public function smtpLogMessageIdDeleteWithHttpInfo($messageId)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -6002,7 +6020,7 @@ public function smtpLogMessageIdDeleteWithHttpInfo($messageId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
diff --git a/lib/Api/TransactionalSMSApi.php b/lib/Api/TransactionalSMSApi.php
index 740d0df4..d2951f9d 100644
--- a/lib/Api/TransactionalSMSApi.php
+++ b/lib/Api/TransactionalSMSApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
diff --git a/lib/Api/WebhooksApi.php b/lib/Api/WebhooksApi.php
index 1519a89e..27d84846 100644
--- a/lib/Api/WebhooksApi.php
+++ b/lib/Api/WebhooksApi.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -433,7 +433,7 @@ public function deleteWebhookWithHttpInfo($webhookId)
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -441,7 +441,7 @@ public function deleteWebhookWithHttpInfo($webhookId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -714,7 +714,7 @@ public function getWebhookWithHttpInfo($webhookId)
);
$e->setResponseObject($data);
break;
- case 400:
+ case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
@@ -722,7 +722,7 @@ public function getWebhookWithHttpInfo($webhookId)
);
$e->setResponseObject($data);
break;
- case 404:
+ case 400:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\SendinBlue\Client\Model\ErrorModel',
diff --git a/lib/ApiException.php b/lib/ApiException.php
index 54f6515d..9af295c0 100644
--- a/lib/ApiException.php
+++ b/lib/ApiException.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
diff --git a/lib/Configuration.php b/lib/Configuration.php
index c84dccbc..543891f4 100644
--- a/lib/Configuration.php
+++ b/lib/Configuration.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -38,7 +38,7 @@
* @link https://github.com/swagger-api/swagger-codegen
*/
-$GLOBALS['version'] = '8.3.1';
+$GLOBALS['version'] = '8.4.0';
class Configuration
{
diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php
index 9a3fcee8..d6099e23 100644
--- a/lib/HeaderSelector.php
+++ b/lib/HeaderSelector.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
diff --git a/lib/Model/AbTestCampaignResult.php b/lib/Model/AbTestCampaignResult.php
index 4cfa4cc1..49c034d8 100644
--- a/lib/Model/AbTestCampaignResult.php
+++ b/lib/Model/AbTestCampaignResult.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -514,6 +514,7 @@ public function setClickedLinks($clickedLinks)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -526,6 +527,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -539,6 +541,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -555,6 +558,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/AbTestCampaignResultClickedLinks.php b/lib/Model/AbTestCampaignResultClickedLinks.php
index b69bc36f..a8fbe4a6 100644
--- a/lib/Model/AbTestCampaignResultClickedLinks.php
+++ b/lib/Model/AbTestCampaignResultClickedLinks.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setVersionB($versionB)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/AbTestCampaignResultStatistics.php b/lib/Model/AbTestCampaignResultStatistics.php
index 608d6ed1..93309b73 100644
--- a/lib/Model/AbTestCampaignResultStatistics.php
+++ b/lib/Model/AbTestCampaignResultStatistics.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -402,6 +402,7 @@ public function setComplaints($complaints)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -414,6 +415,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -427,6 +429,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -443,6 +446,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/AbTestVersionClicks.php b/lib/Model/AbTestVersionClicks.php
index 22139ae1..3a173942 100644
--- a/lib/Model/AbTestVersionClicks.php
+++ b/lib/Model/AbTestVersionClicks.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -210,6 +210,7 @@ public function valid()
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -222,6 +223,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -235,6 +237,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -251,6 +254,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/AbTestVersionClicksInner.php b/lib/Model/AbTestVersionClicksInner.php
index 1903ecb7..6e172c25 100644
--- a/lib/Model/AbTestVersionClicksInner.php
+++ b/lib/Model/AbTestVersionClicksInner.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -303,6 +303,7 @@ public function setClickRate($clickRate)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -315,6 +316,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -328,6 +330,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -344,6 +347,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/AbTestVersionStats.php b/lib/Model/AbTestVersionStats.php
index 87536916..f1ba5ee6 100644
--- a/lib/Model/AbTestVersionStats.php
+++ b/lib/Model/AbTestVersionStats.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -271,6 +271,7 @@ public function setVersionB($versionB)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -283,6 +284,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -296,6 +298,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -312,6 +315,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/AddChildDomain.php b/lib/Model/AddChildDomain.php
index 94a6321e..67349e6f 100644
--- a/lib/Model/AddChildDomain.php
+++ b/lib/Model/AddChildDomain.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setDomain($domain)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/AddContactToList.php b/lib/Model/AddContactToList.php
index 65e56498..59daba9a 100644
--- a/lib/Model/AddContactToList.php
+++ b/lib/Model/AddContactToList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setIds($ids)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/AddCredits.php b/lib/Model/AddCredits.php
index 7248ae95..2f9ac9f9 100644
--- a/lib/Model/AddCredits.php
+++ b/lib/Model/AddCredits.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setEmail($email)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/BlockDomain.php b/lib/Model/BlockDomain.php
index f06fb03d..7b11fc38 100644
--- a/lib/Model/BlockDomain.php
+++ b/lib/Model/BlockDomain.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setDomain($domain)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/Body.php b/lib/Model/Body.php
index ebf053d2..44f64019 100644
--- a/lib/Model/Body.php
+++ b/lib/Model/Body.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -552,6 +552,7 @@ public function setReminder($reminder)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -564,6 +565,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -577,6 +579,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -593,6 +596,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/Body1.php b/lib/Model/Body1.php
index c404f752..2cc59e16 100644
--- a/lib/Model/Body1.php
+++ b/lib/Model/Body1.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -543,6 +543,7 @@ public function setReminder($reminder)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -555,6 +556,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -568,6 +570,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -584,6 +587,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/Body10.php b/lib/Model/Body10.php
new file mode 100644
index 00000000..cc508f60
--- /dev/null
+++ b/lib/Model/Body10.php
@@ -0,0 +1,401 @@
+ 'string',
+ 'text' => 'string',
+ 'agentId' => 'string',
+ 'groupId' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'visitorId' => null,
+ 'text' => null,
+ 'agentId' => null,
+ 'groupId' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'visitorId' => 'visitorId',
+ 'text' => 'text',
+ 'agentId' => 'agentId',
+ 'groupId' => 'groupId'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'visitorId' => 'setVisitorId',
+ 'text' => 'setText',
+ 'agentId' => 'setAgentId',
+ 'groupId' => 'setGroupId'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'visitorId' => 'getVisitorId',
+ 'text' => 'getText',
+ 'agentId' => 'getAgentId',
+ 'groupId' => 'getGroupId'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['visitorId'] = isset($data['visitorId']) ? $data['visitorId'] : null;
+ $this->container['text'] = isset($data['text']) ? $data['text'] : null;
+ $this->container['agentId'] = isset($data['agentId']) ? $data['agentId'] : null;
+ $this->container['groupId'] = isset($data['groupId']) ? $data['groupId'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['visitorId'] === null) {
+ $invalidProperties[] = "'visitorId' can't be null";
+ }
+ if ($this->container['text'] === null) {
+ $invalidProperties[] = "'text' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets visitorId
+ *
+ * @return string
+ */
+ public function getVisitorId()
+ {
+ return $this->container['visitorId'];
+ }
+
+ /**
+ * Sets visitorId
+ *
+ * @param string $visitorId visitor’s ID received from a webhook or generated by you to bind existing user account to Conversations
+ *
+ * @return $this
+ */
+ public function setVisitorId($visitorId)
+ {
+ $this->container['visitorId'] = $visitorId;
+
+ return $this;
+ }
+
+ /**
+ * Gets text
+ *
+ * @return string
+ */
+ public function getText()
+ {
+ return $this->container['text'];
+ }
+
+ /**
+ * Sets text
+ *
+ * @param string $text message text
+ *
+ * @return $this
+ */
+ public function setText($text)
+ {
+ $this->container['text'] = $text;
+
+ return $this;
+ }
+
+ /**
+ * Gets agentId
+ *
+ * @return string
+ */
+ public function getAgentId()
+ {
+ return $this->container['agentId'];
+ }
+
+ /**
+ * Sets agentId
+ *
+ * @param string $agentId agent ID. It can be found on agent’s page or received from a webhook. Optional if `groupId` is set.
+ *
+ * @return $this
+ */
+ public function setAgentId($agentId)
+ {
+ $this->container['agentId'] = $agentId;
+
+ return $this;
+ }
+
+ /**
+ * Gets groupId
+ *
+ * @return string
+ */
+ public function getGroupId()
+ {
+ return $this->container['groupId'];
+ }
+
+ /**
+ * Sets groupId
+ *
+ * @param string $groupId group ID. It can be found on group’s page. Optional if `agentId` is set.
+ *
+ * @return $this
+ */
+ public function setGroupId($groupId)
+ {
+ $this->container['groupId'] = $groupId;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body11.php b/lib/Model/Body11.php
new file mode 100644
index 00000000..8e9bffeb
--- /dev/null
+++ b/lib/Model/Body11.php
@@ -0,0 +1,308 @@
+ 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'text' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'text' => 'text'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'text' => 'setText'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'text' => 'getText'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['text'] = isset($data['text']) ? $data['text'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['text'] === null) {
+ $invalidProperties[] = "'text' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets text
+ *
+ * @return string
+ */
+ public function getText()
+ {
+ return $this->container['text'];
+ }
+
+ /**
+ * Sets text
+ *
+ * @param string $text edited message text
+ *
+ * @return $this
+ */
+ public function setText($text)
+ {
+ $this->container['text'] = $text;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body12.php b/lib/Model/Body12.php
new file mode 100644
index 00000000..d4fed63c
--- /dev/null
+++ b/lib/Model/Body12.php
@@ -0,0 +1,395 @@
+ 'string',
+ 'receivedFrom' => 'string',
+ 'agentEmail' => 'string',
+ 'agentName' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'agentId' => null,
+ 'receivedFrom' => null,
+ 'agentEmail' => 'email',
+ 'agentName' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'agentId' => 'agentId',
+ 'receivedFrom' => 'receivedFrom',
+ 'agentEmail' => 'agentEmail',
+ 'agentName' => 'agentName'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'agentId' => 'setAgentId',
+ 'receivedFrom' => 'setReceivedFrom',
+ 'agentEmail' => 'setAgentEmail',
+ 'agentName' => 'setAgentName'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'agentId' => 'getAgentId',
+ 'receivedFrom' => 'getReceivedFrom',
+ 'agentEmail' => 'getAgentEmail',
+ 'agentName' => 'getAgentName'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['agentId'] = isset($data['agentId']) ? $data['agentId'] : null;
+ $this->container['receivedFrom'] = isset($data['receivedFrom']) ? $data['receivedFrom'] : null;
+ $this->container['agentEmail'] = isset($data['agentEmail']) ? $data['agentEmail'] : null;
+ $this->container['agentName'] = isset($data['agentName']) ? $data['agentName'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets agentId
+ *
+ * @return string
+ */
+ public function getAgentId()
+ {
+ return $this->container['agentId'];
+ }
+
+ /**
+ * Sets agentId
+ *
+ * @param string $agentId agent ID. It can be found on agent’s page or received from a webhook. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required).
+ *
+ * @return $this
+ */
+ public function setAgentId($agentId)
+ {
+ $this->container['agentId'] = $agentId;
+
+ return $this;
+ }
+
+ /**
+ * Gets receivedFrom
+ *
+ * @return string
+ */
+ public function getReceivedFrom()
+ {
+ return $this->container['receivedFrom'];
+ }
+
+ /**
+ * Sets receivedFrom
+ *
+ * @param string $receivedFrom mark your messages to distinguish messages created by you from the others.
+ *
+ * @return $this
+ */
+ public function setReceivedFrom($receivedFrom)
+ {
+ $this->container['receivedFrom'] = $receivedFrom;
+
+ return $this;
+ }
+
+ /**
+ * Gets agentEmail
+ *
+ * @return string
+ */
+ public function getAgentEmail()
+ {
+ return $this->container['agentEmail'];
+ }
+
+ /**
+ * Sets agentEmail
+ *
+ * @param string $agentEmail agent email. When sending online pings from a standalone system, it’s hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address. If there’s no agent with the specified email address in your Sendinblue organization, a dummy agent will be created automatically.
+ *
+ * @return $this
+ */
+ public function setAgentEmail($agentEmail)
+ {
+ $this->container['agentEmail'] = $agentEmail;
+
+ return $this;
+ }
+
+ /**
+ * Gets agentName
+ *
+ * @return string
+ */
+ public function getAgentName()
+ {
+ return $this->container['agentName'];
+ }
+
+ /**
+ * Sets agentName
+ *
+ * @param string $agentName agent name.
+ *
+ * @return $this
+ */
+ public function setAgentName($agentName)
+ {
+ $this->container['agentName'] = $agentName;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body2.php b/lib/Model/Body2.php
new file mode 100644
index 00000000..a469794b
--- /dev/null
+++ b/lib/Model/Body2.php
@@ -0,0 +1,395 @@
+ 'int[]',
+ 'unlinkContactIds' => 'int[]',
+ 'linkDealsIds' => 'string[]',
+ 'unlinkDealsIds' => 'string[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'linkContactIds' => 'int64',
+ 'unlinkContactIds' => 'int64',
+ 'linkDealsIds' => null,
+ 'unlinkDealsIds' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'linkContactIds' => 'linkContactIds',
+ 'unlinkContactIds' => 'unlinkContactIds',
+ 'linkDealsIds' => 'linkDealsIds',
+ 'unlinkDealsIds' => 'unlinkDealsIds'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'linkContactIds' => 'setLinkContactIds',
+ 'unlinkContactIds' => 'setUnlinkContactIds',
+ 'linkDealsIds' => 'setLinkDealsIds',
+ 'unlinkDealsIds' => 'setUnlinkDealsIds'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'linkContactIds' => 'getLinkContactIds',
+ 'unlinkContactIds' => 'getUnlinkContactIds',
+ 'linkDealsIds' => 'getLinkDealsIds',
+ 'unlinkDealsIds' => 'getUnlinkDealsIds'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['linkContactIds'] = isset($data['linkContactIds']) ? $data['linkContactIds'] : null;
+ $this->container['unlinkContactIds'] = isset($data['unlinkContactIds']) ? $data['unlinkContactIds'] : null;
+ $this->container['linkDealsIds'] = isset($data['linkDealsIds']) ? $data['linkDealsIds'] : null;
+ $this->container['unlinkDealsIds'] = isset($data['unlinkDealsIds']) ? $data['unlinkDealsIds'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets linkContactIds
+ *
+ * @return int[]
+ */
+ public function getLinkContactIds()
+ {
+ return $this->container['linkContactIds'];
+ }
+
+ /**
+ * Sets linkContactIds
+ *
+ * @param int[] $linkContactIds Contact ids for contacts to be linked with company
+ *
+ * @return $this
+ */
+ public function setLinkContactIds($linkContactIds)
+ {
+ $this->container['linkContactIds'] = $linkContactIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets unlinkContactIds
+ *
+ * @return int[]
+ */
+ public function getUnlinkContactIds()
+ {
+ return $this->container['unlinkContactIds'];
+ }
+
+ /**
+ * Sets unlinkContactIds
+ *
+ * @param int[] $unlinkContactIds Contact ids for contacts to be unlinked from company
+ *
+ * @return $this
+ */
+ public function setUnlinkContactIds($unlinkContactIds)
+ {
+ $this->container['unlinkContactIds'] = $unlinkContactIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets linkDealsIds
+ *
+ * @return string[]
+ */
+ public function getLinkDealsIds()
+ {
+ return $this->container['linkDealsIds'];
+ }
+
+ /**
+ * Sets linkDealsIds
+ *
+ * @param string[] $linkDealsIds Deals ids for deals to be linked with company
+ *
+ * @return $this
+ */
+ public function setLinkDealsIds($linkDealsIds)
+ {
+ $this->container['linkDealsIds'] = $linkDealsIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets unlinkDealsIds
+ *
+ * @return string[]
+ */
+ public function getUnlinkDealsIds()
+ {
+ return $this->container['unlinkDealsIds'];
+ }
+
+ /**
+ * Sets unlinkDealsIds
+ *
+ * @param string[] $unlinkDealsIds Deals ids for deals to be unlinked from company
+ *
+ * @return $this
+ */
+ public function setUnlinkDealsIds($unlinkDealsIds)
+ {
+ $this->container['unlinkDealsIds'] = $unlinkDealsIds;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body3.php b/lib/Model/Body3.php
new file mode 100644
index 00000000..72a933bc
--- /dev/null
+++ b/lib/Model/Body3.php
@@ -0,0 +1,338 @@
+ 'string',
+ 'attributes' => 'object'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'name' => null,
+ 'attributes' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+ 'attributes' => 'attributes'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+ 'attributes' => 'setAttributes'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+ 'attributes' => 'getAttributes'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Name of deal
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets attributes
+ *
+ * @return object
+ */
+ public function getAttributes()
+ {
+ return $this->container['attributes'];
+ }
+
+ /**
+ * Sets attributes
+ *
+ * @param object $attributes Attributes fo\\r deal creation
+ *
+ * @return $this
+ */
+ public function setAttributes($attributes)
+ {
+ $this->container['attributes'] = $attributes;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body4.php b/lib/Model/Body4.php
new file mode 100644
index 00000000..b428987b
--- /dev/null
+++ b/lib/Model/Body4.php
@@ -0,0 +1,335 @@
+ 'string',
+ 'attributes' => 'object'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'name' => null,
+ 'attributes' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+ 'attributes' => 'attributes'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+ 'attributes' => 'setAttributes'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+ 'attributes' => 'getAttributes'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Name of deal
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets attributes
+ *
+ * @return object
+ */
+ public function getAttributes()
+ {
+ return $this->container['attributes'];
+ }
+
+ /**
+ * Sets attributes
+ *
+ * @param object $attributes Attributes for deal update
+ *
+ * @return $this
+ */
+ public function setAttributes($attributes)
+ {
+ $this->container['attributes'] = $attributes;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body5.php b/lib/Model/Body5.php
new file mode 100644
index 00000000..0279b654
--- /dev/null
+++ b/lib/Model/Body5.php
@@ -0,0 +1,395 @@
+ 'int[]',
+ 'unlinkContactIds' => 'int[]',
+ 'linkCompanyIds' => 'string[]',
+ 'unlinkCompanyIds' => 'string[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'linkContactIds' => 'int64',
+ 'unlinkContactIds' => 'int64',
+ 'linkCompanyIds' => null,
+ 'unlinkCompanyIds' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'linkContactIds' => 'linkContactIds',
+ 'unlinkContactIds' => 'unlinkContactIds',
+ 'linkCompanyIds' => 'linkCompanyIds',
+ 'unlinkCompanyIds' => 'unlinkCompanyIds'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'linkContactIds' => 'setLinkContactIds',
+ 'unlinkContactIds' => 'setUnlinkContactIds',
+ 'linkCompanyIds' => 'setLinkCompanyIds',
+ 'unlinkCompanyIds' => 'setUnlinkCompanyIds'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'linkContactIds' => 'getLinkContactIds',
+ 'unlinkContactIds' => 'getUnlinkContactIds',
+ 'linkCompanyIds' => 'getLinkCompanyIds',
+ 'unlinkCompanyIds' => 'getUnlinkCompanyIds'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['linkContactIds'] = isset($data['linkContactIds']) ? $data['linkContactIds'] : null;
+ $this->container['unlinkContactIds'] = isset($data['unlinkContactIds']) ? $data['unlinkContactIds'] : null;
+ $this->container['linkCompanyIds'] = isset($data['linkCompanyIds']) ? $data['linkCompanyIds'] : null;
+ $this->container['unlinkCompanyIds'] = isset($data['unlinkCompanyIds']) ? $data['unlinkCompanyIds'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets linkContactIds
+ *
+ * @return int[]
+ */
+ public function getLinkContactIds()
+ {
+ return $this->container['linkContactIds'];
+ }
+
+ /**
+ * Sets linkContactIds
+ *
+ * @param int[] $linkContactIds Contact ids for contacts to be linked with deal
+ *
+ * @return $this
+ */
+ public function setLinkContactIds($linkContactIds)
+ {
+ $this->container['linkContactIds'] = $linkContactIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets unlinkContactIds
+ *
+ * @return int[]
+ */
+ public function getUnlinkContactIds()
+ {
+ return $this->container['unlinkContactIds'];
+ }
+
+ /**
+ * Sets unlinkContactIds
+ *
+ * @param int[] $unlinkContactIds Contact ids for contacts to be unlinked from deal
+ *
+ * @return $this
+ */
+ public function setUnlinkContactIds($unlinkContactIds)
+ {
+ $this->container['unlinkContactIds'] = $unlinkContactIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets linkCompanyIds
+ *
+ * @return string[]
+ */
+ public function getLinkCompanyIds()
+ {
+ return $this->container['linkCompanyIds'];
+ }
+
+ /**
+ * Sets linkCompanyIds
+ *
+ * @param string[] $linkCompanyIds Company ids to be linked with deal
+ *
+ * @return $this
+ */
+ public function setLinkCompanyIds($linkCompanyIds)
+ {
+ $this->container['linkCompanyIds'] = $linkCompanyIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets unlinkCompanyIds
+ *
+ * @return string[]
+ */
+ public function getUnlinkCompanyIds()
+ {
+ return $this->container['unlinkCompanyIds'];
+ }
+
+ /**
+ * Sets unlinkCompanyIds
+ *
+ * @param string[] $unlinkCompanyIds Company ids to be unlinked from deal
+ *
+ * @return $this
+ */
+ public function setUnlinkCompanyIds($unlinkCompanyIds)
+ {
+ $this->container['unlinkCompanyIds'] = $unlinkCompanyIds;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body6.php b/lib/Model/Body6.php
new file mode 100644
index 00000000..0da1da66
--- /dev/null
+++ b/lib/Model/Body6.php
@@ -0,0 +1,623 @@
+ 'string',
+ 'duration' => 'int',
+ 'taskTypeId' => 'string',
+ 'date' => '\DateTime',
+ 'notes' => 'string',
+ 'done' => 'bool',
+ 'assignToId' => 'string',
+ 'contactsIds' => 'int[]',
+ 'dealsIds' => 'string[]',
+ 'companiesIds' => 'string[]',
+ 'reminder' => '\SendinBlue\Client\Model\TaskReminder'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'name' => null,
+ 'duration' => 'int64',
+ 'taskTypeId' => null,
+ 'date' => 'date-time',
+ 'notes' => null,
+ 'done' => null,
+ 'assignToId' => null,
+ 'contactsIds' => null,
+ 'dealsIds' => null,
+ 'companiesIds' => null,
+ 'reminder' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+ 'duration' => 'duration',
+ 'taskTypeId' => 'taskTypeId',
+ 'date' => 'date',
+ 'notes' => 'notes',
+ 'done' => 'done',
+ 'assignToId' => 'assignToId',
+ 'contactsIds' => 'contactsIds',
+ 'dealsIds' => 'dealsIds',
+ 'companiesIds' => 'companiesIds',
+ 'reminder' => 'reminder'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+ 'duration' => 'setDuration',
+ 'taskTypeId' => 'setTaskTypeId',
+ 'date' => 'setDate',
+ 'notes' => 'setNotes',
+ 'done' => 'setDone',
+ 'assignToId' => 'setAssignToId',
+ 'contactsIds' => 'setContactsIds',
+ 'dealsIds' => 'setDealsIds',
+ 'companiesIds' => 'setCompaniesIds',
+ 'reminder' => 'setReminder'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+ 'duration' => 'getDuration',
+ 'taskTypeId' => 'getTaskTypeId',
+ 'date' => 'getDate',
+ 'notes' => 'getNotes',
+ 'done' => 'getDone',
+ 'assignToId' => 'getAssignToId',
+ 'contactsIds' => 'getContactsIds',
+ 'dealsIds' => 'getDealsIds',
+ 'companiesIds' => 'getCompaniesIds',
+ 'reminder' => 'getReminder'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null;
+ $this->container['taskTypeId'] = isset($data['taskTypeId']) ? $data['taskTypeId'] : null;
+ $this->container['date'] = isset($data['date']) ? $data['date'] : null;
+ $this->container['notes'] = isset($data['notes']) ? $data['notes'] : null;
+ $this->container['done'] = isset($data['done']) ? $data['done'] : null;
+ $this->container['assignToId'] = isset($data['assignToId']) ? $data['assignToId'] : null;
+ $this->container['contactsIds'] = isset($data['contactsIds']) ? $data['contactsIds'] : null;
+ $this->container['dealsIds'] = isset($data['dealsIds']) ? $data['dealsIds'] : null;
+ $this->container['companiesIds'] = isset($data['companiesIds']) ? $data['companiesIds'] : null;
+ $this->container['reminder'] = isset($data['reminder']) ? $data['reminder'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ if (!is_null($this->container['duration']) && ($this->container['duration'] < 0)) {
+ $invalidProperties[] = "invalid value for 'duration', must be bigger than or equal to 0.";
+ }
+
+ if ($this->container['taskTypeId'] === null) {
+ $invalidProperties[] = "'taskTypeId' can't be null";
+ }
+ if ($this->container['date'] === null) {
+ $invalidProperties[] = "'date' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Name of task
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets duration
+ *
+ * @return int
+ */
+ public function getDuration()
+ {
+ return $this->container['duration'];
+ }
+
+ /**
+ * Sets duration
+ *
+ * @param int $duration Duration of task in milliseconds [1 minute = 60000 ms]
+ *
+ * @return $this
+ */
+ public function setDuration($duration)
+ {
+
+ if (!is_null($duration) && ($duration < 0)) {
+ throw new \InvalidArgumentException('invalid value for $duration when calling Body6., must be bigger than or equal to 0.');
+ }
+
+ $this->container['duration'] = $duration;
+
+ return $this;
+ }
+
+ /**
+ * Gets taskTypeId
+ *
+ * @return string
+ */
+ public function getTaskTypeId()
+ {
+ return $this->container['taskTypeId'];
+ }
+
+ /**
+ * Sets taskTypeId
+ *
+ * @param string $taskTypeId Id for type of task e.g Call / Email / Meeting etc.
+ *
+ * @return $this
+ */
+ public function setTaskTypeId($taskTypeId)
+ {
+ $this->container['taskTypeId'] = $taskTypeId;
+
+ return $this;
+ }
+
+ /**
+ * Gets date
+ *
+ * @return \DateTime
+ */
+ public function getDate()
+ {
+ return $this->container['date'];
+ }
+
+ /**
+ * Sets date
+ *
+ * @param \DateTime $date Task due date and time
+ *
+ * @return $this
+ */
+ public function setDate($date)
+ {
+ $this->container['date'] = $date;
+
+ return $this;
+ }
+
+ /**
+ * Gets notes
+ *
+ * @return string
+ */
+ public function getNotes()
+ {
+ return $this->container['notes'];
+ }
+
+ /**
+ * Sets notes
+ *
+ * @param string $notes Notes added to a task
+ *
+ * @return $this
+ */
+ public function setNotes($notes)
+ {
+ $this->container['notes'] = $notes;
+
+ return $this;
+ }
+
+ /**
+ * Gets done
+ *
+ * @return bool
+ */
+ public function getDone()
+ {
+ return $this->container['done'];
+ }
+
+ /**
+ * Sets done
+ *
+ * @param bool $done Task marked as done
+ *
+ * @return $this
+ */
+ public function setDone($done)
+ {
+ $this->container['done'] = $done;
+
+ return $this;
+ }
+
+ /**
+ * Gets assignToId
+ *
+ * @return string
+ */
+ public function getAssignToId()
+ {
+ return $this->container['assignToId'];
+ }
+
+ /**
+ * Sets assignToId
+ *
+ * @param string $assignToId User id to whom task is assigned
+ *
+ * @return $this
+ */
+ public function setAssignToId($assignToId)
+ {
+ $this->container['assignToId'] = $assignToId;
+
+ return $this;
+ }
+
+ /**
+ * Gets contactsIds
+ *
+ * @return int[]
+ */
+ public function getContactsIds()
+ {
+ return $this->container['contactsIds'];
+ }
+
+ /**
+ * Sets contactsIds
+ *
+ * @param int[] $contactsIds Contact ids for contacts linked to this task
+ *
+ * @return $this
+ */
+ public function setContactsIds($contactsIds)
+ {
+ $this->container['contactsIds'] = $contactsIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets dealsIds
+ *
+ * @return string[]
+ */
+ public function getDealsIds()
+ {
+ return $this->container['dealsIds'];
+ }
+
+ /**
+ * Sets dealsIds
+ *
+ * @param string[] $dealsIds Deal ids for deals a task is linked to
+ *
+ * @return $this
+ */
+ public function setDealsIds($dealsIds)
+ {
+ $this->container['dealsIds'] = $dealsIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets companiesIds
+ *
+ * @return string[]
+ */
+ public function getCompaniesIds()
+ {
+ return $this->container['companiesIds'];
+ }
+
+ /**
+ * Sets companiesIds
+ *
+ * @param string[] $companiesIds Companies ids for companies a task is linked to
+ *
+ * @return $this
+ */
+ public function setCompaniesIds($companiesIds)
+ {
+ $this->container['companiesIds'] = $companiesIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets reminder
+ *
+ * @return \SendinBlue\Client\Model\TaskReminder
+ */
+ public function getReminder()
+ {
+ return $this->container['reminder'];
+ }
+
+ /**
+ * Sets reminder
+ *
+ * @param \SendinBlue\Client\Model\TaskReminder $reminder reminder
+ *
+ * @return $this
+ */
+ public function setReminder($reminder)
+ {
+ $this->container['reminder'] = $reminder;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body7.php b/lib/Model/Body7.php
new file mode 100644
index 00000000..8749a518
--- /dev/null
+++ b/lib/Model/Body7.php
@@ -0,0 +1,575 @@
+ 'string',
+ 'duration' => 'int',
+ 'taskTypeId' => 'string',
+ 'date' => '\DateTime',
+ 'notes' => 'string',
+ 'done' => 'bool',
+ 'assignToId' => 'string',
+ 'contactsIds' => 'int[]',
+ 'dealsIds' => 'string[]',
+ 'companiesIds' => 'string[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'name' => null,
+ 'duration' => null,
+ 'taskTypeId' => null,
+ 'date' => 'date-time',
+ 'notes' => null,
+ 'done' => null,
+ 'assignToId' => null,
+ 'contactsIds' => null,
+ 'dealsIds' => null,
+ 'companiesIds' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+ 'duration' => 'duration',
+ 'taskTypeId' => 'taskTypeId',
+ 'date' => 'date',
+ 'notes' => 'notes',
+ 'done' => 'done',
+ 'assignToId' => 'assignToId',
+ 'contactsIds' => 'contactsIds',
+ 'dealsIds' => 'dealsIds',
+ 'companiesIds' => 'companiesIds'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+ 'duration' => 'setDuration',
+ 'taskTypeId' => 'setTaskTypeId',
+ 'date' => 'setDate',
+ 'notes' => 'setNotes',
+ 'done' => 'setDone',
+ 'assignToId' => 'setAssignToId',
+ 'contactsIds' => 'setContactsIds',
+ 'dealsIds' => 'setDealsIds',
+ 'companiesIds' => 'setCompaniesIds'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+ 'duration' => 'getDuration',
+ 'taskTypeId' => 'getTaskTypeId',
+ 'date' => 'getDate',
+ 'notes' => 'getNotes',
+ 'done' => 'getDone',
+ 'assignToId' => 'getAssignToId',
+ 'contactsIds' => 'getContactsIds',
+ 'dealsIds' => 'getDealsIds',
+ 'companiesIds' => 'getCompaniesIds'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null;
+ $this->container['taskTypeId'] = isset($data['taskTypeId']) ? $data['taskTypeId'] : null;
+ $this->container['date'] = isset($data['date']) ? $data['date'] : null;
+ $this->container['notes'] = isset($data['notes']) ? $data['notes'] : null;
+ $this->container['done'] = isset($data['done']) ? $data['done'] : null;
+ $this->container['assignToId'] = isset($data['assignToId']) ? $data['assignToId'] : null;
+ $this->container['contactsIds'] = isset($data['contactsIds']) ? $data['contactsIds'] : null;
+ $this->container['dealsIds'] = isset($data['dealsIds']) ? $data['dealsIds'] : null;
+ $this->container['companiesIds'] = isset($data['companiesIds']) ? $data['companiesIds'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Name of task
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets duration
+ *
+ * @return int
+ */
+ public function getDuration()
+ {
+ return $this->container['duration'];
+ }
+
+ /**
+ * Sets duration
+ *
+ * @param int $duration Duration of task in milliseconds [1 minute = 60000 ms]
+ *
+ * @return $this
+ */
+ public function setDuration($duration)
+ {
+ $this->container['duration'] = $duration;
+
+ return $this;
+ }
+
+ /**
+ * Gets taskTypeId
+ *
+ * @return string
+ */
+ public function getTaskTypeId()
+ {
+ return $this->container['taskTypeId'];
+ }
+
+ /**
+ * Sets taskTypeId
+ *
+ * @param string $taskTypeId Id for type of task e.g Call / Email / Meeting etc.
+ *
+ * @return $this
+ */
+ public function setTaskTypeId($taskTypeId)
+ {
+ $this->container['taskTypeId'] = $taskTypeId;
+
+ return $this;
+ }
+
+ /**
+ * Gets date
+ *
+ * @return \DateTime
+ */
+ public function getDate()
+ {
+ return $this->container['date'];
+ }
+
+ /**
+ * Sets date
+ *
+ * @param \DateTime $date Task date/time
+ *
+ * @return $this
+ */
+ public function setDate($date)
+ {
+ $this->container['date'] = $date;
+
+ return $this;
+ }
+
+ /**
+ * Gets notes
+ *
+ * @return string
+ */
+ public function getNotes()
+ {
+ return $this->container['notes'];
+ }
+
+ /**
+ * Sets notes
+ *
+ * @param string $notes Notes added to a task
+ *
+ * @return $this
+ */
+ public function setNotes($notes)
+ {
+ $this->container['notes'] = $notes;
+
+ return $this;
+ }
+
+ /**
+ * Gets done
+ *
+ * @return bool
+ */
+ public function getDone()
+ {
+ return $this->container['done'];
+ }
+
+ /**
+ * Sets done
+ *
+ * @param bool $done Task marked as done
+ *
+ * @return $this
+ */
+ public function setDone($done)
+ {
+ $this->container['done'] = $done;
+
+ return $this;
+ }
+
+ /**
+ * Gets assignToId
+ *
+ * @return string
+ */
+ public function getAssignToId()
+ {
+ return $this->container['assignToId'];
+ }
+
+ /**
+ * Sets assignToId
+ *
+ * @param string $assignToId User id to whom task is assigned
+ *
+ * @return $this
+ */
+ public function setAssignToId($assignToId)
+ {
+ $this->container['assignToId'] = $assignToId;
+
+ return $this;
+ }
+
+ /**
+ * Gets contactsIds
+ *
+ * @return int[]
+ */
+ public function getContactsIds()
+ {
+ return $this->container['contactsIds'];
+ }
+
+ /**
+ * Sets contactsIds
+ *
+ * @param int[] $contactsIds Contact ids for contacts linked to this task
+ *
+ * @return $this
+ */
+ public function setContactsIds($contactsIds)
+ {
+ $this->container['contactsIds'] = $contactsIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets dealsIds
+ *
+ * @return string[]
+ */
+ public function getDealsIds()
+ {
+ return $this->container['dealsIds'];
+ }
+
+ /**
+ * Sets dealsIds
+ *
+ * @param string[] $dealsIds Deal ids for deals a task is linked to
+ *
+ * @return $this
+ */
+ public function setDealsIds($dealsIds)
+ {
+ $this->container['dealsIds'] = $dealsIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets companiesIds
+ *
+ * @return string[]
+ */
+ public function getCompaniesIds()
+ {
+ return $this->container['companiesIds'];
+ }
+
+ /**
+ * Sets companiesIds
+ *
+ * @param string[] $companiesIds Companies ids for companies a task is linked to
+ *
+ * @return $this
+ */
+ public function setCompaniesIds($companiesIds)
+ {
+ $this->container['companiesIds'] = $companiesIds;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body8.php b/lib/Model/Body8.php
new file mode 100644
index 00000000..e0f1e5b0
--- /dev/null
+++ b/lib/Model/Body8.php
@@ -0,0 +1,461 @@
+ 'string',
+ 'text' => 'string',
+ 'agentId' => 'string',
+ 'receivedFrom' => 'string',
+ 'agentEmail' => 'string',
+ 'agentName' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'visitorId' => null,
+ 'text' => null,
+ 'agentId' => null,
+ 'receivedFrom' => null,
+ 'agentEmail' => 'email',
+ 'agentName' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'visitorId' => 'visitorId',
+ 'text' => 'text',
+ 'agentId' => 'agentId',
+ 'receivedFrom' => 'receivedFrom',
+ 'agentEmail' => 'agentEmail',
+ 'agentName' => 'agentName'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'visitorId' => 'setVisitorId',
+ 'text' => 'setText',
+ 'agentId' => 'setAgentId',
+ 'receivedFrom' => 'setReceivedFrom',
+ 'agentEmail' => 'setAgentEmail',
+ 'agentName' => 'setAgentName'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'visitorId' => 'getVisitorId',
+ 'text' => 'getText',
+ 'agentId' => 'getAgentId',
+ 'receivedFrom' => 'getReceivedFrom',
+ 'agentEmail' => 'getAgentEmail',
+ 'agentName' => 'getAgentName'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['visitorId'] = isset($data['visitorId']) ? $data['visitorId'] : null;
+ $this->container['text'] = isset($data['text']) ? $data['text'] : null;
+ $this->container['agentId'] = isset($data['agentId']) ? $data['agentId'] : null;
+ $this->container['receivedFrom'] = isset($data['receivedFrom']) ? $data['receivedFrom'] : null;
+ $this->container['agentEmail'] = isset($data['agentEmail']) ? $data['agentEmail'] : null;
+ $this->container['agentName'] = isset($data['agentName']) ? $data['agentName'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['visitorId'] === null) {
+ $invalidProperties[] = "'visitorId' can't be null";
+ }
+ if ($this->container['text'] === null) {
+ $invalidProperties[] = "'text' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets visitorId
+ *
+ * @return string
+ */
+ public function getVisitorId()
+ {
+ return $this->container['visitorId'];
+ }
+
+ /**
+ * Sets visitorId
+ *
+ * @param string $visitorId visitor’s ID received from a webhook or generated by you to bind existing user account to Conversations
+ *
+ * @return $this
+ */
+ public function setVisitorId($visitorId)
+ {
+ $this->container['visitorId'] = $visitorId;
+
+ return $this;
+ }
+
+ /**
+ * Gets text
+ *
+ * @return string
+ */
+ public function getText()
+ {
+ return $this->container['text'];
+ }
+
+ /**
+ * Sets text
+ *
+ * @param string $text message text
+ *
+ * @return $this
+ */
+ public function setText($text)
+ {
+ $this->container['text'] = $text;
+
+ return $this;
+ }
+
+ /**
+ * Gets agentId
+ *
+ * @return string
+ */
+ public function getAgentId()
+ {
+ return $this->container['agentId'];
+ }
+
+ /**
+ * Sets agentId
+ *
+ * @param string $agentId agent ID. It can be found on agent’s page or received from a webhook. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required).
+ *
+ * @return $this
+ */
+ public function setAgentId($agentId)
+ {
+ $this->container['agentId'] = $agentId;
+
+ return $this;
+ }
+
+ /**
+ * Gets receivedFrom
+ *
+ * @return string
+ */
+ public function getReceivedFrom()
+ {
+ return $this->container['receivedFrom'];
+ }
+
+ /**
+ * Sets receivedFrom
+ *
+ * @param string $receivedFrom mark your messages to distinguish messages created by you from the others.
+ *
+ * @return $this
+ */
+ public function setReceivedFrom($receivedFrom)
+ {
+ $this->container['receivedFrom'] = $receivedFrom;
+
+ return $this;
+ }
+
+ /**
+ * Gets agentEmail
+ *
+ * @return string
+ */
+ public function getAgentEmail()
+ {
+ return $this->container['agentEmail'];
+ }
+
+ /**
+ * Sets agentEmail
+ *
+ * @param string $agentEmail agent email. When sending messages from a standalone system, it’s hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address.
+ *
+ * @return $this
+ */
+ public function setAgentEmail($agentEmail)
+ {
+ $this->container['agentEmail'] = $agentEmail;
+
+ return $this;
+ }
+
+ /**
+ * Gets agentName
+ *
+ * @return string
+ */
+ public function getAgentName()
+ {
+ return $this->container['agentName'];
+ }
+
+ /**
+ * Sets agentName
+ *
+ * @param string $agentName agent name
+ *
+ * @return $this
+ */
+ public function setAgentName($agentName)
+ {
+ $this->container['agentName'] = $agentName;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Body9.php b/lib/Model/Body9.php
new file mode 100644
index 00000000..929d9a51
--- /dev/null
+++ b/lib/Model/Body9.php
@@ -0,0 +1,308 @@
+ 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'text' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'text' => 'text'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'text' => 'setText'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'text' => 'getText'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['text'] = isset($data['text']) ? $data['text'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['text'] === null) {
+ $invalidProperties[] = "'text' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets text
+ *
+ * @return string
+ */
+ public function getText()
+ {
+ return $this->container['text'];
+ }
+
+ /**
+ * Sets text
+ *
+ * @param string $text edited message text
+ *
+ * @return $this
+ */
+ public function setText($text)
+ {
+ $this->container['text'] = $text;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CompaniesList.php b/lib/Model/CompaniesList.php
new file mode 100644
index 00000000..9fbbd858
--- /dev/null
+++ b/lib/Model/CompaniesList.php
@@ -0,0 +1,306 @@
+ '\SendinBlue\Client\Model\Company[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'items' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'items' => 'items'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'items' => 'setItems'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'items' => 'getItems'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['items'] = isset($data['items']) ? $data['items'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets items
+ *
+ * @return \SendinBlue\Client\Model\Company[]
+ */
+ public function getItems()
+ {
+ return $this->container['items'];
+ }
+
+ /**
+ * Sets items
+ *
+ * @param \SendinBlue\Client\Model\Company[] $items List of compaies
+ *
+ * @return $this
+ */
+ public function setItems($items)
+ {
+ $this->container['items'] = $items;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Company.php b/lib/Model/Company.php
new file mode 100644
index 00000000..29dfd931
--- /dev/null
+++ b/lib/Model/Company.php
@@ -0,0 +1,396 @@
+ 'string',
+ 'attributes' => 'object',
+ 'linkedContactsIds' => 'int[]',
+ 'linkedDealsIds' => 'string[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+ 'attributes' => null,
+ 'linkedContactsIds' => null,
+ 'linkedDealsIds' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'attributes' => 'attributes',
+ 'linkedContactsIds' => 'linkedContactsIds',
+ 'linkedDealsIds' => 'linkedDealsIds'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'attributes' => 'setAttributes',
+ 'linkedContactsIds' => 'setLinkedContactsIds',
+ 'linkedDealsIds' => 'setLinkedDealsIds'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'attributes' => 'getAttributes',
+ 'linkedContactsIds' => 'getLinkedContactsIds',
+ 'linkedDealsIds' => 'getLinkedDealsIds'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null;
+ $this->container['linkedContactsIds'] = isset($data['linkedContactsIds']) ? $data['linkedContactsIds'] : null;
+ $this->container['linkedDealsIds'] = isset($data['linkedDealsIds']) ? $data['linkedDealsIds'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Unique company id
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets attributes
+ *
+ * @return object
+ */
+ public function getAttributes()
+ {
+ return $this->container['attributes'];
+ }
+
+ /**
+ * Sets attributes
+ *
+ * @param object $attributes Company attributes with values
+ *
+ * @return $this
+ */
+ public function setAttributes($attributes)
+ {
+ $this->container['attributes'] = $attributes;
+
+ return $this;
+ }
+
+ /**
+ * Gets linkedContactsIds
+ *
+ * @return int[]
+ */
+ public function getLinkedContactsIds()
+ {
+ return $this->container['linkedContactsIds'];
+ }
+
+ /**
+ * Sets linkedContactsIds
+ *
+ * @param int[] $linkedContactsIds Contact ids for contacts linked to this company
+ *
+ * @return $this
+ */
+ public function setLinkedContactsIds($linkedContactsIds)
+ {
+ $this->container['linkedContactsIds'] = $linkedContactsIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets linkedDealsIds
+ *
+ * @return string[]
+ */
+ public function getLinkedDealsIds()
+ {
+ return $this->container['linkedDealsIds'];
+ }
+
+ /**
+ * Sets linkedDealsIds
+ *
+ * @param string[] $linkedDealsIds Deals ids for companies linked to this company
+ *
+ * @return $this
+ */
+ public function setLinkedDealsIds($linkedDealsIds)
+ {
+ $this->container['linkedDealsIds'] = $linkedDealsIds;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CompanyAttributes.php b/lib/Model/CompanyAttributes.php
new file mode 100644
index 00000000..3613ce50
--- /dev/null
+++ b/lib/Model/CompanyAttributes.php
@@ -0,0 +1,281 @@
+listInvalidProperties()) === 0;
+ }
+
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CompanyAttributesInner.php b/lib/Model/CompanyAttributesInner.php
new file mode 100644
index 00000000..ce7abc24
--- /dev/null
+++ b/lib/Model/CompanyAttributesInner.php
@@ -0,0 +1,426 @@
+ 'string',
+ 'label' => 'string',
+ 'attributeTypeName' => 'string',
+ 'attributeOptions' => 'object[]',
+ 'isRequired' => 'bool'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'internalName' => null,
+ 'label' => null,
+ 'attributeTypeName' => null,
+ 'attributeOptions' => null,
+ 'isRequired' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'internalName' => 'internalName',
+ 'label' => 'label',
+ 'attributeTypeName' => 'attributeTypeName',
+ 'attributeOptions' => 'attributeOptions',
+ 'isRequired' => 'isRequired'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'internalName' => 'setInternalName',
+ 'label' => 'setLabel',
+ 'attributeTypeName' => 'setAttributeTypeName',
+ 'attributeOptions' => 'setAttributeOptions',
+ 'isRequired' => 'setIsRequired'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'internalName' => 'getInternalName',
+ 'label' => 'getLabel',
+ 'attributeTypeName' => 'getAttributeTypeName',
+ 'attributeOptions' => 'getAttributeOptions',
+ 'isRequired' => 'getIsRequired'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['internalName'] = isset($data['internalName']) ? $data['internalName'] : null;
+ $this->container['label'] = isset($data['label']) ? $data['label'] : null;
+ $this->container['attributeTypeName'] = isset($data['attributeTypeName']) ? $data['attributeTypeName'] : null;
+ $this->container['attributeOptions'] = isset($data['attributeOptions']) ? $data['attributeOptions'] : null;
+ $this->container['isRequired'] = isset($data['isRequired']) ? $data['isRequired'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets internalName
+ *
+ * @return string
+ */
+ public function getInternalName()
+ {
+ return $this->container['internalName'];
+ }
+
+ /**
+ * Sets internalName
+ *
+ * @param string $internalName internalName
+ *
+ * @return $this
+ */
+ public function setInternalName($internalName)
+ {
+ $this->container['internalName'] = $internalName;
+
+ return $this;
+ }
+
+ /**
+ * Gets label
+ *
+ * @return string
+ */
+ public function getLabel()
+ {
+ return $this->container['label'];
+ }
+
+ /**
+ * Sets label
+ *
+ * @param string $label label
+ *
+ * @return $this
+ */
+ public function setLabel($label)
+ {
+ $this->container['label'] = $label;
+
+ return $this;
+ }
+
+ /**
+ * Gets attributeTypeName
+ *
+ * @return string
+ */
+ public function getAttributeTypeName()
+ {
+ return $this->container['attributeTypeName'];
+ }
+
+ /**
+ * Sets attributeTypeName
+ *
+ * @param string $attributeTypeName attributeTypeName
+ *
+ * @return $this
+ */
+ public function setAttributeTypeName($attributeTypeName)
+ {
+ $this->container['attributeTypeName'] = $attributeTypeName;
+
+ return $this;
+ }
+
+ /**
+ * Gets attributeOptions
+ *
+ * @return object[]
+ */
+ public function getAttributeOptions()
+ {
+ return $this->container['attributeOptions'];
+ }
+
+ /**
+ * Sets attributeOptions
+ *
+ * @param object[] $attributeOptions attributeOptions
+ *
+ * @return $this
+ */
+ public function setAttributeOptions($attributeOptions)
+ {
+ $this->container['attributeOptions'] = $attributeOptions;
+
+ return $this;
+ }
+
+ /**
+ * Gets isRequired
+ *
+ * @return bool
+ */
+ public function getIsRequired()
+ {
+ return $this->container['isRequired'];
+ }
+
+ /**
+ * Sets isRequired
+ *
+ * @param bool $isRequired isRequired
+ *
+ * @return $this
+ */
+ public function setIsRequired($isRequired)
+ {
+ $this->container['isRequired'] = $isRequired;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/ConversationsMessage.php b/lib/Model/ConversationsMessage.php
new file mode 100644
index 00000000..2f291ac2
--- /dev/null
+++ b/lib/Model/ConversationsMessage.php
@@ -0,0 +1,617 @@
+ 'string',
+ 'type' => 'string',
+ 'text' => 'string',
+ 'visitorId' => 'string',
+ 'agentId' => 'string',
+ 'agentName' => 'string',
+ 'createdAt' => 'int',
+ 'isPushed' => 'bool',
+ 'receivedFrom' => 'string',
+ 'file' => '\SendinBlue\Client\Model\ConversationsMessageFile'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+ 'type' => null,
+ 'text' => null,
+ 'visitorId' => null,
+ 'agentId' => null,
+ 'agentName' => null,
+ 'createdAt' => 'int64',
+ 'isPushed' => null,
+ 'receivedFrom' => null,
+ 'file' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'type' => 'type',
+ 'text' => 'text',
+ 'visitorId' => 'visitorId',
+ 'agentId' => 'agentId',
+ 'agentName' => 'agentName',
+ 'createdAt' => 'createdAt',
+ 'isPushed' => 'isPushed',
+ 'receivedFrom' => 'receivedFrom',
+ 'file' => 'file'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'type' => 'setType',
+ 'text' => 'setText',
+ 'visitorId' => 'setVisitorId',
+ 'agentId' => 'setAgentId',
+ 'agentName' => 'setAgentName',
+ 'createdAt' => 'setCreatedAt',
+ 'isPushed' => 'setIsPushed',
+ 'receivedFrom' => 'setReceivedFrom',
+ 'file' => 'setFile'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'type' => 'getType',
+ 'text' => 'getText',
+ 'visitorId' => 'getVisitorId',
+ 'agentId' => 'getAgentId',
+ 'agentName' => 'getAgentName',
+ 'createdAt' => 'getCreatedAt',
+ 'isPushed' => 'getIsPushed',
+ 'receivedFrom' => 'getReceivedFrom',
+ 'file' => 'getFile'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const TYPE_AGENT = 'agent';
+ const TYPE_VISITOR = 'visitor';
+
+
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getTypeAllowableValues()
+ {
+ return [
+ self::TYPE_AGENT,
+ self::TYPE_VISITOR,
+ ];
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['type'] = isset($data['type']) ? $data['type'] : null;
+ $this->container['text'] = isset($data['text']) ? $data['text'] : null;
+ $this->container['visitorId'] = isset($data['visitorId']) ? $data['visitorId'] : null;
+ $this->container['agentId'] = isset($data['agentId']) ? $data['agentId'] : null;
+ $this->container['agentName'] = isset($data['agentName']) ? $data['agentName'] : null;
+ $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null;
+ $this->container['isPushed'] = isset($data['isPushed']) ? $data['isPushed'] : null;
+ $this->container['receivedFrom'] = isset($data['receivedFrom']) ? $data['receivedFrom'] : null;
+ $this->container['file'] = isset($data['file']) ? $data['file'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getTypeAllowableValues();
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ if (!is_null($this->container['createdAt']) && ($this->container['createdAt'] < 0)) {
+ $invalidProperties[] = "invalid value for 'createdAt', must be bigger than or equal to 0.";
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Message ID. It can be used for further manipulations with the message.
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets type
+ *
+ * @return string
+ */
+ public function getType()
+ {
+ return $this->container['type'];
+ }
+
+ /**
+ * Sets type
+ *
+ * @param string $type `\"agent\"` for agents’ messages, `\"visitor\"` for visitors’ messages.
+ *
+ * @return $this
+ */
+ public function setType($type)
+ {
+ $allowedValues = $this->getTypeAllowableValues();
+ if (!is_null($type) && !in_array($type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['type'] = $type;
+
+ return $this;
+ }
+
+ /**
+ * Gets text
+ *
+ * @return string
+ */
+ public function getText()
+ {
+ return $this->container['text'];
+ }
+
+ /**
+ * Sets text
+ *
+ * @param string $text Message text or name of the attached file
+ *
+ * @return $this
+ */
+ public function setText($text)
+ {
+ $this->container['text'] = $text;
+
+ return $this;
+ }
+
+ /**
+ * Gets visitorId
+ *
+ * @return string
+ */
+ public function getVisitorId()
+ {
+ return $this->container['visitorId'];
+ }
+
+ /**
+ * Sets visitorId
+ *
+ * @param string $visitorId visitor’s ID
+ *
+ * @return $this
+ */
+ public function setVisitorId($visitorId)
+ {
+ $this->container['visitorId'] = $visitorId;
+
+ return $this;
+ }
+
+ /**
+ * Gets agentId
+ *
+ * @return string
+ */
+ public function getAgentId()
+ {
+ return $this->container['agentId'];
+ }
+
+ /**
+ * Sets agentId
+ *
+ * @param string $agentId ID of the agent on whose behalf the message was sent (only in messages sent by an agent).
+ *
+ * @return $this
+ */
+ public function setAgentId($agentId)
+ {
+ $this->container['agentId'] = $agentId;
+
+ return $this;
+ }
+
+ /**
+ * Gets agentName
+ *
+ * @return string
+ */
+ public function getAgentName()
+ {
+ return $this->container['agentName'];
+ }
+
+ /**
+ * Sets agentName
+ *
+ * @param string $agentName Agent’s name as displayed to the visitor. Only in the messages sent by an agent.
+ *
+ * @return $this
+ */
+ public function setAgentName($agentName)
+ {
+ $this->container['agentName'] = $agentName;
+
+ return $this;
+ }
+
+ /**
+ * Gets createdAt
+ *
+ * @return int
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['createdAt'];
+ }
+
+ /**
+ * Sets createdAt
+ *
+ * @param int $createdAt Timestamp in milliseconds.
+ *
+ * @return $this
+ */
+ public function setCreatedAt($createdAt)
+ {
+
+ if (!is_null($createdAt) && ($createdAt < 0)) {
+ throw new \InvalidArgumentException('invalid value for $createdAt when calling ConversationsMessage., must be bigger than or equal to 0.');
+ }
+
+ $this->container['createdAt'] = $createdAt;
+
+ return $this;
+ }
+
+ /**
+ * Gets isPushed
+ *
+ * @return bool
+ */
+ public function getIsPushed()
+ {
+ return $this->container['isPushed'];
+ }
+
+ /**
+ * Sets isPushed
+ *
+ * @param bool $isPushed `true` for pushed messages
+ *
+ * @return $this
+ */
+ public function setIsPushed($isPushed)
+ {
+ $this->container['isPushed'] = $isPushed;
+
+ return $this;
+ }
+
+ /**
+ * Gets receivedFrom
+ *
+ * @return string
+ */
+ public function getReceivedFrom()
+ {
+ return $this->container['receivedFrom'];
+ }
+
+ /**
+ * Sets receivedFrom
+ *
+ * @param string $receivedFrom In two-way integrations, messages sent via REST API can be marked with receivedFrom property and then filtered out when received in a webhook to avoid infinite loop.
+ *
+ * @return $this
+ */
+ public function setReceivedFrom($receivedFrom)
+ {
+ $this->container['receivedFrom'] = $receivedFrom;
+
+ return $this;
+ }
+
+ /**
+ * Gets file
+ *
+ * @return \SendinBlue\Client\Model\ConversationsMessageFile
+ */
+ public function getFile()
+ {
+ return $this->container['file'];
+ }
+
+ /**
+ * Sets file
+ *
+ * @param \SendinBlue\Client\Model\ConversationsMessageFile $file file
+ *
+ * @return $this
+ */
+ public function setFile($file)
+ {
+ $this->container['file'] = $file;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/ConversationsMessageFIleImageInfo.php b/lib/Model/ConversationsMessageFIleImageInfo.php
new file mode 100644
index 00000000..5e528ada
--- /dev/null
+++ b/lib/Model/ConversationsMessageFIleImageInfo.php
@@ -0,0 +1,384 @@
+ 'int',
+ 'height' => 'int',
+ 'previewUrl' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'width' => 'int64',
+ 'height' => 'int64',
+ 'previewUrl' => 'url'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'width' => 'width',
+ 'height' => 'height',
+ 'previewUrl' => 'previewUrl'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'width' => 'setWidth',
+ 'height' => 'setHeight',
+ 'previewUrl' => 'setPreviewUrl'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'width' => 'getWidth',
+ 'height' => 'getHeight',
+ 'previewUrl' => 'getPreviewUrl'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['width'] = isset($data['width']) ? $data['width'] : null;
+ $this->container['height'] = isset($data['height']) ? $data['height'] : null;
+ $this->container['previewUrl'] = isset($data['previewUrl']) ? $data['previewUrl'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if (!is_null($this->container['width']) && ($this->container['width'] < 0)) {
+ $invalidProperties[] = "invalid value for 'width', must be bigger than or equal to 0.";
+ }
+
+ if (!is_null($this->container['height']) && ($this->container['height'] < 0)) {
+ $invalidProperties[] = "invalid value for 'height', must be bigger than or equal to 0.";
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets width
+ *
+ * @return int
+ */
+ public function getWidth()
+ {
+ return $this->container['width'];
+ }
+
+ /**
+ * Sets width
+ *
+ * @param int $width Width of the image
+ *
+ * @return $this
+ */
+ public function setWidth($width)
+ {
+
+ if (!is_null($width) && ($width < 0)) {
+ throw new \InvalidArgumentException('invalid value for $width when calling ConversationsMessageFileImageInfo., must be bigger than or equal to 0.');
+ }
+
+ $this->container['width'] = $width;
+
+ return $this;
+ }
+
+ /**
+ * Gets height
+ *
+ * @return int
+ */
+ public function getHeight()
+ {
+ return $this->container['height'];
+ }
+
+ /**
+ * Sets height
+ *
+ * @param int $height height of the image
+ *
+ * @return $this
+ */
+ public function setHeight($height)
+ {
+
+ if (!is_null($height) && ($height < 0)) {
+ throw new \InvalidArgumentException('invalid value for $height when calling ConversationsMessageFileImageInfo., must be bigger than or equal to 0.');
+ }
+
+ $this->container['height'] = $height;
+
+ return $this;
+ }
+
+ /**
+ * Gets previewUrl
+ *
+ * @return string
+ */
+ public function getPreviewUrl()
+ {
+ return $this->container['previewUrl'];
+ }
+
+ /**
+ * Sets previewUrl
+ *
+ * @param string $previewUrl URL of the preview
+ *
+ * @return $this
+ */
+ public function setPreviewUrl($previewUrl)
+ {
+ $this->container['previewUrl'] = $previewUrl;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/ConversationsMessageFile.php b/lib/Model/ConversationsMessageFile.php
new file mode 100644
index 00000000..7bdaac1b
--- /dev/null
+++ b/lib/Model/ConversationsMessageFile.php
@@ -0,0 +1,434 @@
+ 'string',
+ 'size' => 'int',
+ 'isImage' => 'bool',
+ 'url' => 'string',
+ 'imageInfo' => '\SendinBlue\Client\Model\ConversationsMessageFileImageInfo'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'filename' => null,
+ 'size' => 'int64',
+ 'isImage' => null,
+ 'url' => 'url',
+ 'imageInfo' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'filename' => 'filename',
+ 'size' => 'size',
+ 'isImage' => 'isImage',
+ 'url' => 'url',
+ 'imageInfo' => 'imageInfo'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'filename' => 'setFilename',
+ 'size' => 'setSize',
+ 'isImage' => 'setIsImage',
+ 'url' => 'setUrl',
+ 'imageInfo' => 'setImageInfo'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'filename' => 'getFilename',
+ 'size' => 'getSize',
+ 'isImage' => 'getIsImage',
+ 'url' => 'getUrl',
+ 'imageInfo' => 'getImageInfo'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['filename'] = isset($data['filename']) ? $data['filename'] : null;
+ $this->container['size'] = isset($data['size']) ? $data['size'] : null;
+ $this->container['isImage'] = isset($data['isImage']) ? $data['isImage'] : null;
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
+ $this->container['imageInfo'] = isset($data['imageInfo']) ? $data['imageInfo'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if (!is_null($this->container['size']) && ($this->container['size'] < 0)) {
+ $invalidProperties[] = "invalid value for 'size', must be bigger than or equal to 0.";
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets filename
+ *
+ * @return string
+ */
+ public function getFilename()
+ {
+ return $this->container['filename'];
+ }
+
+ /**
+ * Sets filename
+ *
+ * @param string $filename Name of the file
+ *
+ * @return $this
+ */
+ public function setFilename($filename)
+ {
+ $this->container['filename'] = $filename;
+
+ return $this;
+ }
+
+ /**
+ * Gets size
+ *
+ * @return int
+ */
+ public function getSize()
+ {
+ return $this->container['size'];
+ }
+
+ /**
+ * Sets size
+ *
+ * @param int $size Size in bytes
+ *
+ * @return $this
+ */
+ public function setSize($size)
+ {
+
+ if (!is_null($size) && ($size < 0)) {
+ throw new \InvalidArgumentException('invalid value for $size when calling ConversationsMessageFile., must be bigger than or equal to 0.');
+ }
+
+ $this->container['size'] = $size;
+
+ return $this;
+ }
+
+ /**
+ * Gets isImage
+ *
+ * @return bool
+ */
+ public function getIsImage()
+ {
+ return $this->container['isImage'];
+ }
+
+ /**
+ * Sets isImage
+ *
+ * @param bool $isImage Whether the file is an image
+ *
+ * @return $this
+ */
+ public function setIsImage($isImage)
+ {
+ $this->container['isImage'] = $isImage;
+
+ return $this;
+ }
+
+ /**
+ * Gets url
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string $url URL of the file
+ *
+ * @return $this
+ */
+ public function setUrl($url)
+ {
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+
+ /**
+ * Gets imageInfo
+ *
+ * @return \SendinBlue\Client\Model\ConversationsMessageFileImageInfo
+ */
+ public function getImageInfo()
+ {
+ return $this->container['imageInfo'];
+ }
+
+ /**
+ * Sets imageInfo
+ *
+ * @param \SendinBlue\Client\Model\ConversationsMessageFileImageInfo $imageInfo imageInfo
+ *
+ * @return $this
+ */
+ public function setImageInfo($imageInfo)
+ {
+ $this->container['imageInfo'] = $imageInfo;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateAttribute.php b/lib/Model/CreateAttribute.php
index 66aa7c38..9e45090e 100644
--- a/lib/Model/CreateAttribute.php
+++ b/lib/Model/CreateAttribute.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -58,6 +58,7 @@ class CreateAttribute implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'value' => 'string',
+ 'isRecurring' => 'bool',
'enumeration' => '\SendinBlue\Client\Model\CreateAttributeEnumeration[]',
'type' => 'string'
];
@@ -69,6 +70,7 @@ class CreateAttribute implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'value' => null,
+ 'isRecurring' => null,
'enumeration' => null,
'type' => null
];
@@ -101,6 +103,7 @@ public static function swaggerFormats()
*/
protected static $attributeMap = [
'value' => 'value',
+ 'isRecurring' => 'isRecurring',
'enumeration' => 'enumeration',
'type' => 'type'
];
@@ -112,6 +115,7 @@ public static function swaggerFormats()
*/
protected static $setters = [
'value' => 'setValue',
+ 'isRecurring' => 'setIsRecurring',
'enumeration' => 'setEnumeration',
'type' => 'setType'
];
@@ -123,6 +127,7 @@ public static function swaggerFormats()
*/
protected static $getters = [
'value' => 'getValue',
+ 'isRecurring' => 'getIsRecurring',
'enumeration' => 'getEnumeration',
'type' => 'getType'
];
@@ -211,6 +216,7 @@ public function getTypeAllowableValues()
public function __construct(array $data = null)
{
$this->container['value'] = isset($data['value']) ? $data['value'] : null;
+ $this->container['isRecurring'] = isset($data['isRecurring']) ? $data['isRecurring'] : null;
$this->container['enumeration'] = isset($data['enumeration']) ? $data['enumeration'] : null;
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
}
@@ -271,6 +277,30 @@ public function setValue($value)
return $this;
}
+ /**
+ * Gets isRecurring
+ *
+ * @return bool
+ */
+ public function getIsRecurring()
+ {
+ return $this->container['isRecurring'];
+ }
+
+ /**
+ * Sets isRecurring
+ *
+ * @param bool $isRecurring Type of the calculated attribute. Use only if the attribute's category is 'calculated'
+ *
+ * @return $this
+ */
+ public function setIsRecurring($isRecurring)
+ {
+ $this->container['isRecurring'] = $isRecurring;
+
+ return $this;
+ }
+
/**
* Gets enumeration
*
@@ -334,6 +364,7 @@ public function setType($type)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -346,6 +377,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -359,6 +391,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -375,6 +408,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateAttributeEnumeration.php b/lib/Model/CreateAttributeEnumeration.php
index 16eeb4a2..17b04b30 100644
--- a/lib/Model/CreateAttributeEnumeration.php
+++ b/lib/Model/CreateAttributeEnumeration.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setLabel($label)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateCategoryModel.php b/lib/Model/CreateCategoryModel.php
new file mode 100644
index 00000000..ce591882
--- /dev/null
+++ b/lib/Model/CreateCategoryModel.php
@@ -0,0 +1,305 @@
+ 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id ID of the category when a new category is created
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateChild.php b/lib/Model/CreateChild.php
index 00a3a1c1..4034fdf8 100644
--- a/lib/Model/CreateChild.php
+++ b/lib/Model/CreateChild.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -439,6 +439,7 @@ public function setLanguage($language)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -451,6 +452,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -464,6 +466,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -480,6 +483,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateContact.php b/lib/Model/CreateContact.php
index 7fd587bc..bfd9d4f9 100644
--- a/lib/Model/CreateContact.php
+++ b/lib/Model/CreateContact.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -414,6 +414,7 @@ public function setSmtpBlacklistSender($smtpBlacklistSender)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -426,6 +427,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -439,6 +441,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -455,6 +458,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateDoiContact.php b/lib/Model/CreateDoiContact.php
index 11925702..2a0da923 100644
--- a/lib/Model/CreateDoiContact.php
+++ b/lib/Model/CreateDoiContact.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -396,6 +396,7 @@ public function setRedirectionUrl($redirectionUrl)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -408,6 +409,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -421,6 +423,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -437,6 +440,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateEmailCampaign.php b/lib/Model/CreateEmailCampaign.php
index 4d6a075d..3149abf9 100644
--- a/lib/Model/CreateEmailCampaign.php
+++ b/lib/Model/CreateEmailCampaign.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -84,7 +84,9 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
'winnerDelay' => 'int',
'ipWarmupEnable' => 'bool',
'initialQuota' => 'int',
- 'increaseRate' => 'int'
+ 'increaseRate' => 'int',
+ 'unsubscriptionPageId' => 'string',
+ 'updateFormId' => 'string'
];
/**
@@ -120,7 +122,9 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
'winnerDelay' => 'int64',
'ipWarmupEnable' => null,
'initialQuota' => 'int64',
- 'increaseRate' => 'int64'
+ 'increaseRate' => 'int64',
+ 'unsubscriptionPageId' => null,
+ 'updateFormId' => null
];
/**
@@ -177,7 +181,9 @@ public static function swaggerFormats()
'winnerDelay' => 'winnerDelay',
'ipWarmupEnable' => 'ipWarmupEnable',
'initialQuota' => 'initialQuota',
- 'increaseRate' => 'increaseRate'
+ 'increaseRate' => 'increaseRate',
+ 'unsubscriptionPageId' => 'unsubscriptionPageId',
+ 'updateFormId' => 'updateFormId'
];
/**
@@ -213,7 +219,9 @@ public static function swaggerFormats()
'winnerDelay' => 'setWinnerDelay',
'ipWarmupEnable' => 'setIpWarmupEnable',
'initialQuota' => 'setInitialQuota',
- 'increaseRate' => 'setIncreaseRate'
+ 'increaseRate' => 'setIncreaseRate',
+ 'unsubscriptionPageId' => 'setUnsubscriptionPageId',
+ 'updateFormId' => 'setUpdateFormId'
];
/**
@@ -249,7 +257,9 @@ public static function swaggerFormats()
'winnerDelay' => 'getWinnerDelay',
'ipWarmupEnable' => 'getIpWarmupEnable',
'initialQuota' => 'getInitialQuota',
- 'increaseRate' => 'getIncreaseRate'
+ 'increaseRate' => 'getIncreaseRate',
+ 'unsubscriptionPageId' => 'getUnsubscriptionPageId',
+ 'updateFormId' => 'getUpdateFormId'
];
/**
@@ -355,6 +365,8 @@ public function __construct(array $data = null)
$this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : false;
$this->container['initialQuota'] = isset($data['initialQuota']) ? $data['initialQuota'] : null;
$this->container['increaseRate'] = isset($data['increaseRate']) ? $data['increaseRate'] : null;
+ $this->container['unsubscriptionPageId'] = isset($data['unsubscriptionPageId']) ? $data['unsubscriptionPageId'] : null;
+ $this->container['updateFormId'] = isset($data['updateFormId']) ? $data['updateFormId'] : null;
}
/**
@@ -1123,6 +1135,54 @@ public function setIncreaseRate($increaseRate)
return $this;
}
+
+ /**
+ * Gets unsubscriptionPageId
+ *
+ * @return string
+ */
+ public function getUnsubscriptionPageId()
+ {
+ return $this->container['unsubscriptionPageId'];
+ }
+
+ /**
+ * Sets unsubscriptionPageId
+ *
+ * @param string $unsubscriptionPageId Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. If not entered, then the default unsubscription page will be used.
+ *
+ * @return $this
+ */
+ public function setUnsubscriptionPageId($unsubscriptionPageId)
+ {
+ $this->container['unsubscriptionPageId'] = $unsubscriptionPageId;
+
+ return $this;
+ }
+
+ /**
+ * Gets updateFormId
+ *
+ * @return string
+ */
+ public function getUpdateFormId()
+ {
+ return $this->container['updateFormId'];
+ }
+
+ /**
+ * Sets updateFormId
+ *
+ * @param string $updateFormId Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. If not entered, then the default update profile form will be used.
+ *
+ * @return $this
+ */
+ public function setUpdateFormId($updateFormId)
+ {
+ $this->container['updateFormId'] = $updateFormId;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
@@ -1130,6 +1190,7 @@ public function setIncreaseRate($increaseRate)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -1142,6 +1203,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -1155,6 +1217,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -1171,6 +1234,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateEmailCampaignRecipients.php b/lib/Model/CreateEmailCampaignRecipients.php
index 7dc60230..cfc2a117 100644
--- a/lib/Model/CreateEmailCampaignRecipients.php
+++ b/lib/Model/CreateEmailCampaignRecipients.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -36,7 +36,7 @@
* CreateEmailCampaignRecipients Class Doc Comment
*
* @category Class
- * @description List ids to include/exclude from campaign
+ * @description Segment ids and List ids to include/exclude from campaign
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -59,7 +59,8 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'exclusionListIds' => 'int[]',
- 'listIds' => 'int[]'
+ 'listIds' => 'int[]',
+ 'segmentIds' => 'int[]'
];
/**
@@ -69,7 +70,8 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'exclusionListIds' => 'int64',
- 'listIds' => 'int64'
+ 'listIds' => 'int64',
+ 'segmentIds' => 'int64'
];
/**
@@ -100,7 +102,8 @@ public static function swaggerFormats()
*/
protected static $attributeMap = [
'exclusionListIds' => 'exclusionListIds',
- 'listIds' => 'listIds'
+ 'listIds' => 'listIds',
+ 'segmentIds' => 'segmentIds'
];
/**
@@ -110,7 +113,8 @@ public static function swaggerFormats()
*/
protected static $setters = [
'exclusionListIds' => 'setExclusionListIds',
- 'listIds' => 'setListIds'
+ 'listIds' => 'setListIds',
+ 'segmentIds' => 'setSegmentIds'
];
/**
@@ -120,7 +124,8 @@ public static function swaggerFormats()
*/
protected static $getters = [
'exclusionListIds' => 'getExclusionListIds',
- 'listIds' => 'getListIds'
+ 'listIds' => 'getListIds',
+ 'segmentIds' => 'getSegmentIds'
];
/**
@@ -185,6 +190,7 @@ public function __construct(array $data = null)
{
$this->container['exclusionListIds'] = isset($data['exclusionListIds']) ? $data['exclusionListIds'] : null;
$this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null;
+ $this->container['segmentIds'] = isset($data['segmentIds']) ? $data['segmentIds'] : null;
}
/**
@@ -258,6 +264,30 @@ public function setListIds($listIds)
return $this;
}
+
+ /**
+ * Gets segmentIds
+ *
+ * @return int[]
+ */
+ public function getSegmentIds()
+ {
+ return $this->container['segmentIds'];
+ }
+
+ /**
+ * Sets segmentIds
+ *
+ * @param int[] $segmentIds Mandatory if listIds are not used. Segment ids to send the campaign to.
+ *
+ * @return $this
+ */
+ public function setSegmentIds($segmentIds)
+ {
+ $this->container['segmentIds'] = $segmentIds;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
@@ -265,6 +295,7 @@ public function setListIds($listIds)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateEmailCampaignSender.php b/lib/Model/CreateEmailCampaignSender.php
index 6cd43770..9903d1e3 100644
--- a/lib/Model/CreateEmailCampaignSender.php
+++ b/lib/Model/CreateEmailCampaignSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -36,7 +36,7 @@
* CreateEmailCampaignSender Class Doc Comment
*
* @category Class
- * @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
+ * @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -298,6 +298,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -310,6 +311,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -323,6 +325,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -339,6 +342,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateList.php b/lib/Model/CreateList.php
index fbfa7f9f..60446402 100644
--- a/lib/Model/CreateList.php
+++ b/lib/Model/CreateList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setFolderId($folderId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateModel.php b/lib/Model/CreateModel.php
index 7286aa94..55eea8c5 100644
--- a/lib/Model/CreateModel.php
+++ b/lib/Model/CreateModel.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateProductModel.php b/lib/Model/CreateProductModel.php
new file mode 100644
index 00000000..980d261e
--- /dev/null
+++ b/lib/Model/CreateProductModel.php
@@ -0,0 +1,305 @@
+ 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id ID of the Product when a new product is created
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateReseller.php b/lib/Model/CreateReseller.php
index a3aa445e..de1e6e72 100644
--- a/lib/Model/CreateReseller.php
+++ b/lib/Model/CreateReseller.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSender.php b/lib/Model/CreateSender.php
index eec0a7b7..a64510f7 100644
--- a/lib/Model/CreateSender.php
+++ b/lib/Model/CreateSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -300,6 +300,7 @@ public function setIps($ips)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -312,6 +313,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -325,6 +327,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -341,6 +344,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSenderIps.php b/lib/Model/CreateSenderIps.php
index 5d6ec793..52c846a7 100644
--- a/lib/Model/CreateSenderIps.php
+++ b/lib/Model/CreateSenderIps.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -316,6 +316,7 @@ public function setWeight($weight)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -328,6 +329,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -341,6 +343,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -357,6 +360,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSenderModel.php b/lib/Model/CreateSenderModel.php
index ee20896a..86576924 100644
--- a/lib/Model/CreateSenderModel.php
+++ b/lib/Model/CreateSenderModel.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -297,6 +297,7 @@ public function setDkimError($dkimError)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -309,6 +310,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -322,6 +324,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -338,6 +341,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSmsCampaign.php b/lib/Model/CreateSmsCampaign.php
index deab9d41..53fa80e1 100644
--- a/lib/Model/CreateSmsCampaign.php
+++ b/lib/Model/CreateSmsCampaign.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -62,7 +62,9 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess
'content' => 'string',
'recipients' => '\SendinBlue\Client\Model\CreateSmsCampaignRecipients',
'scheduledAt' => 'string',
- 'unicodeEnabled' => 'bool'
+ 'unicodeEnabled' => 'bool',
+ 'organisationPrefix' => 'string',
+ 'unsubscribeInstruction' => 'string'
];
/**
@@ -76,7 +78,9 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess
'content' => null,
'recipients' => null,
'scheduledAt' => null,
- 'unicodeEnabled' => null
+ 'unicodeEnabled' => null,
+ 'organisationPrefix' => null,
+ 'unsubscribeInstruction' => null
];
/**
@@ -111,7 +115,9 @@ public static function swaggerFormats()
'content' => 'content',
'recipients' => 'recipients',
'scheduledAt' => 'scheduledAt',
- 'unicodeEnabled' => 'unicodeEnabled'
+ 'unicodeEnabled' => 'unicodeEnabled',
+ 'organisationPrefix' => 'organisationPrefix',
+ 'unsubscribeInstruction' => 'unsubscribeInstruction'
];
/**
@@ -125,7 +131,9 @@ public static function swaggerFormats()
'content' => 'setContent',
'recipients' => 'setRecipients',
'scheduledAt' => 'setScheduledAt',
- 'unicodeEnabled' => 'setUnicodeEnabled'
+ 'unicodeEnabled' => 'setUnicodeEnabled',
+ 'organisationPrefix' => 'setOrganisationPrefix',
+ 'unsubscribeInstruction' => 'setUnsubscribeInstruction'
];
/**
@@ -139,7 +147,9 @@ public static function swaggerFormats()
'content' => 'getContent',
'recipients' => 'getRecipients',
'scheduledAt' => 'getScheduledAt',
- 'unicodeEnabled' => 'getUnicodeEnabled'
+ 'unicodeEnabled' => 'getUnicodeEnabled',
+ 'organisationPrefix' => 'getOrganisationPrefix',
+ 'unsubscribeInstruction' => 'getUnsubscribeInstruction'
];
/**
@@ -208,6 +218,8 @@ public function __construct(array $data = null)
$this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null;
$this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null;
$this->container['unicodeEnabled'] = isset($data['unicodeEnabled']) ? $data['unicodeEnabled'] : false;
+ $this->container['organisationPrefix'] = isset($data['organisationPrefix']) ? $data['organisationPrefix'] : null;
+ $this->container['unsubscribeInstruction'] = isset($data['unsubscribeInstruction']) ? $data['unsubscribeInstruction'] : null;
}
/**
@@ -394,6 +406,54 @@ public function setUnicodeEnabled($unicodeEnabled)
return $this;
}
+
+ /**
+ * Gets organisationPrefix
+ *
+ * @return string
+ */
+ public function getOrganisationPrefix()
+ {
+ return $this->container['organisationPrefix'];
+ }
+
+ /**
+ * Sets organisationPrefix
+ *
+ * @param string $organisationPrefix A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.**
+ *
+ * @return $this
+ */
+ public function setOrganisationPrefix($organisationPrefix)
+ {
+ $this->container['organisationPrefix'] = $organisationPrefix;
+
+ return $this;
+ }
+
+ /**
+ * Gets unsubscribeInstruction
+ *
+ * @return string
+ */
+ public function getUnsubscribeInstruction()
+ {
+ return $this->container['unsubscribeInstruction'];
+ }
+
+ /**
+ * Sets unsubscribeInstruction
+ *
+ * @param string $unsubscribeInstruction Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.**
+ *
+ * @return $this
+ */
+ public function setUnsubscribeInstruction($unsubscribeInstruction)
+ {
+ $this->container['unsubscribeInstruction'] = $unsubscribeInstruction;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
@@ -401,6 +461,7 @@ public function setUnicodeEnabled($unicodeEnabled)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -413,6 +474,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -426,6 +488,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -442,6 +505,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSmsCampaignRecipients.php b/lib/Model/CreateSmsCampaignRecipients.php
index 2f2e8482..a602c8e2 100644
--- a/lib/Model/CreateSmsCampaignRecipients.php
+++ b/lib/Model/CreateSmsCampaignRecipients.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setExclusionListIds($exclusionListIds)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSmtpEmail.php b/lib/Model/CreateSmtpEmail.php
index 078577ae..16368365 100644
--- a/lib/Model/CreateSmtpEmail.php
+++ b/lib/Model/CreateSmtpEmail.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setMessageIds($messageIds)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSmtpTemplate.php b/lib/Model/CreateSmtpTemplate.php
index e146ebf4..f029d58b 100644
--- a/lib/Model/CreateSmtpTemplate.php
+++ b/lib/Model/CreateSmtpTemplate.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -513,6 +513,7 @@ public function setIsActive($isActive)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -525,6 +526,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -538,6 +540,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -554,6 +557,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSmtpTemplateSender.php b/lib/Model/CreateSmtpTemplateSender.php
index 3fb1f512..9be8cbba 100644
--- a/lib/Model/CreateSmtpTemplateSender.php
+++ b/lib/Model/CreateSmtpTemplateSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -36,7 +36,7 @@
* CreateSmtpTemplateSender Class Doc Comment
*
* @category Class
- * @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
+ * @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -295,6 +295,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -307,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -320,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -336,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSubAccount.php b/lib/Model/CreateSubAccount.php
index f9d15de3..35729c80 100644
--- a/lib/Model/CreateSubAccount.php
+++ b/lib/Model/CreateSubAccount.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -370,6 +370,7 @@ public function setTimezone($timezone)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -382,6 +383,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -395,6 +397,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -411,6 +414,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateSubAccountResponse.php b/lib/Model/CreateSubAccountResponse.php
index 472c89bb..0daf3bda 100644
--- a/lib/Model/CreateSubAccountResponse.php
+++ b/lib/Model/CreateSubAccountResponse.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateUpdateBatchCategory.php b/lib/Model/CreateUpdateBatchCategory.php
new file mode 100644
index 00000000..8fdb6839
--- /dev/null
+++ b/lib/Model/CreateUpdateBatchCategory.php
@@ -0,0 +1,338 @@
+ '\SendinBlue\Client\Model\CreateUpdateCategories[]',
+ 'updateEnabled' => 'bool'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'categories' => null,
+ 'updateEnabled' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'categories' => 'categories',
+ 'updateEnabled' => 'updateEnabled'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'categories' => 'setCategories',
+ 'updateEnabled' => 'setUpdateEnabled'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'categories' => 'getCategories',
+ 'updateEnabled' => 'getUpdateEnabled'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['categories'] = isset($data['categories']) ? $data['categories'] : null;
+ $this->container['updateEnabled'] = isset($data['updateEnabled']) ? $data['updateEnabled'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['categories'] === null) {
+ $invalidProperties[] = "'categories' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets categories
+ *
+ * @return \SendinBlue\Client\Model\CreateUpdateCategories[]
+ */
+ public function getCategories()
+ {
+ return $this->container['categories'];
+ }
+
+ /**
+ * Sets categories
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateCategories[] $categories array of categories objects
+ *
+ * @return $this
+ */
+ public function setCategories($categories)
+ {
+ $this->container['categories'] = $categories;
+
+ return $this;
+ }
+
+ /**
+ * Gets updateEnabled
+ *
+ * @return bool
+ */
+ public function getUpdateEnabled()
+ {
+ return $this->container['updateEnabled'];
+ }
+
+ /**
+ * Sets updateEnabled
+ *
+ * @param bool $updateEnabled Facilitate to update the existing categories in the same request (updateEnabled = true)
+ *
+ * @return $this
+ */
+ public function setUpdateEnabled($updateEnabled)
+ {
+ $this->container['updateEnabled'] = $updateEnabled;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateUpdateBatchCategoryModel.php b/lib/Model/CreateUpdateBatchCategoryModel.php
new file mode 100644
index 00000000..59c93a10
--- /dev/null
+++ b/lib/Model/CreateUpdateBatchCategoryModel.php
@@ -0,0 +1,335 @@
+ 'int',
+ 'updatedCount' => 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'createdCount' => 'int64',
+ 'updatedCount' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'createdCount' => 'createdCount',
+ 'updatedCount' => 'updatedCount'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'createdCount' => 'setCreatedCount',
+ 'updatedCount' => 'setUpdatedCount'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'createdCount' => 'getCreatedCount',
+ 'updatedCount' => 'getUpdatedCount'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['createdCount'] = isset($data['createdCount']) ? $data['createdCount'] : null;
+ $this->container['updatedCount'] = isset($data['updatedCount']) ? $data['updatedCount'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets createdCount
+ *
+ * @return int
+ */
+ public function getCreatedCount()
+ {
+ return $this->container['createdCount'];
+ }
+
+ /**
+ * Sets createdCount
+ *
+ * @param int $createdCount Number of the new created categories
+ *
+ * @return $this
+ */
+ public function setCreatedCount($createdCount)
+ {
+ $this->container['createdCount'] = $createdCount;
+
+ return $this;
+ }
+
+ /**
+ * Gets updatedCount
+ *
+ * @return int
+ */
+ public function getUpdatedCount()
+ {
+ return $this->container['updatedCount'];
+ }
+
+ /**
+ * Sets updatedCount
+ *
+ * @param int $updatedCount Number of the existing categories updated
+ *
+ * @return $this
+ */
+ public function setUpdatedCount($updatedCount)
+ {
+ $this->container['updatedCount'] = $updatedCount;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateUpdateBatchProducts.php b/lib/Model/CreateUpdateBatchProducts.php
new file mode 100644
index 00000000..641f04bf
--- /dev/null
+++ b/lib/Model/CreateUpdateBatchProducts.php
@@ -0,0 +1,338 @@
+ '\SendinBlue\Client\Model\CreateUpdateProducts[]',
+ 'updateEnabled' => 'bool'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'products' => null,
+ 'updateEnabled' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'products' => 'products',
+ 'updateEnabled' => 'updateEnabled'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'products' => 'setProducts',
+ 'updateEnabled' => 'setUpdateEnabled'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'products' => 'getProducts',
+ 'updateEnabled' => 'getUpdateEnabled'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['products'] = isset($data['products']) ? $data['products'] : null;
+ $this->container['updateEnabled'] = isset($data['updateEnabled']) ? $data['updateEnabled'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['products'] === null) {
+ $invalidProperties[] = "'products' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets products
+ *
+ * @return \SendinBlue\Client\Model\CreateUpdateProducts[]
+ */
+ public function getProducts()
+ {
+ return $this->container['products'];
+ }
+
+ /**
+ * Sets products
+ *
+ * @param \SendinBlue\Client\Model\CreateUpdateProducts[] $products array of products objects
+ *
+ * @return $this
+ */
+ public function setProducts($products)
+ {
+ $this->container['products'] = $products;
+
+ return $this;
+ }
+
+ /**
+ * Gets updateEnabled
+ *
+ * @return bool
+ */
+ public function getUpdateEnabled()
+ {
+ return $this->container['updateEnabled'];
+ }
+
+ /**
+ * Sets updateEnabled
+ *
+ * @param bool $updateEnabled Facilitate to update the existing categories in the same request (updateEnabled = true)
+ *
+ * @return $this
+ */
+ public function setUpdateEnabled($updateEnabled)
+ {
+ $this->container['updateEnabled'] = $updateEnabled;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateUpdateBatchProductsModel.php b/lib/Model/CreateUpdateBatchProductsModel.php
new file mode 100644
index 00000000..6f111fa6
--- /dev/null
+++ b/lib/Model/CreateUpdateBatchProductsModel.php
@@ -0,0 +1,335 @@
+ 'int',
+ 'updatedCount' => 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'createdCount' => 'int64',
+ 'updatedCount' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'createdCount' => 'createdCount',
+ 'updatedCount' => 'updatedCount'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'createdCount' => 'setCreatedCount',
+ 'updatedCount' => 'setUpdatedCount'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'createdCount' => 'getCreatedCount',
+ 'updatedCount' => 'getUpdatedCount'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['createdCount'] = isset($data['createdCount']) ? $data['createdCount'] : null;
+ $this->container['updatedCount'] = isset($data['updatedCount']) ? $data['updatedCount'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets createdCount
+ *
+ * @return int
+ */
+ public function getCreatedCount()
+ {
+ return $this->container['createdCount'];
+ }
+
+ /**
+ * Sets createdCount
+ *
+ * @param int $createdCount Number of the new created products
+ *
+ * @return $this
+ */
+ public function setCreatedCount($createdCount)
+ {
+ $this->container['createdCount'] = $createdCount;
+
+ return $this;
+ }
+
+ /**
+ * Gets updatedCount
+ *
+ * @return int
+ */
+ public function getUpdatedCount()
+ {
+ return $this->container['updatedCount'];
+ }
+
+ /**
+ * Sets updatedCount
+ *
+ * @param int $updatedCount Number of the existing products updated
+ *
+ * @return $this
+ */
+ public function setUpdatedCount($updatedCount)
+ {
+ $this->container['updatedCount'] = $updatedCount;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateUpdateCategories.php b/lib/Model/CreateUpdateCategories.php
new file mode 100644
index 00000000..f2a63d31
--- /dev/null
+++ b/lib/Model/CreateUpdateCategories.php
@@ -0,0 +1,368 @@
+ 'string',
+ 'name' => 'string',
+ 'url' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => 'email',
+ 'name' => null,
+ 'url' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name',
+ 'url' => 'url'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName',
+ 'url' => 'setUrl'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName',
+ 'url' => 'getUrl'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Unique Category ID as saved in the shop
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name **Mandatory in case of creation**. Name of the Category, as displayed in the shop
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets url
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string $url URL to the category
+ *
+ * @return $this
+ */
+ public function setUrl($url)
+ {
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateUpdateCategory.php b/lib/Model/CreateUpdateCategory.php
new file mode 100644
index 00000000..cc76b4b6
--- /dev/null
+++ b/lib/Model/CreateUpdateCategory.php
@@ -0,0 +1,398 @@
+ 'string',
+ 'name' => 'string',
+ 'url' => 'string',
+ 'updateEnabled' => 'bool'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => 'email',
+ 'name' => null,
+ 'url' => null,
+ 'updateEnabled' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name',
+ 'url' => 'url',
+ 'updateEnabled' => 'updateEnabled'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName',
+ 'url' => 'setUrl',
+ 'updateEnabled' => 'setUpdateEnabled'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName',
+ 'url' => 'getUrl',
+ 'updateEnabled' => 'getUpdateEnabled'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
+ $this->container['updateEnabled'] = isset($data['updateEnabled']) ? $data['updateEnabled'] : false;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Unique Category ID as saved in the shop
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name **Mandatory in case of creation**. Name of the Category, as displayed in the shop
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets url
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string $url URL to the category
+ *
+ * @return $this
+ */
+ public function setUrl($url)
+ {
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+
+ /**
+ * Gets updateEnabled
+ *
+ * @return bool
+ */
+ public function getUpdateEnabled()
+ {
+ return $this->container['updateEnabled'];
+ }
+
+ /**
+ * Sets updateEnabled
+ *
+ * @param bool $updateEnabled Facilitate to update the existing category in the same request (updateEnabled = true)
+ *
+ * @return $this
+ */
+ public function setUpdateEnabled($updateEnabled)
+ {
+ $this->container['updateEnabled'] = $updateEnabled;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateUpdateContactModel.php b/lib/Model/CreateUpdateContactModel.php
index fbf8e2b0..88bd26a3 100644
--- a/lib/Model/CreateUpdateContactModel.php
+++ b/lib/Model/CreateUpdateContactModel.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateUpdateFolder.php b/lib/Model/CreateUpdateFolder.php
index 86a0b645..b00beef9 100644
--- a/lib/Model/CreateUpdateFolder.php
+++ b/lib/Model/CreateUpdateFolder.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreateUpdateProducts.php b/lib/Model/CreateUpdateProducts.php
new file mode 100644
index 00000000..b3f5f237
--- /dev/null
+++ b/lib/Model/CreateUpdateProducts.php
@@ -0,0 +1,521 @@
+ 'string',
+ 'name' => 'string',
+ 'url' => 'string',
+ 'imageUrl' => 'string',
+ 'sku' => 'string',
+ 'price' => 'float',
+ 'categories' => 'string[]',
+ 'parentId' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => 'string',
+ 'name' => 'string',
+ 'url' => 'string',
+ 'imageUrl' => 'string',
+ 'sku' => 'string',
+ 'price' => 'float',
+ 'categories' => null,
+ 'parentId' => 'string'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name',
+ 'url' => 'url',
+ 'imageUrl' => 'imageUrl',
+ 'sku' => 'sku',
+ 'price' => 'price',
+ 'categories' => 'categories',
+ 'parentId' => 'parentId'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName',
+ 'url' => 'setUrl',
+ 'imageUrl' => 'setImageUrl',
+ 'sku' => 'setSku',
+ 'price' => 'setPrice',
+ 'categories' => 'setCategories',
+ 'parentId' => 'setParentId'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName',
+ 'url' => 'getUrl',
+ 'imageUrl' => 'getImageUrl',
+ 'sku' => 'getSku',
+ 'price' => 'getPrice',
+ 'categories' => 'getCategories',
+ 'parentId' => 'getParentId'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
+ $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : null;
+ $this->container['sku'] = isset($data['sku']) ? $data['sku'] : null;
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
+ $this->container['categories'] = isset($data['categories']) ? $data['categories'] : null;
+ $this->container['parentId'] = isset($data['parentId']) ? $data['parentId'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Product ID for which you requested the details
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Mandatory in case of creation**. Name of the product for which you requested the details
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets url
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string $url URL to the product
+ *
+ * @return $this
+ */
+ public function setUrl($url)
+ {
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+
+ /**
+ * Gets imageUrl
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['imageUrl'];
+ }
+
+ /**
+ * Sets imageUrl
+ *
+ * @param string $imageUrl Absolute URL to the cover image of the product
+ *
+ * @return $this
+ */
+ public function setImageUrl($imageUrl)
+ {
+ $this->container['imageUrl'] = $imageUrl;
+
+ return $this;
+ }
+
+ /**
+ * Gets sku
+ *
+ * @return string
+ */
+ public function getSku()
+ {
+ return $this->container['sku'];
+ }
+
+ /**
+ * Sets sku
+ *
+ * @param string $sku Product identifier from the shop
+ *
+ * @return $this
+ */
+ public function setSku($sku)
+ {
+ $this->container['sku'] = $sku;
+
+ return $this;
+ }
+
+ /**
+ * Gets price
+ *
+ * @return float
+ */
+ public function getPrice()
+ {
+ return $this->container['price'];
+ }
+
+ /**
+ * Sets price
+ *
+ * @param float $price Price of the product
+ *
+ * @return $this
+ */
+ public function setPrice($price)
+ {
+ $this->container['price'] = $price;
+
+ return $this;
+ }
+
+ /**
+ * Gets categories
+ *
+ * @return string[]
+ */
+ public function getCategories()
+ {
+ return $this->container['categories'];
+ }
+
+ /**
+ * Sets categories
+ *
+ * @param string[] $categories Category ID-s of the product
+ *
+ * @return $this
+ */
+ public function setCategories($categories)
+ {
+ $this->container['categories'] = $categories;
+
+ return $this;
+ }
+
+ /**
+ * Gets parentId
+ *
+ * @return string
+ */
+ public function getParentId()
+ {
+ return $this->container['parentId'];
+ }
+
+ /**
+ * Sets parentId
+ *
+ * @param string $parentId Parent product id of the product
+ *
+ * @return $this
+ */
+ public function setParentId($parentId)
+ {
+ $this->container['parentId'] = $parentId;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateUpdateproduct.php b/lib/Model/CreateUpdateproduct.php
new file mode 100644
index 00000000..a2cb6b2e
--- /dev/null
+++ b/lib/Model/CreateUpdateproduct.php
@@ -0,0 +1,551 @@
+ 'string',
+ 'name' => 'string',
+ 'url' => 'string',
+ 'imageUrl' => 'string',
+ 'sku' => 'string',
+ 'price' => 'float',
+ 'categories' => 'string[]',
+ 'parentId' => 'string',
+ 'updateEnabled' => 'bool'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => 'string',
+ 'name' => 'string',
+ 'url' => 'string',
+ 'imageUrl' => 'string',
+ 'sku' => 'string',
+ 'price' => 'float',
+ 'categories' => null,
+ 'parentId' => 'string',
+ 'updateEnabled' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name',
+ 'url' => 'url',
+ 'imageUrl' => 'imageUrl',
+ 'sku' => 'sku',
+ 'price' => 'price',
+ 'categories' => 'categories',
+ 'parentId' => 'parentId',
+ 'updateEnabled' => 'updateEnabled'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName',
+ 'url' => 'setUrl',
+ 'imageUrl' => 'setImageUrl',
+ 'sku' => 'setSku',
+ 'price' => 'setPrice',
+ 'categories' => 'setCategories',
+ 'parentId' => 'setParentId',
+ 'updateEnabled' => 'setUpdateEnabled'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName',
+ 'url' => 'getUrl',
+ 'imageUrl' => 'getImageUrl',
+ 'sku' => 'getSku',
+ 'price' => 'getPrice',
+ 'categories' => 'getCategories',
+ 'parentId' => 'getParentId',
+ 'updateEnabled' => 'getUpdateEnabled'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
+ $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : null;
+ $this->container['sku'] = isset($data['sku']) ? $data['sku'] : null;
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
+ $this->container['categories'] = isset($data['categories']) ? $data['categories'] : null;
+ $this->container['parentId'] = isset($data['parentId']) ? $data['parentId'] : null;
+ $this->container['updateEnabled'] = isset($data['updateEnabled']) ? $data['updateEnabled'] : false;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Product ID for which you requested the details
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Mandatory in case of creation**. Name of the product for which you requested the details
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets url
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string $url URL to the product
+ *
+ * @return $this
+ */
+ public function setUrl($url)
+ {
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+
+ /**
+ * Gets imageUrl
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['imageUrl'];
+ }
+
+ /**
+ * Sets imageUrl
+ *
+ * @param string $imageUrl Absolute URL to the cover image of the product
+ *
+ * @return $this
+ */
+ public function setImageUrl($imageUrl)
+ {
+ $this->container['imageUrl'] = $imageUrl;
+
+ return $this;
+ }
+
+ /**
+ * Gets sku
+ *
+ * @return string
+ */
+ public function getSku()
+ {
+ return $this->container['sku'];
+ }
+
+ /**
+ * Sets sku
+ *
+ * @param string $sku Product identifier from the shop
+ *
+ * @return $this
+ */
+ public function setSku($sku)
+ {
+ $this->container['sku'] = $sku;
+
+ return $this;
+ }
+
+ /**
+ * Gets price
+ *
+ * @return float
+ */
+ public function getPrice()
+ {
+ return $this->container['price'];
+ }
+
+ /**
+ * Sets price
+ *
+ * @param float $price Price of the product
+ *
+ * @return $this
+ */
+ public function setPrice($price)
+ {
+ $this->container['price'] = $price;
+
+ return $this;
+ }
+
+ /**
+ * Gets categories
+ *
+ * @return string[]
+ */
+ public function getCategories()
+ {
+ return $this->container['categories'];
+ }
+
+ /**
+ * Sets categories
+ *
+ * @param string[] $categories Category ID-s of the product
+ *
+ * @return $this
+ */
+ public function setCategories($categories)
+ {
+ $this->container['categories'] = $categories;
+
+ return $this;
+ }
+
+ /**
+ * Gets parentId
+ *
+ * @return string
+ */
+ public function getParentId()
+ {
+ return $this->container['parentId'];
+ }
+
+ /**
+ * Sets parentId
+ *
+ * @param string $parentId Parent product id of the product
+ *
+ * @return $this
+ */
+ public function setParentId($parentId)
+ {
+ $this->container['parentId'] = $parentId;
+
+ return $this;
+ }
+
+ /**
+ * Gets updateEnabled
+ *
+ * @return bool
+ */
+ public function getUpdateEnabled()
+ {
+ return $this->container['updateEnabled'];
+ }
+
+ /**
+ * Sets updateEnabled
+ *
+ * @param bool $updateEnabled Facilitate to update the existing category in the same request (updateEnabled = true)
+ *
+ * @return $this
+ */
+ public function setUpdateEnabled($updateEnabled)
+ {
+ $this->container['updateEnabled'] = $updateEnabled;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreateWebhook.php b/lib/Model/CreateWebhook.php
index 3d0fe5af..ccc79937 100644
--- a/lib/Model/CreateWebhook.php
+++ b/lib/Model/CreateWebhook.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -448,6 +448,7 @@ public function setDomain($domain)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -460,6 +461,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -473,6 +475,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -489,6 +492,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/CreatedBatchId.php b/lib/Model/CreatedBatchId.php
new file mode 100644
index 00000000..2a6ca633
--- /dev/null
+++ b/lib/Model/CreatedBatchId.php
@@ -0,0 +1,308 @@
+ 'float'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'batchId' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'batchId' => 'batchId'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'batchId' => 'setBatchId'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'batchId' => 'getBatchId'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['batchId'] = isset($data['batchId']) ? $data['batchId'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['batchId'] === null) {
+ $invalidProperties[] = "'batchId' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets batchId
+ *
+ * @return float
+ */
+ public function getBatchId()
+ {
+ return $this->container['batchId'];
+ }
+
+ /**
+ * Sets batchId
+ *
+ * @param float $batchId Batch ID of the request
+ *
+ * @return $this
+ */
+ public function setBatchId($batchId)
+ {
+ $this->container['batchId'] = $batchId;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/CreatedProcessId.php b/lib/Model/CreatedProcessId.php
index 4d102443..9958e884 100644
--- a/lib/Model/CreatedProcessId.php
+++ b/lib/Model/CreatedProcessId.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setProcessId($processId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/Deal.php b/lib/Model/Deal.php
new file mode 100644
index 00000000..191b601b
--- /dev/null
+++ b/lib/Model/Deal.php
@@ -0,0 +1,396 @@
+ 'string',
+ 'attributes' => 'object',
+ 'linkedContactsIds' => 'int[]',
+ 'linkedCompaniesIds' => 'string[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+ 'attributes' => null,
+ 'linkedContactsIds' => null,
+ 'linkedCompaniesIds' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'attributes' => 'attributes',
+ 'linkedContactsIds' => 'linkedContactsIds',
+ 'linkedCompaniesIds' => 'linkedCompaniesIds'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'attributes' => 'setAttributes',
+ 'linkedContactsIds' => 'setLinkedContactsIds',
+ 'linkedCompaniesIds' => 'setLinkedCompaniesIds'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'attributes' => 'getAttributes',
+ 'linkedContactsIds' => 'getLinkedContactsIds',
+ 'linkedCompaniesIds' => 'getLinkedCompaniesIds'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null;
+ $this->container['linkedContactsIds'] = isset($data['linkedContactsIds']) ? $data['linkedContactsIds'] : null;
+ $this->container['linkedCompaniesIds'] = isset($data['linkedCompaniesIds']) ? $data['linkedCompaniesIds'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Unique deal id
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets attributes
+ *
+ * @return object
+ */
+ public function getAttributes()
+ {
+ return $this->container['attributes'];
+ }
+
+ /**
+ * Sets attributes
+ *
+ * @param object $attributes Deal attributes with values
+ *
+ * @return $this
+ */
+ public function setAttributes($attributes)
+ {
+ $this->container['attributes'] = $attributes;
+
+ return $this;
+ }
+
+ /**
+ * Gets linkedContactsIds
+ *
+ * @return int[]
+ */
+ public function getLinkedContactsIds()
+ {
+ return $this->container['linkedContactsIds'];
+ }
+
+ /**
+ * Sets linkedContactsIds
+ *
+ * @param int[] $linkedContactsIds Contact ids for contacts linked to this deal
+ *
+ * @return $this
+ */
+ public function setLinkedContactsIds($linkedContactsIds)
+ {
+ $this->container['linkedContactsIds'] = $linkedContactsIds;
+
+ return $this;
+ }
+
+ /**
+ * Gets linkedCompaniesIds
+ *
+ * @return string[]
+ */
+ public function getLinkedCompaniesIds()
+ {
+ return $this->container['linkedCompaniesIds'];
+ }
+
+ /**
+ * Sets linkedCompaniesIds
+ *
+ * @param string[] $linkedCompaniesIds Companies ids for companies linked to this deal
+ *
+ * @return $this
+ */
+ public function setLinkedCompaniesIds($linkedCompaniesIds)
+ {
+ $this->container['linkedCompaniesIds'] = $linkedCompaniesIds;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/DealAttributes.php b/lib/Model/DealAttributes.php
new file mode 100644
index 00000000..27e0ec7f
--- /dev/null
+++ b/lib/Model/DealAttributes.php
@@ -0,0 +1,281 @@
+listInvalidProperties()) === 0;
+ }
+
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/DealAttributesInner.php b/lib/Model/DealAttributesInner.php
new file mode 100644
index 00000000..8d6d4dc7
--- /dev/null
+++ b/lib/Model/DealAttributesInner.php
@@ -0,0 +1,426 @@
+ 'string',
+ 'label' => 'string',
+ 'attributeTypeName' => 'string',
+ 'attributeOptions' => 'object[]',
+ 'isRequired' => 'bool'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'internalName' => null,
+ 'label' => null,
+ 'attributeTypeName' => null,
+ 'attributeOptions' => null,
+ 'isRequired' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'internalName' => 'internalName',
+ 'label' => 'label',
+ 'attributeTypeName' => 'attributeTypeName',
+ 'attributeOptions' => 'attributeOptions',
+ 'isRequired' => 'isRequired'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'internalName' => 'setInternalName',
+ 'label' => 'setLabel',
+ 'attributeTypeName' => 'setAttributeTypeName',
+ 'attributeOptions' => 'setAttributeOptions',
+ 'isRequired' => 'setIsRequired'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'internalName' => 'getInternalName',
+ 'label' => 'getLabel',
+ 'attributeTypeName' => 'getAttributeTypeName',
+ 'attributeOptions' => 'getAttributeOptions',
+ 'isRequired' => 'getIsRequired'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['internalName'] = isset($data['internalName']) ? $data['internalName'] : null;
+ $this->container['label'] = isset($data['label']) ? $data['label'] : null;
+ $this->container['attributeTypeName'] = isset($data['attributeTypeName']) ? $data['attributeTypeName'] : null;
+ $this->container['attributeOptions'] = isset($data['attributeOptions']) ? $data['attributeOptions'] : null;
+ $this->container['isRequired'] = isset($data['isRequired']) ? $data['isRequired'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets internalName
+ *
+ * @return string
+ */
+ public function getInternalName()
+ {
+ return $this->container['internalName'];
+ }
+
+ /**
+ * Sets internalName
+ *
+ * @param string $internalName internalName
+ *
+ * @return $this
+ */
+ public function setInternalName($internalName)
+ {
+ $this->container['internalName'] = $internalName;
+
+ return $this;
+ }
+
+ /**
+ * Gets label
+ *
+ * @return string
+ */
+ public function getLabel()
+ {
+ return $this->container['label'];
+ }
+
+ /**
+ * Sets label
+ *
+ * @param string $label label
+ *
+ * @return $this
+ */
+ public function setLabel($label)
+ {
+ $this->container['label'] = $label;
+
+ return $this;
+ }
+
+ /**
+ * Gets attributeTypeName
+ *
+ * @return string
+ */
+ public function getAttributeTypeName()
+ {
+ return $this->container['attributeTypeName'];
+ }
+
+ /**
+ * Sets attributeTypeName
+ *
+ * @param string $attributeTypeName attributeTypeName
+ *
+ * @return $this
+ */
+ public function setAttributeTypeName($attributeTypeName)
+ {
+ $this->container['attributeTypeName'] = $attributeTypeName;
+
+ return $this;
+ }
+
+ /**
+ * Gets attributeOptions
+ *
+ * @return object[]
+ */
+ public function getAttributeOptions()
+ {
+ return $this->container['attributeOptions'];
+ }
+
+ /**
+ * Sets attributeOptions
+ *
+ * @param object[] $attributeOptions attributeOptions
+ *
+ * @return $this
+ */
+ public function setAttributeOptions($attributeOptions)
+ {
+ $this->container['attributeOptions'] = $attributeOptions;
+
+ return $this;
+ }
+
+ /**
+ * Gets isRequired
+ *
+ * @return bool
+ */
+ public function getIsRequired()
+ {
+ return $this->container['isRequired'];
+ }
+
+ /**
+ * Sets isRequired
+ *
+ * @param bool $isRequired isRequired
+ *
+ * @return $this
+ */
+ public function setIsRequired($isRequired)
+ {
+ $this->container['isRequired'] = $isRequired;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/DealsList.php b/lib/Model/DealsList.php
new file mode 100644
index 00000000..d99ac05d
--- /dev/null
+++ b/lib/Model/DealsList.php
@@ -0,0 +1,306 @@
+ '\SendinBlue\Client\Model\Deal[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'items' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'items' => 'items'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'items' => 'setItems'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'items' => 'getItems'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['items'] = isset($data['items']) ? $data['items'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets items
+ *
+ * @return \SendinBlue\Client\Model\Deal[]
+ */
+ public function getItems()
+ {
+ return $this->container['items'];
+ }
+
+ /**
+ * Sets items
+ *
+ * @param \SendinBlue\Client\Model\Deal[] $items List of deals
+ *
+ * @return $this
+ */
+ public function setItems($items)
+ {
+ $this->container['items'] = $items;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/DeleteHardbounces.php b/lib/Model/DeleteHardbounces.php
index 96ee340c..f7d4979f 100644
--- a/lib/Model/DeleteHardbounces.php
+++ b/lib/Model/DeleteHardbounces.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -294,6 +294,7 @@ public function setContactEmail($contactEmail)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -306,6 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -319,6 +321,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -335,6 +338,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/EmailExportRecipients.php b/lib/Model/EmailExportRecipients.php
index 74c9bad8..cc4c6b07 100644
--- a/lib/Model/EmailExportRecipients.php
+++ b/lib/Model/EmailExportRecipients.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -311,6 +311,7 @@ public function setRecipientsType($recipientsType)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -323,6 +324,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -336,6 +338,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -352,6 +355,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/ErrorModel.php b/lib/Model/ErrorModel.php
index 7105ec5c..367287ba 100644
--- a/lib/Model/ErrorModel.php
+++ b/lib/Model/ErrorModel.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -328,6 +328,7 @@ public function setMessage($message)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -340,6 +341,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -353,6 +355,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -369,6 +372,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/FIleList.php b/lib/Model/FIleList.php
new file mode 100644
index 00000000..a858237c
--- /dev/null
+++ b/lib/Model/FIleList.php
@@ -0,0 +1,281 @@
+listInvalidProperties()) === 0;
+ }
+
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/FileData.php b/lib/Model/FileData.php
index 019f8f12..40842978 100644
--- a/lib/Model/FileData.php
+++ b/lib/Model/FileData.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.12
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -64,7 +64,8 @@ class FileData implements ModelInterface, ArrayAccess
'authorId' => 'string',
'author' => 'object',
'contactId' => 'int',
- 'dealIds' => 'string[]',
+ 'dealId' => 'string',
+ 'companyId' => 'string',
'size' => 'int',
'createdAt' => '\DateTime',
'updatedAt' => '\DateTime'
@@ -82,7 +83,8 @@ class FileData implements ModelInterface, ArrayAccess
'authorId' => null,
'author' => null,
'contactId' => 'int64',
- 'dealIds' => null,
+ 'dealId' => null,
+ 'companyId' => null,
'size' => 'int64',
'createdAt' => 'date-time',
'updatedAt' => 'date-time'
@@ -121,7 +123,8 @@ public static function swaggerFormats()
'authorId' => 'authorId',
'author' => 'author',
'contactId' => 'contactId',
- 'dealIds' => 'dealIds',
+ 'dealId' => 'dealId',
+ 'companyId' => 'companyId',
'size' => 'size',
'createdAt' => 'createdAt',
'updatedAt' => 'updatedAt'
@@ -139,7 +142,8 @@ public static function swaggerFormats()
'authorId' => 'setAuthorId',
'author' => 'setAuthor',
'contactId' => 'setContactId',
- 'dealIds' => 'setDealIds',
+ 'dealId' => 'setDealId',
+ 'companyId' => 'setCompanyId',
'size' => 'setSize',
'createdAt' => 'setCreatedAt',
'updatedAt' => 'setUpdatedAt'
@@ -157,7 +161,8 @@ public static function swaggerFormats()
'authorId' => 'getAuthorId',
'author' => 'getAuthor',
'contactId' => 'getContactId',
- 'dealIds' => 'getDealIds',
+ 'dealId' => 'getDealId',
+ 'companyId' => 'getCompanyId',
'size' => 'getSize',
'createdAt' => 'getCreatedAt',
'updatedAt' => 'getUpdatedAt'
@@ -229,7 +234,8 @@ public function __construct(array $data = null)
$this->container['authorId'] = isset($data['authorId']) ? $data['authorId'] : null;
$this->container['author'] = isset($data['author']) ? $data['author'] : null;
$this->container['contactId'] = isset($data['contactId']) ? $data['contactId'] : null;
- $this->container['dealIds'] = isset($data['dealIds']) ? $data['dealIds'] : null;
+ $this->container['dealId'] = isset($data['dealId']) ? $data['dealId'] : null;
+ $this->container['companyId'] = isset($data['companyId']) ? $data['companyId'] : null;
$this->container['size'] = isset($data['size']) ? $data['size'] : null;
$this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null;
$this->container['updatedAt'] = isset($data['updatedAt']) ? $data['updatedAt'] : null;
@@ -356,73 +362,73 @@ public function setAuthorId($authorId)
}
/**
- * Gets author
+ * Gets contactId
*
- * @return object
+ * @return int
*/
- public function getAuthor()
+ public function getContactId()
{
- return $this->container['author'];
+ return $this->container['contactId'];
}
/**
- * Sets author
+ * Sets contactId
*
- * @param object $author Account details of user which created the file
+ * @param int $contactId Contact id of contact on which file is uploaded
*
* @return $this
*/
- public function setAuthor($author)
+ public function setContactId($contactId)
{
- $this->container['author'] = $author;
+ $this->container['contactId'] = $contactId;
return $this;
}
/**
- * Gets contactId
+ * Gets dealId
*
- * @return int
+ * @return string
*/
- public function getContactId()
+ public function getDealId()
{
- return $this->container['contactId'];
+ return $this->container['dealId'];
}
/**
- * Sets contactId
+ * Sets dealId
*
- * @param int $contactId Contact id of contact on which file is uploaded
+ * @param string $dealId Deal id linked to a file
*
* @return $this
*/
- public function setContactId($contactId)
+ public function setDealId($dealId)
{
- $this->container['contactId'] = $contactId;
+ $this->container['dealId'] = $dealId;
return $this;
}
/**
- * Gets dealIds
+ * Gets companyId
*
- * @return string[]
+ * @return string
*/
- public function getDealIds()
+ public function getCompanyId()
{
- return $this->container['dealIds'];
+ return $this->container['companyId'];
}
/**
- * Sets dealIds
+ * Sets companyId
*
- * @param string[] $dealIds Deal ids linked to a file
+ * @param string $companyId Company id linked to a file
*
* @return $this
*/
- public function setDealIds($dealIds)
+ public function setCompanyId($companyId)
{
- $this->container['dealIds'] = $dealIds;
+ $this->container['companyId'] = $companyId;
return $this;
}
@@ -440,7 +446,7 @@ public function getSize()
/**
* Sets size
*
- * @param int $size Size of file uploaded
+ * @param int $size Size of file in bytes
*
* @return $this
*/
@@ -505,6 +511,7 @@ public function setUpdatedAt($updatedAt)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -517,6 +524,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -530,6 +538,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -546,6 +555,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/FileDownloadableLink.php b/lib/Model/FileDownloadableLink.php
new file mode 100644
index 00000000..b33799b7
--- /dev/null
+++ b/lib/Model/FileDownloadableLink.php
@@ -0,0 +1,308 @@
+ 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'fileUrl' => 'url'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'fileUrl' => 'fileUrl'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'fileUrl' => 'setFileUrl'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'fileUrl' => 'getFileUrl'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['fileUrl'] = isset($data['fileUrl']) ? $data['fileUrl'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['fileUrl'] === null) {
+ $invalidProperties[] = "'fileUrl' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets fileUrl
+ *
+ * @return string
+ */
+ public function getFileUrl()
+ {
+ return $this->container['fileUrl'];
+ }
+
+ /**
+ * Sets fileUrl
+ *
+ * @param string $fileUrl A unique link to download the requested file.
+ *
+ * @return $this
+ */
+ public function setFileUrl($fileUrl)
+ {
+ $this->container['fileUrl'] = $fileUrl;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/GetAccount.php b/lib/Model/GetAccount.php
index 1ef42ead..0b752474 100644
--- a/lib/Model/GetAccount.php
+++ b/lib/Model/GetAccount.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -294,6 +294,7 @@ public function setMarketingAutomation($marketingAutomation)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -306,6 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -319,6 +321,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -335,6 +338,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetAccountMarketingAutomation.php b/lib/Model/GetAccountMarketingAutomation.php
index b8bebd3d..d028f314 100644
--- a/lib/Model/GetAccountMarketingAutomation.php
+++ b/lib/Model/GetAccountMarketingAutomation.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setEnabled($enabled)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetAccountPlan.php b/lib/Model/GetAccountPlan.php
index e13e2717..82e6aa65 100644
--- a/lib/Model/GetAccountPlan.php
+++ b/lib/Model/GetAccountPlan.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -461,6 +461,7 @@ public function setUserLimit($userLimit)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -473,6 +474,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -486,6 +488,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -502,6 +505,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetAccountRelay.php b/lib/Model/GetAccountRelay.php
index 8b3be135..c3f327bc 100644
--- a/lib/Model/GetAccountRelay.php
+++ b/lib/Model/GetAccountRelay.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -271,6 +271,7 @@ public function setData($data)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -283,6 +284,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -296,6 +298,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -312,6 +315,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetAccountRelayData.php b/lib/Model/GetAccountRelayData.php
index 29ec4706..7050c2bd 100644
--- a/lib/Model/GetAccountRelayData.php
+++ b/lib/Model/GetAccountRelayData.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -304,6 +304,7 @@ public function setPort($port)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -316,6 +317,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -329,6 +331,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -345,6 +348,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetAggregatedReport.php b/lib/Model/GetAggregatedReport.php
index 4b2d14f1..cbe44b42 100644
--- a/lib/Model/GetAggregatedReport.php
+++ b/lib/Model/GetAggregatedReport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -594,6 +594,7 @@ public function setUnsubscribed($unsubscribed)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -606,6 +607,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -619,6 +621,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -635,6 +638,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetAttributes.php b/lib/Model/GetAttributes.php
index 084a8ea6..3722a3ec 100644
--- a/lib/Model/GetAttributes.php
+++ b/lib/Model/GetAttributes.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setAttributes($attributes)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetAttributesAttributes.php b/lib/Model/GetAttributesAttributes.php
index f30ad42d..6c3fdb68 100644
--- a/lib/Model/GetAttributesAttributes.php
+++ b/lib/Model/GetAttributesAttributes.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -436,6 +436,7 @@ public function setCalculatedValue($calculatedValue)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -448,6 +449,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -461,6 +463,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -477,6 +480,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetAttributesEnumeration.php b/lib/Model/GetAttributesEnumeration.php
index 18296d15..1e1fc7a6 100644
--- a/lib/Model/GetAttributesEnumeration.php
+++ b/lib/Model/GetAttributesEnumeration.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setLabel($label)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetBlockedDomains.php b/lib/Model/GetBlockedDomains.php
index 557661f2..2ef4d671 100644
--- a/lib/Model/GetBlockedDomains.php
+++ b/lib/Model/GetBlockedDomains.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -238,6 +238,7 @@ public function setDomains($domains)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -250,6 +251,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -263,6 +265,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -279,6 +282,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetCampaignOverview.php b/lib/Model/GetCampaignOverview.php
index e6d7aa39..454e17dd 100644
--- a/lib/Model/GetCampaignOverview.php
+++ b/lib/Model/GetCampaignOverview.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -678,6 +678,7 @@ public function setSendAtBestTime($sendAtBestTime)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -690,6 +691,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -703,6 +705,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -719,6 +722,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetCampaignRecipients.php b/lib/Model/GetCampaignRecipients.php
index 64219c35..fdf81d8b 100644
--- a/lib/Model/GetCampaignRecipients.php
+++ b/lib/Model/GetCampaignRecipients.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setExclusionLists($exclusionLists)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetCampaignStats.php b/lib/Model/GetCampaignStats.php
index 271ddb5f..e67837de 100644
--- a/lib/Model/GetCampaignStats.php
+++ b/lib/Model/GetCampaignStats.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -717,6 +717,7 @@ public function setReturnBounce($returnBounce)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -729,6 +730,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -742,6 +744,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -758,6 +761,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetCategories.php b/lib/Model/GetCategories.php
new file mode 100644
index 00000000..ba30663b
--- /dev/null
+++ b/lib/Model/GetCategories.php
@@ -0,0 +1,341 @@
+ 'object[]',
+ 'count' => 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'categories' => null,
+ 'count' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'categories' => 'categories',
+ 'count' => 'count'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'categories' => 'setCategories',
+ 'count' => 'setCount'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'categories' => 'getCategories',
+ 'count' => 'getCount'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['categories'] = isset($data['categories']) ? $data['categories'] : null;
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['categories'] === null) {
+ $invalidProperties[] = "'categories' can't be null";
+ }
+ if ($this->container['count'] === null) {
+ $invalidProperties[] = "'count' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets categories
+ *
+ * @return object[]
+ */
+ public function getCategories()
+ {
+ return $this->container['categories'];
+ }
+
+ /**
+ * Sets categories
+ *
+ * @param object[] $categories categories
+ *
+ * @return $this
+ */
+ public function setCategories($categories)
+ {
+ $this->container['categories'] = $categories;
+
+ return $this;
+ }
+
+ /**
+ * Gets count
+ *
+ * @return int
+ */
+ public function getCount()
+ {
+ return $this->container['count'];
+ }
+
+ /**
+ * Sets count
+ *
+ * @param int $count Number of categories
+ *
+ * @return $this
+ */
+ public function setCount($count)
+ {
+ $this->container['count'] = $count;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/GetCategoryDetails.php b/lib/Model/GetCategoryDetails.php
new file mode 100644
index 00000000..3bd11331
--- /dev/null
+++ b/lib/Model/GetCategoryDetails.php
@@ -0,0 +1,437 @@
+ 'string',
+ 'name' => 'string',
+ 'createdAt' => 'string',
+ 'modifiedAt' => 'string',
+ 'url' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => 'string',
+ 'name' => 'string',
+ 'createdAt' => null,
+ 'modifiedAt' => null,
+ 'url' => 'string'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name',
+ 'createdAt' => 'createdAt',
+ 'modifiedAt' => 'modifiedAt',
+ 'url' => 'url'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName',
+ 'createdAt' => 'setCreatedAt',
+ 'modifiedAt' => 'setModifiedAt',
+ 'url' => 'setUrl'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName',
+ 'createdAt' => 'getCreatedAt',
+ 'modifiedAt' => 'getModifiedAt',
+ 'url' => 'getUrl'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null;
+ $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null;
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ if ($this->container['createdAt'] === null) {
+ $invalidProperties[] = "'createdAt' can't be null";
+ }
+ if ($this->container['modifiedAt'] === null) {
+ $invalidProperties[] = "'modifiedAt' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Category ID for which you requested the details
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Name of the category for which you requested the details
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets createdAt
+ *
+ * @return string
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['createdAt'];
+ }
+
+ /**
+ * Sets createdAt
+ *
+ * @param string $createdAt Creation UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ)
+ *
+ * @return $this
+ */
+ public function setCreatedAt($createdAt)
+ {
+ $this->container['createdAt'] = $createdAt;
+
+ return $this;
+ }
+
+ /**
+ * Gets modifiedAt
+ *
+ * @return string
+ */
+ public function getModifiedAt()
+ {
+ return $this->container['modifiedAt'];
+ }
+
+ /**
+ * Sets modifiedAt
+ *
+ * @param string $modifiedAt Last modification UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ)
+ *
+ * @return $this
+ */
+ public function setModifiedAt($modifiedAt)
+ {
+ $this->container['modifiedAt'] = $modifiedAt;
+
+ return $this;
+ }
+
+ /**
+ * Gets url
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string $url URL to the category
+ *
+ * @return $this
+ */
+ public function setUrl($url)
+ {
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/GetChildAccountCreationStatus.php b/lib/Model/GetChildAccountCreationStatus.php
index 0c55c161..ae044d22 100644
--- a/lib/Model/GetChildAccountCreationStatus.php
+++ b/lib/Model/GetChildAccountCreationStatus.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setChildAccountCreated($childAccountCreated)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildDomain.php b/lib/Model/GetChildDomain.php
index b75a0273..3e65375d 100644
--- a/lib/Model/GetChildDomain.php
+++ b/lib/Model/GetChildDomain.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setActive($active)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildDomains.php b/lib/Model/GetChildDomains.php
index 89c0a9ab..57c5c0cd 100644
--- a/lib/Model/GetChildDomains.php
+++ b/lib/Model/GetChildDomains.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -209,6 +209,7 @@ public function valid()
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -221,6 +222,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -234,6 +236,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -250,6 +253,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildInfo.php b/lib/Model/GetChildInfo.php
index 324e1687..d522bc92 100644
--- a/lib/Model/GetChildInfo.php
+++ b/lib/Model/GetChildInfo.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -351,6 +351,7 @@ public function setApiKeys($apiKeys)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -363,6 +364,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -376,6 +378,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -392,6 +395,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildInfoApiKeys.php b/lib/Model/GetChildInfoApiKeys.php
index 3fd40a18..3d004407 100644
--- a/lib/Model/GetChildInfoApiKeys.php
+++ b/lib/Model/GetChildInfoApiKeys.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -268,6 +268,7 @@ public function setV3($v3)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -280,6 +281,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -293,6 +295,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -309,6 +312,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildInfoApiKeysV2.php b/lib/Model/GetChildInfoApiKeysV2.php
index dce7074b..bc67a17f 100644
--- a/lib/Model/GetChildInfoApiKeysV2.php
+++ b/lib/Model/GetChildInfoApiKeysV2.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setKey($key)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildInfoApiKeysV3.php b/lib/Model/GetChildInfoApiKeysV3.php
index e5c901b1..54f68522 100644
--- a/lib/Model/GetChildInfoApiKeysV3.php
+++ b/lib/Model/GetChildInfoApiKeysV3.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setKey($key)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildInfoCredits.php b/lib/Model/GetChildInfoCredits.php
index 71e957d7..aa3e23de 100644
--- a/lib/Model/GetChildInfoCredits.php
+++ b/lib/Model/GetChildInfoCredits.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setSmsCredits($smsCredits)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildInfoStatistics.php b/lib/Model/GetChildInfoStatistics.php
index 1bf4f9f6..19ec2aec 100644
--- a/lib/Model/GetChildInfoStatistics.php
+++ b/lib/Model/GetChildInfoStatistics.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -295,6 +295,7 @@ public function setTotalSent($totalSent)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -307,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -320,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -336,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetChildrenList.php b/lib/Model/GetChildrenList.php
index 230a543f..637094a9 100644
--- a/lib/Model/GetChildrenList.php
+++ b/lib/Model/GetChildrenList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setCount($count)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetClient.php b/lib/Model/GetClient.php
index 819cf76d..e1e07c93 100644
--- a/lib/Model/GetClient.php
+++ b/lib/Model/GetClient.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setCompanyName($companyName)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetContactCampaignStats.php b/lib/Model/GetContactCampaignStats.php
index 43fc6aaa..ceb3d644 100644
--- a/lib/Model/GetContactCampaignStats.php
+++ b/lib/Model/GetContactCampaignStats.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -475,6 +475,7 @@ public function setDelivered($delivered)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -487,6 +488,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -500,6 +502,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -516,6 +519,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetContactCampaignStatsClicked.php b/lib/Model/GetContactCampaignStatsClicked.php
index 4d51924a..c73247b8 100644
--- a/lib/Model/GetContactCampaignStatsClicked.php
+++ b/lib/Model/GetContactCampaignStatsClicked.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setLinks($links)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetContactCampaignStatsOpened.php b/lib/Model/GetContactCampaignStatsOpened.php
index 00f5d2f1..3525cf13 100644
--- a/lib/Model/GetContactCampaignStatsOpened.php
+++ b/lib/Model/GetContactCampaignStatsOpened.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setIp($ip)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetContactCampaignStatsTransacAttributes.php b/lib/Model/GetContactCampaignStatsTransacAttributes.php
index 40bec505..37500577 100644
--- a/lib/Model/GetContactCampaignStatsTransacAttributes.php
+++ b/lib/Model/GetContactCampaignStatsTransacAttributes.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -303,6 +303,7 @@ public function setOrderId($orderId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -315,6 +316,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -328,6 +330,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -344,6 +347,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetContactCampaignStatsUnsubscriptions.php b/lib/Model/GetContactCampaignStatsUnsubscriptions.php
index a962e469..e802e3cf 100644
--- a/lib/Model/GetContactCampaignStatsUnsubscriptions.php
+++ b/lib/Model/GetContactCampaignStatsUnsubscriptions.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setAdminUnsubscription($adminUnsubscription)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetContactDetails.php b/lib/Model/GetContactDetails.php
index 1e7e6221..b44767ed 100644
--- a/lib/Model/GetContactDetails.php
+++ b/lib/Model/GetContactDetails.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -498,6 +498,7 @@ public function setAttributes($attributes)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -510,6 +511,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -523,6 +525,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -539,6 +542,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetContacts.php b/lib/Model/GetContacts.php
index 18d31d57..b3f973f8 100644
--- a/lib/Model/GetContacts.php
+++ b/lib/Model/GetContacts.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setCount($count)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetDeviceBrowserStats.php b/lib/Model/GetDeviceBrowserStats.php
index 158876ad..c24b5558 100644
--- a/lib/Model/GetDeviceBrowserStats.php
+++ b/lib/Model/GetDeviceBrowserStats.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setUniqueViews($uniqueViews)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetEmailCampaign.php b/lib/Model/GetEmailCampaign.php
index 201b9b95..206cd9ba 100644
--- a/lib/Model/GetEmailCampaign.php
+++ b/lib/Model/GetEmailCampaign.php
@@ -9,6 +9,7 @@
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
+
/**
* SendinBlue API
*
@@ -17,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -49,6 +50,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
* @var string
*/
protected static $swaggerModelName = 'getEmailCampaign';
+
/**
* Array of property to type mappings. Used for (de)serialization
*
@@ -126,6 +128,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
'recipients' => null,
'statistics' => null
];
+
/**
* Array of property to type mappings. Used for (de)serialization
*
@@ -185,6 +188,7 @@ public static function swaggerFormats()
'recipients' => 'recipients',
'statistics' => 'statistics'
];
+
/**
* Array of attributes to setter functions (for deserialization of responses)
*
@@ -223,6 +227,7 @@ public static function swaggerFormats()
'recipients' => 'setRecipients',
'statistics' => 'setStatistics'
];
+
/**
* Array of attributes to getter functions (for serialization of requests)
*
@@ -261,6 +266,7 @@ public static function swaggerFormats()
'recipients' => 'getRecipients',
'statistics' => 'getStatistics'
];
+
/**
* Array of attributes where the key is the local name,
* and the value is the original name
@@ -311,6 +317,7 @@ public function getModelName()
const STATUS_SUSPENDED = 'suspended';
const STATUS_IN_PROCESS = 'in_process';
+
/**
@@ -391,6 +398,7 @@ public function __construct(array $data = null)
$this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null;
$this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null;
}
+
/**
* Show all the invalid properties with reasons.
*
@@ -460,6 +468,7 @@ public function listInvalidProperties()
}
return $invalidProperties;
}
+
/**
* Validate all the properties in the model
* return true if all passed
@@ -1195,6 +1204,7 @@ public function getRecipients()
{
return $this->container['recipients'];
}
+
/**
* Sets recipients
*
@@ -1205,8 +1215,10 @@ public function getRecipients()
public function setRecipients($recipients)
{
$this->container['recipients'] = $recipients;
+
return $this;
}
+
/**
* Gets statistics
*
@@ -1216,6 +1228,7 @@ public function getStatistics()
{
return $this->container['statistics'];
}
+
/**
* Sets statistics
*
@@ -1226,6 +1239,7 @@ public function getStatistics()
public function setStatistics($statistics)
{
$this->container['statistics'] = $statistics;
+
return $this;
}
/**
@@ -1235,10 +1249,12 @@ public function setStatistics($statistics)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
+
/**
* Gets offset.
*
@@ -1246,10 +1262,12 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
+
/**
* Sets value based on offset.
*
@@ -1258,6 +1276,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -1266,6 +1285,7 @@ public function offsetSet($offset, $value)
$this->container[$offset] = $value;
}
}
+
/**
* Unsets offset.
*
@@ -1273,10 +1293,12 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
+
/**
* Gets the string presentation of the object
*
@@ -1290,6 +1312,9 @@ public function __toString()
JSON_PRETTY_PRINT
);
}
+
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
-}
\ No newline at end of file
+}
+
+
diff --git a/lib/Model/GetEmailCampaigns.php b/lib/Model/GetEmailCampaigns.php
index 81dc5888..04cd3294 100644
--- a/lib/Model/GetEmailCampaigns.php
+++ b/lib/Model/GetEmailCampaigns.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setCount($count)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetEmailEventReport.php b/lib/Model/GetEmailEventReport.php
index ef5826f5..35ccc720 100644
--- a/lib/Model/GetEmailEventReport.php
+++ b/lib/Model/GetEmailEventReport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setEvents($events)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetEmailEventReportEvents.php b/lib/Model/GetEmailEventReportEvents.php
index fb676b2d..4e6c4751 100644
--- a/lib/Model/GetEmailEventReportEvents.php
+++ b/lib/Model/GetEmailEventReportEvents.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -602,6 +602,7 @@ public function setTemplateId($templateId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -614,6 +615,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -627,6 +629,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -643,6 +646,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedCampaignOverview.php b/lib/Model/GetExtendedCampaignOverview.php
index aa168312..edf6d00a 100644
--- a/lib/Model/GetExtendedCampaignOverview.php
+++ b/lib/Model/GetExtendedCampaignOverview.php
@@ -9,6 +9,7 @@
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
+
/**
* SendinBlue API
*
@@ -17,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -49,6 +50,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
* @var string
*/
protected static $swaggerModelName = 'getExtendedCampaignOverview';
+
/**
* Array of property to type mappings. Used for (de)serialization
*
@@ -85,6 +87,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
'sentDate' => 'string',
'returnBounce' => 'int'
];
+
/**
* Array of property to format mappings. Used for (de)serialization
*
@@ -121,6 +124,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
'sentDate' => null,
'returnBounce' => 'int64'
];
+
/**
* Array of property to type mappings. Used for (de)serialization
*
@@ -178,6 +182,7 @@ public static function swaggerFormats()
'sentDate' => 'sentDate',
'returnBounce' => 'returnBounce'
];
+
/**
* Array of attributes to setter functions (for deserialization of responses)
*
@@ -214,6 +219,7 @@ public static function swaggerFormats()
'sentDate' => 'setSentDate',
'returnBounce' => 'setReturnBounce'
];
+
/**
* Array of attributes to getter functions (for serialization of requests)
*
@@ -250,6 +256,7 @@ public static function swaggerFormats()
'sentDate' => 'getSentDate',
'returnBounce' => 'getReturnBounce'
];
+
/**
* Array of attributes where the key is the local name,
* and the value is the original name
@@ -300,6 +307,7 @@ public function getModelName()
const STATUS_SUSPENDED = 'suspended';
const STATUS_IN_PROCESS = 'in_process';
+
/**
@@ -378,6 +386,7 @@ public function __construct(array $data = null)
$this->container['sentDate'] = isset($data['sentDate']) ? $data['sentDate'] : null;
$this->container['returnBounce'] = isset($data['returnBounce']) ? $data['returnBounce'] : null;
}
+
/**
* Show all the invalid properties with reasons.
*
@@ -441,6 +450,7 @@ public function listInvalidProperties()
}
return $invalidProperties;
}
+
/**
* Validate all the properties in the model
* return true if all passed
@@ -792,6 +802,7 @@ public function getTestSent()
{
return $this->container['testSent'];
}
+
/**
* Sets testSent
*
@@ -802,8 +813,10 @@ public function getTestSent()
public function setTestSent($testSent)
{
$this->container['testSent'] = $testSent;
+
return $this;
}
+
/**
* Gets header
*
@@ -813,6 +826,7 @@ public function getHeader()
{
return $this->container['header'];
}
+
/**
* Sets header
*
@@ -823,8 +837,10 @@ public function getHeader()
public function setHeader($header)
{
$this->container['header'] = $header;
+
return $this;
}
+
/**
* Gets footer
*
@@ -834,6 +850,7 @@ public function getFooter()
{
return $this->container['footer'];
}
+
/**
* Sets footer
*
@@ -844,8 +861,10 @@ public function getFooter()
public function setFooter($footer)
{
$this->container['footer'] = $footer;
+
return $this;
}
+
/**
* Gets sender
*
@@ -855,6 +874,7 @@ public function getSender()
{
return $this->container['sender'];
}
+
/**
* Sets sender
*
@@ -865,8 +885,10 @@ public function getSender()
public function setSender($sender)
{
$this->container['sender'] = $sender;
+
return $this;
}
+
/**
* Gets replyTo
*
@@ -876,6 +898,7 @@ public function getReplyTo()
{
return $this->container['replyTo'];
}
+
/**
* Sets replyTo
*
@@ -886,8 +909,10 @@ public function getReplyTo()
public function setReplyTo($replyTo)
{
$this->container['replyTo'] = $replyTo;
+
return $this;
}
+
/**
* Gets toField
*
@@ -897,6 +922,7 @@ public function getToField()
{
return $this->container['toField'];
}
+
/**
* Sets toField
*
@@ -907,8 +933,10 @@ public function getToField()
public function setToField($toField)
{
$this->container['toField'] = $toField;
+
return $this;
}
+
/**
* Gets htmlContent
*
@@ -918,6 +946,7 @@ public function getHtmlContent()
{
return $this->container['htmlContent'];
}
+
/**
* Sets htmlContent
*
@@ -928,8 +957,10 @@ public function getHtmlContent()
public function setHtmlContent($htmlContent)
{
$this->container['htmlContent'] = $htmlContent;
+
return $this;
}
+
/**
* Gets shareLink
*
@@ -939,6 +970,7 @@ public function getShareLink()
{
return $this->container['shareLink'];
}
+
/**
* Sets shareLink
*
@@ -949,8 +981,10 @@ public function getShareLink()
public function setShareLink($shareLink)
{
$this->container['shareLink'] = $shareLink;
+
return $this;
}
+
/**
* Gets tag
*
@@ -960,6 +994,7 @@ public function getTag()
{
return $this->container['tag'];
}
+
/**
* Sets tag
*
@@ -970,8 +1005,10 @@ public function getTag()
public function setTag($tag)
{
$this->container['tag'] = $tag;
+
return $this;
}
+
/**
* Gets createdAt
*
@@ -981,6 +1018,7 @@ public function getCreatedAt()
{
return $this->container['createdAt'];
}
+
/**
* Sets createdAt
*
@@ -991,8 +1029,10 @@ public function getCreatedAt()
public function setCreatedAt($createdAt)
{
$this->container['createdAt'] = $createdAt;
+
return $this;
}
+
/**
* Gets modifiedAt
*
@@ -1002,6 +1042,7 @@ public function getModifiedAt()
{
return $this->container['modifiedAt'];
}
+
/**
* Sets modifiedAt
*
@@ -1012,8 +1053,10 @@ public function getModifiedAt()
public function setModifiedAt($modifiedAt)
{
$this->container['modifiedAt'] = $modifiedAt;
+
return $this;
}
+
/**
* Gets inlineImageActivation
*
@@ -1023,6 +1066,7 @@ public function getInlineImageActivation()
{
return $this->container['inlineImageActivation'];
}
+
/**
* Sets inlineImageActivation
*
@@ -1033,8 +1077,10 @@ public function getInlineImageActivation()
public function setInlineImageActivation($inlineImageActivation)
{
$this->container['inlineImageActivation'] = $inlineImageActivation;
+
return $this;
}
+
/**
* Gets mirrorActive
*
@@ -1044,6 +1090,7 @@ public function getMirrorActive()
{
return $this->container['mirrorActive'];
}
+
/**
* Sets mirrorActive
*
@@ -1054,8 +1101,10 @@ public function getMirrorActive()
public function setMirrorActive($mirrorActive)
{
$this->container['mirrorActive'] = $mirrorActive;
+
return $this;
}
+
/**
* Gets recurring
*
@@ -1065,6 +1114,7 @@ public function getRecurring()
{
return $this->container['recurring'];
}
+
/**
* Sets recurring
*
@@ -1075,8 +1125,10 @@ public function getRecurring()
public function setRecurring($recurring)
{
$this->container['recurring'] = $recurring;
+
return $this;
}
+
/**
* Gets sentDate
*
@@ -1086,6 +1138,7 @@ public function getSentDate()
{
return $this->container['sentDate'];
}
+
/**
* Sets sentDate
*
@@ -1096,8 +1149,10 @@ public function getSentDate()
public function setSentDate($sentDate)
{
$this->container['sentDate'] = $sentDate;
+
return $this;
}
+
/**
* Gets returnBounce
*
@@ -1107,6 +1162,7 @@ public function getReturnBounce()
{
return $this->container['returnBounce'];
}
+
/**
* Sets returnBounce
*
@@ -1117,6 +1173,7 @@ public function getReturnBounce()
public function setReturnBounce($returnBounce)
{
$this->container['returnBounce'] = $returnBounce;
+
return $this;
}
/**
@@ -1126,10 +1183,12 @@ public function setReturnBounce($returnBounce)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
+
/**
* Gets offset.
*
@@ -1137,10 +1196,12 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
+
/**
* Sets value based on offset.
*
@@ -1149,6 +1210,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -1157,6 +1219,7 @@ public function offsetSet($offset, $value)
$this->container[$offset] = $value;
}
}
+
/**
* Unsets offset.
*
@@ -1164,10 +1227,12 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
+
/**
* Gets the string presentation of the object
*
@@ -1181,6 +1246,9 @@ public function __toString()
JSON_PRETTY_PRINT
);
}
+
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
-}
\ No newline at end of file
+}
+
+
diff --git a/lib/Model/GetExtendedCampaignOverviewSender.php b/lib/Model/GetExtendedCampaignOverviewSender.php
index c3e09335..7e850d0b 100644
--- a/lib/Model/GetExtendedCampaignOverviewSender.php
+++ b/lib/Model/GetExtendedCampaignOverviewSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -294,6 +294,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -306,6 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -319,6 +321,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -335,6 +338,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedCampaignStats.php b/lib/Model/GetExtendedCampaignStats.php
index 41d0df6b..532ac666 100644
--- a/lib/Model/GetExtendedCampaignStats.php
+++ b/lib/Model/GetExtendedCampaignStats.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -468,6 +468,7 @@ public function setStatsByBrowser($statsByBrowser)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -480,6 +481,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -493,6 +495,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -509,6 +512,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedCampaignStatsGlobalStats.php b/lib/Model/GetExtendedCampaignStatsGlobalStats.php
index 48b928bd..f8d05e58 100644
--- a/lib/Model/GetExtendedCampaignStatsGlobalStats.php
+++ b/lib/Model/GetExtendedCampaignStatsGlobalStats.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -210,6 +210,7 @@ public function valid()
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -222,6 +223,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -235,6 +237,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -251,6 +254,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedClient.php b/lib/Model/GetExtendedClient.php
index 4ca84d17..9f521366 100644
--- a/lib/Model/GetExtendedClient.php
+++ b/lib/Model/GetExtendedClient.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -231,6 +231,7 @@ public function setAddress($address)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -243,6 +244,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -256,6 +258,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -272,6 +275,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedClientAddress.php b/lib/Model/GetExtendedClientAddress.php
index 544858fe..7c14036e 100644
--- a/lib/Model/GetExtendedClientAddress.php
+++ b/lib/Model/GetExtendedClientAddress.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -337,6 +337,7 @@ public function setCountry($country)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -349,6 +350,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -362,6 +364,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -378,6 +381,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedContactDetails.php b/lib/Model/GetExtendedContactDetails.php
index a007f660..0b2d8ad1 100644
--- a/lib/Model/GetExtendedContactDetails.php
+++ b/lib/Model/GetExtendedContactDetails.php
@@ -9,6 +9,7 @@
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
+
/**
* SendinBlue API
*
@@ -17,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -49,6 +50,7 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess
* @var string
*/
protected static $swaggerModelName = 'getExtendedContactDetails';
+
/**
* Array of property to type mappings. Used for (de)serialization
*
@@ -200,8 +202,10 @@ public function getModelName()
{
return self::$swaggerModelName;
}
+
+
/**
@@ -269,6 +273,7 @@ public function listInvalidProperties()
}
return $invalidProperties;
}
+
/**
* Validate all the properties in the model
* return true if all passed
@@ -506,6 +511,7 @@ public function getStatistics()
{
return $this->container['statistics'];
}
+
/**
* Sets statistics
*
@@ -516,6 +522,7 @@ public function getStatistics()
public function setStatistics($statistics)
{
$this->container['statistics'] = $statistics;
+
return $this;
}
/**
@@ -525,10 +532,12 @@ public function setStatistics($statistics)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
+
/**
* Gets offset.
*
@@ -536,10 +545,12 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
+
/**
* Sets value based on offset.
*
@@ -548,6 +559,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -556,6 +568,7 @@ public function offsetSet($offset, $value)
$this->container[$offset] = $value;
}
}
+
/**
* Unsets offset.
*
@@ -563,10 +576,12 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
+
/**
* Gets the string presentation of the object
*
@@ -580,6 +595,9 @@ public function __toString()
JSON_PRETTY_PRINT
);
}
+
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
-}
\ No newline at end of file
+}
+
+
diff --git a/lib/Model/GetExtendedContactDetailsStatistics.php b/lib/Model/GetExtendedContactDetailsStatistics.php
index 1e2e602f..aec92c93 100644
--- a/lib/Model/GetExtendedContactDetailsStatistics.php
+++ b/lib/Model/GetExtendedContactDetailsStatistics.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -66,7 +66,7 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess
'opened' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsOpened[]',
'clicked' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsClicked[]',
'transacAttributes' => 'object[]',
- 'delivered' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsDelivered[]'
+ 'delivered' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]'
];
/**
@@ -448,7 +448,7 @@ public function setTransacAttributes($transacAttributes)
/**
* Gets delivered
*
- * @return \SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsDelivered[]
+ * @return \SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]
*/
public function getDelivered()
{
@@ -458,7 +458,7 @@ public function getDelivered()
/**
* Sets delivered
*
- * @param \SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsDelivered[] $delivered Listing of the delivered campaign for the contact
+ * @param \SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[] $delivered Listing of the delivered campaign for the contact
*
* @return $this
*/
@@ -475,6 +475,7 @@ public function setDelivered($delivered)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -487,6 +488,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -500,6 +502,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -516,6 +519,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedContactDetailsStatisticsClicked.php b/lib/Model/GetExtendedContactDetailsStatisticsClicked.php
index b7d7987b..ceafdc63 100644
--- a/lib/Model/GetExtendedContactDetailsStatisticsClicked.php
+++ b/lib/Model/GetExtendedContactDetailsStatisticsClicked.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setLinks($links)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedContactDetailsStatisticsLinks.php b/lib/Model/GetExtendedContactDetailsStatisticsLinks.php
index 1ac644a9..23ebf952 100644
--- a/lib/Model/GetExtendedContactDetailsStatisticsLinks.php
+++ b/lib/Model/GetExtendedContactDetailsStatisticsLinks.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setUrl($url)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php b/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php
index ba785569..12eaceb4 100644
--- a/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php
+++ b/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setEventTime($eventTime)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedContactDetailsStatisticsOpened.php b/lib/Model/GetExtendedContactDetailsStatisticsOpened.php
index 27b159c7..d8ac1d21 100644
--- a/lib/Model/GetExtendedContactDetailsStatisticsOpened.php
+++ b/lib/Model/GetExtendedContactDetailsStatisticsOpened.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setIp($ip)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php
index b698304b..8e66e21b 100644
--- a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php
+++ b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -271,6 +271,7 @@ public function setAdminUnsubscription($adminUnsubscription)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -283,6 +284,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -296,6 +298,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -312,6 +315,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php
index 70f49e65..54775203 100644
--- a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php
+++ b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setIp($ip)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php
index 51979065..94330acb 100644
--- a/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php
+++ b/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -300,6 +300,7 @@ public function setIp($ip)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -312,6 +313,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -325,6 +327,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -341,6 +344,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedList.php b/lib/Model/GetExtendedList.php
index 77927ab0..2f4dd27b 100644
--- a/lib/Model/GetExtendedList.php
+++ b/lib/Model/GetExtendedList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -324,6 +324,7 @@ public function setDynamicList($dynamicList)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -336,6 +337,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -349,6 +351,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -365,6 +368,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetExtendedListCampaignStats.php b/lib/Model/GetExtendedListCampaignStats.php
index 5281f5f0..3cf9fa75 100644
--- a/lib/Model/GetExtendedListCampaignStats.php
+++ b/lib/Model/GetExtendedListCampaignStats.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setStats($stats)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetFolder.php b/lib/Model/GetFolder.php
index 060161f9..41268a60 100644
--- a/lib/Model/GetFolder.php
+++ b/lib/Model/GetFolder.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -369,6 +369,7 @@ public function setUniqueSubscribers($uniqueSubscribers)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -381,6 +382,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -394,6 +396,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -410,6 +413,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetFolderLists.php b/lib/Model/GetFolderLists.php
index 33069ef7..6e45c768 100644
--- a/lib/Model/GetFolderLists.php
+++ b/lib/Model/GetFolderLists.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setCount($count)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetFolders.php b/lib/Model/GetFolders.php
index e4355221..f685be4f 100644
--- a/lib/Model/GetFolders.php
+++ b/lib/Model/GetFolders.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setCount($count)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetInboundEmailEvents.php b/lib/Model/GetInboundEmailEvents.php
index 0bbcfcf8..c09c3560 100644
--- a/lib/Model/GetInboundEmailEvents.php
+++ b/lib/Model/GetInboundEmailEvents.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setEvents($events)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetInboundEmailEventsByUuid.php b/lib/Model/GetInboundEmailEventsByUuid.php
index 74940bd1..78ebd01d 100644
--- a/lib/Model/GetInboundEmailEventsByUuid.php
+++ b/lib/Model/GetInboundEmailEventsByUuid.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -444,6 +444,7 @@ public function setLogs($logs)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -456,6 +457,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -469,6 +471,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -485,6 +488,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetInboundEmailEventsByUuidAttachments.php b/lib/Model/GetInboundEmailEventsByUuidAttachments.php
index aadf5a91..27555908 100644
--- a/lib/Model/GetInboundEmailEventsByUuidAttachments.php
+++ b/lib/Model/GetInboundEmailEventsByUuidAttachments.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -324,6 +324,7 @@ public function setContentLength($contentLength)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -336,6 +337,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -349,6 +351,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -365,6 +368,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetInboundEmailEventsByUuidLogs.php b/lib/Model/GetInboundEmailEventsByUuidLogs.php
index dad7fbbe..1a24e85c 100644
--- a/lib/Model/GetInboundEmailEventsByUuidLogs.php
+++ b/lib/Model/GetInboundEmailEventsByUuidLogs.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -300,6 +300,7 @@ public function setType($type)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -312,6 +313,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -325,6 +327,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -341,6 +344,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetInboundEmailEventsEvents.php b/lib/Model/GetInboundEmailEventsEvents.php
index 4206a0da..e9a77838 100644
--- a/lib/Model/GetInboundEmailEventsEvents.php
+++ b/lib/Model/GetInboundEmailEventsEvents.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setRecipient($recipient)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetIp.php b/lib/Model/GetIp.php
index a17d0573..eedaa96a 100644
--- a/lib/Model/GetIp.php
+++ b/lib/Model/GetIp.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setDomain($domain)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetIpFromSender.php b/lib/Model/GetIpFromSender.php
index 962ba8b8..02d927ff 100644
--- a/lib/Model/GetIpFromSender.php
+++ b/lib/Model/GetIpFromSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setWeight($weight)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetIps.php b/lib/Model/GetIps.php
index ae54bc24..3bd45ded 100644
--- a/lib/Model/GetIps.php
+++ b/lib/Model/GetIps.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setIps($ips)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetIpsFromSender.php b/lib/Model/GetIpsFromSender.php
index 694e6102..4729a613 100644
--- a/lib/Model/GetIpsFromSender.php
+++ b/lib/Model/GetIpsFromSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setIps($ips)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetList.php b/lib/Model/GetList.php
index f09ac786..74f592b8 100644
--- a/lib/Model/GetList.php
+++ b/lib/Model/GetList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -369,6 +369,7 @@ public function setUniqueSubscribers($uniqueSubscribers)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -381,6 +382,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -394,6 +396,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -410,6 +413,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetLists.php b/lib/Model/GetLists.php
index cea44aba..45bb64ce 100644
--- a/lib/Model/GetLists.php
+++ b/lib/Model/GetLists.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setCount($count)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetProcess.php b/lib/Model/GetProcess.php
index d44187d2..bebce976 100644
--- a/lib/Model/GetProcess.php
+++ b/lib/Model/GetProcess.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -367,6 +367,7 @@ public function setExportUrl($exportUrl)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -379,6 +380,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -392,6 +394,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -408,6 +411,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetProcesses.php b/lib/Model/GetProcesses.php
index 666a287c..fa924abe 100644
--- a/lib/Model/GetProcesses.php
+++ b/lib/Model/GetProcesses.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setCount($count)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetProductDetails.php b/lib/Model/GetProductDetails.php
new file mode 100644
index 00000000..2f74bcc3
--- /dev/null
+++ b/lib/Model/GetProductDetails.php
@@ -0,0 +1,683 @@
+ 'string',
+ 'name' => 'string',
+ 'createdAt' => 'string',
+ 'modifiedAt' => 'string',
+ 'url' => 'string',
+ 'imageUrl' => 'string',
+ 'sku' => 'string',
+ 'price' => 'float',
+ 'categories' => 'string[]',
+ 'parentId' => 'string',
+ 's3Original' => 'string',
+ 's3ThumbAnalytics' => 'string',
+ 's3ThumbEditor' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => 'string',
+ 'name' => 'string',
+ 'createdAt' => null,
+ 'modifiedAt' => null,
+ 'url' => 'string',
+ 'imageUrl' => 'string',
+ 'sku' => 'string',
+ 'price' => 'float',
+ 'categories' => null,
+ 'parentId' => 'string',
+ 's3Original' => 'string',
+ 's3ThumbAnalytics' => 'string',
+ 's3ThumbEditor' => 'string'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name',
+ 'createdAt' => 'createdAt',
+ 'modifiedAt' => 'modifiedAt',
+ 'url' => 'url',
+ 'imageUrl' => 'imageUrl',
+ 'sku' => 'sku',
+ 'price' => 'price',
+ 'categories' => 'categories',
+ 'parentId' => 'parentId',
+ 's3Original' => 's3Original',
+ 's3ThumbAnalytics' => 's3ThumbAnalytics',
+ 's3ThumbEditor' => 's3ThumbEditor'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName',
+ 'createdAt' => 'setCreatedAt',
+ 'modifiedAt' => 'setModifiedAt',
+ 'url' => 'setUrl',
+ 'imageUrl' => 'setImageUrl',
+ 'sku' => 'setSku',
+ 'price' => 'setPrice',
+ 'categories' => 'setCategories',
+ 'parentId' => 'setParentId',
+ 's3Original' => 'setS3Original',
+ 's3ThumbAnalytics' => 'setS3ThumbAnalytics',
+ 's3ThumbEditor' => 'setS3ThumbEditor'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName',
+ 'createdAt' => 'getCreatedAt',
+ 'modifiedAt' => 'getModifiedAt',
+ 'url' => 'getUrl',
+ 'imageUrl' => 'getImageUrl',
+ 'sku' => 'getSku',
+ 'price' => 'getPrice',
+ 'categories' => 'getCategories',
+ 'parentId' => 'getParentId',
+ 's3Original' => 'getS3Original',
+ 's3ThumbAnalytics' => 'getS3ThumbAnalytics',
+ 's3ThumbEditor' => 'getS3ThumbEditor'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null;
+ $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null;
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
+ $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : null;
+ $this->container['sku'] = isset($data['sku']) ? $data['sku'] : null;
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
+ $this->container['categories'] = isset($data['categories']) ? $data['categories'] : null;
+ $this->container['parentId'] = isset($data['parentId']) ? $data['parentId'] : null;
+ $this->container['s3Original'] = isset($data['s3Original']) ? $data['s3Original'] : null;
+ $this->container['s3ThumbAnalytics'] = isset($data['s3ThumbAnalytics']) ? $data['s3ThumbAnalytics'] : null;
+ $this->container['s3ThumbEditor'] = isset($data['s3ThumbEditor']) ? $data['s3ThumbEditor'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ if ($this->container['createdAt'] === null) {
+ $invalidProperties[] = "'createdAt' can't be null";
+ }
+ if ($this->container['modifiedAt'] === null) {
+ $invalidProperties[] = "'modifiedAt' can't be null";
+ }
+ if ($this->container['s3ThumbAnalytics'] === null) {
+ $invalidProperties[] = "'s3ThumbAnalytics' can't be null";
+ }
+ if ($this->container['s3ThumbEditor'] === null) {
+ $invalidProperties[] = "'s3ThumbEditor' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Product ID for which you requested the details
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Name of the product for which you requested the details
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets createdAt
+ *
+ * @return string
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['createdAt'];
+ }
+
+ /**
+ * Sets createdAt
+ *
+ * @param string $createdAt Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ)
+ *
+ * @return $this
+ */
+ public function setCreatedAt($createdAt)
+ {
+ $this->container['createdAt'] = $createdAt;
+
+ return $this;
+ }
+
+ /**
+ * Gets modifiedAt
+ *
+ * @return string
+ */
+ public function getModifiedAt()
+ {
+ return $this->container['modifiedAt'];
+ }
+
+ /**
+ * Sets modifiedAt
+ *
+ * @param string $modifiedAt Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ)
+ *
+ * @return $this
+ */
+ public function setModifiedAt($modifiedAt)
+ {
+ $this->container['modifiedAt'] = $modifiedAt;
+
+ return $this;
+ }
+
+ /**
+ * Gets url
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string $url URL to the product
+ *
+ * @return $this
+ */
+ public function setUrl($url)
+ {
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+
+ /**
+ * Gets imageUrl
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['imageUrl'];
+ }
+
+ /**
+ * Sets imageUrl
+ *
+ * @param string $imageUrl Absolute URL to the cover image of the product
+ *
+ * @return $this
+ */
+ public function setImageUrl($imageUrl)
+ {
+ $this->container['imageUrl'] = $imageUrl;
+
+ return $this;
+ }
+
+ /**
+ * Gets sku
+ *
+ * @return string
+ */
+ public function getSku()
+ {
+ return $this->container['sku'];
+ }
+
+ /**
+ * Sets sku
+ *
+ * @param string $sku Product identifier from the shop
+ *
+ * @return $this
+ */
+ public function setSku($sku)
+ {
+ $this->container['sku'] = $sku;
+
+ return $this;
+ }
+
+ /**
+ * Gets price
+ *
+ * @return float
+ */
+ public function getPrice()
+ {
+ return $this->container['price'];
+ }
+
+ /**
+ * Sets price
+ *
+ * @param float $price Price of the product
+ *
+ * @return $this
+ */
+ public function setPrice($price)
+ {
+ $this->container['price'] = $price;
+
+ return $this;
+ }
+
+ /**
+ * Gets categories
+ *
+ * @return string[]
+ */
+ public function getCategories()
+ {
+ return $this->container['categories'];
+ }
+
+ /**
+ * Sets categories
+ *
+ * @param string[] $categories Category ID-s of the product
+ *
+ * @return $this
+ */
+ public function setCategories($categories)
+ {
+ $this->container['categories'] = $categories;
+
+ return $this;
+ }
+
+ /**
+ * Gets parentId
+ *
+ * @return string
+ */
+ public function getParentId()
+ {
+ return $this->container['parentId'];
+ }
+
+ /**
+ * Sets parentId
+ *
+ * @param string $parentId Parent product id of the product
+ *
+ * @return $this
+ */
+ public function setParentId($parentId)
+ {
+ $this->container['parentId'] = $parentId;
+
+ return $this;
+ }
+
+ /**
+ * Gets s3Original
+ *
+ * @return string
+ */
+ public function getS3Original()
+ {
+ return $this->container['s3Original'];
+ }
+
+ /**
+ * Sets s3Original
+ *
+ * @param string $s3Original S3 url of original image
+ *
+ * @return $this
+ */
+ public function setS3Original($s3Original)
+ {
+ $this->container['s3Original'] = $s3Original;
+
+ return $this;
+ }
+
+ /**
+ * Gets s3ThumbAnalytics
+ *
+ * @return string
+ */
+ public function getS3ThumbAnalytics()
+ {
+ return $this->container['s3ThumbAnalytics'];
+ }
+
+ /**
+ * Sets s3ThumbAnalytics
+ *
+ * @param string $s3ThumbAnalytics S3 thumbnail url of original image in 120x120 dimension for analytics section
+ *
+ * @return $this
+ */
+ public function setS3ThumbAnalytics($s3ThumbAnalytics)
+ {
+ $this->container['s3ThumbAnalytics'] = $s3ThumbAnalytics;
+
+ return $this;
+ }
+
+ /**
+ * Gets s3ThumbEditor
+ *
+ * @return string
+ */
+ public function getS3ThumbEditor()
+ {
+ return $this->container['s3ThumbEditor'];
+ }
+
+ /**
+ * Sets s3ThumbEditor
+ *
+ * @param string $s3ThumbEditor S3 thumbnail url of original image in 600x400 dimension for editor section
+ *
+ * @return $this
+ */
+ public function setS3ThumbEditor($s3ThumbEditor)
+ {
+ $this->container['s3ThumbEditor'] = $s3ThumbEditor;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/GetProducts.php b/lib/Model/GetProducts.php
new file mode 100644
index 00000000..f98546b9
--- /dev/null
+++ b/lib/Model/GetProducts.php
@@ -0,0 +1,341 @@
+ 'object[]',
+ 'count' => 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'products' => null,
+ 'count' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'products' => 'products',
+ 'count' => 'count'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'products' => 'setProducts',
+ 'count' => 'setCount'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'products' => 'getProducts',
+ 'count' => 'getCount'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['products'] = isset($data['products']) ? $data['products'] : null;
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['products'] === null) {
+ $invalidProperties[] = "'products' can't be null";
+ }
+ if ($this->container['count'] === null) {
+ $invalidProperties[] = "'count' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets products
+ *
+ * @return object[]
+ */
+ public function getProducts()
+ {
+ return $this->container['products'];
+ }
+
+ /**
+ * Sets products
+ *
+ * @param object[] $products products
+ *
+ * @return $this
+ */
+ public function setProducts($products)
+ {
+ $this->container['products'] = $products;
+
+ return $this;
+ }
+
+ /**
+ * Gets count
+ *
+ * @return int
+ */
+ public function getCount()
+ {
+ return $this->container['count'];
+ }
+
+ /**
+ * Sets count
+ *
+ * @param int $count Number of products
+ *
+ * @return $this
+ */
+ public function setCount($count)
+ {
+ $this->container['count'] = $count;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/GetReports.php b/lib/Model/GetReports.php
index 9556ad12..56d07d2f 100644
--- a/lib/Model/GetReports.php
+++ b/lib/Model/GetReports.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setReports($reports)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetReportsReports.php b/lib/Model/GetReportsReports.php
index 31f10a6f..c7b0958c 100644
--- a/lib/Model/GetReportsReports.php
+++ b/lib/Model/GetReportsReports.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -633,6 +633,7 @@ public function setUnsubscribed($unsubscribed)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -645,6 +646,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -658,6 +660,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -674,6 +677,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetScheduledEmailByBatchId.php b/lib/Model/GetScheduledEmailByBatchId.php
index d67c20e1..3a1a8bb5 100644
--- a/lib/Model/GetScheduledEmailByBatchId.php
+++ b/lib/Model/GetScheduledEmailByBatchId.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setBatches($batches)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetScheduledEmailByBatchIdBatches.php b/lib/Model/GetScheduledEmailByBatchIdBatches.php
index 2e068e38..0062c13a 100644
--- a/lib/Model/GetScheduledEmailByBatchIdBatches.php
+++ b/lib/Model/GetScheduledEmailByBatchIdBatches.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -339,6 +339,7 @@ public function setStatus($status)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -351,6 +352,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -364,6 +366,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -380,6 +383,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetScheduledEmailByMessageId.php b/lib/Model/GetScheduledEmailByMessageId.php
index a797fc28..ffa6aad2 100644
--- a/lib/Model/GetScheduledEmailByMessageId.php
+++ b/lib/Model/GetScheduledEmailByMessageId.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -339,6 +339,7 @@ public function setStatus($status)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -351,6 +352,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -364,6 +366,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -380,6 +383,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSendersList.php b/lib/Model/GetSendersList.php
index 4ce014a2..ca736488 100644
--- a/lib/Model/GetSendersList.php
+++ b/lib/Model/GetSendersList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setSenders($senders)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSendersListIps.php b/lib/Model/GetSendersListIps.php
index c4053304..8d1746eb 100644
--- a/lib/Model/GetSendersListIps.php
+++ b/lib/Model/GetSendersListIps.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -303,6 +303,7 @@ public function setWeight($weight)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -315,6 +316,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -328,6 +330,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -344,6 +347,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSendersListSenders.php b/lib/Model/GetSendersListSenders.php
index 097ad166..9d2f6d1e 100644
--- a/lib/Model/GetSendersListSenders.php
+++ b/lib/Model/GetSendersListSenders.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -366,6 +366,7 @@ public function setIps($ips)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -378,6 +379,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -391,6 +393,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -407,6 +410,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSharedTemplateUrl.php b/lib/Model/GetSharedTemplateUrl.php
index 05c023e0..352bc467 100644
--- a/lib/Model/GetSharedTemplateUrl.php
+++ b/lib/Model/GetSharedTemplateUrl.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setSharedUrl($sharedUrl)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmsCampaign.php b/lib/Model/GetSmsCampaign.php
index fd68d201..5520eccc 100644
--- a/lib/Model/GetSmsCampaign.php
+++ b/lib/Model/GetSmsCampaign.php
@@ -9,6 +9,7 @@
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
+
/**
* SendinBlue API
*
@@ -17,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -49,6 +50,7 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess
* @var string
*/
protected static $swaggerModelName = 'getSmsCampaign';
+
/**
* Array of property to type mappings. Used for (de)serialization
*
@@ -83,6 +85,7 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess
'recipients' => null,
'statistics' => null
];
+
/**
* Array of property to type mappings. Used for (de)serialization
*
@@ -121,6 +124,7 @@ public static function swaggerFormats()
'recipients' => 'recipients',
'statistics' => 'statistics'
];
+
/**
* Array of attributes to setter functions (for deserialization of responses)
*
@@ -138,6 +142,7 @@ public static function swaggerFormats()
'recipients' => 'setRecipients',
'statistics' => 'setStatistics'
];
+
/**
* Array of attributes to getter functions (for serialization of requests)
*
@@ -155,6 +160,7 @@ public static function swaggerFormats()
'recipients' => 'getRecipients',
'statistics' => 'getStatistics'
];
+
/**
* Array of attributes where the key is the local name,
* and the value is the original name
@@ -203,6 +209,7 @@ public function getModelName()
const STATUS_SUSPENDED = 'suspended';
const STATUS_IN_PROCESS = 'inProcess';
+
/**
@@ -249,6 +256,7 @@ public function __construct(array $data = null)
$this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null;
$this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null;
}
+
/**
* Show all the invalid properties with reasons.
*
@@ -295,6 +303,7 @@ public function listInvalidProperties()
}
return $invalidProperties;
}
+
/**
* Validate all the properties in the model
* return true if all passed
@@ -517,6 +526,7 @@ public function getRecipients()
{
return $this->container['recipients'];
}
+
/**
* Sets recipients
*
@@ -527,8 +537,10 @@ public function getRecipients()
public function setRecipients($recipients)
{
$this->container['recipients'] = $recipients;
+
return $this;
}
+
/**
* Gets statistics
*
@@ -538,6 +550,7 @@ public function getStatistics()
{
return $this->container['statistics'];
}
+
/**
* Sets statistics
*
@@ -548,6 +561,7 @@ public function getStatistics()
public function setStatistics($statistics)
{
$this->container['statistics'] = $statistics;
+
return $this;
}
/**
@@ -557,10 +571,12 @@ public function setStatistics($statistics)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
+
/**
* Gets offset.
*
@@ -568,10 +584,12 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
+
/**
* Sets value based on offset.
*
@@ -580,6 +598,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -588,6 +607,7 @@ public function offsetSet($offset, $value)
$this->container[$offset] = $value;
}
}
+
/**
* Unsets offset.
*
@@ -595,10 +615,12 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
+
/**
* Gets the string presentation of the object
*
@@ -612,6 +634,9 @@ public function __toString()
JSON_PRETTY_PRINT
);
}
+
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
-}
\ No newline at end of file
+}
+
+
diff --git a/lib/Model/GetSmsCampaignOverview.php b/lib/Model/GetSmsCampaignOverview.php
index 62663a19..debecdd9 100644
--- a/lib/Model/GetSmsCampaignOverview.php
+++ b/lib/Model/GetSmsCampaignOverview.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -505,6 +505,7 @@ public function setModifiedAt($modifiedAt)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -517,6 +518,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -530,6 +532,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -546,6 +549,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmsCampaignRecipients.php b/lib/Model/GetSmsCampaignRecipients.php
index 1096d1d5..92277762 100644
--- a/lib/Model/GetSmsCampaignRecipients.php
+++ b/lib/Model/GetSmsCampaignRecipients.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -209,6 +209,7 @@ public function valid()
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -221,6 +222,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -234,6 +236,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -250,6 +253,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmsCampaignStats.php b/lib/Model/GetSmsCampaignStats.php
index e375c9f0..54dbbcbb 100644
--- a/lib/Model/GetSmsCampaignStats.php
+++ b/lib/Model/GetSmsCampaignStats.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -435,6 +435,7 @@ public function setAnswered($answered)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -447,6 +448,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -460,6 +462,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -476,6 +479,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmsCampaigns.php b/lib/Model/GetSmsCampaigns.php
index 08bc3d34..3897326f 100644
--- a/lib/Model/GetSmsCampaigns.php
+++ b/lib/Model/GetSmsCampaigns.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setCount($count)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmsEventReport.php b/lib/Model/GetSmsEventReport.php
index 327377e4..014f5ac0 100644
--- a/lib/Model/GetSmsEventReport.php
+++ b/lib/Model/GetSmsEventReport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setEvents($events)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmsEventReportEvents.php b/lib/Model/GetSmsEventReportEvents.php
index 6c3d3580..a7b7b24d 100644
--- a/lib/Model/GetSmsEventReportEvents.php
+++ b/lib/Model/GetSmsEventReportEvents.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -460,6 +460,7 @@ public function setTag($tag)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -472,6 +473,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -485,6 +487,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -501,6 +504,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmtpTemplateOverview.php b/lib/Model/GetSmtpTemplateOverview.php
index 0c5c3c63..bf0eca42 100644
--- a/lib/Model/GetSmtpTemplateOverview.php
+++ b/lib/Model/GetSmtpTemplateOverview.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -630,6 +630,7 @@ public function setDoiTemplate($doiTemplate)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -642,6 +643,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -655,6 +657,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -671,6 +674,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmtpTemplateOverviewSender.php b/lib/Model/GetSmtpTemplateOverviewSender.php
index d16d543d..400ac184 100644
--- a/lib/Model/GetSmtpTemplateOverviewSender.php
+++ b/lib/Model/GetSmtpTemplateOverviewSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -294,6 +294,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -306,6 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -319,6 +321,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -335,6 +338,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSmtpTemplates.php b/lib/Model/GetSmtpTemplates.php
index 7dfcf63e..5d8c0bca 100644
--- a/lib/Model/GetSmtpTemplates.php
+++ b/lib/Model/GetSmtpTemplates.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setTemplates($templates)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetSsoToken.php b/lib/Model/GetSsoToken.php
index c60a18d2..9d31df0f 100644
--- a/lib/Model/GetSsoToken.php
+++ b/lib/Model/GetSsoToken.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setToken($token)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetStatsByBrowser.php b/lib/Model/GetStatsByBrowser.php
index 45adbd2b..a823577e 100644
--- a/lib/Model/GetStatsByBrowser.php
+++ b/lib/Model/GetStatsByBrowser.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -209,6 +209,7 @@ public function valid()
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -221,6 +222,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -234,6 +236,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -250,6 +253,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetStatsByDevice.php b/lib/Model/GetStatsByDevice.php
index 4fe00e82..2ab8b332 100644
--- a/lib/Model/GetStatsByDevice.php
+++ b/lib/Model/GetStatsByDevice.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -324,6 +324,7 @@ public function setUnknown($unknown)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -336,6 +337,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -349,6 +351,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -365,6 +368,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetStatsByDomain.php b/lib/Model/GetStatsByDomain.php
index deebe249..f6e451be 100644
--- a/lib/Model/GetStatsByDomain.php
+++ b/lib/Model/GetStatsByDomain.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -209,6 +209,7 @@ public function valid()
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -221,6 +222,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -234,6 +236,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -250,6 +253,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacAggregatedSmsReport.php b/lib/Model/GetTransacAggregatedSmsReport.php
index 9338dc83..2982d9d2 100644
--- a/lib/Model/GetTransacAggregatedSmsReport.php
+++ b/lib/Model/GetTransacAggregatedSmsReport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -504,6 +504,7 @@ public function setRejected($rejected)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -516,6 +517,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -529,6 +531,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -545,6 +548,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacBlockedContacts.php b/lib/Model/GetTransacBlockedContacts.php
index aa41b05f..1f87f73c 100644
--- a/lib/Model/GetTransacBlockedContacts.php
+++ b/lib/Model/GetTransacBlockedContacts.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setContacts($contacts)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacBlockedContactsContacts.php b/lib/Model/GetTransacBlockedContactsContacts.php
index 8202cee0..3e4bdeb7 100644
--- a/lib/Model/GetTransacBlockedContactsContacts.php
+++ b/lib/Model/GetTransacBlockedContactsContacts.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setBlockedAt($blockedAt)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacBlockedContactsReason.php b/lib/Model/GetTransacBlockedContactsReason.php
index 33e2fd31..6c93cb3e 100644
--- a/lib/Model/GetTransacBlockedContactsReason.php
+++ b/lib/Model/GetTransacBlockedContactsReason.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -305,6 +305,7 @@ public function setMessage($message)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -317,6 +318,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -330,6 +332,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -346,6 +349,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacEmailContent.php b/lib/Model/GetTransacEmailContent.php
index a6e11aaf..48231820 100644
--- a/lib/Model/GetTransacEmailContent.php
+++ b/lib/Model/GetTransacEmailContent.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -432,6 +432,7 @@ public function setAttachmentCount($attachmentCount)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -444,6 +445,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -457,6 +459,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -473,6 +476,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacEmailContentEvents.php b/lib/Model/GetTransacEmailContentEvents.php
index 5f3c7194..d4f0a153 100644
--- a/lib/Model/GetTransacEmailContentEvents.php
+++ b/lib/Model/GetTransacEmailContentEvents.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setTime($time)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacEmailsList.php b/lib/Model/GetTransacEmailsList.php
index 14ba3b45..c11a4bcb 100644
--- a/lib/Model/GetTransacEmailsList.php
+++ b/lib/Model/GetTransacEmailsList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setTransactionalEmails($transactionalEmails)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacEmailsListTransactionalEmails.php b/lib/Model/GetTransacEmailsListTransactionalEmails.php
index 7a5776ba..b3ac49c1 100644
--- a/lib/Model/GetTransacEmailsListTransactionalEmails.php
+++ b/lib/Model/GetTransacEmailsListTransactionalEmails.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -459,6 +459,7 @@ public function setTags($tags)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -471,6 +472,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -484,6 +486,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -500,6 +503,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacSmsReport.php b/lib/Model/GetTransacSmsReport.php
index 8b80f4ae..5c96e29f 100644
--- a/lib/Model/GetTransacSmsReport.php
+++ b/lib/Model/GetTransacSmsReport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setReports($reports)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetTransacSmsReportReports.php b/lib/Model/GetTransacSmsReportReports.php
index 74cf91e6..87785592 100644
--- a/lib/Model/GetTransacSmsReportReports.php
+++ b/lib/Model/GetTransacSmsReportReports.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -504,6 +504,7 @@ public function setRejected($rejected)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -516,6 +517,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -529,6 +531,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -545,6 +548,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetWebhook.php b/lib/Model/GetWebhook.php
index d37ab7d9..7af62afb 100644
--- a/lib/Model/GetWebhook.php
+++ b/lib/Model/GetWebhook.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -467,6 +467,7 @@ public function setModifiedAt($modifiedAt)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -479,6 +480,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -492,6 +494,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -508,6 +511,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/GetWebhooks.php b/lib/Model/GetWebhooks.php
index 800f4618..f4b4fe0b 100644
--- a/lib/Model/GetWebhooks.php
+++ b/lib/Model/GetWebhooks.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setWebhooks($webhooks)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/InlineResponse200.php b/lib/Model/InlineResponse200.php
new file mode 100644
index 00000000..e07cee54
--- /dev/null
+++ b/lib/Model/InlineResponse200.php
@@ -0,0 +1,309 @@
+ 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Unique company id
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/InlineResponse201.php b/lib/Model/InlineResponse201.php
index 2c31ec72..7a39592a 100644
--- a/lib/Model/InlineResponse201.php
+++ b/lib/Model/InlineResponse201.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -36,7 +36,7 @@
* InlineResponse201 Class Doc Comment
*
* @category Class
- * @description Task Details
+ * @description Created deal id
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -221,7 +221,7 @@ public function getId()
/**
* Sets id
*
- * @param string $id Unique task id
+ * @param string $id Unique deal id
*
* @return $this
*/
@@ -238,6 +238,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -250,6 +251,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -263,6 +265,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -279,6 +282,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/InlineResponse2011.php b/lib/Model/InlineResponse2011.php
new file mode 100644
index 00000000..6a0db73a
--- /dev/null
+++ b/lib/Model/InlineResponse2011.php
@@ -0,0 +1,309 @@
+ 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Unique task id
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/ManageIp.php b/lib/Model/ManageIp.php
index 08e96aa2..d6f36dbd 100644
--- a/lib/Model/ManageIp.php
+++ b/lib/Model/ManageIp.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setIp($ip)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/MasterDetailsResponse.php b/lib/Model/MasterDetailsResponse.php
index af14c7fd..67a71e35 100644
--- a/lib/Model/MasterDetailsResponse.php
+++ b/lib/Model/MasterDetailsResponse.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -414,6 +414,7 @@ public function setPlanInfo($planInfo)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -426,6 +427,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -439,6 +441,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -455,6 +458,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/MasterDetailsResponseBillingInfo.php b/lib/Model/MasterDetailsResponseBillingInfo.php
index f3b618fc..b8c03e30 100644
--- a/lib/Model/MasterDetailsResponseBillingInfo.php
+++ b/lib/Model/MasterDetailsResponseBillingInfo.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -325,6 +325,7 @@ public function setAddress($address)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -337,6 +338,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -350,6 +352,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -366,6 +369,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/MasterDetailsResponseBillingInfoAddress.php b/lib/Model/MasterDetailsResponseBillingInfoAddress.php
index 828bd554..11e3f478 100644
--- a/lib/Model/MasterDetailsResponseBillingInfoAddress.php
+++ b/lib/Model/MasterDetailsResponseBillingInfoAddress.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -355,6 +355,7 @@ public function setCountryCode($countryCode)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -367,6 +368,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -380,6 +382,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -396,6 +399,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/MasterDetailsResponseBillingInfoName.php b/lib/Model/MasterDetailsResponseBillingInfoName.php
index e742306d..6c945dbb 100644
--- a/lib/Model/MasterDetailsResponseBillingInfoName.php
+++ b/lib/Model/MasterDetailsResponseBillingInfoName.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setFamilyName($familyName)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/MasterDetailsResponsePlanInfo.php b/lib/Model/MasterDetailsResponsePlanInfo.php
index a818fbfa..515aa21b 100644
--- a/lib/Model/MasterDetailsResponsePlanInfo.php
+++ b/lib/Model/MasterDetailsResponsePlanInfo.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -417,6 +417,7 @@ public function setFeatures($features)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -429,6 +430,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -442,6 +444,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -458,6 +461,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/MasterDetailsResponsePlanInfoFeatures.php b/lib/Model/MasterDetailsResponsePlanInfoFeatures.php
index 1598407b..0c612b2b 100644
--- a/lib/Model/MasterDetailsResponsePlanInfoFeatures.php
+++ b/lib/Model/MasterDetailsResponsePlanInfoFeatures.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -354,6 +354,7 @@ public function setRemaining($remaining)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -366,6 +367,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -379,6 +381,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -395,6 +398,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php
index aa3c9715..bf988fe3 100644
--- a/lib/Model/ModelInterface.php
+++ b/lib/Model/ModelInterface.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
diff --git a/lib/Model/Note.php b/lib/Model/Note.php
index 07c9b843..545a46e0 100644
--- a/lib/Model/Note.php
+++ b/lib/Model/Note.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -433,6 +433,7 @@ public function setUpdatedAt($updatedAt)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -445,6 +446,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -458,6 +460,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -474,6 +477,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/NoteData.php b/lib/Model/NoteData.php
index 9e72134c..7436b99a 100644
--- a/lib/Model/NoteData.php
+++ b/lib/Model/NoteData.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -60,7 +60,8 @@ class NoteData implements ModelInterface, ArrayAccess
protected static $swaggerTypes = [
'text' => 'string',
'contactIds' => 'int[]',
- 'dealIds' => 'string[]'
+ 'dealIds' => 'string[]',
+ 'companyIds' => 'string[]'
];
/**
@@ -71,7 +72,8 @@ class NoteData implements ModelInterface, ArrayAccess
protected static $swaggerFormats = [
'text' => null,
'contactIds' => null,
- 'dealIds' => null
+ 'dealIds' => null,
+ 'companyIds' => null
];
/**
@@ -103,7 +105,8 @@ public static function swaggerFormats()
protected static $attributeMap = [
'text' => 'text',
'contactIds' => 'contactIds',
- 'dealIds' => 'dealIds'
+ 'dealIds' => 'dealIds',
+ 'companyIds' => 'companyIds'
];
/**
@@ -114,7 +117,8 @@ public static function swaggerFormats()
protected static $setters = [
'text' => 'setText',
'contactIds' => 'setContactIds',
- 'dealIds' => 'setDealIds'
+ 'dealIds' => 'setDealIds',
+ 'companyIds' => 'setCompanyIds'
];
/**
@@ -125,7 +129,8 @@ public static function swaggerFormats()
protected static $getters = [
'text' => 'getText',
'contactIds' => 'getContactIds',
- 'dealIds' => 'getDealIds'
+ 'dealIds' => 'getDealIds',
+ 'companyIds' => 'getCompanyIds'
];
/**
@@ -191,6 +196,7 @@ public function __construct(array $data = null)
$this->container['text'] = isset($data['text']) ? $data['text'] : null;
$this->container['contactIds'] = isset($data['contactIds']) ? $data['contactIds'] : null;
$this->container['dealIds'] = isset($data['dealIds']) ? $data['dealIds'] : null;
+ $this->container['companyIds'] = isset($data['companyIds']) ? $data['companyIds'] : null;
}
/**
@@ -306,6 +312,30 @@ public function setDealIds($dealIds)
return $this;
}
+
+ /**
+ * Gets companyIds
+ *
+ * @return string[]
+ */
+ public function getCompanyIds()
+ {
+ return $this->container['companyIds'];
+ }
+
+ /**
+ * Sets companyIds
+ *
+ * @param string[] $companyIds Company Ids linked to a note
+ *
+ * @return $this
+ */
+ public function setCompanyIds($companyIds)
+ {
+ $this->container['companyIds'] = $companyIds;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
@@ -313,6 +343,7 @@ public function setDealIds($dealIds)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -325,6 +356,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -338,6 +370,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -354,6 +387,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/NoteId.php b/lib/Model/NoteId.php
index 40c798a2..6433b2d4 100644
--- a/lib/Model/NoteId.php
+++ b/lib/Model/NoteId.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -235,6 +235,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -247,6 +248,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -260,6 +262,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -276,6 +279,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/NoteList.php b/lib/Model/NoteList.php
index 7522047b..0b156bc1 100644
--- a/lib/Model/NoteList.php
+++ b/lib/Model/NoteList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -210,6 +210,7 @@ public function valid()
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -222,6 +223,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -235,6 +237,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -251,6 +254,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/Order.php b/lib/Model/Order.php
new file mode 100644
index 00000000..987a81b4
--- /dev/null
+++ b/lib/Model/Order.php
@@ -0,0 +1,563 @@
+ 'string',
+ 'createdAt' => 'string',
+ 'updatedAt' => 'string',
+ 'status' => 'string',
+ 'amount' => 'float',
+ 'products' => '\SendinBlue\Client\Model\OrderProducts[]',
+ 'email' => 'string',
+ 'billing' => '\SendinBlue\Client\Model\OrderBilling',
+ 'coupons' => 'string[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+ 'createdAt' => null,
+ 'updatedAt' => null,
+ 'status' => null,
+ 'amount' => null,
+ 'products' => null,
+ 'email' => null,
+ 'billing' => null,
+ 'coupons' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'createdAt' => 'createdAt',
+ 'updatedAt' => 'updatedAt',
+ 'status' => 'status',
+ 'amount' => 'amount',
+ 'products' => 'products',
+ 'email' => 'email',
+ 'billing' => 'billing',
+ 'coupons' => 'coupons'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'createdAt' => 'setCreatedAt',
+ 'updatedAt' => 'setUpdatedAt',
+ 'status' => 'setStatus',
+ 'amount' => 'setAmount',
+ 'products' => 'setProducts',
+ 'email' => 'setEmail',
+ 'billing' => 'setBilling',
+ 'coupons' => 'setCoupons'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'createdAt' => 'getCreatedAt',
+ 'updatedAt' => 'getUpdatedAt',
+ 'status' => 'getStatus',
+ 'amount' => 'getAmount',
+ 'products' => 'getProducts',
+ 'email' => 'getEmail',
+ 'billing' => 'getBilling',
+ 'coupons' => 'getCoupons'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null;
+ $this->container['updatedAt'] = isset($data['updatedAt']) ? $data['updatedAt'] : null;
+ $this->container['status'] = isset($data['status']) ? $data['status'] : null;
+ $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
+ $this->container['products'] = isset($data['products']) ? $data['products'] : null;
+ $this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['billing'] = isset($data['billing']) ? $data['billing'] : null;
+ $this->container['coupons'] = isset($data['coupons']) ? $data['coupons'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
+ if ($this->container['createdAt'] === null) {
+ $invalidProperties[] = "'createdAt' can't be null";
+ }
+ if ($this->container['updatedAt'] === null) {
+ $invalidProperties[] = "'updatedAt' can't be null";
+ }
+ if ($this->container['status'] === null) {
+ $invalidProperties[] = "'status' can't be null";
+ }
+ if ($this->container['amount'] === null) {
+ $invalidProperties[] = "'amount' can't be null";
+ }
+ if ($this->container['products'] === null) {
+ $invalidProperties[] = "'products' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Unique ID of the order.
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets createdAt
+ *
+ * @return string
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['createdAt'];
+ }
+
+ /**
+ * Sets createdAt
+ *
+ * @param string $createdAt Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created.
+ *
+ * @return $this
+ */
+ public function setCreatedAt($createdAt)
+ {
+ $this->container['createdAt'] = $createdAt;
+
+ return $this;
+ }
+
+ /**
+ * Gets updatedAt
+ *
+ * @return string
+ */
+ public function getUpdatedAt()
+ {
+ return $this->container['updatedAt'];
+ }
+
+ /**
+ * Sets updatedAt
+ *
+ * @param string $updatedAt Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated.
+ *
+ * @return $this
+ */
+ public function setUpdatedAt($updatedAt)
+ {
+ $this->container['updatedAt'] = $updatedAt;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status State of the order.
+ *
+ * @return $this
+ */
+ public function setStatus($status)
+ {
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets amount
+ *
+ * @return float
+ */
+ public function getAmount()
+ {
+ return $this->container['amount'];
+ }
+
+ /**
+ * Sets amount
+ *
+ * @param float $amount Total amount of the order, including all shipping expenses, tax and the price of items.
+ *
+ * @return $this
+ */
+ public function setAmount($amount)
+ {
+ $this->container['amount'] = $amount;
+
+ return $this;
+ }
+
+ /**
+ * Gets products
+ *
+ * @return \SendinBlue\Client\Model\OrderProducts[]
+ */
+ public function getProducts()
+ {
+ return $this->container['products'];
+ }
+
+ /**
+ * Sets products
+ *
+ * @param \SendinBlue\Client\Model\OrderProducts[] $products products
+ *
+ * @return $this
+ */
+ public function setProducts($products)
+ {
+ $this->container['products'] = $products;
+
+ return $this;
+ }
+
+ /**
+ * Gets email
+ *
+ * @return string
+ */
+ public function getEmail()
+ {
+ return $this->container['email'];
+ }
+
+ /**
+ * Sets email
+ *
+ * @param string $email Email of the contact, Mandatory if \"phone\" field is not passed in \"billing\" parameter.
+ *
+ * @return $this
+ */
+ public function setEmail($email)
+ {
+ $this->container['email'] = $email;
+
+ return $this;
+ }
+
+ /**
+ * Gets billing
+ *
+ * @return \SendinBlue\Client\Model\OrderBilling
+ */
+ public function getBilling()
+ {
+ return $this->container['billing'];
+ }
+
+ /**
+ * Sets billing
+ *
+ * @param \SendinBlue\Client\Model\OrderBilling $billing billing
+ *
+ * @return $this
+ */
+ public function setBilling($billing)
+ {
+ $this->container['billing'] = $billing;
+
+ return $this;
+ }
+
+ /**
+ * Gets coupons
+ *
+ * @return string[]
+ */
+ public function getCoupons()
+ {
+ return $this->container['coupons'];
+ }
+
+ /**
+ * Sets coupons
+ *
+ * @param string[] $coupons Coupons applied to the order. Stored case insensitive.
+ *
+ * @return $this
+ */
+ public function setCoupons($coupons)
+ {
+ $this->container['coupons'] = $coupons;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/OrderBatch.php b/lib/Model/OrderBatch.php
new file mode 100644
index 00000000..8d400a8f
--- /dev/null
+++ b/lib/Model/OrderBatch.php
@@ -0,0 +1,338 @@
+ '\SendinBlue\Client\Model\Order[]',
+ 'notifyUrl' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'orders' => null,
+ 'notifyUrl' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'orders' => 'orders',
+ 'notifyUrl' => 'notifyUrl'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'orders' => 'setOrders',
+ 'notifyUrl' => 'setNotifyUrl'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'orders' => 'getOrders',
+ 'notifyUrl' => 'getNotifyUrl'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['orders'] = isset($data['orders']) ? $data['orders'] : null;
+ $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['orders'] === null) {
+ $invalidProperties[] = "'orders' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets orders
+ *
+ * @return \SendinBlue\Client\Model\Order[]
+ */
+ public function getOrders()
+ {
+ return $this->container['orders'];
+ }
+
+ /**
+ * Sets orders
+ *
+ * @param \SendinBlue\Client\Model\Order[] $orders array of order objects
+ *
+ * @return $this
+ */
+ public function setOrders($orders)
+ {
+ $this->container['orders'] = $orders;
+
+ return $this;
+ }
+
+ /**
+ * Gets notifyUrl
+ *
+ * @return string
+ */
+ public function getNotifyUrl()
+ {
+ return $this->container['notifyUrl'];
+ }
+
+ /**
+ * Sets notifyUrl
+ *
+ * @param string $notifyUrl Notify Url provided by client to get the status of batch request
+ *
+ * @return $this
+ */
+ public function setNotifyUrl($notifyUrl)
+ {
+ $this->container['notifyUrl'] = $notifyUrl;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/OrderBilling.php b/lib/Model/OrderBilling.php
new file mode 100644
index 00000000..1bb8c7f3
--- /dev/null
+++ b/lib/Model/OrderBilling.php
@@ -0,0 +1,486 @@
+ 'string',
+ 'city' => 'string',
+ 'countryCode' => 'string',
+ 'phone' => 'string',
+ 'postCode' => 'string',
+ 'paymentMethod' => 'string',
+ 'region' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'address' => null,
+ 'city' => null,
+ 'countryCode' => null,
+ 'phone' => null,
+ 'postCode' => null,
+ 'paymentMethod' => null,
+ 'region' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'address' => 'address',
+ 'city' => 'city',
+ 'countryCode' => 'countryCode',
+ 'phone' => 'phone',
+ 'postCode' => 'postCode',
+ 'paymentMethod' => 'paymentMethod',
+ 'region' => 'region'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'address' => 'setAddress',
+ 'city' => 'setCity',
+ 'countryCode' => 'setCountryCode',
+ 'phone' => 'setPhone',
+ 'postCode' => 'setPostCode',
+ 'paymentMethod' => 'setPaymentMethod',
+ 'region' => 'setRegion'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'address' => 'getAddress',
+ 'city' => 'getCity',
+ 'countryCode' => 'getCountryCode',
+ 'phone' => 'getPhone',
+ 'postCode' => 'getPostCode',
+ 'paymentMethod' => 'getPaymentMethod',
+ 'region' => 'getRegion'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['address'] = isset($data['address']) ? $data['address'] : null;
+ $this->container['city'] = isset($data['city']) ? $data['city'] : null;
+ $this->container['countryCode'] = isset($data['countryCode']) ? $data['countryCode'] : null;
+ $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
+ $this->container['postCode'] = isset($data['postCode']) ? $data['postCode'] : null;
+ $this->container['paymentMethod'] = isset($data['paymentMethod']) ? $data['paymentMethod'] : null;
+ $this->container['region'] = isset($data['region']) ? $data['region'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets address
+ *
+ * @return string
+ */
+ public function getAddress()
+ {
+ return $this->container['address'];
+ }
+
+ /**
+ * Sets address
+ *
+ * @param string $address Full billing address.
+ *
+ * @return $this
+ */
+ public function setAddress($address)
+ {
+ $this->container['address'] = $address;
+
+ return $this;
+ }
+
+ /**
+ * Gets city
+ *
+ * @return string
+ */
+ public function getCity()
+ {
+ return $this->container['city'];
+ }
+
+ /**
+ * Sets city
+ *
+ * @param string $city Exact city of the address.
+ *
+ * @return $this
+ */
+ public function setCity($city)
+ {
+ $this->container['city'] = $city;
+
+ return $this;
+ }
+
+ /**
+ * Gets countryCode
+ *
+ * @return string
+ */
+ public function getCountryCode()
+ {
+ return $this->container['countryCode'];
+ }
+
+ /**
+ * Sets countryCode
+ *
+ * @param string $countryCode Billing country 2-letter ISO code.
+ *
+ * @return $this
+ */
+ public function setCountryCode($countryCode)
+ {
+ $this->container['countryCode'] = $countryCode;
+
+ return $this;
+ }
+
+ /**
+ * Gets phone
+ *
+ * @return string
+ */
+ public function getPhone()
+ {
+ return $this->container['phone'];
+ }
+
+ /**
+ * Sets phone
+ *
+ * @param string $phone Phone number to contact for further details about the order, Mandatory if \"email\" field is not passed.
+ *
+ * @return $this
+ */
+ public function setPhone($phone)
+ {
+ $this->container['phone'] = $phone;
+
+ return $this;
+ }
+
+ /**
+ * Gets postCode
+ *
+ * @return string
+ */
+ public function getPostCode()
+ {
+ return $this->container['postCode'];
+ }
+
+ /**
+ * Sets postCode
+ *
+ * @param string $postCode Postcode for delivery and billing.
+ *
+ * @return $this
+ */
+ public function setPostCode($postCode)
+ {
+ $this->container['postCode'] = $postCode;
+
+ return $this;
+ }
+
+ /**
+ * Gets paymentMethod
+ *
+ * @return string
+ */
+ public function getPaymentMethod()
+ {
+ return $this->container['paymentMethod'];
+ }
+
+ /**
+ * Sets paymentMethod
+ *
+ * @param string $paymentMethod How the visitor will pay for the item(s), e.g. paypal, check, etc.
+ *
+ * @return $this
+ */
+ public function setPaymentMethod($paymentMethod)
+ {
+ $this->container['paymentMethod'] = $paymentMethod;
+
+ return $this;
+ }
+
+ /**
+ * Gets region
+ *
+ * @return string
+ */
+ public function getRegion()
+ {
+ return $this->container['region'];
+ }
+
+ /**
+ * Sets region
+ *
+ * @param string $region Exact region (state/province) for delivery and billing.
+ *
+ * @return $this
+ */
+ public function setRegion($region)
+ {
+ $this->container['region'] = $region;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/OrderProducts.php b/lib/Model/OrderProducts.php
new file mode 100644
index 00000000..631e6ad0
--- /dev/null
+++ b/lib/Model/OrderProducts.php
@@ -0,0 +1,405 @@
+ 'string',
+ 'quantity' => 'float',
+ 'variantId' => 'string',
+ 'price' => 'float'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'productId' => null,
+ 'quantity' => null,
+ 'variantId' => null,
+ 'price' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'productId' => 'productId',
+ 'quantity' => 'quantity',
+ 'variantId' => 'variantId',
+ 'price' => 'price'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'productId' => 'setProductId',
+ 'quantity' => 'setQuantity',
+ 'variantId' => 'setVariantId',
+ 'price' => 'setPrice'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'productId' => 'getProductId',
+ 'quantity' => 'getQuantity',
+ 'variantId' => 'getVariantId',
+ 'price' => 'getPrice'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['productId'] = isset($data['productId']) ? $data['productId'] : null;
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
+ $this->container['variantId'] = isset($data['variantId']) ? $data['variantId'] : null;
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['productId'] === null) {
+ $invalidProperties[] = "'productId' can't be null";
+ }
+ if ($this->container['quantity'] === null) {
+ $invalidProperties[] = "'quantity' can't be null";
+ }
+ if ($this->container['price'] === null) {
+ $invalidProperties[] = "'price' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets productId
+ *
+ * @return string
+ */
+ public function getProductId()
+ {
+ return $this->container['productId'];
+ }
+
+ /**
+ * Sets productId
+ *
+ * @param string $productId ID of the product.
+ *
+ * @return $this
+ */
+ public function setProductId($productId)
+ {
+ $this->container['productId'] = $productId;
+
+ return $this;
+ }
+
+ /**
+ * Gets quantity
+ *
+ * @return float
+ */
+ public function getQuantity()
+ {
+ return $this->container['quantity'];
+ }
+
+ /**
+ * Sets quantity
+ *
+ * @param float $quantity How many pieces of the product the visitor has added to the cart.
+ *
+ * @return $this
+ */
+ public function setQuantity($quantity)
+ {
+ $this->container['quantity'] = $quantity;
+
+ return $this;
+ }
+
+ /**
+ * Gets variantId
+ *
+ * @return string
+ */
+ public function getVariantId()
+ {
+ return $this->container['variantId'];
+ }
+
+ /**
+ * Sets variantId
+ *
+ * @param string $variantId Product ID of the red color shirts.
+ *
+ * @return $this
+ */
+ public function setVariantId($variantId)
+ {
+ $this->container['variantId'] = $variantId;
+
+ return $this;
+ }
+
+ /**
+ * Gets price
+ *
+ * @return float
+ */
+ public function getPrice()
+ {
+ return $this->container['price'];
+ }
+
+ /**
+ * Sets price
+ *
+ * @param float $price The price of a unit of product
+ *
+ * @return $this
+ */
+ public function setPrice($price)
+ {
+ $this->container['price'] = $price;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/Pipeline.php b/lib/Model/Pipeline.php
new file mode 100644
index 00000000..3d3d52d7
--- /dev/null
+++ b/lib/Model/Pipeline.php
@@ -0,0 +1,306 @@
+ '\SendinBlue\Client\Model\PipelineStage[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'stages' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'stages' => 'stages'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'stages' => 'setStages'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'stages' => 'getStages'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['stages'] = isset($data['stages']) ? $data['stages'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets stages
+ *
+ * @return \SendinBlue\Client\Model\PipelineStage[]
+ */
+ public function getStages()
+ {
+ return $this->container['stages'];
+ }
+
+ /**
+ * Sets stages
+ *
+ * @param \SendinBlue\Client\Model\PipelineStage[] $stages List of stages
+ *
+ * @return $this
+ */
+ public function setStages($stages)
+ {
+ $this->container['stages'] = $stages;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/PipelineStage.php b/lib/Model/PipelineStage.php
new file mode 100644
index 00000000..2ad60a55
--- /dev/null
+++ b/lib/Model/PipelineStage.php
@@ -0,0 +1,336 @@
+ 'string',
+ 'name' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+ 'name' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+ 'name' => 'name'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+ 'name' => 'setName'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+ 'name' => 'getName'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Stage id
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Stage name
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/PostContactInfo.php b/lib/Model/PostContactInfo.php
index 76c7146a..cfc52319 100644
--- a/lib/Model/PostContactInfo.php
+++ b/lib/Model/PostContactInfo.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -237,6 +237,7 @@ public function setContacts($contacts)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -249,6 +250,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -262,6 +264,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -278,6 +281,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/PostContactInfoContacts.php b/lib/Model/PostContactInfoContacts.php
index 195b7437..6a2daebd 100644
--- a/lib/Model/PostContactInfoContacts.php
+++ b/lib/Model/PostContactInfoContacts.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -324,6 +324,7 @@ public function setProcessId($processId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -336,6 +337,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -349,6 +351,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -365,6 +368,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/PostSendFailed.php b/lib/Model/PostSendFailed.php
index 4cbfea64..a4cd72b4 100644
--- a/lib/Model/PostSendFailed.php
+++ b/lib/Model/PostSendFailed.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -360,6 +360,7 @@ public function setBlackListedEmails($blackListedEmails)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -372,6 +373,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -385,6 +387,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -401,6 +404,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/PostSendSmsTestFailed.php b/lib/Model/PostSendSmsTestFailed.php
index b6bf3299..8e4f40ff 100644
--- a/lib/Model/PostSendSmsTestFailed.php
+++ b/lib/Model/PostSendSmsTestFailed.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -330,6 +330,7 @@ public function setWithoutListSms($withoutListSms)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -342,6 +343,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -355,6 +357,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -371,6 +374,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RemainingCreditModel.php b/lib/Model/RemainingCreditModel.php
index 7d7e7932..13488868 100644
--- a/lib/Model/RemainingCreditModel.php
+++ b/lib/Model/RemainingCreditModel.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setReseller($reseller)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RemainingCreditModelChild.php b/lib/Model/RemainingCreditModelChild.php
index 443dafc2..06fdd8a8 100644
--- a/lib/Model/RemainingCreditModelChild.php
+++ b/lib/Model/RemainingCreditModelChild.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -271,6 +271,7 @@ public function setEmail($email)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -283,6 +284,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -296,6 +298,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -312,6 +315,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RemainingCreditModelReseller.php b/lib/Model/RemainingCreditModelReseller.php
index b7af9b43..8c1bd61d 100644
--- a/lib/Model/RemainingCreditModelReseller.php
+++ b/lib/Model/RemainingCreditModelReseller.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setEmail($email)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RemoveContactFromList.php b/lib/Model/RemoveContactFromList.php
index 632ae085..f4ef410d 100644
--- a/lib/Model/RemoveContactFromList.php
+++ b/lib/Model/RemoveContactFromList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -294,6 +294,7 @@ public function setAll($all)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -306,6 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -319,6 +321,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -335,6 +338,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RemoveCredits.php b/lib/Model/RemoveCredits.php
index 65e5637d..d4eb340a 100644
--- a/lib/Model/RemoveCredits.php
+++ b/lib/Model/RemoveCredits.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setEmail($email)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RequestContactExport.php b/lib/Model/RequestContactExport.php
index 47da9220..b72896be 100644
--- a/lib/Model/RequestContactExport.php
+++ b/lib/Model/RequestContactExport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -297,6 +297,7 @@ public function setNotifyUrl($notifyUrl)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -309,6 +310,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -322,6 +324,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -338,6 +341,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RequestContactExportCustomContactFilter.php b/lib/Model/RequestContactExportCustomContactFilter.php
index 1a8a9f8d..6bf1f4d6 100644
--- a/lib/Model/RequestContactExportCustomContactFilter.php
+++ b/lib/Model/RequestContactExportCustomContactFilter.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -497,6 +497,7 @@ public function setSmsCampaignId($smsCampaignId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -509,6 +510,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -522,6 +524,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -538,6 +541,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RequestContactImport.php b/lib/Model/RequestContactImport.php
index ef9e696f..01d0c703 100644
--- a/lib/Model/RequestContactImport.php
+++ b/lib/Model/RequestContactImport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -504,6 +504,7 @@ public function setEmptyContactsAttributes($emptyContactsAttributes)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -516,6 +517,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -529,6 +531,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -545,6 +548,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RequestContactImportNewList.php b/lib/Model/RequestContactImportNewList.php
index 45c07c94..734a0a0a 100644
--- a/lib/Model/RequestContactImportNewList.php
+++ b/lib/Model/RequestContactImportNewList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setFolderId($folderId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/RequestSmsRecipientExport.php b/lib/Model/RequestSmsRecipientExport.php
index 4a35db0c..b7f61603 100644
--- a/lib/Model/RequestSmsRecipientExport.php
+++ b/lib/Model/RequestSmsRecipientExport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -307,6 +307,7 @@ public function setRecipientsType($recipientsType)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -319,6 +320,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -332,6 +334,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -348,6 +351,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/ScheduleSmtpEmail.php b/lib/Model/ScheduleSmtpEmail.php
index df52d407..a2f2d5c2 100644
--- a/lib/Model/ScheduleSmtpEmail.php
+++ b/lib/Model/ScheduleSmtpEmail.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -294,6 +294,7 @@ public function setBatchId($batchId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -306,6 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -319,6 +321,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -335,6 +338,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendReport.php b/lib/Model/SendReport.php
index 16a42782..b245087c 100644
--- a/lib/Model/SendReport.php
+++ b/lib/Model/SendReport.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -307,6 +307,7 @@ public function setEmail($email)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -319,6 +320,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -332,6 +334,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -348,6 +351,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendReportEmail.php b/lib/Model/SendReportEmail.php
index 01f2453c..6625125b 100644
--- a/lib/Model/SendReportEmail.php
+++ b/lib/Model/SendReportEmail.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -271,6 +271,7 @@ public function setBody($body)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -283,6 +284,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -296,6 +298,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -312,6 +315,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSms.php b/lib/Model/SendSms.php
index d33df570..aa6e6490 100644
--- a/lib/Model/SendSms.php
+++ b/lib/Model/SendSms.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -360,6 +360,7 @@ public function setRemainingCredits($remainingCredits)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -372,6 +373,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -385,6 +387,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -401,6 +404,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmail.php b/lib/Model/SendSmtpEmail.php
index 6589d8ef..5ff9afe1 100644
--- a/lib/Model/SendSmtpEmail.php
+++ b/lib/Model/SendSmtpEmail.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -684,6 +684,7 @@ public function setBatchId($batchId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -696,6 +697,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -709,6 +711,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -725,6 +728,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailAttachment.php b/lib/Model/SendSmtpEmailAttachment.php
index 7fa9333d..54ddec90 100644
--- a/lib/Model/SendSmtpEmailAttachment.php
+++ b/lib/Model/SendSmtpEmailAttachment.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -303,6 +303,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -315,6 +316,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -328,6 +330,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -344,6 +347,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailBcc.php b/lib/Model/SendSmtpEmailBcc.php
index bb371ca1..69af0f8c 100644
--- a/lib/Model/SendSmtpEmailBcc.php
+++ b/lib/Model/SendSmtpEmailBcc.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailCc.php b/lib/Model/SendSmtpEmailCc.php
index e14349a4..033aa12f 100644
--- a/lib/Model/SendSmtpEmailCc.php
+++ b/lib/Model/SendSmtpEmailCc.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailMessageVersions.php b/lib/Model/SendSmtpEmailMessageVersions.php
index 62cabdab..451ecc3e 100644
--- a/lib/Model/SendSmtpEmailMessageVersions.php
+++ b/lib/Model/SendSmtpEmailMessageVersions.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -387,6 +387,7 @@ public function setSubject($subject)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -399,6 +400,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -412,6 +414,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -428,6 +431,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailReplyTo.php b/lib/Model/SendSmtpEmailReplyTo.php
index 9251efcf..1edba536 100644
--- a/lib/Model/SendSmtpEmailReplyTo.php
+++ b/lib/Model/SendSmtpEmailReplyTo.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -268,6 +268,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -280,6 +281,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -293,6 +295,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -309,6 +312,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailReplyTo1.php b/lib/Model/SendSmtpEmailReplyTo1.php
index d7963ed1..00b90375 100644
--- a/lib/Model/SendSmtpEmailReplyTo1.php
+++ b/lib/Model/SendSmtpEmailReplyTo1.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -268,6 +268,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -280,6 +281,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -293,6 +295,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -309,6 +312,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailSender.php b/lib/Model/SendSmtpEmailSender.php
index 114d1b5c..452ff36e 100644
--- a/lib/Model/SendSmtpEmailSender.php
+++ b/lib/Model/SendSmtpEmailSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -295,6 +295,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -307,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -320,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -336,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailTo.php b/lib/Model/SendSmtpEmailTo.php
index 74b8f42d..c061fed7 100644
--- a/lib/Model/SendSmtpEmailTo.php
+++ b/lib/Model/SendSmtpEmailTo.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendSmtpEmailTo1.php b/lib/Model/SendSmtpEmailTo1.php
index 8f8f12a1..68c09428 100644
--- a/lib/Model/SendSmtpEmailTo1.php
+++ b/lib/Model/SendSmtpEmailTo1.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendTestEmail.php b/lib/Model/SendTestEmail.php
index 07436411..d1fe3158 100644
--- a/lib/Model/SendTestEmail.php
+++ b/lib/Model/SendTestEmail.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setEmailTo($emailTo)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendTestSms.php b/lib/Model/SendTestSms.php
index 2a7a0146..5a71236c 100644
--- a/lib/Model/SendTestSms.php
+++ b/lib/Model/SendTestSms.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setPhoneNumber($phoneNumber)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SendTransacSms.php b/lib/Model/SendTransacSms.php
index 7cbbab44..60c32b83 100644
--- a/lib/Model/SendTransacSms.php
+++ b/lib/Model/SendTransacSms.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -63,7 +63,8 @@ class SendTransacSms implements ModelInterface, ArrayAccess
'type' => 'string',
'tag' => 'string',
'webUrl' => 'string',
- 'unicodeEnabled' => 'bool'
+ 'unicodeEnabled' => 'bool',
+ 'organisationPrefix' => 'string'
];
/**
@@ -78,7 +79,8 @@ class SendTransacSms implements ModelInterface, ArrayAccess
'type' => null,
'tag' => null,
'webUrl' => 'url',
- 'unicodeEnabled' => null
+ 'unicodeEnabled' => null,
+ 'organisationPrefix' => null
];
/**
@@ -114,7 +116,8 @@ public static function swaggerFormats()
'type' => 'type',
'tag' => 'tag',
'webUrl' => 'webUrl',
- 'unicodeEnabled' => 'unicodeEnabled'
+ 'unicodeEnabled' => 'unicodeEnabled',
+ 'organisationPrefix' => 'organisationPrefix'
];
/**
@@ -129,7 +132,8 @@ public static function swaggerFormats()
'type' => 'setType',
'tag' => 'setTag',
'webUrl' => 'setWebUrl',
- 'unicodeEnabled' => 'setUnicodeEnabled'
+ 'unicodeEnabled' => 'setUnicodeEnabled',
+ 'organisationPrefix' => 'setOrganisationPrefix'
];
/**
@@ -144,7 +148,8 @@ public static function swaggerFormats()
'type' => 'getType',
'tag' => 'getTag',
'webUrl' => 'getWebUrl',
- 'unicodeEnabled' => 'getUnicodeEnabled'
+ 'unicodeEnabled' => 'getUnicodeEnabled',
+ 'organisationPrefix' => 'getOrganisationPrefix'
];
/**
@@ -229,6 +234,7 @@ public function __construct(array $data = null)
$this->container['tag'] = isset($data['tag']) ? $data['tag'] : null;
$this->container['webUrl'] = isset($data['webUrl']) ? $data['webUrl'] : null;
$this->container['unicodeEnabled'] = isset($data['unicodeEnabled']) ? $data['unicodeEnabled'] : false;
+ $this->container['organisationPrefix'] = isset($data['organisationPrefix']) ? $data['organisationPrefix'] : null;
}
/**
@@ -456,6 +462,30 @@ public function setUnicodeEnabled($unicodeEnabled)
return $this;
}
+
+ /**
+ * Gets organisationPrefix
+ *
+ * @return string
+ */
+ public function getOrganisationPrefix()
+ {
+ return $this->container['organisationPrefix'];
+ }
+
+ /**
+ * Sets organisationPrefix
+ *
+ * @param string $organisationPrefix A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.**
+ *
+ * @return $this
+ */
+ public function setOrganisationPrefix($organisationPrefix)
+ {
+ $this->container['organisationPrefix'] = $organisationPrefix;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
@@ -463,6 +493,7 @@ public function setUnicodeEnabled($unicodeEnabled)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -475,6 +506,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -488,6 +520,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -504,6 +537,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SsoTokenRequest.php b/lib/Model/SsoTokenRequest.php
index 47996e7e..b9850951 100644
--- a/lib/Model/SsoTokenRequest.php
+++ b/lib/Model/SsoTokenRequest.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setEmail($email)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountDetailsResponse.php b/lib/Model/SubAccountDetailsResponse.php
index ff6fbf71..a553199a 100644
--- a/lib/Model/SubAccountDetailsResponse.php
+++ b/lib/Model/SubAccountDetailsResponse.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -324,6 +324,7 @@ public function setPlanInfo($planInfo)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -336,6 +337,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -349,6 +351,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -365,6 +368,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountDetailsResponsePlanInfo.php b/lib/Model/SubAccountDetailsResponsePlanInfo.php
index dd0a3426..f28a3443 100644
--- a/lib/Model/SubAccountDetailsResponsePlanInfo.php
+++ b/lib/Model/SubAccountDetailsResponsePlanInfo.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -295,6 +295,7 @@ public function setPlanType($planType)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -307,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -320,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -336,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountDetailsResponsePlanInfoCredits.php b/lib/Model/SubAccountDetailsResponsePlanInfoCredits.php
index abbec472..003e8d11 100644
--- a/lib/Model/SubAccountDetailsResponsePlanInfoCredits.php
+++ b/lib/Model/SubAccountDetailsResponsePlanInfoCredits.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setEmails($emails)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountDetailsResponsePlanInfoCreditsEmails.php b/lib/Model/SubAccountDetailsResponsePlanInfoCreditsEmails.php
index b9739aac..ef4fb0b3 100644
--- a/lib/Model/SubAccountDetailsResponsePlanInfoCreditsEmails.php
+++ b/lib/Model/SubAccountDetailsResponsePlanInfoCreditsEmails.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setRemaining($remaining)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountDetailsResponsePlanInfoFeatures.php b/lib/Model/SubAccountDetailsResponsePlanInfoFeatures.php
index 5c2758a0..91693a95 100644
--- a/lib/Model/SubAccountDetailsResponsePlanInfoFeatures.php
+++ b/lib/Model/SubAccountDetailsResponsePlanInfoFeatures.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -295,6 +295,7 @@ public function setUsers($users)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -307,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -320,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -336,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesInbox.php b/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesInbox.php
index ede609d8..f47ce3ff 100644
--- a/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesInbox.php
+++ b/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesInbox.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setRemaining($remaining)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.php b/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.php
index 46af3332..2df69e09 100644
--- a/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.php
+++ b/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setRemaining($remaining)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesUsers.php b/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesUsers.php
index 7c1100d8..844bc1e8 100644
--- a/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesUsers.php
+++ b/lib/Model/SubAccountDetailsResponsePlanInfoFeaturesUsers.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setRemaining($remaining)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountUpdatePlanRequest.php b/lib/Model/SubAccountUpdatePlanRequest.php
index 6472a9b2..fe29c1b7 100644
--- a/lib/Model/SubAccountUpdatePlanRequest.php
+++ b/lib/Model/SubAccountUpdatePlanRequest.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setFeatures($features)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountUpdatePlanRequestCredits.php b/lib/Model/SubAccountUpdatePlanRequestCredits.php
index 4f8a3f40..958b4b97 100644
--- a/lib/Model/SubAccountUpdatePlanRequestCredits.php
+++ b/lib/Model/SubAccountUpdatePlanRequestCredits.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -235,6 +235,7 @@ public function setEmail($email)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -247,6 +248,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -260,6 +262,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -276,6 +279,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountUpdatePlanRequestFeatures.php b/lib/Model/SubAccountUpdatePlanRequestFeatures.php
index 7c036412..2ff8c6ab 100644
--- a/lib/Model/SubAccountUpdatePlanRequestFeatures.php
+++ b/lib/Model/SubAccountUpdatePlanRequestFeatures.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -295,6 +295,7 @@ public function setInbox($inbox)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -307,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -320,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -336,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountsResponse.php b/lib/Model/SubAccountsResponse.php
index d7f5e6c1..d1472f02 100644
--- a/lib/Model/SubAccountsResponse.php
+++ b/lib/Model/SubAccountsResponse.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setSubAccounts($subAccounts)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/SubAccountsResponseSubAccounts.php b/lib/Model/SubAccountsResponseSubAccounts.php
index 4ac8b9a2..82e167b3 100644
--- a/lib/Model/SubAccountsResponseSubAccounts.php
+++ b/lib/Model/SubAccountsResponseSubAccounts.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -336,6 +336,7 @@ public function setCreatedAt($createdAt)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -348,6 +349,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -361,6 +363,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -377,6 +380,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/Task.php b/lib/Model/Task.php
index 292d6e5f..1557aa98 100644
--- a/lib/Model/Task.php
+++ b/lib/Model/Task.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -391,6 +391,7 @@ public function setCompaniesIds($companiesIds)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -403,6 +404,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -416,6 +418,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -432,6 +435,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/TaskList.php b/lib/Model/TaskList.php
index 21888270..ace530fe 100644
--- a/lib/Model/TaskList.php
+++ b/lib/Model/TaskList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -235,6 +235,7 @@ public function setItems($items)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -247,6 +248,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -260,6 +262,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -276,6 +279,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/TaskReminder.php b/lib/Model/TaskReminder.php
index 228bf0e1..652203cc 100644
--- a/lib/Model/TaskReminder.php
+++ b/lib/Model/TaskReminder.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -340,6 +340,7 @@ public function setTypes($types)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -352,6 +353,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -365,6 +367,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -381,6 +384,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/TaskTypes.php b/lib/Model/TaskTypes.php
index 468e2298..3a7d8636 100644
--- a/lib/Model/TaskTypes.php
+++ b/lib/Model/TaskTypes.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -265,6 +265,7 @@ public function setTitle($title)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +278,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +292,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +309,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateAttribute.php b/lib/Model/UpdateAttribute.php
index ee1ba6cd..27715e7d 100644
--- a/lib/Model/UpdateAttribute.php
+++ b/lib/Model/UpdateAttribute.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setEnumeration($enumeration)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateAttributeEnumeration.php b/lib/Model/UpdateAttributeEnumeration.php
index b8f5b9fa..93ce0998 100644
--- a/lib/Model/UpdateAttributeEnumeration.php
+++ b/lib/Model/UpdateAttributeEnumeration.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -270,6 +270,7 @@ public function setLabel($label)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -282,6 +283,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -295,6 +297,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -311,6 +314,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateBatchContacts.php b/lib/Model/UpdateBatchContacts.php
index bd4d7baf..ae91e49f 100644
--- a/lib/Model/UpdateBatchContacts.php
+++ b/lib/Model/UpdateBatchContacts.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setContacts($contacts)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateBatchContactsContacts.php b/lib/Model/UpdateBatchContactsContacts.php
index 6e465155..7a3ba297 100644
--- a/lib/Model/UpdateBatchContactsContacts.php
+++ b/lib/Model/UpdateBatchContactsContacts.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -474,6 +474,7 @@ public function setSmtpBlacklistSender($smtpBlacklistSender)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -486,6 +487,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -499,6 +501,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -515,6 +518,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateBatchContactsModel.php b/lib/Model/UpdateBatchContactsModel.php
index af80774c..68adc72d 100644
--- a/lib/Model/UpdateBatchContactsModel.php
+++ b/lib/Model/UpdateBatchContactsModel.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setFailureIds($failureIds)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateCampaignStatus.php b/lib/Model/UpdateCampaignStatus.php
index c02917ca..e928e203 100644
--- a/lib/Model/UpdateCampaignStatus.php
+++ b/lib/Model/UpdateCampaignStatus.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -279,6 +279,7 @@ public function setStatus($status)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -291,6 +292,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -304,6 +306,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -320,6 +323,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateChild.php b/lib/Model/UpdateChild.php
index 37263c17..56381401 100644
--- a/lib/Model/UpdateChild.php
+++ b/lib/Model/UpdateChild.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -354,6 +354,7 @@ public function setPassword($password)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -366,6 +367,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -379,6 +381,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -395,6 +398,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateChildAccountStatus.php b/lib/Model/UpdateChildAccountStatus.php
index 733c9418..ef774b16 100644
--- a/lib/Model/UpdateChildAccountStatus.php
+++ b/lib/Model/UpdateChildAccountStatus.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -324,6 +324,7 @@ public function setSmsCampaign($smsCampaign)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -336,6 +337,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -349,6 +351,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -365,6 +368,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateChildDomain.php b/lib/Model/UpdateChildDomain.php
index 22162ec7..c58ede05 100644
--- a/lib/Model/UpdateChildDomain.php
+++ b/lib/Model/UpdateChildDomain.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -234,6 +234,7 @@ public function setDomain($domain)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -246,6 +247,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -259,6 +261,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -275,6 +278,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateContact.php b/lib/Model/UpdateContact.php
index dcbaf24a..d303a76c 100644
--- a/lib/Model/UpdateContact.php
+++ b/lib/Model/UpdateContact.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -384,6 +384,7 @@ public function setSmtpBlacklistSender($smtpBlacklistSender)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -396,6 +397,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -409,6 +411,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -425,6 +428,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateEmailCampaign.php b/lib/Model/UpdateEmailCampaign.php
index 1aa6cda5..60fe0f79 100644
--- a/lib/Model/UpdateEmailCampaign.php
+++ b/lib/Model/UpdateEmailCampaign.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -84,7 +84,9 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
'winnerDelay' => 'int',
'ipWarmupEnable' => 'bool',
'initialQuota' => 'int',
- 'increaseRate' => 'int'
+ 'increaseRate' => 'int',
+ 'unsubscriptionPageId' => 'string',
+ 'updateFormId' => 'string'
];
/**
@@ -120,7 +122,9 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
'winnerDelay' => 'int64',
'ipWarmupEnable' => null,
'initialQuota' => 'int64',
- 'increaseRate' => 'int64'
+ 'increaseRate' => 'int64',
+ 'unsubscriptionPageId' => null,
+ 'updateFormId' => null
];
/**
@@ -177,7 +181,9 @@ public static function swaggerFormats()
'winnerDelay' => 'winnerDelay',
'ipWarmupEnable' => 'ipWarmupEnable',
'initialQuota' => 'initialQuota',
- 'increaseRate' => 'increaseRate'
+ 'increaseRate' => 'increaseRate',
+ 'unsubscriptionPageId' => 'unsubscriptionPageId',
+ 'updateFormId' => 'updateFormId'
];
/**
@@ -213,7 +219,9 @@ public static function swaggerFormats()
'winnerDelay' => 'setWinnerDelay',
'ipWarmupEnable' => 'setIpWarmupEnable',
'initialQuota' => 'setInitialQuota',
- 'increaseRate' => 'setIncreaseRate'
+ 'increaseRate' => 'setIncreaseRate',
+ 'unsubscriptionPageId' => 'setUnsubscriptionPageId',
+ 'updateFormId' => 'setUpdateFormId'
];
/**
@@ -249,7 +257,9 @@ public static function swaggerFormats()
'winnerDelay' => 'getWinnerDelay',
'ipWarmupEnable' => 'getIpWarmupEnable',
'initialQuota' => 'getInitialQuota',
- 'increaseRate' => 'getIncreaseRate'
+ 'increaseRate' => 'getIncreaseRate',
+ 'unsubscriptionPageId' => 'getUnsubscriptionPageId',
+ 'updateFormId' => 'getUpdateFormId'
];
/**
@@ -355,6 +365,8 @@ public function __construct(array $data = null)
$this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : false;
$this->container['initialQuota'] = isset($data['initialQuota']) ? $data['initialQuota'] : null;
$this->container['increaseRate'] = isset($data['increaseRate']) ? $data['increaseRate'] : null;
+ $this->container['unsubscriptionPageId'] = isset($data['unsubscriptionPageId']) ? $data['unsubscriptionPageId'] : null;
+ $this->container['updateFormId'] = isset($data['updateFormId']) ? $data['updateFormId'] : null;
}
/**
@@ -1117,6 +1129,54 @@ public function setIncreaseRate($increaseRate)
return $this;
}
+
+ /**
+ * Gets unsubscriptionPageId
+ *
+ * @return string
+ */
+ public function getUnsubscriptionPageId()
+ {
+ return $this->container['unsubscriptionPageId'];
+ }
+
+ /**
+ * Sets unsubscriptionPageId
+ *
+ * @param string $unsubscriptionPageId Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page.
+ *
+ * @return $this
+ */
+ public function setUnsubscriptionPageId($unsubscriptionPageId)
+ {
+ $this->container['unsubscriptionPageId'] = $unsubscriptionPageId;
+
+ return $this;
+ }
+
+ /**
+ * Gets updateFormId
+ *
+ * @return string
+ */
+ public function getUpdateFormId()
+ {
+ return $this->container['updateFormId'];
+ }
+
+ /**
+ * Sets updateFormId
+ *
+ * @param string $updateFormId Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form.
+ *
+ * @return $this
+ */
+ public function setUpdateFormId($updateFormId)
+ {
+ $this->container['updateFormId'] = $updateFormId;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
@@ -1124,6 +1184,7 @@ public function setIncreaseRate($increaseRate)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -1136,6 +1197,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -1149,6 +1211,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -1165,6 +1228,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateEmailCampaignRecipients.php b/lib/Model/UpdateEmailCampaignRecipients.php
index 98b9d948..1ade5a77 100644
--- a/lib/Model/UpdateEmailCampaignRecipients.php
+++ b/lib/Model/UpdateEmailCampaignRecipients.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -36,7 +36,7 @@
* UpdateEmailCampaignRecipients Class Doc Comment
*
* @category Class
- * @description List ids to include/exclude from campaign
+ * @description Segment ids and List ids to include/exclude from campaign
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -59,7 +59,8 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'exclusionListIds' => 'int[]',
- 'listIds' => 'int[]'
+ 'listIds' => 'int[]',
+ 'segmentIds' => 'int[]'
];
/**
@@ -69,7 +70,8 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'exclusionListIds' => 'int64',
- 'listIds' => 'int64'
+ 'listIds' => 'int64',
+ 'segmentIds' => 'int64'
];
/**
@@ -100,7 +102,8 @@ public static function swaggerFormats()
*/
protected static $attributeMap = [
'exclusionListIds' => 'exclusionListIds',
- 'listIds' => 'listIds'
+ 'listIds' => 'listIds',
+ 'segmentIds' => 'segmentIds'
];
/**
@@ -110,7 +113,8 @@ public static function swaggerFormats()
*/
protected static $setters = [
'exclusionListIds' => 'setExclusionListIds',
- 'listIds' => 'setListIds'
+ 'listIds' => 'setListIds',
+ 'segmentIds' => 'setSegmentIds'
];
/**
@@ -120,7 +124,8 @@ public static function swaggerFormats()
*/
protected static $getters = [
'exclusionListIds' => 'getExclusionListIds',
- 'listIds' => 'getListIds'
+ 'listIds' => 'getListIds',
+ 'segmentIds' => 'getSegmentIds'
];
/**
@@ -185,6 +190,7 @@ public function __construct(array $data = null)
{
$this->container['exclusionListIds'] = isset($data['exclusionListIds']) ? $data['exclusionListIds'] : null;
$this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null;
+ $this->container['segmentIds'] = isset($data['segmentIds']) ? $data['segmentIds'] : null;
}
/**
@@ -248,7 +254,7 @@ public function getListIds()
/**
* Sets listIds
*
- * @param int[] $listIds Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty
+ * @param int[] $listIds Lists Ids to send the campaign to. Campaign should only be updated with listIds if listIds were used to create it. REQUIRED if already not present in campaign and scheduledAt is not empty
*
* @return $this
*/
@@ -258,6 +264,30 @@ public function setListIds($listIds)
return $this;
}
+
+ /**
+ * Gets segmentIds
+ *
+ * @return int[]
+ */
+ public function getSegmentIds()
+ {
+ return $this->container['segmentIds'];
+ }
+
+ /**
+ * Sets segmentIds
+ *
+ * @param int[] $segmentIds Mandatory if listIds are not used. Campaign should only be updated with segmentIds if segmentIds were used to create it. Segment ids to send the campaign to.
+ *
+ * @return $this
+ */
+ public function setSegmentIds($segmentIds)
+ {
+ $this->container['segmentIds'] = $segmentIds;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
@@ -265,6 +295,7 @@ public function setListIds($listIds)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -277,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -290,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -306,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateEmailCampaignSender.php b/lib/Model/UpdateEmailCampaignSender.php
index 261f91ee..da3b27b6 100644
--- a/lib/Model/UpdateEmailCampaignSender.php
+++ b/lib/Model/UpdateEmailCampaignSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -295,6 +295,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -307,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -320,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -336,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateList.php b/lib/Model/UpdateList.php
index a07f372a..6e5ff903 100644
--- a/lib/Model/UpdateList.php
+++ b/lib/Model/UpdateList.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -264,6 +264,7 @@ public function setFolderId($folderId)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -276,6 +277,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -289,6 +291,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -305,6 +308,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateSender.php b/lib/Model/UpdateSender.php
index 5dae884c..2315ca0c 100644
--- a/lib/Model/UpdateSender.php
+++ b/lib/Model/UpdateSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -294,6 +294,7 @@ public function setIps($ips)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -306,6 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -319,6 +321,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -335,6 +338,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateSmsCampaign.php b/lib/Model/UpdateSmsCampaign.php
index 38f07890..20336f74 100644
--- a/lib/Model/UpdateSmsCampaign.php
+++ b/lib/Model/UpdateSmsCampaign.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -62,7 +62,9 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess
'content' => 'string',
'recipients' => '\SendinBlue\Client\Model\CreateSmsCampaignRecipients',
'scheduledAt' => 'string',
- 'unicodeEnabled' => 'bool'
+ 'unicodeEnabled' => 'bool',
+ 'organisationPrefix' => 'string',
+ 'unsubscribeInstruction' => 'string'
];
/**
@@ -76,7 +78,9 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess
'content' => null,
'recipients' => null,
'scheduledAt' => null,
- 'unicodeEnabled' => null
+ 'unicodeEnabled' => null,
+ 'organisationPrefix' => null,
+ 'unsubscribeInstruction' => null
];
/**
@@ -111,7 +115,9 @@ public static function swaggerFormats()
'content' => 'content',
'recipients' => 'recipients',
'scheduledAt' => 'scheduledAt',
- 'unicodeEnabled' => 'unicodeEnabled'
+ 'unicodeEnabled' => 'unicodeEnabled',
+ 'organisationPrefix' => 'organisationPrefix',
+ 'unsubscribeInstruction' => 'unsubscribeInstruction'
];
/**
@@ -125,7 +131,9 @@ public static function swaggerFormats()
'content' => 'setContent',
'recipients' => 'setRecipients',
'scheduledAt' => 'setScheduledAt',
- 'unicodeEnabled' => 'setUnicodeEnabled'
+ 'unicodeEnabled' => 'setUnicodeEnabled',
+ 'organisationPrefix' => 'setOrganisationPrefix',
+ 'unsubscribeInstruction' => 'setUnsubscribeInstruction'
];
/**
@@ -139,7 +147,9 @@ public static function swaggerFormats()
'content' => 'getContent',
'recipients' => 'getRecipients',
'scheduledAt' => 'getScheduledAt',
- 'unicodeEnabled' => 'getUnicodeEnabled'
+ 'unicodeEnabled' => 'getUnicodeEnabled',
+ 'organisationPrefix' => 'getOrganisationPrefix',
+ 'unsubscribeInstruction' => 'getUnsubscribeInstruction'
];
/**
@@ -208,6 +218,8 @@ public function __construct(array $data = null)
$this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null;
$this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null;
$this->container['unicodeEnabled'] = isset($data['unicodeEnabled']) ? $data['unicodeEnabled'] : false;
+ $this->container['organisationPrefix'] = isset($data['organisationPrefix']) ? $data['organisationPrefix'] : null;
+ $this->container['unsubscribeInstruction'] = isset($data['unsubscribeInstruction']) ? $data['unsubscribeInstruction'] : null;
}
/**
@@ -385,6 +397,54 @@ public function setUnicodeEnabled($unicodeEnabled)
return $this;
}
+
+ /**
+ * Gets organisationPrefix
+ *
+ * @return string
+ */
+ public function getOrganisationPrefix()
+ {
+ return $this->container['organisationPrefix'];
+ }
+
+ /**
+ * Sets organisationPrefix
+ *
+ * @param string $organisationPrefix A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.**
+ *
+ * @return $this
+ */
+ public function setOrganisationPrefix($organisationPrefix)
+ {
+ $this->container['organisationPrefix'] = $organisationPrefix;
+
+ return $this;
+ }
+
+ /**
+ * Gets unsubscribeInstruction
+ *
+ * @return string
+ */
+ public function getUnsubscribeInstruction()
+ {
+ return $this->container['unsubscribeInstruction'];
+ }
+
+ /**
+ * Sets unsubscribeInstruction
+ *
+ * @param string $unsubscribeInstruction Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.**
+ *
+ * @return $this
+ */
+ public function setUnsubscribeInstruction($unsubscribeInstruction)
+ {
+ $this->container['unsubscribeInstruction'] = $unsubscribeInstruction;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
@@ -392,6 +452,7 @@ public function setUnicodeEnabled($unicodeEnabled)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -404,6 +465,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -417,6 +479,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -433,6 +496,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateSmtpTemplate.php b/lib/Model/UpdateSmtpTemplate.php
index f182f508..a67e9b44 100644
--- a/lib/Model/UpdateSmtpTemplate.php
+++ b/lib/Model/UpdateSmtpTemplate.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -504,6 +504,7 @@ public function setIsActive($isActive)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -516,6 +517,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -529,6 +531,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -545,6 +548,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateSmtpTemplateSender.php b/lib/Model/UpdateSmtpTemplateSender.php
index 8fb86074..e4f0fe56 100644
--- a/lib/Model/UpdateSmtpTemplateSender.php
+++ b/lib/Model/UpdateSmtpTemplateSender.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -295,6 +295,7 @@ public function setId($id)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -307,6 +308,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -320,6 +322,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -336,6 +339,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UpdateWebhook.php b/lib/Model/UpdateWebhook.php
index 1bb3d8c0..4eab1ad1 100644
--- a/lib/Model/UpdateWebhook.php
+++ b/lib/Model/UpdateWebhook.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -378,6 +378,7 @@ public function setDomain($domain)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -390,6 +391,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -403,6 +405,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -419,6 +422,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/Model/UploadImageModel.php b/lib/Model/UploadImageModel.php
new file mode 100644
index 00000000..9abea119
--- /dev/null
+++ b/lib/Model/UploadImageModel.php
@@ -0,0 +1,308 @@
+ 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'url' => 'string'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'url' => 'url'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'url' => 'setUrl'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'url' => 'getUrl'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['url'] === null) {
+ $invalidProperties[] = "'url' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets url
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string $url URL of the image uploaded
+ *
+ * @return $this
+ */
+ public function setUrl($url)
+ {
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/lib/Model/UploadImageToGallery.php b/lib/Model/UploadImageToGallery.php
index 3272c349..3fb9b30e 100644
--- a/lib/Model/UploadImageToGallery.php
+++ b/lib/Model/UploadImageToGallery.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
@@ -267,6 +267,7 @@ public function setName($name)
*
* @return boolean
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
@@ -279,6 +280,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
@@ -292,6 +294,7 @@ public function offsetGet($offset)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
@@ -308,6 +311,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php
index 4a677abe..02546d7a 100644
--- a/lib/ObjectSerializer.php
+++ b/lib/ObjectSerializer.php
@@ -18,7 +18,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
diff --git a/test/Api/AccountApiTest.php b/test/Api/AccountApiTest.php
index 2572e03f..e33abb47 100644
--- a/test/Api/AccountApiTest.php
+++ b/test/Api/AccountApiTest.php
@@ -17,7 +17,7 @@
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.4.19
+ * Swagger Codegen version: 2.4.29
*/
/**
diff --git a/test/Api/CompaniesApiTest.php b/test/Api/CompaniesApiTest.php
new file mode 100644
index 00000000..20fef0fa
--- /dev/null
+++ b/test/Api/CompaniesApiTest.php
@@ -0,0 +1,143 @@
+