diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore deleted file mode 100755 index c5fa491b..00000000 --- a/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION deleted file mode 100755 index 6b4d1577..00000000 --- a/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -2.2.3 \ No newline at end of file diff --git a/README.md b/README.md index a4df42ae..1ba0c6a2 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ To install the bindings via [Composer](http://getcomposer.org/), add the followi } ], "require": { - "/": "*@dev" + "sendinblue/APIv3-php-library": "*@dev" } } ``` @@ -188,63 +188,68 @@ Class | Method | HTTP request | Description ## Documentation For Models - [AddCredits](docs/Model/AddCredits.md) - - [AddCredits1](docs/Model/AddCredits1.md) - [AddRemoveContactToList](docs/Model/AddRemoveContactToList.md) - - [ContactEmails](docs/Model/ContactEmails.md) - - [ContactEmails1](docs/Model/ContactEmails1.md) - - [ContactsattributesEnumemaration](docs/Model/ContactsattributesEnumemaration.md) - - [ContactsimportNewList](docs/Model/ContactsimportNewList.md) - [CreaUpdateFolder](docs/Model/CreaUpdateFolder.md) - [CreateAttribute](docs/Model/CreateAttribute.md) - - [CreateAttribute1](docs/Model/CreateAttribute1.md) + - [CreateAttributeEnumemaration](docs/Model/CreateAttributeEnumemaration.md) - [CreateChild](docs/Model/CreateChild.md) - [CreateContact](docs/Model/CreateContact.md) - - [CreateContact1](docs/Model/CreateContact1.md) - [CreateEmailCampaign](docs/Model/CreateEmailCampaign.md) + - [CreateEmailCampaignRecipients](docs/Model/CreateEmailCampaignRecipients.md) + - [CreateEmailCampaignSender](docs/Model/CreateEmailCampaignSender.md) - [CreateList](docs/Model/CreateList.md) - - [CreateList1](docs/Model/CreateList1.md) - [CreateModel](docs/Model/CreateModel.md) - [CreateSender](docs/Model/CreateSender.md) + - [CreateSenderIps](docs/Model/CreateSenderIps.md) - [CreateSenderModel](docs/Model/CreateSenderModel.md) - [CreateSmsCampaign](docs/Model/CreateSmsCampaign.md) - - [CreateSmsCampaign1](docs/Model/CreateSmsCampaign1.md) + - [CreateSmsCampaignRecipients](docs/Model/CreateSmsCampaignRecipients.md) - [CreateSmtpEmail](docs/Model/CreateSmtpEmail.md) - [CreateSmtpTemplate](docs/Model/CreateSmtpTemplate.md) + - [CreateSmtpTemplateSender](docs/Model/CreateSmtpTemplateSender.md) - [CreateWebhook](docs/Model/CreateWebhook.md) - - [CreateWebhook1](docs/Model/CreateWebhook1.md) - [CreatedProcessId](docs/Model/CreatedProcessId.md) - [DeleteHardbounces](docs/Model/DeleteHardbounces.md) - - [DeleteHardbounces1](docs/Model/DeleteHardbounces1.md) - - [EmailCampaign](docs/Model/EmailCampaign.md) - - [EmailCampaigns](docs/Model/EmailCampaigns.md) - - [EmailCampaignsRecipients](docs/Model/EmailCampaignsRecipients.md) - - [EmailCampaignsSender](docs/Model/EmailCampaignsSender.md) - - [EmailCampaignscampaignIdRecipients](docs/Model/EmailCampaignscampaignIdRecipients.md) - - [EmailCampaignscampaignIdSender](docs/Model/EmailCampaignscampaignIdSender.md) - - [EmailCampaignscampaignIdsendReportEmail](docs/Model/EmailCampaignscampaignIdsendReportEmail.md) - [EmailExportRecipients](docs/Model/EmailExportRecipients.md) - - [EmailTo](docs/Model/EmailTo.md) - [ErrorModel](docs/Model/ErrorModel.md) - - [GetAccount](docs/Model/GetAccount.md) + - [GetAccountMarketingAutomation](docs/Model/GetAccountMarketingAutomation.md) + - [GetAccountPlan](docs/Model/GetAccountPlan.md) + - [GetAccountRelay](docs/Model/GetAccountRelay.md) + - [GetAccountRelayData](docs/Model/GetAccountRelayData.md) - [GetAggregatedReport](docs/Model/GetAggregatedReport.md) - [GetAttributes](docs/Model/GetAttributes.md) + - [GetAttributesAttributes](docs/Model/GetAttributesAttributes.md) + - [GetAttributesEnumeration](docs/Model/GetAttributesEnumeration.md) - [GetCampaignOverview](docs/Model/GetCampaignOverview.md) - [GetCampaignRecipients](docs/Model/GetCampaignRecipients.md) + - [GetCampaignRecipientsExclusionLists](docs/Model/GetCampaignRecipientsExclusionLists.md) + - [GetCampaignRecipientsLists](docs/Model/GetCampaignRecipientsLists.md) - [GetCampaignStats](docs/Model/GetCampaignStats.md) - - [GetChildInfo](docs/Model/GetChildInfo.md) + - [GetChildInfoApiKeys](docs/Model/GetChildInfoApiKeys.md) + - [GetChildInfoCredits](docs/Model/GetChildInfoCredits.md) + - [GetChildInfoIps](docs/Model/GetChildInfoIps.md) + - [GetChildInfoStatistics](docs/Model/GetChildInfoStatistics.md) - [GetChildrenList](docs/Model/GetChildrenList.md) - [GetClient](docs/Model/GetClient.md) - [GetContactCampaignStats](docs/Model/GetContactCampaignStats.md) + - [GetContactCampaignStatsClicked](docs/Model/GetContactCampaignStatsClicked.md) + - [GetContactCampaignStatsLinks](docs/Model/GetContactCampaignStatsLinks.md) + - [GetContactCampaignStatsMessagesSent](docs/Model/GetContactCampaignStatsMessagesSent.md) + - [GetContactCampaignStatsOpened](docs/Model/GetContactCampaignStatsOpened.md) + - [GetContactCampaignStatsTransacAttributes](docs/Model/GetContactCampaignStatsTransacAttributes.md) + - [GetContactCampaignStatsUnsubscriptions](docs/Model/GetContactCampaignStatsUnsubscriptions.md) + - [GetContactCampaignStatsUnsubscriptionsAdminUnsubscription](docs/Model/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md) + - [GetContactCampaignStatsUnsubscriptionsUserUnsubscription](docs/Model/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md) - [GetContactDetails](docs/Model/GetContactDetails.md) - [GetContacts](docs/Model/GetContacts.md) - - [GetEmailCampaign](docs/Model/GetEmailCampaign.md) - [GetEmailCampaigns](docs/Model/GetEmailCampaigns.md) - [GetEmailEventReport](docs/Model/GetEmailEventReport.md) - - [GetExtendedCampaignOverview](docs/Model/GetExtendedCampaignOverview.md) + - [GetEmailEventReportEvents](docs/Model/GetEmailEventReportEvents.md) + - [GetExtendedCampaignOverviewSender](docs/Model/GetExtendedCampaignOverviewSender.md) - [GetExtendedCampaignStats](docs/Model/GetExtendedCampaignStats.md) - - [GetExtendedClient](docs/Model/GetExtendedClient.md) - - [GetExtendedContactDetails](docs/Model/GetExtendedContactDetails.md) - - [GetExtendedList](docs/Model/GetExtendedList.md) + - [GetExtendedCampaignStatsLinksStats](docs/Model/GetExtendedCampaignStatsLinksStats.md) + - [GetExtendedClientAddress](docs/Model/GetExtendedClientAddress.md) + - [GetExtendedListCampaignStats](docs/Model/GetExtendedListCampaignStats.md) - [GetFolder](docs/Model/GetFolder.md) - [GetFolderLists](docs/Model/GetFolderLists.md) - [GetFolders](docs/Model/GetFolders.md) @@ -254,173 +259,78 @@ Class | Method | HTTP request | Description - [GetIpsFromSender](docs/Model/GetIpsFromSender.md) - [GetList](docs/Model/GetList.md) - [GetLists](docs/Model/GetLists.md) - - [GetPlan](docs/Model/GetPlan.md) + - [GetListsFolder](docs/Model/GetListsFolder.md) + - [GetListsLists](docs/Model/GetListsLists.md) - [GetProcess](docs/Model/GetProcess.md) - [GetProcesses](docs/Model/GetProcesses.md) - [GetReports](docs/Model/GetReports.md) + - [GetReportsReports](docs/Model/GetReportsReports.md) - [GetSendersList](docs/Model/GetSendersList.md) - - [GetSmsCampaign](docs/Model/GetSmsCampaign.md) - - [GetSmsCampaign1](docs/Model/GetSmsCampaign1.md) + - [GetSendersListIps](docs/Model/GetSendersListIps.md) + - [GetSendersListSenders](docs/Model/GetSendersListSenders.md) - [GetSmsCampaignOverview](docs/Model/GetSmsCampaignOverview.md) - [GetSmsCampaignStats](docs/Model/GetSmsCampaignStats.md) - [GetSmsCampaigns](docs/Model/GetSmsCampaigns.md) - [GetSmsEventReport](docs/Model/GetSmsEventReport.md) + - [GetSmsEventReportEvents](docs/Model/GetSmsEventReportEvents.md) - [GetSmtpTemplateOverview](docs/Model/GetSmtpTemplateOverview.md) + - [GetSmtpTemplateOverviewSender](docs/Model/GetSmtpTemplateOverviewSender.md) - [GetSmtpTemplates](docs/Model/GetSmtpTemplates.md) - [GetStatsByDomain](docs/Model/GetStatsByDomain.md) - [GetTransacAggregatedSmsReport](docs/Model/GetTransacAggregatedSmsReport.md) - [GetTransacSmsReport](docs/Model/GetTransacSmsReport.md) + - [GetTransacSmsReportReports](docs/Model/GetTransacSmsReportReports.md) - [GetWebhook](docs/Model/GetWebhook.md) - [GetWebhooks](docs/Model/GetWebhooks.md) - - [InlineResponse200](docs/Model/InlineResponse200.md) - - [InlineResponse2001](docs/Model/InlineResponse2001.md) - - [InlineResponse20010](docs/Model/InlineResponse20010.md) - - [InlineResponse20011](docs/Model/InlineResponse20011.md) - - [InlineResponse20011Events](docs/Model/InlineResponse20011Events.md) - - [InlineResponse20012](docs/Model/InlineResponse20012.md) - - [InlineResponse20012Sender](docs/Model/InlineResponse20012Sender.md) - - [InlineResponse20012Templates](docs/Model/InlineResponse20012Templates.md) - - [InlineResponse20013](docs/Model/InlineResponse20013.md) - - [InlineResponse20013Webhooks](docs/Model/InlineResponse20013Webhooks.md) - - [InlineResponse20014](docs/Model/InlineResponse20014.md) - - [InlineResponse20014Contacts](docs/Model/InlineResponse20014Contacts.md) - - [InlineResponse20015](docs/Model/InlineResponse20015.md) - - [InlineResponse20015Clicked](docs/Model/InlineResponse20015Clicked.md) - - [InlineResponse20015Links](docs/Model/InlineResponse20015Links.md) - - [InlineResponse20015MessagesSent](docs/Model/InlineResponse20015MessagesSent.md) - - [InlineResponse20015Opened](docs/Model/InlineResponse20015Opened.md) - - [InlineResponse20015TransacAttributes](docs/Model/InlineResponse20015TransacAttributes.md) - - [InlineResponse20015Unsubscriptions](docs/Model/InlineResponse20015Unsubscriptions.md) - - [InlineResponse20015UnsubscriptionsAdminUnsubscription](docs/Model/InlineResponse20015UnsubscriptionsAdminUnsubscription.md) - - [InlineResponse20015UnsubscriptionsUserUnsubscription](docs/Model/InlineResponse20015UnsubscriptionsUserUnsubscription.md) - - [InlineResponse20016](docs/Model/InlineResponse20016.md) - - [InlineResponse20016Attributes](docs/Model/InlineResponse20016Attributes.md) - - [InlineResponse20016Enumeration](docs/Model/InlineResponse20016Enumeration.md) - - [InlineResponse20017](docs/Model/InlineResponse20017.md) - - [InlineResponse20017Folders](docs/Model/InlineResponse20017Folders.md) - - [InlineResponse20018](docs/Model/InlineResponse20018.md) - - [InlineResponse20018Lists](docs/Model/InlineResponse20018Lists.md) - - [InlineResponse20019](docs/Model/InlineResponse20019.md) - - [InlineResponse2001ApiKeys](docs/Model/InlineResponse2001ApiKeys.md) - - [InlineResponse2001Children](docs/Model/InlineResponse2001Children.md) - - [InlineResponse2001Credits](docs/Model/InlineResponse2001Credits.md) - - [InlineResponse2001Ips](docs/Model/InlineResponse2001Ips.md) - - [InlineResponse2001Statistics](docs/Model/InlineResponse2001Statistics.md) - - [InlineResponse2002](docs/Model/InlineResponse2002.md) - - [InlineResponse20020](docs/Model/InlineResponse20020.md) - - [InlineResponse20020CampaignStats](docs/Model/InlineResponse20020CampaignStats.md) - - [InlineResponse20021](docs/Model/InlineResponse20021.md) - - [InlineResponse20021Campaigns](docs/Model/InlineResponse20021Campaigns.md) - - [InlineResponse20021Statistics](docs/Model/InlineResponse20021Statistics.md) - - [InlineResponse20022](docs/Model/InlineResponse20022.md) - - [InlineResponse20022Events](docs/Model/InlineResponse20022Events.md) - - [InlineResponse20023](docs/Model/InlineResponse20023.md) - - [InlineResponse20024](docs/Model/InlineResponse20024.md) - - [InlineResponse20024Reports](docs/Model/InlineResponse20024Reports.md) - - [InlineResponse2003](docs/Model/InlineResponse2003.md) - - [InlineResponse2003Child](docs/Model/InlineResponse2003Child.md) - - [InlineResponse2003Reseller](docs/Model/InlineResponse2003Reseller.md) - - [InlineResponse2004](docs/Model/InlineResponse2004.md) - - [InlineResponse2004Ips](docs/Model/InlineResponse2004Ips.md) - - [InlineResponse2004Senders](docs/Model/InlineResponse2004Senders.md) - - [InlineResponse2005](docs/Model/InlineResponse2005.md) - - [InlineResponse2005Ips](docs/Model/InlineResponse2005Ips.md) - - [InlineResponse2006](docs/Model/InlineResponse2006.md) - - [InlineResponse2006Ips](docs/Model/InlineResponse2006Ips.md) - - [InlineResponse2007](docs/Model/InlineResponse2007.md) - - [InlineResponse2007Processes](docs/Model/InlineResponse2007Processes.md) - - [InlineResponse2008](docs/Model/InlineResponse2008.md) - - [InlineResponse2008Campaigns](docs/Model/InlineResponse2008Campaigns.md) - - [InlineResponse2008Recipients](docs/Model/InlineResponse2008Recipients.md) - - [InlineResponse2008RecipientsExclusionLists](docs/Model/InlineResponse2008RecipientsExclusionLists.md) - - [InlineResponse2008RecipientsLists](docs/Model/InlineResponse2008RecipientsLists.md) - - [InlineResponse2008Sender](docs/Model/InlineResponse2008Sender.md) - - [InlineResponse2008Statistics](docs/Model/InlineResponse2008Statistics.md) - - [InlineResponse2008StatisticsCampaignStats](docs/Model/InlineResponse2008StatisticsCampaignStats.md) - - [InlineResponse2008StatisticsLinksStats](docs/Model/InlineResponse2008StatisticsLinksStats.md) - - [InlineResponse2009](docs/Model/InlineResponse2009.md) - - [InlineResponse2009Reports](docs/Model/InlineResponse2009Reports.md) - - [InlineResponse200Address](docs/Model/InlineResponse200Address.md) - - [InlineResponse200MarketingAutomation](docs/Model/InlineResponse200MarketingAutomation.md) - - [InlineResponse200Plan](docs/Model/InlineResponse200Plan.md) - - [InlineResponse200Relay](docs/Model/InlineResponse200Relay.md) - - [InlineResponse200RelayData](docs/Model/InlineResponse200RelayData.md) - - [InlineResponse201](docs/Model/InlineResponse201.md) - - [InlineResponse2011](docs/Model/InlineResponse2011.md) - - [InlineResponse2012](docs/Model/InlineResponse2012.md) - - [InlineResponse2013](docs/Model/InlineResponse2013.md) - - [InlineResponse2014](docs/Model/InlineResponse2014.md) - - [InlineResponse2014Contacts](docs/Model/InlineResponse2014Contacts.md) - - [InlineResponse2015](docs/Model/InlineResponse2015.md) - - [InlineResponse202](docs/Model/InlineResponse202.md) - - [InlineResponse400](docs/Model/InlineResponse400.md) - - [InlineResponse4001](docs/Model/InlineResponse4001.md) - - [InlineResponse403](docs/Model/InlineResponse403.md) - - [IpId](docs/Model/IpId.md) - - [IpId1](docs/Model/IpId1.md) - [ManageIp](docs/Model/ManageIp.md) - - [Name](docs/Model/Name.md) - - [Name1](docs/Model/Name1.md) - [PostContactInfo](docs/Model/PostContactInfo.md) + - [PostContactInfoContacts](docs/Model/PostContactInfoContacts.md) - [PostSendFailed](docs/Model/PostSendFailed.md) - [PostSendSmsTestFailed](docs/Model/PostSendSmsTestFailed.md) - - [RecipientExport](docs/Model/RecipientExport.md) - - [RecipientExport1](docs/Model/RecipientExport1.md) - [RemainingCreditModel](docs/Model/RemainingCreditModel.md) + - [RemainingCreditModelChild](docs/Model/RemainingCreditModelChild.md) + - [RemainingCreditModelReseller](docs/Model/RemainingCreditModelReseller.md) - [RemoveCredits](docs/Model/RemoveCredits.md) - - [RemoveCredits1](docs/Model/RemoveCredits1.md) - [RequestContactExport](docs/Model/RequestContactExport.md) - - [RequestContactExport1](docs/Model/RequestContactExport1.md) - [RequestContactImport](docs/Model/RequestContactImport.md) - - [RequestContactImport1](docs/Model/RequestContactImport1.md) + - [RequestContactImportNewList](docs/Model/RequestContactImportNewList.md) - [RequestSMSRecipientExport](docs/Model/RequestSMSRecipientExport.md) - - [ResellerChild](docs/Model/ResellerChild.md) - - [ResellerChild1](docs/Model/ResellerChild1.md) - [SendEmail](docs/Model/SendEmail.md) - - [SendEmail1](docs/Model/SendEmail1.md) + - [SendEmailAttachment](docs/Model/SendEmailAttachment.md) - [SendReport](docs/Model/SendReport.md) - - [SendReport1](docs/Model/SendReport1.md) - - [SendReport2](docs/Model/SendReport2.md) + - [SendReportEmail](docs/Model/SendReportEmail.md) - [SendSms](docs/Model/SendSms.md) - [SendSmtpEmail](docs/Model/SendSmtpEmail.md) - - [SendSmtpEmail1](docs/Model/SendSmtpEmail1.md) + - [SendSmtpEmailAttachment](docs/Model/SendSmtpEmailAttachment.md) + - [SendSmtpEmailBcc](docs/Model/SendSmtpEmailBcc.md) + - [SendSmtpEmailCc](docs/Model/SendSmtpEmailCc.md) + - [SendSmtpEmailReplyTo](docs/Model/SendSmtpEmailReplyTo.md) + - [SendSmtpEmailSender](docs/Model/SendSmtpEmailSender.md) + - [SendSmtpEmailTo](docs/Model/SendSmtpEmailTo.md) - [SendTemplateEmail](docs/Model/SendTemplateEmail.md) - [SendTestEmail](docs/Model/SendTestEmail.md) - - [SendTestEmail1](docs/Model/SendTestEmail1.md) - [SendTestSms](docs/Model/SendTestSms.md) - - [SendTestSms1](docs/Model/SendTestSms1.md) - [SendTransacSms](docs/Model/SendTransacSms.md) - - [SendTransacSms1](docs/Model/SendTransacSms1.md) - - [Sender](docs/Model/Sender.md) - - [Sender1](docs/Model/Sender1.md) - - [SendersIps](docs/Model/SendersIps.md) - - [SmsCampaignsRecipients](docs/Model/SmsCampaignsRecipients.md) - - [SmtpTemplate](docs/Model/SmtpTemplate.md) - - [SmtpTemplate1](docs/Model/SmtpTemplate1.md) - - [SmtpemailAttachment](docs/Model/SmtpemailAttachment.md) - - [SmtpemailBcc](docs/Model/SmtpemailBcc.md) - - [SmtpemailCc](docs/Model/SmtpemailCc.md) - - [SmtpemailReplyTo](docs/Model/SmtpemailReplyTo.md) - - [SmtpemailSender](docs/Model/SmtpemailSender.md) - - [SmtpemailTo](docs/Model/SmtpemailTo.md) - - [SmtptemplatesSender](docs/Model/SmtptemplatesSender.md) - - [SmtptemplatestemplateIdSender](docs/Model/SmtptemplatestemplateIdSender.md) - - [SmtptemplatestemplateIdsendAttachment](docs/Model/SmtptemplatestemplateIdsendAttachment.md) - - [Status](docs/Model/Status.md) - - [Status1](docs/Model/Status1.md) - [UpdateCampaignStatus](docs/Model/UpdateCampaignStatus.md) - [UpdateChild](docs/Model/UpdateChild.md) - [UpdateContact](docs/Model/UpdateContact.md) - - [UpdateContact1](docs/Model/UpdateContact1.md) - [UpdateEmailCampaign](docs/Model/UpdateEmailCampaign.md) + - [UpdateEmailCampaignRecipients](docs/Model/UpdateEmailCampaignRecipients.md) + - [UpdateEmailCampaignSender](docs/Model/UpdateEmailCampaignSender.md) - [UpdateList](docs/Model/UpdateList.md) - - [UpdateList1](docs/Model/UpdateList1.md) - [UpdateSender](docs/Model/UpdateSender.md) - [UpdateSmsCampaign](docs/Model/UpdateSmsCampaign.md) - - [UpdateSmsCampaign1](docs/Model/UpdateSmsCampaign1.md) - [UpdateSmtpTemplate](docs/Model/UpdateSmtpTemplate.md) + - [UpdateSmtpTemplateSender](docs/Model/UpdateSmtpTemplateSender.md) - [UpdateWebhook](docs/Model/UpdateWebhook.md) - - [UpdateWebhook1](docs/Model/UpdateWebhook1.md) + - [GetChildInfo](docs/Model/GetChildInfo.md) + - [GetExtendedCampaignOverview](docs/Model/GetExtendedCampaignOverview.md) + - [GetExtendedClient](docs/Model/GetExtendedClient.md) + - [GetExtendedContactDetails](docs/Model/GetExtendedContactDetails.md) + - [GetExtendedList](docs/Model/GetExtendedList.md) + - [GetSmsCampaign](docs/Model/GetSmsCampaign.md) + - [GetAccount](docs/Model/GetAccount.md) + - [GetEmailCampaign](docs/Model/GetEmailCampaign.md) ## Documentation For Authorization diff --git a/composer.json b/composer.json index 6456aae3..980387fd 100755 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "sendinblue-apiv3", + "name": "sendinblue/sendinblue-apiv3", "description": "Official SendinBlue provided RESTFul API V3 php library", "keywords": [ "sendinblue", diff --git a/docs/Api/AccountApi.md b/docs/Api/AccountApi.md old mode 100755 new mode 100644 index ee330886..01943c26 --- a/docs/Api/AccountApi.md +++ b/docs/Api/AccountApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **getAccount** -> \Swagger\Client\Model\InlineResponse200 getAccount() +> \Swagger\Client\Model\GetAccount getAccount() Get your account informations, plans and credits details @@ -36,7 +36,7 @@ This endpoint does not need any parameter. ### Return type -[**\Swagger\Client\Model\InlineResponse200**](../Model/InlineResponse200.md) +[**\Swagger\Client\Model\GetAccount**](../Model/GetAccount.md) ### Authorization diff --git a/docs/Api/AttributesApi.md b/docs/Api/AttributesApi.md old mode 100755 new mode 100644 index 282e7f64..41f80f35 --- a/docs/Api/AttributesApi.md +++ b/docs/Api/AttributesApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description # **createAttribute** -> \Swagger\Client\Model\InlineResponse201 createAttribute($create_attribute) +> \Swagger\Client\Model\CreateModel createAttribute($createAttribute) Creates contact attributes @@ -23,10 +23,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\AttributesApi(); -$create_attribute = new \Swagger\Client\Model\CreateAttribute1(); // \Swagger\Client\Model\CreateAttribute1 | Values to create an attribute +$createAttribute = new \Swagger\Client\Model\CreateAttribute(); // \Swagger\Client\Model\CreateAttribute | Values to create an attribute try { - $result = $api_instance->createAttribute($create_attribute); + $result = $api_instance->createAttribute($createAttribute); print_r($result); } catch (Exception $e) { echo 'Exception when calling AttributesApi->createAttribute: ', $e->getMessage(), PHP_EOL; @@ -38,11 +38,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_attribute** | [**\Swagger\Client\Model\CreateAttribute1**](../Model/CreateAttribute1.md)| Values to create an attribute | + **createAttribute** | [**\Swagger\Client\Model\CreateAttribute**](../Model/CreateAttribute.md)| Values to create an attribute | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -56,7 +56,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteAttribute** -> deleteAttribute($attribute_id) +> deleteAttribute($attributeId) Deletes an attribute @@ -69,10 +69,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\AttributesApi(); -$attribute_id = "attribute_id_example"; // string | id of the attribute +$attributeId = "attributeId_example"; // string | id of the attribute try { - $api_instance->deleteAttribute($attribute_id); + $api_instance->deleteAttribute($attributeId); } catch (Exception $e) { echo 'Exception when calling AttributesApi->deleteAttribute: ', $e->getMessage(), PHP_EOL; } @@ -83,7 +83,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_id** | **string**| id of the attribute | + **attributeId** | **string**| id of the attribute | ### Return type @@ -101,7 +101,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) # **getAttributes** -> \Swagger\Client\Model\InlineResponse20016 getAttributes() +> \Swagger\Client\Model\GetAttributes getAttributes() Lists all attributes @@ -129,7 +129,7 @@ This endpoint does not need any parameter. ### Return type -[**\Swagger\Client\Model\InlineResponse20016**](../Model/InlineResponse20016.md) +[**\Swagger\Client\Model\GetAttributes**](../Model/GetAttributes.md) ### Authorization diff --git a/docs/Api/ContactsApi.md b/docs/Api/ContactsApi.md old mode 100755 new mode 100644 index 85aae95d..a485de4f --- a/docs/Api/ContactsApi.md +++ b/docs/Api/ContactsApi.md @@ -31,7 +31,7 @@ Method | HTTP request | Description # **addContactToList** -> \Swagger\Client\Model\InlineResponse2014 addContactToList($list_id, $contact_emails) +> \Swagger\Client\Model\PostContactInfo addContactToList($listId, $contactEmails) Add existing contacts to a list @@ -44,11 +44,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$list_id = "list_id_example"; // string | Id of the list -$contact_emails = new \Swagger\Client\Model\ContactEmails(); // \Swagger\Client\Model\ContactEmails | Emails addresses of the contacts +$listId = "listId_example"; // string | Id of the list +$contactEmails = new \Swagger\Client\Model\AddRemoveContactToList(); // \Swagger\Client\Model\AddRemoveContactToList | Emails addresses of the contacts try { - $result = $api_instance->addContactToList($list_id, $contact_emails); + $result = $api_instance->addContactToList($listId, $contactEmails); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->addContactToList: ', $e->getMessage(), PHP_EOL; @@ -60,12 +60,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | - **contact_emails** | [**\Swagger\Client\Model\ContactEmails**](../Model/ContactEmails.md)| Emails addresses of the contacts | + **listId** | **string**| Id of the list | + **contactEmails** | [**\Swagger\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails addresses of the contacts | ### Return type -[**\Swagger\Client\Model\InlineResponse2014**](../Model/InlineResponse2014.md) +[**\Swagger\Client\Model\PostContactInfo**](../Model/PostContactInfo.md) ### Authorization @@ -79,7 +79,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **createAttribute** -> \Swagger\Client\Model\InlineResponse201 createAttribute($create_attribute) +> \Swagger\Client\Model\CreateModel createAttribute($createAttribute) Creates contact attributes @@ -92,10 +92,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$create_attribute = new \Swagger\Client\Model\CreateAttribute1(); // \Swagger\Client\Model\CreateAttribute1 | Values to create an attribute +$createAttribute = new \Swagger\Client\Model\CreateAttribute(); // \Swagger\Client\Model\CreateAttribute | Values to create an attribute try { - $result = $api_instance->createAttribute($create_attribute); + $result = $api_instance->createAttribute($createAttribute); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->createAttribute: ', $e->getMessage(), PHP_EOL; @@ -107,11 +107,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_attribute** | [**\Swagger\Client\Model\CreateAttribute1**](../Model/CreateAttribute1.md)| Values to create an attribute | + **createAttribute** | [**\Swagger\Client\Model\CreateAttribute**](../Model/CreateAttribute.md)| Values to create an attribute | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -125,7 +125,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **createContact** -> \Swagger\Client\Model\InlineResponse201 createContact($create_contact) +> \Swagger\Client\Model\CreateModel createContact($createContact) Create a contact @@ -138,10 +138,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$create_contact = new \Swagger\Client\Model\CreateContact1(); // \Swagger\Client\Model\CreateContact1 | Values to create a contact +$createContact = new \Swagger\Client\Model\CreateContact(); // \Swagger\Client\Model\CreateContact | Values to create a contact try { - $result = $api_instance->createContact($create_contact); + $result = $api_instance->createContact($createContact); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->createContact: ', $e->getMessage(), PHP_EOL; @@ -153,11 +153,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_contact** | [**\Swagger\Client\Model\CreateContact1**](../Model/CreateContact1.md)| Values to create a contact | + **createContact** | [**\Swagger\Client\Model\CreateContact**](../Model/CreateContact.md)| Values to create a contact | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -171,7 +171,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **createFolder** -> \Swagger\Client\Model\InlineResponse201 createFolder($name) +> \Swagger\Client\Model\CreateModel createFolder($name) Create a folder @@ -184,7 +184,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$name = new \Swagger\Client\Model\Name(); // \Swagger\Client\Model\Name | Name of the folder +$name = new \Swagger\Client\Model\CreaUpdateFolder(); // \Swagger\Client\Model\CreaUpdateFolder | Name of the folder try { $result = $api_instance->createFolder($name); @@ -199,11 +199,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**\Swagger\Client\Model\Name**](../Model/Name.md)| Name of the folder | + **name** | [**\Swagger\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -217,7 +217,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **createList** -> \Swagger\Client\Model\InlineResponse201 createList($create_list) +> \Swagger\Client\Model\CreateModel createList($createList) Create a list @@ -230,10 +230,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$create_list = new \Swagger\Client\Model\CreateList1(); // \Swagger\Client\Model\CreateList1 | Values to create a list +$createList = new \Swagger\Client\Model\CreateList(); // \Swagger\Client\Model\CreateList | Values to create a list try { - $result = $api_instance->createList($create_list); + $result = $api_instance->createList($createList); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->createList: ', $e->getMessage(), PHP_EOL; @@ -245,11 +245,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_list** | [**\Swagger\Client\Model\CreateList1**](../Model/CreateList1.md)| Values to create a list | + **createList** | [**\Swagger\Client\Model\CreateList**](../Model/CreateList.md)| Values to create a list | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -263,7 +263,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteAttribute** -> deleteAttribute($attribute_id) +> deleteAttribute($attributeId) Deletes an attribute @@ -276,10 +276,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$attribute_id = "attribute_id_example"; // string | id of the attribute +$attributeId = "attributeId_example"; // string | id of the attribute try { - $api_instance->deleteAttribute($attribute_id); + $api_instance->deleteAttribute($attributeId); } catch (Exception $e) { echo 'Exception when calling ContactsApi->deleteAttribute: ', $e->getMessage(), PHP_EOL; } @@ -290,7 +290,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_id** | **string**| id of the attribute | + **attributeId** | **string**| id of the attribute | ### Return type @@ -308,7 +308,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) # **deleteFolder** -> deleteFolder($folder_id) +> deleteFolder($folderId) Delete a folder (and all its lists) @@ -321,10 +321,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$folder_id = "folder_id_example"; // string | Id of the folder +$folderId = "folderId_example"; // string | Id of the folder try { - $api_instance->deleteFolder($folder_id); + $api_instance->deleteFolder($folderId); } catch (Exception $e) { echo 'Exception when calling ContactsApi->deleteFolder: ', $e->getMessage(), PHP_EOL; } @@ -335,7 +335,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| Id of the folder | + **folderId** | **string**| Id of the folder | ### Return type @@ -353,7 +353,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) # **deleteList** -> deleteList($list_id) +> deleteList($listId) Delete a list @@ -366,10 +366,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$list_id = "list_id_example"; // string | Id of the list +$listId = "listId_example"; // string | Id of the list try { - $api_instance->deleteList($list_id); + $api_instance->deleteList($listId); } catch (Exception $e) { echo 'Exception when calling ContactsApi->deleteList: ', $e->getMessage(), PHP_EOL; } @@ -380,7 +380,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | + **listId** | **string**| Id of the list | ### Return type @@ -398,7 +398,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) # **getAttributes** -> \Swagger\Client\Model\InlineResponse20016 getAttributes() +> \Swagger\Client\Model\GetAttributes getAttributes() Lists all attributes @@ -426,7 +426,7 @@ This endpoint does not need any parameter. ### Return type -[**\Swagger\Client\Model\InlineResponse20016**](../Model/InlineResponse20016.md) +[**\Swagger\Client\Model\GetAttributes**](../Model/GetAttributes.md) ### Authorization @@ -440,7 +440,7 @@ This endpoint does not need any parameter. [[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) # **getContactInfo** -> \Swagger\Client\Model\InlineResponse20014Contacts getContactInfo($email) +> \Swagger\Client\Model\GetExtendedContactDetails getContactInfo($email) Retrieves contact informations @@ -472,7 +472,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20014Contacts**](../Model/InlineResponse20014Contacts.md) +[**\Swagger\Client\Model\GetExtendedContactDetails**](../Model/GetExtendedContactDetails.md) ### Authorization @@ -486,7 +486,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getContactStats** -> \Swagger\Client\Model\InlineResponse20015 getContactStats($email) +> \Swagger\Client\Model\GetContactCampaignStats getContactStats($email) Get the campaigns statistics for a contact @@ -518,7 +518,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20015**](../Model/InlineResponse20015.md) +[**\Swagger\Client\Model\GetContactCampaignStats**](../Model/GetContactCampaignStats.md) ### Authorization @@ -532,7 +532,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getContacts** -> \Swagger\Client\Model\InlineResponse20014 getContacts($limit, $offset) +> \Swagger\Client\Model\GetContacts getContacts($limit, $offset) Get all the contacts @@ -566,7 +566,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20014**](../Model/InlineResponse20014.md) +[**\Swagger\Client\Model\GetContacts**](../Model/GetContacts.md) ### Authorization @@ -580,7 +580,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getContactsFromList** -> \Swagger\Client\Model\InlineResponse20014 getContactsFromList($list_id, $modified_since, $limit, $offset) +> \Swagger\Client\Model\GetContacts getContactsFromList($listId, $modifiedSince, $limit, $offset) Get the contacts in a list @@ -593,13 +593,13 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$list_id = "list_id_example"; // string | Id of the list -$modified_since = "modified_since_example"; // string | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) +$listId = "listId_example"; // string | Id of the list +$modifiedSince = "modifiedSince_example"; // string | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) $limit = 50; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page try { - $result = $api_instance->getContactsFromList($list_id, $modified_since, $limit, $offset); + $result = $api_instance->getContactsFromList($listId, $modifiedSince, $limit, $offset); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->getContactsFromList: ', $e->getMessage(), PHP_EOL; @@ -611,14 +611,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | - **modified_since** | **string**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional] + **listId** | **string**| Id of the list | + **modifiedSince** | **string**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional] **limit** | **int**| Number of documents per page | [optional] [default to 50] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] ### Return type -[**\Swagger\Client\Model\InlineResponse20014**](../Model/InlineResponse20014.md) +[**\Swagger\Client\Model\GetContacts**](../Model/GetContacts.md) ### Authorization @@ -632,7 +632,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getFolder** -> \Swagger\Client\Model\InlineResponse20017Folders getFolder($folder_id) +> \Swagger\Client\Model\GetFolder getFolder($folderId) Returns folder details @@ -645,10 +645,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$folder_id = "folder_id_example"; // string | id of the folder +$folderId = "folderId_example"; // string | id of the folder try { - $result = $api_instance->getFolder($folder_id); + $result = $api_instance->getFolder($folderId); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->getFolder: ', $e->getMessage(), PHP_EOL; @@ -660,11 +660,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| id of the folder | + **folderId** | **string**| id of the folder | ### Return type -[**\Swagger\Client\Model\InlineResponse20017Folders**](../Model/InlineResponse20017Folders.md) +[**\Swagger\Client\Model\GetFolder**](../Model/GetFolder.md) ### Authorization @@ -678,7 +678,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getFolderLists** -> \Swagger\Client\Model\InlineResponse20018 getFolderLists($folder_id, $limit, $offset) +> \Swagger\Client\Model\GetFolderLists getFolderLists($folderId, $limit, $offset) Get the lists in a folder @@ -691,12 +691,12 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$folder_id = "folder_id_example"; // string | Id of the folder +$folderId = "folderId_example"; // string | Id of the folder $limit = 10; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page try { - $result = $api_instance->getFolderLists($folder_id, $limit, $offset); + $result = $api_instance->getFolderLists($folderId, $limit, $offset); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->getFolderLists: ', $e->getMessage(), PHP_EOL; @@ -708,13 +708,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| Id of the folder | + **folderId** | **string**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] ### Return type -[**\Swagger\Client\Model\InlineResponse20018**](../Model/InlineResponse20018.md) +[**\Swagger\Client\Model\GetFolderLists**](../Model/GetFolderLists.md) ### Authorization @@ -728,7 +728,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getFolders** -> \Swagger\Client\Model\InlineResponse20017 getFolders($limit, $offset) +> \Swagger\Client\Model\GetFolders getFolders($limit, $offset) Get all the folders @@ -762,7 +762,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20017**](../Model/InlineResponse20017.md) +[**\Swagger\Client\Model\GetFolders**](../Model/GetFolders.md) ### Authorization @@ -776,7 +776,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getList** -> \Swagger\Client\Model\InlineResponse20020 getList($list_id) +> \Swagger\Client\Model\GetExtendedList getList($listId) Get the details of a list @@ -789,10 +789,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$list_id = "list_id_example"; // string | Id of the list +$listId = "listId_example"; // string | Id of the list try { - $result = $api_instance->getList($list_id); + $result = $api_instance->getList($listId); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->getList: ', $e->getMessage(), PHP_EOL; @@ -804,11 +804,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | + **listId** | **string**| Id of the list | ### Return type -[**\Swagger\Client\Model\InlineResponse20020**](../Model/InlineResponse20020.md) +[**\Swagger\Client\Model\GetExtendedList**](../Model/GetExtendedList.md) ### Authorization @@ -822,7 +822,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getLists** -> \Swagger\Client\Model\InlineResponse20019 getLists($limit, $offset) +> \Swagger\Client\Model\GetLists getLists($limit, $offset) Get all the lists @@ -856,7 +856,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20019**](../Model/InlineResponse20019.md) +[**\Swagger\Client\Model\GetLists**](../Model/GetLists.md) ### Authorization @@ -870,7 +870,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **importContacts** -> \Swagger\Client\Model\InlineResponse202 importContacts($request_contact_import) +> \Swagger\Client\Model\CreatedProcessId importContacts($requestContactImport) Import contacts @@ -885,10 +885,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$request_contact_import = new \Swagger\Client\Model\RequestContactImport1(); // \Swagger\Client\Model\RequestContactImport1 | Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` +$requestContactImport = new \Swagger\Client\Model\RequestContactImport(); // \Swagger\Client\Model\RequestContactImport | Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` try { - $result = $api_instance->importContacts($request_contact_import); + $result = $api_instance->importContacts($requestContactImport); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->importContacts: ', $e->getMessage(), PHP_EOL; @@ -900,11 +900,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_contact_import** | [**\Swagger\Client\Model\RequestContactImport1**](../Model/RequestContactImport1.md)| Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` | + **requestContactImport** | [**\Swagger\Client\Model\RequestContactImport**](../Model/RequestContactImport.md)| Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` | ### Return type -[**\Swagger\Client\Model\InlineResponse202**](../Model/InlineResponse202.md) +[**\Swagger\Client\Model\CreatedProcessId**](../Model/CreatedProcessId.md) ### Authorization @@ -918,7 +918,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **removeContactToList** -> \Swagger\Client\Model\InlineResponse2014 removeContactToList($list_id, $contact_emails) +> \Swagger\Client\Model\PostContactInfo removeContactToList($listId, $contactEmails) Remove existing contacts from a list @@ -931,11 +931,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$list_id = "list_id_example"; // string | Id of the list -$contact_emails = new \Swagger\Client\Model\ContactEmails1(); // \Swagger\Client\Model\ContactEmails1 | Emails adresses of the contact +$listId = "listId_example"; // string | Id of the list +$contactEmails = new \Swagger\Client\Model\AddRemoveContactToList(); // \Swagger\Client\Model\AddRemoveContactToList | Emails adresses of the contact try { - $result = $api_instance->removeContactToList($list_id, $contact_emails); + $result = $api_instance->removeContactToList($listId, $contactEmails); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->removeContactToList: ', $e->getMessage(), PHP_EOL; @@ -947,12 +947,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | - **contact_emails** | [**\Swagger\Client\Model\ContactEmails1**](../Model/ContactEmails1.md)| Emails adresses of the contact | + **listId** | **string**| Id of the list | + **contactEmails** | [**\Swagger\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails adresses of the contact | ### Return type -[**\Swagger\Client\Model\InlineResponse2014**](../Model/InlineResponse2014.md) +[**\Swagger\Client\Model\PostContactInfo**](../Model/PostContactInfo.md) ### Authorization @@ -966,7 +966,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **requestContactExport** -> \Swagger\Client\Model\InlineResponse202 requestContactExport($request_contact_export) +> \Swagger\Client\Model\CreatedProcessId requestContactExport($requestContactExport) Export contacts @@ -981,10 +981,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$request_contact_export = new \Swagger\Client\Model\RequestContactExport1(); // \Swagger\Client\Model\RequestContactExport1 | Values to request a contact export +$requestContactExport = new \Swagger\Client\Model\RequestContactExport(); // \Swagger\Client\Model\RequestContactExport | Values to request a contact export try { - $result = $api_instance->requestContactExport($request_contact_export); + $result = $api_instance->requestContactExport($requestContactExport); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->requestContactExport: ', $e->getMessage(), PHP_EOL; @@ -996,11 +996,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_contact_export** | [**\Swagger\Client\Model\RequestContactExport1**](../Model/RequestContactExport1.md)| Values to request a contact export | + **requestContactExport** | [**\Swagger\Client\Model\RequestContactExport**](../Model/RequestContactExport.md)| Values to request a contact export | ### Return type -[**\Swagger\Client\Model\InlineResponse202**](../Model/InlineResponse202.md) +[**\Swagger\Client\Model\CreatedProcessId**](../Model/CreatedProcessId.md) ### Authorization @@ -1014,7 +1014,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateContact** -> updateContact($email, $update_contact) +> updateContact($email, $updateContact) Updates a contact @@ -1028,10 +1028,10 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'Y $api_instance = new Swagger\Client\Api\ContactsApi(); $email = "email_example"; // string | Email (urlencoded) of the contact -$update_contact = new \Swagger\Client\Model\UpdateContact1(); // \Swagger\Client\Model\UpdateContact1 | Values to update a contact +$updateContact = new \Swagger\Client\Model\UpdateContact(); // \Swagger\Client\Model\UpdateContact | Values to update a contact try { - $api_instance->updateContact($email, $update_contact); + $api_instance->updateContact($email, $updateContact); } catch (Exception $e) { echo 'Exception when calling ContactsApi->updateContact: ', $e->getMessage(), PHP_EOL; } @@ -1043,7 +1043,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **email** | **string**| Email (urlencoded) of the contact | - **update_contact** | [**\Swagger\Client\Model\UpdateContact1**](../Model/UpdateContact1.md)| Values to update a contact | + **updateContact** | [**\Swagger\Client\Model\UpdateContact**](../Model/UpdateContact.md)| Values to update a contact | ### Return type @@ -1061,7 +1061,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateFolder** -> updateFolder($folder_id, $name) +> updateFolder($folderId, $name) Update a contact folder @@ -1074,11 +1074,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$folder_id = "folder_id_example"; // string | Id of the folder -$name = new \Swagger\Client\Model\Name1(); // \Swagger\Client\Model\Name1 | Name of the folder +$folderId = "folderId_example"; // string | Id of the folder +$name = new \Swagger\Client\Model\CreaUpdateFolder(); // \Swagger\Client\Model\CreaUpdateFolder | Name of the folder try { - $api_instance->updateFolder($folder_id, $name); + $api_instance->updateFolder($folderId, $name); } catch (Exception $e) { echo 'Exception when calling ContactsApi->updateFolder: ', $e->getMessage(), PHP_EOL; } @@ -1089,8 +1089,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| Id of the folder | - **name** | [**\Swagger\Client\Model\Name1**](../Model/Name1.md)| Name of the folder | + **folderId** | **string**| Id of the folder | + **name** | [**\Swagger\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder | ### Return type @@ -1108,7 +1108,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) # **updateList** -> updateList($list_id, $update_list) +> updateList($listId, $updateList) Update a list @@ -1121,11 +1121,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ContactsApi(); -$list_id = "list_id_example"; // string | Id of the list -$update_list = new \Swagger\Client\Model\UpdateList1(); // \Swagger\Client\Model\UpdateList1 | Values to update a list +$listId = "listId_example"; // string | Id of the list +$updateList = new \Swagger\Client\Model\UpdateList(); // \Swagger\Client\Model\UpdateList | Values to update a list try { - $api_instance->updateList($list_id, $update_list); + $api_instance->updateList($listId, $updateList); } catch (Exception $e) { echo 'Exception when calling ContactsApi->updateList: ', $e->getMessage(), PHP_EOL; } @@ -1136,8 +1136,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | - **update_list** | [**\Swagger\Client\Model\UpdateList1**](../Model/UpdateList1.md)| Values to update a list | + **listId** | **string**| Id of the list | + **updateList** | [**\Swagger\Client\Model\UpdateList**](../Model/UpdateList.md)| Values to update a list | ### Return type diff --git a/docs/Api/EmailCampaignsApi.md b/docs/Api/EmailCampaignsApi.md old mode 100755 new mode 100644 index 7c725e46..3a5c6726 --- a/docs/Api/EmailCampaignsApi.md +++ b/docs/Api/EmailCampaignsApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **createEmailCampaign** -> \Swagger\Client\Model\InlineResponse201 createEmailCampaign($email_campaigns) +> \Swagger\Client\Model\CreateModel createEmailCampaign($emailCampaigns) Create an email campaign @@ -30,10 +30,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$email_campaigns = new \Swagger\Client\Model\EmailCampaigns(); // \Swagger\Client\Model\EmailCampaigns | Values to create a campaign +$emailCampaigns = new \Swagger\Client\Model\CreateEmailCampaign(); // \Swagger\Client\Model\CreateEmailCampaign | Values to create a campaign try { - $result = $api_instance->createEmailCampaign($email_campaigns); + $result = $api_instance->createEmailCampaign($emailCampaigns); print_r($result); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->createEmailCampaign: ', $e->getMessage(), PHP_EOL; @@ -45,11 +45,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email_campaigns** | [**\Swagger\Client\Model\EmailCampaigns**](../Model/EmailCampaigns.md)| Values to create a campaign | + **emailCampaigns** | [**\Swagger\Client\Model\CreateEmailCampaign**](../Model/CreateEmailCampaign.md)| Values to create a campaign | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -63,7 +63,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteEmailCampaigns** -> deleteEmailCampaigns($campaign_id) +> deleteEmailCampaigns($campaignId) Delete an email campaign @@ -76,10 +76,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | id of the campaign +$campaignId = "campaignId_example"; // string | id of the campaign try { - $api_instance->deleteEmailCampaigns($campaign_id); + $api_instance->deleteEmailCampaigns($campaignId); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->deleteEmailCampaigns: ', $e->getMessage(), PHP_EOL; } @@ -90,7 +90,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| id of the campaign | + **campaignId** | **string**| id of the campaign | ### Return type @@ -108,7 +108,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) # **emailExportRecipients** -> \Swagger\Client\Model\InlineResponse202 emailExportRecipients($campaign_id, $recipient_export) +> \Swagger\Client\Model\CreatedProcessId emailExportRecipients($campaignId, $recipientExport) Export the recipients of a campaign @@ -121,11 +121,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | Id of the campaign -$recipient_export = new \Swagger\Client\Model\RecipientExport(); // \Swagger\Client\Model\RecipientExport | Values to send for a recipient export request +$campaignId = "campaignId_example"; // string | Id of the campaign +$recipientExport = new \Swagger\Client\Model\EmailExportRecipients(); // \Swagger\Client\Model\EmailExportRecipients | Values to send for a recipient export request try { - $result = $api_instance->emailExportRecipients($campaign_id, $recipient_export); + $result = $api_instance->emailExportRecipients($campaignId, $recipientExport); print_r($result); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->emailExportRecipients: ', $e->getMessage(), PHP_EOL; @@ -137,12 +137,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| Id of the campaign | - **recipient_export** | [**\Swagger\Client\Model\RecipientExport**](../Model/RecipientExport.md)| Values to send for a recipient export request | [optional] + **campaignId** | **string**| Id of the campaign | + **recipientExport** | [**\Swagger\Client\Model\EmailExportRecipients**](../Model/EmailExportRecipients.md)| Values to send for a recipient export request | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse202**](../Model/InlineResponse202.md) +[**\Swagger\Client\Model\CreatedProcessId**](../Model/CreatedProcessId.md) ### Authorization @@ -156,7 +156,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getEmailCampaign** -> \Swagger\Client\Model\InlineResponse2008Campaigns getEmailCampaign($campaign_id) +> \Swagger\Client\Model\GetEmailCampaign getEmailCampaign($campaignId) Get campaign informations @@ -169,10 +169,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | Id of the campaign +$campaignId = "campaignId_example"; // string | Id of the campaign try { - $result = $api_instance->getEmailCampaign($campaign_id); + $result = $api_instance->getEmailCampaign($campaignId); print_r($result); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->getEmailCampaign: ', $e->getMessage(), PHP_EOL; @@ -184,11 +184,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| Id of the campaign | + **campaignId** | **string**| Id of the campaign | ### Return type -[**\Swagger\Client\Model\InlineResponse2008Campaigns**](../Model/InlineResponse2008Campaigns.md) +[**\Swagger\Client\Model\GetEmailCampaign**](../Model/GetEmailCampaign.md) ### Authorization @@ -202,7 +202,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getEmailCampaigns** -> \Swagger\Client\Model\InlineResponse2008 getEmailCampaigns($type, $status, $limit, $offset) +> \Swagger\Client\Model\GetEmailCampaigns getEmailCampaigns($type, $status, $limit, $offset) Return all your created campaigns @@ -240,7 +240,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse2008**](../Model/InlineResponse2008.md) +[**\Swagger\Client\Model\GetEmailCampaigns**](../Model/GetEmailCampaigns.md) ### Authorization @@ -254,7 +254,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **sendEmailCampaignNow** -> sendEmailCampaignNow($campaign_id) +> sendEmailCampaignNow($campaignId) Send an email campaign id of the campaign immediately @@ -267,10 +267,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | Id of the campaign +$campaignId = "campaignId_example"; // string | Id of the campaign try { - $api_instance->sendEmailCampaignNow($campaign_id); + $api_instance->sendEmailCampaignNow($campaignId); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->sendEmailCampaignNow: ', $e->getMessage(), PHP_EOL; } @@ -281,7 +281,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| Id of the campaign | + **campaignId** | **string**| Id of the campaign | ### Return type @@ -299,7 +299,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) # **sendReport** -> sendReport($campaign_id, $send_report) +> sendReport($campaignId, $sendReport) Send the report of a campaigns @@ -314,11 +314,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | Id of the campaign -$send_report = new \Swagger\Client\Model\SendReport1(); // \Swagger\Client\Model\SendReport1 | Values for send a report +$campaignId = "campaignId_example"; // string | Id of the campaign +$sendReport = new \Swagger\Client\Model\SendReport(); // \Swagger\Client\Model\SendReport | Values for send a report try { - $api_instance->sendReport($campaign_id, $send_report); + $api_instance->sendReport($campaignId, $sendReport); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->sendReport: ', $e->getMessage(), PHP_EOL; } @@ -329,8 +329,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| Id of the campaign | - **send_report** | [**\Swagger\Client\Model\SendReport1**](../Model/SendReport1.md)| Values for send a report | + **campaignId** | **string**| Id of the campaign | + **sendReport** | [**\Swagger\Client\Model\SendReport**](../Model/SendReport.md)| Values for send a report | ### Return type @@ -348,7 +348,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) # **sendTestEmail** -> sendTestEmail($campaign_id, $email_to) +> sendTestEmail($campaignId, $emailTo) Send an email campaign to your test list @@ -361,11 +361,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | Id of the campaign -$email_to = new \Swagger\Client\Model\EmailTo(); // \Swagger\Client\Model\EmailTo | +$campaignId = "campaignId_example"; // string | Id of the campaign +$emailTo = new \Swagger\Client\Model\SendTestEmail(); // \Swagger\Client\Model\SendTestEmail | try { - $api_instance->sendTestEmail($campaign_id, $email_to); + $api_instance->sendTestEmail($campaignId, $emailTo); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->sendTestEmail: ', $e->getMessage(), PHP_EOL; } @@ -376,8 +376,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| Id of the campaign | - **email_to** | [**\Swagger\Client\Model\EmailTo**](../Model/EmailTo.md)| | + **campaignId** | **string**| Id of the campaign | + **emailTo** | [**\Swagger\Client\Model\SendTestEmail**](../Model/SendTestEmail.md)| | ### Return type @@ -395,7 +395,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) # **updateCampaignStatus** -> updateCampaignStatus($campaign_id, $status) +> updateCampaignStatus($campaignId, $status) Update a campaign status @@ -408,11 +408,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | Id of the campaign -$status = new \Swagger\Client\Model\Status(); // \Swagger\Client\Model\Status | Status of the campaign +$campaignId = "campaignId_example"; // string | Id of the campaign +$status = new \Swagger\Client\Model\UpdateCampaignStatus(); // \Swagger\Client\Model\UpdateCampaignStatus | Status of the campaign try { - $api_instance->updateCampaignStatus($campaign_id, $status); + $api_instance->updateCampaignStatus($campaignId, $status); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->updateCampaignStatus: ', $e->getMessage(), PHP_EOL; } @@ -423,8 +423,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| Id of the campaign | - **status** | [**\Swagger\Client\Model\Status**](../Model/Status.md)| Status of the campaign | + **campaignId** | **string**| Id of the campaign | + **status** | [**\Swagger\Client\Model\UpdateCampaignStatus**](../Model/UpdateCampaignStatus.md)| Status of the campaign | ### Return type @@ -442,7 +442,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) # **updateEmailCampaigns** -> updateEmailCampaigns($campaign_id, $email_campaign) +> updateEmailCampaigns($campaignId, $emailCampaign) Update a campaign @@ -455,11 +455,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\EmailCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | Id of the campaign -$email_campaign = new \Swagger\Client\Model\EmailCampaign(); // \Swagger\Client\Model\EmailCampaign | Values to update a campaign +$campaignId = "campaignId_example"; // string | Id of the campaign +$emailCampaign = new \Swagger\Client\Model\UpdateEmailCampaign(); // \Swagger\Client\Model\UpdateEmailCampaign | Values to update a campaign try { - $api_instance->updateEmailCampaigns($campaign_id, $email_campaign); + $api_instance->updateEmailCampaigns($campaignId, $emailCampaign); } catch (Exception $e) { echo 'Exception when calling EmailCampaignsApi->updateEmailCampaigns: ', $e->getMessage(), PHP_EOL; } @@ -470,8 +470,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| Id of the campaign | - **email_campaign** | [**\Swagger\Client\Model\EmailCampaign**](../Model/EmailCampaign.md)| Values to update a campaign | + **campaignId** | **string**| Id of the campaign | + **emailCampaign** | [**\Swagger\Client\Model\UpdateEmailCampaign**](../Model/UpdateEmailCampaign.md)| Values to update a campaign | ### Return type diff --git a/docs/Api/FoldersApi.md b/docs/Api/FoldersApi.md old mode 100755 new mode 100644 index d4d5d363..ffb03a51 --- a/docs/Api/FoldersApi.md +++ b/docs/Api/FoldersApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **createFolder** -> \Swagger\Client\Model\InlineResponse201 createFolder($name) +> \Swagger\Client\Model\CreateModel createFolder($name) Create a folder @@ -26,7 +26,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\FoldersApi(); -$name = new \Swagger\Client\Model\Name(); // \Swagger\Client\Model\Name | Name of the folder +$name = new \Swagger\Client\Model\CreaUpdateFolder(); // \Swagger\Client\Model\CreaUpdateFolder | Name of the folder try { $result = $api_instance->createFolder($name); @@ -41,11 +41,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**\Swagger\Client\Model\Name**](../Model/Name.md)| Name of the folder | + **name** | [**\Swagger\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -59,7 +59,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteFolder** -> deleteFolder($folder_id) +> deleteFolder($folderId) Delete a folder (and all its lists) @@ -72,10 +72,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\FoldersApi(); -$folder_id = "folder_id_example"; // string | Id of the folder +$folderId = "folderId_example"; // string | Id of the folder try { - $api_instance->deleteFolder($folder_id); + $api_instance->deleteFolder($folderId); } catch (Exception $e) { echo 'Exception when calling FoldersApi->deleteFolder: ', $e->getMessage(), PHP_EOL; } @@ -86,7 +86,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| Id of the folder | + **folderId** | **string**| Id of the folder | ### Return type @@ -104,7 +104,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) # **getFolder** -> \Swagger\Client\Model\InlineResponse20017Folders getFolder($folder_id) +> \Swagger\Client\Model\GetFolder getFolder($folderId) Returns folder details @@ -117,10 +117,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\FoldersApi(); -$folder_id = "folder_id_example"; // string | id of the folder +$folderId = "folderId_example"; // string | id of the folder try { - $result = $api_instance->getFolder($folder_id); + $result = $api_instance->getFolder($folderId); print_r($result); } catch (Exception $e) { echo 'Exception when calling FoldersApi->getFolder: ', $e->getMessage(), PHP_EOL; @@ -132,11 +132,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| id of the folder | + **folderId** | **string**| id of the folder | ### Return type -[**\Swagger\Client\Model\InlineResponse20017Folders**](../Model/InlineResponse20017Folders.md) +[**\Swagger\Client\Model\GetFolder**](../Model/GetFolder.md) ### Authorization @@ -150,7 +150,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getFolderLists** -> \Swagger\Client\Model\InlineResponse20018 getFolderLists($folder_id, $limit, $offset) +> \Swagger\Client\Model\GetFolderLists getFolderLists($folderId, $limit, $offset) Get the lists in a folder @@ -163,12 +163,12 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\FoldersApi(); -$folder_id = "folder_id_example"; // string | Id of the folder +$folderId = "folderId_example"; // string | Id of the folder $limit = 10; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page try { - $result = $api_instance->getFolderLists($folder_id, $limit, $offset); + $result = $api_instance->getFolderLists($folderId, $limit, $offset); print_r($result); } catch (Exception $e) { echo 'Exception when calling FoldersApi->getFolderLists: ', $e->getMessage(), PHP_EOL; @@ -180,13 +180,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| Id of the folder | + **folderId** | **string**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] ### Return type -[**\Swagger\Client\Model\InlineResponse20018**](../Model/InlineResponse20018.md) +[**\Swagger\Client\Model\GetFolderLists**](../Model/GetFolderLists.md) ### Authorization @@ -200,7 +200,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getFolders** -> \Swagger\Client\Model\InlineResponse20017 getFolders($limit, $offset) +> \Swagger\Client\Model\GetFolders getFolders($limit, $offset) Get all the folders @@ -234,7 +234,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20017**](../Model/InlineResponse20017.md) +[**\Swagger\Client\Model\GetFolders**](../Model/GetFolders.md) ### Authorization @@ -248,7 +248,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateFolder** -> updateFolder($folder_id, $name) +> updateFolder($folderId, $name) Update a contact folder @@ -261,11 +261,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\FoldersApi(); -$folder_id = "folder_id_example"; // string | Id of the folder -$name = new \Swagger\Client\Model\Name1(); // \Swagger\Client\Model\Name1 | Name of the folder +$folderId = "folderId_example"; // string | Id of the folder +$name = new \Swagger\Client\Model\CreaUpdateFolder(); // \Swagger\Client\Model\CreaUpdateFolder | Name of the folder try { - $api_instance->updateFolder($folder_id, $name); + $api_instance->updateFolder($folderId, $name); } catch (Exception $e) { echo 'Exception when calling FoldersApi->updateFolder: ', $e->getMessage(), PHP_EOL; } @@ -276,8 +276,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| Id of the folder | - **name** | [**\Swagger\Client\Model\Name1**](../Model/Name1.md)| Name of the folder | + **folderId** | **string**| Id of the folder | + **name** | [**\Swagger\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder | ### Return type diff --git a/docs/Api/ListsApi.md b/docs/Api/ListsApi.md old mode 100755 new mode 100644 index c9a7b4f5..bf757739 --- a/docs/Api/ListsApi.md +++ b/docs/Api/ListsApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **addContactToList** -> \Swagger\Client\Model\InlineResponse2014 addContactToList($list_id, $contact_emails) +> \Swagger\Client\Model\PostContactInfo addContactToList($listId, $contactEmails) Add existing contacts to a list @@ -29,11 +29,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ListsApi(); -$list_id = "list_id_example"; // string | Id of the list -$contact_emails = new \Swagger\Client\Model\ContactEmails(); // \Swagger\Client\Model\ContactEmails | Emails addresses of the contacts +$listId = "listId_example"; // string | Id of the list +$contactEmails = new \Swagger\Client\Model\AddRemoveContactToList(); // \Swagger\Client\Model\AddRemoveContactToList | Emails addresses of the contacts try { - $result = $api_instance->addContactToList($list_id, $contact_emails); + $result = $api_instance->addContactToList($listId, $contactEmails); print_r($result); } catch (Exception $e) { echo 'Exception when calling ListsApi->addContactToList: ', $e->getMessage(), PHP_EOL; @@ -45,12 +45,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | - **contact_emails** | [**\Swagger\Client\Model\ContactEmails**](../Model/ContactEmails.md)| Emails addresses of the contacts | + **listId** | **string**| Id of the list | + **contactEmails** | [**\Swagger\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails addresses of the contacts | ### Return type -[**\Swagger\Client\Model\InlineResponse2014**](../Model/InlineResponse2014.md) +[**\Swagger\Client\Model\PostContactInfo**](../Model/PostContactInfo.md) ### Authorization @@ -64,7 +64,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **createList** -> \Swagger\Client\Model\InlineResponse201 createList($create_list) +> \Swagger\Client\Model\CreateModel createList($createList) Create a list @@ -77,10 +77,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ListsApi(); -$create_list = new \Swagger\Client\Model\CreateList1(); // \Swagger\Client\Model\CreateList1 | Values to create a list +$createList = new \Swagger\Client\Model\CreateList(); // \Swagger\Client\Model\CreateList | Values to create a list try { - $result = $api_instance->createList($create_list); + $result = $api_instance->createList($createList); print_r($result); } catch (Exception $e) { echo 'Exception when calling ListsApi->createList: ', $e->getMessage(), PHP_EOL; @@ -92,11 +92,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_list** | [**\Swagger\Client\Model\CreateList1**](../Model/CreateList1.md)| Values to create a list | + **createList** | [**\Swagger\Client\Model\CreateList**](../Model/CreateList.md)| Values to create a list | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -110,7 +110,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteList** -> deleteList($list_id) +> deleteList($listId) Delete a list @@ -123,10 +123,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ListsApi(); -$list_id = "list_id_example"; // string | Id of the list +$listId = "listId_example"; // string | Id of the list try { - $api_instance->deleteList($list_id); + $api_instance->deleteList($listId); } catch (Exception $e) { echo 'Exception when calling ListsApi->deleteList: ', $e->getMessage(), PHP_EOL; } @@ -137,7 +137,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | + **listId** | **string**| Id of the list | ### Return type @@ -155,7 +155,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) # **getContactsFromList** -> \Swagger\Client\Model\InlineResponse20014 getContactsFromList($list_id, $modified_since, $limit, $offset) +> \Swagger\Client\Model\GetContacts getContactsFromList($listId, $modifiedSince, $limit, $offset) Get the contacts in a list @@ -168,13 +168,13 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ListsApi(); -$list_id = "list_id_example"; // string | Id of the list -$modified_since = "modified_since_example"; // string | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) +$listId = "listId_example"; // string | Id of the list +$modifiedSince = "modifiedSince_example"; // string | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) $limit = 50; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page try { - $result = $api_instance->getContactsFromList($list_id, $modified_since, $limit, $offset); + $result = $api_instance->getContactsFromList($listId, $modifiedSince, $limit, $offset); print_r($result); } catch (Exception $e) { echo 'Exception when calling ListsApi->getContactsFromList: ', $e->getMessage(), PHP_EOL; @@ -186,14 +186,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | - **modified_since** | **string**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional] + **listId** | **string**| Id of the list | + **modifiedSince** | **string**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional] **limit** | **int**| Number of documents per page | [optional] [default to 50] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] ### Return type -[**\Swagger\Client\Model\InlineResponse20014**](../Model/InlineResponse20014.md) +[**\Swagger\Client\Model\GetContacts**](../Model/GetContacts.md) ### Authorization @@ -207,7 +207,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getFolderLists** -> \Swagger\Client\Model\InlineResponse20018 getFolderLists($folder_id, $limit, $offset) +> \Swagger\Client\Model\GetFolderLists getFolderLists($folderId, $limit, $offset) Get the lists in a folder @@ -220,12 +220,12 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ListsApi(); -$folder_id = "folder_id_example"; // string | Id of the folder +$folderId = "folderId_example"; // string | Id of the folder $limit = 10; // int | Number of documents per page $offset = 0; // int | Index of the first document of the page try { - $result = $api_instance->getFolderLists($folder_id, $limit, $offset); + $result = $api_instance->getFolderLists($folderId, $limit, $offset); print_r($result); } catch (Exception $e) { echo 'Exception when calling ListsApi->getFolderLists: ', $e->getMessage(), PHP_EOL; @@ -237,13 +237,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **string**| Id of the folder | + **folderId** | **string**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] ### Return type -[**\Swagger\Client\Model\InlineResponse20018**](../Model/InlineResponse20018.md) +[**\Swagger\Client\Model\GetFolderLists**](../Model/GetFolderLists.md) ### Authorization @@ -257,7 +257,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getList** -> \Swagger\Client\Model\InlineResponse20020 getList($list_id) +> \Swagger\Client\Model\GetExtendedList getList($listId) Get the details of a list @@ -270,10 +270,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ListsApi(); -$list_id = "list_id_example"; // string | Id of the list +$listId = "listId_example"; // string | Id of the list try { - $result = $api_instance->getList($list_id); + $result = $api_instance->getList($listId); print_r($result); } catch (Exception $e) { echo 'Exception when calling ListsApi->getList: ', $e->getMessage(), PHP_EOL; @@ -285,11 +285,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | + **listId** | **string**| Id of the list | ### Return type -[**\Swagger\Client\Model\InlineResponse20020**](../Model/InlineResponse20020.md) +[**\Swagger\Client\Model\GetExtendedList**](../Model/GetExtendedList.md) ### Authorization @@ -303,7 +303,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getLists** -> \Swagger\Client\Model\InlineResponse20019 getLists($limit, $offset) +> \Swagger\Client\Model\GetLists getLists($limit, $offset) Get all the lists @@ -337,7 +337,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20019**](../Model/InlineResponse20019.md) +[**\Swagger\Client\Model\GetLists**](../Model/GetLists.md) ### Authorization @@ -351,7 +351,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **removeContactToList** -> \Swagger\Client\Model\InlineResponse2014 removeContactToList($list_id, $contact_emails) +> \Swagger\Client\Model\PostContactInfo removeContactToList($listId, $contactEmails) Remove existing contacts from a list @@ -364,11 +364,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ListsApi(); -$list_id = "list_id_example"; // string | Id of the list -$contact_emails = new \Swagger\Client\Model\ContactEmails1(); // \Swagger\Client\Model\ContactEmails1 | Emails adresses of the contact +$listId = "listId_example"; // string | Id of the list +$contactEmails = new \Swagger\Client\Model\AddRemoveContactToList(); // \Swagger\Client\Model\AddRemoveContactToList | Emails adresses of the contact try { - $result = $api_instance->removeContactToList($list_id, $contact_emails); + $result = $api_instance->removeContactToList($listId, $contactEmails); print_r($result); } catch (Exception $e) { echo 'Exception when calling ListsApi->removeContactToList: ', $e->getMessage(), PHP_EOL; @@ -380,12 +380,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | - **contact_emails** | [**\Swagger\Client\Model\ContactEmails1**](../Model/ContactEmails1.md)| Emails adresses of the contact | + **listId** | **string**| Id of the list | + **contactEmails** | [**\Swagger\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails adresses of the contact | ### Return type -[**\Swagger\Client\Model\InlineResponse2014**](../Model/InlineResponse2014.md) +[**\Swagger\Client\Model\PostContactInfo**](../Model/PostContactInfo.md) ### Authorization @@ -399,7 +399,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateList** -> updateList($list_id, $update_list) +> updateList($listId, $updateList) Update a list @@ -412,11 +412,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ListsApi(); -$list_id = "list_id_example"; // string | Id of the list -$update_list = new \Swagger\Client\Model\UpdateList1(); // \Swagger\Client\Model\UpdateList1 | Values to update a list +$listId = "listId_example"; // string | Id of the list +$updateList = new \Swagger\Client\Model\UpdateList(); // \Swagger\Client\Model\UpdateList | Values to update a list try { - $api_instance->updateList($list_id, $update_list); + $api_instance->updateList($listId, $updateList); } catch (Exception $e) { echo 'Exception when calling ListsApi->updateList: ', $e->getMessage(), PHP_EOL; } @@ -427,8 +427,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **string**| Id of the list | - **update_list** | [**\Swagger\Client\Model\UpdateList1**](../Model/UpdateList1.md)| Values to update a list | + **listId** | **string**| Id of the list | + **updateList** | [**\Swagger\Client\Model\UpdateList**](../Model/UpdateList.md)| Values to update a list | ### Return type diff --git a/docs/Api/ProcessApi.md b/docs/Api/ProcessApi.md old mode 100755 new mode 100644 index 22252354..e1268a1d --- a/docs/Api/ProcessApi.md +++ b/docs/Api/ProcessApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **getProcess** -> \Swagger\Client\Model\InlineResponse2007Processes getProcess($process_id) +> \Swagger\Client\Model\GetProcess getProcess($processId) Return the informations for a process @@ -22,10 +22,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ProcessApi(); -$process_id = "process_id_example"; // string | Id of the process +$processId = "processId_example"; // string | Id of the process try { - $result = $api_instance->getProcess($process_id); + $result = $api_instance->getProcess($processId); print_r($result); } catch (Exception $e) { echo 'Exception when calling ProcessApi->getProcess: ', $e->getMessage(), PHP_EOL; @@ -37,11 +37,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **process_id** | **string**| Id of the process | + **processId** | **string**| Id of the process | ### Return type -[**\Swagger\Client\Model\InlineResponse2007Processes**](../Model/InlineResponse2007Processes.md) +[**\Swagger\Client\Model\GetProcess**](../Model/GetProcess.md) ### Authorization @@ -55,7 +55,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getProcesses** -> \Swagger\Client\Model\InlineResponse2007 getProcesses($limit, $offset) +> \Swagger\Client\Model\GetProcesses getProcesses($limit, $offset) Return all the processes for your account @@ -89,7 +89,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse2007**](../Model/InlineResponse2007.md) +[**\Swagger\Client\Model\GetProcesses**](../Model/GetProcesses.md) ### Authorization diff --git a/docs/Api/ResellerApi.md b/docs/Api/ResellerApi.md old mode 100755 new mode 100644 index b0a4f6a5..2c3c885b --- a/docs/Api/ResellerApi.md +++ b/docs/Api/ResellerApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **addCredits** -> \Swagger\Client\Model\InlineResponse2003 addCredits($child_id, $add_credits) +> \Swagger\Client\Model\RemainingCreditModel addCredits($childId, $addCredits) Add Email and/or SMS credits to a specific child account @@ -29,11 +29,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ResellerApi(); -$child_id = 56; // int | id of reseller's child -$add_credits = new \Swagger\Client\Model\AddCredits1(); // \Swagger\Client\Model\AddCredits1 | Values to post to add credit to a specific child account +$childId = 56; // int | id of reseller's child +$addCredits = new \Swagger\Client\Model\AddCredits(); // \Swagger\Client\Model\AddCredits | Values to post to add credit to a specific child account try { - $result = $api_instance->addCredits($child_id, $add_credits); + $result = $api_instance->addCredits($childId, $addCredits); print_r($result); } catch (Exception $e) { echo 'Exception when calling ResellerApi->addCredits: ', $e->getMessage(), PHP_EOL; @@ -45,12 +45,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | - **add_credits** | [**\Swagger\Client\Model\AddCredits1**](../Model/AddCredits1.md)| Values to post to add credit to a specific child account | + **childId** | **int**| id of reseller's child | + **addCredits** | [**\Swagger\Client\Model\AddCredits**](../Model/AddCredits.md)| Values to post to add credit to a specific child account | ### Return type -[**\Swagger\Client\Model\InlineResponse2003**](../Model/InlineResponse2003.md) +[**\Swagger\Client\Model\RemainingCreditModel**](../Model/RemainingCreditModel.md) ### Authorization @@ -64,7 +64,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **associateIpToChild** -> associateIpToChild($child_id, $ip_id) +> associateIpToChild($childId, $ipId) Associate a dedicated IP to the child @@ -77,11 +77,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ResellerApi(); -$child_id = 56; // int | id of reseller's child -$ip_id = new \Swagger\Client\Model\IpId(); // \Swagger\Client\Model\IpId | IP's id +$childId = 56; // int | id of reseller's child +$ipId = new \Swagger\Client\Model\ManageIp(); // \Swagger\Client\Model\ManageIp | IP's id try { - $api_instance->associateIpToChild($child_id, $ip_id); + $api_instance->associateIpToChild($childId, $ipId); } catch (Exception $e) { echo 'Exception when calling ResellerApi->associateIpToChild: ', $e->getMessage(), PHP_EOL; } @@ -92,8 +92,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | - **ip_id** | [**\Swagger\Client\Model\IpId**](../Model/IpId.md)| IP's id | + **childId** | **int**| id of reseller's child | + **ipId** | [**\Swagger\Client\Model\ManageIp**](../Model/ManageIp.md)| IP's id | ### Return type @@ -111,7 +111,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) # **createResellerChild** -> \Swagger\Client\Model\InlineResponse201 createResellerChild($reseller_child) +> \Swagger\Client\Model\CreateModel createResellerChild($resellerChild) Creates a reseller child @@ -124,10 +124,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ResellerApi(); -$reseller_child = new \Swagger\Client\Model\ResellerChild(); // \Swagger\Client\Model\ResellerChild | reseller child to add +$resellerChild = new \Swagger\Client\Model\CreateChild(); // \Swagger\Client\Model\CreateChild | reseller child to add try { - $result = $api_instance->createResellerChild($reseller_child); + $result = $api_instance->createResellerChild($resellerChild); print_r($result); } catch (Exception $e) { echo 'Exception when calling ResellerApi->createResellerChild: ', $e->getMessage(), PHP_EOL; @@ -139,11 +139,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reseller_child** | [**\Swagger\Client\Model\ResellerChild**](../Model/ResellerChild.md)| reseller child to add | [optional] + **resellerChild** | [**\Swagger\Client\Model\CreateChild**](../Model/CreateChild.md)| reseller child to add | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -157,7 +157,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteResellerChild** -> deleteResellerChild($child_id) +> deleteResellerChild($childId) Deletes a single reseller child based on the childId supplied @@ -170,10 +170,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ResellerApi(); -$child_id = 56; // int | id of reseller's child +$childId = 56; // int | id of reseller's child try { - $api_instance->deleteResellerChild($child_id); + $api_instance->deleteResellerChild($childId); } catch (Exception $e) { echo 'Exception when calling ResellerApi->deleteResellerChild: ', $e->getMessage(), PHP_EOL; } @@ -184,7 +184,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | + **childId** | **int**| id of reseller's child | ### Return type @@ -202,7 +202,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) # **dissociateIpFromChild** -> dissociateIpFromChild($child_id, $ip_id) +> dissociateIpFromChild($childId, $ipId) Dissociate a dedicated IP to the child @@ -215,11 +215,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ResellerApi(); -$child_id = 56; // int | id of reseller's child -$ip_id = new \Swagger\Client\Model\IpId1(); // \Swagger\Client\Model\IpId1 | IP's id +$childId = 56; // int | id of reseller's child +$ipId = new \Swagger\Client\Model\ManageIp(); // \Swagger\Client\Model\ManageIp | IP's id try { - $api_instance->dissociateIpFromChild($child_id, $ip_id); + $api_instance->dissociateIpFromChild($childId, $ipId); } catch (Exception $e) { echo 'Exception when calling ResellerApi->dissociateIpFromChild: ', $e->getMessage(), PHP_EOL; } @@ -230,8 +230,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | - **ip_id** | [**\Swagger\Client\Model\IpId1**](../Model/IpId1.md)| IP's id | + **childId** | **int**| id of reseller's child | + **ipId** | [**\Swagger\Client\Model\ManageIp**](../Model/ManageIp.md)| IP's id | ### Return type @@ -249,7 +249,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) # **getChildInfo** -> \Swagger\Client\Model\InlineResponse2002 getChildInfo($child_id) +> \Swagger\Client\Model\GetChildInfo getChildInfo($childId) Gets the info about a specific child account @@ -262,10 +262,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ResellerApi(); -$child_id = 56; // int | id of reseller's child +$childId = 56; // int | id of reseller's child try { - $result = $api_instance->getChildInfo($child_id); + $result = $api_instance->getChildInfo($childId); print_r($result); } catch (Exception $e) { echo 'Exception when calling ResellerApi->getChildInfo: ', $e->getMessage(), PHP_EOL; @@ -277,11 +277,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | + **childId** | **int**| id of reseller's child | ### Return type -[**\Swagger\Client\Model\InlineResponse2002**](../Model/InlineResponse2002.md) +[**\Swagger\Client\Model\GetChildInfo**](../Model/GetChildInfo.md) ### Authorization @@ -295,7 +295,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getResellerChilds** -> \Swagger\Client\Model\InlineResponse2001 getResellerChilds() +> \Swagger\Client\Model\GetChildrenList getResellerChilds() Gets the list of all reseller's children accounts @@ -323,7 +323,7 @@ This endpoint does not need any parameter. ### Return type -[**\Swagger\Client\Model\InlineResponse2001**](../Model/InlineResponse2001.md) +[**\Swagger\Client\Model\GetChildrenList**](../Model/GetChildrenList.md) ### Authorization @@ -337,7 +337,7 @@ This endpoint does not need any parameter. [[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) # **removeCredits** -> \Swagger\Client\Model\InlineResponse2003 removeCredits($child_id, $remove_credits) +> \Swagger\Client\Model\RemainingCreditModel removeCredits($childId, $removeCredits) Remove Email and/or SMS credits from a specific child account @@ -350,11 +350,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ResellerApi(); -$child_id = 56; // int | id of reseller's child -$remove_credits = new \Swagger\Client\Model\RemoveCredits1(); // \Swagger\Client\Model\RemoveCredits1 | Values to post to remove email or SMS credits from a specific child account +$childId = 56; // int | id of reseller's child +$removeCredits = new \Swagger\Client\Model\RemoveCredits(); // \Swagger\Client\Model\RemoveCredits | Values to post to remove email or SMS credits from a specific child account try { - $result = $api_instance->removeCredits($child_id, $remove_credits); + $result = $api_instance->removeCredits($childId, $removeCredits); print_r($result); } catch (Exception $e) { echo 'Exception when calling ResellerApi->removeCredits: ', $e->getMessage(), PHP_EOL; @@ -366,12 +366,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | - **remove_credits** | [**\Swagger\Client\Model\RemoveCredits1**](../Model/RemoveCredits1.md)| Values to post to remove email or SMS credits from a specific child account | + **childId** | **int**| id of reseller's child | + **removeCredits** | [**\Swagger\Client\Model\RemoveCredits**](../Model/RemoveCredits.md)| Values to post to remove email or SMS credits from a specific child account | ### Return type -[**\Swagger\Client\Model\InlineResponse2003**](../Model/InlineResponse2003.md) +[**\Swagger\Client\Model\RemainingCreditModel**](../Model/RemainingCreditModel.md) ### Authorization @@ -385,7 +385,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateResellerChild** -> updateResellerChild($child_id, $reseller_child) +> updateResellerChild($childId, $resellerChild) Updates infos of reseller's child based on the childId supplied @@ -398,11 +398,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\ResellerApi(); -$child_id = 56; // int | id of reseller's child -$reseller_child = new \Swagger\Client\Model\ResellerChild1(); // \Swagger\Client\Model\ResellerChild1 | values to update in child profile +$childId = 56; // int | id of reseller's child +$resellerChild = new \Swagger\Client\Model\UpdateChild(); // \Swagger\Client\Model\UpdateChild | values to update in child profile try { - $api_instance->updateResellerChild($child_id, $reseller_child); + $api_instance->updateResellerChild($childId, $resellerChild); } catch (Exception $e) { echo 'Exception when calling ResellerApi->updateResellerChild: ', $e->getMessage(), PHP_EOL; } @@ -413,8 +413,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | - **reseller_child** | [**\Swagger\Client\Model\ResellerChild1**](../Model/ResellerChild1.md)| values to update in child profile | + **childId** | **int**| id of reseller's child | + **resellerChild** | [**\Swagger\Client\Model\UpdateChild**](../Model/UpdateChild.md)| values to update in child profile | ### Return type diff --git a/docs/Api/SMSCampaignsApi.md b/docs/Api/SMSCampaignsApi.md old mode 100755 new mode 100644 index e1f30c90..127c25d4 --- a/docs/Api/SMSCampaignsApi.md +++ b/docs/Api/SMSCampaignsApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **createSMSCampaign** -> \Swagger\Client\Model\InlineResponse201 createSMSCampaign($create_sms_campaign) +> \Swagger\Client\Model\CreateModel createSMSCampaign($createSmsCampaign) Creates a SMS campaign @@ -30,10 +30,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$create_sms_campaign = new \Swagger\Client\Model\CreateSmsCampaign1(); // \Swagger\Client\Model\CreateSmsCampaign1 | Values to create an SMS Campaign +$createSmsCampaign = new \Swagger\Client\Model\CreateSmsCampaign(); // \Swagger\Client\Model\CreateSmsCampaign | Values to create an SMS Campaign try { - $result = $api_instance->createSMSCampaign($create_sms_campaign); + $result = $api_instance->createSMSCampaign($createSmsCampaign); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->createSMSCampaign: ', $e->getMessage(), PHP_EOL; @@ -45,11 +45,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_sms_campaign** | [**\Swagger\Client\Model\CreateSmsCampaign1**](../Model/CreateSmsCampaign1.md)| Values to create an SMS Campaign | + **createSmsCampaign** | [**\Swagger\Client\Model\CreateSmsCampaign**](../Model/CreateSmsCampaign.md)| Values to create an SMS Campaign | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -63,7 +63,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteSMSCampaigns** -> deleteSMSCampaigns($campaign_id) +> deleteSMSCampaigns($campaignId) Delete the SMS campaign @@ -76,10 +76,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | id of the SMS campaign +$campaignId = "campaignId_example"; // string | id of the SMS campaign try { - $api_instance->deleteSMSCampaigns($campaign_id); + $api_instance->deleteSMSCampaigns($campaignId); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->deleteSMSCampaigns: ', $e->getMessage(), PHP_EOL; } @@ -90,7 +90,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| id of the SMS campaign | + **campaignId** | **string**| id of the SMS campaign | ### Return type @@ -108,7 +108,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) # **getSMSCampaigns** -> \Swagger\Client\Model\InlineResponse20021 getSMSCampaigns($status, $limit, $offset) +> \Swagger\Client\Model\GetSmsCampaigns getSMSCampaigns($status, $limit, $offset) Returns the informations for all your created SMS campaigns @@ -144,7 +144,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20021**](../Model/InlineResponse20021.md) +[**\Swagger\Client\Model\GetSmsCampaigns**](../Model/GetSmsCampaigns.md) ### Authorization @@ -158,7 +158,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSmsCampaign** -> \Swagger\Client\Model\InlineResponse20021Campaigns getSmsCampaign($campaign_id, $get_sms_campaign) +> \Swagger\Client\Model\GetSmsCampaign getSmsCampaign($campaignId, $getSmsCampaign) Get a SMS campaign @@ -171,11 +171,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | id of the SMS campaign -$get_sms_campaign = new \Swagger\Client\Model\GetSmsCampaign1(); // \Swagger\Client\Model\GetSmsCampaign1 | Values to update an SMS Campaign +$campaignId = "campaignId_example"; // string | id of the SMS campaign +$getSmsCampaign = new \Swagger\Client\Model\GetSmsCampaign(); // \Swagger\Client\Model\GetSmsCampaign | Values to update an SMS Campaign try { - $result = $api_instance->getSmsCampaign($campaign_id, $get_sms_campaign); + $result = $api_instance->getSmsCampaign($campaignId, $getSmsCampaign); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->getSmsCampaign: ', $e->getMessage(), PHP_EOL; @@ -187,12 +187,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| id of the SMS campaign | - **get_sms_campaign** | [**\Swagger\Client\Model\GetSmsCampaign1**](../Model/GetSmsCampaign1.md)| Values to update an SMS Campaign | + **campaignId** | **string**| id of the SMS campaign | + **getSmsCampaign** | [**\Swagger\Client\Model\GetSmsCampaign**](../Model/GetSmsCampaign.md)| Values to update an SMS Campaign | ### Return type -[**\Swagger\Client\Model\InlineResponse20021Campaigns**](../Model/InlineResponse20021Campaigns.md) +[**\Swagger\Client\Model\GetSmsCampaign**](../Model/GetSmsCampaign.md) ### Authorization @@ -206,7 +206,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **requestSMSRecipientExport** -> \Swagger\Client\Model\InlineResponse202 requestSMSRecipientExport($campaign_id, $recipient_export) +> \Swagger\Client\Model\CreatedProcessId requestSMSRecipientExport($campaignId, $recipientExport) Exports the recipients of the specified campaign. @@ -221,11 +221,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | id of the campaign -$recipient_export = new \Swagger\Client\Model\RecipientExport1(); // \Swagger\Client\Model\RecipientExport1 | Values to send for a recipient export request +$campaignId = "campaignId_example"; // string | id of the campaign +$recipientExport = new \Swagger\Client\Model\RequestSMSRecipientExport(); // \Swagger\Client\Model\RequestSMSRecipientExport | Values to send for a recipient export request try { - $result = $api_instance->requestSMSRecipientExport($campaign_id, $recipient_export); + $result = $api_instance->requestSMSRecipientExport($campaignId, $recipientExport); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->requestSMSRecipientExport: ', $e->getMessage(), PHP_EOL; @@ -237,12 +237,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| id of the campaign | - **recipient_export** | [**\Swagger\Client\Model\RecipientExport1**](../Model/RecipientExport1.md)| Values to send for a recipient export request | [optional] + **campaignId** | **string**| id of the campaign | + **recipientExport** | [**\Swagger\Client\Model\RequestSMSRecipientExport**](../Model/RequestSMSRecipientExport.md)| Values to send for a recipient export request | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse202**](../Model/InlineResponse202.md) +[**\Swagger\Client\Model\CreatedProcessId**](../Model/CreatedProcessId.md) ### Authorization @@ -256,7 +256,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **sendSMSCampaignNow** -> sendSMSCampaignNow($campaign_id) +> sendSMSCampaignNow($campaignId) Send your SMS campaign immediately @@ -269,10 +269,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | id of the campaign +$campaignId = "campaignId_example"; // string | id of the campaign try { - $api_instance->sendSMSCampaignNow($campaign_id); + $api_instance->sendSMSCampaignNow($campaignId); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->sendSMSCampaignNow: ', $e->getMessage(), PHP_EOL; } @@ -283,7 +283,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| id of the campaign | + **campaignId** | **string**| id of the campaign | ### Return type @@ -301,7 +301,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) # **sendSMSReport** -> sendSMSReport($campaign_id, $send_report) +> sendSMSReport($campaignId, $sendReport) Send report of SMS campaigns @@ -316,11 +316,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | id of the campaign -$send_report = new \Swagger\Client\Model\SendReport2(); // \Swagger\Client\Model\SendReport2 | Values for send a report +$campaignId = "campaignId_example"; // string | id of the campaign +$sendReport = new \Swagger\Client\Model\SendReport(); // \Swagger\Client\Model\SendReport | Values for send a report try { - $api_instance->sendSMSReport($campaign_id, $send_report); + $api_instance->sendSMSReport($campaignId, $sendReport); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->sendSMSReport: ', $e->getMessage(), PHP_EOL; } @@ -331,8 +331,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| id of the campaign | - **send_report** | [**\Swagger\Client\Model\SendReport2**](../Model/SendReport2.md)| Values for send a report | + **campaignId** | **string**| id of the campaign | + **sendReport** | [**\Swagger\Client\Model\SendReport**](../Model/SendReport.md)| Values for send a report | ### Return type @@ -350,7 +350,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) # **sendTestSms** -> sendTestSms($campaign_id, $send_test_sms) +> sendTestSms($campaignId, $sendTestSms) Send an SMS @@ -363,11 +363,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | Id of the SMS campaign -$send_test_sms = new \Swagger\Client\Model\SendTestSms1(); // \Swagger\Client\Model\SendTestSms1 | Mobile number to which send the test +$campaignId = "campaignId_example"; // string | Id of the SMS campaign +$sendTestSms = new \Swagger\Client\Model\SendTestSms(); // \Swagger\Client\Model\SendTestSms | Mobile number to which send the test try { - $api_instance->sendTestSms($campaign_id, $send_test_sms); + $api_instance->sendTestSms($campaignId, $sendTestSms); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->sendTestSms: ', $e->getMessage(), PHP_EOL; } @@ -378,8 +378,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| Id of the SMS campaign | - **send_test_sms** | [**\Swagger\Client\Model\SendTestSms1**](../Model/SendTestSms1.md)| Mobile number to which send the test | + **campaignId** | **string**| Id of the SMS campaign | + **sendTestSms** | [**\Swagger\Client\Model\SendTestSms**](../Model/SendTestSms.md)| Mobile number to which send the test | ### Return type @@ -397,7 +397,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) # **updateSMSCampaignStatus** -> updateSMSCampaignStatus($campaign_id, $status) +> updateSMSCampaignStatus($campaignId, $status) Update the campaign status @@ -410,11 +410,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | id of the campaign -$status = new \Swagger\Client\Model\Status1(); // \Swagger\Client\Model\Status1 | Status of the campaign. +$campaignId = "campaignId_example"; // string | id of the campaign +$status = new \Swagger\Client\Model\UpdateCampaignStatus(); // \Swagger\Client\Model\UpdateCampaignStatus | Status of the campaign. try { - $api_instance->updateSMSCampaignStatus($campaign_id, $status); + $api_instance->updateSMSCampaignStatus($campaignId, $status); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->updateSMSCampaignStatus: ', $e->getMessage(), PHP_EOL; } @@ -425,8 +425,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| id of the campaign | - **status** | [**\Swagger\Client\Model\Status1**](../Model/Status1.md)| Status of the campaign. | + **campaignId** | **string**| id of the campaign | + **status** | [**\Swagger\Client\Model\UpdateCampaignStatus**](../Model/UpdateCampaignStatus.md)| Status of the campaign. | ### Return type @@ -444,7 +444,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) # **updateSmsCampaign** -> updateSmsCampaign($campaign_id, $update_sms_campaign) +> updateSmsCampaign($campaignId, $updateSmsCampaign) Updates a SMS campaign @@ -457,11 +457,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMSCampaignsApi(); -$campaign_id = "campaign_id_example"; // string | id of the SMS campaign -$update_sms_campaign = new \Swagger\Client\Model\UpdateSmsCampaign1(); // \Swagger\Client\Model\UpdateSmsCampaign1 | Values to update an SMS Campaign +$campaignId = "campaignId_example"; // string | id of the SMS campaign +$updateSmsCampaign = new \Swagger\Client\Model\UpdateSmsCampaign(); // \Swagger\Client\Model\UpdateSmsCampaign | Values to update an SMS Campaign try { - $api_instance->updateSmsCampaign($campaign_id, $update_sms_campaign); + $api_instance->updateSmsCampaign($campaignId, $updateSmsCampaign); } catch (Exception $e) { echo 'Exception when calling SMSCampaignsApi->updateSmsCampaign: ', $e->getMessage(), PHP_EOL; } @@ -472,8 +472,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **string**| id of the SMS campaign | - **update_sms_campaign** | [**\Swagger\Client\Model\UpdateSmsCampaign1**](../Model/UpdateSmsCampaign1.md)| Values to update an SMS Campaign | + **campaignId** | **string**| id of the SMS campaign | + **updateSmsCampaign** | [**\Swagger\Client\Model\UpdateSmsCampaign**](../Model/UpdateSmsCampaign.md)| Values to update an SMS Campaign | ### Return type diff --git a/docs/Api/SMTPApi.md b/docs/Api/SMTPApi.md old mode 100755 new mode 100644 index 5c93349e..26623c27 --- a/docs/Api/SMTPApi.md +++ b/docs/Api/SMTPApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description # **createSmtpTemplate** -> \Swagger\Client\Model\InlineResponse201 createSmtpTemplate($smtp_template) +> \Swagger\Client\Model\CreateModel createSmtpTemplate($smtpTemplate) Create an smtp template @@ -31,10 +31,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$smtp_template = new \Swagger\Client\Model\SmtpTemplate(); // \Swagger\Client\Model\SmtpTemplate | values to update in smtp template +$smtpTemplate = new \Swagger\Client\Model\CreateSmtpTemplate(); // \Swagger\Client\Model\CreateSmtpTemplate | values to update in smtp template try { - $result = $api_instance->createSmtpTemplate($smtp_template); + $result = $api_instance->createSmtpTemplate($smtpTemplate); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMTPApi->createSmtpTemplate: ', $e->getMessage(), PHP_EOL; @@ -46,11 +46,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **smtp_template** | [**\Swagger\Client\Model\SmtpTemplate**](../Model/SmtpTemplate.md)| values to update in smtp template | + **smtpTemplate** | [**\Swagger\Client\Model\CreateSmtpTemplate**](../Model/CreateSmtpTemplate.md)| values to update in smtp template | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -64,7 +64,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteHardbounces** -> deleteHardbounces($delete_hardbounces) +> deleteHardbounces($deleteHardbounces) Delete hardbounces @@ -79,10 +79,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$delete_hardbounces = new \Swagger\Client\Model\DeleteHardbounces1(); // \Swagger\Client\Model\DeleteHardbounces1 | values to delete hardbounces +$deleteHardbounces = new \Swagger\Client\Model\DeleteHardbounces(); // \Swagger\Client\Model\DeleteHardbounces | values to delete hardbounces try { - $api_instance->deleteHardbounces($delete_hardbounces); + $api_instance->deleteHardbounces($deleteHardbounces); } catch (Exception $e) { echo 'Exception when calling SMTPApi->deleteHardbounces: ', $e->getMessage(), PHP_EOL; } @@ -93,7 +93,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **delete_hardbounces** | [**\Swagger\Client\Model\DeleteHardbounces1**](../Model/DeleteHardbounces1.md)| values to delete hardbounces | [optional] + **deleteHardbounces** | [**\Swagger\Client\Model\DeleteHardbounces**](../Model/DeleteHardbounces.md)| values to delete hardbounces | [optional] ### Return type @@ -111,7 +111,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) # **getAggregatedSmtpReport** -> \Swagger\Client\Model\InlineResponse20010 getAggregatedSmtpReport($start_date, $end_date, $days, $tag) +> \Swagger\Client\Model\GetAggregatedReport getAggregatedSmtpReport($startDate, $endDate, $days, $tag) Get your SMTP activity aggregated over a period of time @@ -124,13 +124,13 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$start_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate -$end_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate +$startDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate +$endDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate $days = 56; // int | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' $tag = "tag_example"; // string | Tag of the emails try { - $result = $api_instance->getAggregatedSmtpReport($start_date, $end_date, $days, $tag); + $result = $api_instance->getAggregatedSmtpReport($startDate, $endDate, $days, $tag); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMTPApi->getAggregatedSmtpReport: ', $e->getMessage(), PHP_EOL; @@ -142,14 +142,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_date** | **\DateTime**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] - **end_date** | **\DateTime**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] + **startDate** | **\DateTime**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] + **endDate** | **\DateTime**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] **tag** | **string**| Tag of the emails | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20010**](../Model/InlineResponse20010.md) +[**\Swagger\Client\Model\GetAggregatedReport**](../Model/GetAggregatedReport.md) ### Authorization @@ -163,7 +163,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getEmailEventReport** -> \Swagger\Client\Model\InlineResponse20011 getEmailEventReport($limit, $offset, $start_date, $end_date, $days, $email, $event, $tags, $message_id, $template_id) +> \Swagger\Client\Model\GetEmailEventReport getEmailEventReport($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId) Get all your SMTP activity (unaggregated events) @@ -178,17 +178,17 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'Y $api_instance = new Swagger\Client\Api\SMTPApi(); $limit = 50; // int | Number limitation for the result returned $offset = 0; // int | Beginning point in the list to retrieve from. -$start_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate -$end_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate +$startDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate +$endDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate $days = 56; // int | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' $email = "email_example"; // string | Filter the report for a specific email addresses $event = "event_example"; // string | Filter the report for a specific event type $tags = "tags_example"; // string | Filter the report for tags (serialized and urlencoded array) -$message_id = "message_id_example"; // string | Filter on a specific message id -$template_id = "template_id_example"; // string | Filter on a specific template id +$messageId = "messageId_example"; // string | Filter on a specific message id +$templateId = "templateId_example"; // string | Filter on a specific template id try { - $result = $api_instance->getEmailEventReport($limit, $offset, $start_date, $end_date, $days, $email, $event, $tags, $message_id, $template_id); + $result = $api_instance->getEmailEventReport($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMTPApi->getEmailEventReport: ', $e->getMessage(), PHP_EOL; @@ -202,18 +202,18 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| Number limitation for the result returned | [optional] [default to 50] **offset** | **int**| Beginning point in the list to retrieve from. | [optional] [default to 0] - **start_date** | **\DateTime**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] - **end_date** | **\DateTime**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] + **startDate** | **\DateTime**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] + **endDate** | **\DateTime**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] **email** | **string**| Filter the report for a specific email addresses | [optional] **event** | **string**| Filter the report for a specific event type | [optional] **tags** | **string**| Filter the report for tags (serialized and urlencoded array) | [optional] - **message_id** | **string**| Filter on a specific message id | [optional] - **template_id** | **string**| Filter on a specific template id | [optional] + **messageId** | **string**| Filter on a specific message id | [optional] + **templateId** | **string**| Filter on a specific template id | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20011**](../Model/InlineResponse20011.md) +[**\Swagger\Client\Model\GetEmailEventReport**](../Model/GetEmailEventReport.md) ### Authorization @@ -227,7 +227,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSmtpReport** -> \Swagger\Client\Model\InlineResponse2009 getSmtpReport($limit, $offset, $start_date, $end_date, $days, $tag) +> \Swagger\Client\Model\GetReports getSmtpReport($limit, $offset, $startDate, $endDate, $days, $tag) Get your SMTP activity aggregated per day @@ -242,13 +242,13 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'Y $api_instance = new Swagger\Client\Api\SMTPApi(); $limit = 50; // int | Number of documents returned per page $offset = 0; // int | Index of the first document on the page -$start_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) -$end_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) +$startDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) +$endDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) $days = 56; // int | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' $tag = "tag_example"; // string | Tag of the emails try { - $result = $api_instance->getSmtpReport($limit, $offset, $start_date, $end_date, $days, $tag); + $result = $api_instance->getSmtpReport($limit, $offset, $startDate, $endDate, $days, $tag); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMTPApi->getSmtpReport: ', $e->getMessage(), PHP_EOL; @@ -262,14 +262,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| Number of documents returned per page | [optional] [default to 50] **offset** | **int**| Index of the first document on the page | [optional] [default to 0] - **start_date** | **\DateTime**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) | [optional] - **end_date** | **\DateTime**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) | [optional] + **startDate** | **\DateTime**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) | [optional] + **endDate** | **\DateTime**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) | [optional] **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] **tag** | **string**| Tag of the emails | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse2009**](../Model/InlineResponse2009.md) +[**\Swagger\Client\Model\GetReports**](../Model/GetReports.md) ### Authorization @@ -283,7 +283,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSmtpTemplate** -> \Swagger\Client\Model\InlineResponse20012Templates getSmtpTemplate($template_id) +> \Swagger\Client\Model\GetSmtpTemplateOverview getSmtpTemplate($templateId) Returns the template informations @@ -296,10 +296,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$template_id = "template_id_example"; // string | id of the template +$templateId = "templateId_example"; // string | id of the template try { - $result = $api_instance->getSmtpTemplate($template_id); + $result = $api_instance->getSmtpTemplate($templateId); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMTPApi->getSmtpTemplate: ', $e->getMessage(), PHP_EOL; @@ -311,11 +311,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **string**| id of the template | + **templateId** | **string**| id of the template | ### Return type -[**\Swagger\Client\Model\InlineResponse20012Templates**](../Model/InlineResponse20012Templates.md) +[**\Swagger\Client\Model\GetSmtpTemplateOverview**](../Model/GetSmtpTemplateOverview.md) ### Authorization @@ -329,7 +329,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSmtpTemplates** -> \Swagger\Client\Model\InlineResponse20012 getSmtpTemplates($template_status, $limit, $offset) +> \Swagger\Client\Model\GetSmtpTemplates getSmtpTemplates($templateStatus, $limit, $offset) Get the list of SMTP templates @@ -342,12 +342,12 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$template_status = true; // bool | Filter on the status of the template. Active = true, inactive = false +$templateStatus = true; // bool | Filter on the status of the template. Active = true, inactive = false $limit = 50; // int | Number of documents returned per page $offset = 0; // int | Index of the first document in the page try { - $result = $api_instance->getSmtpTemplates($template_status, $limit, $offset); + $result = $api_instance->getSmtpTemplates($templateStatus, $limit, $offset); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMTPApi->getSmtpTemplates: ', $e->getMessage(), PHP_EOL; @@ -359,13 +359,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_status** | **bool**| Filter on the status of the template. Active = true, inactive = false | [optional] + **templateStatus** | **bool**| Filter on the status of the template. Active = true, inactive = false | [optional] **limit** | **int**| Number of documents returned per page | [optional] [default to 50] **offset** | **int**| Index of the first document in the page | [optional] [default to 0] ### Return type -[**\Swagger\Client\Model\InlineResponse20012**](../Model/InlineResponse20012.md) +[**\Swagger\Client\Model\GetSmtpTemplates**](../Model/GetSmtpTemplates.md) ### Authorization @@ -379,7 +379,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **sendTemplate** -> \Swagger\Client\Model\InlineResponse2012 sendTemplate($template_id, $send_email) +> \Swagger\Client\Model\SendTemplateEmail sendTemplate($templateId, $sendEmail) Send a template @@ -392,11 +392,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$template_id = "template_id_example"; // string | Id of the template -$send_email = new \Swagger\Client\Model\SendEmail1(); // \Swagger\Client\Model\SendEmail1 | +$templateId = "templateId_example"; // string | Id of the template +$sendEmail = new \Swagger\Client\Model\SendEmail(); // \Swagger\Client\Model\SendEmail | try { - $result = $api_instance->sendTemplate($template_id, $send_email); + $result = $api_instance->sendTemplate($templateId, $sendEmail); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMTPApi->sendTemplate: ', $e->getMessage(), PHP_EOL; @@ -408,12 +408,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **string**| Id of the template | - **send_email** | [**\Swagger\Client\Model\SendEmail1**](../Model/SendEmail1.md)| | + **templateId** | **string**| Id of the template | + **sendEmail** | [**\Swagger\Client\Model\SendEmail**](../Model/SendEmail.md)| | ### Return type -[**\Swagger\Client\Model\InlineResponse2012**](../Model/InlineResponse2012.md) +[**\Swagger\Client\Model\SendTemplateEmail**](../Model/SendTemplateEmail.md) ### Authorization @@ -427,7 +427,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **sendTestTemplate** -> sendTestTemplate($template_id, $send_test_email) +> sendTestTemplate($templateId, $sendTestEmail) Send a template to your test list @@ -440,11 +440,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$template_id = "template_id_example"; // string | Id of the template -$send_test_email = new \Swagger\Client\Model\SendTestEmail1(); // \Swagger\Client\Model\SendTestEmail1 | +$templateId = "templateId_example"; // string | Id of the template +$sendTestEmail = new \Swagger\Client\Model\SendTestEmail(); // \Swagger\Client\Model\SendTestEmail | try { - $api_instance->sendTestTemplate($template_id, $send_test_email); + $api_instance->sendTestTemplate($templateId, $sendTestEmail); } catch (Exception $e) { echo 'Exception when calling SMTPApi->sendTestTemplate: ', $e->getMessage(), PHP_EOL; } @@ -455,8 +455,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **string**| Id of the template | - **send_test_email** | [**\Swagger\Client\Model\SendTestEmail1**](../Model/SendTestEmail1.md)| | + **templateId** | **string**| Id of the template | + **sendTestEmail** | [**\Swagger\Client\Model\SendTestEmail**](../Model/SendTestEmail.md)| | ### Return type @@ -474,7 +474,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) # **sendTransacEmail** -> \Swagger\Client\Model\InlineResponse2013 sendTransacEmail($send_smtp_email) +> \Swagger\Client\Model\CreateSmtpEmail sendTransacEmail($sendSmtpEmail) Send a transactional email @@ -487,10 +487,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$send_smtp_email = new \Swagger\Client\Model\SendSmtpEmail1(); // \Swagger\Client\Model\SendSmtpEmail1 | Values to send a transactional email +$sendSmtpEmail = new \Swagger\Client\Model\SendSmtpEmail(); // \Swagger\Client\Model\SendSmtpEmail | Values to send a transactional email try { - $result = $api_instance->sendTransacEmail($send_smtp_email); + $result = $api_instance->sendTransacEmail($sendSmtpEmail); print_r($result); } catch (Exception $e) { echo 'Exception when calling SMTPApi->sendTransacEmail: ', $e->getMessage(), PHP_EOL; @@ -502,11 +502,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **send_smtp_email** | [**\Swagger\Client\Model\SendSmtpEmail1**](../Model/SendSmtpEmail1.md)| Values to send a transactional email | + **sendSmtpEmail** | [**\Swagger\Client\Model\SendSmtpEmail**](../Model/SendSmtpEmail.md)| Values to send a transactional email | ### Return type -[**\Swagger\Client\Model\InlineResponse2013**](../Model/InlineResponse2013.md) +[**\Swagger\Client\Model\CreateSmtpEmail**](../Model/CreateSmtpEmail.md) ### Authorization @@ -520,7 +520,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateSmtpTemplate** -> updateSmtpTemplate($template_id, $smtp_template) +> updateSmtpTemplate($templateId, $smtpTemplate) Updates an smtp templates @@ -533,11 +533,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SMTPApi(); -$template_id = "template_id_example"; // string | id of the template -$smtp_template = new \Swagger\Client\Model\SmtpTemplate1(); // \Swagger\Client\Model\SmtpTemplate1 | values to update in smtp template +$templateId = "templateId_example"; // string | id of the template +$smtpTemplate = new \Swagger\Client\Model\UpdateSmtpTemplate(); // \Swagger\Client\Model\UpdateSmtpTemplate | values to update in smtp template try { - $api_instance->updateSmtpTemplate($template_id, $smtp_template); + $api_instance->updateSmtpTemplate($templateId, $smtpTemplate); } catch (Exception $e) { echo 'Exception when calling SMTPApi->updateSmtpTemplate: ', $e->getMessage(), PHP_EOL; } @@ -548,8 +548,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **string**| id of the template | - **smtp_template** | [**\Swagger\Client\Model\SmtpTemplate1**](../Model/SmtpTemplate1.md)| values to update in smtp template | + **templateId** | **string**| id of the template | + **smtpTemplate** | [**\Swagger\Client\Model\UpdateSmtpTemplate**](../Model/UpdateSmtpTemplate.md)| values to update in smtp template | ### Return type diff --git a/docs/Api/SendersApi.md b/docs/Api/SendersApi.md old mode 100755 new mode 100644 index cdf2585d..950d8257 --- a/docs/Api/SendersApi.md +++ b/docs/Api/SendersApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **createSender** -> \Swagger\Client\Model\InlineResponse2011 createSender($sender) +> \Swagger\Client\Model\CreateSenderModel createSender($sender) Create a new sender @@ -26,7 +26,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SendersApi(); -$sender = new \Swagger\Client\Model\Sender(); // \Swagger\Client\Model\Sender | sender's name +$sender = new \Swagger\Client\Model\CreateSender(); // \Swagger\Client\Model\CreateSender | sender's name try { $result = $api_instance->createSender($sender); @@ -41,11 +41,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender** | [**\Swagger\Client\Model\Sender**](../Model/Sender.md)| sender's name | [optional] + **sender** | [**\Swagger\Client\Model\CreateSender**](../Model/CreateSender.md)| sender's name | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse2011**](../Model/InlineResponse2011.md) +[**\Swagger\Client\Model\CreateSenderModel**](../Model/CreateSenderModel.md) ### Authorization @@ -59,7 +59,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteSender** -> deleteSender($sender_id) +> deleteSender($senderId) Delete a sender @@ -72,10 +72,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SendersApi(); -$sender_id = "sender_id_example"; // string | Id of the sender +$senderId = "senderId_example"; // string | Id of the sender try { - $api_instance->deleteSender($sender_id); + $api_instance->deleteSender($senderId); } catch (Exception $e) { echo 'Exception when calling SendersApi->deleteSender: ', $e->getMessage(), PHP_EOL; } @@ -86,7 +86,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **string**| Id of the sender | + **senderId** | **string**| Id of the sender | ### Return type @@ -104,7 +104,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) # **getIps** -> \Swagger\Client\Model\InlineResponse2006 getIps() +> \Swagger\Client\Model\GetIps getIps() Return all the dedicated IPs for your account @@ -132,7 +132,7 @@ This endpoint does not need any parameter. ### Return type -[**\Swagger\Client\Model\InlineResponse2006**](../Model/InlineResponse2006.md) +[**\Swagger\Client\Model\GetIps**](../Model/GetIps.md) ### Authorization @@ -146,7 +146,7 @@ This endpoint does not need any parameter. [[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) # **getIpsFromSender** -> \Swagger\Client\Model\InlineResponse2005 getIpsFromSender($sender_id) +> \Swagger\Client\Model\GetIpsFromSender getIpsFromSender($senderId) Return all the dedicated IPs for a sender @@ -159,10 +159,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SendersApi(); -$sender_id = "sender_id_example"; // string | Id of the sender +$senderId = "senderId_example"; // string | Id of the sender try { - $result = $api_instance->getIpsFromSender($sender_id); + $result = $api_instance->getIpsFromSender($senderId); print_r($result); } catch (Exception $e) { echo 'Exception when calling SendersApi->getIpsFromSender: ', $e->getMessage(), PHP_EOL; @@ -174,11 +174,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **string**| Id of the sender | + **senderId** | **string**| Id of the sender | ### Return type -[**\Swagger\Client\Model\InlineResponse2005**](../Model/InlineResponse2005.md) +[**\Swagger\Client\Model\GetIpsFromSender**](../Model/GetIpsFromSender.md) ### Authorization @@ -192,7 +192,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSenders** -> \Swagger\Client\Model\InlineResponse2004 getSenders($ip, $domain) +> \Swagger\Client\Model\GetSendersList getSenders($ip, $domain) Get the list of all your senders @@ -226,7 +226,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse2004**](../Model/InlineResponse2004.md) +[**\Swagger\Client\Model\GetSendersList**](../Model/GetSendersList.md) ### Authorization @@ -240,7 +240,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateSender** -> updateSender($sender_id, $sender) +> updateSender($senderId, $sender) Update a sender @@ -253,11 +253,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\SendersApi(); -$sender_id = "sender_id_example"; // string | Id of the sender -$sender = new \Swagger\Client\Model\Sender1(); // \Swagger\Client\Model\Sender1 | sender's name +$senderId = "senderId_example"; // string | Id of the sender +$sender = new \Swagger\Client\Model\UpdateSender(); // \Swagger\Client\Model\UpdateSender | sender's name try { - $api_instance->updateSender($sender_id, $sender); + $api_instance->updateSender($senderId, $sender); } catch (Exception $e) { echo 'Exception when calling SendersApi->updateSender: ', $e->getMessage(), PHP_EOL; } @@ -268,8 +268,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **string**| Id of the sender | - **sender** | [**\Swagger\Client\Model\Sender1**](../Model/Sender1.md)| sender's name | [optional] + **senderId** | **string**| Id of the sender | + **sender** | [**\Swagger\Client\Model\UpdateSender**](../Model/UpdateSender.md)| sender's name | [optional] ### Return type diff --git a/docs/Api/TransactionalSMSApi.md b/docs/Api/TransactionalSMSApi.md old mode 100755 new mode 100644 index 00079489..0abe9902 --- a/docs/Api/TransactionalSMSApi.md +++ b/docs/Api/TransactionalSMSApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **getSmsEvents** -> \Swagger\Client\Model\InlineResponse20022 getSmsEvents($limit, $start_date, $end_date, $offset, $days, $phone_number, $event, $tags) +> \Swagger\Client\Model\GetSmsEventReport getSmsEvents($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags) Get all the SMS activity (unaggregated events) @@ -25,16 +25,16 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'Y $api_instance = new Swagger\Client\Api\TransactionalSMSApi(); $limit = 50; // int | Number of documents per page -$start_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report -$end_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report +$startDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report +$endDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report $offset = 0; // int | Index of the first document of the page $days = 56; // int | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' -$phone_number = "phone_number_example"; // string | Filter the report for a specific phone number +$phoneNumber = "phoneNumber_example"; // string | Filter the report for a specific phone number $event = "event_example"; // string | Filter the report for specific events $tags = "tags_example"; // string | Filter the report for specific tags passed as a serialized urlencoded array try { - $result = $api_instance->getSmsEvents($limit, $start_date, $end_date, $offset, $days, $phone_number, $event, $tags); + $result = $api_instance->getSmsEvents($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags); print_r($result); } catch (Exception $e) { echo 'Exception when calling TransactionalSMSApi->getSmsEvents: ', $e->getMessage(), PHP_EOL; @@ -47,17 +47,17 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| Number of documents per page | [optional] [default to 50] - **start_date** | **\DateTime**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] - **end_date** | **\DateTime**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] + **startDate** | **\DateTime**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] + **endDate** | **\DateTime**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] - **phone_number** | **string**| Filter the report for a specific phone number | [optional] + **phoneNumber** | **string**| Filter the report for a specific phone number | [optional] **event** | **string**| Filter the report for specific events | [optional] **tags** | **string**| Filter the report for specific tags passed as a serialized urlencoded array | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20022**](../Model/InlineResponse20022.md) +[**\Swagger\Client\Model\GetSmsEventReport**](../Model/GetSmsEventReport.md) ### Authorization @@ -71,7 +71,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getTransacAggregatedSmsReport** -> \Swagger\Client\Model\InlineResponse20023 getTransacAggregatedSmsReport($start_date, $end_date, $days, $tag) +> \Swagger\Client\Model\GetTransacAggregatedSmsReport getTransacAggregatedSmsReport($startDate, $endDate, $days, $tag) Get your SMS activity aggregated over a period of time @@ -84,13 +84,13 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\TransactionalSMSApi(); -$start_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report -$end_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report +$startDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report +$endDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report $days = 56; // int | Number of days in the past including today (positive integer). Not compatible with startDate and endDate $tag = "tag_example"; // string | Filter on a tag try { - $result = $api_instance->getTransacAggregatedSmsReport($start_date, $end_date, $days, $tag); + $result = $api_instance->getTransacAggregatedSmsReport($startDate, $endDate, $days, $tag); print_r($result); } catch (Exception $e) { echo 'Exception when calling TransactionalSMSApi->getTransacAggregatedSmsReport: ', $e->getMessage(), PHP_EOL; @@ -102,14 +102,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_date** | **\DateTime**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] - **end_date** | **\DateTime**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] + **startDate** | **\DateTime**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] + **endDate** | **\DateTime**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] **days** | **int**| Number of days in the past including today (positive integer). Not compatible with startDate and endDate | [optional] **tag** | **string**| Filter on a tag | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20023**](../Model/InlineResponse20023.md) +[**\Swagger\Client\Model\GetTransacAggregatedSmsReport**](../Model/GetTransacAggregatedSmsReport.md) ### Authorization @@ -123,7 +123,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getTransacSmsReport** -> \Swagger\Client\Model\InlineResponse20024 getTransacSmsReport($start_date, $end_date, $days, $tag) +> \Swagger\Client\Model\GetTransacSmsReport getTransacSmsReport($startDate, $endDate, $days, $tag) Get your SMS activity aggregated per day @@ -136,13 +136,13 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\TransactionalSMSApi(); -$start_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report -$end_date = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report +$startDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report +$endDate = new \DateTime("2013-10-20"); // \DateTime | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report $days = 56; // int | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' $tag = "tag_example"; // string | Filter on a tag try { - $result = $api_instance->getTransacSmsReport($start_date, $end_date, $days, $tag); + $result = $api_instance->getTransacSmsReport($startDate, $endDate, $days, $tag); print_r($result); } catch (Exception $e) { echo 'Exception when calling TransactionalSMSApi->getTransacSmsReport: ', $e->getMessage(), PHP_EOL; @@ -154,14 +154,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_date** | **\DateTime**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] - **end_date** | **\DateTime**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] + **startDate** | **\DateTime**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] + **endDate** | **\DateTime**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] **tag** | **string**| Filter on a tag | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20024**](../Model/InlineResponse20024.md) +[**\Swagger\Client\Model\GetTransacSmsReport**](../Model/GetTransacSmsReport.md) ### Authorization @@ -175,7 +175,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **sendTransacSms** -> \Swagger\Client\Model\InlineResponse2015 sendTransacSms($send_transac_sms) +> \Swagger\Client\Model\SendSms sendTransacSms($sendTransacSms) Send the SMS campaign to the specified mobile number @@ -188,10 +188,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\TransactionalSMSApi(); -$send_transac_sms = new \Swagger\Client\Model\SendTransacSms1(); // \Swagger\Client\Model\SendTransacSms1 | Values to send a transactional SMS +$sendTransacSms = new \Swagger\Client\Model\SendTransacSms(); // \Swagger\Client\Model\SendTransacSms | Values to send a transactional SMS try { - $result = $api_instance->sendTransacSms($send_transac_sms); + $result = $api_instance->sendTransacSms($sendTransacSms); print_r($result); } catch (Exception $e) { echo 'Exception when calling TransactionalSMSApi->sendTransacSms: ', $e->getMessage(), PHP_EOL; @@ -203,11 +203,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **send_transac_sms** | [**\Swagger\Client\Model\SendTransacSms1**](../Model/SendTransacSms1.md)| Values to send a transactional SMS | + **sendTransacSms** | [**\Swagger\Client\Model\SendTransacSms**](../Model/SendTransacSms.md)| Values to send a transactional SMS | ### Return type -[**\Swagger\Client\Model\InlineResponse2015**](../Model/InlineResponse2015.md) +[**\Swagger\Client\Model\SendSms**](../Model/SendSms.md) ### Authorization diff --git a/docs/Api/WebhooksApi.md b/docs/Api/WebhooksApi.md old mode 100755 new mode 100644 index 9e639ccf..23f4f343 --- a/docs/Api/WebhooksApi.md +++ b/docs/Api/WebhooksApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **createWebhook** -> \Swagger\Client\Model\InlineResponse201 createWebhook($create_webhook) +> \Swagger\Client\Model\CreateModel createWebhook($createWebhook) Create a webhook @@ -25,10 +25,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\WebhooksApi(); -$create_webhook = new \Swagger\Client\Model\CreateWebhook1(); // \Swagger\Client\Model\CreateWebhook1 | Values to create a webhook +$createWebhook = new \Swagger\Client\Model\CreateWebhook(); // \Swagger\Client\Model\CreateWebhook | Values to create a webhook try { - $result = $api_instance->createWebhook($create_webhook); + $result = $api_instance->createWebhook($createWebhook); print_r($result); } catch (Exception $e) { echo 'Exception when calling WebhooksApi->createWebhook: ', $e->getMessage(), PHP_EOL; @@ -40,11 +40,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_webhook** | [**\Swagger\Client\Model\CreateWebhook1**](../Model/CreateWebhook1.md)| Values to create a webhook | + **createWebhook** | [**\Swagger\Client\Model\CreateWebhook**](../Model/CreateWebhook.md)| Values to create a webhook | ### Return type -[**\Swagger\Client\Model\InlineResponse201**](../Model/InlineResponse201.md) +[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md) ### Authorization @@ -58,7 +58,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **deleteWebhook** -> deleteWebhook($webhook_id) +> deleteWebhook($webhookId) Delete a webhook @@ -71,10 +71,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\WebhooksApi(); -$webhook_id = "webhook_id_example"; // string | Id of the webhook +$webhookId = "webhookId_example"; // string | Id of the webhook try { - $api_instance->deleteWebhook($webhook_id); + $api_instance->deleteWebhook($webhookId); } catch (Exception $e) { echo 'Exception when calling WebhooksApi->deleteWebhook: ', $e->getMessage(), PHP_EOL; } @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **string**| Id of the webhook | + **webhookId** | **string**| Id of the webhook | ### Return type @@ -103,7 +103,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) # **getWebhook** -> \Swagger\Client\Model\InlineResponse20013Webhooks getWebhook($webhook_id) +> \Swagger\Client\Model\GetWebhook getWebhook($webhookId) Get a webhook details @@ -116,10 +116,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\WebhooksApi(); -$webhook_id = "webhook_id_example"; // string | Id of the webhook +$webhookId = "webhookId_example"; // string | Id of the webhook try { - $result = $api_instance->getWebhook($webhook_id); + $result = $api_instance->getWebhook($webhookId); print_r($result); } catch (Exception $e) { echo 'Exception when calling WebhooksApi->getWebhook: ', $e->getMessage(), PHP_EOL; @@ -131,11 +131,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **string**| Id of the webhook | + **webhookId** | **string**| Id of the webhook | ### Return type -[**\Swagger\Client\Model\InlineResponse20013Webhooks**](../Model/InlineResponse20013Webhooks.md) +[**\Swagger\Client\Model\GetWebhook**](../Model/GetWebhook.md) ### Authorization @@ -149,7 +149,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getWebhooks** -> \Swagger\Client\Model\InlineResponse20013 getWebhooks($type) +> \Swagger\Client\Model\GetWebhooks getWebhooks($type) Get all webhooks @@ -181,7 +181,7 @@ Name | Type | Description | Notes ### Return type -[**\Swagger\Client\Model\InlineResponse20013**](../Model/InlineResponse20013.md) +[**\Swagger\Client\Model\GetWebhooks**](../Model/GetWebhooks.md) ### Authorization @@ -195,7 +195,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateWebhook** -> updateWebhook($webhook_id, $update_webhook) +> updateWebhook($webhookId, $updateWebhook) Update a webhook @@ -208,11 +208,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); $api_instance = new Swagger\Client\Api\WebhooksApi(); -$webhook_id = "webhook_id_example"; // string | Id of the webhook -$update_webhook = new \Swagger\Client\Model\UpdateWebhook1(); // \Swagger\Client\Model\UpdateWebhook1 | Values to update a webhook +$webhookId = "webhookId_example"; // string | Id of the webhook +$updateWebhook = new \Swagger\Client\Model\UpdateWebhook(); // \Swagger\Client\Model\UpdateWebhook | Values to update a webhook try { - $api_instance->updateWebhook($webhook_id, $update_webhook); + $api_instance->updateWebhook($webhookId, $updateWebhook); } catch (Exception $e) { echo 'Exception when calling WebhooksApi->updateWebhook: ', $e->getMessage(), PHP_EOL; } @@ -223,8 +223,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **string**| Id of the webhook | - **update_webhook** | [**\Swagger\Client\Model\UpdateWebhook1**](../Model/UpdateWebhook1.md)| Values to update a webhook | + **webhookId** | **string**| Id of the webhook | + **updateWebhook** | [**\Swagger\Client\Model\UpdateWebhook**](../Model/UpdateWebhook.md)| Values to update a webhook | ### Return type diff --git a/docs/Model/ContactsimportNewList.md b/docs/Model/ContactsimportNewList.md deleted file mode 100755 index 1800b0f3..00000000 --- a/docs/Model/ContactsimportNewList.md +++ /dev/null @@ -1,11 +0,0 @@ -# ContactsimportNewList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**list_name** | **string** | List with listName will be created first and users will be imported in it (Mandatory if listIds is empty). | [optional] -**folder_id** | **int** | Folder id will be used with listName to make newly created list’s desired parent (Mandatory if listName is not empty). | [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 556dc664..288cee1f 100755 --- a/docs/Model/CreateAttribute.md +++ b/docs/Model/CreateAttribute.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **category** | **string** | Attribute categorisation. | **name** | **string** | Name of the attribute | **value** | **string** | Value of the attribute | -**enumemaration** | [**\Swagger\Client\Model\ContactsattributesEnumemaration[]**](ContactsattributesEnumemaration.md) | Values that the attribute can take. Use only if the attribute's category is category | [optional] +**enumemaration** | [**\Swagger\Client\Model\CreateAttributeEnumemaration[]**](CreateAttributeEnumemaration.md) | Values that the attribute can take. Use only if the attribute's category is category | [optional] **type** | **string** | Type of the 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/CreateAttribute1.md b/docs/Model/CreateAttribute1.md deleted file mode 100755 index 701d2703..00000000 --- a/docs/Model/CreateAttribute1.md +++ /dev/null @@ -1,14 +0,0 @@ -# CreateAttribute1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**category** | **string** | Attribute categorisation. | -**name** | **string** | Name of the attribute | -**value** | **string** | Value of the attribute | -**enumemaration** | [**\Swagger\Client\Model\ContactsattributesEnumemaration[]**](ContactsattributesEnumemaration.md) | Values that the attribute can take. Use only if the attribute's category is category | [optional] -**type** | **string** | Type of the 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/ContactsattributesEnumemaration.md b/docs/Model/CreateAttributeEnumemaration.md old mode 100755 new mode 100644 similarity index 91% rename from docs/Model/ContactsattributesEnumemaration.md rename to docs/Model/CreateAttributeEnumemaration.md index 83c4ec38..7f50adf5 --- a/docs/Model/ContactsattributesEnumemaration.md +++ b/docs/Model/CreateAttributeEnumemaration.md @@ -1,4 +1,4 @@ -# ContactsattributesEnumemaration +# CreateAttributeEnumemaration ## Properties Name | Type | Description | Notes diff --git a/docs/Model/CreateChild.md b/docs/Model/CreateChild.md old mode 100755 new mode 100644 index a028796d..766ec443 --- a/docs/Model/CreateChild.md +++ b/docs/Model/CreateChild.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Email address to create the child account | -**first_name** | **string** | First name to use to create the child account | -**last_name** | **string** | Last name to use to create the child account | -**company_name** | **string** | Company name to use to create the child account | +**firstName** | **string** | First name to use to create the child account | +**lastName** | **string** | Last name to use to create the child account | +**companyName** | **string** | Company name to use to create the child account | **password** | **string** | Password for the child account to login | [[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 old mode 100755 new mode 100644 index 79131147..21d982ba --- a/docs/Model/CreateContact.md +++ b/docs/Model/CreateContact.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Email address of the user. Mandatory if `attributes.sms` is not passed | [optional] **attributes** | **object** | Values of the attributes to fill. The attributes must exist in you contact database | [optional] -**email_blacklisted** | **bool** | Blacklist the contact for emails (emailBlacklisted = true) | [optional] -**sms_blacklisted** | **bool** | Blacklist the contact for SMS (smsBlacklisted = true) | [optional] -**list_ids** | **int[]** | Ids of the lists to add the contact to | [optional] +**emailBlacklisted** | **bool** | Blacklist the contact for emails (emailBlacklisted = true) | [optional] +**smsBlacklisted** | **bool** | Blacklist the contact for SMS (smsBlacklisted = true) | [optional] +**listIds** | **int[]** | Ids of the lists to add the contact 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/CreateContact1.md b/docs/Model/CreateContact1.md deleted file mode 100755 index b44904ce..00000000 --- a/docs/Model/CreateContact1.md +++ /dev/null @@ -1,14 +0,0 @@ -# CreateContact1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **string** | Email address of the user. Mandatory if `attributes.sms` is not passed | [optional] -**attributes** | **object** | Values of the attributes to fill. The attributes must exist in you contact database | [optional] -**email_blacklisted** | **bool** | Blacklist the contact for emails (emailBlacklisted = true) | [optional] -**sms_blacklisted** | **bool** | Blacklist the contact for SMS (smsBlacklisted = true) | [optional] -**list_ids** | **int[]** | Ids of the lists to add the contact 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/CreateEmailCampaign.md b/docs/Model/CreateEmailCampaign.md old mode 100755 new mode 100644 index 953603e1..34755616 --- a/docs/Model/CreateEmailCampaign.md +++ b/docs/Model/CreateEmailCampaign.md @@ -4,23 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tag** | **string** | Tag of the campaign | [optional] -**sender** | [**\Swagger\Client\Model\EmailCampaignsSender**](EmailCampaignsSender.md) | | [optional] +**sender** | [**\Swagger\Client\Model\CreateEmailCampaignSender**](CreateEmailCampaignSender.md) | | [optional] **name** | **string** | Name of the campaign | -**html_content** | **string** | Mandatory if htmlUrl is empty. Body of the message (HTML) | [optional] -**html_url** | **string** | Mandatory if htmlContent is empty. Url to the message (HTML) | [optional] -**scheduled_at** | **string** | Sending date and time (YYYY-MM-DD HH:mm:ss) | [optional] +**htmlContent** | **string** | Mandatory if htmlUrl is empty. Body of the message (HTML) | [optional] +**htmlUrl** | **string** | Mandatory if htmlContent is empty. Url to the message (HTML) | [optional] +**scheduledAt** | **string** | Sending date and time (YYYY-MM-DD HH:mm:ss) | [optional] **subject** | **string** | Subject of the campaign | -**reply_to** | **string** | Email on which the campaign recipients will be able to reply to | [optional] -**to_field** | **string** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database | [optional] -**recipients** | [**\Swagger\Client\Model\EmailCampaignsRecipients**](EmailCampaignsRecipients.md) | | [optional] -**attachment_url** | **string** | Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] -**inline_image_activation** | **bool** | Use true to embedded the images in your email. Final size of the email should be less than 4MB. Campaigns with embedded images can not be sent to more than 5000 contacts | [optional] [default to false] -**mirror_active** | **bool** | Use true to enable the mirror link | [optional] +**replyTo** | **string** | Email on which the campaign recipients will be able to reply to | [optional] +**toField** | **string** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database | [optional] +**recipients** | [**\Swagger\Client\Model\CreateEmailCampaignRecipients**](CreateEmailCampaignRecipients.md) | | [optional] +**attachmentUrl** | **string** | Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] +**inlineImageActivation** | **bool** | Use true to embedded the images in your email. Final size of the email should be less than 4MB. Campaigns with embedded images can not be sent to more than 5000 contacts | [optional] [default to false] +**mirrorActive** | **bool** | Use true to enable the mirror link | [optional] **recurring** | **bool** | For trigger campagins use false to make sure a contact receives the same campaign only once | [optional] [default to false] **type** | **string** | Type of the campaign | **footer** | **string** | Footer of the email campaign | [optional] **header** | **string** | Header of the email campaign | [optional] -**utm_campaign** | **string** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [optional] +**utmCampaign** | **string** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [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 new file mode 100644 index 00000000..d94ccf8c --- /dev/null +++ b/docs/Model/CreateEmailCampaignRecipients.md @@ -0,0 +1,11 @@ +# CreateEmailCampaignRecipients + +## Properties +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] + +[[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/EmailCampaignsSender.md b/docs/Model/CreateEmailCampaignSender.md old mode 100755 new mode 100644 similarity index 92% rename from docs/Model/EmailCampaignsSender.md rename to docs/Model/CreateEmailCampaignSender.md index fb5d7a87..ab0be0b9 --- a/docs/Model/EmailCampaignsSender.md +++ b/docs/Model/CreateEmailCampaignSender.md @@ -1,4 +1,4 @@ -# EmailCampaignsSender +# CreateEmailCampaignSender ## Properties Name | Type | Description | Notes diff --git a/docs/Model/CreateList.md b/docs/Model/CreateList.md old mode 100755 new mode 100644 index 70745a93..1d288e25 --- a/docs/Model/CreateList.md +++ b/docs/Model/CreateList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | Name of the list | -**folder_id** | **int** | Id of the folder in which to create the list | +**folderId** | **int** | Id of the folder in which to create the list | [[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/CreateSender.md b/docs/Model/CreateSender.md index 1cfee1a4..b961cb2b 100755 --- a/docs/Model/CreateSender.md +++ b/docs/Model/CreateSender.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | From Name to use for the sender | **email** | **string** | From Email to use for the sender | -**ips** | [**\Swagger\Client\Model\SendersIps[]**](SendersIps.md) | Mandatory in case of dedicated IP, IPs to associate to the sender | [optional] +**ips** | [**\Swagger\Client\Model\CreateSenderIps[]**](CreateSenderIps.md) | Mandatory in case of dedicated IP, IPs to associate to the sender | [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/SendersIps.md b/docs/Model/CreateSenderIps.md old mode 100755 new mode 100644 similarity index 97% rename from docs/Model/SendersIps.md rename to docs/Model/CreateSenderIps.md index 95d38476..2c1db2e0 --- a/docs/Model/SendersIps.md +++ b/docs/Model/CreateSenderIps.md @@ -1,4 +1,4 @@ -# SendersIps +# CreateSenderIps ## Properties Name | Type | Description | Notes diff --git a/docs/Model/CreateSenderModel.md b/docs/Model/CreateSenderModel.md old mode 100755 new mode 100644 index 3e44d479..1d24fed9 --- a/docs/Model/CreateSenderModel.md +++ b/docs/Model/CreateSenderModel.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | ID of the Sender created | -**spf_error** | **bool** | Status of SPF configuration for the sender (true = SPF not well configured, false = SPF well configured) | [optional] -**dkim_error** | **bool** | Status of DKIM configuration for the sender (true = DKIM not well configured, false = DKIM well configured) | [optional] +**spfError** | **bool** | Status of SPF configuration for the sender (true = SPF not well configured, false = SPF well configured) | [optional] +**dkimError** | **bool** | Status of DKIM configuration for the sender (true = DKIM not well configured, false = DKIM well configured) | [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 old mode 100755 new mode 100644 index 31674707..0e8f923d --- a/docs/Model/CreateSmsCampaign.md +++ b/docs/Model/CreateSmsCampaign.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **name** | **string** | Name of the campaign | **sender** | **string** | Name of the sender. The number of characters is limited to 11 | **content** | **string** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] -**recipients** | [**\Swagger\Client\Model\SmsCampaignsRecipients**](SmsCampaignsRecipients.md) | | [optional] -**scheduled_at** | **string** | Date and time on which the campaign has to run | [optional] +**recipients** | [**\Swagger\Client\Model\CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] +**scheduledAt** | **string** | Date and time on which the campaign has to run | [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/CreateSmsCampaign1.md b/docs/Model/CreateSmsCampaign1.md deleted file mode 100755 index 66d14c49..00000000 --- a/docs/Model/CreateSmsCampaign1.md +++ /dev/null @@ -1,14 +0,0 @@ -# CreateSmsCampaign1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | Name of the campaign | -**sender** | **string** | Name of the sender. The number of characters is limited to 11 | -**content** | **string** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] -**recipients** | [**\Swagger\Client\Model\SmsCampaignsRecipients**](SmsCampaignsRecipients.md) | | [optional] -**scheduled_at** | **string** | Date and time on which the campaign has to run | [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/CreateSmsCampaignRecipients.md b/docs/Model/CreateSmsCampaignRecipients.md new file mode 100644 index 00000000..646b75ab --- /dev/null +++ b/docs/Model/CreateSmsCampaignRecipients.md @@ -0,0 +1,11 @@ +# CreateSmsCampaignRecipients + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**listIds** | **int[]** | Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty | +**exclusionListIds** | **int[]** | List ids which have to be excluded from a campaign | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/CreateSmtpEmail.md b/docs/Model/CreateSmtpEmail.md old mode 100755 new mode 100644 index 7c495bf5..5f9ec2ce --- a/docs/Model/CreateSmtpEmail.md +++ b/docs/Model/CreateSmtpEmail.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message_id** | **string** | Message ID of the SMTP Email sent | +**messageId** | **string** | Message ID of the SMTP Email sent | [[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/CreateSmtpTemplate.md b/docs/Model/CreateSmtpTemplate.md old mode 100755 new mode 100644 index 87393eea..f47cb433 --- a/docs/Model/CreateSmtpTemplate.md +++ b/docs/Model/CreateSmtpTemplate.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tag** | **string** | Tag of the template | [optional] -**sender** | [**\Swagger\Client\Model\SmtptemplatesSender**](SmtptemplatesSender.md) | | [optional] -**template_name** | **string** | Name of the template | -**html_content** | **string** | Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty | [optional] -**html_url** | **string** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] +**sender** | [**\Swagger\Client\Model\CreateSmtpTemplateSender**](CreateSmtpTemplateSender.md) | | [optional] +**templateName** | **string** | Name of the template | +**htmlContent** | **string** | Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty | [optional] +**htmlUrl** | **string** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] **subject** | **string** | Subject of the template | -**reply_to** | **string** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **string** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] -**attachment_url** | **string** | Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] -**is_active** | **bool** | Status of template. isActive = true means template is active and isActive = false means template is inactive | [optional] +**replyTo** | **string** | Email on which campaign recipients will be able to reply to | [optional] +**toField** | **string** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] +**attachmentUrl** | **string** | Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] +**isActive** | **bool** | Status of template. isActive = true means template is active and isActive = false means template is inactive | [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/SmtptemplatesSender.md b/docs/Model/CreateSmtpTemplateSender.md old mode 100755 new mode 100644 similarity index 93% rename from docs/Model/SmtptemplatesSender.md rename to docs/Model/CreateSmtpTemplateSender.md index d5a643a3..ae7eb18a --- a/docs/Model/SmtptemplatesSender.md +++ b/docs/Model/CreateSmtpTemplateSender.md @@ -1,4 +1,4 @@ -# SmtptemplatesSender +# CreateSmtpTemplateSender ## Properties Name | Type | Description | Notes diff --git a/docs/Model/CreateWebhook1.md b/docs/Model/CreateWebhook1.md deleted file mode 100755 index 28f076a3..00000000 --- a/docs/Model/CreateWebhook1.md +++ /dev/null @@ -1,13 +0,0 @@ -# CreateWebhook1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **string** | URL of the webhook | -**description** | **string** | Description of the webhook | [optional] -**events** | **string[]** | Events triggering the webhook. Possible values for Transactional type webhook – request, delivered, hardBounce, softBounce, blocked, spam, invalid, deferred, click, opened, uniqueOpened and unsubscribed and possible values for Marketing type webhook – spam, opened, click, hardBounce, softBounce, unsubscribed, listAddition & delivered | [optional] -**type** | **string** | Type of the webhook | [optional] [default to 'transactional'] - -[[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/CreatedProcessId.md b/docs/Model/CreatedProcessId.md old mode 100755 new mode 100644 index f02fe67b..aa0d7128 --- a/docs/Model/CreatedProcessId.md +++ b/docs/Model/CreatedProcessId.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**process_id** | **int** | Id of the process created | +**processId** | **int** | Id of the process created | [[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/DeleteHardbounces.md b/docs/Model/DeleteHardbounces.md old mode 100755 new mode 100644 index eaadf00b..7ee70857 --- a/docs/Model/DeleteHardbounces.md +++ b/docs/Model/DeleteHardbounces.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**start_date** | [**\DateTime**](Date.md) | Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate | [optional] -**end_date** | [**\DateTime**](Date.md) | Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate | [optional] -**contact_email** | **string** | Target a specific email address | [optional] +**startDate** | [**\DateTime**](Date.md) | Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate | [optional] +**endDate** | [**\DateTime**](Date.md) | Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate | [optional] +**contactEmail** | **string** | Target a specific email address | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/DeleteHardbounces1.md b/docs/Model/DeleteHardbounces1.md deleted file mode 100755 index 14890582..00000000 --- a/docs/Model/DeleteHardbounces1.md +++ /dev/null @@ -1,12 +0,0 @@ -# DeleteHardbounces1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | [**\DateTime**](Date.md) | Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate | [optional] -**end_date** | [**\DateTime**](Date.md) | Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate | [optional] -**contact_email** | **string** | Target a specific email address | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/EmailCampaign.md b/docs/Model/EmailCampaign.md deleted file mode 100755 index fd9ddee5..00000000 --- a/docs/Model/EmailCampaign.md +++ /dev/null @@ -1,26 +0,0 @@ -# EmailCampaign - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | **string** | Tag of the campaign | [optional] -**sender** | [**\Swagger\Client\Model\EmailCampaignscampaignIdSender**](EmailCampaignscampaignIdSender.md) | | [optional] -**name** | **string** | Name of the campaign | [optional] -**html_content** | **string** | Body of the message (HTML version). REQUIRED if htmlUrl is empty | [optional] -**html_url** | **string** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] -**scheduled_at** | **string** | Date and time on which the campaign has to run | [optional] -**subject** | **string** | Subject of the campaign | [optional] -**reply_to** | **string** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **string** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] -**recipients** | [**\Swagger\Client\Model\EmailCampaignscampaignIdRecipients**](EmailCampaignscampaignIdRecipients.md) | | [optional] -**attachment_url** | **string** | Absolute url of the attachment. Url not allowed from local machine. File must be hosted somewhere.Possilbe extension values are xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] -**inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. You cannot send a campaign of more than 4MB with images embedded in the email. Campaigns with the images embedded in the email must be sent to less than 5000 contacts. | [optional] [default to false] -**mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] -**recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] [default to false] -**footer** | **string** | Footer of the email campaign | [optional] -**header** | **string** | Header of the email campaign | [optional] -**utm_campaign** | **string** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [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/EmailCampaigns.md b/docs/Model/EmailCampaigns.md deleted file mode 100755 index 16d94661..00000000 --- a/docs/Model/EmailCampaigns.md +++ /dev/null @@ -1,27 +0,0 @@ -# EmailCampaigns - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | **string** | Tag of the campaign | [optional] -**sender** | [**\Swagger\Client\Model\EmailCampaignsSender**](EmailCampaignsSender.md) | | [optional] -**name** | **string** | Name of the campaign | -**html_content** | **string** | Mandatory if htmlUrl is empty. Body of the message (HTML) | [optional] -**html_url** | **string** | Mandatory if htmlContent is empty. Url to the message (HTML) | [optional] -**scheduled_at** | **string** | Sending date and time (YYYY-MM-DD HH:mm:ss) | [optional] -**subject** | **string** | Subject of the campaign | -**reply_to** | **string** | Email on which the campaign recipients will be able to reply to | [optional] -**to_field** | **string** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database | [optional] -**recipients** | [**\Swagger\Client\Model\EmailCampaignsRecipients**](EmailCampaignsRecipients.md) | | [optional] -**attachment_url** | **string** | Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] -**inline_image_activation** | **bool** | Use true to embedded the images in your email. Final size of the email should be less than 4MB. Campaigns with embedded images can not be sent to more than 5000 contacts | [optional] [default to false] -**mirror_active** | **bool** | Use true to enable the mirror link | [optional] -**recurring** | **bool** | For trigger campagins use false to make sure a contact receives the same campaign only once | [optional] [default to false] -**type** | **string** | Type of the campaign | -**footer** | **string** | Footer of the email campaign | [optional] -**header** | **string** | Header of the email campaign | [optional] -**utm_campaign** | **string** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [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/EmailCampaignsRecipients.md b/docs/Model/EmailCampaignsRecipients.md deleted file mode 100755 index 5ba3d496..00000000 --- a/docs/Model/EmailCampaignsRecipients.md +++ /dev/null @@ -1,11 +0,0 @@ -# EmailCampaignsRecipients - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exclusion_list_ids** | **int[]** | List ids to exclude from the campaign | [optional] -**list_ids** | **int[]** | Mandatory if scheduledAt is not empty. List 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/EmailCampaignscampaignIdRecipients.md b/docs/Model/EmailCampaignscampaignIdRecipients.md deleted file mode 100755 index f65c47c3..00000000 --- a/docs/Model/EmailCampaignscampaignIdRecipients.md +++ /dev/null @@ -1,11 +0,0 @@ -# EmailCampaignscampaignIdRecipients - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exclusion_list_ids** | **int[]** | List ids which have to be excluded from a campaign | [optional] -**list_ids** | **int[]** | Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty | [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/EmailExportRecipients.md b/docs/Model/EmailExportRecipients.md old mode 100755 new mode 100644 index e4f7b1bc..450a56f7 --- a/docs/Model/EmailExportRecipients.md +++ b/docs/Model/EmailExportRecipients.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**notify_url** | **string** | Webhook called once the export process is finished | [optional] -**recipients_type** | **string** | Type of recipients to export for a campaign | +**notifyURL** | **string** | Webhook called once the export process is finished | [optional] +**recipientsType** | **string** | Type of recipients to export for a campaign | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/EmailTo.md b/docs/Model/EmailTo.md deleted file mode 100755 index 4627eb1e..00000000 --- a/docs/Model/EmailTo.md +++ /dev/null @@ -1,10 +0,0 @@ -# EmailTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_to** | **string[]** | If empty the test email will be sent to your entire test list. Use this field to send it to specific addresses in your list. | [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/GetAccount.md b/docs/Model/GetAccount.md old mode 100755 new mode 100644 index 20401c11..47e6e018 --- a/docs/Model/GetAccount.md +++ b/docs/Model/GetAccount.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Login Email | -**first_name** | **string** | First Name | -**last_name** | **string** | Last Name | -**company_name** | **string** | Name of the company | -**address** | [**\Swagger\Client\Model\InlineResponse200Address**](InlineResponse200Address.md) | | [optional] -**plan** | [**\Swagger\Client\Model\InlineResponse200Plan[]**](InlineResponse200Plan.md) | Information about your plans and credits | -**relay** | [**\Swagger\Client\Model\InlineResponse200Relay**](InlineResponse200Relay.md) | | [optional] -**marketing_automation** | [**\Swagger\Client\Model\InlineResponse200MarketingAutomation**](InlineResponse200MarketingAutomation.md) | | [optional] +**firstName** | **string** | First Name | +**lastName** | **string** | Last Name | +**companyName** | **string** | Name of the company | +**address** | [**\Swagger\Client\Model\GetExtendedClientAddress**](GetExtendedClientAddress.md) | | [optional] +**plan** | [**\Swagger\Client\Model\GetAccountPlan[]**](GetAccountPlan.md) | Information about your plans and credits | +**relay** | [**\Swagger\Client\Model\GetAccountRelay**](GetAccountRelay.md) | | [optional] +**marketingAutomation** | [**\Swagger\Client\Model\GetAccountMarketingAutomation**](GetAccountMarketingAutomation.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/InlineResponse200MarketingAutomation.md b/docs/Model/GetAccountMarketingAutomation.md old mode 100755 new mode 100644 similarity index 92% rename from docs/Model/InlineResponse200MarketingAutomation.md rename to docs/Model/GetAccountMarketingAutomation.md index 30d19290..dd67faed --- a/docs/Model/InlineResponse200MarketingAutomation.md +++ b/docs/Model/GetAccountMarketingAutomation.md @@ -1,4 +1,4 @@ -# InlineResponse200MarketingAutomation +# GetAccountMarketingAutomation ## Properties Name | Type | Description | Notes diff --git a/docs/Model/GetPlan.md b/docs/Model/GetAccountPlan.md old mode 100755 new mode 100644 similarity index 55% rename from docs/Model/GetPlan.md rename to docs/Model/GetAccountPlan.md index f30b504e..4e37adb2 --- a/docs/Model/GetPlan.md +++ b/docs/Model/GetAccountPlan.md @@ -1,10 +1,10 @@ -# GetPlan +# GetAccountPlan ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **string** | Displays the plan type of the user | -**credits_type** | **string** | This is the type of the credit, \"User Limit\" or \"Send Limit\" are two possible types of credit of a user. \"User Limit\" implies the total number of subscribers you can add to your account, and \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. | +**creditsType** | **string** | This is the type of the credit, \"User Limit\" or \"Send Limit\" are two possible types of credit of a user. \"User Limit\" implies the total number of subscribers you can add to your account, and \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. | **credits** | **int** | Remaining credits of the user. This can either be \"User Limit\" or \"Send Limit\" depending on the plan. | [[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/InlineResponse200Relay.md b/docs/Model/GetAccountRelay.md old mode 100755 new mode 100644 similarity index 72% rename from docs/Model/InlineResponse200Relay.md rename to docs/Model/GetAccountRelay.md index 70b36c83..2dcc6cc3 --- a/docs/Model/InlineResponse200Relay.md +++ b/docs/Model/GetAccountRelay.md @@ -1,10 +1,10 @@ -# InlineResponse200Relay +# GetAccountRelay ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **enabled** | **bool** | Status of your SMTP Account (true=Enabled, false=Disabled) | -**data** | [**\Swagger\Client\Model\InlineResponse200RelayData**](InlineResponse200RelayData.md) | | [optional] +**data** | [**\Swagger\Client\Model\GetAccountRelayData**](GetAccountRelayData.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/InlineResponse200RelayData.md b/docs/Model/GetAccountRelayData.md old mode 100755 new mode 100644 similarity index 80% rename from docs/Model/InlineResponse200RelayData.md rename to docs/Model/GetAccountRelayData.md index eccd276b..62301fa5 --- a/docs/Model/InlineResponse200RelayData.md +++ b/docs/Model/GetAccountRelayData.md @@ -1,9 +1,9 @@ -# InlineResponse200RelayData +# GetAccountRelayData ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_name** | **string** | Email to use as login on SMTP | +**userName** | **string** | Email to use as login on SMTP | **relay** | **string** | URL of the SMTP Relay | **port** | **int** | Port used for SMTP Relay | diff --git a/docs/Model/GetAggregatedReport.md b/docs/Model/GetAggregatedReport.md old mode 100755 new mode 100644 index a9d209d0..f49c08d5 --- a/docs/Model/GetAggregatedReport.md +++ b/docs/Model/GetAggregatedReport.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes **range** | **string** | Time frame of the report | **requests** | **int** | Number of requests for the timeframe | **delivered** | **int** | Number of delivered emails for the timeframe | -**hard_bounces** | **int** | Number of hardbounces for the timeframe | -**soft_bounces** | **int** | Number of softbounces for the timeframe | +**hardBounces** | **int** | Number of hardbounces for the timeframe | +**softBounces** | **int** | Number of softbounces for the timeframe | **clicks** | **int** | Number of clicks for the timeframe | -**unique_clicks** | **int** | Number of unique clicks for the timeframe | +**uniqueClicks** | **int** | Number of unique clicks for the timeframe | **opens** | **int** | Number of openings for the timeframe | -**unique_opens** | **int** | Number of unique openings for the timeframe | -**spam_reports** | **int** | Number of complaint (spam report) for the timeframe | +**uniqueOpens** | **int** | Number of unique openings for the timeframe | +**spamReports** | **int** | Number of complaint (spam report) for the timeframe | **blocked** | **int** | Number of blocked contact emails for the timeframe | **invalid** | **int** | Number of invalid emails for the timeframe | diff --git a/docs/Model/GetAttributes.md b/docs/Model/GetAttributes.md index 5b55f585..f89217f0 100755 --- a/docs/Model/GetAttributes.md +++ b/docs/Model/GetAttributes.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**\Swagger\Client\Model\InlineResponse20016Attributes[]**](InlineResponse20016Attributes.md) | Listing of available contact attributes in your account | +**attributes** | [**\Swagger\Client\Model\GetAttributesAttributes[]**](GetAttributesAttributes.md) | Listing of available contact attributes in your account | [[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/InlineResponse20016Attributes.md b/docs/Model/GetAttributesAttributes.md old mode 100755 new mode 100644 similarity index 61% rename from docs/Model/InlineResponse20016Attributes.md rename to docs/Model/GetAttributesAttributes.md index 0012ec31..c6651417 --- a/docs/Model/InlineResponse20016Attributes.md +++ b/docs/Model/GetAttributesAttributes.md @@ -1,4 +1,4 @@ -# InlineResponse20016Attributes +# GetAttributesAttributes ## Properties Name | Type | Description | Notes @@ -7,8 +7,8 @@ Name | Type | Description | Notes **name** | **string** | Name of the attribute | **category** | **string** | Category of the attribute | **type** | **string** | Type of the attribute | [optional] -**enumeration** | [**\Swagger\Client\Model\InlineResponse20016Enumeration[]**](InlineResponse20016Enumeration.md) | Parameter only available for \"category\" type attributes. | [optional] -**calculated_value** | **string** | Calculated value formula | [optional] +**enumeration** | [**\Swagger\Client\Model\GetAttributesEnumeration[]**](GetAttributesEnumeration.md) | Parameter only available for \"category\" type attributes. | [optional] +**calculatedValue** | **string** | Calculated value formula | [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/InlineResponse20016Enumeration.md b/docs/Model/GetAttributesEnumeration.md old mode 100755 new mode 100644 similarity index 92% rename from docs/Model/InlineResponse20016Enumeration.md rename to docs/Model/GetAttributesEnumeration.md index 36aec939..0a55cd7f --- a/docs/Model/InlineResponse20016Enumeration.md +++ b/docs/Model/GetAttributesEnumeration.md @@ -1,4 +1,4 @@ -# InlineResponse20016Enumeration +# GetAttributesEnumeration ## Properties Name | Type | Description | Notes diff --git a/docs/Model/GetCampaignOverview.md b/docs/Model/GetCampaignOverview.md old mode 100755 new mode 100644 index dbb852ed..a79b6390 --- a/docs/Model/GetCampaignOverview.md +++ b/docs/Model/GetCampaignOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **string** | Subject of the campaign | **type** | **string** | Type of campaign | **status** | **string** | Status of the campaign | -**scheduled_at** | **string** | Date on which campaign is scheduled | +**scheduledAt** | **string** | Date on which campaign is scheduled | [[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/GetCampaignRecipients.md b/docs/Model/GetCampaignRecipients.md old mode 100755 new mode 100644 index 99a32d0e..63d5acaf --- a/docs/Model/GetCampaignRecipients.md +++ b/docs/Model/GetCampaignRecipients.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lists** | [**\Swagger\Client\Model\InlineResponse2008RecipientsLists[]**](InlineResponse2008RecipientsLists.md) | Lists included in the campaign | -**exclusion_lists** | [**\Swagger\Client\Model\InlineResponse2008RecipientsExclusionLists[]**](InlineResponse2008RecipientsExclusionLists.md) | Lists excluded of the campaign | +**lists** | [**\Swagger\Client\Model\GetCampaignRecipientsLists[]**](GetCampaignRecipientsLists.md) | Lists included in the campaign | +**exclusionLists** | [**\Swagger\Client\Model\GetCampaignRecipientsExclusionLists[]**](GetCampaignRecipientsExclusionLists.md) | Lists excluded of the campaign | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/InlineResponse2008RecipientsExclusionLists.md b/docs/Model/GetCampaignRecipientsExclusionLists.md old mode 100755 new mode 100644 similarity index 90% rename from docs/Model/InlineResponse2008RecipientsExclusionLists.md rename to docs/Model/GetCampaignRecipientsExclusionLists.md index 8988264a..ebff75c3 --- a/docs/Model/InlineResponse2008RecipientsExclusionLists.md +++ b/docs/Model/GetCampaignRecipientsExclusionLists.md @@ -1,4 +1,4 @@ -# InlineResponse2008RecipientsExclusionLists +# GetCampaignRecipientsExclusionLists ## Properties Name | Type | Description | Notes diff --git a/docs/Model/InlineResponse2008RecipientsLists.md b/docs/Model/GetCampaignRecipientsLists.md old mode 100755 new mode 100644 similarity index 91% rename from docs/Model/InlineResponse2008RecipientsLists.md rename to docs/Model/GetCampaignRecipientsLists.md index e2901b0a..cb30a244 --- a/docs/Model/InlineResponse2008RecipientsLists.md +++ b/docs/Model/GetCampaignRecipientsLists.md @@ -1,4 +1,4 @@ -# InlineResponse2008RecipientsLists +# GetCampaignRecipientsLists ## Properties Name | Type | Description | Notes diff --git a/docs/Model/GetCampaignStats.md b/docs/Model/GetCampaignStats.md old mode 100755 new mode 100644 index b7355795..44bf827f --- a/docs/Model/GetCampaignStats.md +++ b/docs/Model/GetCampaignStats.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list_id** | **int** | List Id of email campaign (only in case of get email campaign(s)) | -**unique_clicks** | **int** | Number of unique clicks for the campaign | +**listId** | **int** | List Id of email campaign (only in case of get email campaign(s)) | +**uniqueClicks** | **int** | Number of unique clicks for the campaign | **clickers** | **int** | Number of clicks for the campaign | **complaints** | **int** | Number of complaints (Spam reports) for the campaign | **delivered** | **int** | Number of delivered emails for the campaign | **sent** | **int** | Number of sent emails for the campaign | -**soft_bounces** | **int** | Number of softbounce for the campaign | -**hard_bounces** | **int** | Number of harbounce for the campaign | -**unique_views** | **int** | Number of unique openings for the campaign | +**softBounces** | **int** | Number of softbounce for the campaign | +**hardBounces** | **int** | Number of harbounce for the campaign | +**uniqueViews** | **int** | Number of unique openings for the campaign | **unsubscriptions** | **int** | Number of unsubscription for the campaign | **viewed** | **int** | Number of openings for the campaign | **deferred** | **int** | Number of deferred emails for the campaign | diff --git a/docs/Model/GetChildInfo.md b/docs/Model/GetChildInfo.md old mode 100755 new mode 100644 index ff9f2edd..6afaeb44 --- a/docs/Model/GetChildInfo.md +++ b/docs/Model/GetChildInfo.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Login Email | -**first_name** | **string** | First Name | -**last_name** | **string** | Last Name | -**company_name** | **string** | Name of the company | -**credits** | [**\Swagger\Client\Model\InlineResponse2001Credits**](InlineResponse2001Credits.md) | | [optional] -**statistics** | [**\Swagger\Client\Model\InlineResponse2001Statistics**](InlineResponse2001Statistics.md) | | [optional] +**firstName** | **string** | First Name | +**lastName** | **string** | Last Name | +**companyName** | **string** | Name of the company | +**credits** | [**\Swagger\Client\Model\GetChildInfoCredits**](GetChildInfoCredits.md) | | [optional] +**statistics** | [**\Swagger\Client\Model\GetChildInfoStatistics**](GetChildInfoStatistics.md) | | [optional] **password** | **string** | The encrypted password of child account | -**ips** | [**\Swagger\Client\Model\InlineResponse2001Ips[]**](InlineResponse2001Ips.md) | IP(s) associated to a child account user | [optional] -**api_keys** | [**\Swagger\Client\Model\InlineResponse2001ApiKeys[]**](InlineResponse2001ApiKeys.md) | API Keys associated to child account | [optional] +**ips** | [**\Swagger\Client\Model\GetChildInfoIps[]**](GetChildInfoIps.md) | IP(s) associated to a child account user | [optional] +**apiKeys** | [**\Swagger\Client\Model\GetChildInfoApiKeys[]**](GetChildInfoApiKeys.md) | API Keys associated to child account | [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/InlineResponse2001ApiKeys.md b/docs/Model/GetChildInfoApiKeys.md old mode 100755 new mode 100644 similarity index 94% rename from docs/Model/InlineResponse2001ApiKeys.md rename to docs/Model/GetChildInfoApiKeys.md index 55a8e3b5..e66f0a63 --- a/docs/Model/InlineResponse2001ApiKeys.md +++ b/docs/Model/GetChildInfoApiKeys.md @@ -1,4 +1,4 @@ -# InlineResponse2001ApiKeys +# GetChildInfoApiKeys ## Properties Name | Type | Description | Notes diff --git a/docs/Model/ContactEmails.md b/docs/Model/GetChildInfoCredits.md old mode 100755 new mode 100644 similarity index 63% rename from docs/Model/ContactEmails.md rename to docs/Model/GetChildInfoCredits.md index eae31c68..742ad789 --- a/docs/Model/ContactEmails.md +++ b/docs/Model/GetChildInfoCredits.md @@ -1,9 +1,10 @@ -# ContactEmails +# GetChildInfoCredits ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**emails** | **string[]** | Emails to add or remove from a list | [optional] +**emailCredits** | **int** | Email credits available for your child | [optional] +**smsCredits** | **int** | SMS credits available for your child | [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/InlineResponse2001Ips.md b/docs/Model/GetChildInfoIps.md old mode 100755 new mode 100644 similarity index 93% rename from docs/Model/InlineResponse2001Ips.md rename to docs/Model/GetChildInfoIps.md index c93438fa..c5fcf01c --- a/docs/Model/InlineResponse2001Ips.md +++ b/docs/Model/GetChildInfoIps.md @@ -1,4 +1,4 @@ -# InlineResponse2001Ips +# GetChildInfoIps ## Properties Name | Type | Description | Notes diff --git a/docs/Model/GetChildInfoStatistics.md b/docs/Model/GetChildInfoStatistics.md new file mode 100644 index 00000000..bd87d4fa --- /dev/null +++ b/docs/Model/GetChildInfoStatistics.md @@ -0,0 +1,12 @@ +# GetChildInfoStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**previousMonthTotalSent** | **int** | Overall emails sent for the previous month | [optional] +**currentMonthTotalSent** | **int** | Overall emails sent for current month | [optional] +**totalSent** | **int** | Overall emails sent for since the account exists | [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/GetChildrenList.md b/docs/Model/GetChildrenList.md index f013aaa8..65a41bf6 100755 --- a/docs/Model/GetChildrenList.md +++ b/docs/Model/GetChildrenList.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**children** | [**\Swagger\Client\Model\InlineResponse2001Children[]**](InlineResponse2001Children.md) | Your children's account information | [optional] +**children** | **object[]** | Your children's account information | [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/GetClient.md b/docs/Model/GetClient.md old mode 100755 new mode 100644 index ba1ef307..756f1f8a --- a/docs/Model/GetClient.md +++ b/docs/Model/GetClient.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Login Email | -**first_name** | **string** | First Name | -**last_name** | **string** | Last Name | -**company_name** | **string** | Name of the company | +**firstName** | **string** | First Name | +**lastName** | **string** | Last Name | +**companyName** | **string** | Name of the company | [[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/GetContactCampaignStats.md b/docs/Model/GetContactCampaignStats.md old mode 100755 new mode 100644 index f830d42d..0b27fda8 --- a/docs/Model/GetContactCampaignStats.md +++ b/docs/Model/GetContactCampaignStats.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages_sent** | [**\Swagger\Client\Model\InlineResponse20015MessagesSent[]**](InlineResponse20015MessagesSent.md) | | [optional] -**hard_bounces** | [**\Swagger\Client\Model\InlineResponse20015MessagesSent[]**](InlineResponse20015MessagesSent.md) | | [optional] -**soft_bounces** | [**\Swagger\Client\Model\InlineResponse20015MessagesSent[]**](InlineResponse20015MessagesSent.md) | | [optional] -**complaints** | [**\Swagger\Client\Model\InlineResponse20015MessagesSent[]**](InlineResponse20015MessagesSent.md) | | [optional] -**unsubscriptions** | [**\Swagger\Client\Model\InlineResponse20015Unsubscriptions**](InlineResponse20015Unsubscriptions.md) | | [optional] -**opened** | [**\Swagger\Client\Model\InlineResponse20015Opened[]**](InlineResponse20015Opened.md) | | [optional] -**clicked** | [**\Swagger\Client\Model\InlineResponse20015Clicked[]**](InlineResponse20015Clicked.md) | | [optional] -**transac_attributes** | [**\Swagger\Client\Model\InlineResponse20015TransacAttributes[]**](InlineResponse20015TransacAttributes.md) | | [optional] +**messagesSent** | [**\Swagger\Client\Model\GetContactCampaignStatsMessagesSent[]**](GetContactCampaignStatsMessagesSent.md) | | [optional] +**hardBounces** | [**\Swagger\Client\Model\GetContactCampaignStatsMessagesSent[]**](GetContactCampaignStatsMessagesSent.md) | | [optional] +**softBounces** | [**\Swagger\Client\Model\GetContactCampaignStatsMessagesSent[]**](GetContactCampaignStatsMessagesSent.md) | | [optional] +**complaints** | [**\Swagger\Client\Model\GetContactCampaignStatsMessagesSent[]**](GetContactCampaignStatsMessagesSent.md) | | [optional] +**unsubscriptions** | [**\Swagger\Client\Model\GetContactCampaignStatsUnsubscriptions**](GetContactCampaignStatsUnsubscriptions.md) | | [optional] +**opened** | [**\Swagger\Client\Model\GetContactCampaignStatsOpened[]**](GetContactCampaignStatsOpened.md) | | [optional] +**clicked** | [**\Swagger\Client\Model\GetContactCampaignStatsClicked[]**](GetContactCampaignStatsClicked.md) | | [optional] +**transacAttributes** | [**\Swagger\Client\Model\GetContactCampaignStatsTransacAttributes[]**](GetContactCampaignStatsTransacAttributes.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/GetContactCampaignStatsClicked.md b/docs/Model/GetContactCampaignStatsClicked.md new file mode 100644 index 00000000..ba7833ce --- /dev/null +++ b/docs/Model/GetContactCampaignStatsClicked.md @@ -0,0 +1,11 @@ +# GetContactCampaignStatsClicked + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**campaignId** | **int** | ID of the campaign which generated the event | +**links** | [**\Swagger\Client\Model\GetContactCampaignStatsLinks[]**](GetContactCampaignStatsLinks.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/InlineResponse20015Links.md b/docs/Model/GetContactCampaignStatsLinks.md old mode 100755 new mode 100644 similarity index 82% rename from docs/Model/InlineResponse20015Links.md rename to docs/Model/GetContactCampaignStatsLinks.md index f2306081..3b63ebf0 --- a/docs/Model/InlineResponse20015Links.md +++ b/docs/Model/GetContactCampaignStatsLinks.md @@ -1,10 +1,10 @@ -# InlineResponse20015Links +# GetContactCampaignStatsLinks ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Number of clicks on this link for the campaign | -**event_time** | [**\DateTime**](\DateTime.md) | Date of the event | +**eventTime** | [**\DateTime**](\DateTime.md) | Date of the event | **ip** | **string** | IP from which the user has clicked on the link | **url** | **string** | URL of the clicked link | diff --git a/docs/Model/AddCredits1.md b/docs/Model/GetContactCampaignStatsMessagesSent.md old mode 100755 new mode 100644 similarity index 60% rename from docs/Model/AddCredits1.md rename to docs/Model/GetContactCampaignStatsMessagesSent.md index 3e778aee..054cce54 --- a/docs/Model/AddCredits1.md +++ b/docs/Model/GetContactCampaignStatsMessagesSent.md @@ -1,10 +1,10 @@ -# AddCredits1 +# GetContactCampaignStatsMessagesSent ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sms** | **int** | SMS credits to be added to the child account | [optional] -**email** | **int** | Email credits to be added to the child account | [optional] +**campaignId** | **int** | ID of the campaign which generated the event | +**eventTime** | [**\DateTime**](\DateTime.md) | Date of the event | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/InlineResponse20015Opened.md b/docs/Model/GetContactCampaignStatsOpened.md old mode 100755 new mode 100644 similarity index 69% rename from docs/Model/InlineResponse20015Opened.md rename to docs/Model/GetContactCampaignStatsOpened.md index 64c8e290..6cb86cb6 --- a/docs/Model/InlineResponse20015Opened.md +++ b/docs/Model/GetContactCampaignStatsOpened.md @@ -1,11 +1,11 @@ -# InlineResponse20015Opened +# GetContactCampaignStatsOpened ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | +**campaignId** | **int** | ID of the campaign which generated the event | **count** | **int** | Number of openings of the campaign | -**event_time** | [**\DateTime**](\DateTime.md) | Date of the event | +**eventTime** | [**\DateTime**](\DateTime.md) | Date of the event | **ip** | **string** | IP from which the user has opened the campaign | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetContactCampaignStatsTransacAttributes.md b/docs/Model/GetContactCampaignStatsTransacAttributes.md new file mode 100644 index 00000000..361cea57 --- /dev/null +++ b/docs/Model/GetContactCampaignStatsTransacAttributes.md @@ -0,0 +1,12 @@ +# GetContactCampaignStatsTransacAttributes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**orderDate** | [**\DateTime**](Date.md) | Date of the order | +**orderPrice** | **float** | Price of the order | +**orderId** | **int** | ID of the order | + +[[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/GetContactCampaignStatsUnsubscriptions.md b/docs/Model/GetContactCampaignStatsUnsubscriptions.md new file mode 100644 index 00000000..59383e30 --- /dev/null +++ b/docs/Model/GetContactCampaignStatsUnsubscriptions.md @@ -0,0 +1,11 @@ +# GetContactCampaignStatsUnsubscriptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userUnsubscription** | [**\Swagger\Client\Model\GetContactCampaignStatsUnsubscriptionsUserUnsubscription[]**](GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md) | Contact has unsubscribed via the unsubscription link in the email | +**adminUnsubscription** | [**\Swagger\Client\Model\GetContactCampaignStatsUnsubscriptionsAdminUnsubscription[]**](GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md) | Contact has been unsubscribed from the administrator | + +[[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/InlineResponse20015UnsubscriptionsAdminUnsubscription.md b/docs/Model/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md old mode 100755 new mode 100644 similarity index 72% rename from docs/Model/InlineResponse20015UnsubscriptionsAdminUnsubscription.md rename to docs/Model/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md index 9fa82625..f4c7ccc0 --- a/docs/Model/InlineResponse20015UnsubscriptionsAdminUnsubscription.md +++ b/docs/Model/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md @@ -1,9 +1,9 @@ -# InlineResponse20015UnsubscriptionsAdminUnsubscription +# GetContactCampaignStatsUnsubscriptionsAdminUnsubscription ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**event_time** | [**\DateTime**](\DateTime.md) | Date of the event | +**eventTime** | [**\DateTime**](\DateTime.md) | Date of the event | **ip** | **string** | IP from which the user has been unsubscribed | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/InlineResponse20015UnsubscriptionsUserUnsubscription.md b/docs/Model/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md old mode 100755 new mode 100644 similarity index 62% rename from docs/Model/InlineResponse20015UnsubscriptionsUserUnsubscription.md rename to docs/Model/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md index 113e3a36..b4619570 --- a/docs/Model/InlineResponse20015UnsubscriptionsUserUnsubscription.md +++ b/docs/Model/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md @@ -1,10 +1,10 @@ -# InlineResponse20015UnsubscriptionsUserUnsubscription +# GetContactCampaignStatsUnsubscriptionsUserUnsubscription ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**event_time** | [**\DateTime**](\DateTime.md) | Date of the event | +**campaignId** | **int** | ID of the campaign which generated the event | +**eventTime** | [**\DateTime**](\DateTime.md) | Date of the event | **ip** | **string** | IP from which the user has unsubscribed | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetContactDetails.md b/docs/Model/GetContactDetails.md old mode 100755 new mode 100644 index 9c5ee033..0aa1bb66 --- a/docs/Model/GetContactDetails.md +++ b/docs/Model/GetContactDetails.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Email address of the contact for which you requested the details | **id** | **int** | ID of the contact for which you requested the details | -**email_blacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | -**sms_blacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**modified_at** | [**\DateTime**](\DateTime.md) | Last modification date of the contact | -**list_ids** | **int[]** | | -**list_unsubscribed** | **int[]** | | [optional] +**emailBlacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | +**smsBlacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | +**modifiedAt** | [**\DateTime**](\DateTime.md) | Last modification date of the contact | +**listIds** | **int[]** | | +**listUnsubscribed** | **int[]** | | [optional] **attributes** | **map[string,string]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetContacts.md b/docs/Model/GetContacts.md index 97007825..96112521 100755 --- a/docs/Model/GetContacts.md +++ b/docs/Model/GetContacts.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contacts** | [**\Swagger\Client\Model\InlineResponse20014Contacts[]**](InlineResponse20014Contacts.md) | | +**contacts** | **object[]** | | **count** | **int** | Number of contacts | [[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/GetEmailCampaign.md b/docs/Model/GetEmailCampaign.md old mode 100755 new mode 100644 index 8ecb36ea..35e08724 --- a/docs/Model/GetEmailCampaign.md +++ b/docs/Model/GetEmailCampaign.md @@ -8,23 +8,21 @@ Name | Type | Description | Notes **subject** | **string** | Subject of the campaign | **type** | **string** | Type of campaign | **status** | **string** | Status of the campaign | -**scheduled_at** | **string** | Date on which campaign is scheduled | -**test_sent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | +**scheduledAt** | **string** | Date on which campaign is scheduled | +**testSent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | **header** | **string** | Header of the campaign | **footer** | **string** | Footer of the campaign | -**sender** | [**\Swagger\Client\Model\InlineResponse2008Sender**](InlineResponse2008Sender.md) | | [optional] -**reply_to** | **string** | Email defined as the \"Reply to\" of the campaign | -**to_field** | **string** | Customisation of the \"to\" field of the campaign | -**html_content** | **string** | HTML content of the campaign | -**share_link** | **string** | Link to share the campaign on social medias | +**sender** | [**\Swagger\Client\Model\GetExtendedCampaignOverviewSender**](GetExtendedCampaignOverviewSender.md) | | [optional] +**replyTo** | **string** | Email defined as the \"Reply to\" of the campaign | +**toField** | **string** | Customisation of the \"to\" field of the campaign | +**htmlContent** | **string** | HTML content of the campaign | +**shareLink** | **string** | Link to share the campaign on social medias | **tag** | **string** | Tag of the campaign | -**created_at** | **string** | Creation date of the campaign | -**modified_at** | **string** | Date of last modification of the campaign | -**inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] -**mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] +**createdAt** | **string** | Creation date of the campaign | +**modifiedAt** | **string** | Date of last modification of the campaign | +**inlineImageActivation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] +**mirrorActive** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] -**recipients** | [**\Swagger\Client\Model\InlineResponse2008Recipients**](InlineResponse2008Recipients.md) | | [optional] -**statistics** | [**\Swagger\Client\Model\InlineResponse2008Statistics**](InlineResponse2008Statistics.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/GetEmailCampaigns.md b/docs/Model/GetEmailCampaigns.md index e6d4bcb9..87fa0b14 100755 --- a/docs/Model/GetEmailCampaigns.md +++ b/docs/Model/GetEmailCampaigns.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaigns** | [**\Swagger\Client\Model\InlineResponse2008Campaigns[]**](InlineResponse2008Campaigns.md) | | [optional] +**campaigns** | [**null[]**](.md) | | [optional] **count** | **int** | Number of Email campaigns retrieved | [[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/GetEmailEventReport.md b/docs/Model/GetEmailEventReport.md index ff61e1f6..f53942c3 100755 --- a/docs/Model/GetEmailEventReport.md +++ b/docs/Model/GetEmailEventReport.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**events** | [**\Swagger\Client\Model\InlineResponse20011Events[]**](InlineResponse20011Events.md) | | [optional] +**events** | [**\Swagger\Client\Model\GetEmailEventReportEvents[]**](GetEmailEventReportEvents.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/InlineResponse20011Events.md b/docs/Model/GetEmailEventReportEvents.md old mode 100755 new mode 100644 similarity index 89% rename from docs/Model/InlineResponse20011Events.md rename to docs/Model/GetEmailEventReportEvents.md index 466bbb93..f27e79f8 --- a/docs/Model/InlineResponse20011Events.md +++ b/docs/Model/GetEmailEventReportEvents.md @@ -1,11 +1,11 @@ -# InlineResponse20011Events +# GetEmailEventReportEvents ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Email address which generates the event | **date** | [**\DateTime**](Date.md) | Date on which the event has been generated | -**message_id** | **string** | Message ID which generated the event | +**messageId** | **string** | Message ID which generated the event | **event** | **string** | Event which occured | **reason** | **string** | Reason of bounce (only availble if the event is hardbounce or softbounce) | **tag** | **string** | Tag of the email which generated the event | diff --git a/docs/Model/GetExtendedCampaignOverview.md b/docs/Model/GetExtendedCampaignOverview.md old mode 100755 new mode 100644 index d4519e2c..9ed05c76 --- a/docs/Model/GetExtendedCampaignOverview.md +++ b/docs/Model/GetExtendedCampaignOverview.md @@ -8,20 +8,20 @@ Name | Type | Description | Notes **subject** | **string** | Subject of the campaign | **type** | **string** | Type of campaign | **status** | **string** | Status of the campaign | -**scheduled_at** | **string** | Date on which campaign is scheduled | -**test_sent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | +**scheduledAt** | **string** | Date on which campaign is scheduled | +**testSent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | **header** | **string** | Header of the campaign | **footer** | **string** | Footer of the campaign | -**sender** | [**\Swagger\Client\Model\InlineResponse2008Sender**](InlineResponse2008Sender.md) | | [optional] -**reply_to** | **string** | Email defined as the \"Reply to\" of the campaign | -**to_field** | **string** | Customisation of the \"to\" field of the campaign | -**html_content** | **string** | HTML content of the campaign | -**share_link** | **string** | Link to share the campaign on social medias | +**sender** | [**\Swagger\Client\Model\GetExtendedCampaignOverviewSender**](GetExtendedCampaignOverviewSender.md) | | [optional] +**replyTo** | **string** | Email defined as the \"Reply to\" of the campaign | +**toField** | **string** | Customisation of the \"to\" field of the campaign | +**htmlContent** | **string** | HTML content of the campaign | +**shareLink** | **string** | Link to share the campaign on social medias | **tag** | **string** | Tag of the campaign | -**created_at** | **string** | Creation date of the campaign | -**modified_at** | **string** | Date of last modification of the campaign | -**inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] -**mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] +**createdAt** | **string** | Creation date of the campaign | +**modifiedAt** | **string** | Date of last modification of the campaign | +**inlineImageActivation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] +**mirrorActive** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] [[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/InlineResponse2008Sender.md b/docs/Model/GetExtendedCampaignOverviewSender.md old mode 100755 new mode 100644 similarity index 91% rename from docs/Model/InlineResponse2008Sender.md rename to docs/Model/GetExtendedCampaignOverviewSender.md index 3430885e..63b996d9 --- a/docs/Model/InlineResponse2008Sender.md +++ b/docs/Model/GetExtendedCampaignOverviewSender.md @@ -1,4 +1,4 @@ -# InlineResponse2008Sender +# GetExtendedCampaignOverviewSender ## Properties Name | Type | Description | Notes diff --git a/docs/Model/GetExtendedCampaignStats.md b/docs/Model/GetExtendedCampaignStats.md old mode 100755 new mode 100644 index 80d3387c..182508fd --- a/docs/Model/GetExtendedCampaignStats.md +++ b/docs/Model/GetExtendedCampaignStats.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_stats** | [**\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats[]**](InlineResponse2008StatisticsCampaignStats.md) | | -**mirror_click** | **int** | Number of clicks on mirror link | +**campaignStats** | **object[]** | | +**mirrorClick** | **int** | Number of clicks on mirror link | **remaining** | **int** | Number of remaning emails to send | -**links_stats** | [**map[string,\Swagger\Client\Model\InlineResponse2008StatisticsLinksStats]**](InlineResponse2008StatisticsLinksStats.md) | | -**stats_by_domain** | [**map[string,\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats]**](InlineResponse2008StatisticsCampaignStats.md) | | +**linksStats** | [**map[string,\Swagger\Client\Model\GetExtendedCampaignStatsLinksStats]**](GetExtendedCampaignStatsLinksStats.md) | | +**statsByDomain** | [**\Swagger\Client\Model\GetStatsByDomain**](GetStatsByDomain.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/InlineResponse2013.md b/docs/Model/GetExtendedCampaignStatsLinksStats.md old mode 100755 new mode 100644 similarity index 74% rename from docs/Model/InlineResponse2013.md rename to docs/Model/GetExtendedCampaignStatsLinksStats.md index 8386b73a..263d0ef4 --- a/docs/Model/InlineResponse2013.md +++ b/docs/Model/GetExtendedCampaignStatsLinksStats.md @@ -1,9 +1,9 @@ -# InlineResponse2013 +# GetExtendedCampaignStatsLinksStats ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message_id** | **string** | Message ID of the SMTP Email sent | +**nbClick** | **int** | Number of clicks for the link | [[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/GetExtendedClient.md b/docs/Model/GetExtendedClient.md old mode 100755 new mode 100644 index 24403c86..f5c4f8b0 --- a/docs/Model/GetExtendedClient.md +++ b/docs/Model/GetExtendedClient.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Login Email | -**first_name** | **string** | First Name | -**last_name** | **string** | Last Name | -**company_name** | **string** | Name of the company | -**address** | [**\Swagger\Client\Model\InlineResponse200Address**](InlineResponse200Address.md) | | [optional] +**firstName** | **string** | First Name | +**lastName** | **string** | Last Name | +**companyName** | **string** | Name of the company | +**address** | [**\Swagger\Client\Model\GetExtendedClientAddress**](GetExtendedClientAddress.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/InlineResponse200Address.md b/docs/Model/GetExtendedClientAddress.md old mode 100755 new mode 100644 similarity index 84% rename from docs/Model/InlineResponse200Address.md rename to docs/Model/GetExtendedClientAddress.md index 8aff99af..edf0b5ac --- a/docs/Model/InlineResponse200Address.md +++ b/docs/Model/GetExtendedClientAddress.md @@ -1,11 +1,11 @@ -# InlineResponse200Address +# GetExtendedClientAddress ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **street** | **string** | Street information | **city** | **string** | City information | -**zip_code** | **string** | Zip Code information | +**zipCode** | **string** | Zip Code information | **country** | **string** | Country information | [[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 old mode 100755 new mode 100644 index b023c23d..e889c364 --- a/docs/Model/GetExtendedContactDetails.md +++ b/docs/Model/GetExtendedContactDetails.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | Email address of the contact for which you requested the details | **id** | **int** | ID of the contact for which you requested the details | -**email_blacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | -**sms_blacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**modified_at** | [**\DateTime**](\DateTime.md) | Last modification date of the contact | -**list_ids** | **int[]** | | -**list_unsubscribed** | **int[]** | | [optional] +**emailBlacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | +**smsBlacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | +**modifiedAt** | [**\DateTime**](\DateTime.md) | Last modification date of the contact | +**listIds** | **int[]** | | +**listUnsubscribed** | **int[]** | | [optional] **attributes** | **map[string,string]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetExtendedList.md b/docs/Model/GetExtendedList.md old mode 100755 new mode 100644 index 18b1078e..e0ea6c04 --- a/docs/Model/GetExtendedList.md +++ b/docs/Model/GetExtendedList.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | ID of the list | **name** | **string** | Name of the list | -**total_blacklisted** | **int** | Number of blacklisted contacts in the list | -**total_subscribers** | **int** | Number of contacts in the list | -**folder_id** | **int** | ID of the folder | -**created_at** | [**\DateTime**](Date.md) | Creation Date of the list | -**campaign_stats** | [**\Swagger\Client\Model\InlineResponse20020CampaignStats[]**](InlineResponse20020CampaignStats.md) | | [optional] -**dynamic_list** | **bool** | Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) | [optional] +**totalBlacklisted** | **int** | Number of blacklisted contacts in the list | +**totalSubscribers** | **int** | Number of contacts in the list | +**folderId** | **int** | ID of the folder | +**createdAt** | [**\DateTime**](Date.md) | Creation Date of the list | +**campaignStats** | [**\Swagger\Client\Model\GetExtendedListCampaignStats[]**](GetExtendedListCampaignStats.md) | | [optional] +**dynamicList** | **bool** | Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) | [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/CreateList1.md b/docs/Model/GetExtendedListCampaignStats.md old mode 100755 new mode 100644 similarity index 62% rename from docs/Model/CreateList1.md rename to docs/Model/GetExtendedListCampaignStats.md index 55973ef4..4c25bae6 --- a/docs/Model/CreateList1.md +++ b/docs/Model/GetExtendedListCampaignStats.md @@ -1,10 +1,10 @@ -# CreateList1 +# GetExtendedListCampaignStats ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **string** | Name of the list | -**folder_id** | **int** | Id of the folder in which to create the list | +**campaignId** | **int** | ID of the campaign | +**stats** | [**\Swagger\Client\Model\GetCampaignStats**](GetCampaignStats.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetFolder.md b/docs/Model/GetFolder.md old mode 100755 new mode 100644 index fdf40577..4872b5b6 --- a/docs/Model/GetFolder.md +++ b/docs/Model/GetFolder.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | ID of the folder | **name** | **string** | Name of the folder | -**total_blacklisted** | **int** | Number of blacklisted contacts in the folder | -**total_subscribers** | **int** | Number of contacts in the folder | -**unique_subscribers** | **int** | Number of unique contacts in the folder | +**totalBlacklisted** | **int** | Number of blacklisted contacts in the folder | +**totalSubscribers** | **int** | Number of contacts in the folder | +**uniqueSubscribers** | **int** | Number of unique contacts in the folder | [[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/GetFolderLists.md b/docs/Model/GetFolderLists.md index f65bd173..e05247b9 100755 --- a/docs/Model/GetFolderLists.md +++ b/docs/Model/GetFolderLists.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lists** | [**\Swagger\Client\Model\InlineResponse20018Lists[]**](InlineResponse20018Lists.md) | | +**lists** | **object[]** | | **count** | **int** | Number of lists in the folder | [[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/GetFolders.md b/docs/Model/GetFolders.md index 5f856675..884d62a9 100755 --- a/docs/Model/GetFolders.md +++ b/docs/Model/GetFolders.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**folders** | [**\Swagger\Client\Model\InlineResponse20017Folders[]**](InlineResponse20017Folders.md) | | [optional] +**folders** | **object[]** | | [optional] **count** | **int** | Number of folders available in your account | [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/GetIps.md b/docs/Model/GetIps.md index da9c6efe..8dadc761 100755 --- a/docs/Model/GetIps.md +++ b/docs/Model/GetIps.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ips** | [**\Swagger\Client\Model\InlineResponse2006Ips[]**](InlineResponse2006Ips.md) | Dedicated IP(s) available on your account | +**ips** | [**\Swagger\Client\Model\GetIp[]**](GetIp.md) | Dedicated IP(s) available on your account | [[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/GetIpsFromSender.md b/docs/Model/GetIpsFromSender.md index e5eb1c80..be9b6a45 100755 --- a/docs/Model/GetIpsFromSender.md +++ b/docs/Model/GetIpsFromSender.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ips** | [**\Swagger\Client\Model\InlineResponse2005Ips[]**](InlineResponse2005Ips.md) | Dedicated IP(s) linked to a sender | +**ips** | [**\Swagger\Client\Model\GetIpFromSender[]**](GetIpFromSender.md) | Dedicated IP(s) linked to a sender | [[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/GetList.md b/docs/Model/GetList.md old mode 100755 new mode 100644 index bd19b03e..002e0623 --- a/docs/Model/GetList.md +++ b/docs/Model/GetList.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | ID of the list | **name** | **string** | Name of the list | -**total_blacklisted** | **int** | Number of blacklisted contacts in the list | -**total_subscribers** | **int** | Number of contacts in the list | +**totalBlacklisted** | **int** | Number of blacklisted contacts in the list | +**totalSubscribers** | **int** | Number of contacts in the list | [[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/GetLists.md b/docs/Model/GetLists.md index 0e5462df..0d1d8ccf 100755 --- a/docs/Model/GetLists.md +++ b/docs/Model/GetLists.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Number of lists in your account | -**lists** | [**\Swagger\Client\Model\InlineResponse20018Lists[]**](InlineResponse20018Lists.md) | Listing of all the lists available in your account | +**lists** | [**\Swagger\Client\Model\GetListsLists[]**](GetListsLists.md) | Listing of all the lists available in your account | [[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/ContactEmails1.md b/docs/Model/GetListsFolder.md old mode 100755 new mode 100644 similarity index 72% rename from docs/Model/ContactEmails1.md rename to docs/Model/GetListsFolder.md index 50a2eff2..7b9c13ab --- a/docs/Model/ContactEmails1.md +++ b/docs/Model/GetListsFolder.md @@ -1,9 +1,10 @@ -# ContactEmails1 +# GetListsFolder ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**emails** | **string[]** | Emails to add or remove from a list | [optional] +**id** | **int** | ID of the folder | +**name** | **string** | Name of the folder | [[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/GetListsLists.md old mode 100755 new mode 100644 similarity index 71% rename from docs/Model/InlineResponse201.md rename to docs/Model/GetListsLists.md index 08d0b3af..e5e16ed4 --- a/docs/Model/InlineResponse201.md +++ b/docs/Model/GetListsLists.md @@ -1,9 +1,9 @@ -# InlineResponse201 +# GetListsLists ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | ID of the object created | +**folder** | [**\Swagger\Client\Model\GetListsFolder**](GetListsFolder.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/GetProcess.md b/docs/Model/GetProcess.md old mode 100755 new mode 100644 index c1702864..44e22271 --- a/docs/Model/GetProcess.md +++ b/docs/Model/GetProcess.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **id** | **int** | Id of the process | **status** | **string** | Status of the process | **name** | **string** | Process name | -**export_url** | **string** | URL on which send export the of contacts once the process is completed | [optional] +**exportUrl** | **string** | URL on which send export the of contacts once the process is completed | [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/GetProcesses.md b/docs/Model/GetProcesses.md index 19791020..43114b89 100755 --- a/docs/Model/GetProcesses.md +++ b/docs/Model/GetProcesses.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**processes** | [**\Swagger\Client\Model\InlineResponse2007Processes[]**](InlineResponse2007Processes.md) | List of processes available on your account | [optional] +**processes** | [**\Swagger\Client\Model\GetProcess[]**](GetProcess.md) | List of processes available on your account | [optional] **count** | **int** | Number of processes available on your account | [[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/GetReports.md b/docs/Model/GetReports.md index e464025b..b654d77e 100755 --- a/docs/Model/GetReports.md +++ b/docs/Model/GetReports.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**reports** | [**\Swagger\Client\Model\InlineResponse2009Reports[]**](InlineResponse2009Reports.md) | | [optional] +**reports** | [**\Swagger\Client\Model\GetReportsReports[]**](GetReportsReports.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/InlineResponse2009Reports.md b/docs/Model/GetReportsReports.md old mode 100755 new mode 100644 similarity index 69% rename from docs/Model/InlineResponse2009Reports.md rename to docs/Model/GetReportsReports.md index 176d4fd0..344deaff --- a/docs/Model/InlineResponse2009Reports.md +++ b/docs/Model/GetReportsReports.md @@ -1,4 +1,4 @@ -# InlineResponse2009Reports +# GetReportsReports ## Properties Name | Type | Description | Notes @@ -7,13 +7,13 @@ Name | Type | Description | Notes **tag** | **string** | Reminder of the specified tag (only available if a specific tag has been specified in the request) | **requests** | **int** | Number of requests for the date | **delivered** | **int** | Number of delivered emails for the date | -**hard_bounces** | **int** | Number of hardbounces for the date | -**soft_bounces** | **int** | Number of softbounces for the date | +**hardBounces** | **int** | Number of hardbounces for the date | +**softBounces** | **int** | Number of softbounces for the date | **clicks** | **int** | Number of clicks for the date | -**unique_clicks** | **int** | Number of unique clicks for the date | +**uniqueClicks** | **int** | Number of unique clicks for the date | **opens** | **int** | Number of openings for the date | -**unique_opens** | **int** | Number of unique openings for the date | -**spam_reports** | **int** | Number of complaints (spam reports) for the date | +**uniqueOpens** | **int** | Number of unique openings for the date | +**spamReports** | **int** | Number of complaints (spam reports) for the date | **blocked** | **int** | Number of blocked emails for the date | **invalid** | **int** | Number of invalid emails for the date | diff --git a/docs/Model/GetSendersList.md b/docs/Model/GetSendersList.md index 3f5cf5c5..5562c49e 100755 --- a/docs/Model/GetSendersList.md +++ b/docs/Model/GetSendersList.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**senders** | [**\Swagger\Client\Model\InlineResponse2004Senders[]**](InlineResponse2004Senders.md) | List of the senders available in your account | [optional] +**senders** | [**\Swagger\Client\Model\GetSendersListSenders[]**](GetSendersListSenders.md) | List of the senders available in your account | [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/InlineResponse2004Ips.md b/docs/Model/GetSendersListIps.md old mode 100755 new mode 100644 similarity index 94% rename from docs/Model/InlineResponse2004Ips.md rename to docs/Model/GetSendersListIps.md index f718b77c..b055a15f --- a/docs/Model/InlineResponse2004Ips.md +++ b/docs/Model/GetSendersListIps.md @@ -1,4 +1,4 @@ -# InlineResponse2004Ips +# GetSendersListIps ## Properties Name | Type | Description | Notes diff --git a/docs/Model/InlineResponse2004Senders.md b/docs/Model/GetSendersListSenders.md old mode 100755 new mode 100644 similarity index 69% rename from docs/Model/InlineResponse2004Senders.md rename to docs/Model/GetSendersListSenders.md index 4aa05b21..4dc22712 --- a/docs/Model/InlineResponse2004Senders.md +++ b/docs/Model/GetSendersListSenders.md @@ -1,4 +1,4 @@ -# InlineResponse2004Senders +# GetSendersListSenders ## Properties Name | Type | Description | Notes @@ -7,7 +7,7 @@ Name | Type | Description | Notes **name** | **string** | From Name associated to the sender | **email** | **string** | From Email associated to the sender | **active** | **bool** | Status of sender (true=activated, false=deactivated) | -**ips** | [**\Swagger\Client\Model\InlineResponse2004Ips[]**](InlineResponse2004Ips.md) | List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs | [optional] +**ips** | [**\Swagger\Client\Model\GetSendersListIps[]**](GetSendersListIps.md) | List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs | [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/GetSmsCampaign.md b/docs/Model/GetSmsCampaign.md old mode 100755 new mode 100644 index 5134f03d..bc057a7f --- a/docs/Model/GetSmsCampaign.md +++ b/docs/Model/GetSmsCampaign.md @@ -7,13 +7,11 @@ Name | Type | Description | Notes **name** | **string** | Name of the SMS Campaign | **status** | **string** | Status of the SMS Campaign | **content** | **string** | Content of the SMS Campaign | -**scheduled_at** | **string** | Date on which SMS campaign is scheduled | -**test_sent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | +**scheduledAt** | **string** | Date on which SMS campaign is scheduled | +**testSent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | **sender** | **string** | Sender of the SMS Campaign | -**created_at** | **string** | Creation date of the SMS campaign | -**modified_at** | **string** | Date of last modification of the SMS campaign | -**recipients** | [**\Swagger\Client\Model\InlineResponse2008Recipients**](InlineResponse2008Recipients.md) | | [optional] -**statistics** | [**\Swagger\Client\Model\InlineResponse20021Statistics**](InlineResponse20021Statistics.md) | | [optional] +**createdAt** | **string** | Creation date of the SMS campaign | +**modifiedAt** | **string** | Date of last modification of the SMS campaign | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetSmsCampaign1.md b/docs/Model/GetSmsCampaign1.md deleted file mode 100755 index e7c7c6fa..00000000 --- a/docs/Model/GetSmsCampaign1.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetSmsCampaign1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the SMS Campaign | -**name** | **string** | Name of the SMS Campaign | -**status** | **string** | Status of the SMS Campaign | -**content** | **string** | Content of the SMS Campaign | -**scheduled_at** | **string** | Date on which SMS campaign is scheduled | -**test_sent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | -**sender** | **string** | Sender of the SMS Campaign | -**created_at** | **string** | Creation date of the SMS campaign | -**modified_at** | **string** | Date of last modification of the SMS campaign | -**recipients** | [**\Swagger\Client\Model\InlineResponse2008Recipients**](InlineResponse2008Recipients.md) | | [optional] -**statistics** | [**\Swagger\Client\Model\InlineResponse20021Statistics**](InlineResponse20021Statistics.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/GetSmsCampaignOverview.md b/docs/Model/GetSmsCampaignOverview.md old mode 100755 new mode 100644 index 20c1ee45..8b76d387 --- a/docs/Model/GetSmsCampaignOverview.md +++ b/docs/Model/GetSmsCampaignOverview.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes **name** | **string** | Name of the SMS Campaign | **status** | **string** | Status of the SMS Campaign | **content** | **string** | Content of the SMS Campaign | -**scheduled_at** | **string** | Date on which SMS campaign is scheduled | -**test_sent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | +**scheduledAt** | **string** | Date on which SMS campaign is scheduled | +**testSent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | **sender** | **string** | Sender of the SMS Campaign | -**created_at** | **string** | Creation date of the SMS campaign | -**modified_at** | **string** | Date of last modification of the SMS campaign | +**createdAt** | **string** | Creation date of the SMS campaign | +**modifiedAt** | **string** | Date of last modification of the SMS campaign | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetSmsCampaignStats.md b/docs/Model/GetSmsCampaignStats.md old mode 100755 new mode 100644 index 7db047c6..0e45794a --- a/docs/Model/GetSmsCampaignStats.md +++ b/docs/Model/GetSmsCampaignStats.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **delivered** | **int** | Number of delivered SMS | **sent** | **int** | Number of sent SMS | **processing** | **int** | Number of processing SMS | -**soft_bounces** | **int** | Number of softbounced SMS | -**hard_bounces** | **int** | Number of hardbounced SMS | +**softBounces** | **int** | Number of softbounced SMS | +**hardBounces** | **int** | Number of hardbounced SMS | **unsubscriptions** | **int** | Number of unsubscription SMS | **answered** | **int** | Number of replies to the SMS | diff --git a/docs/Model/GetSmsCampaigns.md b/docs/Model/GetSmsCampaigns.md index 282559e6..776fc232 100755 --- a/docs/Model/GetSmsCampaigns.md +++ b/docs/Model/GetSmsCampaigns.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaigns** | [**\Swagger\Client\Model\InlineResponse20021Campaigns[]**](InlineResponse20021Campaigns.md) | | [optional] +**campaigns** | [**null[]**](.md) | | [optional] **count** | **int** | Number of SMS campaigns retrieved | [[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/GetSmsEventReport.md b/docs/Model/GetSmsEventReport.md index afd462e6..c7ad7024 100755 --- a/docs/Model/GetSmsEventReport.md +++ b/docs/Model/GetSmsEventReport.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**events** | [**\Swagger\Client\Model\InlineResponse20022Events[]**](InlineResponse20022Events.md) | | [optional] +**events** | [**\Swagger\Client\Model\GetSmsEventReportEvents[]**](GetSmsEventReportEvents.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/InlineResponse20022Events.md b/docs/Model/GetSmsEventReportEvents.md old mode 100755 new mode 100644 similarity index 77% rename from docs/Model/InlineResponse20022Events.md rename to docs/Model/GetSmsEventReportEvents.md index 5e71d1d3..705fd33b --- a/docs/Model/InlineResponse20022Events.md +++ b/docs/Model/GetSmsEventReportEvents.md @@ -1,11 +1,11 @@ -# InlineResponse20022Events +# GetSmsEventReportEvents ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**phone_number** | **string** | Phone number which has generated the event | +**phoneNumber** | **string** | Phone number which has generated the event | **date** | [**\DateTime**](Date.md) | Date on which the event has been generated | -**message_id** | **string** | Message ID which generated the event | +**messageId** | **string** | Message ID which generated the event | **event** | **string** | Event which occured | **reason** | **string** | Reason of bounce (only availble if the event is hardbounce or softbounce) | **reply** | **string** | | [optional] diff --git a/docs/Model/GetSmtpTemplateOverview.md b/docs/Model/GetSmtpTemplateOverview.md old mode 100755 new mode 100644 index 5918b787..85f010e5 --- a/docs/Model/GetSmtpTemplateOverview.md +++ b/docs/Model/GetSmtpTemplateOverview.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes **id** | **int** | ID of the template | **name** | **string** | Name of the template | **subject** | **string** | Subject of the template | -**is_active** | **bool** | Status of template (true=active, false=inactive) | -**test_sent** | **bool** | Status of test sending for the template (true=test email has been sent, false=test email has not been sent) | -**sender** | [**\Swagger\Client\Model\InlineResponse20012Sender**](InlineResponse20012Sender.md) | | [optional] -**reply_to** | **string** | Email defined as the \"Reply to\" for the template | -**to_field** | **string** | Customisation of the \"to\" field for the template | +**isActive** | **bool** | Status of template (true=active, false=inactive) | +**testSent** | **bool** | Status of test sending for the template (true=test email has been sent, false=test email has not been sent) | +**sender** | [**\Swagger\Client\Model\GetSmtpTemplateOverviewSender**](GetSmtpTemplateOverviewSender.md) | | [optional] +**replyTo** | **string** | Email defined as the \"Reply to\" for the template | +**toField** | **string** | Customisation of the \"to\" field for the template | **tag** | **string** | Tag of the template | -**html_content** | **string** | HTML content of the template | -**created_at** | **string** | Creation date of the template | -**modified_at** | **string** | Last modification date of the template | +**htmlContent** | **string** | HTML content of the template | +**createdAt** | **string** | Creation date of the template | +**modifiedAt** | **string** | Last modification date of the template | [[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/InlineResponse20012Sender.md b/docs/Model/GetSmtpTemplateOverviewSender.md old mode 100755 new mode 100644 similarity index 92% rename from docs/Model/InlineResponse20012Sender.md rename to docs/Model/GetSmtpTemplateOverviewSender.md index 66c24501..5ebf5c39 --- a/docs/Model/InlineResponse20012Sender.md +++ b/docs/Model/GetSmtpTemplateOverviewSender.md @@ -1,4 +1,4 @@ -# InlineResponse20012Sender +# GetSmtpTemplateOverviewSender ## Properties Name | Type | Description | Notes diff --git a/docs/Model/GetSmtpTemplates.md b/docs/Model/GetSmtpTemplates.md index 66e2bad9..299240dd 100755 --- a/docs/Model/GetSmtpTemplates.md +++ b/docs/Model/GetSmtpTemplates.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Count of smtp templates | [optional] -**templates** | [**\Swagger\Client\Model\InlineResponse20012Templates[]**](InlineResponse20012Templates.md) | | [optional] +**templates** | [**\Swagger\Client\Model\GetSmtpTemplateOverview[]**](GetSmtpTemplateOverview.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/GetTransacAggregatedSmsReport.md b/docs/Model/GetTransacAggregatedSmsReport.md old mode 100755 new mode 100644 index 254fef6f..809f292f --- a/docs/Model/GetTransacAggregatedSmsReport.md +++ b/docs/Model/GetTransacAggregatedSmsReport.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **range** | **string** | Time frame of the report | **requests** | **int** | Number of requests for the timeframe | **delivered** | **int** | Number of delivered SMS for the timeframe | -**hard_bounces** | **int** | Number of hardbounces for the timeframe | -**soft_bounces** | **int** | Number of softbounces for the timeframe | +**hardBounces** | **int** | Number of hardbounces for the timeframe | +**softBounces** | **int** | Number of softbounces for the timeframe | **blocked** | **int** | Number of blocked contact for the timeframe | **unsubscribed** | **int** | Number of unsubscription for the timeframe | **replied** | **int** | Number of answered SMS for the timeframe | diff --git a/docs/Model/GetTransacSmsReport.md b/docs/Model/GetTransacSmsReport.md index 146782f1..3a58e006 100755 --- a/docs/Model/GetTransacSmsReport.md +++ b/docs/Model/GetTransacSmsReport.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**reports** | [**\Swagger\Client\Model\InlineResponse20024Reports[]**](InlineResponse20024Reports.md) | | [optional] +**reports** | [**\Swagger\Client\Model\GetTransacSmsReportReports[]**](GetTransacSmsReportReports.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/InlineResponse20024Reports.md b/docs/Model/GetTransacSmsReportReports.md old mode 100755 new mode 100644 similarity index 83% rename from docs/Model/InlineResponse20024Reports.md rename to docs/Model/GetTransacSmsReportReports.md index 0d6c9afb..96b649c7 --- a/docs/Model/InlineResponse20024Reports.md +++ b/docs/Model/GetTransacSmsReportReports.md @@ -1,4 +1,4 @@ -# InlineResponse20024Reports +# GetTransacSmsReportReports ## Properties Name | Type | Description | Notes @@ -7,8 +7,8 @@ Name | Type | Description | Notes **tag** | **string** | Tag specified in request | **requests** | **int** | Number of requests for the date | **delivered** | **int** | Number of delivered SMS for the date | -**hard_bounces** | **int** | Number of hardbounces for the date | -**soft_bounces** | **int** | Number of softbounces for the date | +**hardBounces** | **int** | Number of hardbounces for the date | +**softBounces** | **int** | Number of softbounces for the date | **blocked** | **int** | Number of blocked contact for the date | **unsubscribed** | **int** | Number of unsubscription for the date | **replied** | **int** | Number of answered SMS for the date | diff --git a/docs/Model/GetWebhook.md b/docs/Model/GetWebhook.md old mode 100755 new mode 100644 index 4d010cb0..a678dcd1 --- a/docs/Model/GetWebhook.md +++ b/docs/Model/GetWebhook.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **description** | **string** | Description of the webhook | **events** | **string[]** | | **type** | **string** | Type of webhook (marketing or transac) | -**created_at** | [**\DateTime**](Date.md) | Creation date of the webhook | -**modified_at** | [**\DateTime**](Date.md) | Last modification date of the webhook | +**createdAt** | [**\DateTime**](Date.md) | Creation date of the webhook | +**modifiedAt** | [**\DateTime**](Date.md) | Last modification date of the webhook | [[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/GetWebhooks.md b/docs/Model/GetWebhooks.md index e5e6a3a3..083994ad 100755 --- a/docs/Model/GetWebhooks.md +++ b/docs/Model/GetWebhooks.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**webhooks** | [**\Swagger\Client\Model\InlineResponse20013Webhooks[]**](InlineResponse20013Webhooks.md) | | +**webhooks** | **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) diff --git a/docs/Model/InlineResponse200.md b/docs/Model/InlineResponse200.md deleted file mode 100755 index 722da3dc..00000000 --- a/docs/Model/InlineResponse200.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse200 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **string** | Login Email | -**first_name** | **string** | First Name | -**last_name** | **string** | Last Name | -**company_name** | **string** | Name of the company | -**address** | [**\Swagger\Client\Model\InlineResponse200Address**](InlineResponse200Address.md) | | [optional] -**plan** | [**\Swagger\Client\Model\InlineResponse200Plan[]**](InlineResponse200Plan.md) | Information about your plans and credits | -**relay** | [**\Swagger\Client\Model\InlineResponse200Relay**](InlineResponse200Relay.md) | | [optional] -**marketing_automation** | [**\Swagger\Client\Model\InlineResponse200MarketingAutomation**](InlineResponse200MarketingAutomation.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/InlineResponse2001.md b/docs/Model/InlineResponse2001.md deleted file mode 100755 index eb4ddc17..00000000 --- a/docs/Model/InlineResponse2001.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2001 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**children** | [**\Swagger\Client\Model\InlineResponse2001Children[]**](InlineResponse2001Children.md) | Your children's account information | [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/InlineResponse20010.md b/docs/Model/InlineResponse20010.md deleted file mode 100755 index 3335b8cd..00000000 --- a/docs/Model/InlineResponse20010.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse20010 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**range** | **string** | Time frame of the report | -**requests** | **int** | Number of requests for the timeframe | -**delivered** | **int** | Number of delivered emails for the timeframe | -**hard_bounces** | **int** | Number of hardbounces for the timeframe | -**soft_bounces** | **int** | Number of softbounces for the timeframe | -**clicks** | **int** | Number of clicks for the timeframe | -**unique_clicks** | **int** | Number of unique clicks for the timeframe | -**opens** | **int** | Number of openings for the timeframe | -**unique_opens** | **int** | Number of unique openings for the timeframe | -**spam_reports** | **int** | Number of complaint (spam report) for the timeframe | -**blocked** | **int** | Number of blocked contact emails for the timeframe | -**invalid** | **int** | Number of invalid emails for the timeframe | - -[[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/InlineResponse20011.md b/docs/Model/InlineResponse20011.md deleted file mode 100755 index a7cd0249..00000000 --- a/docs/Model/InlineResponse20011.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse20011 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**events** | [**\Swagger\Client\Model\InlineResponse20011Events[]**](InlineResponse20011Events.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/InlineResponse20012.md b/docs/Model/InlineResponse20012.md deleted file mode 100755 index 741df9c7..00000000 --- a/docs/Model/InlineResponse20012.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20012 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **int** | Count of smtp templates | [optional] -**templates** | [**\Swagger\Client\Model\InlineResponse20012Templates[]**](InlineResponse20012Templates.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/InlineResponse20012Templates.md b/docs/Model/InlineResponse20012Templates.md deleted file mode 100755 index e4b5a49d..00000000 --- a/docs/Model/InlineResponse20012Templates.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse20012Templates - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the template | -**name** | **string** | Name of the template | -**subject** | **string** | Subject of the template | -**is_active** | **bool** | Status of template (true=active, false=inactive) | -**test_sent** | **bool** | Status of test sending for the template (true=test email has been sent, false=test email has not been sent) | -**sender** | [**\Swagger\Client\Model\InlineResponse20012Sender**](InlineResponse20012Sender.md) | | [optional] -**reply_to** | **string** | Email defined as the \"Reply to\" for the template | -**to_field** | **string** | Customisation of the \"to\" field for the template | -**tag** | **string** | Tag of the template | -**html_content** | **string** | HTML content of the template | -**created_at** | **string** | Creation date of the template | -**modified_at** | **string** | Last modification date of the template | - -[[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/InlineResponse20013.md b/docs/Model/InlineResponse20013.md deleted file mode 100755 index 61a07af3..00000000 --- a/docs/Model/InlineResponse20013.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse20013 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**webhooks** | [**\Swagger\Client\Model\InlineResponse20013Webhooks[]**](InlineResponse20013Webhooks.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse20013Webhooks.md b/docs/Model/InlineResponse20013Webhooks.md deleted file mode 100755 index b50d2b37..00000000 --- a/docs/Model/InlineResponse20013Webhooks.md +++ /dev/null @@ -1,16 +0,0 @@ -# InlineResponse20013Webhooks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **string** | URL of the webhook | -**id** | **int** | ID of the webhook | -**description** | **string** | Description of the webhook | -**events** | **string[]** | | -**type** | **string** | Type of webhook (marketing or transac) | -**created_at** | [**\DateTime**](Date.md) | Creation date of the webhook | -**modified_at** | [**\DateTime**](Date.md) | Last modification date of the webhook | - -[[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/InlineResponse20014.md b/docs/Model/InlineResponse20014.md deleted file mode 100755 index 097b2f5d..00000000 --- a/docs/Model/InlineResponse20014.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20014 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contacts** | [**\Swagger\Client\Model\InlineResponse20014Contacts[]**](InlineResponse20014Contacts.md) | | -**count** | **int** | Number of contacts | - -[[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/InlineResponse20014Contacts.md b/docs/Model/InlineResponse20014Contacts.md deleted file mode 100755 index 08603440..00000000 --- a/docs/Model/InlineResponse20014Contacts.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse20014Contacts - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **string** | Email address of the contact for which you requested the details | -**id** | **int** | ID of the contact for which you requested the details | -**email_blacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | -**sms_blacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**modified_at** | [**\DateTime**](\DateTime.md) | Last modification date of the contact | -**list_ids** | **int[]** | | -**list_unsubscribed** | **int[]** | | [optional] -**attributes** | **map[string,string]** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse20015.md b/docs/Model/InlineResponse20015.md deleted file mode 100755 index 84b8e9c7..00000000 --- a/docs/Model/InlineResponse20015.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse20015 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messages_sent** | [**\Swagger\Client\Model\InlineResponse20015MessagesSent[]**](InlineResponse20015MessagesSent.md) | | [optional] -**hard_bounces** | [**\Swagger\Client\Model\InlineResponse20015MessagesSent[]**](InlineResponse20015MessagesSent.md) | | [optional] -**soft_bounces** | [**\Swagger\Client\Model\InlineResponse20015MessagesSent[]**](InlineResponse20015MessagesSent.md) | | [optional] -**complaints** | [**\Swagger\Client\Model\InlineResponse20015MessagesSent[]**](InlineResponse20015MessagesSent.md) | | [optional] -**unsubscriptions** | [**\Swagger\Client\Model\InlineResponse20015Unsubscriptions**](InlineResponse20015Unsubscriptions.md) | | [optional] -**opened** | [**\Swagger\Client\Model\InlineResponse20015Opened[]**](InlineResponse20015Opened.md) | | [optional] -**clicked** | [**\Swagger\Client\Model\InlineResponse20015Clicked[]**](InlineResponse20015Clicked.md) | | [optional] -**transac_attributes** | [**\Swagger\Client\Model\InlineResponse20015TransacAttributes[]**](InlineResponse20015TransacAttributes.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/InlineResponse20015Clicked.md b/docs/Model/InlineResponse20015Clicked.md deleted file mode 100755 index 011ef5e2..00000000 --- a/docs/Model/InlineResponse20015Clicked.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20015Clicked - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**links** | [**\Swagger\Client\Model\InlineResponse20015Links[]**](InlineResponse20015Links.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse20015MessagesSent.md b/docs/Model/InlineResponse20015MessagesSent.md deleted file mode 100755 index 0190ced5..00000000 --- a/docs/Model/InlineResponse20015MessagesSent.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20015MessagesSent - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**event_time** | [**\DateTime**](\DateTime.md) | Date of the event | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse20015TransacAttributes.md b/docs/Model/InlineResponse20015TransacAttributes.md deleted file mode 100755 index 00b43e86..00000000 --- a/docs/Model/InlineResponse20015TransacAttributes.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse20015TransacAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_date** | [**\DateTime**](Date.md) | Date of the order | -**order_price** | **float** | Price of the order | -**order_id** | **int** | ID of the order | - -[[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/InlineResponse20015Unsubscriptions.md b/docs/Model/InlineResponse20015Unsubscriptions.md deleted file mode 100755 index 394138e2..00000000 --- a/docs/Model/InlineResponse20015Unsubscriptions.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20015Unsubscriptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_unsubscription** | [**\Swagger\Client\Model\InlineResponse20015UnsubscriptionsUserUnsubscription[]**](InlineResponse20015UnsubscriptionsUserUnsubscription.md) | Contact has unsubscribed via the unsubscription link in the email | -**admin_unsubscription** | [**\Swagger\Client\Model\InlineResponse20015UnsubscriptionsAdminUnsubscription[]**](InlineResponse20015UnsubscriptionsAdminUnsubscription.md) | Contact has been unsubscribed from the administrator | - -[[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/InlineResponse20016.md b/docs/Model/InlineResponse20016.md deleted file mode 100755 index 81f81fea..00000000 --- a/docs/Model/InlineResponse20016.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse20016 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**\Swagger\Client\Model\InlineResponse20016Attributes[]**](InlineResponse20016Attributes.md) | Listing of available contact attributes in your account | - -[[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/InlineResponse20017.md b/docs/Model/InlineResponse20017.md deleted file mode 100755 index f567107b..00000000 --- a/docs/Model/InlineResponse20017.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20017 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**folders** | [**\Swagger\Client\Model\InlineResponse20017Folders[]**](InlineResponse20017Folders.md) | | [optional] -**count** | **int** | Number of folders available in your account | [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/InlineResponse20017Folders.md b/docs/Model/InlineResponse20017Folders.md deleted file mode 100755 index b4ba390b..00000000 --- a/docs/Model/InlineResponse20017Folders.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse20017Folders - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the folder | -**name** | **string** | Name of the folder | -**total_blacklisted** | **int** | Number of blacklisted contacts in the folder | -**total_subscribers** | **int** | Number of contacts in the folder | -**unique_subscribers** | **int** | Number of unique contacts in the folder | - -[[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/InlineResponse20018.md b/docs/Model/InlineResponse20018.md deleted file mode 100755 index 82b5bfb7..00000000 --- a/docs/Model/InlineResponse20018.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20018 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lists** | [**\Swagger\Client\Model\InlineResponse20018Lists[]**](InlineResponse20018Lists.md) | | -**count** | **int** | Number of lists in the folder | - -[[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/InlineResponse20018Lists.md b/docs/Model/InlineResponse20018Lists.md deleted file mode 100755 index 6d0ca94e..00000000 --- a/docs/Model/InlineResponse20018Lists.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineResponse20018Lists - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the list | -**name** | **string** | Name of the list | -**total_blacklisted** | **int** | Number of blacklisted contacts in the list | -**total_subscribers** | **int** | Number of contacts in the list | - -[[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/InlineResponse20019.md b/docs/Model/InlineResponse20019.md deleted file mode 100755 index 54552b8b..00000000 --- a/docs/Model/InlineResponse20019.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20019 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **int** | Number of lists in your account | -**lists** | [**\Swagger\Client\Model\InlineResponse20018Lists[]**](InlineResponse20018Lists.md) | Listing of all the lists available in your account | - -[[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/InlineResponse2001Children.md b/docs/Model/InlineResponse2001Children.md deleted file mode 100755 index 85e5dce5..00000000 --- a/docs/Model/InlineResponse2001Children.md +++ /dev/null @@ -1,19 +0,0 @@ -# InlineResponse2001Children - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **string** | Login Email | -**first_name** | **string** | First Name | -**last_name** | **string** | Last Name | -**company_name** | **string** | Name of the company | -**credits** | [**\Swagger\Client\Model\InlineResponse2001Credits**](InlineResponse2001Credits.md) | | [optional] -**statistics** | [**\Swagger\Client\Model\InlineResponse2001Statistics**](InlineResponse2001Statistics.md) | | [optional] -**password** | **string** | The encrypted password of child account | -**ips** | [**\Swagger\Client\Model\InlineResponse2001Ips[]**](InlineResponse2001Ips.md) | IP(s) associated to a child account user | [optional] -**api_keys** | [**\Swagger\Client\Model\InlineResponse2001ApiKeys[]**](InlineResponse2001ApiKeys.md) | API Keys associated to child account | [optional] -**id** | **int** | ID of the child | [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/InlineResponse2001Credits.md b/docs/Model/InlineResponse2001Credits.md deleted file mode 100755 index 5d401999..00000000 --- a/docs/Model/InlineResponse2001Credits.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2001Credits - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_credits** | **int** | Email credits available for your child | [optional] -**sms_credits** | **int** | SMS credits available for your child | [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/InlineResponse2001Statistics.md b/docs/Model/InlineResponse2001Statistics.md deleted file mode 100755 index 17b7cad9..00000000 --- a/docs/Model/InlineResponse2001Statistics.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2001Statistics - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**previous_month_total_sent** | **int** | Overall emails sent for the previous month | [optional] -**current_month_total_sent** | **int** | Overall emails sent for current month | [optional] -**total_sent** | **int** | Overall emails sent for since the account exists | [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/InlineResponse2002.md b/docs/Model/InlineResponse2002.md deleted file mode 100755 index 7d811eec..00000000 --- a/docs/Model/InlineResponse2002.md +++ /dev/null @@ -1,18 +0,0 @@ -# InlineResponse2002 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **string** | Login Email | -**first_name** | **string** | First Name | -**last_name** | **string** | Last Name | -**company_name** | **string** | Name of the company | -**credits** | [**\Swagger\Client\Model\InlineResponse2001Credits**](InlineResponse2001Credits.md) | | [optional] -**statistics** | [**\Swagger\Client\Model\InlineResponse2001Statistics**](InlineResponse2001Statistics.md) | | [optional] -**password** | **string** | The encrypted password of child account | -**ips** | [**\Swagger\Client\Model\InlineResponse2001Ips[]**](InlineResponse2001Ips.md) | IP(s) associated to a child account user | [optional] -**api_keys** | [**\Swagger\Client\Model\InlineResponse2001ApiKeys[]**](InlineResponse2001ApiKeys.md) | API Keys associated to child account | [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/InlineResponse20020.md b/docs/Model/InlineResponse20020.md deleted file mode 100755 index 00460aa4..00000000 --- a/docs/Model/InlineResponse20020.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse20020 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the list | -**name** | **string** | Name of the list | -**total_blacklisted** | **int** | Number of blacklisted contacts in the list | -**total_subscribers** | **int** | Number of contacts in the list | -**folder_id** | **int** | ID of the folder | -**created_at** | [**\DateTime**](Date.md) | Creation Date of the list | -**campaign_stats** | [**\Swagger\Client\Model\InlineResponse20020CampaignStats[]**](InlineResponse20020CampaignStats.md) | | [optional] -**dynamic_list** | **bool** | Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) | [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/InlineResponse20020CampaignStats.md b/docs/Model/InlineResponse20020CampaignStats.md deleted file mode 100755 index 852b4ae5..00000000 --- a/docs/Model/InlineResponse20020CampaignStats.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20020CampaignStats - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign | -**stats** | [**\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats**](InlineResponse2008StatisticsCampaignStats.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/InlineResponse20021.md b/docs/Model/InlineResponse20021.md deleted file mode 100755 index 6d2588c9..00000000 --- a/docs/Model/InlineResponse20021.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse20021 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaigns** | [**\Swagger\Client\Model\InlineResponse20021Campaigns[]**](InlineResponse20021Campaigns.md) | | [optional] -**count** | **int** | Number of SMS campaigns retrieved | - -[[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/InlineResponse20021Campaigns.md b/docs/Model/InlineResponse20021Campaigns.md deleted file mode 100755 index 4a0d498b..00000000 --- a/docs/Model/InlineResponse20021Campaigns.md +++ /dev/null @@ -1,20 +0,0 @@ -# InlineResponse20021Campaigns - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the SMS Campaign | -**name** | **string** | Name of the SMS Campaign | -**status** | **string** | Status of the SMS Campaign | -**content** | **string** | Content of the SMS Campaign | -**scheduled_at** | **string** | Date on which SMS campaign is scheduled | -**test_sent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | -**sender** | **string** | Sender of the SMS Campaign | -**created_at** | **string** | Creation date of the SMS campaign | -**modified_at** | **string** | Date of last modification of the SMS campaign | -**recipients** | [**\Swagger\Client\Model\InlineResponse2008Recipients**](InlineResponse2008Recipients.md) | | [optional] -**statistics** | [**\Swagger\Client\Model\InlineResponse20021Statistics**](InlineResponse20021Statistics.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/InlineResponse20021Statistics.md b/docs/Model/InlineResponse20021Statistics.md deleted file mode 100755 index 2f7dcddb..00000000 --- a/docs/Model/InlineResponse20021Statistics.md +++ /dev/null @@ -1,16 +0,0 @@ -# InlineResponse20021Statistics - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**delivered** | **int** | Number of delivered SMS | -**sent** | **int** | Number of sent SMS | -**processing** | **int** | Number of processing SMS | -**soft_bounces** | **int** | Number of softbounced SMS | -**hard_bounces** | **int** | Number of hardbounced SMS | -**unsubscriptions** | **int** | Number of unsubscription SMS | -**answered** | **int** | Number of replies to the SMS | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse20022.md b/docs/Model/InlineResponse20022.md deleted file mode 100755 index 8264ea83..00000000 --- a/docs/Model/InlineResponse20022.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse20022 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**events** | [**\Swagger\Client\Model\InlineResponse20022Events[]**](InlineResponse20022Events.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/InlineResponse20023.md b/docs/Model/InlineResponse20023.md deleted file mode 100755 index e905dfdd..00000000 --- a/docs/Model/InlineResponse20023.md +++ /dev/null @@ -1,19 +0,0 @@ -# InlineResponse20023 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**range** | **string** | Time frame of the report | -**requests** | **int** | Number of requests for the timeframe | -**delivered** | **int** | Number of delivered SMS for the timeframe | -**hard_bounces** | **int** | Number of hardbounces for the timeframe | -**soft_bounces** | **int** | Number of softbounces for the timeframe | -**blocked** | **int** | Number of blocked contact for the timeframe | -**unsubscribed** | **int** | Number of unsubscription for the timeframe | -**replied** | **int** | Number of answered SMS for the timeframe | -**accepted** | **int** | Number of accepted for the timeframe | -**rejected** | **int** | Number of rejected for the timeframe | - -[[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/InlineResponse20024.md b/docs/Model/InlineResponse20024.md deleted file mode 100755 index f635b0fd..00000000 --- a/docs/Model/InlineResponse20024.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse20024 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reports** | [**\Swagger\Client\Model\InlineResponse20024Reports[]**](InlineResponse20024Reports.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/InlineResponse2003.md b/docs/Model/InlineResponse2003.md deleted file mode 100755 index 5d96b97f..00000000 --- a/docs/Model/InlineResponse2003.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2003 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**child** | [**\Swagger\Client\Model\InlineResponse2003Child**](InlineResponse2003Child.md) | | [optional] -**reseller** | [**\Swagger\Client\Model\InlineResponse2003Reseller**](InlineResponse2003Reseller.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/InlineResponse2004.md b/docs/Model/InlineResponse2004.md deleted file mode 100755 index efaedb7c..00000000 --- a/docs/Model/InlineResponse2004.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2004 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**senders** | [**\Swagger\Client\Model\InlineResponse2004Senders[]**](InlineResponse2004Senders.md) | List of the senders available in your account | [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/InlineResponse2005.md b/docs/Model/InlineResponse2005.md deleted file mode 100755 index 443329ab..00000000 --- a/docs/Model/InlineResponse2005.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2005 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ips** | [**\Swagger\Client\Model\InlineResponse2005Ips[]**](InlineResponse2005Ips.md) | Dedicated IP(s) linked to a sender | - -[[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/InlineResponse2005Ips.md b/docs/Model/InlineResponse2005Ips.md deleted file mode 100755 index 5579bc4b..00000000 --- a/docs/Model/InlineResponse2005Ips.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineResponse2005Ips - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the dedicated IP | -**ip** | **string** | Dedicated IP | -**domain** | **string** | Domain associated to the IP | -**weight** | **int** | Weight of the IP | - -[[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/InlineResponse2006.md b/docs/Model/InlineResponse2006.md deleted file mode 100755 index 01a75a15..00000000 --- a/docs/Model/InlineResponse2006.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2006 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ips** | [**\Swagger\Client\Model\InlineResponse2006Ips[]**](InlineResponse2006Ips.md) | Dedicated IP(s) available on your account | - -[[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/InlineResponse2006Ips.md b/docs/Model/InlineResponse2006Ips.md deleted file mode 100755 index 8c37a040..00000000 --- a/docs/Model/InlineResponse2006Ips.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineResponse2006Ips - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the dedicated IP | -**ip** | **string** | Dedicated IP | -**active** | **bool** | Status of the IP (true=active, false=inactive) | -**domain** | **string** | Domain associated to the IP | - -[[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/InlineResponse2007.md b/docs/Model/InlineResponse2007.md deleted file mode 100755 index cdc18437..00000000 --- a/docs/Model/InlineResponse2007.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2007 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**processes** | [**\Swagger\Client\Model\InlineResponse2007Processes[]**](InlineResponse2007Processes.md) | List of processes available on your account | [optional] -**count** | **int** | Number of processes available on your account | - -[[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/InlineResponse2007Processes.md b/docs/Model/InlineResponse2007Processes.md deleted file mode 100755 index 34241b2c..00000000 --- a/docs/Model/InlineResponse2007Processes.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineResponse2007Processes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | Id of the process | -**status** | **string** | Status of the process | -**name** | **string** | Process name | -**export_url** | **string** | URL on which send export the of contacts once the process is completed | [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/InlineResponse2008.md b/docs/Model/InlineResponse2008.md deleted file mode 100755 index c801b349..00000000 --- a/docs/Model/InlineResponse2008.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2008 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaigns** | [**\Swagger\Client\Model\InlineResponse2008Campaigns[]**](InlineResponse2008Campaigns.md) | | [optional] -**count** | **int** | Number of Email campaigns retrieved | - -[[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/InlineResponse2008Campaigns.md b/docs/Model/InlineResponse2008Campaigns.md deleted file mode 100755 index 5b7e147e..00000000 --- a/docs/Model/InlineResponse2008Campaigns.md +++ /dev/null @@ -1,31 +0,0 @@ -# InlineResponse2008Campaigns - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the campaign | -**name** | **string** | Name of the campaign | -**subject** | **string** | Subject of the campaign | -**type** | **string** | Type of campaign | -**status** | **string** | Status of the campaign | -**scheduled_at** | **string** | Date on which campaign is scheduled | -**test_sent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | -**header** | **string** | Header of the campaign | -**footer** | **string** | Footer of the campaign | -**sender** | [**\Swagger\Client\Model\InlineResponse2008Sender**](InlineResponse2008Sender.md) | | [optional] -**reply_to** | **string** | Email defined as the \"Reply to\" of the campaign | -**to_field** | **string** | Customisation of the \"to\" field of the campaign | -**html_content** | **string** | HTML content of the campaign | -**share_link** | **string** | Link to share the campaign on social medias | -**tag** | **string** | Tag of the campaign | -**created_at** | **string** | Creation date of the campaign | -**modified_at** | **string** | Date of last modification of the campaign | -**inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] -**mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] -**recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] -**recipients** | [**\Swagger\Client\Model\InlineResponse2008Recipients**](InlineResponse2008Recipients.md) | | [optional] -**statistics** | [**\Swagger\Client\Model\InlineResponse2008Statistics**](InlineResponse2008Statistics.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/InlineResponse2008Recipients.md b/docs/Model/InlineResponse2008Recipients.md deleted file mode 100755 index 0486ab34..00000000 --- a/docs/Model/InlineResponse2008Recipients.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2008Recipients - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lists** | [**\Swagger\Client\Model\InlineResponse2008RecipientsLists[]**](InlineResponse2008RecipientsLists.md) | Lists included in the campaign | -**exclusion_lists** | [**\Swagger\Client\Model\InlineResponse2008RecipientsExclusionLists[]**](InlineResponse2008RecipientsExclusionLists.md) | Lists excluded of the campaign | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse2008Statistics.md b/docs/Model/InlineResponse2008Statistics.md deleted file mode 100755 index 88fb9a82..00000000 --- a/docs/Model/InlineResponse2008Statistics.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse2008Statistics - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_stats** | [**\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats[]**](InlineResponse2008StatisticsCampaignStats.md) | | -**mirror_click** | **int** | Number of clicks on mirror link | -**remaining** | **int** | Number of remaning emails to send | -**links_stats** | [**map[string,\Swagger\Client\Model\InlineResponse2008StatisticsLinksStats]**](InlineResponse2008StatisticsLinksStats.md) | | -**stats_by_domain** | [**map[string,\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats]**](InlineResponse2008StatisticsCampaignStats.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse2008StatisticsCampaignStats.md b/docs/Model/InlineResponse2008StatisticsCampaignStats.md deleted file mode 100755 index 3ca3f7b6..00000000 --- a/docs/Model/InlineResponse2008StatisticsCampaignStats.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse2008StatisticsCampaignStats - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**list_id** | **int** | List Id of email campaign (only in case of get email campaign(s)) | -**unique_clicks** | **int** | Number of unique clicks for the campaign | -**clickers** | **int** | Number of clicks for the campaign | -**complaints** | **int** | Number of complaints (Spam reports) for the campaign | -**delivered** | **int** | Number of delivered emails for the campaign | -**sent** | **int** | Number of sent emails for the campaign | -**soft_bounces** | **int** | Number of softbounce for the campaign | -**hard_bounces** | **int** | Number of harbounce for the campaign | -**unique_views** | **int** | Number of unique openings for the campaign | -**unsubscriptions** | **int** | Number of unsubscription for the campaign | -**viewed** | **int** | Number of openings for the campaign | -**deferred** | **int** | Number of deferred emails for the campaign | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse2008StatisticsLinksStats.md b/docs/Model/InlineResponse2008StatisticsLinksStats.md deleted file mode 100755 index f9a81cd3..00000000 --- a/docs/Model/InlineResponse2008StatisticsLinksStats.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2008StatisticsLinksStats - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nb_click** | **int** | Number of clicks for the link | - -[[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/InlineResponse2009.md b/docs/Model/InlineResponse2009.md deleted file mode 100755 index c1f9e94d..00000000 --- a/docs/Model/InlineResponse2009.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2009 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reports** | [**\Swagger\Client\Model\InlineResponse2009Reports[]**](InlineResponse2009Reports.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/InlineResponse200Plan.md b/docs/Model/InlineResponse200Plan.md deleted file mode 100755 index 273f1e9a..00000000 --- a/docs/Model/InlineResponse200Plan.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse200Plan - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | Displays the plan type of the user | -**credits_type** | **string** | This is the type of the credit, \"User Limit\" or \"Send Limit\" are two possible types of credit of a user. \"User Limit\" implies the total number of subscribers you can add to your account, and \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. | -**credits** | **int** | Remaining credits of the user. This can either be \"User Limit\" or \"Send Limit\" depending on the plan. | - -[[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 deleted file mode 100755 index 7b5b7dae..00000000 --- a/docs/Model/InlineResponse2011.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2011 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the Sender created | -**spf_error** | **bool** | Status of SPF configuration for the sender (true = SPF not well configured, false = SPF well configured) | [optional] -**dkim_error** | **bool** | Status of DKIM configuration for the sender (true = DKIM not well configured, false = DKIM well configured) | [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/InlineResponse2012.md b/docs/Model/InlineResponse2012.md deleted file mode 100755 index 65c678fc..00000000 --- a/docs/Model/InlineResponse2012.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2012 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message_id** | **string** | Message ID of the template Email sent | - -[[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/InlineResponse2014.md b/docs/Model/InlineResponse2014.md deleted file mode 100755 index ef6c1c96..00000000 --- a/docs/Model/InlineResponse2014.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2014 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contacts** | [**\Swagger\Client\Model\InlineResponse2014Contacts**](InlineResponse2014Contacts.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/InlineResponse2015.md b/docs/Model/InlineResponse2015.md deleted file mode 100755 index 7549ffe4..00000000 --- a/docs/Model/InlineResponse2015.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2015 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse202.md b/docs/Model/InlineResponse202.md deleted file mode 100755 index e1272f13..00000000 --- a/docs/Model/InlineResponse202.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse202 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**process_id** | **int** | Id of the process created | - -[[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/InlineResponse400.md b/docs/Model/InlineResponse400.md deleted file mode 100755 index f34d7a35..00000000 --- a/docs/Model/InlineResponse400.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse400 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **int** | Response code | -**message** | **string** | Response message | -**unexisting_emails** | **string[]** | | [optional] -**without_list_emails** | **string[]** | | [optional] -**black_listed_emails** | **string[]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse4001.md b/docs/Model/InlineResponse4001.md deleted file mode 100755 index d92ed3c0..00000000 --- a/docs/Model/InlineResponse4001.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineResponse4001 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **int** | Response code | -**message** | **string** | Response message | -**unexisting_sms** | **string[]** | | [optional] -**without_list_sms** | **string[]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/InlineResponse403.md b/docs/Model/InlineResponse403.md deleted file mode 100755 index c0642020..00000000 --- a/docs/Model/InlineResponse403.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse403 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | Error code displayed in case of a failure | -**message** | **string** | Readable message associated to the failure | - -[[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/IpId.md b/docs/Model/IpId.md deleted file mode 100755 index f9b359d7..00000000 --- a/docs/Model/IpId.md +++ /dev/null @@ -1,10 +0,0 @@ -# IpId - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ip_id** | **int** | ID of the IP | [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/IpId1.md b/docs/Model/IpId1.md deleted file mode 100755 index 0c76368c..00000000 --- a/docs/Model/IpId1.md +++ /dev/null @@ -1,10 +0,0 @@ -# IpId1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ip_id** | **int** | ID of the IP | [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/ManageIp.md b/docs/Model/ManageIp.md old mode 100755 new mode 100644 index 1134407d..ffc29621 --- a/docs/Model/ManageIp.md +++ b/docs/Model/ManageIp.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ip_id** | **int** | ID of the IP | [optional] +**ipId** | **int** | ID of the IP | [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/Name.md b/docs/Model/Name.md deleted file mode 100755 index 69b36016..00000000 --- a/docs/Model/Name.md +++ /dev/null @@ -1,10 +0,0 @@ -# Name - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | Name of the folder | [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/Name1.md b/docs/Model/Name1.md deleted file mode 100755 index 1b3045c9..00000000 --- a/docs/Model/Name1.md +++ /dev/null @@ -1,10 +0,0 @@ -# Name1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | Name of the folder | [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/PostContactInfo.md b/docs/Model/PostContactInfo.md index c832f128..68d00f99 100755 --- a/docs/Model/PostContactInfo.md +++ b/docs/Model/PostContactInfo.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contacts** | [**\Swagger\Client\Model\InlineResponse2014Contacts**](InlineResponse2014Contacts.md) | | [optional] +**contacts** | [**\Swagger\Client\Model\PostContactInfoContacts**](PostContactInfoContacts.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/InlineResponse2014Contacts.md b/docs/Model/PostContactInfoContacts.md old mode 100755 new mode 100644 similarity index 92% rename from docs/Model/InlineResponse2014Contacts.md rename to docs/Model/PostContactInfoContacts.md index 60165960..9b471f59 --- a/docs/Model/InlineResponse2014Contacts.md +++ b/docs/Model/PostContactInfoContacts.md @@ -1,4 +1,4 @@ -# InlineResponse2014Contacts +# PostContactInfoContacts ## Properties Name | Type | Description | Notes diff --git a/docs/Model/PostSendFailed.md b/docs/Model/PostSendFailed.md old mode 100755 new mode 100644 index 7cebed3b..639fa6cd --- a/docs/Model/PostSendFailed.md +++ b/docs/Model/PostSendFailed.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **int** | Response code | **message** | **string** | Response message | -**unexisting_emails** | **string[]** | | [optional] -**without_list_emails** | **string[]** | | [optional] -**black_listed_emails** | **string[]** | | [optional] +**unexistingEmails** | **string[]** | | [optional] +**withoutListEmails** | **string[]** | | [optional] +**blackListedEmails** | **string[]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostSendSmsTestFailed.md b/docs/Model/PostSendSmsTestFailed.md old mode 100755 new mode 100644 index 53ea2b88..d260dba4 --- a/docs/Model/PostSendSmsTestFailed.md +++ b/docs/Model/PostSendSmsTestFailed.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **int** | Response code | **message** | **string** | Response message | -**unexisting_sms** | **string[]** | | [optional] -**without_list_sms** | **string[]** | | [optional] +**unexistingSms** | **string[]** | | [optional] +**withoutListSms** | **string[]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/RecipientExport.md b/docs/Model/RecipientExport.md deleted file mode 100755 index 14bd08d5..00000000 --- a/docs/Model/RecipientExport.md +++ /dev/null @@ -1,11 +0,0 @@ -# RecipientExport - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**notify_url** | **string** | Webhook called once the export process is finished | [optional] -**recipients_type** | **string** | Type of recipients to export for a campaign | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/RecipientExport1.md b/docs/Model/RecipientExport1.md deleted file mode 100755 index 6468618b..00000000 --- a/docs/Model/RecipientExport1.md +++ /dev/null @@ -1,11 +0,0 @@ -# RecipientExport1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**notify_url** | **string** | URL that will be called once the export process is finished | [optional] -**recipients_type** | **string** | Filter the recipients based on how they interacted with the campaign | [default to 'all'] - -[[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/RemainingCreditModel.md b/docs/Model/RemainingCreditModel.md index 3eee0cc2..a6ea357c 100755 --- a/docs/Model/RemainingCreditModel.md +++ b/docs/Model/RemainingCreditModel.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**child** | [**\Swagger\Client\Model\InlineResponse2003Child**](InlineResponse2003Child.md) | | [optional] -**reseller** | [**\Swagger\Client\Model\InlineResponse2003Reseller**](InlineResponse2003Reseller.md) | | [optional] +**child** | [**\Swagger\Client\Model\RemainingCreditModelChild**](RemainingCreditModelChild.md) | | [optional] +**reseller** | [**\Swagger\Client\Model\RemainingCreditModelReseller**](RemainingCreditModelReseller.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/InlineResponse2003Child.md b/docs/Model/RemainingCreditModelChild.md old mode 100755 new mode 100644 similarity index 93% rename from docs/Model/InlineResponse2003Child.md rename to docs/Model/RemainingCreditModelChild.md index 71aa8d0e..73a94d2e --- a/docs/Model/InlineResponse2003Child.md +++ b/docs/Model/RemainingCreditModelChild.md @@ -1,4 +1,4 @@ -# InlineResponse2003Child +# RemainingCreditModelChild ## Properties Name | Type | Description | Notes diff --git a/docs/Model/InlineResponse2003Reseller.md b/docs/Model/RemainingCreditModelReseller.md old mode 100755 new mode 100644 similarity index 92% rename from docs/Model/InlineResponse2003Reseller.md rename to docs/Model/RemainingCreditModelReseller.md index 88f3232d..b88b3bc5 --- a/docs/Model/InlineResponse2003Reseller.md +++ b/docs/Model/RemainingCreditModelReseller.md @@ -1,4 +1,4 @@ -# InlineResponse2003Reseller +# RemainingCreditModelReseller ## Properties Name | Type | Description | Notes diff --git a/docs/Model/RemoveCredits1.md b/docs/Model/RemoveCredits1.md deleted file mode 100755 index c0044e1c..00000000 --- a/docs/Model/RemoveCredits1.md +++ /dev/null @@ -1,11 +0,0 @@ -# RemoveCredits1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sms** | **int** | SMS credits to be removed from the child account | [optional] -**email** | **int** | Email credits to be removed from the child account | [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/RequestContactExport.md b/docs/Model/RequestContactExport.md old mode 100755 new mode 100644 index 4216fcc9..1d0d1985 --- a/docs/Model/RequestContactExport.md +++ b/docs/Model/RequestContactExport.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**export_attributes** | **string[]** | Name of attributes to export. These attributes must be in your contact database | [optional] -**contact_filter** | **object** | Filter to apply to the export | -**notify_url** | **string** | Webhook that will be called once the export process is finished | [optional] +**exportAttributes** | **string[]** | Name of attributes to export. These attributes must be in your contact database | [optional] +**contactFilter** | **object** | Filter to apply to the export | +**notifyUrl** | **string** | Webhook that will be called once the export process is finished | [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/RequestContactExport1.md b/docs/Model/RequestContactExport1.md deleted file mode 100755 index c89813d5..00000000 --- a/docs/Model/RequestContactExport1.md +++ /dev/null @@ -1,12 +0,0 @@ -# RequestContactExport1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**export_attributes** | **string[]** | Name of attributes to export. These attributes must be in your contact database | [optional] -**contact_filter** | **object** | Filter to apply to the export | -**notify_url** | **string** | Webhook that will be called once the export process is finished | [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/RequestContactImport.md b/docs/Model/RequestContactImport.md old mode 100755 new mode 100644 index dfe84353..281af433 --- a/docs/Model/RequestContactImport.md +++ b/docs/Model/RequestContactImport.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**file_url** | **string** | Mandatory if fileBody not defined. URL of the file to be imported (no local file). Possible file types: .txt, .csv | [optional] -**file_body** | **string** | Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes | [optional] -**list_ids** | **int[]** | Manadatory if newList is not defined. Ids of the lists in which to add the contacts | [optional] -**notify_url** | **string** | URL that will be called once the export process is finished | [optional] -**new_list** | [**\Swagger\Client\Model\ContactsimportNewList**](ContactsimportNewList.md) | | [optional] +**fileUrl** | **string** | Mandatory if fileBody not defined. URL of the file to be imported (no local file). Possible file types: .txt, .csv | [optional] +**fileBody** | **string** | Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes | [optional] +**listIds** | **int[]** | Manadatory if newList is not defined. Ids of the lists in which to add the contacts | [optional] +**notifyUrl** | **string** | URL that will be called once the export process is finished | [optional] +**newList** | [**\Swagger\Client\Model\RequestContactImportNewList**](RequestContactImportNewList.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/RequestContactImport1.md b/docs/Model/RequestContactImport1.md deleted file mode 100755 index cb5f5467..00000000 --- a/docs/Model/RequestContactImport1.md +++ /dev/null @@ -1,14 +0,0 @@ -# RequestContactImport1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file_url** | **string** | Mandatory if fileBody not defined. URL of the file to be imported (no local file). Possible file types: .txt, .csv | [optional] -**file_body** | **string** | Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes | [optional] -**list_ids** | **int[]** | Manadatory if newList is not defined. Ids of the lists in which to add the contacts | [optional] -**notify_url** | **string** | URL that will be called once the export process is finished | [optional] -**new_list** | [**\Swagger\Client\Model\ContactsimportNewList**](ContactsimportNewList.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/RequestContactImportNewList.md b/docs/Model/RequestContactImportNewList.md new file mode 100644 index 00000000..73b29cba --- /dev/null +++ b/docs/Model/RequestContactImportNewList.md @@ -0,0 +1,11 @@ +# RequestContactImportNewList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**listName** | **string** | List with listName will be created first and users will be imported in it (Mandatory if listIds is empty). | [optional] +**folderId** | **int** | Folder id will be used with listName to make newly created list’s desired parent (Mandatory if listName is not empty). | [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/RequestSMSRecipientExport.md b/docs/Model/RequestSMSRecipientExport.md old mode 100755 new mode 100644 index 6f227239..29396d07 --- a/docs/Model/RequestSMSRecipientExport.md +++ b/docs/Model/RequestSMSRecipientExport.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**notify_url** | **string** | URL that will be called once the export process is finished | [optional] -**recipients_type** | **string** | Filter the recipients based on how they interacted with the campaign | [default to 'all'] +**notifyURL** | **string** | URL that will be called once the export process is finished | [optional] +**recipientsType** | **string** | Filter the recipients based on how they interacted with the campaign | [default to 'all'] [[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/ResellerChild.md b/docs/Model/ResellerChild.md deleted file mode 100755 index c3ce0531..00000000 --- a/docs/Model/ResellerChild.md +++ /dev/null @@ -1,14 +0,0 @@ -# ResellerChild - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **string** | Email address to create the child account | -**first_name** | **string** | First name to use to create the child account | -**last_name** | **string** | Last name to use to create the child account | -**company_name** | **string** | Company name to use to create the child account | -**password** | **string** | Password for the child account to login | - -[[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/ResellerChild1.md b/docs/Model/ResellerChild1.md deleted file mode 100755 index 9bbcdf63..00000000 --- a/docs/Model/ResellerChild1.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResellerChild1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **string** | New Email address to update the child account | [optional] -**first_name** | **string** | New First name to use to update the child account | [optional] -**last_name** | **string** | New Last name to use to update the child account | [optional] -**company_name** | **string** | New Company name to use to update the child account | [optional] -**password** | **string** | New password for the child account to login | [optional] -**ips** | **int[]** | | [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/SendEmail.md b/docs/Model/SendEmail.md old mode 100755 new mode 100644 index f18f9fa6..df19c128 --- a/docs/Model/SendEmail.md +++ b/docs/Model/SendEmail.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email_to** | **string[]** | Email addresses of the recipients | -**email_bcc** | **string[]** | Email addresses of the recipients in bcc | [optional] -**email_cc** | **string[]** | Email addresses of the recipients in cc | [optional] -**reply_to** | **string** | Email on which campaign recipients will be able to reply to | [optional] -**attachment_url** | **string** | Absolute url of the attachment (no local file). Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] -**attachment** | [**\Swagger\Client\Model\SmtptemplatestemplateIdsendAttachment[]**](SmtptemplatestemplateIdsendAttachment.md) | Pass the base64 content of the attachment. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] +**emailTo** | **string[]** | Email addresses of the recipients | +**emailBcc** | **string[]** | Email addresses of the recipients in bcc | [optional] +**emailCc** | **string[]** | Email addresses of the recipients in cc | [optional] +**replyTo** | **string** | Email on which campaign recipients will be able to reply to | [optional] +**attachmentUrl** | **string** | Absolute url of the attachment (no local file). Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] +**attachment** | [**\Swagger\Client\Model\SendEmailAttachment[]**](SendEmailAttachment.md) | Pass the base64 content of the attachment. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] **headers** | **map[string,string]** | | [optional] **attributes** | **map[string,string]** | | [optional] diff --git a/docs/Model/SendEmail1.md b/docs/Model/SendEmail1.md deleted file mode 100755 index cd621326..00000000 --- a/docs/Model/SendEmail1.md +++ /dev/null @@ -1,17 +0,0 @@ -# SendEmail1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_to** | **string[]** | Email addresses of the recipients | -**email_bcc** | **string[]** | Email addresses of the recipients in bcc | [optional] -**email_cc** | **string[]** | Email addresses of the recipients in cc | [optional] -**reply_to** | **string** | Email on which campaign recipients will be able to reply to | [optional] -**attachment_url** | **string** | Absolute url of the attachment (no local file). Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] -**attachment** | [**\Swagger\Client\Model\SmtptemplatestemplateIdsendAttachment[]**](SmtptemplatestemplateIdsendAttachment.md) | Pass the base64 content of the attachment. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] -**headers** | **map[string,string]** | | [optional] -**attributes** | **map[string,string]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/SmtptemplatestemplateIdsendAttachment.md b/docs/Model/SendEmailAttachment.md old mode 100755 new mode 100644 similarity index 92% rename from docs/Model/SmtptemplatestemplateIdsendAttachment.md rename to docs/Model/SendEmailAttachment.md index 82a8f383..571e58bc --- a/docs/Model/SmtptemplatestemplateIdsendAttachment.md +++ b/docs/Model/SendEmailAttachment.md @@ -1,4 +1,4 @@ -# SmtptemplatestemplateIdsendAttachment +# SendEmailAttachment ## Properties Name | Type | Description | Notes diff --git a/docs/Model/SendReport.md b/docs/Model/SendReport.md index 88784b97..e83a1301 100755 --- a/docs/Model/SendReport.md +++ b/docs/Model/SendReport.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **language** | **string** | Language of email content for campaign report sending. | [optional] [default to 'fr'] -**email** | [**\Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail**](EmailCampaignscampaignIdsendReportEmail.md) | | [optional] +**email** | [**\Swagger\Client\Model\SendReportEmail**](SendReportEmail.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/SendReport1.md b/docs/Model/SendReport1.md deleted file mode 100755 index 2e08e5a3..00000000 --- a/docs/Model/SendReport1.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendReport1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**language** | **string** | Language of email content for campaign report sending. | [optional] [default to 'fr'] -**email** | [**\Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail**](EmailCampaignscampaignIdsendReportEmail.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/SendReport2.md b/docs/Model/SendReport2.md deleted file mode 100755 index b6ac16d6..00000000 --- a/docs/Model/SendReport2.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendReport2 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**language** | **string** | Language of email content for campaign report sending. | [optional] [default to 'fr'] -**email** | [**\Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail**](EmailCampaignscampaignIdsendReportEmail.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/EmailCampaignscampaignIdsendReportEmail.md b/docs/Model/SendReportEmail.md old mode 100755 new mode 100644 similarity index 84% rename from docs/Model/EmailCampaignscampaignIdsendReportEmail.md rename to docs/Model/SendReportEmail.md index a2731a4e..9ce5dac7 --- a/docs/Model/EmailCampaignscampaignIdsendReportEmail.md +++ b/docs/Model/SendReportEmail.md @@ -1,11 +1,11 @@ -# EmailCampaignscampaignIdsendReportEmail +# SendReportEmail ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **subject** | **string** | Subject of the email message | [optional] **to** | **string[]** | Email addresses of the recipients | [optional] -**content_type** | **string** | Type of the message body | [optional] +**contentType** | **string** | Type of the message body | [optional] **bcc** | **string[]** | Email addresses of the recipients in bcc | [optional] **cc** | **string[]** | Email addresses of the recipients in cc | [optional] **body** | **string** | Body of the email message | [optional] diff --git a/docs/Model/SendSmtpEmail.md b/docs/Model/SendSmtpEmail.md old mode 100755 new mode 100644 index 4c705042..4b49e1cc --- a/docs/Model/SendSmtpEmail.md +++ b/docs/Model/SendSmtpEmail.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sender** | [**\Swagger\Client\Model\SmtpemailSender**](SmtpemailSender.md) | | [optional] -**to** | [**\Swagger\Client\Model\SmtpemailTo[]**](SmtpemailTo.md) | Email addresses and names of the recipients | -**bcc** | [**\Swagger\Client\Model\SmtpemailBcc[]**](SmtpemailBcc.md) | Email addresses and names of the recipients in bcc | [optional] -**cc** | [**\Swagger\Client\Model\SmtpemailCc[]**](SmtpemailCc.md) | Email addresses and names of the recipients in cc | [optional] -**html_content** | **string** | HTML body of the message | -**text_content** | **string** | Plain Text body of the message | [optional] +**sender** | [**\Swagger\Client\Model\SendSmtpEmailSender**](SendSmtpEmailSender.md) | | [optional] +**to** | [**\Swagger\Client\Model\SendSmtpEmailTo[]**](SendSmtpEmailTo.md) | Email addresses and names of the recipients | +**bcc** | [**\Swagger\Client\Model\SendSmtpEmailBcc[]**](SendSmtpEmailBcc.md) | Email addresses and names of the recipients in bcc | [optional] +**cc** | [**\Swagger\Client\Model\SendSmtpEmailCc[]**](SendSmtpEmailCc.md) | Email addresses and names of the recipients in cc | [optional] +**htmlContent** | **string** | HTML body of the message | +**textContent** | **string** | Plain Text body of the message | [optional] **subject** | **string** | Subject of the message | -**reply_to** | [**\Swagger\Client\Model\SmtpemailReplyTo**](SmtpemailReplyTo.md) | | [optional] -**attachment** | [**\Swagger\Client\Model\SmtpemailAttachment[]**](SmtpemailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] +**replyTo** | [**\Swagger\Client\Model\SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional] +**attachment** | [**\Swagger\Client\Model\SendSmtpEmailAttachment[]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] **headers** | **map[string,string]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/SendSmtpEmail1.md b/docs/Model/SendSmtpEmail1.md deleted file mode 100755 index 22006aba..00000000 --- a/docs/Model/SendSmtpEmail1.md +++ /dev/null @@ -1,19 +0,0 @@ -# SendSmtpEmail1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sender** | [**\Swagger\Client\Model\SmtpemailSender**](SmtpemailSender.md) | | [optional] -**to** | [**\Swagger\Client\Model\SmtpemailTo[]**](SmtpemailTo.md) | Email addresses and names of the recipients | -**bcc** | [**\Swagger\Client\Model\SmtpemailBcc[]**](SmtpemailBcc.md) | Email addresses and names of the recipients in bcc | [optional] -**cc** | [**\Swagger\Client\Model\SmtpemailCc[]**](SmtpemailCc.md) | Email addresses and names of the recipients in cc | [optional] -**html_content** | **string** | HTML body of the message | -**text_content** | **string** | Plain Text body of the message | [optional] -**subject** | **string** | Subject of the message | -**reply_to** | [**\Swagger\Client\Model\SmtpemailReplyTo**](SmtpemailReplyTo.md) | | [optional] -**attachment** | [**\Swagger\Client\Model\SmtpemailAttachment[]**](SmtpemailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez | [optional] -**headers** | **map[string,string]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/SmtpemailAttachment.md b/docs/Model/SendSmtpEmailAttachment.md old mode 100755 new mode 100644 similarity index 95% rename from docs/Model/SmtpemailAttachment.md rename to docs/Model/SendSmtpEmailAttachment.md index bdf3d022..c3e18da4 --- a/docs/Model/SmtpemailAttachment.md +++ b/docs/Model/SendSmtpEmailAttachment.md @@ -1,4 +1,4 @@ -# SmtpemailAttachment +# SendSmtpEmailAttachment ## Properties Name | Type | Description | Notes diff --git a/docs/Model/SmtpemailBcc.md b/docs/Model/SendSmtpEmailBcc.md old mode 100755 new mode 100644 similarity index 95% rename from docs/Model/SmtpemailBcc.md rename to docs/Model/SendSmtpEmailBcc.md index 4a2e0f53..dbbf1734 --- a/docs/Model/SmtpemailBcc.md +++ b/docs/Model/SendSmtpEmailBcc.md @@ -1,4 +1,4 @@ -# SmtpemailBcc +# SendSmtpEmailBcc ## Properties Name | Type | Description | Notes diff --git a/docs/Model/SmtpemailCc.md b/docs/Model/SendSmtpEmailCc.md old mode 100755 new mode 100644 similarity index 95% rename from docs/Model/SmtpemailCc.md rename to docs/Model/SendSmtpEmailCc.md index 0a8e0588..fca61b4f --- a/docs/Model/SmtpemailCc.md +++ b/docs/Model/SendSmtpEmailCc.md @@ -1,4 +1,4 @@ -# SmtpemailCc +# SendSmtpEmailCc ## Properties Name | Type | Description | Notes diff --git a/docs/Model/SmtpemailReplyTo.md b/docs/Model/SendSmtpEmailReplyTo.md old mode 100755 new mode 100644 similarity index 94% rename from docs/Model/SmtpemailReplyTo.md rename to docs/Model/SendSmtpEmailReplyTo.md index c366de26..3b2cc95f --- a/docs/Model/SmtpemailReplyTo.md +++ b/docs/Model/SendSmtpEmailReplyTo.md @@ -1,4 +1,4 @@ -# SmtpemailReplyTo +# SendSmtpEmailReplyTo ## Properties Name | Type | Description | Notes diff --git a/docs/Model/SmtpemailSender.md b/docs/Model/SendSmtpEmailSender.md old mode 100755 new mode 100644 similarity index 95% rename from docs/Model/SmtpemailSender.md rename to docs/Model/SendSmtpEmailSender.md index 4cc1bc87..d87d9635 --- a/docs/Model/SmtpemailSender.md +++ b/docs/Model/SendSmtpEmailSender.md @@ -1,4 +1,4 @@ -# SmtpemailSender +# SendSmtpEmailSender ## Properties Name | Type | Description | Notes diff --git a/docs/Model/SmtpemailTo.md b/docs/Model/SendSmtpEmailTo.md old mode 100755 new mode 100644 similarity index 95% rename from docs/Model/SmtpemailTo.md rename to docs/Model/SendSmtpEmailTo.md index 149eb401..f940f368 --- a/docs/Model/SmtpemailTo.md +++ b/docs/Model/SendSmtpEmailTo.md @@ -1,4 +1,4 @@ -# SmtpemailTo +# SendSmtpEmailTo ## Properties Name | Type | Description | Notes diff --git a/docs/Model/SendTemplateEmail.md b/docs/Model/SendTemplateEmail.md old mode 100755 new mode 100644 index 018abede..862ef50e --- a/docs/Model/SendTemplateEmail.md +++ b/docs/Model/SendTemplateEmail.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message_id** | **string** | Message ID of the template Email sent | +**messageId** | **string** | Message ID of the template Email sent | [[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/SendTestEmail.md b/docs/Model/SendTestEmail.md old mode 100755 new mode 100644 index d5585ff5..e1142c77 --- a/docs/Model/SendTestEmail.md +++ b/docs/Model/SendTestEmail.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email_to** | **string[]** | If empty the test email will be sent to your entire test list. Use this field to send it to specific addresses in your list. | [optional] +**emailTo** | **string[]** | If empty the test email will be sent to your entire test list. Use this field to send it to specific addresses in your list. | [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/SendTestEmail1.md b/docs/Model/SendTestEmail1.md deleted file mode 100755 index ad3ed29c..00000000 --- a/docs/Model/SendTestEmail1.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendTestEmail1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_to** | **string[]** | If empty the test email will be sent to your entire test list. Use this field to send it to specific addresses in your list. | [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/SendTestSms.md b/docs/Model/SendTestSms.md old mode 100755 new mode 100644 index 92ad7a88..ad7603d4 --- a/docs/Model/SendTestSms.md +++ b/docs/Model/SendTestSms.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**phone_numbers** | **string[]** | Mobile number with the country code to send test SMS. The mobile number defined here must belong to one of your contacts in SendinBlue account and must not be blacklisted | [optional] +**phoneNumbers** | **string[]** | Mobile number with the country code to send test SMS. The mobile number defined here must belong to one of your contacts in SendinBlue account and must not be blacklisted | [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/SendTestSms1.md b/docs/Model/SendTestSms1.md deleted file mode 100755 index 24dcd858..00000000 --- a/docs/Model/SendTestSms1.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendTestSms1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phone_numbers** | **string[]** | Mobile number with the country code to send test SMS. The mobile number defined here must belong to one of your contacts in SendinBlue account and must not be blacklisted | [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 old mode 100755 new mode 100644 index e89ff55b..442d3d53 --- a/docs/Model/SendTransacSms.md +++ b/docs/Model/SendTransacSms.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **recipient** | **string** | Mobile number to send SMS with the country code | **content** | **string** | Content of the message. If more than 160 characters long, multiple text messages will be sent | **tag** | **string** | Tag of the message | [optional] -**web_url** | **string** | Webhook to call for each event triggered by the message (delivered etc.) | [optional] +**webUrl** | **string** | Webhook to call for each event triggered by the message (delivered etc.) | [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/SendTransacSms1.md b/docs/Model/SendTransacSms1.md deleted file mode 100755 index 0689850a..00000000 --- a/docs/Model/SendTransacSms1.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendTransacSms1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sender** | **string** | Name of the sender. Only alphanumeric characters. No more than 11 characters | -**recipient** | **string** | Mobile number to send SMS with the country code | -**content** | **string** | Content of the message. If more than 160 characters long, multiple text messages will be sent | -**tag** | **string** | Tag of the message | [optional] -**web_url** | **string** | Webhook to call for each event triggered by the message (delivered etc.) | [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/Sender.md b/docs/Model/Sender.md deleted file mode 100755 index b61d75c9..00000000 --- a/docs/Model/Sender.md +++ /dev/null @@ -1,12 +0,0 @@ -# Sender - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | From Name to use for the sender | -**email** | **string** | From Email to use for the sender | -**ips** | [**\Swagger\Client\Model\SendersIps[]**](SendersIps.md) | Mandatory in case of dedicated IP, IPs to associate to the sender | [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/Sender1.md b/docs/Model/Sender1.md deleted file mode 100755 index 8c5514f0..00000000 --- a/docs/Model/Sender1.md +++ /dev/null @@ -1,12 +0,0 @@ -# Sender1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | From Name to update the sender | [optional] -**email** | **string** | From Email to update the sender | [optional] -**ips** | [**\Swagger\Client\Model\SendersIps[]**](SendersIps.md) | Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. | [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/SmsCampaignsRecipients.md b/docs/Model/SmsCampaignsRecipients.md deleted file mode 100755 index 7cfbf8a3..00000000 --- a/docs/Model/SmsCampaignsRecipients.md +++ /dev/null @@ -1,11 +0,0 @@ -# SmsCampaignsRecipients - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**list_ids** | **int[]** | Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty | -**exclusion_list_ids** | **int[]** | List ids which have to be excluded from a campaign | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/SmtpTemplate.md b/docs/Model/SmtpTemplate.md deleted file mode 100755 index 10f0c600..00000000 --- a/docs/Model/SmtpTemplate.md +++ /dev/null @@ -1,19 +0,0 @@ -# SmtpTemplate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | **string** | Tag of the template | [optional] -**sender** | [**\Swagger\Client\Model\SmtptemplatesSender**](SmtptemplatesSender.md) | | [optional] -**template_name** | **string** | Name of the template | -**html_content** | **string** | Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty | [optional] -**html_url** | **string** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] -**subject** | **string** | Subject of the template | -**reply_to** | **string** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **string** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] -**attachment_url** | **string** | Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] -**is_active** | **bool** | Status of template. isActive = true means template is active and isActive = false means template is inactive | [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/SmtpTemplate1.md b/docs/Model/SmtpTemplate1.md deleted file mode 100755 index 77e71872..00000000 --- a/docs/Model/SmtpTemplate1.md +++ /dev/null @@ -1,19 +0,0 @@ -# SmtpTemplate1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | **string** | Tag of the template | [optional] -**sender** | [**\Swagger\Client\Model\SmtptemplatestemplateIdSender**](SmtptemplatestemplateIdSender.md) | | [optional] -**template_name** | **string** | Name of the template | [optional] -**html_content** | **string** | Required if htmlUrl is empty. Body of the message (HTML must have more than 10 characters) | [optional] -**html_url** | **string** | Required if htmlContent is empty. URL to the body of the email (HTML) | [optional] -**subject** | **string** | Subject of the email | [optional] -**reply_to** | **string** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **string** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. These attributes must already exist in contacts database | [optional] -**attachment_url** | **string** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] -**is_active** | **bool** | Status of the template. isActive = false means template is inactive, isActive = true means template is active | [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/Status.md b/docs/Model/Status.md deleted file mode 100755 index 56a84e2c..00000000 --- a/docs/Model/Status.md +++ /dev/null @@ -1,10 +0,0 @@ -# Status - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/Status1.md b/docs/Model/Status1.md deleted file mode 100755 index 4d277cf2..00000000 --- a/docs/Model/Status1.md +++ /dev/null @@ -1,10 +0,0 @@ -# Status1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Model/UpdateChild.md b/docs/Model/UpdateChild.md old mode 100755 new mode 100644 index 24aa0bda..722895ec --- a/docs/Model/UpdateChild.md +++ b/docs/Model/UpdateChild.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **string** | New Email address to update the child account | [optional] -**first_name** | **string** | New First name to use to update the child account | [optional] -**last_name** | **string** | New Last name to use to update the child account | [optional] -**company_name** | **string** | New Company name to use to update the child account | [optional] +**firstName** | **string** | New First name to use to update the child account | [optional] +**lastName** | **string** | New Last name to use to update the child account | [optional] +**companyName** | **string** | New Company name to use to update the child account | [optional] **password** | **string** | New password for the child account to login | [optional] **ips** | **int[]** | | [optional] diff --git a/docs/Model/UpdateContact.md b/docs/Model/UpdateContact.md old mode 100755 new mode 100644 index 8e1c8392..04d87798 --- a/docs/Model/UpdateContact.md +++ b/docs/Model/UpdateContact.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attributes** | **map[string,string]** | | [optional] -**email_blacklisted** | **bool** | Blacklist the contact for emails (emailBlacklisted = true) | [optional] -**sms_blacklisted** | **bool** | Blacklist the contact for SMS (smsBlacklisted = true) | [optional] -**list_ids** | **int[]** | Ids of the lists to add the contact to | [optional] -**unlink_list_ids** | **int[]** | Ids of the lists to remove the contact from | [optional] +**emailBlacklisted** | **bool** | Blacklist the contact for emails (emailBlacklisted = true) | [optional] +**smsBlacklisted** | **bool** | Blacklist the contact for SMS (smsBlacklisted = true) | [optional] +**listIds** | **int[]** | Ids of the lists to add the contact to | [optional] +**unlinkListIds** | **int[]** | Ids of the lists to remove the contact from | [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/UpdateContact1.md b/docs/Model/UpdateContact1.md deleted file mode 100755 index f7442420..00000000 --- a/docs/Model/UpdateContact1.md +++ /dev/null @@ -1,14 +0,0 @@ -# UpdateContact1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | **map[string,string]** | | [optional] -**email_blacklisted** | **bool** | Blacklist the contact for emails (emailBlacklisted = true) | [optional] -**sms_blacklisted** | **bool** | Blacklist the contact for SMS (smsBlacklisted = true) | [optional] -**list_ids** | **int[]** | Ids of the lists to add the contact to | [optional] -**unlink_list_ids** | **int[]** | Ids of the lists to remove the contact from | [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/UpdateEmailCampaign.md b/docs/Model/UpdateEmailCampaign.md old mode 100755 new mode 100644 index b6c40f23..288d43c5 --- a/docs/Model/UpdateEmailCampaign.md +++ b/docs/Model/UpdateEmailCampaign.md @@ -4,22 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tag** | **string** | Tag of the campaign | [optional] -**sender** | [**\Swagger\Client\Model\EmailCampaignscampaignIdSender**](EmailCampaignscampaignIdSender.md) | | [optional] +**sender** | [**\Swagger\Client\Model\UpdateEmailCampaignSender**](UpdateEmailCampaignSender.md) | | [optional] **name** | **string** | Name of the campaign | [optional] -**html_content** | **string** | Body of the message (HTML version). REQUIRED if htmlUrl is empty | [optional] -**html_url** | **string** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] -**scheduled_at** | **string** | Date and time on which the campaign has to run | [optional] +**htmlContent** | **string** | Body of the message (HTML version). REQUIRED if htmlUrl is empty | [optional] +**htmlUrl** | **string** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] +**scheduledAt** | **string** | Date and time on which the campaign has to run | [optional] **subject** | **string** | Subject of the campaign | [optional] -**reply_to** | **string** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **string** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] -**recipients** | [**\Swagger\Client\Model\EmailCampaignscampaignIdRecipients**](EmailCampaignscampaignIdRecipients.md) | | [optional] -**attachment_url** | **string** | Absolute url of the attachment. Url not allowed from local machine. File must be hosted somewhere.Possilbe extension values are xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] -**inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. You cannot send a campaign of more than 4MB with images embedded in the email. Campaigns with the images embedded in the email must be sent to less than 5000 contacts. | [optional] [default to false] -**mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] +**replyTo** | **string** | Email on which campaign recipients will be able to reply to | [optional] +**toField** | **string** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] +**recipients** | [**\Swagger\Client\Model\UpdateEmailCampaignRecipients**](UpdateEmailCampaignRecipients.md) | | [optional] +**attachmentUrl** | **string** | Absolute url of the attachment. Url not allowed from local machine. File must be hosted somewhere.Possilbe extension values are xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] +**inlineImageActivation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. You cannot send a campaign of more than 4MB with images embedded in the email. Campaigns with the images embedded in the email must be sent to less than 5000 contacts. | [optional] [default to false] +**mirrorActive** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] [default to false] **footer** | **string** | Footer of the email campaign | [optional] **header** | **string** | Header of the email campaign | [optional] -**utm_campaign** | **string** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [optional] +**utmCampaign** | **string** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [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 new file mode 100644 index 00000000..1852f7f9 --- /dev/null +++ b/docs/Model/UpdateEmailCampaignRecipients.md @@ -0,0 +1,11 @@ +# UpdateEmailCampaignRecipients + +## Properties +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] + +[[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/EmailCampaignscampaignIdSender.md b/docs/Model/UpdateEmailCampaignSender.md old mode 100755 new mode 100644 similarity index 93% rename from docs/Model/EmailCampaignscampaignIdSender.md rename to docs/Model/UpdateEmailCampaignSender.md index 501706b3..9490b3c3 --- a/docs/Model/EmailCampaignscampaignIdSender.md +++ b/docs/Model/UpdateEmailCampaignSender.md @@ -1,4 +1,4 @@ -# EmailCampaignscampaignIdSender +# UpdateEmailCampaignSender ## Properties Name | Type | Description | Notes diff --git a/docs/Model/UpdateList.md b/docs/Model/UpdateList.md old mode 100755 new mode 100644 index 16f50195..bd3670e5 --- a/docs/Model/UpdateList.md +++ b/docs/Model/UpdateList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | Name of the list. Only one parameter can be update at once | [optional] -**folder_id** | **int** | Id of the folder in which to move the list. Only one parameter can updated at once | [optional] +**folderId** | **int** | Id of the folder in which to move the list. Only one parameter can updated at once | [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/UpdateList1.md b/docs/Model/UpdateList1.md deleted file mode 100755 index 503ebe6b..00000000 --- a/docs/Model/UpdateList1.md +++ /dev/null @@ -1,11 +0,0 @@ -# UpdateList1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | Name of the list. Only one parameter can be update at once | [optional] -**folder_id** | **int** | Id of the folder in which to move the list. Only one parameter can updated at once | [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/UpdateSender.md b/docs/Model/UpdateSender.md index c2f846d7..260c3284 100755 --- a/docs/Model/UpdateSender.md +++ b/docs/Model/UpdateSender.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | From Name to update the sender | [optional] **email** | **string** | From Email to update the sender | [optional] -**ips** | [**\Swagger\Client\Model\SendersIps[]**](SendersIps.md) | Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. | [optional] +**ips** | [**\Swagger\Client\Model\CreateSenderIps[]**](CreateSenderIps.md) | Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. | [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 old mode 100755 new mode 100644 index 5c1723d0..78e7b422 --- a/docs/Model/UpdateSmsCampaign.md +++ b/docs/Model/UpdateSmsCampaign.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **name** | **string** | Name of the campaign | [optional] **sender** | **string** | Name of the sender. The number of characters is limited to 11 | [optional] **content** | **string** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] -**recipients** | [**\Swagger\Client\Model\SmsCampaignsRecipients**](SmsCampaignsRecipients.md) | | [optional] -**scheduled_at** | **string** | Date and time on which the campaign has to run | [optional] +**recipients** | [**\Swagger\Client\Model\CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] +**scheduledAt** | **string** | Date and time on which the campaign has to run | [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/UpdateSmsCampaign1.md b/docs/Model/UpdateSmsCampaign1.md deleted file mode 100755 index 6dd55330..00000000 --- a/docs/Model/UpdateSmsCampaign1.md +++ /dev/null @@ -1,14 +0,0 @@ -# UpdateSmsCampaign1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | Name of the campaign | [optional] -**sender** | **string** | Name of the sender. The number of characters is limited to 11 | [optional] -**content** | **string** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] -**recipients** | [**\Swagger\Client\Model\SmsCampaignsRecipients**](SmsCampaignsRecipients.md) | | [optional] -**scheduled_at** | **string** | Date and time on which the campaign has to run | [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/UpdateSmtpTemplate.md b/docs/Model/UpdateSmtpTemplate.md old mode 100755 new mode 100644 index 4a551000..8918a606 --- a/docs/Model/UpdateSmtpTemplate.md +++ b/docs/Model/UpdateSmtpTemplate.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tag** | **string** | Tag of the template | [optional] -**sender** | [**\Swagger\Client\Model\SmtptemplatestemplateIdSender**](SmtptemplatestemplateIdSender.md) | | [optional] -**template_name** | **string** | Name of the template | [optional] -**html_content** | **string** | Required if htmlUrl is empty. Body of the message (HTML must have more than 10 characters) | [optional] -**html_url** | **string** | Required if htmlContent is empty. URL to the body of the email (HTML) | [optional] +**sender** | [**\Swagger\Client\Model\UpdateSmtpTemplateSender**](UpdateSmtpTemplateSender.md) | | [optional] +**templateName** | **string** | Name of the template | [optional] +**htmlContent** | **string** | Required if htmlUrl is empty. Body of the message (HTML must have more than 10 characters) | [optional] +**htmlUrl** | **string** | Required if htmlContent is empty. URL to the body of the email (HTML) | [optional] **subject** | **string** | Subject of the email | [optional] -**reply_to** | **string** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **string** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. These attributes must already exist in contacts database | [optional] -**attachment_url** | **string** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] -**is_active** | **bool** | Status of the template. isActive = false means template is inactive, isActive = true means template is active | [optional] +**replyTo** | **string** | Email on which campaign recipients will be able to reply to | [optional] +**toField** | **string** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. These attributes must already exist in contacts database | [optional] +**attachmentUrl** | **string** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf | [optional] +**isActive** | **bool** | Status of the template. isActive = false means template is inactive, isActive = true means template is active | [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/SmtptemplatestemplateIdSender.md b/docs/Model/UpdateSmtpTemplateSender.md old mode 100755 new mode 100644 similarity index 92% rename from docs/Model/SmtptemplatestemplateIdSender.md rename to docs/Model/UpdateSmtpTemplateSender.md index 907dc794..3c693403 --- a/docs/Model/SmtptemplatestemplateIdSender.md +++ b/docs/Model/UpdateSmtpTemplateSender.md @@ -1,4 +1,4 @@ -# SmtptemplatestemplateIdSender +# UpdateSmtpTemplateSender ## Properties Name | Type | Description | Notes diff --git a/docs/Model/UpdateWebhook1.md b/docs/Model/UpdateWebhook1.md deleted file mode 100755 index 7846ed39..00000000 --- a/docs/Model/UpdateWebhook1.md +++ /dev/null @@ -1,12 +0,0 @@ -# UpdateWebhook1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **string** | URL of the webhook | [optional] -**description** | **string** | Description of the webhook | [optional] -**events** | **string[]** | Events triggering the webhook. Possible values for Transactional type webhook – request, delivered, hardBounce, softBounce, blocked, spam, invalid, deferred, click, opened, uniqueOpened and unsubscribed and possible values for Marketing type webhook – spam, opened, click, hardBounce, softBounce, unsubscribed, listAddition and delivered | [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/README.md b/docs/README.md deleted file mode 100644 index d9aec6da..00000000 --- a/docs/README.md +++ /dev/null @@ -1,377 +0,0 @@ -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```php -setApiKey('api-key', 'YOUR_API_KEY'); - -$api_instance = new Swagger\Client\Api\AccountApi(); - -try { - $result = $api_instance->getAccount(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AccountApi->getAccount: ', $e->getMessage(), PHP_EOL; -} - -?> -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://api.sendinblue.com/v3* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AccountApi* | [**getAccount**](Api/AccountApi.md#getaccount) | **GET** /account | Get your account informations, plans and credits details -*AttributesApi* | [**createAttribute**](Api/AttributesApi.md#createattribute) | **POST** /contacts/attributes | Creates contact attributes -*AttributesApi* | [**deleteAttribute**](Api/AttributesApi.md#deleteattribute) | **DELETE** /contacts/attributes/{attributeId} | Deletes an attribute -*AttributesApi* | [**getAttributes**](Api/AttributesApi.md#getattributes) | **GET** /contacts/attributes | Lists all attributes -*ContactsApi* | [**addContactToList**](Api/ContactsApi.md#addcontacttolist) | **POST** /contacts/lists/{listId}/contacts/add | Add existing contacts to a list -*ContactsApi* | [**createAttribute**](Api/ContactsApi.md#createattribute) | **POST** /contacts/attributes | Creates contact attributes -*ContactsApi* | [**createContact**](Api/ContactsApi.md#createcontact) | **POST** /contacts | Create a contact -*ContactsApi* | [**createFolder**](Api/ContactsApi.md#createfolder) | **POST** /contacts/folders | Create a folder -*ContactsApi* | [**createList**](Api/ContactsApi.md#createlist) | **POST** /contacts/lists | Create a list -*ContactsApi* | [**deleteAttribute**](Api/ContactsApi.md#deleteattribute) | **DELETE** /contacts/attributes/{attributeId} | Deletes an attribute -*ContactsApi* | [**deleteFolder**](Api/ContactsApi.md#deletefolder) | **DELETE** /contacts/folders/{folderId} | Delete a folder (and all its lists) -*ContactsApi* | [**deleteList**](Api/ContactsApi.md#deletelist) | **DELETE** /contacts/lists/{listId} | Delete a list -*ContactsApi* | [**getAttributes**](Api/ContactsApi.md#getattributes) | **GET** /contacts/attributes | Lists all attributes -*ContactsApi* | [**getContactInfo**](Api/ContactsApi.md#getcontactinfo) | **GET** /contacts/{email} | Retrieves contact informations -*ContactsApi* | [**getContactStats**](Api/ContactsApi.md#getcontactstats) | **GET** /contacts/{email}/campaignStats | Get the campaigns statistics for a contact -*ContactsApi* | [**getContacts**](Api/ContactsApi.md#getcontacts) | **GET** /contacts | Get all the contacts -*ContactsApi* | [**getContactsFromList**](Api/ContactsApi.md#getcontactsfromlist) | **GET** /contacts/lists/{listId}/contacts | Get the contacts in a list -*ContactsApi* | [**getFolder**](Api/ContactsApi.md#getfolder) | **GET** /contacts/folders/{folderId} | Returns folder details -*ContactsApi* | [**getFolderLists**](Api/ContactsApi.md#getfolderlists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder -*ContactsApi* | [**getFolders**](Api/ContactsApi.md#getfolders) | **GET** /contacts/folders | Get all the folders -*ContactsApi* | [**getList**](Api/ContactsApi.md#getlist) | **GET** /contacts/lists/{listId} | Get the details of a list -*ContactsApi* | [**getLists**](Api/ContactsApi.md#getlists) | **GET** /contacts/lists | Get all the lists -*ContactsApi* | [**importContacts**](Api/ContactsApi.md#importcontacts) | **POST** /contacts/import | Import contacts -*ContactsApi* | [**removeContactToList**](Api/ContactsApi.md#removecontacttolist) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list -*ContactsApi* | [**requestContactExport**](Api/ContactsApi.md#requestcontactexport) | **POST** /contacts/export | Export contacts -*ContactsApi* | [**updateContact**](Api/ContactsApi.md#updatecontact) | **PUT** /contacts/{email} | Updates a contact -*ContactsApi* | [**updateFolder**](Api/ContactsApi.md#updatefolder) | **PUT** /contacts/folders/{folderId} | Update a contact folder -*ContactsApi* | [**updateList**](Api/ContactsApi.md#updatelist) | **PUT** /contacts/lists/{listId} | Update a list -*EmailCampaignsApi* | [**createEmailCampaign**](Api/EmailCampaignsApi.md#createemailcampaign) | **POST** /emailCampaigns | Create an email campaign -*EmailCampaignsApi* | [**deleteEmailCampaigns**](Api/EmailCampaignsApi.md#deleteemailcampaigns) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign -*EmailCampaignsApi* | [**emailExportRecipients**](Api/EmailCampaignsApi.md#emailexportrecipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of a campaign -*EmailCampaignsApi* | [**getEmailCampaign**](Api/EmailCampaignsApi.md#getemailcampaign) | **GET** /emailCampaigns/{campaignId} | Get campaign informations -*EmailCampaignsApi* | [**getEmailCampaigns**](Api/EmailCampaignsApi.md#getemailcampaigns) | **GET** /emailCampaigns | Return all your created campaigns -*EmailCampaignsApi* | [**sendEmailCampaignNow**](Api/EmailCampaignsApi.md#sendemailcampaignnow) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign id of the campaign immediately -*EmailCampaignsApi* | [**sendReport**](Api/EmailCampaignsApi.md#sendreport) | **POST** /emailCampaigns/{campaignId}/sendReport | Send the report of a campaigns -*EmailCampaignsApi* | [**sendTestEmail**](Api/EmailCampaignsApi.md#sendtestemail) | **POST** /emailCampaigns/{campaignId}/sendTest | Send an email campaign to your test list -*EmailCampaignsApi* | [**updateCampaignStatus**](Api/EmailCampaignsApi.md#updatecampaignstatus) | **PUT** /emailCampaigns/{campaignId}/status | Update a campaign status -*EmailCampaignsApi* | [**updateEmailCampaigns**](Api/EmailCampaignsApi.md#updateemailcampaigns) | **PUT** /emailCampaigns/{campaignId} | Update a campaign -*FoldersApi* | [**createFolder**](Api/FoldersApi.md#createfolder) | **POST** /contacts/folders | Create a folder -*FoldersApi* | [**deleteFolder**](Api/FoldersApi.md#deletefolder) | **DELETE** /contacts/folders/{folderId} | Delete a folder (and all its lists) -*FoldersApi* | [**getFolder**](Api/FoldersApi.md#getfolder) | **GET** /contacts/folders/{folderId} | Returns folder details -*FoldersApi* | [**getFolderLists**](Api/FoldersApi.md#getfolderlists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder -*FoldersApi* | [**getFolders**](Api/FoldersApi.md#getfolders) | **GET** /contacts/folders | Get all the folders -*FoldersApi* | [**updateFolder**](Api/FoldersApi.md#updatefolder) | **PUT** /contacts/folders/{folderId} | Update a contact folder -*ListsApi* | [**addContactToList**](Api/ListsApi.md#addcontacttolist) | **POST** /contacts/lists/{listId}/contacts/add | Add existing contacts to a list -*ListsApi* | [**createList**](Api/ListsApi.md#createlist) | **POST** /contacts/lists | Create a list -*ListsApi* | [**deleteList**](Api/ListsApi.md#deletelist) | **DELETE** /contacts/lists/{listId} | Delete a list -*ListsApi* | [**getContactsFromList**](Api/ListsApi.md#getcontactsfromlist) | **GET** /contacts/lists/{listId}/contacts | Get the contacts in a list -*ListsApi* | [**getFolderLists**](Api/ListsApi.md#getfolderlists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder -*ListsApi* | [**getList**](Api/ListsApi.md#getlist) | **GET** /contacts/lists/{listId} | Get the details of a list -*ListsApi* | [**getLists**](Api/ListsApi.md#getlists) | **GET** /contacts/lists | Get all the lists -*ListsApi* | [**removeContactToList**](Api/ListsApi.md#removecontacttolist) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list -*ListsApi* | [**updateList**](Api/ListsApi.md#updatelist) | **PUT** /contacts/lists/{listId} | Update a list -*ProcessApi* | [**getProcess**](Api/ProcessApi.md#getprocess) | **GET** /processes/{processId} | Return the informations for a process -*ProcessApi* | [**getProcesses**](Api/ProcessApi.md#getprocesses) | **GET** /processes | Return all the processes for your account -*ResellerApi* | [**addCredits**](Api/ResellerApi.md#addcredits) | **POST** /reseller/children/{childId}/credits/add | Add Email and/or SMS credits to a specific child account -*ResellerApi* | [**associateIpToChild**](Api/ResellerApi.md#associateiptochild) | **POST** /reseller/children/{childId}/ips/associate | Associate a dedicated IP to the child -*ResellerApi* | [**createResellerChild**](Api/ResellerApi.md#createresellerchild) | **POST** /reseller/children | Creates a reseller child -*ResellerApi* | [**deleteResellerChild**](Api/ResellerApi.md#deleteresellerchild) | **DELETE** /reseller/children/{childId} | Deletes a single reseller child based on the childId supplied -*ResellerApi* | [**dissociateIpFromChild**](Api/ResellerApi.md#dissociateipfromchild) | **POST** /reseller/children/{childId}/ips/dissociate | Dissociate a dedicated IP to the child -*ResellerApi* | [**getChildInfo**](Api/ResellerApi.md#getchildinfo) | **GET** /reseller/children/{childId} | Gets the info about a specific child account -*ResellerApi* | [**getResellerChilds**](Api/ResellerApi.md#getresellerchilds) | **GET** /reseller/children | Gets the list of all reseller's children accounts -*ResellerApi* | [**removeCredits**](Api/ResellerApi.md#removecredits) | **POST** /reseller/children/{childId}/credits/remove | Remove Email and/or SMS credits from a specific child account -*ResellerApi* | [**updateResellerChild**](Api/ResellerApi.md#updateresellerchild) | **PUT** /reseller/children/{childId} | Updates infos of reseller's child based on the childId supplied -*SMSCampaignsApi* | [**createSMSCampaign**](Api/SMSCampaignsApi.md#createsmscampaign) | **POST** /smsCampaigns | Creates a SMS campaign -*SMSCampaignsApi* | [**deleteSMSCampaigns**](Api/SMSCampaignsApi.md#deletesmscampaigns) | **DELETE** /smsCampaigns/{campaignId} | Delete the SMS campaign -*SMSCampaignsApi* | [**getSMSCampaigns**](Api/SMSCampaignsApi.md#getsmscampaigns) | **GET** /smsCampaigns | Returns the informations for all your created SMS campaigns -*SMSCampaignsApi* | [**getSmsCampaign**](Api/SMSCampaignsApi.md#getsmscampaign) | **GET** /smsCampaigns/{campaignId} | Get a SMS campaign -*SMSCampaignsApi* | [**requestSMSRecipientExport**](Api/SMSCampaignsApi.md#requestsmsrecipientexport) | **POST** /smsCampaigns/{campaignId}/exportRecipients | Exports the recipients of the specified campaign. -*SMSCampaignsApi* | [**sendSMSCampaignNow**](Api/SMSCampaignsApi.md#sendsmscampaignnow) | **POST** /smsCampaigns/{campaignId}/sendNow | Send your SMS campaign immediately -*SMSCampaignsApi* | [**sendSMSReport**](Api/SMSCampaignsApi.md#sendsmsreport) | **POST** /smsCampaigns/{campaignId}/sendReport | Send report of SMS campaigns -*SMSCampaignsApi* | [**sendTestSms**](Api/SMSCampaignsApi.md#sendtestsms) | **POST** /smsCampaigns/{campaignId}/sendTest | Send an SMS -*SMSCampaignsApi* | [**updateSMSCampaignStatus**](Api/SMSCampaignsApi.md#updatesmscampaignstatus) | **PUT** /smsCampaigns/{campaignId}/status | Update the campaign status -*SMSCampaignsApi* | [**updateSmsCampaign**](Api/SMSCampaignsApi.md#updatesmscampaign) | **PUT** /smsCampaigns/{campaignId} | Updates a SMS campaign -*SMTPApi* | [**createSmtpTemplate**](Api/SMTPApi.md#createsmtptemplate) | **POST** /smtp/templates | Create an smtp template -*SMTPApi* | [**deleteHardbounces**](Api/SMTPApi.md#deletehardbounces) | **POST** /smtp/deleteHardbounces | Delete hardbounces -*SMTPApi* | [**getAggregatedSmtpReport**](Api/SMTPApi.md#getaggregatedsmtpreport) | **GET** /smtp/statistics/aggregatedReport | Get your SMTP activity aggregated over a period of time -*SMTPApi* | [**getEmailEventReport**](Api/SMTPApi.md#getemaileventreport) | **GET** /smtp/statistics/events | Get all your SMTP activity (unaggregated events) -*SMTPApi* | [**getSmtpReport**](Api/SMTPApi.md#getsmtpreport) | **GET** /smtp/statistics/reports | Get your SMTP activity aggregated per day -*SMTPApi* | [**getSmtpTemplate**](Api/SMTPApi.md#getsmtptemplate) | **GET** /smtp/templates/{templateId} | Returns the template informations -*SMTPApi* | [**getSmtpTemplates**](Api/SMTPApi.md#getsmtptemplates) | **GET** /smtp/templates | Get the list of SMTP templates -*SMTPApi* | [**sendTemplate**](Api/SMTPApi.md#sendtemplate) | **POST** /smtp/templates/{templateId}/send | Send a template -*SMTPApi* | [**sendTestTemplate**](Api/SMTPApi.md#sendtesttemplate) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list -*SMTPApi* | [**sendTransacEmail**](Api/SMTPApi.md#sendtransacemail) | **POST** /smtp/email | Send a transactional email -*SMTPApi* | [**updateSmtpTemplate**](Api/SMTPApi.md#updatesmtptemplate) | **PUT** /smtp/templates/{templateId} | Updates an smtp templates -*SendersApi* | [**createSender**](Api/SendersApi.md#createsender) | **POST** /senders | Create a new sender -*SendersApi* | [**deleteSender**](Api/SendersApi.md#deletesender) | **DELETE** /senders/{senderId} | Delete a sender -*SendersApi* | [**getIps**](Api/SendersApi.md#getips) | **GET** /senders/ips | Return all the dedicated IPs for your account -*SendersApi* | [**getIpsFromSender**](Api/SendersApi.md#getipsfromsender) | **GET** /senders/{senderId}/ips | Return all the dedicated IPs for a sender -*SendersApi* | [**getSenders**](Api/SendersApi.md#getsenders) | **GET** /senders | Get the list of all your senders -*SendersApi* | [**updateSender**](Api/SendersApi.md#updatesender) | **PUT** /senders/{senderId} | Update a sender -*TransactionalSMSApi* | [**getSmsEvents**](Api/TransactionalSMSApi.md#getsmsevents) | **GET** /transactionalSMS/statistics/events | Get all the SMS activity (unaggregated events) -*TransactionalSMSApi* | [**getTransacAggregatedSmsReport**](Api/TransactionalSMSApi.md#gettransacaggregatedsmsreport) | **GET** /transactionalSMS/statistics/aggregatedReport | Get your SMS activity aggregated over a period of time -*TransactionalSMSApi* | [**getTransacSmsReport**](Api/TransactionalSMSApi.md#gettransacsmsreport) | **GET** /transactionalSMS/statistics/reports | Get your SMS activity aggregated per day -*TransactionalSMSApi* | [**sendTransacSms**](Api/TransactionalSMSApi.md#sendtransacsms) | **POST** /transactionalSMS/sms | Send the SMS campaign to the specified mobile number -*WebhooksApi* | [**createWebhook**](Api/WebhooksApi.md#createwebhook) | **POST** /webhooks | Create a webhook -*WebhooksApi* | [**deleteWebhook**](Api/WebhooksApi.md#deletewebhook) | **DELETE** /webhooks/{webhookId} | Delete a webhook -*WebhooksApi* | [**getWebhook**](Api/WebhooksApi.md#getwebhook) | **GET** /webhooks/{webhookId} | Get a webhook details -*WebhooksApi* | [**getWebhooks**](Api/WebhooksApi.md#getwebhooks) | **GET** /webhooks | Get all webhooks -*WebhooksApi* | [**updateWebhook**](Api/WebhooksApi.md#updatewebhook) | **PUT** /webhooks/{webhookId} | Update a webhook - - -## Documentation For Models - - - [AddCredits](docs/Model/AddCredits.md) - - [AddCredits1](docs/Model/AddCredits1.md) - - [AddRemoveContactToList](docs/Model/AddRemoveContactToList.md) - - [ContactEmails](docs/Model/ContactEmails.md) - - [ContactEmails1](docs/Model/ContactEmails1.md) - - [ContactsattributesEnumemaration](docs/Model/ContactsattributesEnumemaration.md) - - [ContactsimportNewList](docs/Model/ContactsimportNewList.md) - - [CreaUpdateFolder](docs/Model/CreaUpdateFolder.md) - - [CreateAttribute](docs/Model/CreateAttribute.md) - - [CreateAttribute1](docs/Model/CreateAttribute1.md) - - [CreateChild](docs/Model/CreateChild.md) - - [CreateContact](docs/Model/CreateContact.md) - - [CreateContact1](docs/Model/CreateContact1.md) - - [CreateEmailCampaign](docs/Model/CreateEmailCampaign.md) - - [CreateList](docs/Model/CreateList.md) - - [CreateList1](docs/Model/CreateList1.md) - - [CreateModel](docs/Model/CreateModel.md) - - [CreateSender](docs/Model/CreateSender.md) - - [CreateSenderModel](docs/Model/CreateSenderModel.md) - - [CreateSmsCampaign](docs/Model/CreateSmsCampaign.md) - - [CreateSmsCampaign1](docs/Model/CreateSmsCampaign1.md) - - [CreateSmtpEmail](docs/Model/CreateSmtpEmail.md) - - [CreateSmtpTemplate](docs/Model/CreateSmtpTemplate.md) - - [CreateWebhook](docs/Model/CreateWebhook.md) - - [CreateWebhook1](docs/Model/CreateWebhook1.md) - - [CreatedProcessId](docs/Model/CreatedProcessId.md) - - [DeleteHardbounces](docs/Model/DeleteHardbounces.md) - - [DeleteHardbounces1](docs/Model/DeleteHardbounces1.md) - - [EmailCampaign](docs/Model/EmailCampaign.md) - - [EmailCampaigns](docs/Model/EmailCampaigns.md) - - [EmailCampaignsRecipients](docs/Model/EmailCampaignsRecipients.md) - - [EmailCampaignsSender](docs/Model/EmailCampaignsSender.md) - - [EmailCampaignscampaignIdRecipients](docs/Model/EmailCampaignscampaignIdRecipients.md) - - [EmailCampaignscampaignIdSender](docs/Model/EmailCampaignscampaignIdSender.md) - - [EmailCampaignscampaignIdsendReportEmail](docs/Model/EmailCampaignscampaignIdsendReportEmail.md) - - [EmailExportRecipients](docs/Model/EmailExportRecipients.md) - - [EmailTo](docs/Model/EmailTo.md) - - [ErrorModel](docs/Model/ErrorModel.md) - - [GetAccount](docs/Model/GetAccount.md) - - [GetAggregatedReport](docs/Model/GetAggregatedReport.md) - - [GetAttributes](docs/Model/GetAttributes.md) - - [GetCampaignOverview](docs/Model/GetCampaignOverview.md) - - [GetCampaignRecipients](docs/Model/GetCampaignRecipients.md) - - [GetCampaignStats](docs/Model/GetCampaignStats.md) - - [GetChildInfo](docs/Model/GetChildInfo.md) - - [GetChildrenList](docs/Model/GetChildrenList.md) - - [GetClient](docs/Model/GetClient.md) - - [GetContactCampaignStats](docs/Model/GetContactCampaignStats.md) - - [GetContactDetails](docs/Model/GetContactDetails.md) - - [GetContacts](docs/Model/GetContacts.md) - - [GetEmailCampaign](docs/Model/GetEmailCampaign.md) - - [GetEmailCampaigns](docs/Model/GetEmailCampaigns.md) - - [GetEmailEventReport](docs/Model/GetEmailEventReport.md) - - [GetExtendedCampaignOverview](docs/Model/GetExtendedCampaignOverview.md) - - [GetExtendedCampaignStats](docs/Model/GetExtendedCampaignStats.md) - - [GetExtendedClient](docs/Model/GetExtendedClient.md) - - [GetExtendedContactDetails](docs/Model/GetExtendedContactDetails.md) - - [GetExtendedList](docs/Model/GetExtendedList.md) - - [GetFolder](docs/Model/GetFolder.md) - - [GetFolderLists](docs/Model/GetFolderLists.md) - - [GetFolders](docs/Model/GetFolders.md) - - [GetIp](docs/Model/GetIp.md) - - [GetIpFromSender](docs/Model/GetIpFromSender.md) - - [GetIps](docs/Model/GetIps.md) - - [GetIpsFromSender](docs/Model/GetIpsFromSender.md) - - [GetList](docs/Model/GetList.md) - - [GetLists](docs/Model/GetLists.md) - - [GetPlan](docs/Model/GetPlan.md) - - [GetProcess](docs/Model/GetProcess.md) - - [GetProcesses](docs/Model/GetProcesses.md) - - [GetReports](docs/Model/GetReports.md) - - [GetSendersList](docs/Model/GetSendersList.md) - - [GetSmsCampaign](docs/Model/GetSmsCampaign.md) - - [GetSmsCampaign1](docs/Model/GetSmsCampaign1.md) - - [GetSmsCampaignOverview](docs/Model/GetSmsCampaignOverview.md) - - [GetSmsCampaignStats](docs/Model/GetSmsCampaignStats.md) - - [GetSmsCampaigns](docs/Model/GetSmsCampaigns.md) - - [GetSmsEventReport](docs/Model/GetSmsEventReport.md) - - [GetSmtpTemplateOverview](docs/Model/GetSmtpTemplateOverview.md) - - [GetSmtpTemplates](docs/Model/GetSmtpTemplates.md) - - [GetStatsByDomain](docs/Model/GetStatsByDomain.md) - - [GetTransacAggregatedSmsReport](docs/Model/GetTransacAggregatedSmsReport.md) - - [GetTransacSmsReport](docs/Model/GetTransacSmsReport.md) - - [GetWebhook](docs/Model/GetWebhook.md) - - [GetWebhooks](docs/Model/GetWebhooks.md) - - [InlineResponse200](docs/Model/InlineResponse200.md) - - [InlineResponse2001](docs/Model/InlineResponse2001.md) - - [InlineResponse20010](docs/Model/InlineResponse20010.md) - - [InlineResponse20011](docs/Model/InlineResponse20011.md) - - [InlineResponse20011Events](docs/Model/InlineResponse20011Events.md) - - [InlineResponse20012](docs/Model/InlineResponse20012.md) - - [InlineResponse20012Sender](docs/Model/InlineResponse20012Sender.md) - - [InlineResponse20012Templates](docs/Model/InlineResponse20012Templates.md) - - [InlineResponse20013](docs/Model/InlineResponse20013.md) - - [InlineResponse20013Webhooks](docs/Model/InlineResponse20013Webhooks.md) - - [InlineResponse20014](docs/Model/InlineResponse20014.md) - - [InlineResponse20014Contacts](docs/Model/InlineResponse20014Contacts.md) - - [InlineResponse20015](docs/Model/InlineResponse20015.md) - - [InlineResponse20015Clicked](docs/Model/InlineResponse20015Clicked.md) - - [InlineResponse20015Links](docs/Model/InlineResponse20015Links.md) - - [InlineResponse20015MessagesSent](docs/Model/InlineResponse20015MessagesSent.md) - - [InlineResponse20015Opened](docs/Model/InlineResponse20015Opened.md) - - [InlineResponse20015TransacAttributes](docs/Model/InlineResponse20015TransacAttributes.md) - - [InlineResponse20015Unsubscriptions](docs/Model/InlineResponse20015Unsubscriptions.md) - - [InlineResponse20015UnsubscriptionsAdminUnsubscription](docs/Model/InlineResponse20015UnsubscriptionsAdminUnsubscription.md) - - [InlineResponse20015UnsubscriptionsUserUnsubscription](docs/Model/InlineResponse20015UnsubscriptionsUserUnsubscription.md) - - [InlineResponse20016](docs/Model/InlineResponse20016.md) - - [InlineResponse20016Attributes](docs/Model/InlineResponse20016Attributes.md) - - [InlineResponse20016Enumeration](docs/Model/InlineResponse20016Enumeration.md) - - [InlineResponse20017](docs/Model/InlineResponse20017.md) - - [InlineResponse20017Folders](docs/Model/InlineResponse20017Folders.md) - - [InlineResponse20018](docs/Model/InlineResponse20018.md) - - [InlineResponse20018Lists](docs/Model/InlineResponse20018Lists.md) - - [InlineResponse20019](docs/Model/InlineResponse20019.md) - - [InlineResponse2001ApiKeys](docs/Model/InlineResponse2001ApiKeys.md) - - [InlineResponse2001Children](docs/Model/InlineResponse2001Children.md) - - [InlineResponse2001Credits](docs/Model/InlineResponse2001Credits.md) - - [InlineResponse2001Ips](docs/Model/InlineResponse2001Ips.md) - - [InlineResponse2001Statistics](docs/Model/InlineResponse2001Statistics.md) - - [InlineResponse2002](docs/Model/InlineResponse2002.md) - - [InlineResponse20020](docs/Model/InlineResponse20020.md) - - [InlineResponse20020CampaignStats](docs/Model/InlineResponse20020CampaignStats.md) - - [InlineResponse20021](docs/Model/InlineResponse20021.md) - - [InlineResponse20021Campaigns](docs/Model/InlineResponse20021Campaigns.md) - - [InlineResponse20021Statistics](docs/Model/InlineResponse20021Statistics.md) - - [InlineResponse20022](docs/Model/InlineResponse20022.md) - - [InlineResponse20022Events](docs/Model/InlineResponse20022Events.md) - - [InlineResponse20023](docs/Model/InlineResponse20023.md) - - [InlineResponse20024](docs/Model/InlineResponse20024.md) - - [InlineResponse20024Reports](docs/Model/InlineResponse20024Reports.md) - - [InlineResponse2003](docs/Model/InlineResponse2003.md) - - [InlineResponse2003Child](docs/Model/InlineResponse2003Child.md) - - [InlineResponse2003Reseller](docs/Model/InlineResponse2003Reseller.md) - - [InlineResponse2004](docs/Model/InlineResponse2004.md) - - [InlineResponse2004Ips](docs/Model/InlineResponse2004Ips.md) - - [InlineResponse2004Senders](docs/Model/InlineResponse2004Senders.md) - - [InlineResponse2005](docs/Model/InlineResponse2005.md) - - [InlineResponse2005Ips](docs/Model/InlineResponse2005Ips.md) - - [InlineResponse2006](docs/Model/InlineResponse2006.md) - - [InlineResponse2006Ips](docs/Model/InlineResponse2006Ips.md) - - [InlineResponse2007](docs/Model/InlineResponse2007.md) - - [InlineResponse2007Processes](docs/Model/InlineResponse2007Processes.md) - - [InlineResponse2008](docs/Model/InlineResponse2008.md) - - [InlineResponse2008Campaigns](docs/Model/InlineResponse2008Campaigns.md) - - [InlineResponse2008Recipients](docs/Model/InlineResponse2008Recipients.md) - - [InlineResponse2008RecipientsExclusionLists](docs/Model/InlineResponse2008RecipientsExclusionLists.md) - - [InlineResponse2008RecipientsLists](docs/Model/InlineResponse2008RecipientsLists.md) - - [InlineResponse2008Sender](docs/Model/InlineResponse2008Sender.md) - - [InlineResponse2008Statistics](docs/Model/InlineResponse2008Statistics.md) - - [InlineResponse2008StatisticsCampaignStats](docs/Model/InlineResponse2008StatisticsCampaignStats.md) - - [InlineResponse2008StatisticsLinksStats](docs/Model/InlineResponse2008StatisticsLinksStats.md) - - [InlineResponse2009](docs/Model/InlineResponse2009.md) - - [InlineResponse2009Reports](docs/Model/InlineResponse2009Reports.md) - - [InlineResponse200Address](docs/Model/InlineResponse200Address.md) - - [InlineResponse200MarketingAutomation](docs/Model/InlineResponse200MarketingAutomation.md) - - [InlineResponse200Plan](docs/Model/InlineResponse200Plan.md) - - [InlineResponse200Relay](docs/Model/InlineResponse200Relay.md) - - [InlineResponse200RelayData](docs/Model/InlineResponse200RelayData.md) - - [InlineResponse201](docs/Model/InlineResponse201.md) - - [InlineResponse2011](docs/Model/InlineResponse2011.md) - - [InlineResponse2012](docs/Model/InlineResponse2012.md) - - [InlineResponse2013](docs/Model/InlineResponse2013.md) - - [InlineResponse2014](docs/Model/InlineResponse2014.md) - - [InlineResponse2014Contacts](docs/Model/InlineResponse2014Contacts.md) - - [InlineResponse2015](docs/Model/InlineResponse2015.md) - - [InlineResponse202](docs/Model/InlineResponse202.md) - - [InlineResponse400](docs/Model/InlineResponse400.md) - - [InlineResponse4001](docs/Model/InlineResponse4001.md) - - [InlineResponse403](docs/Model/InlineResponse403.md) - - [IpId](docs/Model/IpId.md) - - [IpId1](docs/Model/IpId1.md) - - [ManageIp](docs/Model/ManageIp.md) - - [Name](docs/Model/Name.md) - - [Name1](docs/Model/Name1.md) - - [PostContactInfo](docs/Model/PostContactInfo.md) - - [PostSendFailed](docs/Model/PostSendFailed.md) - - [PostSendSmsTestFailed](docs/Model/PostSendSmsTestFailed.md) - - [RecipientExport](docs/Model/RecipientExport.md) - - [RecipientExport1](docs/Model/RecipientExport1.md) - - [RemainingCreditModel](docs/Model/RemainingCreditModel.md) - - [RemoveCredits](docs/Model/RemoveCredits.md) - - [RemoveCredits1](docs/Model/RemoveCredits1.md) - - [RequestContactExport](docs/Model/RequestContactExport.md) - - [RequestContactExport1](docs/Model/RequestContactExport1.md) - - [RequestContactImport](docs/Model/RequestContactImport.md) - - [RequestContactImport1](docs/Model/RequestContactImport1.md) - - [RequestSMSRecipientExport](docs/Model/RequestSMSRecipientExport.md) - - [ResellerChild](docs/Model/ResellerChild.md) - - [ResellerChild1](docs/Model/ResellerChild1.md) - - [SendEmail](docs/Model/SendEmail.md) - - [SendEmail1](docs/Model/SendEmail1.md) - - [SendReport](docs/Model/SendReport.md) - - [SendReport1](docs/Model/SendReport1.md) - - [SendReport2](docs/Model/SendReport2.md) - - [SendSms](docs/Model/SendSms.md) - - [SendSmtpEmail](docs/Model/SendSmtpEmail.md) - - [SendSmtpEmail1](docs/Model/SendSmtpEmail1.md) - - [SendTemplateEmail](docs/Model/SendTemplateEmail.md) - - [SendTestEmail](docs/Model/SendTestEmail.md) - - [SendTestEmail1](docs/Model/SendTestEmail1.md) - - [SendTestSms](docs/Model/SendTestSms.md) - - [SendTestSms1](docs/Model/SendTestSms1.md) - - [SendTransacSms](docs/Model/SendTransacSms.md) - - [SendTransacSms1](docs/Model/SendTransacSms1.md) - - [Sender](docs/Model/Sender.md) - - [Sender1](docs/Model/Sender1.md) - - [SendersIps](docs/Model/SendersIps.md) - - [SmsCampaignsRecipients](docs/Model/SmsCampaignsRecipients.md) - - [SmtpTemplate](docs/Model/SmtpTemplate.md) - - [SmtpTemplate1](docs/Model/SmtpTemplate1.md) - - [SmtpemailAttachment](docs/Model/SmtpemailAttachment.md) - - [SmtpemailBcc](docs/Model/SmtpemailBcc.md) - - [SmtpemailCc](docs/Model/SmtpemailCc.md) - - [SmtpemailReplyTo](docs/Model/SmtpemailReplyTo.md) - - [SmtpemailSender](docs/Model/SmtpemailSender.md) - - [SmtpemailTo](docs/Model/SmtpemailTo.md) - - [SmtptemplatesSender](docs/Model/SmtptemplatesSender.md) - - [SmtptemplatestemplateIdSender](docs/Model/SmtptemplatestemplateIdSender.md) - - [SmtptemplatestemplateIdsendAttachment](docs/Model/SmtptemplatestemplateIdsendAttachment.md) - - [Status](docs/Model/Status.md) - - [Status1](docs/Model/Status1.md) - - [UpdateCampaignStatus](docs/Model/UpdateCampaignStatus.md) - - [UpdateChild](docs/Model/UpdateChild.md) - - [UpdateContact](docs/Model/UpdateContact.md) - - [UpdateContact1](docs/Model/UpdateContact1.md) - - [UpdateEmailCampaign](docs/Model/UpdateEmailCampaign.md) - - [UpdateList](docs/Model/UpdateList.md) - - [UpdateList1](docs/Model/UpdateList1.md) - - [UpdateSender](docs/Model/UpdateSender.md) - - [UpdateSmsCampaign](docs/Model/UpdateSmsCampaign.md) - - [UpdateSmsCampaign1](docs/Model/UpdateSmsCampaign1.md) - - [UpdateSmtpTemplate](docs/Model/UpdateSmtpTemplate.md) - - [UpdateWebhook](docs/Model/UpdateWebhook.md) - - [UpdateWebhook1](docs/Model/UpdateWebhook1.md) - - -## Documentation For Authorization - - -## api-key - -- **Type**: API key -- **API key parameter name**: api-key -- **Location**: HTTP header diff --git a/git_push.sh b/git_push.sh index 103a8b79..79232011 100755 --- a/git_push.sh +++ b/git_push.sh @@ -8,17 +8,17 @@ git_repo_id=$2 release_note=$3 if [ "$git_user_id" = "" ]; then - git_user_id="" + git_user_id="GIT_USER_ID" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" fi if [ "$git_repo_id" = "" ]; then - git_repo_id="" + git_repo_id="GIT_REPO_ID" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi if [ "$release_note" = "" ]; then - release_note="" + release_note="Minor update" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi diff --git a/lib/Api/AccountApi.php b/lib/Api/AccountApi.php index 1e0cf86b..e57fe7c3 100755 --- a/lib/Api/AccountApi.php +++ b/lib/Api/AccountApi.php @@ -93,7 +93,7 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * Get your account informations, plans and credits details * * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse200 + * @return \Swagger\Client\Model\GetAccount */ public function getAccount() { @@ -107,7 +107,7 @@ public function getAccount() * Get your account informations, plans and credits details * * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse200, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetAccount, HTTP status code, HTTP response headers (array of strings) */ public function getAccountWithHttpInfo() { @@ -143,15 +143,15 @@ public function getAccountWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse200', + '\Swagger\Client\Model\GetAccount', '/account' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse200', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetAccount', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse200', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetAccount', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/AttributesApi.php b/lib/Api/AttributesApi.php old mode 100755 new mode 100644 index b0147b24..d452c3aa --- a/lib/Api/AttributesApi.php +++ b/lib/Api/AttributesApi.php @@ -92,13 +92,13 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Creates contact attributes * - * @param \Swagger\Client\Model\CreateAttribute1 $create_attribute Values to create an attribute (required) + * @param \Swagger\Client\Model\CreateAttribute $createAttribute Values to create an attribute (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createAttribute($create_attribute) + public function createAttribute($createAttribute) { - list($response) = $this->createAttributeWithHttpInfo($create_attribute); + list($response) = $this->createAttributeWithHttpInfo($createAttribute); return $response; } @@ -107,15 +107,15 @@ public function createAttribute($create_attribute) * * Creates contact attributes * - * @param \Swagger\Client\Model\CreateAttribute1 $create_attribute Values to create an attribute (required) + * @param \Swagger\Client\Model\CreateAttribute $createAttribute Values to create an attribute (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createAttributeWithHttpInfo($create_attribute) + public function createAttributeWithHttpInfo($createAttribute) { - // verify the required parameter 'create_attribute' is set - if ($create_attribute === null) { - throw new \InvalidArgumentException('Missing the required parameter $create_attribute when calling createAttribute'); + // verify the required parameter 'createAttribute' is set + if ($createAttribute === null) { + throw new \InvalidArgumentException('Missing the required parameter $createAttribute when calling createAttribute'); } // parse inputs $resourcePath = "/contacts/attributes"; @@ -131,8 +131,8 @@ public function createAttributeWithHttpInfo($create_attribute) // body params $_tempBody = null; - if (isset($create_attribute)) { - $_tempBody = $create_attribute; + if (isset($createAttribute)) { + $_tempBody = $createAttribute; } // for model (json/xml) @@ -154,19 +154,19 @@ public function createAttributeWithHttpInfo($create_attribute) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/contacts/attributes' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -180,13 +180,13 @@ public function createAttributeWithHttpInfo($create_attribute) * * Deletes an attribute * - * @param string $attribute_id id of the attribute (required) + * @param string $attributeId id of the attribute (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteAttribute($attribute_id) + public function deleteAttribute($attributeId) { - list($response) = $this->deleteAttributeWithHttpInfo($attribute_id); + list($response) = $this->deleteAttributeWithHttpInfo($attributeId); return $response; } @@ -195,15 +195,15 @@ public function deleteAttribute($attribute_id) * * Deletes an attribute * - * @param string $attribute_id id of the attribute (required) + * @param string $attributeId id of the attribute (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAttributeWithHttpInfo($attribute_id) + public function deleteAttributeWithHttpInfo($attributeId) { - // verify the required parameter 'attribute_id' is set - if ($attribute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $attribute_id when calling deleteAttribute'); + // verify the required parameter 'attributeId' is set + if ($attributeId === null) { + throw new \InvalidArgumentException('Missing the required parameter $attributeId when calling deleteAttribute'); } // parse inputs $resourcePath = "/contacts/attributes/{attributeId}"; @@ -218,10 +218,10 @@ public function deleteAttributeWithHttpInfo($attribute_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($attribute_id !== null) { + if ($attributeId !== null) { $resourcePath = str_replace( "{" . "attributeId" . "}", - $this->apiClient->getSerializer()->toPathValue($attribute_id), + $this->apiClient->getSerializer()->toPathValue($attributeId), $resourcePath ); } @@ -253,11 +253,11 @@ public function deleteAttributeWithHttpInfo($attribute_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -272,7 +272,7 @@ public function deleteAttributeWithHttpInfo($attribute_id) * Lists all attributes * * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20016 + * @return \Swagger\Client\Model\GetAttributes */ public function getAttributes() { @@ -286,7 +286,7 @@ public function getAttributes() * Lists all attributes * * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20016, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetAttributes, HTTP status code, HTTP response headers (array of strings) */ public function getAttributesWithHttpInfo() { @@ -322,15 +322,15 @@ public function getAttributesWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20016', + '\Swagger\Client\Model\GetAttributes', '/contacts/attributes' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20016', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetAttributes', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20016', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetAttributes', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/ContactsApi.php b/lib/Api/ContactsApi.php old mode 100755 new mode 100644 index 5d8d47aa..2563aa7b --- a/lib/Api/ContactsApi.php +++ b/lib/Api/ContactsApi.php @@ -92,14 +92,14 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Add existing contacts to a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\ContactEmails $contact_emails Emails addresses of the contacts (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\AddRemoveContactToList $contactEmails Emails addresses of the contacts (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2014 + * @return \Swagger\Client\Model\PostContactInfo */ - public function addContactToList($list_id, $contact_emails) + public function addContactToList($listId, $contactEmails) { - list($response) = $this->addContactToListWithHttpInfo($list_id, $contact_emails); + list($response) = $this->addContactToListWithHttpInfo($listId, $contactEmails); return $response; } @@ -108,20 +108,20 @@ public function addContactToList($list_id, $contact_emails) * * Add existing contacts to a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\ContactEmails $contact_emails Emails addresses of the contacts (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\AddRemoveContactToList $contactEmails Emails addresses of the contacts (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2014, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\PostContactInfo, HTTP status code, HTTP response headers (array of strings) */ - public function addContactToListWithHttpInfo($list_id, $contact_emails) + public function addContactToListWithHttpInfo($listId, $contactEmails) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling addContactToList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling addContactToList'); } - // verify the required parameter 'contact_emails' is set - if ($contact_emails === null) { - throw new \InvalidArgumentException('Missing the required parameter $contact_emails when calling addContactToList'); + // verify the required parameter 'contactEmails' is set + if ($contactEmails === null) { + throw new \InvalidArgumentException('Missing the required parameter $contactEmails when calling addContactToList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}/contacts/add"; @@ -136,17 +136,17 @@ public function addContactToListWithHttpInfo($list_id, $contact_emails) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } // body params $_tempBody = null; - if (isset($contact_emails)) { - $_tempBody = $contact_emails; + if (isset($contactEmails)) { + $_tempBody = $contactEmails; } // for model (json/xml) @@ -168,23 +168,23 @@ public function addContactToListWithHttpInfo($list_id, $contact_emails) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2014', + '\Swagger\Client\Model\PostContactInfo', '/contacts/lists/{listId}/contacts/add' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2014', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\PostContactInfo', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2014', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\PostContactInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -198,13 +198,13 @@ public function addContactToListWithHttpInfo($list_id, $contact_emails) * * Creates contact attributes * - * @param \Swagger\Client\Model\CreateAttribute1 $create_attribute Values to create an attribute (required) + * @param \Swagger\Client\Model\CreateAttribute $createAttribute Values to create an attribute (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createAttribute($create_attribute) + public function createAttribute($createAttribute) { - list($response) = $this->createAttributeWithHttpInfo($create_attribute); + list($response) = $this->createAttributeWithHttpInfo($createAttribute); return $response; } @@ -213,15 +213,15 @@ public function createAttribute($create_attribute) * * Creates contact attributes * - * @param \Swagger\Client\Model\CreateAttribute1 $create_attribute Values to create an attribute (required) + * @param \Swagger\Client\Model\CreateAttribute $createAttribute Values to create an attribute (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createAttributeWithHttpInfo($create_attribute) + public function createAttributeWithHttpInfo($createAttribute) { - // verify the required parameter 'create_attribute' is set - if ($create_attribute === null) { - throw new \InvalidArgumentException('Missing the required parameter $create_attribute when calling createAttribute'); + // verify the required parameter 'createAttribute' is set + if ($createAttribute === null) { + throw new \InvalidArgumentException('Missing the required parameter $createAttribute when calling createAttribute'); } // parse inputs $resourcePath = "/contacts/attributes"; @@ -237,8 +237,8 @@ public function createAttributeWithHttpInfo($create_attribute) // body params $_tempBody = null; - if (isset($create_attribute)) { - $_tempBody = $create_attribute; + if (isset($createAttribute)) { + $_tempBody = $createAttribute; } // for model (json/xml) @@ -260,19 +260,19 @@ public function createAttributeWithHttpInfo($create_attribute) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/contacts/attributes' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -286,13 +286,13 @@ public function createAttributeWithHttpInfo($create_attribute) * * Create a contact * - * @param \Swagger\Client\Model\CreateContact1 $create_contact Values to create a contact (required) + * @param \Swagger\Client\Model\CreateContact $createContact Values to create a contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createContact($create_contact) + public function createContact($createContact) { - list($response) = $this->createContactWithHttpInfo($create_contact); + list($response) = $this->createContactWithHttpInfo($createContact); return $response; } @@ -301,15 +301,15 @@ public function createContact($create_contact) * * Create a contact * - * @param \Swagger\Client\Model\CreateContact1 $create_contact Values to create a contact (required) + * @param \Swagger\Client\Model\CreateContact $createContact Values to create a contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createContactWithHttpInfo($create_contact) + public function createContactWithHttpInfo($createContact) { - // verify the required parameter 'create_contact' is set - if ($create_contact === null) { - throw new \InvalidArgumentException('Missing the required parameter $create_contact when calling createContact'); + // verify the required parameter 'createContact' is set + if ($createContact === null) { + throw new \InvalidArgumentException('Missing the required parameter $createContact when calling createContact'); } // parse inputs $resourcePath = "/contacts"; @@ -325,8 +325,8 @@ public function createContactWithHttpInfo($create_contact) // body params $_tempBody = null; - if (isset($create_contact)) { - $_tempBody = $create_contact; + if (isset($createContact)) { + $_tempBody = $createContact; } // for model (json/xml) @@ -348,19 +348,19 @@ public function createContactWithHttpInfo($create_contact) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/contacts' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -374,9 +374,9 @@ public function createContactWithHttpInfo($create_contact) * * Create a folder * - * @param \Swagger\Client\Model\Name $name Name of the folder (required) + * @param \Swagger\Client\Model\CreaUpdateFolder $name Name of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ public function createFolder($name) { @@ -389,9 +389,9 @@ public function createFolder($name) * * Create a folder * - * @param \Swagger\Client\Model\Name $name Name of the folder (required) + * @param \Swagger\Client\Model\CreaUpdateFolder $name Name of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ public function createFolderWithHttpInfo($name) { @@ -436,19 +436,19 @@ public function createFolderWithHttpInfo($name) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/contacts/folders' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -462,13 +462,13 @@ public function createFolderWithHttpInfo($name) * * Create a list * - * @param \Swagger\Client\Model\CreateList1 $create_list Values to create a list (required) + * @param \Swagger\Client\Model\CreateList $createList Values to create a list (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createList($create_list) + public function createList($createList) { - list($response) = $this->createListWithHttpInfo($create_list); + list($response) = $this->createListWithHttpInfo($createList); return $response; } @@ -477,15 +477,15 @@ public function createList($create_list) * * Create a list * - * @param \Swagger\Client\Model\CreateList1 $create_list Values to create a list (required) + * @param \Swagger\Client\Model\CreateList $createList Values to create a list (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createListWithHttpInfo($create_list) + public function createListWithHttpInfo($createList) { - // verify the required parameter 'create_list' is set - if ($create_list === null) { - throw new \InvalidArgumentException('Missing the required parameter $create_list when calling createList'); + // verify the required parameter 'createList' is set + if ($createList === null) { + throw new \InvalidArgumentException('Missing the required parameter $createList when calling createList'); } // parse inputs $resourcePath = "/contacts/lists"; @@ -501,8 +501,8 @@ public function createListWithHttpInfo($create_list) // body params $_tempBody = null; - if (isset($create_list)) { - $_tempBody = $create_list; + if (isset($createList)) { + $_tempBody = $createList; } // for model (json/xml) @@ -524,19 +524,19 @@ public function createListWithHttpInfo($create_list) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/contacts/lists' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -550,13 +550,13 @@ public function createListWithHttpInfo($create_list) * * Deletes an attribute * - * @param string $attribute_id id of the attribute (required) + * @param string $attributeId id of the attribute (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteAttribute($attribute_id) + public function deleteAttribute($attributeId) { - list($response) = $this->deleteAttributeWithHttpInfo($attribute_id); + list($response) = $this->deleteAttributeWithHttpInfo($attributeId); return $response; } @@ -565,15 +565,15 @@ public function deleteAttribute($attribute_id) * * Deletes an attribute * - * @param string $attribute_id id of the attribute (required) + * @param string $attributeId id of the attribute (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAttributeWithHttpInfo($attribute_id) + public function deleteAttributeWithHttpInfo($attributeId) { - // verify the required parameter 'attribute_id' is set - if ($attribute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $attribute_id when calling deleteAttribute'); + // verify the required parameter 'attributeId' is set + if ($attributeId === null) { + throw new \InvalidArgumentException('Missing the required parameter $attributeId when calling deleteAttribute'); } // parse inputs $resourcePath = "/contacts/attributes/{attributeId}"; @@ -588,10 +588,10 @@ public function deleteAttributeWithHttpInfo($attribute_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($attribute_id !== null) { + if ($attributeId !== null) { $resourcePath = str_replace( "{" . "attributeId" . "}", - $this->apiClient->getSerializer()->toPathValue($attribute_id), + $this->apiClient->getSerializer()->toPathValue($attributeId), $resourcePath ); } @@ -623,11 +623,11 @@ public function deleteAttributeWithHttpInfo($attribute_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -641,13 +641,13 @@ public function deleteAttributeWithHttpInfo($attribute_id) * * Delete a folder (and all its lists) * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteFolder($folder_id) + public function deleteFolder($folderId) { - list($response) = $this->deleteFolderWithHttpInfo($folder_id); + list($response) = $this->deleteFolderWithHttpInfo($folderId); return $response; } @@ -656,15 +656,15 @@ public function deleteFolder($folder_id) * * Delete a folder (and all its lists) * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteFolderWithHttpInfo($folder_id) + public function deleteFolderWithHttpInfo($folderId) { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling deleteFolder'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling deleteFolder'); } // parse inputs $resourcePath = "/contacts/folders/{folderId}"; @@ -679,10 +679,10 @@ public function deleteFolderWithHttpInfo($folder_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -714,11 +714,11 @@ public function deleteFolderWithHttpInfo($folder_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -732,13 +732,13 @@ public function deleteFolderWithHttpInfo($folder_id) * * Delete a list * - * @param string $list_id Id of the list (required) + * @param string $listId Id of the list (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteList($list_id) + public function deleteList($listId) { - list($response) = $this->deleteListWithHttpInfo($list_id); + list($response) = $this->deleteListWithHttpInfo($listId); return $response; } @@ -747,15 +747,15 @@ public function deleteList($list_id) * * Delete a list * - * @param string $list_id Id of the list (required) + * @param string $listId Id of the list (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteListWithHttpInfo($list_id) + public function deleteListWithHttpInfo($listId) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling deleteList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling deleteList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}"; @@ -770,10 +770,10 @@ public function deleteListWithHttpInfo($list_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } @@ -805,11 +805,11 @@ public function deleteListWithHttpInfo($list_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -824,7 +824,7 @@ public function deleteListWithHttpInfo($list_id) * Lists all attributes * * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20016 + * @return \Swagger\Client\Model\GetAttributes */ public function getAttributes() { @@ -838,7 +838,7 @@ public function getAttributes() * Lists all attributes * * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20016, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetAttributes, HTTP status code, HTTP response headers (array of strings) */ public function getAttributesWithHttpInfo() { @@ -874,15 +874,15 @@ public function getAttributesWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20016', + '\Swagger\Client\Model\GetAttributes', '/contacts/attributes' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20016', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetAttributes', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20016', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetAttributes', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -898,7 +898,7 @@ public function getAttributesWithHttpInfo() * * @param string $email Email (urlencoded) of the contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20014Contacts + * @return \Swagger\Client\Model\GetExtendedContactDetails */ public function getContactInfo($email) { @@ -913,7 +913,7 @@ public function getContactInfo($email) * * @param string $email Email (urlencoded) of the contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20014Contacts, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetExtendedContactDetails, HTTP status code, HTTP response headers (array of strings) */ public function getContactInfoWithHttpInfo($email) { @@ -961,23 +961,23 @@ public function getContactInfoWithHttpInfo($email) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20014Contacts', + '\Swagger\Client\Model\GetExtendedContactDetails', '/contacts/{email}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20014Contacts', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetExtendedContactDetails', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20014Contacts', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetExtendedContactDetails', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -993,7 +993,7 @@ public function getContactInfoWithHttpInfo($email) * * @param string $email Email address (urlencoded) of the contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20015 + * @return \Swagger\Client\Model\GetContactCampaignStats */ public function getContactStats($email) { @@ -1008,7 +1008,7 @@ public function getContactStats($email) * * @param string $email Email address (urlencoded) of the contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20015, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetContactCampaignStats, HTTP status code, HTTP response headers (array of strings) */ public function getContactStatsWithHttpInfo($email) { @@ -1056,23 +1056,23 @@ public function getContactStatsWithHttpInfo($email) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20015', + '\Swagger\Client\Model\GetContactCampaignStats', '/contacts/{email}/campaignStats' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20015', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetContactCampaignStats', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20015', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetContactCampaignStats', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1089,7 +1089,7 @@ public function getContactStatsWithHttpInfo($email) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20014 + * @return \Swagger\Client\Model\GetContacts */ public function getContacts($limit = '50', $offset = '0') { @@ -1105,7 +1105,7 @@ public function getContacts($limit = '50', $offset = '0') * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20014, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetContacts, HTTP status code, HTTP response headers (array of strings) */ public function getContactsWithHttpInfo($limit = '50', $offset = '0') { @@ -1153,19 +1153,19 @@ public function getContactsWithHttpInfo($limit = '50', $offset = '0') $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20014', + '\Swagger\Client\Model\GetContacts', '/contacts' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20014', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetContacts', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20014', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetContacts', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1179,16 +1179,16 @@ public function getContactsWithHttpInfo($limit = '50', $offset = '0') * * Get the contacts in a list * - * @param string $list_id Id of the list (required) - * @param string $modified_since Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) + * @param string $listId Id of the list (required) + * @param string $modifiedSince Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20014 + * @return \Swagger\Client\Model\GetContacts */ - public function getContactsFromList($list_id, $modified_since = null, $limit = '50', $offset = '0') + public function getContactsFromList($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - list($response) = $this->getContactsFromListWithHttpInfo($list_id, $modified_since, $limit, $offset); + list($response) = $this->getContactsFromListWithHttpInfo($listId, $modifiedSince, $limit, $offset); return $response; } @@ -1197,21 +1197,21 @@ public function getContactsFromList($list_id, $modified_since = null, $limit = ' * * Get the contacts in a list * - * @param string $list_id Id of the list (required) - * @param string $modified_since Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) + * @param string $listId Id of the list (required) + * @param string $modifiedSince Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20014, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetContacts, HTTP status code, HTTP response headers (array of strings) */ - public function getContactsFromListWithHttpInfo($list_id, $modified_since = null, $limit = '50', $offset = '0') + public function getContactsFromListWithHttpInfo($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling getContactsFromList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling getContactsFromList'); } - if (!is_null($modified_since) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_since)) { - throw new \InvalidArgumentException("invalid value for \"modified_since\" when calling ContactsApi.getContactsFromList, must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if (!is_null($modifiedSince) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedSince)) { + throw new \InvalidArgumentException("invalid value for \"modifiedSince\" when calling ContactsApi.getContactsFromList, must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } if (!is_null($limit) && ($limit > 500)) { @@ -1231,8 +1231,8 @@ public function getContactsFromListWithHttpInfo($list_id, $modified_since = null $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // query params - if ($modified_since !== null) { - $queryParams['modifiedSince'] = $this->apiClient->getSerializer()->toQueryValue($modified_since); + if ($modifiedSince !== null) { + $queryParams['modifiedSince'] = $this->apiClient->getSerializer()->toQueryValue($modifiedSince); } // query params if ($limit !== null) { @@ -1243,10 +1243,10 @@ public function getContactsFromListWithHttpInfo($list_id, $modified_since = null $queryParams['offset'] = $this->apiClient->getSerializer()->toQueryValue($offset); } // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } @@ -1270,23 +1270,23 @@ public function getContactsFromListWithHttpInfo($list_id, $modified_since = null $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20014', + '\Swagger\Client\Model\GetContacts', '/contacts/lists/{listId}/contacts' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20014', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetContacts', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20014', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetContacts', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1300,13 +1300,13 @@ public function getContactsFromListWithHttpInfo($list_id, $modified_since = null * * Returns folder details * - * @param string $folder_id id of the folder (required) + * @param string $folderId id of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20017Folders + * @return \Swagger\Client\Model\GetFolder */ - public function getFolder($folder_id) + public function getFolder($folderId) { - list($response) = $this->getFolderWithHttpInfo($folder_id); + list($response) = $this->getFolderWithHttpInfo($folderId); return $response; } @@ -1315,15 +1315,15 @@ public function getFolder($folder_id) * * Returns folder details * - * @param string $folder_id id of the folder (required) + * @param string $folderId id of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20017Folders, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetFolder, HTTP status code, HTTP response headers (array of strings) */ - public function getFolderWithHttpInfo($folder_id) + public function getFolderWithHttpInfo($folderId) { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling getFolder'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolder'); } // parse inputs $resourcePath = "/contacts/folders/{folderId}"; @@ -1338,10 +1338,10 @@ public function getFolderWithHttpInfo($folder_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -1365,23 +1365,23 @@ public function getFolderWithHttpInfo($folder_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20017Folders', + '\Swagger\Client\Model\GetFolder', '/contacts/folders/{folderId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20017Folders', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetFolder', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20017Folders', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetFolder', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1395,15 +1395,15 @@ public function getFolderWithHttpInfo($folder_id) * * Get the lists in a folder * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20018 + * @return \Swagger\Client\Model\GetFolderLists */ - public function getFolderLists($folder_id, $limit = '10', $offset = '0') + public function getFolderLists($folderId, $limit = '10', $offset = '0') { - list($response) = $this->getFolderListsWithHttpInfo($folder_id, $limit, $offset); + list($response) = $this->getFolderListsWithHttpInfo($folderId, $limit, $offset); return $response; } @@ -1412,17 +1412,17 @@ public function getFolderLists($folder_id, $limit = '10', $offset = '0') * * Get the lists in a folder * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20018, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetFolderLists, HTTP status code, HTTP response headers (array of strings) */ - public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = '0') + public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = '0') { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling getFolderLists'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolderLists'); } if (!is_null($limit) && ($limit > 50)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getFolderLists, must be smaller than or equal to 50.'); @@ -1449,10 +1449,10 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = $queryParams['offset'] = $this->apiClient->getSerializer()->toQueryValue($offset); } // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -1476,23 +1476,23 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20018', + '\Swagger\Client\Model\GetFolderLists', '/contacts/folders/{folderId}/lists' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20018', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetFolderLists', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20018', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetFolderLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1509,7 +1509,7 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20017 + * @return \Swagger\Client\Model\GetFolders */ public function getFolders($limit, $offset) { @@ -1525,7 +1525,7 @@ public function getFolders($limit, $offset) * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20017, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetFolders, HTTP status code, HTTP response headers (array of strings) */ public function getFoldersWithHttpInfo($limit, $offset) { @@ -1581,19 +1581,19 @@ public function getFoldersWithHttpInfo($limit, $offset) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20017', + '\Swagger\Client\Model\GetFolders', '/contacts/folders' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20017', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetFolders', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20017', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetFolders', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1607,13 +1607,13 @@ public function getFoldersWithHttpInfo($limit, $offset) * * Get the details of a list * - * @param string $list_id Id of the list (required) + * @param string $listId Id of the list (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20020 + * @return \Swagger\Client\Model\GetExtendedList */ - public function getList($list_id) + public function getList($listId) { - list($response) = $this->getListWithHttpInfo($list_id); + list($response) = $this->getListWithHttpInfo($listId); return $response; } @@ -1622,15 +1622,15 @@ public function getList($list_id) * * Get the details of a list * - * @param string $list_id Id of the list (required) + * @param string $listId Id of the list (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20020, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetExtendedList, HTTP status code, HTTP response headers (array of strings) */ - public function getListWithHttpInfo($list_id) + public function getListWithHttpInfo($listId) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling getList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling getList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}"; @@ -1645,10 +1645,10 @@ public function getListWithHttpInfo($list_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } @@ -1672,23 +1672,23 @@ public function getListWithHttpInfo($list_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20020', + '\Swagger\Client\Model\GetExtendedList', '/contacts/lists/{listId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20020', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetExtendedList', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20020', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetExtendedList', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1705,7 +1705,7 @@ public function getListWithHttpInfo($list_id) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20019 + * @return \Swagger\Client\Model\GetLists */ public function getLists($limit = '10', $offset = '0') { @@ -1721,7 +1721,7 @@ public function getLists($limit = '10', $offset = '0') * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20019, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetLists, HTTP status code, HTTP response headers (array of strings) */ public function getListsWithHttpInfo($limit = '10', $offset = '0') { @@ -1769,19 +1769,19 @@ public function getListsWithHttpInfo($limit = '10', $offset = '0') $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20019', + '\Swagger\Client\Model\GetLists', '/contacts/lists' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20019', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetLists', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20019', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1795,13 +1795,13 @@ public function getListsWithHttpInfo($limit = '10', $offset = '0') * * Import contacts * - * @param \Swagger\Client\Model\RequestContactImport1 $request_contact_import Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) + * @param \Swagger\Client\Model\RequestContactImport $requestContactImport Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse202 + * @return \Swagger\Client\Model\CreatedProcessId */ - public function importContacts($request_contact_import) + public function importContacts($requestContactImport) { - list($response) = $this->importContactsWithHttpInfo($request_contact_import); + list($response) = $this->importContactsWithHttpInfo($requestContactImport); return $response; } @@ -1810,15 +1810,15 @@ public function importContacts($request_contact_import) * * Import contacts * - * @param \Swagger\Client\Model\RequestContactImport1 $request_contact_import Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) + * @param \Swagger\Client\Model\RequestContactImport $requestContactImport Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse202, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreatedProcessId, HTTP status code, HTTP response headers (array of strings) */ - public function importContactsWithHttpInfo($request_contact_import) + public function importContactsWithHttpInfo($requestContactImport) { - // verify the required parameter 'request_contact_import' is set - if ($request_contact_import === null) { - throw new \InvalidArgumentException('Missing the required parameter $request_contact_import when calling importContacts'); + // verify the required parameter 'requestContactImport' is set + if ($requestContactImport === null) { + throw new \InvalidArgumentException('Missing the required parameter $requestContactImport when calling importContacts'); } // parse inputs $resourcePath = "/contacts/import"; @@ -1834,8 +1834,8 @@ public function importContactsWithHttpInfo($request_contact_import) // body params $_tempBody = null; - if (isset($request_contact_import)) { - $_tempBody = $request_contact_import; + if (isset($requestContactImport)) { + $_tempBody = $requestContactImport; } // for model (json/xml) @@ -1857,19 +1857,19 @@ public function importContactsWithHttpInfo($request_contact_import) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse202', + '\Swagger\Client\Model\CreatedProcessId', '/contacts/import' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse202', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreatedProcessId', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 202: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse202', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreatedProcessId', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1883,14 +1883,14 @@ public function importContactsWithHttpInfo($request_contact_import) * * Remove existing contacts from a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\ContactEmails1 $contact_emails Emails adresses of the contact (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\AddRemoveContactToList $contactEmails Emails adresses of the contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2014 + * @return \Swagger\Client\Model\PostContactInfo */ - public function removeContactToList($list_id, $contact_emails) + public function removeContactToList($listId, $contactEmails) { - list($response) = $this->removeContactToListWithHttpInfo($list_id, $contact_emails); + list($response) = $this->removeContactToListWithHttpInfo($listId, $contactEmails); return $response; } @@ -1899,20 +1899,20 @@ public function removeContactToList($list_id, $contact_emails) * * Remove existing contacts from a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\ContactEmails1 $contact_emails Emails adresses of the contact (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\AddRemoveContactToList $contactEmails Emails adresses of the contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2014, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\PostContactInfo, HTTP status code, HTTP response headers (array of strings) */ - public function removeContactToListWithHttpInfo($list_id, $contact_emails) + public function removeContactToListWithHttpInfo($listId, $contactEmails) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling removeContactToList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling removeContactToList'); } - // verify the required parameter 'contact_emails' is set - if ($contact_emails === null) { - throw new \InvalidArgumentException('Missing the required parameter $contact_emails when calling removeContactToList'); + // verify the required parameter 'contactEmails' is set + if ($contactEmails === null) { + throw new \InvalidArgumentException('Missing the required parameter $contactEmails when calling removeContactToList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}/contacts/remove"; @@ -1927,17 +1927,17 @@ public function removeContactToListWithHttpInfo($list_id, $contact_emails) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } // body params $_tempBody = null; - if (isset($contact_emails)) { - $_tempBody = $contact_emails; + if (isset($contactEmails)) { + $_tempBody = $contactEmails; } // for model (json/xml) @@ -1959,23 +1959,23 @@ public function removeContactToListWithHttpInfo($list_id, $contact_emails) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2014', + '\Swagger\Client\Model\PostContactInfo', '/contacts/lists/{listId}/contacts/remove' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2014', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\PostContactInfo', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2014', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\PostContactInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1989,13 +1989,13 @@ public function removeContactToListWithHttpInfo($list_id, $contact_emails) * * Export contacts * - * @param \Swagger\Client\Model\RequestContactExport1 $request_contact_export Values to request a contact export (required) + * @param \Swagger\Client\Model\RequestContactExport $requestContactExport Values to request a contact export (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse202 + * @return \Swagger\Client\Model\CreatedProcessId */ - public function requestContactExport($request_contact_export) + public function requestContactExport($requestContactExport) { - list($response) = $this->requestContactExportWithHttpInfo($request_contact_export); + list($response) = $this->requestContactExportWithHttpInfo($requestContactExport); return $response; } @@ -2004,15 +2004,15 @@ public function requestContactExport($request_contact_export) * * Export contacts * - * @param \Swagger\Client\Model\RequestContactExport1 $request_contact_export Values to request a contact export (required) + * @param \Swagger\Client\Model\RequestContactExport $requestContactExport Values to request a contact export (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse202, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreatedProcessId, HTTP status code, HTTP response headers (array of strings) */ - public function requestContactExportWithHttpInfo($request_contact_export) + public function requestContactExportWithHttpInfo($requestContactExport) { - // verify the required parameter 'request_contact_export' is set - if ($request_contact_export === null) { - throw new \InvalidArgumentException('Missing the required parameter $request_contact_export when calling requestContactExport'); + // verify the required parameter 'requestContactExport' is set + if ($requestContactExport === null) { + throw new \InvalidArgumentException('Missing the required parameter $requestContactExport when calling requestContactExport'); } // parse inputs $resourcePath = "/contacts/export"; @@ -2028,8 +2028,8 @@ public function requestContactExportWithHttpInfo($request_contact_export) // body params $_tempBody = null; - if (isset($request_contact_export)) { - $_tempBody = $request_contact_export; + if (isset($requestContactExport)) { + $_tempBody = $requestContactExport; } // for model (json/xml) @@ -2051,19 +2051,19 @@ public function requestContactExportWithHttpInfo($request_contact_export) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse202', + '\Swagger\Client\Model\CreatedProcessId', '/contacts/export' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse202', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreatedProcessId', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 202: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse202', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreatedProcessId', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2078,13 +2078,13 @@ public function requestContactExportWithHttpInfo($request_contact_export) * Updates a contact * * @param string $email Email (urlencoded) of the contact (required) - * @param \Swagger\Client\Model\UpdateContact1 $update_contact Values to update a contact (required) + * @param \Swagger\Client\Model\UpdateContact $updateContact Values to update a contact (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateContact($email, $update_contact) + public function updateContact($email, $updateContact) { - list($response) = $this->updateContactWithHttpInfo($email, $update_contact); + list($response) = $this->updateContactWithHttpInfo($email, $updateContact); return $response; } @@ -2094,19 +2094,19 @@ public function updateContact($email, $update_contact) * Updates a contact * * @param string $email Email (urlencoded) of the contact (required) - * @param \Swagger\Client\Model\UpdateContact1 $update_contact Values to update a contact (required) + * @param \Swagger\Client\Model\UpdateContact $updateContact Values to update a contact (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateContactWithHttpInfo($email, $update_contact) + public function updateContactWithHttpInfo($email, $updateContact) { // verify the required parameter 'email' is set if ($email === null) { throw new \InvalidArgumentException('Missing the required parameter $email when calling updateContact'); } - // verify the required parameter 'update_contact' is set - if ($update_contact === null) { - throw new \InvalidArgumentException('Missing the required parameter $update_contact when calling updateContact'); + // verify the required parameter 'updateContact' is set + if ($updateContact === null) { + throw new \InvalidArgumentException('Missing the required parameter $updateContact when calling updateContact'); } // parse inputs $resourcePath = "/contacts/{email}"; @@ -2130,8 +2130,8 @@ public function updateContactWithHttpInfo($email, $update_contact) } // body params $_tempBody = null; - if (isset($update_contact)) { - $_tempBody = $update_contact; + if (isset($updateContact)) { + $_tempBody = $updateContact; } // for model (json/xml) @@ -2161,11 +2161,11 @@ public function updateContactWithHttpInfo($email, $update_contact) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2179,14 +2179,14 @@ public function updateContactWithHttpInfo($email, $update_contact) * * Update a contact folder * - * @param string $folder_id Id of the folder (required) - * @param \Swagger\Client\Model\Name1 $name Name of the folder (required) + * @param string $folderId Id of the folder (required) + * @param \Swagger\Client\Model\CreaUpdateFolder $name Name of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateFolder($folder_id, $name) + public function updateFolder($folderId, $name) { - list($response) = $this->updateFolderWithHttpInfo($folder_id, $name); + list($response) = $this->updateFolderWithHttpInfo($folderId, $name); return $response; } @@ -2195,16 +2195,16 @@ public function updateFolder($folder_id, $name) * * Update a contact folder * - * @param string $folder_id Id of the folder (required) - * @param \Swagger\Client\Model\Name1 $name Name of the folder (required) + * @param string $folderId Id of the folder (required) + * @param \Swagger\Client\Model\CreaUpdateFolder $name Name of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateFolderWithHttpInfo($folder_id, $name) + public function updateFolderWithHttpInfo($folderId, $name) { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling updateFolder'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling updateFolder'); } // verify the required parameter 'name' is set if ($name === null) { @@ -2223,10 +2223,10 @@ public function updateFolderWithHttpInfo($folder_id, $name) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -2263,11 +2263,11 @@ public function updateFolderWithHttpInfo($folder_id, $name) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2281,14 +2281,14 @@ public function updateFolderWithHttpInfo($folder_id, $name) * * Update a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\UpdateList1 $update_list Values to update a list (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\UpdateList $updateList Values to update a list (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateList($list_id, $update_list) + public function updateList($listId, $updateList) { - list($response) = $this->updateListWithHttpInfo($list_id, $update_list); + list($response) = $this->updateListWithHttpInfo($listId, $updateList); return $response; } @@ -2297,20 +2297,20 @@ public function updateList($list_id, $update_list) * * Update a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\UpdateList1 $update_list Values to update a list (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\UpdateList $updateList Values to update a list (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateListWithHttpInfo($list_id, $update_list) + public function updateListWithHttpInfo($listId, $updateList) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling updateList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling updateList'); } - // verify the required parameter 'update_list' is set - if ($update_list === null) { - throw new \InvalidArgumentException('Missing the required parameter $update_list when calling updateList'); + // verify the required parameter 'updateList' is set + if ($updateList === null) { + throw new \InvalidArgumentException('Missing the required parameter $updateList when calling updateList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}"; @@ -2325,17 +2325,17 @@ public function updateListWithHttpInfo($list_id, $update_list) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } // body params $_tempBody = null; - if (isset($update_list)) { - $_tempBody = $update_list; + if (isset($updateList)) { + $_tempBody = $updateList; } // for model (json/xml) @@ -2365,11 +2365,11 @@ public function updateListWithHttpInfo($list_id, $update_list) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/EmailCampaignsApi.php b/lib/Api/EmailCampaignsApi.php old mode 100755 new mode 100644 index 599413c9..9632bd41 --- a/lib/Api/EmailCampaignsApi.php +++ b/lib/Api/EmailCampaignsApi.php @@ -92,13 +92,13 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Create an email campaign * - * @param \Swagger\Client\Model\EmailCampaigns $email_campaigns Values to create a campaign (required) + * @param \Swagger\Client\Model\CreateEmailCampaign $emailCampaigns Values to create a campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createEmailCampaign($email_campaigns) + public function createEmailCampaign($emailCampaigns) { - list($response) = $this->createEmailCampaignWithHttpInfo($email_campaigns); + list($response) = $this->createEmailCampaignWithHttpInfo($emailCampaigns); return $response; } @@ -107,15 +107,15 @@ public function createEmailCampaign($email_campaigns) * * Create an email campaign * - * @param \Swagger\Client\Model\EmailCampaigns $email_campaigns Values to create a campaign (required) + * @param \Swagger\Client\Model\CreateEmailCampaign $emailCampaigns Values to create a campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createEmailCampaignWithHttpInfo($email_campaigns) + public function createEmailCampaignWithHttpInfo($emailCampaigns) { - // verify the required parameter 'email_campaigns' is set - if ($email_campaigns === null) { - throw new \InvalidArgumentException('Missing the required parameter $email_campaigns when calling createEmailCampaign'); + // verify the required parameter 'emailCampaigns' is set + if ($emailCampaigns === null) { + throw new \InvalidArgumentException('Missing the required parameter $emailCampaigns when calling createEmailCampaign'); } // parse inputs $resourcePath = "/emailCampaigns"; @@ -131,8 +131,8 @@ public function createEmailCampaignWithHttpInfo($email_campaigns) // body params $_tempBody = null; - if (isset($email_campaigns)) { - $_tempBody = $email_campaigns; + if (isset($emailCampaigns)) { + $_tempBody = $emailCampaigns; } // for model (json/xml) @@ -154,19 +154,19 @@ public function createEmailCampaignWithHttpInfo($email_campaigns) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/emailCampaigns' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -180,13 +180,13 @@ public function createEmailCampaignWithHttpInfo($email_campaigns) * * Delete an email campaign * - * @param string $campaign_id id of the campaign (required) + * @param string $campaignId id of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteEmailCampaigns($campaign_id) + public function deleteEmailCampaigns($campaignId) { - list($response) = $this->deleteEmailCampaignsWithHttpInfo($campaign_id); + list($response) = $this->deleteEmailCampaignsWithHttpInfo($campaignId); return $response; } @@ -195,15 +195,15 @@ public function deleteEmailCampaigns($campaign_id) * * Delete an email campaign * - * @param string $campaign_id id of the campaign (required) + * @param string $campaignId id of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteEmailCampaignsWithHttpInfo($campaign_id) + public function deleteEmailCampaignsWithHttpInfo($campaignId) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling deleteEmailCampaigns'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling deleteEmailCampaigns'); } // parse inputs $resourcePath = "/emailCampaigns/{campaignId}"; @@ -218,10 +218,10 @@ public function deleteEmailCampaignsWithHttpInfo($campaign_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } @@ -253,11 +253,11 @@ public function deleteEmailCampaignsWithHttpInfo($campaign_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -271,14 +271,14 @@ public function deleteEmailCampaignsWithHttpInfo($campaign_id) * * Export the recipients of a campaign * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\RecipientExport $recipient_export Values to send for a recipient export request (optional) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\EmailExportRecipients $recipientExport Values to send for a recipient export request (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse202 + * @return \Swagger\Client\Model\CreatedProcessId */ - public function emailExportRecipients($campaign_id, $recipient_export = null) + public function emailExportRecipients($campaignId, $recipientExport = null) { - list($response) = $this->emailExportRecipientsWithHttpInfo($campaign_id, $recipient_export); + list($response) = $this->emailExportRecipientsWithHttpInfo($campaignId, $recipientExport); return $response; } @@ -287,16 +287,16 @@ public function emailExportRecipients($campaign_id, $recipient_export = null) * * Export the recipients of a campaign * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\RecipientExport $recipient_export Values to send for a recipient export request (optional) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\EmailExportRecipients $recipientExport Values to send for a recipient export request (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse202, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreatedProcessId, HTTP status code, HTTP response headers (array of strings) */ - public function emailExportRecipientsWithHttpInfo($campaign_id, $recipient_export = null) + public function emailExportRecipientsWithHttpInfo($campaignId, $recipientExport = null) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling emailExportRecipients'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling emailExportRecipients'); } // parse inputs $resourcePath = "/emailCampaigns/{campaignId}/exportRecipients"; @@ -311,17 +311,17 @@ public function emailExportRecipientsWithHttpInfo($campaign_id, $recipient_expor $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($recipient_export)) { - $_tempBody = $recipient_export; + if (isset($recipientExport)) { + $_tempBody = $recipientExport; } // for model (json/xml) @@ -343,23 +343,23 @@ public function emailExportRecipientsWithHttpInfo($campaign_id, $recipient_expor $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse202', + '\Swagger\Client\Model\CreatedProcessId', '/emailCampaigns/{campaignId}/exportRecipients' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse202', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreatedProcessId', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 202: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse202', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreatedProcessId', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -373,13 +373,13 @@ public function emailExportRecipientsWithHttpInfo($campaign_id, $recipient_expor * * Get campaign informations * - * @param string $campaign_id Id of the campaign (required) + * @param string $campaignId Id of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2008Campaigns + * @return \Swagger\Client\Model\GetEmailCampaign */ - public function getEmailCampaign($campaign_id) + public function getEmailCampaign($campaignId) { - list($response) = $this->getEmailCampaignWithHttpInfo($campaign_id); + list($response) = $this->getEmailCampaignWithHttpInfo($campaignId); return $response; } @@ -388,15 +388,15 @@ public function getEmailCampaign($campaign_id) * * Get campaign informations * - * @param string $campaign_id Id of the campaign (required) + * @param string $campaignId Id of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2008Campaigns, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetEmailCampaign, HTTP status code, HTTP response headers (array of strings) */ - public function getEmailCampaignWithHttpInfo($campaign_id) + public function getEmailCampaignWithHttpInfo($campaignId) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling getEmailCampaign'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling getEmailCampaign'); } // parse inputs $resourcePath = "/emailCampaigns/{campaignId}"; @@ -411,10 +411,10 @@ public function getEmailCampaignWithHttpInfo($campaign_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } @@ -438,23 +438,23 @@ public function getEmailCampaignWithHttpInfo($campaign_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2008Campaigns', + '\Swagger\Client\Model\GetEmailCampaign', '/emailCampaigns/{campaignId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2008Campaigns', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetEmailCampaign', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2008Campaigns', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetEmailCampaign', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -473,7 +473,7 @@ public function getEmailCampaignWithHttpInfo($campaign_id) * @param int $limit Number of documents per page (optional, default to 500) * @param int $offset Index of the first document in the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2008 + * @return \Swagger\Client\Model\GetEmailCampaigns */ public function getEmailCampaigns($type = null, $status = null, $limit = '500', $offset = '0') { @@ -491,7 +491,7 @@ public function getEmailCampaigns($type = null, $status = null, $limit = '500', * @param int $limit Number of documents per page (optional, default to 500) * @param int $offset Index of the first document in the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2008, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetEmailCampaigns, HTTP status code, HTTP response headers (array of strings) */ public function getEmailCampaignsWithHttpInfo($type = null, $status = null, $limit = '500', $offset = '0') { @@ -547,19 +547,19 @@ public function getEmailCampaignsWithHttpInfo($type = null, $status = null, $lim $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2008', + '\Swagger\Client\Model\GetEmailCampaigns', '/emailCampaigns' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2008', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetEmailCampaigns', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2008', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetEmailCampaigns', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -573,13 +573,13 @@ public function getEmailCampaignsWithHttpInfo($type = null, $status = null, $lim * * Send an email campaign id of the campaign immediately * - * @param string $campaign_id Id of the campaign (required) + * @param string $campaignId Id of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function sendEmailCampaignNow($campaign_id) + public function sendEmailCampaignNow($campaignId) { - list($response) = $this->sendEmailCampaignNowWithHttpInfo($campaign_id); + list($response) = $this->sendEmailCampaignNowWithHttpInfo($campaignId); return $response; } @@ -588,15 +588,15 @@ public function sendEmailCampaignNow($campaign_id) * * Send an email campaign id of the campaign immediately * - * @param string $campaign_id Id of the campaign (required) + * @param string $campaignId Id of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function sendEmailCampaignNowWithHttpInfo($campaign_id) + public function sendEmailCampaignNowWithHttpInfo($campaignId) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling sendEmailCampaignNow'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendEmailCampaignNow'); } // parse inputs $resourcePath = "/emailCampaigns/{campaignId}/sendNow"; @@ -611,10 +611,10 @@ public function sendEmailCampaignNowWithHttpInfo($campaign_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } @@ -646,15 +646,15 @@ public function sendEmailCampaignNowWithHttpInfo($campaign_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 402: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -668,14 +668,14 @@ public function sendEmailCampaignNowWithHttpInfo($campaign_id) * * Send the report of a campaigns * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\SendReport1 $send_report Values for send a report (required) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\SendReport $sendReport Values for send a report (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function sendReport($campaign_id, $send_report) + public function sendReport($campaignId, $sendReport) { - list($response) = $this->sendReportWithHttpInfo($campaign_id, $send_report); + list($response) = $this->sendReportWithHttpInfo($campaignId, $sendReport); return $response; } @@ -684,20 +684,20 @@ public function sendReport($campaign_id, $send_report) * * Send the report of a campaigns * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\SendReport1 $send_report Values for send a report (required) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\SendReport $sendReport Values for send a report (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function sendReportWithHttpInfo($campaign_id, $send_report) + public function sendReportWithHttpInfo($campaignId, $sendReport) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling sendReport'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendReport'); } - // verify the required parameter 'send_report' is set - if ($send_report === null) { - throw new \InvalidArgumentException('Missing the required parameter $send_report when calling sendReport'); + // verify the required parameter 'sendReport' is set + if ($sendReport === null) { + throw new \InvalidArgumentException('Missing the required parameter $sendReport when calling sendReport'); } // parse inputs $resourcePath = "/emailCampaigns/{campaignId}/sendReport"; @@ -712,17 +712,17 @@ public function sendReportWithHttpInfo($campaign_id, $send_report) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($send_report)) { - $_tempBody = $send_report; + if (isset($sendReport)) { + $_tempBody = $sendReport; } // for model (json/xml) @@ -752,11 +752,11 @@ public function sendReportWithHttpInfo($campaign_id, $send_report) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -770,14 +770,14 @@ public function sendReportWithHttpInfo($campaign_id, $send_report) * * Send an email campaign to your test list * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\EmailTo $email_to (required) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\SendTestEmail $emailTo (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function sendTestEmail($campaign_id, $email_to) + public function sendTestEmail($campaignId, $emailTo) { - list($response) = $this->sendTestEmailWithHttpInfo($campaign_id, $email_to); + list($response) = $this->sendTestEmailWithHttpInfo($campaignId, $emailTo); return $response; } @@ -786,20 +786,20 @@ public function sendTestEmail($campaign_id, $email_to) * * Send an email campaign to your test list * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\EmailTo $email_to (required) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\SendTestEmail $emailTo (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function sendTestEmailWithHttpInfo($campaign_id, $email_to) + public function sendTestEmailWithHttpInfo($campaignId, $emailTo) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling sendTestEmail'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendTestEmail'); } - // verify the required parameter 'email_to' is set - if ($email_to === null) { - throw new \InvalidArgumentException('Missing the required parameter $email_to when calling sendTestEmail'); + // verify the required parameter 'emailTo' is set + if ($emailTo === null) { + throw new \InvalidArgumentException('Missing the required parameter $emailTo when calling sendTestEmail'); } // parse inputs $resourcePath = "/emailCampaigns/{campaignId}/sendTest"; @@ -814,17 +814,17 @@ public function sendTestEmailWithHttpInfo($campaign_id, $email_to) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($email_to)) { - $_tempBody = $email_to; + if (isset($emailTo)) { + $_tempBody = $emailTo; } // for model (json/xml) @@ -854,11 +854,11 @@ public function sendTestEmailWithHttpInfo($campaign_id, $email_to) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse400', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\PostSendFailed', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -872,14 +872,14 @@ public function sendTestEmailWithHttpInfo($campaign_id, $email_to) * * Update a campaign status * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\Status $status Status of the campaign (required) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\UpdateCampaignStatus $status Status of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateCampaignStatus($campaign_id, $status) + public function updateCampaignStatus($campaignId, $status) { - list($response) = $this->updateCampaignStatusWithHttpInfo($campaign_id, $status); + list($response) = $this->updateCampaignStatusWithHttpInfo($campaignId, $status); return $response; } @@ -888,16 +888,16 @@ public function updateCampaignStatus($campaign_id, $status) * * Update a campaign status * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\Status $status Status of the campaign (required) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\UpdateCampaignStatus $status Status of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateCampaignStatusWithHttpInfo($campaign_id, $status) + public function updateCampaignStatusWithHttpInfo($campaignId, $status) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling updateCampaignStatus'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling updateCampaignStatus'); } // verify the required parameter 'status' is set if ($status === null) { @@ -916,10 +916,10 @@ public function updateCampaignStatusWithHttpInfo($campaign_id, $status) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } @@ -956,11 +956,11 @@ public function updateCampaignStatusWithHttpInfo($campaign_id, $status) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -974,14 +974,14 @@ public function updateCampaignStatusWithHttpInfo($campaign_id, $status) * * Update a campaign * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\EmailCampaign $email_campaign Values to update a campaign (required) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\UpdateEmailCampaign $emailCampaign Values to update a campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateEmailCampaigns($campaign_id, $email_campaign) + public function updateEmailCampaigns($campaignId, $emailCampaign) { - list($response) = $this->updateEmailCampaignsWithHttpInfo($campaign_id, $email_campaign); + list($response) = $this->updateEmailCampaignsWithHttpInfo($campaignId, $emailCampaign); return $response; } @@ -990,20 +990,20 @@ public function updateEmailCampaigns($campaign_id, $email_campaign) * * Update a campaign * - * @param string $campaign_id Id of the campaign (required) - * @param \Swagger\Client\Model\EmailCampaign $email_campaign Values to update a campaign (required) + * @param string $campaignId Id of the campaign (required) + * @param \Swagger\Client\Model\UpdateEmailCampaign $emailCampaign Values to update a campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateEmailCampaignsWithHttpInfo($campaign_id, $email_campaign) + public function updateEmailCampaignsWithHttpInfo($campaignId, $emailCampaign) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling updateEmailCampaigns'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling updateEmailCampaigns'); } - // verify the required parameter 'email_campaign' is set - if ($email_campaign === null) { - throw new \InvalidArgumentException('Missing the required parameter $email_campaign when calling updateEmailCampaigns'); + // verify the required parameter 'emailCampaign' is set + if ($emailCampaign === null) { + throw new \InvalidArgumentException('Missing the required parameter $emailCampaign when calling updateEmailCampaigns'); } // parse inputs $resourcePath = "/emailCampaigns/{campaignId}"; @@ -1018,17 +1018,17 @@ public function updateEmailCampaignsWithHttpInfo($campaign_id, $email_campaign) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($email_campaign)) { - $_tempBody = $email_campaign; + if (isset($emailCampaign)) { + $_tempBody = $emailCampaign; } // for model (json/xml) @@ -1058,11 +1058,11 @@ public function updateEmailCampaignsWithHttpInfo($campaign_id, $email_campaign) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/FoldersApi.php b/lib/Api/FoldersApi.php old mode 100755 new mode 100644 index 7f440278..b022d835 --- a/lib/Api/FoldersApi.php +++ b/lib/Api/FoldersApi.php @@ -92,9 +92,9 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Create a folder * - * @param \Swagger\Client\Model\Name $name Name of the folder (required) + * @param \Swagger\Client\Model\CreaUpdateFolder $name Name of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ public function createFolder($name) { @@ -107,9 +107,9 @@ public function createFolder($name) * * Create a folder * - * @param \Swagger\Client\Model\Name $name Name of the folder (required) + * @param \Swagger\Client\Model\CreaUpdateFolder $name Name of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ public function createFolderWithHttpInfo($name) { @@ -154,19 +154,19 @@ public function createFolderWithHttpInfo($name) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/contacts/folders' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -180,13 +180,13 @@ public function createFolderWithHttpInfo($name) * * Delete a folder (and all its lists) * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteFolder($folder_id) + public function deleteFolder($folderId) { - list($response) = $this->deleteFolderWithHttpInfo($folder_id); + list($response) = $this->deleteFolderWithHttpInfo($folderId); return $response; } @@ -195,15 +195,15 @@ public function deleteFolder($folder_id) * * Delete a folder (and all its lists) * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteFolderWithHttpInfo($folder_id) + public function deleteFolderWithHttpInfo($folderId) { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling deleteFolder'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling deleteFolder'); } // parse inputs $resourcePath = "/contacts/folders/{folderId}"; @@ -218,10 +218,10 @@ public function deleteFolderWithHttpInfo($folder_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -253,11 +253,11 @@ public function deleteFolderWithHttpInfo($folder_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -271,13 +271,13 @@ public function deleteFolderWithHttpInfo($folder_id) * * Returns folder details * - * @param string $folder_id id of the folder (required) + * @param string $folderId id of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20017Folders + * @return \Swagger\Client\Model\GetFolder */ - public function getFolder($folder_id) + public function getFolder($folderId) { - list($response) = $this->getFolderWithHttpInfo($folder_id); + list($response) = $this->getFolderWithHttpInfo($folderId); return $response; } @@ -286,15 +286,15 @@ public function getFolder($folder_id) * * Returns folder details * - * @param string $folder_id id of the folder (required) + * @param string $folderId id of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20017Folders, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetFolder, HTTP status code, HTTP response headers (array of strings) */ - public function getFolderWithHttpInfo($folder_id) + public function getFolderWithHttpInfo($folderId) { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling getFolder'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolder'); } // parse inputs $resourcePath = "/contacts/folders/{folderId}"; @@ -309,10 +309,10 @@ public function getFolderWithHttpInfo($folder_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -336,23 +336,23 @@ public function getFolderWithHttpInfo($folder_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20017Folders', + '\Swagger\Client\Model\GetFolder', '/contacts/folders/{folderId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20017Folders', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetFolder', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20017Folders', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetFolder', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -366,15 +366,15 @@ public function getFolderWithHttpInfo($folder_id) * * Get the lists in a folder * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20018 + * @return \Swagger\Client\Model\GetFolderLists */ - public function getFolderLists($folder_id, $limit = '10', $offset = '0') + public function getFolderLists($folderId, $limit = '10', $offset = '0') { - list($response) = $this->getFolderListsWithHttpInfo($folder_id, $limit, $offset); + list($response) = $this->getFolderListsWithHttpInfo($folderId, $limit, $offset); return $response; } @@ -383,17 +383,17 @@ public function getFolderLists($folder_id, $limit = '10', $offset = '0') * * Get the lists in a folder * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20018, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetFolderLists, HTTP status code, HTTP response headers (array of strings) */ - public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = '0') + public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = '0') { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling getFolderLists'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolderLists'); } if (!is_null($limit) && ($limit > 50)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling FoldersApi.getFolderLists, must be smaller than or equal to 50.'); @@ -420,10 +420,10 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = $queryParams['offset'] = $this->apiClient->getSerializer()->toQueryValue($offset); } // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -447,23 +447,23 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20018', + '\Swagger\Client\Model\GetFolderLists', '/contacts/folders/{folderId}/lists' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20018', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetFolderLists', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20018', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetFolderLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -480,7 +480,7 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20017 + * @return \Swagger\Client\Model\GetFolders */ public function getFolders($limit, $offset) { @@ -496,7 +496,7 @@ public function getFolders($limit, $offset) * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20017, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetFolders, HTTP status code, HTTP response headers (array of strings) */ public function getFoldersWithHttpInfo($limit, $offset) { @@ -552,19 +552,19 @@ public function getFoldersWithHttpInfo($limit, $offset) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20017', + '\Swagger\Client\Model\GetFolders', '/contacts/folders' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20017', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetFolders', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20017', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetFolders', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -578,14 +578,14 @@ public function getFoldersWithHttpInfo($limit, $offset) * * Update a contact folder * - * @param string $folder_id Id of the folder (required) - * @param \Swagger\Client\Model\Name1 $name Name of the folder (required) + * @param string $folderId Id of the folder (required) + * @param \Swagger\Client\Model\CreaUpdateFolder $name Name of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateFolder($folder_id, $name) + public function updateFolder($folderId, $name) { - list($response) = $this->updateFolderWithHttpInfo($folder_id, $name); + list($response) = $this->updateFolderWithHttpInfo($folderId, $name); return $response; } @@ -594,16 +594,16 @@ public function updateFolder($folder_id, $name) * * Update a contact folder * - * @param string $folder_id Id of the folder (required) - * @param \Swagger\Client\Model\Name1 $name Name of the folder (required) + * @param string $folderId Id of the folder (required) + * @param \Swagger\Client\Model\CreaUpdateFolder $name Name of the folder (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateFolderWithHttpInfo($folder_id, $name) + public function updateFolderWithHttpInfo($folderId, $name) { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling updateFolder'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling updateFolder'); } // verify the required parameter 'name' is set if ($name === null) { @@ -622,10 +622,10 @@ public function updateFolderWithHttpInfo($folder_id, $name) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -662,11 +662,11 @@ public function updateFolderWithHttpInfo($folder_id, $name) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/ListsApi.php b/lib/Api/ListsApi.php old mode 100755 new mode 100644 index 6e0acb20..7ebcb04c --- a/lib/Api/ListsApi.php +++ b/lib/Api/ListsApi.php @@ -92,14 +92,14 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Add existing contacts to a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\ContactEmails $contact_emails Emails addresses of the contacts (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\AddRemoveContactToList $contactEmails Emails addresses of the contacts (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2014 + * @return \Swagger\Client\Model\PostContactInfo */ - public function addContactToList($list_id, $contact_emails) + public function addContactToList($listId, $contactEmails) { - list($response) = $this->addContactToListWithHttpInfo($list_id, $contact_emails); + list($response) = $this->addContactToListWithHttpInfo($listId, $contactEmails); return $response; } @@ -108,20 +108,20 @@ public function addContactToList($list_id, $contact_emails) * * Add existing contacts to a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\ContactEmails $contact_emails Emails addresses of the contacts (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\AddRemoveContactToList $contactEmails Emails addresses of the contacts (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2014, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\PostContactInfo, HTTP status code, HTTP response headers (array of strings) */ - public function addContactToListWithHttpInfo($list_id, $contact_emails) + public function addContactToListWithHttpInfo($listId, $contactEmails) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling addContactToList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling addContactToList'); } - // verify the required parameter 'contact_emails' is set - if ($contact_emails === null) { - throw new \InvalidArgumentException('Missing the required parameter $contact_emails when calling addContactToList'); + // verify the required parameter 'contactEmails' is set + if ($contactEmails === null) { + throw new \InvalidArgumentException('Missing the required parameter $contactEmails when calling addContactToList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}/contacts/add"; @@ -136,17 +136,17 @@ public function addContactToListWithHttpInfo($list_id, $contact_emails) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } // body params $_tempBody = null; - if (isset($contact_emails)) { - $_tempBody = $contact_emails; + if (isset($contactEmails)) { + $_tempBody = $contactEmails; } // for model (json/xml) @@ -168,23 +168,23 @@ public function addContactToListWithHttpInfo($list_id, $contact_emails) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2014', + '\Swagger\Client\Model\PostContactInfo', '/contacts/lists/{listId}/contacts/add' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2014', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\PostContactInfo', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2014', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\PostContactInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -198,13 +198,13 @@ public function addContactToListWithHttpInfo($list_id, $contact_emails) * * Create a list * - * @param \Swagger\Client\Model\CreateList1 $create_list Values to create a list (required) + * @param \Swagger\Client\Model\CreateList $createList Values to create a list (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createList($create_list) + public function createList($createList) { - list($response) = $this->createListWithHttpInfo($create_list); + list($response) = $this->createListWithHttpInfo($createList); return $response; } @@ -213,15 +213,15 @@ public function createList($create_list) * * Create a list * - * @param \Swagger\Client\Model\CreateList1 $create_list Values to create a list (required) + * @param \Swagger\Client\Model\CreateList $createList Values to create a list (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createListWithHttpInfo($create_list) + public function createListWithHttpInfo($createList) { - // verify the required parameter 'create_list' is set - if ($create_list === null) { - throw new \InvalidArgumentException('Missing the required parameter $create_list when calling createList'); + // verify the required parameter 'createList' is set + if ($createList === null) { + throw new \InvalidArgumentException('Missing the required parameter $createList when calling createList'); } // parse inputs $resourcePath = "/contacts/lists"; @@ -237,8 +237,8 @@ public function createListWithHttpInfo($create_list) // body params $_tempBody = null; - if (isset($create_list)) { - $_tempBody = $create_list; + if (isset($createList)) { + $_tempBody = $createList; } // for model (json/xml) @@ -260,19 +260,19 @@ public function createListWithHttpInfo($create_list) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/contacts/lists' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -286,13 +286,13 @@ public function createListWithHttpInfo($create_list) * * Delete a list * - * @param string $list_id Id of the list (required) + * @param string $listId Id of the list (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteList($list_id) + public function deleteList($listId) { - list($response) = $this->deleteListWithHttpInfo($list_id); + list($response) = $this->deleteListWithHttpInfo($listId); return $response; } @@ -301,15 +301,15 @@ public function deleteList($list_id) * * Delete a list * - * @param string $list_id Id of the list (required) + * @param string $listId Id of the list (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteListWithHttpInfo($list_id) + public function deleteListWithHttpInfo($listId) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling deleteList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling deleteList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}"; @@ -324,10 +324,10 @@ public function deleteListWithHttpInfo($list_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } @@ -359,11 +359,11 @@ public function deleteListWithHttpInfo($list_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -377,16 +377,16 @@ public function deleteListWithHttpInfo($list_id) * * Get the contacts in a list * - * @param string $list_id Id of the list (required) - * @param string $modified_since Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) + * @param string $listId Id of the list (required) + * @param string $modifiedSince Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20014 + * @return \Swagger\Client\Model\GetContacts */ - public function getContactsFromList($list_id, $modified_since = null, $limit = '50', $offset = '0') + public function getContactsFromList($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - list($response) = $this->getContactsFromListWithHttpInfo($list_id, $modified_since, $limit, $offset); + list($response) = $this->getContactsFromListWithHttpInfo($listId, $modifiedSince, $limit, $offset); return $response; } @@ -395,21 +395,21 @@ public function getContactsFromList($list_id, $modified_since = null, $limit = ' * * Get the contacts in a list * - * @param string $list_id Id of the list (required) - * @param string $modified_since Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) + * @param string $listId Id of the list (required) + * @param string $modifiedSince Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) * @param int $limit Number of documents per page (optional, default to 50) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20014, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetContacts, HTTP status code, HTTP response headers (array of strings) */ - public function getContactsFromListWithHttpInfo($list_id, $modified_since = null, $limit = '50', $offset = '0') + public function getContactsFromListWithHttpInfo($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling getContactsFromList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling getContactsFromList'); } - if (!is_null($modified_since) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_since)) { - throw new \InvalidArgumentException("invalid value for \"modified_since\" when calling ListsApi.getContactsFromList, must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if (!is_null($modifiedSince) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedSince)) { + throw new \InvalidArgumentException("invalid value for \"modifiedSince\" when calling ListsApi.getContactsFromList, must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } if (!is_null($limit) && ($limit > 500)) { @@ -429,8 +429,8 @@ public function getContactsFromListWithHttpInfo($list_id, $modified_since = null $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // query params - if ($modified_since !== null) { - $queryParams['modifiedSince'] = $this->apiClient->getSerializer()->toQueryValue($modified_since); + if ($modifiedSince !== null) { + $queryParams['modifiedSince'] = $this->apiClient->getSerializer()->toQueryValue($modifiedSince); } // query params if ($limit !== null) { @@ -441,10 +441,10 @@ public function getContactsFromListWithHttpInfo($list_id, $modified_since = null $queryParams['offset'] = $this->apiClient->getSerializer()->toQueryValue($offset); } // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } @@ -468,23 +468,23 @@ public function getContactsFromListWithHttpInfo($list_id, $modified_since = null $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20014', + '\Swagger\Client\Model\GetContacts', '/contacts/lists/{listId}/contacts' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20014', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetContacts', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20014', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetContacts', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -498,15 +498,15 @@ public function getContactsFromListWithHttpInfo($list_id, $modified_since = null * * Get the lists in a folder * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20018 + * @return \Swagger\Client\Model\GetFolderLists */ - public function getFolderLists($folder_id, $limit = '10', $offset = '0') + public function getFolderLists($folderId, $limit = '10', $offset = '0') { - list($response) = $this->getFolderListsWithHttpInfo($folder_id, $limit, $offset); + list($response) = $this->getFolderListsWithHttpInfo($folderId, $limit, $offset); return $response; } @@ -515,17 +515,17 @@ public function getFolderLists($folder_id, $limit = '10', $offset = '0') * * Get the lists in a folder * - * @param string $folder_id Id of the folder (required) + * @param string $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20018, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetFolderLists, HTTP status code, HTTP response headers (array of strings) */ - public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = '0') + public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = '0') { - // verify the required parameter 'folder_id' is set - if ($folder_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $folder_id when calling getFolderLists'); + // verify the required parameter 'folderId' is set + if ($folderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolderLists'); } if (!is_null($limit) && ($limit > 50)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ListsApi.getFolderLists, must be smaller than or equal to 50.'); @@ -552,10 +552,10 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = $queryParams['offset'] = $this->apiClient->getSerializer()->toQueryValue($offset); } // path params - if ($folder_id !== null) { + if ($folderId !== null) { $resourcePath = str_replace( "{" . "folderId" . "}", - $this->apiClient->getSerializer()->toPathValue($folder_id), + $this->apiClient->getSerializer()->toPathValue($folderId), $resourcePath ); } @@ -579,23 +579,23 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20018', + '\Swagger\Client\Model\GetFolderLists', '/contacts/folders/{folderId}/lists' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20018', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetFolderLists', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20018', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetFolderLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -609,13 +609,13 @@ public function getFolderListsWithHttpInfo($folder_id, $limit = '10', $offset = * * Get the details of a list * - * @param string $list_id Id of the list (required) + * @param string $listId Id of the list (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20020 + * @return \Swagger\Client\Model\GetExtendedList */ - public function getList($list_id) + public function getList($listId) { - list($response) = $this->getListWithHttpInfo($list_id); + list($response) = $this->getListWithHttpInfo($listId); return $response; } @@ -624,15 +624,15 @@ public function getList($list_id) * * Get the details of a list * - * @param string $list_id Id of the list (required) + * @param string $listId Id of the list (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20020, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetExtendedList, HTTP status code, HTTP response headers (array of strings) */ - public function getListWithHttpInfo($list_id) + public function getListWithHttpInfo($listId) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling getList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling getList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}"; @@ -647,10 +647,10 @@ public function getListWithHttpInfo($list_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } @@ -674,23 +674,23 @@ public function getListWithHttpInfo($list_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20020', + '\Swagger\Client\Model\GetExtendedList', '/contacts/lists/{listId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20020', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetExtendedList', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20020', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetExtendedList', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -707,7 +707,7 @@ public function getListWithHttpInfo($list_id) * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20019 + * @return \Swagger\Client\Model\GetLists */ public function getLists($limit = '10', $offset = '0') { @@ -723,7 +723,7 @@ public function getLists($limit = '10', $offset = '0') * @param int $limit Number of documents per page (optional, default to 10) * @param int $offset Index of the first document of the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20019, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetLists, HTTP status code, HTTP response headers (array of strings) */ public function getListsWithHttpInfo($limit = '10', $offset = '0') { @@ -771,19 +771,19 @@ public function getListsWithHttpInfo($limit = '10', $offset = '0') $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20019', + '\Swagger\Client\Model\GetLists', '/contacts/lists' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20019', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetLists', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20019', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -797,14 +797,14 @@ public function getListsWithHttpInfo($limit = '10', $offset = '0') * * Remove existing contacts from a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\ContactEmails1 $contact_emails Emails adresses of the contact (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\AddRemoveContactToList $contactEmails Emails adresses of the contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2014 + * @return \Swagger\Client\Model\PostContactInfo */ - public function removeContactToList($list_id, $contact_emails) + public function removeContactToList($listId, $contactEmails) { - list($response) = $this->removeContactToListWithHttpInfo($list_id, $contact_emails); + list($response) = $this->removeContactToListWithHttpInfo($listId, $contactEmails); return $response; } @@ -813,20 +813,20 @@ public function removeContactToList($list_id, $contact_emails) * * Remove existing contacts from a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\ContactEmails1 $contact_emails Emails adresses of the contact (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\AddRemoveContactToList $contactEmails Emails adresses of the contact (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2014, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\PostContactInfo, HTTP status code, HTTP response headers (array of strings) */ - public function removeContactToListWithHttpInfo($list_id, $contact_emails) + public function removeContactToListWithHttpInfo($listId, $contactEmails) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling removeContactToList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling removeContactToList'); } - // verify the required parameter 'contact_emails' is set - if ($contact_emails === null) { - throw new \InvalidArgumentException('Missing the required parameter $contact_emails when calling removeContactToList'); + // verify the required parameter 'contactEmails' is set + if ($contactEmails === null) { + throw new \InvalidArgumentException('Missing the required parameter $contactEmails when calling removeContactToList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}/contacts/remove"; @@ -841,17 +841,17 @@ public function removeContactToListWithHttpInfo($list_id, $contact_emails) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } // body params $_tempBody = null; - if (isset($contact_emails)) { - $_tempBody = $contact_emails; + if (isset($contactEmails)) { + $_tempBody = $contactEmails; } // for model (json/xml) @@ -873,23 +873,23 @@ public function removeContactToListWithHttpInfo($list_id, $contact_emails) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2014', + '\Swagger\Client\Model\PostContactInfo', '/contacts/lists/{listId}/contacts/remove' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2014', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\PostContactInfo', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2014', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\PostContactInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -903,14 +903,14 @@ public function removeContactToListWithHttpInfo($list_id, $contact_emails) * * Update a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\UpdateList1 $update_list Values to update a list (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\UpdateList $updateList Values to update a list (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateList($list_id, $update_list) + public function updateList($listId, $updateList) { - list($response) = $this->updateListWithHttpInfo($list_id, $update_list); + list($response) = $this->updateListWithHttpInfo($listId, $updateList); return $response; } @@ -919,20 +919,20 @@ public function updateList($list_id, $update_list) * * Update a list * - * @param string $list_id Id of the list (required) - * @param \Swagger\Client\Model\UpdateList1 $update_list Values to update a list (required) + * @param string $listId Id of the list (required) + * @param \Swagger\Client\Model\UpdateList $updateList Values to update a list (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateListWithHttpInfo($list_id, $update_list) + public function updateListWithHttpInfo($listId, $updateList) { - // verify the required parameter 'list_id' is set - if ($list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $list_id when calling updateList'); + // verify the required parameter 'listId' is set + if ($listId === null) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling updateList'); } - // verify the required parameter 'update_list' is set - if ($update_list === null) { - throw new \InvalidArgumentException('Missing the required parameter $update_list when calling updateList'); + // verify the required parameter 'updateList' is set + if ($updateList === null) { + throw new \InvalidArgumentException('Missing the required parameter $updateList when calling updateList'); } // parse inputs $resourcePath = "/contacts/lists/{listId}"; @@ -947,17 +947,17 @@ public function updateListWithHttpInfo($list_id, $update_list) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($list_id !== null) { + if ($listId !== null) { $resourcePath = str_replace( "{" . "listId" . "}", - $this->apiClient->getSerializer()->toPathValue($list_id), + $this->apiClient->getSerializer()->toPathValue($listId), $resourcePath ); } // body params $_tempBody = null; - if (isset($update_list)) { - $_tempBody = $update_list; + if (isset($updateList)) { + $_tempBody = $updateList; } // for model (json/xml) @@ -987,11 +987,11 @@ public function updateListWithHttpInfo($list_id, $update_list) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/ProcessApi.php b/lib/Api/ProcessApi.php old mode 100755 new mode 100644 index 8d286ad6..28e8f6e3 --- a/lib/Api/ProcessApi.php +++ b/lib/Api/ProcessApi.php @@ -92,13 +92,13 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Return the informations for a process * - * @param string $process_id Id of the process (required) + * @param string $processId Id of the process (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2007Processes + * @return \Swagger\Client\Model\GetProcess */ - public function getProcess($process_id) + public function getProcess($processId) { - list($response) = $this->getProcessWithHttpInfo($process_id); + list($response) = $this->getProcessWithHttpInfo($processId); return $response; } @@ -107,15 +107,15 @@ public function getProcess($process_id) * * Return the informations for a process * - * @param string $process_id Id of the process (required) + * @param string $processId Id of the process (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2007Processes, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetProcess, HTTP status code, HTTP response headers (array of strings) */ - public function getProcessWithHttpInfo($process_id) + public function getProcessWithHttpInfo($processId) { - // verify the required parameter 'process_id' is set - if ($process_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $process_id when calling getProcess'); + // verify the required parameter 'processId' is set + if ($processId === null) { + throw new \InvalidArgumentException('Missing the required parameter $processId when calling getProcess'); } // parse inputs $resourcePath = "/processes/{processId}"; @@ -130,10 +130,10 @@ public function getProcessWithHttpInfo($process_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($process_id !== null) { + if ($processId !== null) { $resourcePath = str_replace( "{" . "processId" . "}", - $this->apiClient->getSerializer()->toPathValue($process_id), + $this->apiClient->getSerializer()->toPathValue($processId), $resourcePath ); } @@ -157,23 +157,23 @@ public function getProcessWithHttpInfo($process_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2007Processes', + '\Swagger\Client\Model\GetProcess', '/processes/{processId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2007Processes', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetProcess', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2007Processes', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetProcess', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -190,7 +190,7 @@ public function getProcessWithHttpInfo($process_id) * @param int $limit Number limitation for the result returned (optional, default to 10) * @param int $offset Beginning point in the list to retrieve from. (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2007 + * @return \Swagger\Client\Model\GetProcesses */ public function getProcesses($limit = '10', $offset = '0') { @@ -206,7 +206,7 @@ public function getProcesses($limit = '10', $offset = '0') * @param int $limit Number limitation for the result returned (optional, default to 10) * @param int $offset Beginning point in the list to retrieve from. (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2007, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetProcesses, HTTP status code, HTTP response headers (array of strings) */ public function getProcessesWithHttpInfo($limit = '10', $offset = '0') { @@ -254,19 +254,19 @@ public function getProcessesWithHttpInfo($limit = '10', $offset = '0') $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2007', + '\Swagger\Client\Model\GetProcesses', '/processes' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2007', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetProcesses', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2007', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetProcesses', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/ResellerApi.php b/lib/Api/ResellerApi.php old mode 100755 new mode 100644 index d4b31b8e..2f437bc5 --- a/lib/Api/ResellerApi.php +++ b/lib/Api/ResellerApi.php @@ -92,14 +92,14 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Add Email and/or SMS credits to a specific child account * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\AddCredits1 $add_credits Values to post to add credit to a specific child account (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2003 + * @return \Swagger\Client\Model\RemainingCreditModel */ - public function addCredits($child_id, $add_credits) + public function addCredits($childId, $addCredits) { - list($response) = $this->addCreditsWithHttpInfo($child_id, $add_credits); + list($response) = $this->addCreditsWithHttpInfo($childId, $addCredits); return $response; } @@ -108,20 +108,20 @@ public function addCredits($child_id, $add_credits) * * Add Email and/or SMS credits to a specific child account * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\AddCredits1 $add_credits Values to post to add credit to a specific child account (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2003, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\RemainingCreditModel, HTTP status code, HTTP response headers (array of strings) */ - public function addCreditsWithHttpInfo($child_id, $add_credits) + public function addCreditsWithHttpInfo($childId, $addCredits) { - // verify the required parameter 'child_id' is set - if ($child_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $child_id when calling addCredits'); + // verify the required parameter 'childId' is set + if ($childId === null) { + throw new \InvalidArgumentException('Missing the required parameter $childId when calling addCredits'); } - // verify the required parameter 'add_credits' is set - if ($add_credits === null) { - throw new \InvalidArgumentException('Missing the required parameter $add_credits when calling addCredits'); + // verify the required parameter 'addCredits' is set + if ($addCredits === null) { + throw new \InvalidArgumentException('Missing the required parameter $addCredits when calling addCredits'); } // parse inputs $resourcePath = "/reseller/children/{childId}/credits/add"; @@ -136,17 +136,17 @@ public function addCreditsWithHttpInfo($child_id, $add_credits) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($child_id !== null) { + if ($childId !== null) { $resourcePath = str_replace( "{" . "childId" . "}", - $this->apiClient->getSerializer()->toPathValue($child_id), + $this->apiClient->getSerializer()->toPathValue($childId), $resourcePath ); } // body params $_tempBody = null; - if (isset($add_credits)) { - $_tempBody = $add_credits; + if (isset($addCredits)) { + $_tempBody = $addCredits; } // for model (json/xml) @@ -168,27 +168,27 @@ public function addCreditsWithHttpInfo($child_id, $add_credits) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2003', + '\Swagger\Client\Model\RemainingCreditModel', '/reseller/children/{childId}/credits/add' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2003', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\RemainingCreditModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2003', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\RemainingCreditModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -202,14 +202,14 @@ public function addCreditsWithHttpInfo($child_id, $add_credits) * * Associate a dedicated IP to the child * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\IpId $ip_id IP's id (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\ManageIp $ipId IP's id (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function associateIpToChild($child_id, $ip_id) + public function associateIpToChild($childId, $ipId) { - list($response) = $this->associateIpToChildWithHttpInfo($child_id, $ip_id); + list($response) = $this->associateIpToChildWithHttpInfo($childId, $ipId); return $response; } @@ -218,20 +218,20 @@ public function associateIpToChild($child_id, $ip_id) * * Associate a dedicated IP to the child * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\IpId $ip_id IP's id (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\ManageIp $ipId IP's id (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function associateIpToChildWithHttpInfo($child_id, $ip_id) + public function associateIpToChildWithHttpInfo($childId, $ipId) { - // verify the required parameter 'child_id' is set - if ($child_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $child_id when calling associateIpToChild'); + // verify the required parameter 'childId' is set + if ($childId === null) { + throw new \InvalidArgumentException('Missing the required parameter $childId when calling associateIpToChild'); } - // verify the required parameter 'ip_id' is set - if ($ip_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $ip_id when calling associateIpToChild'); + // verify the required parameter 'ipId' is set + if ($ipId === null) { + throw new \InvalidArgumentException('Missing the required parameter $ipId when calling associateIpToChild'); } // parse inputs $resourcePath = "/reseller/children/{childId}/ips/associate"; @@ -246,17 +246,17 @@ public function associateIpToChildWithHttpInfo($child_id, $ip_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($child_id !== null) { + if ($childId !== null) { $resourcePath = str_replace( "{" . "childId" . "}", - $this->apiClient->getSerializer()->toPathValue($child_id), + $this->apiClient->getSerializer()->toPathValue($childId), $resourcePath ); } // body params $_tempBody = null; - if (isset($ip_id)) { - $_tempBody = $ip_id; + if (isset($ipId)) { + $_tempBody = $ipId; } // for model (json/xml) @@ -286,11 +286,11 @@ public function associateIpToChildWithHttpInfo($child_id, $ip_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -304,13 +304,13 @@ public function associateIpToChildWithHttpInfo($child_id, $ip_id) * * Creates a reseller child * - * @param \Swagger\Client\Model\ResellerChild $reseller_child reseller child to add (optional) + * @param \Swagger\Client\Model\CreateChild $resellerChild reseller child to add (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createResellerChild($reseller_child = null) + public function createResellerChild($resellerChild = null) { - list($response) = $this->createResellerChildWithHttpInfo($reseller_child); + list($response) = $this->createResellerChildWithHttpInfo($resellerChild); return $response; } @@ -319,11 +319,11 @@ public function createResellerChild($reseller_child = null) * * Creates a reseller child * - * @param \Swagger\Client\Model\ResellerChild $reseller_child reseller child to add (optional) + * @param \Swagger\Client\Model\CreateChild $resellerChild reseller child to add (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createResellerChildWithHttpInfo($reseller_child = null) + public function createResellerChildWithHttpInfo($resellerChild = null) { // parse inputs $resourcePath = "/reseller/children"; @@ -339,8 +339,8 @@ public function createResellerChildWithHttpInfo($reseller_child = null) // body params $_tempBody = null; - if (isset($reseller_child)) { - $_tempBody = $reseller_child; + if (isset($resellerChild)) { + $_tempBody = $resellerChild; } // for model (json/xml) @@ -362,23 +362,23 @@ public function createResellerChildWithHttpInfo($reseller_child = null) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/reseller/children' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -392,13 +392,13 @@ public function createResellerChildWithHttpInfo($reseller_child = null) * * Deletes a single reseller child based on the childId supplied * - * @param int $child_id id of reseller's child (required) + * @param int $childId id of reseller's child (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteResellerChild($child_id) + public function deleteResellerChild($childId) { - list($response) = $this->deleteResellerChildWithHttpInfo($child_id); + list($response) = $this->deleteResellerChildWithHttpInfo($childId); return $response; } @@ -407,15 +407,15 @@ public function deleteResellerChild($child_id) * * Deletes a single reseller child based on the childId supplied * - * @param int $child_id id of reseller's child (required) + * @param int $childId id of reseller's child (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteResellerChildWithHttpInfo($child_id) + public function deleteResellerChildWithHttpInfo($childId) { - // verify the required parameter 'child_id' is set - if ($child_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $child_id when calling deleteResellerChild'); + // verify the required parameter 'childId' is set + if ($childId === null) { + throw new \InvalidArgumentException('Missing the required parameter $childId when calling deleteResellerChild'); } // parse inputs $resourcePath = "/reseller/children/{childId}"; @@ -430,10 +430,10 @@ public function deleteResellerChildWithHttpInfo($child_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($child_id !== null) { + if ($childId !== null) { $resourcePath = str_replace( "{" . "childId" . "}", - $this->apiClient->getSerializer()->toPathValue($child_id), + $this->apiClient->getSerializer()->toPathValue($childId), $resourcePath ); } @@ -465,15 +465,15 @@ public function deleteResellerChildWithHttpInfo($child_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -487,14 +487,14 @@ public function deleteResellerChildWithHttpInfo($child_id) * * Dissociate a dedicated IP to the child * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\IpId1 $ip_id IP's id (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\ManageIp $ipId IP's id (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function dissociateIpFromChild($child_id, $ip_id) + public function dissociateIpFromChild($childId, $ipId) { - list($response) = $this->dissociateIpFromChildWithHttpInfo($child_id, $ip_id); + list($response) = $this->dissociateIpFromChildWithHttpInfo($childId, $ipId); return $response; } @@ -503,20 +503,20 @@ public function dissociateIpFromChild($child_id, $ip_id) * * Dissociate a dedicated IP to the child * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\IpId1 $ip_id IP's id (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\ManageIp $ipId IP's id (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function dissociateIpFromChildWithHttpInfo($child_id, $ip_id) + public function dissociateIpFromChildWithHttpInfo($childId, $ipId) { - // verify the required parameter 'child_id' is set - if ($child_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $child_id when calling dissociateIpFromChild'); + // verify the required parameter 'childId' is set + if ($childId === null) { + throw new \InvalidArgumentException('Missing the required parameter $childId when calling dissociateIpFromChild'); } - // verify the required parameter 'ip_id' is set - if ($ip_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $ip_id when calling dissociateIpFromChild'); + // verify the required parameter 'ipId' is set + if ($ipId === null) { + throw new \InvalidArgumentException('Missing the required parameter $ipId when calling dissociateIpFromChild'); } // parse inputs $resourcePath = "/reseller/children/{childId}/ips/dissociate"; @@ -531,17 +531,17 @@ public function dissociateIpFromChildWithHttpInfo($child_id, $ip_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($child_id !== null) { + if ($childId !== null) { $resourcePath = str_replace( "{" . "childId" . "}", - $this->apiClient->getSerializer()->toPathValue($child_id), + $this->apiClient->getSerializer()->toPathValue($childId), $resourcePath ); } // body params $_tempBody = null; - if (isset($ip_id)) { - $_tempBody = $ip_id; + if (isset($ipId)) { + $_tempBody = $ipId; } // for model (json/xml) @@ -571,11 +571,11 @@ public function dissociateIpFromChildWithHttpInfo($child_id, $ip_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -589,13 +589,13 @@ public function dissociateIpFromChildWithHttpInfo($child_id, $ip_id) * * Gets the info about a specific child account * - * @param int $child_id id of reseller's child (required) + * @param int $childId id of reseller's child (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2002 + * @return \Swagger\Client\Model\GetChildInfo */ - public function getChildInfo($child_id) + public function getChildInfo($childId) { - list($response) = $this->getChildInfoWithHttpInfo($child_id); + list($response) = $this->getChildInfoWithHttpInfo($childId); return $response; } @@ -604,15 +604,15 @@ public function getChildInfo($child_id) * * Gets the info about a specific child account * - * @param int $child_id id of reseller's child (required) + * @param int $childId id of reseller's child (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2002, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetChildInfo, HTTP status code, HTTP response headers (array of strings) */ - public function getChildInfoWithHttpInfo($child_id) + public function getChildInfoWithHttpInfo($childId) { - // verify the required parameter 'child_id' is set - if ($child_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $child_id when calling getChildInfo'); + // verify the required parameter 'childId' is set + if ($childId === null) { + throw new \InvalidArgumentException('Missing the required parameter $childId when calling getChildInfo'); } // parse inputs $resourcePath = "/reseller/children/{childId}"; @@ -627,10 +627,10 @@ public function getChildInfoWithHttpInfo($child_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($child_id !== null) { + if ($childId !== null) { $resourcePath = str_replace( "{" . "childId" . "}", - $this->apiClient->getSerializer()->toPathValue($child_id), + $this->apiClient->getSerializer()->toPathValue($childId), $resourcePath ); } @@ -654,27 +654,27 @@ public function getChildInfoWithHttpInfo($child_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2002', + '\Swagger\Client\Model\GetChildInfo', '/reseller/children/{childId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2002', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetChildInfo', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2002', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetChildInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -689,7 +689,7 @@ public function getChildInfoWithHttpInfo($child_id) * Gets the list of all reseller's children accounts * * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2001 + * @return \Swagger\Client\Model\GetChildrenList */ public function getResellerChilds() { @@ -703,7 +703,7 @@ public function getResellerChilds() * Gets the list of all reseller's children accounts * * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2001, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetChildrenList, HTTP status code, HTTP response headers (array of strings) */ public function getResellerChildsWithHttpInfo() { @@ -739,19 +739,19 @@ public function getResellerChildsWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2001', + '\Swagger\Client\Model\GetChildrenList', '/reseller/children' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2001', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetChildrenList', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2001', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetChildrenList', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -765,14 +765,14 @@ public function getResellerChildsWithHttpInfo() * * Remove Email and/or SMS credits from a specific child account * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\RemoveCredits1 $remove_credits Values to post to remove email or SMS credits from a specific child account (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2003 + * @return \Swagger\Client\Model\RemainingCreditModel */ - public function removeCredits($child_id, $remove_credits) + public function removeCredits($childId, $removeCredits) { - list($response) = $this->removeCreditsWithHttpInfo($child_id, $remove_credits); + list($response) = $this->removeCreditsWithHttpInfo($childId, $removeCredits); return $response; } @@ -781,20 +781,20 @@ public function removeCredits($child_id, $remove_credits) * * Remove Email and/or SMS credits from a specific child account * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\RemoveCredits1 $remove_credits Values to post to remove email or SMS credits from a specific child account (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2003, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\RemainingCreditModel, HTTP status code, HTTP response headers (array of strings) */ - public function removeCreditsWithHttpInfo($child_id, $remove_credits) + public function removeCreditsWithHttpInfo($childId, $removeCredits) { - // verify the required parameter 'child_id' is set - if ($child_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $child_id when calling removeCredits'); + // verify the required parameter 'childId' is set + if ($childId === null) { + throw new \InvalidArgumentException('Missing the required parameter $childId when calling removeCredits'); } - // verify the required parameter 'remove_credits' is set - if ($remove_credits === null) { - throw new \InvalidArgumentException('Missing the required parameter $remove_credits when calling removeCredits'); + // verify the required parameter 'removeCredits' is set + if ($removeCredits === null) { + throw new \InvalidArgumentException('Missing the required parameter $removeCredits when calling removeCredits'); } // parse inputs $resourcePath = "/reseller/children/{childId}/credits/remove"; @@ -809,17 +809,17 @@ public function removeCreditsWithHttpInfo($child_id, $remove_credits) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($child_id !== null) { + if ($childId !== null) { $resourcePath = str_replace( "{" . "childId" . "}", - $this->apiClient->getSerializer()->toPathValue($child_id), + $this->apiClient->getSerializer()->toPathValue($childId), $resourcePath ); } // body params $_tempBody = null; - if (isset($remove_credits)) { - $_tempBody = $remove_credits; + if (isset($removeCredits)) { + $_tempBody = $removeCredits; } // for model (json/xml) @@ -841,27 +841,27 @@ public function removeCreditsWithHttpInfo($child_id, $remove_credits) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2003', + '\Swagger\Client\Model\RemainingCreditModel', '/reseller/children/{childId}/credits/remove' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2003', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\RemainingCreditModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2003', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\RemainingCreditModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -875,14 +875,14 @@ public function removeCreditsWithHttpInfo($child_id, $remove_credits) * * Updates infos of reseller's child based on the childId supplied * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\ResellerChild1 $reseller_child values to update in child profile (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\UpdateChild $resellerChild values to update in child profile (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateResellerChild($child_id, $reseller_child) + public function updateResellerChild($childId, $resellerChild) { - list($response) = $this->updateResellerChildWithHttpInfo($child_id, $reseller_child); + list($response) = $this->updateResellerChildWithHttpInfo($childId, $resellerChild); return $response; } @@ -891,20 +891,20 @@ public function updateResellerChild($child_id, $reseller_child) * * Updates infos of reseller's child based on the childId supplied * - * @param int $child_id id of reseller's child (required) - * @param \Swagger\Client\Model\ResellerChild1 $reseller_child values to update in child profile (required) + * @param int $childId id of reseller's child (required) + * @param \Swagger\Client\Model\UpdateChild $resellerChild values to update in child profile (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateResellerChildWithHttpInfo($child_id, $reseller_child) + public function updateResellerChildWithHttpInfo($childId, $resellerChild) { - // verify the required parameter 'child_id' is set - if ($child_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $child_id when calling updateResellerChild'); + // verify the required parameter 'childId' is set + if ($childId === null) { + throw new \InvalidArgumentException('Missing the required parameter $childId when calling updateResellerChild'); } - // verify the required parameter 'reseller_child' is set - if ($reseller_child === null) { - throw new \InvalidArgumentException('Missing the required parameter $reseller_child when calling updateResellerChild'); + // verify the required parameter 'resellerChild' is set + if ($resellerChild === null) { + throw new \InvalidArgumentException('Missing the required parameter $resellerChild when calling updateResellerChild'); } // parse inputs $resourcePath = "/reseller/children/{childId}"; @@ -919,17 +919,17 @@ public function updateResellerChildWithHttpInfo($child_id, $reseller_child) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($child_id !== null) { + if ($childId !== null) { $resourcePath = str_replace( "{" . "childId" . "}", - $this->apiClient->getSerializer()->toPathValue($child_id), + $this->apiClient->getSerializer()->toPathValue($childId), $resourcePath ); } // body params $_tempBody = null; - if (isset($reseller_child)) { - $_tempBody = $reseller_child; + if (isset($resellerChild)) { + $_tempBody = $resellerChild; } // for model (json/xml) @@ -959,15 +959,15 @@ public function updateResellerChildWithHttpInfo($child_id, $reseller_child) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/SMSCampaignsApi.php b/lib/Api/SMSCampaignsApi.php old mode 100755 new mode 100644 index 4b8efb03..e13d4116 --- a/lib/Api/SMSCampaignsApi.php +++ b/lib/Api/SMSCampaignsApi.php @@ -92,13 +92,13 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Creates a SMS campaign * - * @param \Swagger\Client\Model\CreateSmsCampaign1 $create_sms_campaign Values to create an SMS Campaign (required) + * @param \Swagger\Client\Model\CreateSmsCampaign $createSmsCampaign Values to create an SMS Campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createSMSCampaign($create_sms_campaign) + public function createSMSCampaign($createSmsCampaign) { - list($response) = $this->createSMSCampaignWithHttpInfo($create_sms_campaign); + list($response) = $this->createSMSCampaignWithHttpInfo($createSmsCampaign); return $response; } @@ -107,15 +107,15 @@ public function createSMSCampaign($create_sms_campaign) * * Creates a SMS campaign * - * @param \Swagger\Client\Model\CreateSmsCampaign1 $create_sms_campaign Values to create an SMS Campaign (required) + * @param \Swagger\Client\Model\CreateSmsCampaign $createSmsCampaign Values to create an SMS Campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createSMSCampaignWithHttpInfo($create_sms_campaign) + public function createSMSCampaignWithHttpInfo($createSmsCampaign) { - // verify the required parameter 'create_sms_campaign' is set - if ($create_sms_campaign === null) { - throw new \InvalidArgumentException('Missing the required parameter $create_sms_campaign when calling createSMSCampaign'); + // verify the required parameter 'createSmsCampaign' is set + if ($createSmsCampaign === null) { + throw new \InvalidArgumentException('Missing the required parameter $createSmsCampaign when calling createSMSCampaign'); } // parse inputs $resourcePath = "/smsCampaigns"; @@ -131,8 +131,8 @@ public function createSMSCampaignWithHttpInfo($create_sms_campaign) // body params $_tempBody = null; - if (isset($create_sms_campaign)) { - $_tempBody = $create_sms_campaign; + if (isset($createSmsCampaign)) { + $_tempBody = $createSmsCampaign; } // for model (json/xml) @@ -154,19 +154,19 @@ public function createSMSCampaignWithHttpInfo($create_sms_campaign) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/smsCampaigns' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -180,13 +180,13 @@ public function createSMSCampaignWithHttpInfo($create_sms_campaign) * * Delete the SMS campaign * - * @param string $campaign_id id of the SMS campaign (required) + * @param string $campaignId id of the SMS campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteSMSCampaigns($campaign_id) + public function deleteSMSCampaigns($campaignId) { - list($response) = $this->deleteSMSCampaignsWithHttpInfo($campaign_id); + list($response) = $this->deleteSMSCampaignsWithHttpInfo($campaignId); return $response; } @@ -195,15 +195,15 @@ public function deleteSMSCampaigns($campaign_id) * * Delete the SMS campaign * - * @param string $campaign_id id of the SMS campaign (required) + * @param string $campaignId id of the SMS campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteSMSCampaignsWithHttpInfo($campaign_id) + public function deleteSMSCampaignsWithHttpInfo($campaignId) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling deleteSMSCampaigns'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling deleteSMSCampaigns'); } // parse inputs $resourcePath = "/smsCampaigns/{campaignId}"; @@ -218,10 +218,10 @@ public function deleteSMSCampaignsWithHttpInfo($campaign_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } @@ -253,11 +253,11 @@ public function deleteSMSCampaignsWithHttpInfo($campaign_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -275,7 +275,7 @@ public function deleteSMSCampaignsWithHttpInfo($campaign_id) * @param int $limit Number limitation for the result returned (optional, default to 500) * @param int $offset Beginning point in the list to retrieve from. (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20021 + * @return \Swagger\Client\Model\GetSmsCampaigns */ public function getSMSCampaigns($status = null, $limit = '500', $offset = '0') { @@ -292,7 +292,7 @@ public function getSMSCampaigns($status = null, $limit = '500', $offset = '0') * @param int $limit Number limitation for the result returned (optional, default to 500) * @param int $offset Beginning point in the list to retrieve from. (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20021, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetSmsCampaigns, HTTP status code, HTTP response headers (array of strings) */ public function getSMSCampaignsWithHttpInfo($status = null, $limit = '500', $offset = '0') { @@ -344,19 +344,19 @@ public function getSMSCampaignsWithHttpInfo($status = null, $limit = '500', $off $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20021', + '\Swagger\Client\Model\GetSmsCampaigns', '/smsCampaigns' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20021', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetSmsCampaigns', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20021', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetSmsCampaigns', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -370,14 +370,14 @@ public function getSMSCampaignsWithHttpInfo($status = null, $limit = '500', $off * * Get a SMS campaign * - * @param string $campaign_id id of the SMS campaign (required) - * @param \Swagger\Client\Model\GetSmsCampaign1 $get_sms_campaign Values to update an SMS Campaign (required) + * @param string $campaignId id of the SMS campaign (required) + * @param \Swagger\Client\Model\GetSmsCampaign $getSmsCampaign Values to update an SMS Campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20021Campaigns + * @return \Swagger\Client\Model\GetSmsCampaign */ - public function getSmsCampaign($campaign_id, $get_sms_campaign) + public function getSmsCampaign($campaignId, $getSmsCampaign) { - list($response) = $this->getSmsCampaignWithHttpInfo($campaign_id, $get_sms_campaign); + list($response) = $this->getSmsCampaignWithHttpInfo($campaignId, $getSmsCampaign); return $response; } @@ -386,20 +386,20 @@ public function getSmsCampaign($campaign_id, $get_sms_campaign) * * Get a SMS campaign * - * @param string $campaign_id id of the SMS campaign (required) - * @param \Swagger\Client\Model\GetSmsCampaign1 $get_sms_campaign Values to update an SMS Campaign (required) + * @param string $campaignId id of the SMS campaign (required) + * @param \Swagger\Client\Model\GetSmsCampaign $getSmsCampaign Values to update an SMS Campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20021Campaigns, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetSmsCampaign, HTTP status code, HTTP response headers (array of strings) */ - public function getSmsCampaignWithHttpInfo($campaign_id, $get_sms_campaign) + public function getSmsCampaignWithHttpInfo($campaignId, $getSmsCampaign) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling getSmsCampaign'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling getSmsCampaign'); } - // verify the required parameter 'get_sms_campaign' is set - if ($get_sms_campaign === null) { - throw new \InvalidArgumentException('Missing the required parameter $get_sms_campaign when calling getSmsCampaign'); + // verify the required parameter 'getSmsCampaign' is set + if ($getSmsCampaign === null) { + throw new \InvalidArgumentException('Missing the required parameter $getSmsCampaign when calling getSmsCampaign'); } // parse inputs $resourcePath = "/smsCampaigns/{campaignId}"; @@ -414,17 +414,17 @@ public function getSmsCampaignWithHttpInfo($campaign_id, $get_sms_campaign) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($get_sms_campaign)) { - $_tempBody = $get_sms_campaign; + if (isset($getSmsCampaign)) { + $_tempBody = $getSmsCampaign; } // for model (json/xml) @@ -446,23 +446,23 @@ public function getSmsCampaignWithHttpInfo($campaign_id, $get_sms_campaign) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20021Campaigns', + '\Swagger\Client\Model\GetSmsCampaign', '/smsCampaigns/{campaignId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20021Campaigns', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetSmsCampaign', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20021Campaigns', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetSmsCampaign', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -476,14 +476,14 @@ public function getSmsCampaignWithHttpInfo($campaign_id, $get_sms_campaign) * * Exports the recipients of the specified campaign. * - * @param string $campaign_id id of the campaign (required) - * @param \Swagger\Client\Model\RecipientExport1 $recipient_export Values to send for a recipient export request (optional) + * @param string $campaignId id of the campaign (required) + * @param \Swagger\Client\Model\RequestSMSRecipientExport $recipientExport Values to send for a recipient export request (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse202 + * @return \Swagger\Client\Model\CreatedProcessId */ - public function requestSMSRecipientExport($campaign_id, $recipient_export = null) + public function requestSMSRecipientExport($campaignId, $recipientExport = null) { - list($response) = $this->requestSMSRecipientExportWithHttpInfo($campaign_id, $recipient_export); + list($response) = $this->requestSMSRecipientExportWithHttpInfo($campaignId, $recipientExport); return $response; } @@ -492,16 +492,16 @@ public function requestSMSRecipientExport($campaign_id, $recipient_export = null * * Exports the recipients of the specified campaign. * - * @param string $campaign_id id of the campaign (required) - * @param \Swagger\Client\Model\RecipientExport1 $recipient_export Values to send for a recipient export request (optional) + * @param string $campaignId id of the campaign (required) + * @param \Swagger\Client\Model\RequestSMSRecipientExport $recipientExport Values to send for a recipient export request (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse202, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreatedProcessId, HTTP status code, HTTP response headers (array of strings) */ - public function requestSMSRecipientExportWithHttpInfo($campaign_id, $recipient_export = null) + public function requestSMSRecipientExportWithHttpInfo($campaignId, $recipientExport = null) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling requestSMSRecipientExport'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling requestSMSRecipientExport'); } // parse inputs $resourcePath = "/smsCampaigns/{campaignId}/exportRecipients"; @@ -516,17 +516,17 @@ public function requestSMSRecipientExportWithHttpInfo($campaign_id, $recipient_e $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($recipient_export)) { - $_tempBody = $recipient_export; + if (isset($recipientExport)) { + $_tempBody = $recipientExport; } // for model (json/xml) @@ -548,23 +548,23 @@ public function requestSMSRecipientExportWithHttpInfo($campaign_id, $recipient_e $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse202', + '\Swagger\Client\Model\CreatedProcessId', '/smsCampaigns/{campaignId}/exportRecipients' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse202', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreatedProcessId', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 202: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse202', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreatedProcessId', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -578,13 +578,13 @@ public function requestSMSRecipientExportWithHttpInfo($campaign_id, $recipient_e * * Send your SMS campaign immediately * - * @param string $campaign_id id of the campaign (required) + * @param string $campaignId id of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function sendSMSCampaignNow($campaign_id) + public function sendSMSCampaignNow($campaignId) { - list($response) = $this->sendSMSCampaignNowWithHttpInfo($campaign_id); + list($response) = $this->sendSMSCampaignNowWithHttpInfo($campaignId); return $response; } @@ -593,15 +593,15 @@ public function sendSMSCampaignNow($campaign_id) * * Send your SMS campaign immediately * - * @param string $campaign_id id of the campaign (required) + * @param string $campaignId id of the campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function sendSMSCampaignNowWithHttpInfo($campaign_id) + public function sendSMSCampaignNowWithHttpInfo($campaignId) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling sendSMSCampaignNow'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendSMSCampaignNow'); } // parse inputs $resourcePath = "/smsCampaigns/{campaignId}/sendNow"; @@ -616,10 +616,10 @@ public function sendSMSCampaignNowWithHttpInfo($campaign_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } @@ -651,15 +651,15 @@ public function sendSMSCampaignNowWithHttpInfo($campaign_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 402: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -673,14 +673,14 @@ public function sendSMSCampaignNowWithHttpInfo($campaign_id) * * Send report of SMS campaigns * - * @param string $campaign_id id of the campaign (required) - * @param \Swagger\Client\Model\SendReport2 $send_report Values for send a report (required) + * @param string $campaignId id of the campaign (required) + * @param \Swagger\Client\Model\SendReport $sendReport Values for send a report (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function sendSMSReport($campaign_id, $send_report) + public function sendSMSReport($campaignId, $sendReport) { - list($response) = $this->sendSMSReportWithHttpInfo($campaign_id, $send_report); + list($response) = $this->sendSMSReportWithHttpInfo($campaignId, $sendReport); return $response; } @@ -689,20 +689,20 @@ public function sendSMSReport($campaign_id, $send_report) * * Send report of SMS campaigns * - * @param string $campaign_id id of the campaign (required) - * @param \Swagger\Client\Model\SendReport2 $send_report Values for send a report (required) + * @param string $campaignId id of the campaign (required) + * @param \Swagger\Client\Model\SendReport $sendReport Values for send a report (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function sendSMSReportWithHttpInfo($campaign_id, $send_report) + public function sendSMSReportWithHttpInfo($campaignId, $sendReport) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling sendSMSReport'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendSMSReport'); } - // verify the required parameter 'send_report' is set - if ($send_report === null) { - throw new \InvalidArgumentException('Missing the required parameter $send_report when calling sendSMSReport'); + // verify the required parameter 'sendReport' is set + if ($sendReport === null) { + throw new \InvalidArgumentException('Missing the required parameter $sendReport when calling sendSMSReport'); } // parse inputs $resourcePath = "/smsCampaigns/{campaignId}/sendReport"; @@ -717,17 +717,17 @@ public function sendSMSReportWithHttpInfo($campaign_id, $send_report) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($send_report)) { - $_tempBody = $send_report; + if (isset($sendReport)) { + $_tempBody = $sendReport; } // for model (json/xml) @@ -757,11 +757,11 @@ public function sendSMSReportWithHttpInfo($campaign_id, $send_report) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -775,14 +775,14 @@ public function sendSMSReportWithHttpInfo($campaign_id, $send_report) * * Send an SMS * - * @param string $campaign_id Id of the SMS campaign (required) - * @param \Swagger\Client\Model\SendTestSms1 $send_test_sms Mobile number to which send the test (required) + * @param string $campaignId Id of the SMS campaign (required) + * @param \Swagger\Client\Model\SendTestSms $sendTestSms Mobile number to which send the test (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function sendTestSms($campaign_id, $send_test_sms) + public function sendTestSms($campaignId, $sendTestSms) { - list($response) = $this->sendTestSmsWithHttpInfo($campaign_id, $send_test_sms); + list($response) = $this->sendTestSmsWithHttpInfo($campaignId, $sendTestSms); return $response; } @@ -791,20 +791,20 @@ public function sendTestSms($campaign_id, $send_test_sms) * * Send an SMS * - * @param string $campaign_id Id of the SMS campaign (required) - * @param \Swagger\Client\Model\SendTestSms1 $send_test_sms Mobile number to which send the test (required) + * @param string $campaignId Id of the SMS campaign (required) + * @param \Swagger\Client\Model\SendTestSms $sendTestSms Mobile number to which send the test (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function sendTestSmsWithHttpInfo($campaign_id, $send_test_sms) + public function sendTestSmsWithHttpInfo($campaignId, $sendTestSms) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling sendTestSms'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendTestSms'); } - // verify the required parameter 'send_test_sms' is set - if ($send_test_sms === null) { - throw new \InvalidArgumentException('Missing the required parameter $send_test_sms when calling sendTestSms'); + // verify the required parameter 'sendTestSms' is set + if ($sendTestSms === null) { + throw new \InvalidArgumentException('Missing the required parameter $sendTestSms when calling sendTestSms'); } // parse inputs $resourcePath = "/smsCampaigns/{campaignId}/sendTest"; @@ -819,17 +819,17 @@ public function sendTestSmsWithHttpInfo($campaign_id, $send_test_sms) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($send_test_sms)) { - $_tempBody = $send_test_sms; + if (isset($sendTestSms)) { + $_tempBody = $sendTestSms; } // for model (json/xml) @@ -859,11 +859,11 @@ public function sendTestSmsWithHttpInfo($campaign_id, $send_test_sms) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse4001', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\PostSendSmsTestFailed', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -877,14 +877,14 @@ public function sendTestSmsWithHttpInfo($campaign_id, $send_test_sms) * * Update the campaign status * - * @param string $campaign_id id of the campaign (required) - * @param \Swagger\Client\Model\Status1 $status Status of the campaign. (required) + * @param string $campaignId id of the campaign (required) + * @param \Swagger\Client\Model\UpdateCampaignStatus $status Status of the campaign. (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateSMSCampaignStatus($campaign_id, $status) + public function updateSMSCampaignStatus($campaignId, $status) { - list($response) = $this->updateSMSCampaignStatusWithHttpInfo($campaign_id, $status); + list($response) = $this->updateSMSCampaignStatusWithHttpInfo($campaignId, $status); return $response; } @@ -893,16 +893,16 @@ public function updateSMSCampaignStatus($campaign_id, $status) * * Update the campaign status * - * @param string $campaign_id id of the campaign (required) - * @param \Swagger\Client\Model\Status1 $status Status of the campaign. (required) + * @param string $campaignId id of the campaign (required) + * @param \Swagger\Client\Model\UpdateCampaignStatus $status Status of the campaign. (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateSMSCampaignStatusWithHttpInfo($campaign_id, $status) + public function updateSMSCampaignStatusWithHttpInfo($campaignId, $status) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling updateSMSCampaignStatus'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling updateSMSCampaignStatus'); } // verify the required parameter 'status' is set if ($status === null) { @@ -921,10 +921,10 @@ public function updateSMSCampaignStatusWithHttpInfo($campaign_id, $status) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } @@ -961,11 +961,11 @@ public function updateSMSCampaignStatusWithHttpInfo($campaign_id, $status) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -979,14 +979,14 @@ public function updateSMSCampaignStatusWithHttpInfo($campaign_id, $status) * * Updates a SMS campaign * - * @param string $campaign_id id of the SMS campaign (required) - * @param \Swagger\Client\Model\UpdateSmsCampaign1 $update_sms_campaign Values to update an SMS Campaign (required) + * @param string $campaignId id of the SMS campaign (required) + * @param \Swagger\Client\Model\UpdateSmsCampaign $updateSmsCampaign Values to update an SMS Campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateSmsCampaign($campaign_id, $update_sms_campaign) + public function updateSmsCampaign($campaignId, $updateSmsCampaign) { - list($response) = $this->updateSmsCampaignWithHttpInfo($campaign_id, $update_sms_campaign); + list($response) = $this->updateSmsCampaignWithHttpInfo($campaignId, $updateSmsCampaign); return $response; } @@ -995,20 +995,20 @@ public function updateSmsCampaign($campaign_id, $update_sms_campaign) * * Updates a SMS campaign * - * @param string $campaign_id id of the SMS campaign (required) - * @param \Swagger\Client\Model\UpdateSmsCampaign1 $update_sms_campaign Values to update an SMS Campaign (required) + * @param string $campaignId id of the SMS campaign (required) + * @param \Swagger\Client\Model\UpdateSmsCampaign $updateSmsCampaign Values to update an SMS Campaign (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateSmsCampaignWithHttpInfo($campaign_id, $update_sms_campaign) + public function updateSmsCampaignWithHttpInfo($campaignId, $updateSmsCampaign) { - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling updateSmsCampaign'); + // verify the required parameter 'campaignId' is set + if ($campaignId === null) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling updateSmsCampaign'); } - // verify the required parameter 'update_sms_campaign' is set - if ($update_sms_campaign === null) { - throw new \InvalidArgumentException('Missing the required parameter $update_sms_campaign when calling updateSmsCampaign'); + // verify the required parameter 'updateSmsCampaign' is set + if ($updateSmsCampaign === null) { + throw new \InvalidArgumentException('Missing the required parameter $updateSmsCampaign when calling updateSmsCampaign'); } // parse inputs $resourcePath = "/smsCampaigns/{campaignId}"; @@ -1023,17 +1023,17 @@ public function updateSmsCampaignWithHttpInfo($campaign_id, $update_sms_campaign $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($campaign_id !== null) { + if ($campaignId !== null) { $resourcePath = str_replace( "{" . "campaignId" . "}", - $this->apiClient->getSerializer()->toPathValue($campaign_id), + $this->apiClient->getSerializer()->toPathValue($campaignId), $resourcePath ); } // body params $_tempBody = null; - if (isset($update_sms_campaign)) { - $_tempBody = $update_sms_campaign; + if (isset($updateSmsCampaign)) { + $_tempBody = $updateSmsCampaign; } // for model (json/xml) @@ -1063,11 +1063,11 @@ public function updateSmsCampaignWithHttpInfo($campaign_id, $update_sms_campaign } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/SMTPApi.php b/lib/Api/SMTPApi.php old mode 100755 new mode 100644 index 966317ca..4fb24438 --- a/lib/Api/SMTPApi.php +++ b/lib/Api/SMTPApi.php @@ -92,13 +92,13 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Create an smtp template * - * @param \Swagger\Client\Model\SmtpTemplate $smtp_template values to update in smtp template (required) + * @param \Swagger\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in smtp template (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createSmtpTemplate($smtp_template) + public function createSmtpTemplate($smtpTemplate) { - list($response) = $this->createSmtpTemplateWithHttpInfo($smtp_template); + list($response) = $this->createSmtpTemplateWithHttpInfo($smtpTemplate); return $response; } @@ -107,15 +107,15 @@ public function createSmtpTemplate($smtp_template) * * Create an smtp template * - * @param \Swagger\Client\Model\SmtpTemplate $smtp_template values to update in smtp template (required) + * @param \Swagger\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in smtp template (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createSmtpTemplateWithHttpInfo($smtp_template) + public function createSmtpTemplateWithHttpInfo($smtpTemplate) { - // verify the required parameter 'smtp_template' is set - if ($smtp_template === null) { - throw new \InvalidArgumentException('Missing the required parameter $smtp_template when calling createSmtpTemplate'); + // verify the required parameter 'smtpTemplate' is set + if ($smtpTemplate === null) { + throw new \InvalidArgumentException('Missing the required parameter $smtpTemplate when calling createSmtpTemplate'); } // parse inputs $resourcePath = "/smtp/templates"; @@ -131,8 +131,8 @@ public function createSmtpTemplateWithHttpInfo($smtp_template) // body params $_tempBody = null; - if (isset($smtp_template)) { - $_tempBody = $smtp_template; + if (isset($smtpTemplate)) { + $_tempBody = $smtpTemplate; } // for model (json/xml) @@ -154,19 +154,19 @@ public function createSmtpTemplateWithHttpInfo($smtp_template) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/smtp/templates' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -180,13 +180,13 @@ public function createSmtpTemplateWithHttpInfo($smtp_template) * * Delete hardbounces * - * @param \Swagger\Client\Model\DeleteHardbounces1 $delete_hardbounces values to delete hardbounces (optional) + * @param \Swagger\Client\Model\DeleteHardbounces $deleteHardbounces values to delete hardbounces (optional) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteHardbounces($delete_hardbounces = null) + public function deleteHardbounces($deleteHardbounces = null) { - list($response) = $this->deleteHardbouncesWithHttpInfo($delete_hardbounces); + list($response) = $this->deleteHardbouncesWithHttpInfo($deleteHardbounces); return $response; } @@ -195,11 +195,11 @@ public function deleteHardbounces($delete_hardbounces = null) * * Delete hardbounces * - * @param \Swagger\Client\Model\DeleteHardbounces1 $delete_hardbounces values to delete hardbounces (optional) + * @param \Swagger\Client\Model\DeleteHardbounces $deleteHardbounces values to delete hardbounces (optional) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteHardbouncesWithHttpInfo($delete_hardbounces = null) + public function deleteHardbouncesWithHttpInfo($deleteHardbounces = null) { // parse inputs $resourcePath = "/smtp/deleteHardbounces"; @@ -215,8 +215,8 @@ public function deleteHardbouncesWithHttpInfo($delete_hardbounces = null) // body params $_tempBody = null; - if (isset($delete_hardbounces)) { - $_tempBody = $delete_hardbounces; + if (isset($deleteHardbounces)) { + $_tempBody = $deleteHardbounces; } // for model (json/xml) @@ -246,7 +246,7 @@ public function deleteHardbouncesWithHttpInfo($delete_hardbounces = null) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -260,16 +260,16 @@ public function deleteHardbouncesWithHttpInfo($delete_hardbounces = null) * * Get your SMTP activity aggregated over a period of time * - * @param \DateTime $start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) * @param string $tag Tag of the emails (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20010 + * @return \Swagger\Client\Model\GetAggregatedReport */ - public function getAggregatedSmtpReport($start_date = null, $end_date = null, $days = null, $tag = null) + public function getAggregatedSmtpReport($startDate = null, $endDate = null, $days = null, $tag = null) { - list($response) = $this->getAggregatedSmtpReportWithHttpInfo($start_date, $end_date, $days, $tag); + list($response) = $this->getAggregatedSmtpReportWithHttpInfo($startDate, $endDate, $days, $tag); return $response; } @@ -278,14 +278,14 @@ public function getAggregatedSmtpReport($start_date = null, $end_date = null, $d * * Get your SMTP activity aggregated over a period of time * - * @param \DateTime $start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) * @param string $tag Tag of the emails (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20010, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetAggregatedReport, HTTP status code, HTTP response headers (array of strings) */ - public function getAggregatedSmtpReportWithHttpInfo($start_date = null, $end_date = null, $days = null, $tag = null) + public function getAggregatedSmtpReportWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { // parse inputs $resourcePath = "/smtp/statistics/aggregatedReport"; @@ -300,12 +300,12 @@ public function getAggregatedSmtpReportWithHttpInfo($start_date = null, $end_dat $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // query params - if ($start_date !== null) { - $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($start_date); + if ($startDate !== null) { + $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($startDate); } // query params - if ($end_date !== null) { - $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($end_date); + if ($endDate !== null) { + $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($endDate); } // query params if ($days !== null) { @@ -335,19 +335,19 @@ public function getAggregatedSmtpReportWithHttpInfo($start_date = null, $end_dat $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20010', + '\Swagger\Client\Model\GetAggregatedReport', '/smtp/statistics/aggregatedReport' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20010', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetAggregatedReport', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20010', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetAggregatedReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -363,20 +363,20 @@ public function getAggregatedSmtpReportWithHttpInfo($start_date = null, $end_dat * * @param int $limit Number limitation for the result returned (optional, default to 50) * @param int $offset Beginning point in the list to retrieve from. (optional, default to 0) - * @param \DateTime $start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) * @param string $email Filter the report for a specific email addresses (optional) * @param string $event Filter the report for a specific event type (optional) * @param string $tags Filter the report for tags (serialized and urlencoded array) (optional) - * @param string $message_id Filter on a specific message id (optional) - * @param string $template_id Filter on a specific template id (optional) + * @param string $messageId Filter on a specific message id (optional) + * @param string $templateId Filter on a specific template id (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20011 + * @return \Swagger\Client\Model\GetEmailEventReport */ - public function getEmailEventReport($limit = '50', $offset = '0', $start_date = null, $end_date = null, $days = null, $email = null, $event = null, $tags = null, $message_id = null, $template_id = null) + public function getEmailEventReport($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null) { - list($response) = $this->getEmailEventReportWithHttpInfo($limit, $offset, $start_date, $end_date, $days, $email, $event, $tags, $message_id, $template_id); + list($response) = $this->getEmailEventReportWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId); return $response; } @@ -387,18 +387,18 @@ public function getEmailEventReport($limit = '50', $offset = '0', $start_date = * * @param int $limit Number limitation for the result returned (optional, default to 50) * @param int $offset Beginning point in the list to retrieve from. (optional, default to 0) - * @param \DateTime $start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) * @param string $email Filter the report for a specific email addresses (optional) * @param string $event Filter the report for a specific event type (optional) * @param string $tags Filter the report for tags (serialized and urlencoded array) (optional) - * @param string $message_id Filter on a specific message id (optional) - * @param string $template_id Filter on a specific template id (optional) + * @param string $messageId Filter on a specific message id (optional) + * @param string $templateId Filter on a specific template id (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20011, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetEmailEventReport, HTTP status code, HTTP response headers (array of strings) */ - public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $start_date = null, $end_date = null, $days = null, $email = null, $event = null, $tags = null, $message_id = null, $template_id = null) + public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null) { if (!is_null($limit) && ($limit > 100)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getEmailEventReport, must be smaller than or equal to 100.'); @@ -425,12 +425,12 @@ public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $s $queryParams['offset'] = $this->apiClient->getSerializer()->toQueryValue($offset); } // query params - if ($start_date !== null) { - $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($start_date); + if ($startDate !== null) { + $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($startDate); } // query params - if ($end_date !== null) { - $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($end_date); + if ($endDate !== null) { + $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($endDate); } // query params if ($days !== null) { @@ -449,12 +449,12 @@ public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $s $queryParams['tags'] = $this->apiClient->getSerializer()->toQueryValue($tags); } // query params - if ($message_id !== null) { - $queryParams['messageId'] = $this->apiClient->getSerializer()->toQueryValue($message_id); + if ($messageId !== null) { + $queryParams['messageId'] = $this->apiClient->getSerializer()->toQueryValue($messageId); } // query params - if ($template_id !== null) { - $queryParams['templateId'] = $this->apiClient->getSerializer()->toQueryValue($template_id); + if ($templateId !== null) { + $queryParams['templateId'] = $this->apiClient->getSerializer()->toQueryValue($templateId); } // for model (json/xml) @@ -476,19 +476,19 @@ public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $s $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20011', + '\Swagger\Client\Model\GetEmailEventReport', '/smtp/statistics/events' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20011', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetEmailEventReport', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20011', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetEmailEventReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -504,16 +504,16 @@ public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $s * * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document on the page (optional, default to 0) - * @param \DateTime $start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) * @param string $tag Tag of the emails (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2009 + * @return \Swagger\Client\Model\GetReports */ - public function getSmtpReport($limit = '50', $offset = '0', $start_date = null, $end_date = null, $days = null, $tag = null) + public function getSmtpReport($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null) { - list($response) = $this->getSmtpReportWithHttpInfo($limit, $offset, $start_date, $end_date, $days, $tag); + list($response) = $this->getSmtpReportWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $tag); return $response; } @@ -524,14 +524,14 @@ public function getSmtpReport($limit = '50', $offset = '0', $start_date = null, * * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document on the page (optional, default to 0) - * @param \DateTime $start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) * @param string $tag Tag of the emails (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2009, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetReports, HTTP status code, HTTP response headers (array of strings) */ - public function getSmtpReportWithHttpInfo($limit = '50', $offset = '0', $start_date = null, $end_date = null, $days = null, $tag = null) + public function getSmtpReportWithHttpInfo($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null) { if (!is_null($limit) && ($limit > 100)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getSmtpReport, must be smaller than or equal to 100.'); @@ -558,12 +558,12 @@ public function getSmtpReportWithHttpInfo($limit = '50', $offset = '0', $start_d $queryParams['offset'] = $this->apiClient->getSerializer()->toQueryValue($offset); } // query params - if ($start_date !== null) { - $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($start_date); + if ($startDate !== null) { + $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($startDate); } // query params - if ($end_date !== null) { - $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($end_date); + if ($endDate !== null) { + $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($endDate); } // query params if ($days !== null) { @@ -593,19 +593,19 @@ public function getSmtpReportWithHttpInfo($limit = '50', $offset = '0', $start_d $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2009', + '\Swagger\Client\Model\GetReports', '/smtp/statistics/reports' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2009', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetReports', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2009', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetReports', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -619,13 +619,13 @@ public function getSmtpReportWithHttpInfo($limit = '50', $offset = '0', $start_d * * Returns the template informations * - * @param string $template_id id of the template (required) + * @param string $templateId id of the template (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20012Templates + * @return \Swagger\Client\Model\GetSmtpTemplateOverview */ - public function getSmtpTemplate($template_id) + public function getSmtpTemplate($templateId) { - list($response) = $this->getSmtpTemplateWithHttpInfo($template_id); + list($response) = $this->getSmtpTemplateWithHttpInfo($templateId); return $response; } @@ -634,15 +634,15 @@ public function getSmtpTemplate($template_id) * * Returns the template informations * - * @param string $template_id id of the template (required) + * @param string $templateId id of the template (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20012Templates, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetSmtpTemplateOverview, HTTP status code, HTTP response headers (array of strings) */ - public function getSmtpTemplateWithHttpInfo($template_id) + public function getSmtpTemplateWithHttpInfo($templateId) { - // verify the required parameter 'template_id' is set - if ($template_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $template_id when calling getSmtpTemplate'); + // verify the required parameter 'templateId' is set + if ($templateId === null) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling getSmtpTemplate'); } // parse inputs $resourcePath = "/smtp/templates/{templateId}"; @@ -657,10 +657,10 @@ public function getSmtpTemplateWithHttpInfo($template_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($template_id !== null) { + if ($templateId !== null) { $resourcePath = str_replace( "{" . "templateId" . "}", - $this->apiClient->getSerializer()->toPathValue($template_id), + $this->apiClient->getSerializer()->toPathValue($templateId), $resourcePath ); } @@ -684,23 +684,23 @@ public function getSmtpTemplateWithHttpInfo($template_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20012Templates', + '\Swagger\Client\Model\GetSmtpTemplateOverview', '/smtp/templates/{templateId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20012Templates', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetSmtpTemplateOverview', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20012Templates', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetSmtpTemplateOverview', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -714,15 +714,15 @@ public function getSmtpTemplateWithHttpInfo($template_id) * * Get the list of SMTP templates * - * @param bool $template_status Filter on the status of the template. Active = true, inactive = false (optional) + * @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional) * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document in the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20012 + * @return \Swagger\Client\Model\GetSmtpTemplates */ - public function getSmtpTemplates($template_status = null, $limit = '50', $offset = '0') + public function getSmtpTemplates($templateStatus = null, $limit = '50', $offset = '0') { - list($response) = $this->getSmtpTemplatesWithHttpInfo($template_status, $limit, $offset); + list($response) = $this->getSmtpTemplatesWithHttpInfo($templateStatus, $limit, $offset); return $response; } @@ -731,13 +731,13 @@ public function getSmtpTemplates($template_status = null, $limit = '50', $offset * * Get the list of SMTP templates * - * @param bool $template_status Filter on the status of the template. Active = true, inactive = false (optional) + * @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional) * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document in the page (optional, default to 0) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20012, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetSmtpTemplates, HTTP status code, HTTP response headers (array of strings) */ - public function getSmtpTemplatesWithHttpInfo($template_status = null, $limit = '50', $offset = '0') + public function getSmtpTemplatesWithHttpInfo($templateStatus = null, $limit = '50', $offset = '0') { if (!is_null($limit) && ($limit > 1000)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getSmtpTemplates, must be smaller than or equal to 1000.'); @@ -756,8 +756,8 @@ public function getSmtpTemplatesWithHttpInfo($template_status = null, $limit = ' $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // query params - if ($template_status !== null) { - $queryParams['templateStatus'] = $this->apiClient->getSerializer()->toQueryValue($template_status); + if ($templateStatus !== null) { + $queryParams['templateStatus'] = $this->apiClient->getSerializer()->toQueryValue($templateStatus); } // query params if ($limit !== null) { @@ -787,19 +787,19 @@ public function getSmtpTemplatesWithHttpInfo($template_status = null, $limit = ' $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20012', + '\Swagger\Client\Model\GetSmtpTemplates', '/smtp/templates' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20012', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetSmtpTemplates', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20012', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetSmtpTemplates', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -813,14 +813,14 @@ public function getSmtpTemplatesWithHttpInfo($template_status = null, $limit = ' * * Send a template * - * @param string $template_id Id of the template (required) - * @param \Swagger\Client\Model\SendEmail1 $send_email (required) + * @param string $templateId Id of the template (required) + * @param \Swagger\Client\Model\SendEmail $sendEmail (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2012 + * @return \Swagger\Client\Model\SendTemplateEmail */ - public function sendTemplate($template_id, $send_email) + public function sendTemplate($templateId, $sendEmail) { - list($response) = $this->sendTemplateWithHttpInfo($template_id, $send_email); + list($response) = $this->sendTemplateWithHttpInfo($templateId, $sendEmail); return $response; } @@ -829,20 +829,20 @@ public function sendTemplate($template_id, $send_email) * * Send a template * - * @param string $template_id Id of the template (required) - * @param \Swagger\Client\Model\SendEmail1 $send_email (required) + * @param string $templateId Id of the template (required) + * @param \Swagger\Client\Model\SendEmail $sendEmail (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2012, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\SendTemplateEmail, HTTP status code, HTTP response headers (array of strings) */ - public function sendTemplateWithHttpInfo($template_id, $send_email) + public function sendTemplateWithHttpInfo($templateId, $sendEmail) { - // verify the required parameter 'template_id' is set - if ($template_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $template_id when calling sendTemplate'); + // verify the required parameter 'templateId' is set + if ($templateId === null) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling sendTemplate'); } - // verify the required parameter 'send_email' is set - if ($send_email === null) { - throw new \InvalidArgumentException('Missing the required parameter $send_email when calling sendTemplate'); + // verify the required parameter 'sendEmail' is set + if ($sendEmail === null) { + throw new \InvalidArgumentException('Missing the required parameter $sendEmail when calling sendTemplate'); } // parse inputs $resourcePath = "/smtp/templates/{templateId}/send"; @@ -857,17 +857,17 @@ public function sendTemplateWithHttpInfo($template_id, $send_email) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($template_id !== null) { + if ($templateId !== null) { $resourcePath = str_replace( "{" . "templateId" . "}", - $this->apiClient->getSerializer()->toPathValue($template_id), + $this->apiClient->getSerializer()->toPathValue($templateId), $resourcePath ); } // body params $_tempBody = null; - if (isset($send_email)) { - $_tempBody = $send_email; + if (isset($sendEmail)) { + $_tempBody = $sendEmail; } // for model (json/xml) @@ -889,23 +889,23 @@ public function sendTemplateWithHttpInfo($template_id, $send_email) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2012', + '\Swagger\Client\Model\SendTemplateEmail', '/smtp/templates/{templateId}/send' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2012', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\SendTemplateEmail', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2012', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\SendTemplateEmail', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse400', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\PostSendFailed', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -919,14 +919,14 @@ public function sendTemplateWithHttpInfo($template_id, $send_email) * * Send a template to your test list * - * @param string $template_id Id of the template (required) - * @param \Swagger\Client\Model\SendTestEmail1 $send_test_email (required) + * @param string $templateId Id of the template (required) + * @param \Swagger\Client\Model\SendTestEmail $sendTestEmail (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function sendTestTemplate($template_id, $send_test_email) + public function sendTestTemplate($templateId, $sendTestEmail) { - list($response) = $this->sendTestTemplateWithHttpInfo($template_id, $send_test_email); + list($response) = $this->sendTestTemplateWithHttpInfo($templateId, $sendTestEmail); return $response; } @@ -935,20 +935,20 @@ public function sendTestTemplate($template_id, $send_test_email) * * Send a template to your test list * - * @param string $template_id Id of the template (required) - * @param \Swagger\Client\Model\SendTestEmail1 $send_test_email (required) + * @param string $templateId Id of the template (required) + * @param \Swagger\Client\Model\SendTestEmail $sendTestEmail (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function sendTestTemplateWithHttpInfo($template_id, $send_test_email) + public function sendTestTemplateWithHttpInfo($templateId, $sendTestEmail) { - // verify the required parameter 'template_id' is set - if ($template_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $template_id when calling sendTestTemplate'); + // verify the required parameter 'templateId' is set + if ($templateId === null) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling sendTestTemplate'); } - // verify the required parameter 'send_test_email' is set - if ($send_test_email === null) { - throw new \InvalidArgumentException('Missing the required parameter $send_test_email when calling sendTestTemplate'); + // verify the required parameter 'sendTestEmail' is set + if ($sendTestEmail === null) { + throw new \InvalidArgumentException('Missing the required parameter $sendTestEmail when calling sendTestTemplate'); } // parse inputs $resourcePath = "/smtp/templates/{templateId}/sendTest"; @@ -963,17 +963,17 @@ public function sendTestTemplateWithHttpInfo($template_id, $send_test_email) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($template_id !== null) { + if ($templateId !== null) { $resourcePath = str_replace( "{" . "templateId" . "}", - $this->apiClient->getSerializer()->toPathValue($template_id), + $this->apiClient->getSerializer()->toPathValue($templateId), $resourcePath ); } // body params $_tempBody = null; - if (isset($send_test_email)) { - $_tempBody = $send_test_email; + if (isset($sendTestEmail)) { + $_tempBody = $sendTestEmail; } // for model (json/xml) @@ -1003,11 +1003,11 @@ public function sendTestTemplateWithHttpInfo($template_id, $send_test_email) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse400', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\PostSendFailed', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1021,13 +1021,13 @@ public function sendTestTemplateWithHttpInfo($template_id, $send_test_email) * * Send a transactional email * - * @param \Swagger\Client\Model\SendSmtpEmail1 $send_smtp_email Values to send a transactional email (required) + * @param \Swagger\Client\Model\SendSmtpEmail $sendSmtpEmail Values to send a transactional email (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2013 + * @return \Swagger\Client\Model\CreateSmtpEmail */ - public function sendTransacEmail($send_smtp_email) + public function sendTransacEmail($sendSmtpEmail) { - list($response) = $this->sendTransacEmailWithHttpInfo($send_smtp_email); + list($response) = $this->sendTransacEmailWithHttpInfo($sendSmtpEmail); return $response; } @@ -1036,15 +1036,15 @@ public function sendTransacEmail($send_smtp_email) * * Send a transactional email * - * @param \Swagger\Client\Model\SendSmtpEmail1 $send_smtp_email Values to send a transactional email (required) + * @param \Swagger\Client\Model\SendSmtpEmail $sendSmtpEmail Values to send a transactional email (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2013, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateSmtpEmail, HTTP status code, HTTP response headers (array of strings) */ - public function sendTransacEmailWithHttpInfo($send_smtp_email) + public function sendTransacEmailWithHttpInfo($sendSmtpEmail) { - // verify the required parameter 'send_smtp_email' is set - if ($send_smtp_email === null) { - throw new \InvalidArgumentException('Missing the required parameter $send_smtp_email when calling sendTransacEmail'); + // verify the required parameter 'sendSmtpEmail' is set + if ($sendSmtpEmail === null) { + throw new \InvalidArgumentException('Missing the required parameter $sendSmtpEmail when calling sendTransacEmail'); } // parse inputs $resourcePath = "/smtp/email"; @@ -1060,8 +1060,8 @@ public function sendTransacEmailWithHttpInfo($send_smtp_email) // body params $_tempBody = null; - if (isset($send_smtp_email)) { - $_tempBody = $send_smtp_email; + if (isset($sendSmtpEmail)) { + $_tempBody = $sendSmtpEmail; } // for model (json/xml) @@ -1083,19 +1083,19 @@ public function sendTransacEmailWithHttpInfo($send_smtp_email) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2013', + '\Swagger\Client\Model\CreateSmtpEmail', '/smtp/email' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2013', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateSmtpEmail', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2013', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateSmtpEmail', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1109,14 +1109,14 @@ public function sendTransacEmailWithHttpInfo($send_smtp_email) * * Updates an smtp templates * - * @param string $template_id id of the template (required) - * @param \Swagger\Client\Model\SmtpTemplate1 $smtp_template values to update in smtp template (required) + * @param string $templateId id of the template (required) + * @param \Swagger\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateSmtpTemplate($template_id, $smtp_template) + public function updateSmtpTemplate($templateId, $smtpTemplate) { - list($response) = $this->updateSmtpTemplateWithHttpInfo($template_id, $smtp_template); + list($response) = $this->updateSmtpTemplateWithHttpInfo($templateId, $smtpTemplate); return $response; } @@ -1125,20 +1125,20 @@ public function updateSmtpTemplate($template_id, $smtp_template) * * Updates an smtp templates * - * @param string $template_id id of the template (required) - * @param \Swagger\Client\Model\SmtpTemplate1 $smtp_template values to update in smtp template (required) + * @param string $templateId id of the template (required) + * @param \Swagger\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateSmtpTemplateWithHttpInfo($template_id, $smtp_template) + public function updateSmtpTemplateWithHttpInfo($templateId, $smtpTemplate) { - // verify the required parameter 'template_id' is set - if ($template_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $template_id when calling updateSmtpTemplate'); + // verify the required parameter 'templateId' is set + if ($templateId === null) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling updateSmtpTemplate'); } - // verify the required parameter 'smtp_template' is set - if ($smtp_template === null) { - throw new \InvalidArgumentException('Missing the required parameter $smtp_template when calling updateSmtpTemplate'); + // verify the required parameter 'smtpTemplate' is set + if ($smtpTemplate === null) { + throw new \InvalidArgumentException('Missing the required parameter $smtpTemplate when calling updateSmtpTemplate'); } // parse inputs $resourcePath = "/smtp/templates/{templateId}"; @@ -1153,17 +1153,17 @@ public function updateSmtpTemplateWithHttpInfo($template_id, $smtp_template) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($template_id !== null) { + if ($templateId !== null) { $resourcePath = str_replace( "{" . "templateId" . "}", - $this->apiClient->getSerializer()->toPathValue($template_id), + $this->apiClient->getSerializer()->toPathValue($templateId), $resourcePath ); } // body params $_tempBody = null; - if (isset($smtp_template)) { - $_tempBody = $smtp_template; + if (isset($smtpTemplate)) { + $_tempBody = $smtpTemplate; } // for model (json/xml) @@ -1193,11 +1193,11 @@ public function updateSmtpTemplateWithHttpInfo($template_id, $smtp_template) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/SendersApi.php b/lib/Api/SendersApi.php old mode 100755 new mode 100644 index 422049ca..4221e20c --- a/lib/Api/SendersApi.php +++ b/lib/Api/SendersApi.php @@ -92,9 +92,9 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Create a new sender * - * @param \Swagger\Client\Model\Sender $sender sender's name (optional) + * @param \Swagger\Client\Model\CreateSender $sender sender's name (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2011 + * @return \Swagger\Client\Model\CreateSenderModel */ public function createSender($sender = null) { @@ -107,9 +107,9 @@ public function createSender($sender = null) * * Create a new sender * - * @param \Swagger\Client\Model\Sender $sender sender's name (optional) + * @param \Swagger\Client\Model\CreateSender $sender sender's name (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2011, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateSenderModel, HTTP status code, HTTP response headers (array of strings) */ public function createSenderWithHttpInfo($sender = null) { @@ -150,19 +150,19 @@ public function createSenderWithHttpInfo($sender = null) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2011', + '\Swagger\Client\Model\CreateSenderModel', '/senders' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2011', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateSenderModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2011', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateSenderModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -176,13 +176,13 @@ public function createSenderWithHttpInfo($sender = null) * * Delete a sender * - * @param string $sender_id Id of the sender (required) + * @param string $senderId Id of the sender (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteSender($sender_id) + public function deleteSender($senderId) { - list($response) = $this->deleteSenderWithHttpInfo($sender_id); + list($response) = $this->deleteSenderWithHttpInfo($senderId); return $response; } @@ -191,15 +191,15 @@ public function deleteSender($sender_id) * * Delete a sender * - * @param string $sender_id Id of the sender (required) + * @param string $senderId Id of the sender (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteSenderWithHttpInfo($sender_id) + public function deleteSenderWithHttpInfo($senderId) { - // verify the required parameter 'sender_id' is set - if ($sender_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $sender_id when calling deleteSender'); + // verify the required parameter 'senderId' is set + if ($senderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $senderId when calling deleteSender'); } // parse inputs $resourcePath = "/senders/{senderId}"; @@ -214,10 +214,10 @@ public function deleteSenderWithHttpInfo($sender_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($sender_id !== null) { + if ($senderId !== null) { $resourcePath = str_replace( "{" . "senderId" . "}", - $this->apiClient->getSerializer()->toPathValue($sender_id), + $this->apiClient->getSerializer()->toPathValue($senderId), $resourcePath ); } @@ -249,11 +249,11 @@ public function deleteSenderWithHttpInfo($sender_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -268,7 +268,7 @@ public function deleteSenderWithHttpInfo($sender_id) * Return all the dedicated IPs for your account * * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2006 + * @return \Swagger\Client\Model\GetIps */ public function getIps() { @@ -282,7 +282,7 @@ public function getIps() * Return all the dedicated IPs for your account * * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2006, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetIps, HTTP status code, HTTP response headers (array of strings) */ public function getIpsWithHttpInfo() { @@ -318,15 +318,15 @@ public function getIpsWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2006', + '\Swagger\Client\Model\GetIps', '/senders/ips' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2006', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetIps', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2006', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetIps', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -340,13 +340,13 @@ public function getIpsWithHttpInfo() * * Return all the dedicated IPs for a sender * - * @param string $sender_id Id of the sender (required) + * @param string $senderId Id of the sender (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2005 + * @return \Swagger\Client\Model\GetIpsFromSender */ - public function getIpsFromSender($sender_id) + public function getIpsFromSender($senderId) { - list($response) = $this->getIpsFromSenderWithHttpInfo($sender_id); + list($response) = $this->getIpsFromSenderWithHttpInfo($senderId); return $response; } @@ -355,15 +355,15 @@ public function getIpsFromSender($sender_id) * * Return all the dedicated IPs for a sender * - * @param string $sender_id Id of the sender (required) + * @param string $senderId Id of the sender (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2005, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetIpsFromSender, HTTP status code, HTTP response headers (array of strings) */ - public function getIpsFromSenderWithHttpInfo($sender_id) + public function getIpsFromSenderWithHttpInfo($senderId) { - // verify the required parameter 'sender_id' is set - if ($sender_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $sender_id when calling getIpsFromSender'); + // verify the required parameter 'senderId' is set + if ($senderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $senderId when calling getIpsFromSender'); } // parse inputs $resourcePath = "/senders/{senderId}/ips"; @@ -378,10 +378,10 @@ public function getIpsFromSenderWithHttpInfo($sender_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($sender_id !== null) { + if ($senderId !== null) { $resourcePath = str_replace( "{" . "senderId" . "}", - $this->apiClient->getSerializer()->toPathValue($sender_id), + $this->apiClient->getSerializer()->toPathValue($senderId), $resourcePath ); } @@ -405,23 +405,23 @@ public function getIpsFromSenderWithHttpInfo($sender_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2005', + '\Swagger\Client\Model\GetIpsFromSender', '/senders/{senderId}/ips' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2005', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetIpsFromSender', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2005', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetIpsFromSender', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -438,7 +438,7 @@ public function getIpsFromSenderWithHttpInfo($sender_id) * @param string $ip Filter your senders for a specific ip (available for dedicated IP usage only) (optional) * @param string $domain Filter your senders for a specific domain (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2004 + * @return \Swagger\Client\Model\GetSendersList */ public function getSenders($ip = null, $domain = null) { @@ -454,7 +454,7 @@ public function getSenders($ip = null, $domain = null) * @param string $ip Filter your senders for a specific ip (available for dedicated IP usage only) (optional) * @param string $domain Filter your senders for a specific domain (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2004, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetSendersList, HTTP status code, HTTP response headers (array of strings) */ public function getSendersWithHttpInfo($ip = null, $domain = null) { @@ -498,19 +498,19 @@ public function getSendersWithHttpInfo($ip = null, $domain = null) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2004', + '\Swagger\Client\Model\GetSendersList', '/senders' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2004', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetSendersList', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2004', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetSendersList', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -524,14 +524,14 @@ public function getSendersWithHttpInfo($ip = null, $domain = null) * * Update a sender * - * @param string $sender_id Id of the sender (required) - * @param \Swagger\Client\Model\Sender1 $sender sender's name (optional) + * @param string $senderId Id of the sender (required) + * @param \Swagger\Client\Model\UpdateSender $sender sender's name (optional) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateSender($sender_id, $sender = null) + public function updateSender($senderId, $sender = null) { - list($response) = $this->updateSenderWithHttpInfo($sender_id, $sender); + list($response) = $this->updateSenderWithHttpInfo($senderId, $sender); return $response; } @@ -540,16 +540,16 @@ public function updateSender($sender_id, $sender = null) * * Update a sender * - * @param string $sender_id Id of the sender (required) - * @param \Swagger\Client\Model\Sender1 $sender sender's name (optional) + * @param string $senderId Id of the sender (required) + * @param \Swagger\Client\Model\UpdateSender $sender sender's name (optional) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateSenderWithHttpInfo($sender_id, $sender = null) + public function updateSenderWithHttpInfo($senderId, $sender = null) { - // verify the required parameter 'sender_id' is set - if ($sender_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $sender_id when calling updateSender'); + // verify the required parameter 'senderId' is set + if ($senderId === null) { + throw new \InvalidArgumentException('Missing the required parameter $senderId when calling updateSender'); } // parse inputs $resourcePath = "/senders/{senderId}"; @@ -564,10 +564,10 @@ public function updateSenderWithHttpInfo($sender_id, $sender = null) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($sender_id !== null) { + if ($senderId !== null) { $resourcePath = str_replace( "{" . "senderId" . "}", - $this->apiClient->getSerializer()->toPathValue($sender_id), + $this->apiClient->getSerializer()->toPathValue($senderId), $resourcePath ); } @@ -604,11 +604,11 @@ public function updateSenderWithHttpInfo($sender_id, $sender = null) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/TransactionalSMSApi.php b/lib/Api/TransactionalSMSApi.php old mode 100755 new mode 100644 index f0cd6458..0ff905b3 --- a/lib/Api/TransactionalSMSApi.php +++ b/lib/Api/TransactionalSMSApi.php @@ -93,19 +93,19 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * Get all the SMS activity (unaggregated events) * * @param int $limit Number of documents per page (optional, default to 50) - * @param \DateTime $start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) * @param int $offset Index of the first document of the page (optional, default to 0) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) - * @param string $phone_number Filter the report for a specific phone number (optional) + * @param string $phoneNumber Filter the report for a specific phone number (optional) * @param string $event Filter the report for specific events (optional) * @param string $tags Filter the report for specific tags passed as a serialized urlencoded array (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20022 + * @return \Swagger\Client\Model\GetSmsEventReport */ - public function getSmsEvents($limit = '50', $start_date = null, $end_date = null, $offset = '0', $days = null, $phone_number = null, $event = null, $tags = null) + public function getSmsEvents($limit = '50', $startDate = null, $endDate = null, $offset = '0', $days = null, $phoneNumber = null, $event = null, $tags = null) { - list($response) = $this->getSmsEventsWithHttpInfo($limit, $start_date, $end_date, $offset, $days, $phone_number, $event, $tags); + list($response) = $this->getSmsEventsWithHttpInfo($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags); return $response; } @@ -115,17 +115,17 @@ public function getSmsEvents($limit = '50', $start_date = null, $end_date = null * Get all the SMS activity (unaggregated events) * * @param int $limit Number of documents per page (optional, default to 50) - * @param \DateTime $start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) * @param int $offset Index of the first document of the page (optional, default to 0) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) - * @param string $phone_number Filter the report for a specific phone number (optional) + * @param string $phoneNumber Filter the report for a specific phone number (optional) * @param string $event Filter the report for specific events (optional) * @param string $tags Filter the report for specific tags passed as a serialized urlencoded array (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20022, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetSmsEventReport, HTTP status code, HTTP response headers (array of strings) */ - public function getSmsEventsWithHttpInfo($limit = '50', $start_date = null, $end_date = null, $offset = '0', $days = null, $phone_number = null, $event = null, $tags = null) + public function getSmsEventsWithHttpInfo($limit = '50', $startDate = null, $endDate = null, $offset = '0', $days = null, $phoneNumber = null, $event = null, $tags = null) { if (!is_null($limit) && ($limit > 100)) { throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalSMSApi.getSmsEvents, must be smaller than or equal to 100.'); @@ -148,12 +148,12 @@ public function getSmsEventsWithHttpInfo($limit = '50', $start_date = null, $end $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); } // query params - if ($start_date !== null) { - $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($start_date); + if ($startDate !== null) { + $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($startDate); } // query params - if ($end_date !== null) { - $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($end_date); + if ($endDate !== null) { + $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($endDate); } // query params if ($offset !== null) { @@ -164,8 +164,8 @@ public function getSmsEventsWithHttpInfo($limit = '50', $start_date = null, $end $queryParams['days'] = $this->apiClient->getSerializer()->toQueryValue($days); } // query params - if ($phone_number !== null) { - $queryParams['phoneNumber'] = $this->apiClient->getSerializer()->toQueryValue($phone_number); + if ($phoneNumber !== null) { + $queryParams['phoneNumber'] = $this->apiClient->getSerializer()->toQueryValue($phoneNumber); } // query params if ($event !== null) { @@ -195,19 +195,19 @@ public function getSmsEventsWithHttpInfo($limit = '50', $start_date = null, $end $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20022', + '\Swagger\Client\Model\GetSmsEventReport', '/transactionalSMS/statistics/events' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20022', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetSmsEventReport', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20022', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetSmsEventReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -221,16 +221,16 @@ public function getSmsEventsWithHttpInfo($limit = '50', $start_date = null, $end * * Get your SMS activity aggregated over a period of time * - * @param \DateTime $start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with startDate and endDate (optional) * @param string $tag Filter on a tag (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20023 + * @return \Swagger\Client\Model\GetTransacAggregatedSmsReport */ - public function getTransacAggregatedSmsReport($start_date = null, $end_date = null, $days = null, $tag = null) + public function getTransacAggregatedSmsReport($startDate = null, $endDate = null, $days = null, $tag = null) { - list($response) = $this->getTransacAggregatedSmsReportWithHttpInfo($start_date, $end_date, $days, $tag); + list($response) = $this->getTransacAggregatedSmsReportWithHttpInfo($startDate, $endDate, $days, $tag); return $response; } @@ -239,14 +239,14 @@ public function getTransacAggregatedSmsReport($start_date = null, $end_date = nu * * Get your SMS activity aggregated over a period of time * - * @param \DateTime $start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with startDate and endDate (optional) * @param string $tag Filter on a tag (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20023, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetTransacAggregatedSmsReport, HTTP status code, HTTP response headers (array of strings) */ - public function getTransacAggregatedSmsReportWithHttpInfo($start_date = null, $end_date = null, $days = null, $tag = null) + public function getTransacAggregatedSmsReportWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { // parse inputs $resourcePath = "/transactionalSMS/statistics/aggregatedReport"; @@ -261,12 +261,12 @@ public function getTransacAggregatedSmsReportWithHttpInfo($start_date = null, $e $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // query params - if ($start_date !== null) { - $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($start_date); + if ($startDate !== null) { + $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($startDate); } // query params - if ($end_date !== null) { - $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($end_date); + if ($endDate !== null) { + $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($endDate); } // query params if ($days !== null) { @@ -296,19 +296,19 @@ public function getTransacAggregatedSmsReportWithHttpInfo($start_date = null, $e $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20023', + '\Swagger\Client\Model\GetTransacAggregatedSmsReport', '/transactionalSMS/statistics/aggregatedReport' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20023', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetTransacAggregatedSmsReport', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20023', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetTransacAggregatedSmsReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -322,16 +322,16 @@ public function getTransacAggregatedSmsReportWithHttpInfo($start_date = null, $e * * Get your SMS activity aggregated per day * - * @param \DateTime $start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) * @param string $tag Filter on a tag (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20024 + * @return \Swagger\Client\Model\GetTransacSmsReport */ - public function getTransacSmsReport($start_date = null, $end_date = null, $days = null, $tag = null) + public function getTransacSmsReport($startDate = null, $endDate = null, $days = null, $tag = null) { - list($response) = $this->getTransacSmsReportWithHttpInfo($start_date, $end_date, $days, $tag); + list($response) = $this->getTransacSmsReportWithHttpInfo($startDate, $endDate, $days, $tag); return $response; } @@ -340,14 +340,14 @@ public function getTransacSmsReport($start_date = null, $end_date = null, $days * * Get your SMS activity aggregated per day * - * @param \DateTime $start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) - * @param \DateTime $end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) * @param int $days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) * @param string $tag Filter on a tag (optional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20024, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetTransacSmsReport, HTTP status code, HTTP response headers (array of strings) */ - public function getTransacSmsReportWithHttpInfo($start_date = null, $end_date = null, $days = null, $tag = null) + public function getTransacSmsReportWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { // parse inputs $resourcePath = "/transactionalSMS/statistics/reports"; @@ -362,12 +362,12 @@ public function getTransacSmsReportWithHttpInfo($start_date = null, $end_date = $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // query params - if ($start_date !== null) { - $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($start_date); + if ($startDate !== null) { + $queryParams['startDate'] = $this->apiClient->getSerializer()->toQueryValue($startDate); } // query params - if ($end_date !== null) { - $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($end_date); + if ($endDate !== null) { + $queryParams['endDate'] = $this->apiClient->getSerializer()->toQueryValue($endDate); } // query params if ($days !== null) { @@ -397,19 +397,19 @@ public function getTransacSmsReportWithHttpInfo($start_date = null, $end_date = $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20024', + '\Swagger\Client\Model\GetTransacSmsReport', '/transactionalSMS/statistics/reports' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20024', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetTransacSmsReport', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20024', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetTransacSmsReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -423,13 +423,13 @@ public function getTransacSmsReportWithHttpInfo($start_date = null, $end_date = * * Send the SMS campaign to the specified mobile number * - * @param \Swagger\Client\Model\SendTransacSms1 $send_transac_sms Values to send a transactional SMS (required) + * @param \Swagger\Client\Model\SendTransacSms $sendTransacSms Values to send a transactional SMS (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse2015 + * @return \Swagger\Client\Model\SendSms */ - public function sendTransacSms($send_transac_sms) + public function sendTransacSms($sendTransacSms) { - list($response) = $this->sendTransacSmsWithHttpInfo($send_transac_sms); + list($response) = $this->sendTransacSmsWithHttpInfo($sendTransacSms); return $response; } @@ -438,15 +438,15 @@ public function sendTransacSms($send_transac_sms) * * Send the SMS campaign to the specified mobile number * - * @param \Swagger\Client\Model\SendTransacSms1 $send_transac_sms Values to send a transactional SMS (required) + * @param \Swagger\Client\Model\SendTransacSms $sendTransacSms Values to send a transactional SMS (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse2015, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\SendSms, HTTP status code, HTTP response headers (array of strings) */ - public function sendTransacSmsWithHttpInfo($send_transac_sms) + public function sendTransacSmsWithHttpInfo($sendTransacSms) { - // verify the required parameter 'send_transac_sms' is set - if ($send_transac_sms === null) { - throw new \InvalidArgumentException('Missing the required parameter $send_transac_sms when calling sendTransacSms'); + // verify the required parameter 'sendTransacSms' is set + if ($sendTransacSms === null) { + throw new \InvalidArgumentException('Missing the required parameter $sendTransacSms when calling sendTransacSms'); } // parse inputs $resourcePath = "/transactionalSMS/sms"; @@ -462,8 +462,8 @@ public function sendTransacSmsWithHttpInfo($send_transac_sms) // body params $_tempBody = null; - if (isset($send_transac_sms)) { - $_tempBody = $send_transac_sms; + if (isset($sendTransacSms)) { + $_tempBody = $sendTransacSms; } // for model (json/xml) @@ -485,23 +485,23 @@ public function sendTransacSmsWithHttpInfo($send_transac_sms) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse2015', + '\Swagger\Client\Model\SendSms', '/transactionalSMS/sms' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse2015', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\SendSms', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse2015', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\SendSms', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 402: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/Api/WebhooksApi.php b/lib/Api/WebhooksApi.php old mode 100755 new mode 100644 index 3d433ed3..95ed986d --- a/lib/Api/WebhooksApi.php +++ b/lib/Api/WebhooksApi.php @@ -92,13 +92,13 @@ public function setApiClient(\Swagger\Client\ApiClient $apiClient) * * Create a webhook * - * @param \Swagger\Client\Model\CreateWebhook1 $create_webhook Values to create a webhook (required) + * @param \Swagger\Client\Model\CreateWebhook $createWebhook Values to create a webhook (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse201 + * @return \Swagger\Client\Model\CreateModel */ - public function createWebhook($create_webhook) + public function createWebhook($createWebhook) { - list($response) = $this->createWebhookWithHttpInfo($create_webhook); + list($response) = $this->createWebhookWithHttpInfo($createWebhook); return $response; } @@ -107,15 +107,15 @@ public function createWebhook($create_webhook) * * Create a webhook * - * @param \Swagger\Client\Model\CreateWebhook1 $create_webhook Values to create a webhook (required) + * @param \Swagger\Client\Model\CreateWebhook $createWebhook Values to create a webhook (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse201, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\CreateModel, HTTP status code, HTTP response headers (array of strings) */ - public function createWebhookWithHttpInfo($create_webhook) + public function createWebhookWithHttpInfo($createWebhook) { - // verify the required parameter 'create_webhook' is set - if ($create_webhook === null) { - throw new \InvalidArgumentException('Missing the required parameter $create_webhook when calling createWebhook'); + // verify the required parameter 'createWebhook' is set + if ($createWebhook === null) { + throw new \InvalidArgumentException('Missing the required parameter $createWebhook when calling createWebhook'); } // parse inputs $resourcePath = "/webhooks"; @@ -131,8 +131,8 @@ public function createWebhookWithHttpInfo($create_webhook) // body params $_tempBody = null; - if (isset($create_webhook)) { - $_tempBody = $create_webhook; + if (isset($createWebhook)) { + $_tempBody = $createWebhook; } // for model (json/xml) @@ -154,19 +154,19 @@ public function createWebhookWithHttpInfo($create_webhook) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse201', + '\Swagger\Client\Model\CreateModel', '/webhooks' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse201', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\CreateModel', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse201', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -180,13 +180,13 @@ public function createWebhookWithHttpInfo($create_webhook) * * Delete a webhook * - * @param string $webhook_id Id of the webhook (required) + * @param string $webhookId Id of the webhook (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function deleteWebhook($webhook_id) + public function deleteWebhook($webhookId) { - list($response) = $this->deleteWebhookWithHttpInfo($webhook_id); + list($response) = $this->deleteWebhookWithHttpInfo($webhookId); return $response; } @@ -195,15 +195,15 @@ public function deleteWebhook($webhook_id) * * Delete a webhook * - * @param string $webhook_id Id of the webhook (required) + * @param string $webhookId Id of the webhook (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteWebhookWithHttpInfo($webhook_id) + public function deleteWebhookWithHttpInfo($webhookId) { - // verify the required parameter 'webhook_id' is set - if ($webhook_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $webhook_id when calling deleteWebhook'); + // verify the required parameter 'webhookId' is set + if ($webhookId === null) { + throw new \InvalidArgumentException('Missing the required parameter $webhookId when calling deleteWebhook'); } // parse inputs $resourcePath = "/webhooks/{webhookId}"; @@ -218,10 +218,10 @@ public function deleteWebhookWithHttpInfo($webhook_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($webhook_id !== null) { + if ($webhookId !== null) { $resourcePath = str_replace( "{" . "webhookId" . "}", - $this->apiClient->getSerializer()->toPathValue($webhook_id), + $this->apiClient->getSerializer()->toPathValue($webhookId), $resourcePath ); } @@ -253,11 +253,11 @@ public function deleteWebhookWithHttpInfo($webhook_id) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -271,13 +271,13 @@ public function deleteWebhookWithHttpInfo($webhook_id) * * Get a webhook details * - * @param string $webhook_id Id of the webhook (required) + * @param string $webhookId Id of the webhook (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20013Webhooks + * @return \Swagger\Client\Model\GetWebhook */ - public function getWebhook($webhook_id) + public function getWebhook($webhookId) { - list($response) = $this->getWebhookWithHttpInfo($webhook_id); + list($response) = $this->getWebhookWithHttpInfo($webhookId); return $response; } @@ -286,15 +286,15 @@ public function getWebhook($webhook_id) * * Get a webhook details * - * @param string $webhook_id Id of the webhook (required) + * @param string $webhookId Id of the webhook (required) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20013Webhooks, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetWebhook, HTTP status code, HTTP response headers (array of strings) */ - public function getWebhookWithHttpInfo($webhook_id) + public function getWebhookWithHttpInfo($webhookId) { - // verify the required parameter 'webhook_id' is set - if ($webhook_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $webhook_id when calling getWebhook'); + // verify the required parameter 'webhookId' is set + if ($webhookId === null) { + throw new \InvalidArgumentException('Missing the required parameter $webhookId when calling getWebhook'); } // parse inputs $resourcePath = "/webhooks/{webhookId}"; @@ -309,10 +309,10 @@ public function getWebhookWithHttpInfo($webhook_id) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($webhook_id !== null) { + if ($webhookId !== null) { $resourcePath = str_replace( "{" . "webhookId" . "}", - $this->apiClient->getSerializer()->toPathValue($webhook_id), + $this->apiClient->getSerializer()->toPathValue($webhookId), $resourcePath ); } @@ -336,23 +336,23 @@ public function getWebhookWithHttpInfo($webhook_id) $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20013Webhooks', + '\Swagger\Client\Model\GetWebhook', '/webhooks/{webhookId}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20013Webhooks', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetWebhook', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20013Webhooks', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetWebhook', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -368,7 +368,7 @@ public function getWebhookWithHttpInfo($webhook_id) * * @param string $type Filter on webhook type (optional, default to transactional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return \Swagger\Client\Model\InlineResponse20013 + * @return \Swagger\Client\Model\GetWebhooks */ public function getWebhooks($type = 'transactional') { @@ -383,7 +383,7 @@ public function getWebhooks($type = 'transactional') * * @param string $type Filter on webhook type (optional, default to transactional) * @throws \Swagger\Client\ApiException on non-2xx response - * @return array of \Swagger\Client\Model\InlineResponse20013, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetWebhooks, HTTP status code, HTTP response headers (array of strings) */ public function getWebhooksWithHttpInfo($type = 'transactional') { @@ -423,19 +423,19 @@ public function getWebhooksWithHttpInfo($type = 'transactional') $queryParams, $httpBody, $headerParams, - '\Swagger\Client\Model\InlineResponse20013', + '\Swagger\Client\Model\GetWebhooks', '/webhooks' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\InlineResponse20013', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\GetWebhooks', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse20013', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\GetWebhooks', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -449,14 +449,14 @@ public function getWebhooksWithHttpInfo($type = 'transactional') * * Update a webhook * - * @param string $webhook_id Id of the webhook (required) - * @param \Swagger\Client\Model\UpdateWebhook1 $update_webhook Values to update a webhook (required) + * @param string $webhookId Id of the webhook (required) + * @param \Swagger\Client\Model\UpdateWebhook $updateWebhook Values to update a webhook (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return void */ - public function updateWebhook($webhook_id, $update_webhook) + public function updateWebhook($webhookId, $updateWebhook) { - list($response) = $this->updateWebhookWithHttpInfo($webhook_id, $update_webhook); + list($response) = $this->updateWebhookWithHttpInfo($webhookId, $updateWebhook); return $response; } @@ -465,20 +465,20 @@ public function updateWebhook($webhook_id, $update_webhook) * * Update a webhook * - * @param string $webhook_id Id of the webhook (required) - * @param \Swagger\Client\Model\UpdateWebhook1 $update_webhook Values to update a webhook (required) + * @param string $webhookId Id of the webhook (required) + * @param \Swagger\Client\Model\UpdateWebhook $updateWebhook Values to update a webhook (required) * @throws \Swagger\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateWebhookWithHttpInfo($webhook_id, $update_webhook) + public function updateWebhookWithHttpInfo($webhookId, $updateWebhook) { - // verify the required parameter 'webhook_id' is set - if ($webhook_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $webhook_id when calling updateWebhook'); + // verify the required parameter 'webhookId' is set + if ($webhookId === null) { + throw new \InvalidArgumentException('Missing the required parameter $webhookId when calling updateWebhook'); } - // verify the required parameter 'update_webhook' is set - if ($update_webhook === null) { - throw new \InvalidArgumentException('Missing the required parameter $update_webhook when calling updateWebhook'); + // verify the required parameter 'updateWebhook' is set + if ($updateWebhook === null) { + throw new \InvalidArgumentException('Missing the required parameter $updateWebhook when calling updateWebhook'); } // parse inputs $resourcePath = "/webhooks/{webhookId}"; @@ -493,17 +493,17 @@ public function updateWebhookWithHttpInfo($webhook_id, $update_webhook) $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); // path params - if ($webhook_id !== null) { + if ($webhookId !== null) { $resourcePath = str_replace( "{" . "webhookId" . "}", - $this->apiClient->getSerializer()->toPathValue($webhook_id), + $this->apiClient->getSerializer()->toPathValue($webhookId), $resourcePath ); } // body params $_tempBody = null; - if (isset($update_webhook)) { - $_tempBody = $update_webhook; + if (isset($updateWebhook)) { + $_tempBody = $updateWebhook; } // for model (json/xml) @@ -533,11 +533,11 @@ public function updateWebhookWithHttpInfo($webhook_id, $update_webhook) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\InlineResponse403', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/lib/ApiClient.php b/lib/ApiClient.php old mode 100755 new mode 100644 diff --git a/lib/ApiException.php b/lib/ApiException.php old mode 100755 new mode 100644 diff --git a/lib/Configuration.php b/lib/Configuration.php old mode 100755 new mode 100644 diff --git a/lib/Model/AddCredits1.php b/lib/Model/AddCredits1.php deleted file mode 100755 index b51d4521..00000000 --- a/lib/Model/AddCredits1.php +++ /dev/null @@ -1,269 +0,0 @@ - 'int', - 'email' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'sms' => 'int32', - 'email' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'sms' => 'sms', - 'email' => 'email' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'sms' => 'setSms', - 'email' => 'setEmail' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'sms' => 'getSms', - 'email' => 'getEmail' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['sms'] = isset($data['sms']) ? $data['sms'] : null; - $this->container['email'] = isset($data['email']) ? $data['email'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets sms - * @return int - */ - public function getSms() - { - return $this->container['sms']; - } - - /** - * Sets sms - * @param int $sms SMS credits to be added to the child account - * @return $this - */ - public function setSms($sms) - { - $this->container['sms'] = $sms; - - return $this; - } - - /** - * Gets email - * @return int - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param int $email Email credits to be added to the child account - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ContactEmails.php b/lib/Model/ContactEmails.php deleted file mode 100755 index 0b898609..00000000 --- a/lib/Model/ContactEmails.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'emails' => 'email' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'emails' => 'emails' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'emails' => 'setEmails' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'emails' => 'getEmails' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['emails'] = isset($data['emails']) ? $data['emails'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets emails - * @return string[] - */ - public function getEmails() - { - return $this->container['emails']; - } - - /** - * Sets emails - * @param string[] $emails Emails to add or remove from a list - * @return $this - */ - public function setEmails($emails) - { - $this->container['emails'] = $emails; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ContactEmails1.php b/lib/Model/ContactEmails1.php deleted file mode 100755 index 870135f0..00000000 --- a/lib/Model/ContactEmails1.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'emails' => 'email' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'emails' => 'emails' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'emails' => 'setEmails' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'emails' => 'getEmails' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['emails'] = isset($data['emails']) ? $data['emails'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets emails - * @return string[] - */ - public function getEmails() - { - return $this->container['emails']; - } - - /** - * Sets emails - * @param string[] $emails Emails to add or remove from a list - * @return $this - */ - public function setEmails($emails) - { - $this->container['emails'] = $emails; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CreateAttribute.php b/lib/Model/CreateAttribute.php index e418befe..8d009cdf 100755 --- a/lib/Model/CreateAttribute.php +++ b/lib/Model/CreateAttribute.php @@ -57,7 +57,7 @@ class CreateAttribute implements ArrayAccess 'category' => 'string', 'name' => 'string', 'value' => 'string', - 'enumemaration' => '\Swagger\Client\Model\ContactsattributesEnumemaration[]', + 'enumemaration' => '\Swagger\Client\Model\CreateAttributeEnumemaration[]', 'type' => 'string' ]; @@ -338,7 +338,7 @@ public function setValue($value) /** * Gets enumemaration - * @return \Swagger\Client\Model\ContactsattributesEnumemaration[] + * @return \Swagger\Client\Model\CreateAttributeEnumemaration[] */ public function getEnumemaration() { @@ -347,7 +347,7 @@ public function getEnumemaration() /** * Sets enumemaration - * @param \Swagger\Client\Model\ContactsattributesEnumemaration[] $enumemaration Values that the attribute can take. Use only if the attribute's category is category + * @param \Swagger\Client\Model\CreateAttributeEnumemaration[] $enumemaration Values that the attribute can take. Use only if the attribute's category is category * @return $this */ public function setEnumemaration($enumemaration) diff --git a/lib/Model/CreateAttribute1.php b/lib/Model/CreateAttribute1.php deleted file mode 100755 index e2216374..00000000 --- a/lib/Model/CreateAttribute1.php +++ /dev/null @@ -1,448 +0,0 @@ - 'string', - 'name' => 'string', - 'value' => 'string', - 'enumemaration' => '\Swagger\Client\Model\ContactsattributesEnumemaration[]', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'category' => null, - 'name' => null, - 'value' => null, - 'enumemaration' => null, - 'type' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'category' => 'category', - 'name' => 'name', - 'value' => 'value', - 'enumemaration' => 'enumemaration', - 'type' => 'type' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'category' => 'setCategory', - 'name' => 'setName', - 'value' => 'setValue', - 'enumemaration' => 'setEnumemaration', - 'type' => 'setType' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'category' => 'getCategory', - 'name' => 'getName', - 'value' => 'getValue', - 'enumemaration' => 'getEnumemaration', - 'type' => 'getType' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const CATEGORY_NORMAL = 'normal'; - const CATEGORY_TRANSACTIONAL = 'transactional'; - const CATEGORY_CATEGORY = 'category'; - const CATEGORY_CALCULATED = 'calculated'; - const CATEGORY__GLOBAL = 'global'; - const TYPE_TEXT = 'text'; - const TYPE_DATE = 'date'; - const TYPE_FLOAT = 'float'; - const TYPE_ID = 'id'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getCategoryAllowableValues() - { - return [ - self::CATEGORY_NORMAL, - self::CATEGORY_TRANSACTIONAL, - self::CATEGORY_CATEGORY, - self::CATEGORY_CALCULATED, - self::CATEGORY__GLOBAL, - ]; - } - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_TEXT, - self::TYPE_DATE, - self::TYPE_FLOAT, - self::TYPE_ID, - ]; - } - - - /** - * 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['category'] = isset($data['category']) ? $data['category'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['value'] = isset($data['value']) ? $data['value'] : null; - $this->container['enumemaration'] = isset($data['enumemaration']) ? $data['enumemaration'] : null; - $this->container['type'] = isset($data['type']) ? $data['type'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['category'] === null) { - $invalid_properties[] = "'category' can't be null"; - } - $allowed_values = $this->getCategoryAllowableValues(); - if (!in_array($this->container['category'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'category', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['value'] === null) { - $invalid_properties[] = "'value' can't be null"; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['category'] === null) { - return false; - } - $allowed_values = $this->getCategoryAllowableValues(); - if (!in_array($this->container['category'], $allowed_values)) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['value'] === null) { - return false; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets category - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * @param string $category Attribute categorisation. - * @return $this - */ - public function setCategory($category) - { - $allowed_values = $this->getCategoryAllowableValues(); - if (!in_array($category, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'category', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the attribute - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets value - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * @param string $value Value of the attribute - * @return $this - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - - /** - * Gets enumemaration - * @return \Swagger\Client\Model\ContactsattributesEnumemaration[] - */ - public function getEnumemaration() - { - return $this->container['enumemaration']; - } - - /** - * Sets enumemaration - * @param \Swagger\Client\Model\ContactsattributesEnumemaration[] $enumemaration Values that the attribute can take. Use only if the attribute's category is category - * @return $this - */ - public function setEnumemaration($enumemaration) - { - $this->container['enumemaration'] = $enumemaration; - - return $this; - } - - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * @param string $type Type of the attribute - * @return $this - */ - public function setType($type) - { - $allowed_values = $this->getTypeAllowableValues(); - if (!is_null($type) && !in_array($type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ContactsattributesEnumemaration.php b/lib/Model/CreateAttributeEnumemaration.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/ContactsattributesEnumemaration.php rename to lib/Model/CreateAttributeEnumemaration.php index 026a34f1..3ac20474 --- a/lib/Model/ContactsattributesEnumemaration.php +++ b/lib/Model/CreateAttributeEnumemaration.php @@ -1,6 +1,6 @@ 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', + 'firstName' => 'string', + 'lastName' => 'string', + 'companyName' => 'string', 'password' => 'string' ]; @@ -67,9 +67,9 @@ class CreateChild implements ArrayAccess */ protected static $swaggerFormats = [ 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, + 'firstName' => null, + 'lastName' => null, + 'companyName' => null, 'password' => 'password' ]; @@ -89,9 +89,9 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', + 'firstName' => 'firstName', + 'lastName' => 'lastName', + 'companyName' => 'companyName', 'password' => 'password' ]; @@ -102,9 +102,9 @@ public static function swaggerFormats() */ protected static $setters = [ 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', + 'firstName' => 'setFirstName', + 'lastName' => 'setLastName', + 'companyName' => 'setCompanyName', 'password' => 'setPassword' ]; @@ -115,9 +115,9 @@ public static function swaggerFormats() */ protected static $getters = [ 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', + 'firstName' => 'getFirstName', + 'lastName' => 'getLastName', + 'companyName' => 'getCompanyName', 'password' => 'getPassword' ]; @@ -153,9 +153,9 @@ public static function getters() public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; + $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null; + $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null; + $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; $this->container['password'] = isset($data['password']) ? $data['password'] : null; } @@ -171,14 +171,14 @@ public function listInvalidProperties() if ($this->container['email'] === null) { $invalid_properties[] = "'email' can't be null"; } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; + if ($this->container['firstName'] === null) { + $invalid_properties[] = "'firstName' can't be null"; } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; + if ($this->container['lastName'] === null) { + $invalid_properties[] = "'lastName' can't be null"; } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; + if ($this->container['companyName'] === null) { + $invalid_properties[] = "'companyName' can't be null"; } if ($this->container['password'] === null) { $invalid_properties[] = "'password' can't be null"; @@ -198,13 +198,13 @@ public function valid() if ($this->container['email'] === null) { return false; } - if ($this->container['first_name'] === null) { + if ($this->container['firstName'] === null) { return false; } - if ($this->container['last_name'] === null) { + if ($this->container['lastName'] === null) { return false; } - if ($this->container['company_name'] === null) { + if ($this->container['companyName'] === null) { return false; } if ($this->container['password'] === null) { @@ -236,64 +236,64 @@ public function setEmail($email) } /** - * Gets first_name + * Gets firstName * @return string */ public function getFirstName() { - return $this->container['first_name']; + return $this->container['firstName']; } /** - * Sets first_name - * @param string $first_name First name to use to create the child account + * Sets firstName + * @param string $firstName First name to use to create the child account * @return $this */ - public function setFirstName($first_name) + public function setFirstName($firstName) { - $this->container['first_name'] = $first_name; + $this->container['firstName'] = $firstName; return $this; } /** - * Gets last_name + * Gets lastName * @return string */ public function getLastName() { - return $this->container['last_name']; + return $this->container['lastName']; } /** - * Sets last_name - * @param string $last_name Last name to use to create the child account + * Sets lastName + * @param string $lastName Last name to use to create the child account * @return $this */ - public function setLastName($last_name) + public function setLastName($lastName) { - $this->container['last_name'] = $last_name; + $this->container['lastName'] = $lastName; return $this; } /** - * Gets company_name + * Gets companyName * @return string */ public function getCompanyName() { - return $this->container['company_name']; + return $this->container['companyName']; } /** - * Sets company_name - * @param string $company_name Company name to use to create the child account + * Sets companyName + * @param string $companyName Company name to use to create the child account * @return $this */ - public function setCompanyName($company_name) + public function setCompanyName($companyName) { - $this->container['company_name'] = $company_name; + $this->container['companyName'] = $companyName; return $this; } diff --git a/lib/Model/CreateContact.php b/lib/Model/CreateContact.php old mode 100755 new mode 100644 index aaf36cf8..a008d8fe --- a/lib/Model/CreateContact.php +++ b/lib/Model/CreateContact.php @@ -56,9 +56,9 @@ class CreateContact implements ArrayAccess protected static $swaggerTypes = [ 'email' => 'string', 'attributes' => 'object', - 'email_blacklisted' => 'bool', - 'sms_blacklisted' => 'bool', - 'list_ids' => 'int[]' + 'emailBlacklisted' => 'bool', + 'smsBlacklisted' => 'bool', + 'listIds' => 'int[]' ]; /** @@ -68,9 +68,9 @@ class CreateContact implements ArrayAccess protected static $swaggerFormats = [ 'email' => 'email', 'attributes' => null, - 'email_blacklisted' => null, - 'sms_blacklisted' => null, - 'list_ids' => 'int32' + 'emailBlacklisted' => null, + 'smsBlacklisted' => null, + 'listIds' => 'int32' ]; public static function swaggerTypes() @@ -90,9 +90,9 @@ public static function swaggerFormats() protected static $attributeMap = [ 'email' => 'email', 'attributes' => 'attributes', - 'email_blacklisted' => 'emailBlacklisted', - 'sms_blacklisted' => 'smsBlacklisted', - 'list_ids' => 'listIds' + 'emailBlacklisted' => 'emailBlacklisted', + 'smsBlacklisted' => 'smsBlacklisted', + 'listIds' => 'listIds' ]; @@ -103,9 +103,9 @@ public static function swaggerFormats() protected static $setters = [ 'email' => 'setEmail', 'attributes' => 'setAttributes', - 'email_blacklisted' => 'setEmailBlacklisted', - 'sms_blacklisted' => 'setSmsBlacklisted', - 'list_ids' => 'setListIds' + 'emailBlacklisted' => 'setEmailBlacklisted', + 'smsBlacklisted' => 'setSmsBlacklisted', + 'listIds' => 'setListIds' ]; @@ -116,9 +116,9 @@ public static function swaggerFormats() protected static $getters = [ 'email' => 'getEmail', 'attributes' => 'getAttributes', - 'email_blacklisted' => 'getEmailBlacklisted', - 'sms_blacklisted' => 'getSmsBlacklisted', - 'list_ids' => 'getListIds' + 'emailBlacklisted' => 'getEmailBlacklisted', + 'smsBlacklisted' => 'getSmsBlacklisted', + 'listIds' => 'getListIds' ]; public static function attributeMap() @@ -154,9 +154,9 @@ public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; - $this->container['email_blacklisted'] = isset($data['email_blacklisted']) ? $data['email_blacklisted'] : null; - $this->container['sms_blacklisted'] = isset($data['sms_blacklisted']) ? $data['sms_blacklisted'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; + $this->container['emailBlacklisted'] = isset($data['emailBlacklisted']) ? $data['emailBlacklisted'] : null; + $this->container['smsBlacklisted'] = isset($data['smsBlacklisted']) ? $data['smsBlacklisted'] : null; + $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; } /** @@ -227,64 +227,64 @@ public function setAttributes($attributes) } /** - * Gets email_blacklisted + * Gets emailBlacklisted * @return bool */ public function getEmailBlacklisted() { - return $this->container['email_blacklisted']; + return $this->container['emailBlacklisted']; } /** - * Sets email_blacklisted - * @param bool $email_blacklisted Blacklist the contact for emails (emailBlacklisted = true) + * Sets emailBlacklisted + * @param bool $emailBlacklisted Blacklist the contact for emails (emailBlacklisted = true) * @return $this */ - public function setEmailBlacklisted($email_blacklisted) + public function setEmailBlacklisted($emailBlacklisted) { - $this->container['email_blacklisted'] = $email_blacklisted; + $this->container['emailBlacklisted'] = $emailBlacklisted; return $this; } /** - * Gets sms_blacklisted + * Gets smsBlacklisted * @return bool */ public function getSmsBlacklisted() { - return $this->container['sms_blacklisted']; + return $this->container['smsBlacklisted']; } /** - * Sets sms_blacklisted - * @param bool $sms_blacklisted Blacklist the contact for SMS (smsBlacklisted = true) + * Sets smsBlacklisted + * @param bool $smsBlacklisted Blacklist the contact for SMS (smsBlacklisted = true) * @return $this */ - public function setSmsBlacklisted($sms_blacklisted) + public function setSmsBlacklisted($smsBlacklisted) { - $this->container['sms_blacklisted'] = $sms_blacklisted; + $this->container['smsBlacklisted'] = $smsBlacklisted; return $this; } /** - * Gets list_ids + * Gets listIds * @return int[] */ public function getListIds() { - return $this->container['list_ids']; + return $this->container['listIds']; } /** - * Sets list_ids - * @param int[] $list_ids Ids of the lists to add the contact to + * Sets listIds + * @param int[] $listIds Ids of the lists to add the contact to * @return $this */ - public function setListIds($list_ids) + public function setListIds($listIds) { - $this->container['list_ids'] = $list_ids; + $this->container['listIds'] = $listIds; return $this; } diff --git a/lib/Model/CreateContact1.php b/lib/Model/CreateContact1.php deleted file mode 100755 index d11c1df5..00000000 --- a/lib/Model/CreateContact1.php +++ /dev/null @@ -1,350 +0,0 @@ - 'string', - 'attributes' => 'object', - 'email_blacklisted' => 'bool', - 'sms_blacklisted' => 'bool', - 'list_ids' => 'int[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'attributes' => null, - 'email_blacklisted' => null, - 'sms_blacklisted' => null, - 'list_ids' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email' => 'email', - 'attributes' => 'attributes', - 'email_blacklisted' => 'emailBlacklisted', - 'sms_blacklisted' => 'smsBlacklisted', - 'list_ids' => 'listIds' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email' => 'setEmail', - 'attributes' => 'setAttributes', - 'email_blacklisted' => 'setEmailBlacklisted', - 'sms_blacklisted' => 'setSmsBlacklisted', - 'list_ids' => 'setListIds' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email' => 'getEmail', - 'attributes' => 'getAttributes', - 'email_blacklisted' => 'getEmailBlacklisted', - 'sms_blacklisted' => 'getSmsBlacklisted', - 'list_ids' => 'getListIds' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; - $this->container['email_blacklisted'] = isset($data['email_blacklisted']) ? $data['email_blacklisted'] : null; - $this->container['sms_blacklisted'] = isset($data['sms_blacklisted']) ? $data['sms_blacklisted'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email Email address of the user. Mandatory if `attributes.sms` is not passed - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets attributes - * @return object - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * @param object $attributes Values of the attributes to fill. The attributes must exist in you contact database - * @return $this - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } - - /** - * Gets email_blacklisted - * @return bool - */ - public function getEmailBlacklisted() - { - return $this->container['email_blacklisted']; - } - - /** - * Sets email_blacklisted - * @param bool $email_blacklisted Blacklist the contact for emails (emailBlacklisted = true) - * @return $this - */ - public function setEmailBlacklisted($email_blacklisted) - { - $this->container['email_blacklisted'] = $email_blacklisted; - - return $this; - } - - /** - * Gets sms_blacklisted - * @return bool - */ - public function getSmsBlacklisted() - { - return $this->container['sms_blacklisted']; - } - - /** - * Sets sms_blacklisted - * @param bool $sms_blacklisted Blacklist the contact for SMS (smsBlacklisted = true) - * @return $this - */ - public function setSmsBlacklisted($sms_blacklisted) - { - $this->container['sms_blacklisted'] = $sms_blacklisted; - - return $this; - } - - /** - * Gets list_ids - * @return int[] - */ - public function getListIds() - { - return $this->container['list_ids']; - } - - /** - * Sets list_ids - * @param int[] $list_ids Ids of the lists to add the contact to - * @return $this - */ - public function setListIds($list_ids) - { - $this->container['list_ids'] = $list_ids; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CreateEmailCampaign.php b/lib/Model/CreateEmailCampaign.php old mode 100755 new mode 100644 index 9b637dfc..d207aa2d --- a/lib/Model/CreateEmailCampaign.php +++ b/lib/Model/CreateEmailCampaign.php @@ -55,23 +55,23 @@ class CreateEmailCampaign implements ArrayAccess */ protected static $swaggerTypes = [ 'tag' => 'string', - 'sender' => '\Swagger\Client\Model\EmailCampaignsSender', + 'sender' => '\Swagger\Client\Model\CreateEmailCampaignSender', 'name' => 'string', - 'html_content' => 'string', - 'html_url' => 'string', - 'scheduled_at' => 'string', + 'htmlContent' => 'string', + 'htmlUrl' => 'string', + 'scheduledAt' => 'string', 'subject' => 'string', - 'reply_to' => 'string', - 'to_field' => 'string', - 'recipients' => '\Swagger\Client\Model\EmailCampaignsRecipients', - 'attachment_url' => 'string', - 'inline_image_activation' => 'bool', - 'mirror_active' => 'bool', + 'replyTo' => 'string', + 'toField' => 'string', + 'recipients' => '\Swagger\Client\Model\CreateEmailCampaignRecipients', + 'attachmentUrl' => 'string', + 'inlineImageActivation' => 'bool', + 'mirrorActive' => 'bool', 'recurring' => 'bool', 'type' => 'string', 'footer' => 'string', 'header' => 'string', - 'utm_campaign' => 'string' + 'utmCampaign' => 'string' ]; /** @@ -82,21 +82,21 @@ class CreateEmailCampaign implements ArrayAccess 'tag' => null, 'sender' => null, 'name' => null, - 'html_content' => null, - 'html_url' => 'url', - 'scheduled_at' => null, + 'htmlContent' => null, + 'htmlUrl' => 'url', + 'scheduledAt' => null, 'subject' => null, - 'reply_to' => 'email', - 'to_field' => null, + 'replyTo' => 'email', + 'toField' => null, 'recipients' => null, - 'attachment_url' => 'url', - 'inline_image_activation' => null, - 'mirror_active' => null, + 'attachmentUrl' => 'url', + 'inlineImageActivation' => null, + 'mirrorActive' => null, 'recurring' => null, 'type' => null, 'footer' => null, 'header' => null, - 'utm_campaign' => null + 'utmCampaign' => null ]; public static function swaggerTypes() @@ -117,21 +117,21 @@ public static function swaggerFormats() 'tag' => 'tag', 'sender' => 'sender', 'name' => 'name', - 'html_content' => 'htmlContent', - 'html_url' => 'htmlUrl', - 'scheduled_at' => 'scheduledAt', + 'htmlContent' => 'htmlContent', + 'htmlUrl' => 'htmlUrl', + 'scheduledAt' => 'scheduledAt', 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', + 'replyTo' => 'replyTo', + 'toField' => 'toField', 'recipients' => 'recipients', - 'attachment_url' => 'attachmentUrl', - 'inline_image_activation' => 'inlineImageActivation', - 'mirror_active' => 'mirrorActive', + 'attachmentUrl' => 'attachmentUrl', + 'inlineImageActivation' => 'inlineImageActivation', + 'mirrorActive' => 'mirrorActive', 'recurring' => 'recurring', 'type' => 'type', 'footer' => 'footer', 'header' => 'header', - 'utm_campaign' => 'utmCampaign' + 'utmCampaign' => 'utmCampaign' ]; @@ -143,21 +143,21 @@ public static function swaggerFormats() 'tag' => 'setTag', 'sender' => 'setSender', 'name' => 'setName', - 'html_content' => 'setHtmlContent', - 'html_url' => 'setHtmlUrl', - 'scheduled_at' => 'setScheduledAt', + 'htmlContent' => 'setHtmlContent', + 'htmlUrl' => 'setHtmlUrl', + 'scheduledAt' => 'setScheduledAt', 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', + 'replyTo' => 'setReplyTo', + 'toField' => 'setToField', 'recipients' => 'setRecipients', - 'attachment_url' => 'setAttachmentUrl', - 'inline_image_activation' => 'setInlineImageActivation', - 'mirror_active' => 'setMirrorActive', + 'attachmentUrl' => 'setAttachmentUrl', + 'inlineImageActivation' => 'setInlineImageActivation', + 'mirrorActive' => 'setMirrorActive', 'recurring' => 'setRecurring', 'type' => 'setType', 'footer' => 'setFooter', 'header' => 'setHeader', - 'utm_campaign' => 'setUtmCampaign' + 'utmCampaign' => 'setUtmCampaign' ]; @@ -169,21 +169,21 @@ public static function swaggerFormats() 'tag' => 'getTag', 'sender' => 'getSender', 'name' => 'getName', - 'html_content' => 'getHtmlContent', - 'html_url' => 'getHtmlUrl', - 'scheduled_at' => 'getScheduledAt', + 'htmlContent' => 'getHtmlContent', + 'htmlUrl' => 'getHtmlUrl', + 'scheduledAt' => 'getScheduledAt', 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', + 'replyTo' => 'getReplyTo', + 'toField' => 'getToField', 'recipients' => 'getRecipients', - 'attachment_url' => 'getAttachmentUrl', - 'inline_image_activation' => 'getInlineImageActivation', - 'mirror_active' => 'getMirrorActive', + 'attachmentUrl' => 'getAttachmentUrl', + 'inlineImageActivation' => 'getInlineImageActivation', + 'mirrorActive' => 'getMirrorActive', 'recurring' => 'getRecurring', 'type' => 'getType', 'footer' => 'getFooter', 'header' => 'getHeader', - 'utm_campaign' => 'getUtmCampaign' + 'utmCampaign' => 'getUtmCampaign' ]; public static function attributeMap() @@ -234,21 +234,21 @@ public function __construct(array $data = null) $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['html_url'] = isset($data['html_url']) ? $data['html_url'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; + $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; + $this->container['htmlUrl'] = isset($data['htmlUrl']) ? $data['htmlUrl'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; + $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['inline_image_activation'] = isset($data['inline_image_activation']) ? $data['inline_image_activation'] : false; - $this->container['mirror_active'] = isset($data['mirror_active']) ? $data['mirror_active'] : null; + $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; + $this->container['inlineImageActivation'] = isset($data['inlineImageActivation']) ? $data['inlineImageActivation'] : false; + $this->container['mirrorActive'] = isset($data['mirrorActive']) ? $data['mirrorActive'] : null; $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : false; $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; $this->container['header'] = isset($data['header']) ? $data['header'] : null; - $this->container['utm_campaign'] = isset($data['utm_campaign']) ? $data['utm_campaign'] : null; + $this->container['utmCampaign'] = isset($data['utmCampaign']) ? $data['utmCampaign'] : null; } /** @@ -263,8 +263,8 @@ public function listInvalidProperties() if ($this->container['name'] === null) { $invalid_properties[] = "'name' can't be null"; } - if (!is_null($this->container['scheduled_at']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!is_null($this->container['scheduledAt']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } if ($this->container['subject'] === null) { @@ -296,7 +296,7 @@ public function valid() if ($this->container['name'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } if ($this->container['subject'] === null) { @@ -336,7 +336,7 @@ public function setTag($tag) /** * Gets sender - * @return \Swagger\Client\Model\EmailCampaignsSender + * @return \Swagger\Client\Model\CreateEmailCampaignSender */ public function getSender() { @@ -345,7 +345,7 @@ public function getSender() /** * Sets sender - * @param \Swagger\Client\Model\EmailCampaignsSender $sender + * @param \Swagger\Client\Model\CreateEmailCampaignSender $sender * @return $this */ public function setSender($sender) @@ -377,69 +377,69 @@ public function setName($name) } /** - * Gets html_content + * Gets htmlContent * @return string */ public function getHtmlContent() { - return $this->container['html_content']; + return $this->container['htmlContent']; } /** - * Sets html_content - * @param string $html_content Mandatory if htmlUrl is empty. Body of the message (HTML) + * Sets htmlContent + * @param string $htmlContent Mandatory if htmlUrl is empty. Body of the message (HTML) * @return $this */ - public function setHtmlContent($html_content) + public function setHtmlContent($htmlContent) { - $this->container['html_content'] = $html_content; + $this->container['htmlContent'] = $htmlContent; return $this; } /** - * Gets html_url + * Gets htmlUrl * @return string */ public function getHtmlUrl() { - return $this->container['html_url']; + return $this->container['htmlUrl']; } /** - * Sets html_url - * @param string $html_url Mandatory if htmlContent is empty. Url to the message (HTML) + * Sets htmlUrl + * @param string $htmlUrl Mandatory if htmlContent is empty. Url to the message (HTML) * @return $this */ - public function setHtmlUrl($html_url) + public function setHtmlUrl($htmlUrl) { - $this->container['html_url'] = $html_url; + $this->container['htmlUrl'] = $htmlUrl; return $this; } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Sending date and time (YYYY-MM-DD HH:mm:ss) + * Sets scheduledAt + * @param string $scheduledAt Sending date and time (YYYY-MM-DD HH:mm:ss) * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if (!is_null($scheduled_at) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling CreateEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if (!is_null($scheduledAt) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling CreateEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } @@ -466,50 +466,50 @@ public function setSubject($subject) } /** - * Gets reply_to + * Gets replyTo * @return string */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param string $reply_to Email on which the campaign recipients will be able to reply to + * Sets replyTo + * @param string $replyTo Email on which the campaign recipients will be able to reply to * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** - * Gets to_field + * Gets toField * @return string */ public function getToField() { - return $this->container['to_field']; + return $this->container['toField']; } /** - * Sets to_field - * @param string $to_field To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database + * Sets toField + * @param string $toField To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database * @return $this */ - public function setToField($to_field) + public function setToField($toField) { - $this->container['to_field'] = $to_field; + $this->container['toField'] = $toField; return $this; } /** * Gets recipients - * @return \Swagger\Client\Model\EmailCampaignsRecipients + * @return \Swagger\Client\Model\CreateEmailCampaignRecipients */ public function getRecipients() { @@ -518,7 +518,7 @@ public function getRecipients() /** * Sets recipients - * @param \Swagger\Client\Model\EmailCampaignsRecipients $recipients + * @param \Swagger\Client\Model\CreateEmailCampaignRecipients $recipients * @return $this */ public function setRecipients($recipients) @@ -529,64 +529,64 @@ public function setRecipients($recipients) } /** - * Gets attachment_url + * Gets attachmentUrl * @return string */ public function getAttachmentUrl() { - return $this->container['attachment_url']; + return $this->container['attachmentUrl']; } /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf + * Sets attachmentUrl + * @param string $attachmentUrl Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf * @return $this */ - public function setAttachmentUrl($attachment_url) + public function setAttachmentUrl($attachmentUrl) { - $this->container['attachment_url'] = $attachment_url; + $this->container['attachmentUrl'] = $attachmentUrl; return $this; } /** - * Gets inline_image_activation + * Gets inlineImageActivation * @return bool */ public function getInlineImageActivation() { - return $this->container['inline_image_activation']; + return $this->container['inlineImageActivation']; } /** - * Sets inline_image_activation - * @param bool $inline_image_activation Use true to embedded the images in your email. Final size of the email should be less than 4MB. Campaigns with embedded images can not be sent to more than 5000 contacts + * Sets inlineImageActivation + * @param bool $inlineImageActivation Use true to embedded the images in your email. Final size of the email should be less than 4MB. Campaigns with embedded images can not be sent to more than 5000 contacts * @return $this */ - public function setInlineImageActivation($inline_image_activation) + public function setInlineImageActivation($inlineImageActivation) { - $this->container['inline_image_activation'] = $inline_image_activation; + $this->container['inlineImageActivation'] = $inlineImageActivation; return $this; } /** - * Gets mirror_active + * Gets mirrorActive * @return bool */ public function getMirrorActive() { - return $this->container['mirror_active']; + return $this->container['mirrorActive']; } /** - * Sets mirror_active - * @param bool $mirror_active Use true to enable the mirror link + * Sets mirrorActive + * @param bool $mirrorActive Use true to enable the mirror link * @return $this */ - public function setMirrorActive($mirror_active) + public function setMirrorActive($mirrorActive) { - $this->container['mirror_active'] = $mirror_active; + $this->container['mirrorActive'] = $mirrorActive; return $this; } @@ -685,22 +685,22 @@ public function setHeader($header) } /** - * Gets utm_campaign + * Gets utmCampaign * @return string */ public function getUtmCampaign() { - return $this->container['utm_campaign']; + return $this->container['utmCampaign']; } /** - * Sets utm_campaign - * @param string $utm_campaign Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed + * Sets utmCampaign + * @param string $utmCampaign Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed * @return $this */ - public function setUtmCampaign($utm_campaign) + public function setUtmCampaign($utmCampaign) { - $this->container['utm_campaign'] = $utm_campaign; + $this->container['utmCampaign'] = $utmCampaign; return $this; } diff --git a/lib/Model/EmailCampaignsRecipients.php b/lib/Model/CreateEmailCampaignRecipients.php old mode 100755 new mode 100644 similarity index 79% rename from lib/Model/EmailCampaignsRecipients.php rename to lib/Model/CreateEmailCampaignRecipients.php index b6d930e3..51a99cdc --- a/lib/Model/EmailCampaignsRecipients.php +++ b/lib/Model/CreateEmailCampaignRecipients.php @@ -1,6 +1,6 @@ 'int[]', - 'list_ids' => 'int[]' + 'exclusionListIds' => 'int[]', + 'listIds' => 'int[]' ]; /** @@ -63,8 +63,8 @@ class EmailCampaignsRecipients implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'exclusion_list_ids' => 'int32', - 'list_ids' => 'int32' + 'exclusionListIds' => 'int32', + 'listIds' => 'int32' ]; public static function swaggerTypes() @@ -82,8 +82,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'exclusion_list_ids' => 'exclusionListIds', - 'list_ids' => 'listIds' + 'exclusionListIds' => 'exclusionListIds', + 'listIds' => 'listIds' ]; @@ -92,8 +92,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'exclusion_list_ids' => 'setExclusionListIds', - 'list_ids' => 'setListIds' + 'exclusionListIds' => 'setExclusionListIds', + 'listIds' => 'setListIds' ]; @@ -102,8 +102,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'exclusion_list_ids' => 'getExclusionListIds', - 'list_ids' => 'getListIds' + 'exclusionListIds' => 'getExclusionListIds', + 'listIds' => 'getListIds' ]; public static function attributeMap() @@ -137,8 +137,8 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['exclusion_list_ids'] = isset($data['exclusion_list_ids']) ? $data['exclusion_list_ids'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; + $this->container['exclusionListIds'] = isset($data['exclusionListIds']) ? $data['exclusionListIds'] : null; + $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; } /** @@ -167,43 +167,43 @@ public function valid() /** - * Gets exclusion_list_ids + * Gets exclusionListIds * @return int[] */ public function getExclusionListIds() { - return $this->container['exclusion_list_ids']; + return $this->container['exclusionListIds']; } /** - * Sets exclusion_list_ids - * @param int[] $exclusion_list_ids List ids to exclude from the campaign + * Sets exclusionListIds + * @param int[] $exclusionListIds List ids to exclude from the campaign * @return $this */ - public function setExclusionListIds($exclusion_list_ids) + public function setExclusionListIds($exclusionListIds) { - $this->container['exclusion_list_ids'] = $exclusion_list_ids; + $this->container['exclusionListIds'] = $exclusionListIds; return $this; } /** - * Gets list_ids + * Gets listIds * @return int[] */ public function getListIds() { - return $this->container['list_ids']; + return $this->container['listIds']; } /** - * Sets list_ids - * @param int[] $list_ids Mandatory if scheduledAt is not empty. List Ids to send the campaign to + * Sets listIds + * @param int[] $listIds Mandatory if scheduledAt is not empty. List Ids to send the campaign to * @return $this */ - public function setListIds($list_ids) + public function setListIds($listIds) { - $this->container['list_ids'] = $list_ids; + $this->container['listIds'] = $listIds; return $this; } diff --git a/lib/Model/EmailCampaignsSender.php b/lib/Model/CreateEmailCampaignSender.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/EmailCampaignsSender.php rename to lib/Model/CreateEmailCampaignSender.php index e8eaceb7..ed32452e --- a/lib/Model/EmailCampaignsSender.php +++ b/lib/Model/CreateEmailCampaignSender.php @@ -1,6 +1,6 @@ 'string', - 'folder_id' => 'int' + 'folderId' => 'int' ]; /** @@ -64,7 +64,7 @@ class CreateList implements ArrayAccess */ protected static $swaggerFormats = [ 'name' => null, - 'folder_id' => 'int32' + 'folderId' => 'int32' ]; public static function swaggerTypes() @@ -83,7 +83,7 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'name' => 'name', - 'folder_id' => 'folderId' + 'folderId' => 'folderId' ]; @@ -93,7 +93,7 @@ public static function swaggerFormats() */ protected static $setters = [ 'name' => 'setName', - 'folder_id' => 'setFolderId' + 'folderId' => 'setFolderId' ]; @@ -103,7 +103,7 @@ public static function swaggerFormats() */ protected static $getters = [ 'name' => 'getName', - 'folder_id' => 'getFolderId' + 'folderId' => 'getFolderId' ]; public static function attributeMap() @@ -138,7 +138,7 @@ public static function getters() public function __construct(array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['folder_id'] = isset($data['folder_id']) ? $data['folder_id'] : null; + $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; } /** @@ -153,8 +153,8 @@ public function listInvalidProperties() if ($this->container['name'] === null) { $invalid_properties[] = "'name' can't be null"; } - if ($this->container['folder_id'] === null) { - $invalid_properties[] = "'folder_id' can't be null"; + if ($this->container['folderId'] === null) { + $invalid_properties[] = "'folderId' can't be null"; } return $invalid_properties; } @@ -171,7 +171,7 @@ public function valid() if ($this->container['name'] === null) { return false; } - if ($this->container['folder_id'] === null) { + if ($this->container['folderId'] === null) { return false; } return true; @@ -200,22 +200,22 @@ public function setName($name) } /** - * Gets folder_id + * Gets folderId * @return int */ public function getFolderId() { - return $this->container['folder_id']; + return $this->container['folderId']; } /** - * Sets folder_id - * @param int $folder_id Id of the folder in which to create the list + * Sets folderId + * @param int $folderId Id of the folder in which to create the list * @return $this */ - public function setFolderId($folder_id) + public function setFolderId($folderId) { - $this->container['folder_id'] = $folder_id; + $this->container['folderId'] = $folderId; return $this; } diff --git a/lib/Model/CreateList1.php b/lib/Model/CreateList1.php deleted file mode 100755 index ed3875c4..00000000 --- a/lib/Model/CreateList1.php +++ /dev/null @@ -1,281 +0,0 @@ - 'string', - 'folder_id' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'folder_id' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'folder_id' => 'folderId' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'folder_id' => 'setFolderId' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'folder_id' => 'getFolderId' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['folder_id'] = isset($data['folder_id']) ? $data['folder_id'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['folder_id'] === null) { - $invalid_properties[] = "'folder_id' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['name'] === null) { - return false; - } - if ($this->container['folder_id'] === null) { - return false; - } - return true; - } - - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the list - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets folder_id - * @return int - */ - public function getFolderId() - { - return $this->container['folder_id']; - } - - /** - * Sets folder_id - * @param int $folder_id Id of the folder in which to create the list - * @return $this - */ - public function setFolderId($folder_id) - { - $this->container['folder_id'] = $folder_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CreateSender.php b/lib/Model/CreateSender.php old mode 100755 new mode 100644 index 55815da1..c7dc3a29 --- a/lib/Model/CreateSender.php +++ b/lib/Model/CreateSender.php @@ -56,7 +56,7 @@ class CreateSender implements ArrayAccess protected static $swaggerTypes = [ 'name' => 'string', 'email' => 'string', - 'ips' => '\Swagger\Client\Model\SendersIps[]' + 'ips' => '\Swagger\Client\Model\CreateSenderIps[]' ]; /** @@ -228,7 +228,7 @@ public function setEmail($email) /** * Gets ips - * @return \Swagger\Client\Model\SendersIps[] + * @return \Swagger\Client\Model\CreateSenderIps[] */ public function getIps() { @@ -237,7 +237,7 @@ public function getIps() /** * Sets ips - * @param \Swagger\Client\Model\SendersIps[] $ips Mandatory in case of dedicated IP, IPs to associate to the sender + * @param \Swagger\Client\Model\CreateSenderIps[] $ips Mandatory in case of dedicated IP, IPs to associate to the sender * @return $this */ public function setIps($ips) diff --git a/lib/Model/SendersIps.php b/lib/Model/CreateSenderIps.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/SendersIps.php rename to lib/Model/CreateSenderIps.php index 6b4c0c25..bb113823 --- a/lib/Model/SendersIps.php +++ b/lib/Model/CreateSenderIps.php @@ -1,6 +1,6 @@ 100)) { - throw new \InvalidArgumentException('invalid value for $weight when calling SendersIps., must be smaller than or equal to 100.'); + throw new \InvalidArgumentException('invalid value for $weight when calling CreateSenderIps., must be smaller than or equal to 100.'); } if (!is_null($weight) && ($weight < 1)) { - throw new \InvalidArgumentException('invalid value for $weight when calling SendersIps., must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for $weight when calling CreateSenderIps., must be bigger than or equal to 1.'); } $this->container['weight'] = $weight; diff --git a/lib/Model/CreateSenderModel.php b/lib/Model/CreateSenderModel.php old mode 100755 new mode 100644 index e8462d18..8fb81495 --- a/lib/Model/CreateSenderModel.php +++ b/lib/Model/CreateSenderModel.php @@ -55,8 +55,8 @@ class CreateSenderModel implements ArrayAccess */ protected static $swaggerTypes = [ 'id' => 'int', - 'spf_error' => 'bool', - 'dkim_error' => 'bool' + 'spfError' => 'bool', + 'dkimError' => 'bool' ]; /** @@ -65,8 +65,8 @@ class CreateSenderModel implements ArrayAccess */ protected static $swaggerFormats = [ 'id' => 'int32', - 'spf_error' => null, - 'dkim_error' => null + 'spfError' => null, + 'dkimError' => null ]; public static function swaggerTypes() @@ -85,8 +85,8 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'id' => 'id', - 'spf_error' => 'spfError', - 'dkim_error' => 'dkimError' + 'spfError' => 'spfError', + 'dkimError' => 'dkimError' ]; @@ -96,8 +96,8 @@ public static function swaggerFormats() */ protected static $setters = [ 'id' => 'setId', - 'spf_error' => 'setSpfError', - 'dkim_error' => 'setDkimError' + 'spfError' => 'setSpfError', + 'dkimError' => 'setDkimError' ]; @@ -107,8 +107,8 @@ public static function swaggerFormats() */ protected static $getters = [ 'id' => 'getId', - 'spf_error' => 'getSpfError', - 'dkim_error' => 'getDkimError' + 'spfError' => 'getSpfError', + 'dkimError' => 'getDkimError' ]; public static function attributeMap() @@ -143,8 +143,8 @@ public static function getters() public function __construct(array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; - $this->container['spf_error'] = isset($data['spf_error']) ? $data['spf_error'] : null; - $this->container['dkim_error'] = isset($data['dkim_error']) ? $data['dkim_error'] : null; + $this->container['spfError'] = isset($data['spfError']) ? $data['spfError'] : null; + $this->container['dkimError'] = isset($data['dkimError']) ? $data['dkimError'] : null; } /** @@ -200,43 +200,43 @@ public function setId($id) } /** - * Gets spf_error + * Gets spfError * @return bool */ public function getSpfError() { - return $this->container['spf_error']; + return $this->container['spfError']; } /** - * Sets spf_error - * @param bool $spf_error Status of SPF configuration for the sender (true = SPF not well configured, false = SPF well configured) + * Sets spfError + * @param bool $spfError Status of SPF configuration for the sender (true = SPF not well configured, false = SPF well configured) * @return $this */ - public function setSpfError($spf_error) + public function setSpfError($spfError) { - $this->container['spf_error'] = $spf_error; + $this->container['spfError'] = $spfError; return $this; } /** - * Gets dkim_error + * Gets dkimError * @return bool */ public function getDkimError() { - return $this->container['dkim_error']; + return $this->container['dkimError']; } /** - * Sets dkim_error - * @param bool $dkim_error Status of DKIM configuration for the sender (true = DKIM not well configured, false = DKIM well configured) + * Sets dkimError + * @param bool $dkimError Status of DKIM configuration for the sender (true = DKIM not well configured, false = DKIM well configured) * @return $this */ - public function setDkimError($dkim_error) + public function setDkimError($dkimError) { - $this->container['dkim_error'] = $dkim_error; + $this->container['dkimError'] = $dkimError; return $this; } diff --git a/lib/Model/CreateSmsCampaign.php b/lib/Model/CreateSmsCampaign.php old mode 100755 new mode 100644 index af2f7249..0de1546c --- a/lib/Model/CreateSmsCampaign.php +++ b/lib/Model/CreateSmsCampaign.php @@ -57,8 +57,8 @@ class CreateSmsCampaign implements ArrayAccess 'name' => 'string', 'sender' => 'string', 'content' => 'string', - 'recipients' => '\Swagger\Client\Model\SmsCampaignsRecipients', - 'scheduled_at' => 'string' + 'recipients' => '\Swagger\Client\Model\CreateSmsCampaignRecipients', + 'scheduledAt' => 'string' ]; /** @@ -70,7 +70,7 @@ class CreateSmsCampaign implements ArrayAccess 'sender' => null, 'content' => null, 'recipients' => null, - 'scheduled_at' => null + 'scheduledAt' => null ]; public static function swaggerTypes() @@ -92,7 +92,7 @@ public static function swaggerFormats() 'sender' => 'sender', 'content' => 'content', 'recipients' => 'recipients', - 'scheduled_at' => 'scheduledAt' + 'scheduledAt' => 'scheduledAt' ]; @@ -105,7 +105,7 @@ public static function swaggerFormats() 'sender' => 'setSender', 'content' => 'setContent', 'recipients' => 'setRecipients', - 'scheduled_at' => 'setScheduledAt' + 'scheduledAt' => 'setScheduledAt' ]; @@ -118,7 +118,7 @@ public static function swaggerFormats() 'sender' => 'getSender', 'content' => 'getContent', 'recipients' => 'getRecipients', - 'scheduled_at' => 'getScheduledAt' + 'scheduledAt' => 'getScheduledAt' ]; public static function attributeMap() @@ -156,7 +156,7 @@ public function __construct(array $data = null) $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; $this->container['content'] = isset($data['content']) ? $data['content'] : null; $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; } /** @@ -178,8 +178,8 @@ public function listInvalidProperties() $invalid_properties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; } - if (!is_null($this->container['scheduled_at']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!is_null($this->container['scheduledAt']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -203,7 +203,7 @@ public function valid() if (strlen($this->container['sender']) > 11) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } return true; @@ -279,7 +279,7 @@ public function setContent($content) /** * Gets recipients - * @return \Swagger\Client\Model\SmsCampaignsRecipients + * @return \Swagger\Client\Model\CreateSmsCampaignRecipients */ public function getRecipients() { @@ -288,7 +288,7 @@ public function getRecipients() /** * Sets recipients - * @param \Swagger\Client\Model\SmsCampaignsRecipients $recipients + * @param \Swagger\Client\Model\CreateSmsCampaignRecipients $recipients * @return $this */ public function setRecipients($recipients) @@ -299,27 +299,27 @@ public function setRecipients($recipients) } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Date and time on which the campaign has to run + * Sets scheduledAt + * @param string $scheduledAt Date and time on which the campaign has to run * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if (!is_null($scheduled_at) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling CreateSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if (!is_null($scheduledAt) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling CreateSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } diff --git a/lib/Model/CreateSmsCampaign1.php b/lib/Model/CreateSmsCampaign1.php deleted file mode 100755 index 1430884e..00000000 --- a/lib/Model/CreateSmsCampaign1.php +++ /dev/null @@ -1,385 +0,0 @@ - 'string', - 'sender' => 'string', - 'content' => 'string', - 'recipients' => '\Swagger\Client\Model\SmsCampaignsRecipients', - 'scheduled_at' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'sender' => null, - 'content' => null, - 'recipients' => null, - 'scheduled_at' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'sender' => 'sender', - 'content' => 'content', - 'recipients' => 'recipients', - 'scheduled_at' => 'scheduledAt' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'sender' => 'setSender', - 'content' => 'setContent', - 'recipients' => 'setRecipients', - 'scheduled_at' => 'setScheduledAt' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'sender' => 'getSender', - 'content' => 'getContent', - 'recipients' => 'getRecipients', - 'scheduled_at' => 'getScheduledAt' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['content'] = isset($data['content']) ? $data['content'] : null; - $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['sender'] === null) { - $invalid_properties[] = "'sender' can't be null"; - } - if ((strlen($this->container['sender']) > 11)) { - $invalid_properties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; - } - - if (!is_null($this->container['scheduled_at']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['name'] === null) { - return false; - } - if ($this->container['sender'] === null) { - return false; - } - if (strlen($this->container['sender']) > 11) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - return false; - } - return true; - } - - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the campaign - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets sender - * @return string - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param string $sender Name of the sender. The number of characters is limited to 11 - * @return $this - */ - public function setSender($sender) - { - if ((strlen($sender) > 11)) { - throw new \InvalidArgumentException('invalid length for $sender when calling CreateSmsCampaign1., must be smaller than or equal to 11.'); - } - - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets content - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * @param string $content Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS - * @return $this - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } - - /** - * Gets recipients - * @return \Swagger\Client\Model\SmsCampaignsRecipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\SmsCampaignsRecipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets scheduled_at - * @return string - */ - public function getScheduledAt() - { - return $this->container['scheduled_at']; - } - - /** - * Sets scheduled_at - * @param string $scheduled_at Date and time on which the campaign has to run - * @return $this - */ - public function setScheduledAt($scheduled_at) - { - - if (!is_null($scheduled_at) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling CreateSmsCampaign1., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['scheduled_at'] = $scheduled_at; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SmsCampaignsRecipients.php b/lib/Model/CreateSmsCampaignRecipients.php old mode 100755 new mode 100644 similarity index 75% rename from lib/Model/SmsCampaignsRecipients.php rename to lib/Model/CreateSmsCampaignRecipients.php index 98e1024e..893ad921 --- a/lib/Model/SmsCampaignsRecipients.php +++ b/lib/Model/CreateSmsCampaignRecipients.php @@ -1,6 +1,6 @@ 'int[]', - 'exclusion_list_ids' => 'int[]' + 'listIds' => 'int[]', + 'exclusionListIds' => 'int[]' ]; /** @@ -63,8 +63,8 @@ class SmsCampaignsRecipients implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'list_ids' => 'int32', - 'exclusion_list_ids' => 'int32' + 'listIds' => 'int32', + 'exclusionListIds' => 'int32' ]; public static function swaggerTypes() @@ -82,8 +82,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'list_ids' => 'listIds', - 'exclusion_list_ids' => 'exclusionListIds' + 'listIds' => 'listIds', + 'exclusionListIds' => 'exclusionListIds' ]; @@ -92,8 +92,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'list_ids' => 'setListIds', - 'exclusion_list_ids' => 'setExclusionListIds' + 'listIds' => 'setListIds', + 'exclusionListIds' => 'setExclusionListIds' ]; @@ -102,8 +102,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'list_ids' => 'getListIds', - 'exclusion_list_ids' => 'getExclusionListIds' + 'listIds' => 'getListIds', + 'exclusionListIds' => 'getExclusionListIds' ]; public static function attributeMap() @@ -137,8 +137,8 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - $this->container['exclusion_list_ids'] = isset($data['exclusion_list_ids']) ? $data['exclusion_list_ids'] : null; + $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; + $this->container['exclusionListIds'] = isset($data['exclusionListIds']) ? $data['exclusionListIds'] : null; } /** @@ -150,11 +150,11 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['list_ids'] === null) { - $invalid_properties[] = "'list_ids' can't be null"; + if ($this->container['listIds'] === null) { + $invalid_properties[] = "'listIds' can't be null"; } - if ($this->container['exclusion_list_ids'] === null) { - $invalid_properties[] = "'exclusion_list_ids' can't be null"; + if ($this->container['exclusionListIds'] === null) { + $invalid_properties[] = "'exclusionListIds' can't be null"; } return $invalid_properties; } @@ -168,10 +168,10 @@ public function listInvalidProperties() public function valid() { - if ($this->container['list_ids'] === null) { + if ($this->container['listIds'] === null) { return false; } - if ($this->container['exclusion_list_ids'] === null) { + if ($this->container['exclusionListIds'] === null) { return false; } return true; @@ -179,43 +179,43 @@ public function valid() /** - * Gets list_ids + * Gets listIds * @return int[] */ public function getListIds() { - return $this->container['list_ids']; + return $this->container['listIds']; } /** - * Sets list_ids - * @param int[] $list_ids Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty + * Sets listIds + * @param int[] $listIds Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty * @return $this */ - public function setListIds($list_ids) + public function setListIds($listIds) { - $this->container['list_ids'] = $list_ids; + $this->container['listIds'] = $listIds; return $this; } /** - * Gets exclusion_list_ids + * Gets exclusionListIds * @return int[] */ public function getExclusionListIds() { - return $this->container['exclusion_list_ids']; + return $this->container['exclusionListIds']; } /** - * Sets exclusion_list_ids - * @param int[] $exclusion_list_ids List ids which have to be excluded from a campaign + * Sets exclusionListIds + * @param int[] $exclusionListIds List ids which have to be excluded from a campaign * @return $this */ - public function setExclusionListIds($exclusion_list_ids) + public function setExclusionListIds($exclusionListIds) { - $this->container['exclusion_list_ids'] = $exclusion_list_ids; + $this->container['exclusionListIds'] = $exclusionListIds; return $this; } diff --git a/lib/Model/CreateSmtpEmail.php b/lib/Model/CreateSmtpEmail.php old mode 100755 new mode 100644 index 2bee1f67..ba30ef03 --- a/lib/Model/CreateSmtpEmail.php +++ b/lib/Model/CreateSmtpEmail.php @@ -54,7 +54,7 @@ class CreateSmtpEmail implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'message_id' => 'string' + 'messageId' => 'string' ]; /** @@ -62,7 +62,7 @@ class CreateSmtpEmail implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'message_id' => null + 'messageId' => null ]; public static function swaggerTypes() @@ -80,7 +80,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'message_id' => 'messageId' + 'messageId' => 'messageId' ]; @@ -89,7 +89,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'message_id' => 'setMessageId' + 'messageId' => 'setMessageId' ]; @@ -98,7 +98,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'message_id' => 'getMessageId' + 'messageId' => 'getMessageId' ]; public static function attributeMap() @@ -132,7 +132,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['message_id'] = isset($data['message_id']) ? $data['message_id'] : null; + $this->container['messageId'] = isset($data['messageId']) ? $data['messageId'] : null; } /** @@ -144,8 +144,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['message_id'] === null) { - $invalid_properties[] = "'message_id' can't be null"; + if ($this->container['messageId'] === null) { + $invalid_properties[] = "'messageId' can't be null"; } return $invalid_properties; } @@ -159,7 +159,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['message_id'] === null) { + if ($this->container['messageId'] === null) { return false; } return true; @@ -167,22 +167,22 @@ public function valid() /** - * Gets message_id + * Gets messageId * @return string */ public function getMessageId() { - return $this->container['message_id']; + return $this->container['messageId']; } /** - * Sets message_id - * @param string $message_id Message ID of the SMTP Email sent + * Sets messageId + * @param string $messageId Message ID of the SMTP Email sent * @return $this */ - public function setMessageId($message_id) + public function setMessageId($messageId) { - $this->container['message_id'] = $message_id; + $this->container['messageId'] = $messageId; return $this; } diff --git a/lib/Model/CreateSmtpTemplate.php b/lib/Model/CreateSmtpTemplate.php old mode 100755 new mode 100644 index 17d22ecc..a6c7459c --- a/lib/Model/CreateSmtpTemplate.php +++ b/lib/Model/CreateSmtpTemplate.php @@ -55,15 +55,15 @@ class CreateSmtpTemplate implements ArrayAccess */ protected static $swaggerTypes = [ 'tag' => 'string', - 'sender' => '\Swagger\Client\Model\SmtptemplatesSender', - 'template_name' => 'string', - 'html_content' => 'string', - 'html_url' => 'string', + 'sender' => '\Swagger\Client\Model\CreateSmtpTemplateSender', + 'templateName' => 'string', + 'htmlContent' => 'string', + 'htmlUrl' => 'string', 'subject' => 'string', - 'reply_to' => 'string', - 'to_field' => 'string', - 'attachment_url' => 'string', - 'is_active' => 'bool' + 'replyTo' => 'string', + 'toField' => 'string', + 'attachmentUrl' => 'string', + 'isActive' => 'bool' ]; /** @@ -73,14 +73,14 @@ class CreateSmtpTemplate implements ArrayAccess protected static $swaggerFormats = [ 'tag' => null, 'sender' => null, - 'template_name' => null, - 'html_content' => null, - 'html_url' => 'url', + 'templateName' => null, + 'htmlContent' => null, + 'htmlUrl' => 'url', 'subject' => null, - 'reply_to' => 'email', - 'to_field' => null, - 'attachment_url' => 'url', - 'is_active' => null + 'replyTo' => 'email', + 'toField' => null, + 'attachmentUrl' => 'url', + 'isActive' => null ]; public static function swaggerTypes() @@ -100,14 +100,14 @@ public static function swaggerFormats() protected static $attributeMap = [ 'tag' => 'tag', 'sender' => 'sender', - 'template_name' => 'templateName', - 'html_content' => 'htmlContent', - 'html_url' => 'htmlUrl', + 'templateName' => 'templateName', + 'htmlContent' => 'htmlContent', + 'htmlUrl' => 'htmlUrl', 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'attachment_url' => 'attachmentUrl', - 'is_active' => 'isActive' + 'replyTo' => 'replyTo', + 'toField' => 'toField', + 'attachmentUrl' => 'attachmentUrl', + 'isActive' => 'isActive' ]; @@ -118,14 +118,14 @@ public static function swaggerFormats() protected static $setters = [ 'tag' => 'setTag', 'sender' => 'setSender', - 'template_name' => 'setTemplateName', - 'html_content' => 'setHtmlContent', - 'html_url' => 'setHtmlUrl', + 'templateName' => 'setTemplateName', + 'htmlContent' => 'setHtmlContent', + 'htmlUrl' => 'setHtmlUrl', 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'attachment_url' => 'setAttachmentUrl', - 'is_active' => 'setIsActive' + 'replyTo' => 'setReplyTo', + 'toField' => 'setToField', + 'attachmentUrl' => 'setAttachmentUrl', + 'isActive' => 'setIsActive' ]; @@ -136,14 +136,14 @@ public static function swaggerFormats() protected static $getters = [ 'tag' => 'getTag', 'sender' => 'getSender', - 'template_name' => 'getTemplateName', - 'html_content' => 'getHtmlContent', - 'html_url' => 'getHtmlUrl', + 'templateName' => 'getTemplateName', + 'htmlContent' => 'getHtmlContent', + 'htmlUrl' => 'getHtmlUrl', 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'attachment_url' => 'getAttachmentUrl', - 'is_active' => 'getIsActive' + 'replyTo' => 'getReplyTo', + 'toField' => 'getToField', + 'attachmentUrl' => 'getAttachmentUrl', + 'isActive' => 'getIsActive' ]; public static function attributeMap() @@ -179,14 +179,14 @@ public function __construct(array $data = null) { $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['template_name'] = isset($data['template_name']) ? $data['template_name'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['html_url'] = isset($data['html_url']) ? $data['html_url'] : null; + $this->container['templateName'] = isset($data['templateName']) ? $data['templateName'] : null; + $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; + $this->container['htmlUrl'] = isset($data['htmlUrl']) ? $data['htmlUrl'] : null; $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['is_active'] = isset($data['is_active']) ? $data['is_active'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; + $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; + $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; + $this->container['isActive'] = isset($data['isActive']) ? $data['isActive'] : null; } /** @@ -198,8 +198,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['template_name'] === null) { - $invalid_properties[] = "'template_name' can't be null"; + if ($this->container['templateName'] === null) { + $invalid_properties[] = "'templateName' can't be null"; } if ($this->container['subject'] === null) { $invalid_properties[] = "'subject' can't be null"; @@ -216,7 +216,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['template_name'] === null) { + if ($this->container['templateName'] === null) { return false; } if ($this->container['subject'] === null) { @@ -249,7 +249,7 @@ public function setTag($tag) /** * Gets sender - * @return \Swagger\Client\Model\SmtptemplatesSender + * @return \Swagger\Client\Model\CreateSmtpTemplateSender */ public function getSender() { @@ -258,7 +258,7 @@ public function getSender() /** * Sets sender - * @param \Swagger\Client\Model\SmtptemplatesSender $sender + * @param \Swagger\Client\Model\CreateSmtpTemplateSender $sender * @return $this */ public function setSender($sender) @@ -269,64 +269,64 @@ public function setSender($sender) } /** - * Gets template_name + * Gets templateName * @return string */ public function getTemplateName() { - return $this->container['template_name']; + return $this->container['templateName']; } /** - * Sets template_name - * @param string $template_name Name of the template + * Sets templateName + * @param string $templateName Name of the template * @return $this */ - public function setTemplateName($template_name) + public function setTemplateName($templateName) { - $this->container['template_name'] = $template_name; + $this->container['templateName'] = $templateName; return $this; } /** - * Gets html_content + * Gets htmlContent * @return string */ public function getHtmlContent() { - return $this->container['html_content']; + return $this->container['htmlContent']; } /** - * Sets html_content - * @param string $html_content Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty + * Sets htmlContent + * @param string $htmlContent Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty * @return $this */ - public function setHtmlContent($html_content) + public function setHtmlContent($htmlContent) { - $this->container['html_content'] = $html_content; + $this->container['htmlContent'] = $htmlContent; return $this; } /** - * Gets html_url + * Gets htmlUrl * @return string */ public function getHtmlUrl() { - return $this->container['html_url']; + return $this->container['htmlUrl']; } /** - * Sets html_url - * @param string $html_url Url which contents the body of the email message. REQUIRED if htmlContent is empty + * Sets htmlUrl + * @param string $htmlUrl Url which contents the body of the email message. REQUIRED if htmlContent is empty * @return $this */ - public function setHtmlUrl($html_url) + public function setHtmlUrl($htmlUrl) { - $this->container['html_url'] = $html_url; + $this->container['htmlUrl'] = $htmlUrl; return $this; } @@ -353,85 +353,85 @@ public function setSubject($subject) } /** - * Gets reply_to + * Gets replyTo * @return string */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param string $reply_to Email on which campaign recipients will be able to reply to + * Sets replyTo + * @param string $replyTo Email on which campaign recipients will be able to reply to * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** - * Gets to_field + * Gets toField * @return string */ public function getToField() { - return $this->container['to_field']; + return $this->container['toField']; } /** - * Sets to_field - * @param string $to_field This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account + * Sets toField + * @param string $toField This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account * @return $this */ - public function setToField($to_field) + public function setToField($toField) { - $this->container['to_field'] = $to_field; + $this->container['toField'] = $toField; return $this; } /** - * Gets attachment_url + * Gets attachmentUrl * @return string */ public function getAttachmentUrl() { - return $this->container['attachment_url']; + return $this->container['attachmentUrl']; } /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf + * Sets attachmentUrl + * @param string $attachmentUrl Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf * @return $this */ - public function setAttachmentUrl($attachment_url) + public function setAttachmentUrl($attachmentUrl) { - $this->container['attachment_url'] = $attachment_url; + $this->container['attachmentUrl'] = $attachmentUrl; return $this; } /** - * Gets is_active + * Gets isActive * @return bool */ public function getIsActive() { - return $this->container['is_active']; + return $this->container['isActive']; } /** - * Sets is_active - * @param bool $is_active Status of template. isActive = true means template is active and isActive = false means template is inactive + * Sets isActive + * @param bool $isActive Status of template. isActive = true means template is active and isActive = false means template is inactive * @return $this */ - public function setIsActive($is_active) + public function setIsActive($isActive) { - $this->container['is_active'] = $is_active; + $this->container['isActive'] = $isActive; return $this; } diff --git a/lib/Model/SmtptemplatesSender.php b/lib/Model/CreateSmtpTemplateSender.php old mode 100755 new mode 100644 similarity index 97% rename from lib/Model/SmtptemplatesSender.php rename to lib/Model/CreateSmtpTemplateSender.php index e52df271..213d527d --- a/lib/Model/SmtptemplatesSender.php +++ b/lib/Model/CreateSmtpTemplateSender.php @@ -1,6 +1,6 @@ 'string', - 'description' => 'string', - 'events' => 'string[]', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'url' => 'url', - 'description' => null, - 'events' => null, - 'type' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'description' => 'description', - 'events' => 'events', - 'type' => 'type' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'url' => 'setUrl', - 'description' => 'setDescription', - 'events' => 'setEvents', - 'type' => 'setType' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'url' => 'getUrl', - 'description' => 'getDescription', - 'events' => 'getEvents', - 'type' => 'getType' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const TYPE_TRANSACTIONAL = 'transactional'; - const TYPE_MARKETING = 'marketing'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_TRANSACTIONAL, - self::TYPE_MARKETING, - ]; - } - - - /** - * Associative array for storing property values - * @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; - $this->container['description'] = isset($data['description']) ? $data['description'] : null; - $this->container['events'] = isset($data['events']) ? $data['events'] : null; - $this->container['type'] = isset($data['type']) ? $data['type'] : 'transactional'; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['url'] === null) { - $invalid_properties[] = "'url' can't be null"; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['url'] === null) { - return false; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets url - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * @param string $url URL of the webhook - * @return $this - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * @param string $description Description of the webhook - * @return $this - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - - /** - * Gets events - * @return string[] - */ - public function getEvents() - { - return $this->container['events']; - } - - /** - * Sets events - * @param string[] $events Events triggering the webhook. Possible values for Transactional type webhook – request, delivered, hardBounce, softBounce, blocked, spam, invalid, deferred, click, opened, uniqueOpened and unsubscribed and possible values for Marketing type webhook – spam, opened, click, hardBounce, softBounce, unsubscribed, listAddition & delivered - * @return $this - */ - public function setEvents($events) - { - $this->container['events'] = $events; - - return $this; - } - - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * @param string $type Type of the webhook - * @return $this - */ - public function setType($type) - { - $allowed_values = $this->getTypeAllowableValues(); - if (!is_null($type) && !in_array($type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CreatedProcessId.php b/lib/Model/CreatedProcessId.php old mode 100755 new mode 100644 index 46e21ebb..d9667ff5 --- a/lib/Model/CreatedProcessId.php +++ b/lib/Model/CreatedProcessId.php @@ -54,7 +54,7 @@ class CreatedProcessId implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'process_id' => 'int' + 'processId' => 'int' ]; /** @@ -62,7 +62,7 @@ class CreatedProcessId implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'process_id' => 'int32' + 'processId' => 'int32' ]; public static function swaggerTypes() @@ -80,7 +80,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'process_id' => 'processId' + 'processId' => 'processId' ]; @@ -89,7 +89,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'process_id' => 'setProcessId' + 'processId' => 'setProcessId' ]; @@ -98,7 +98,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'process_id' => 'getProcessId' + 'processId' => 'getProcessId' ]; public static function attributeMap() @@ -132,7 +132,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['process_id'] = isset($data['process_id']) ? $data['process_id'] : null; + $this->container['processId'] = isset($data['processId']) ? $data['processId'] : null; } /** @@ -144,8 +144,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['process_id'] === null) { - $invalid_properties[] = "'process_id' can't be null"; + if ($this->container['processId'] === null) { + $invalid_properties[] = "'processId' can't be null"; } return $invalid_properties; } @@ -159,7 +159,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['process_id'] === null) { + if ($this->container['processId'] === null) { return false; } return true; @@ -167,22 +167,22 @@ public function valid() /** - * Gets process_id + * Gets processId * @return int */ public function getProcessId() { - return $this->container['process_id']; + return $this->container['processId']; } /** - * Sets process_id - * @param int $process_id Id of the process created + * Sets processId + * @param int $processId Id of the process created * @return $this */ - public function setProcessId($process_id) + public function setProcessId($processId) { - $this->container['process_id'] = $process_id; + $this->container['processId'] = $processId; return $this; } diff --git a/lib/Model/DeleteHardbounces.php b/lib/Model/DeleteHardbounces.php old mode 100755 new mode 100644 index 20ebaad2..209ceb98 --- a/lib/Model/DeleteHardbounces.php +++ b/lib/Model/DeleteHardbounces.php @@ -54,9 +54,9 @@ class DeleteHardbounces implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'start_date' => '\DateTime', - 'end_date' => '\DateTime', - 'contact_email' => 'string' + 'startDate' => '\DateTime', + 'endDate' => '\DateTime', + 'contactEmail' => 'string' ]; /** @@ -64,9 +64,9 @@ class DeleteHardbounces implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'start_date' => 'date', - 'end_date' => 'date', - 'contact_email' => 'email' + 'startDate' => 'date', + 'endDate' => 'date', + 'contactEmail' => 'email' ]; public static function swaggerTypes() @@ -84,9 +84,9 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'start_date' => 'startDate', - 'end_date' => 'endDate', - 'contact_email' => 'contactEmail' + 'startDate' => 'startDate', + 'endDate' => 'endDate', + 'contactEmail' => 'contactEmail' ]; @@ -95,9 +95,9 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'start_date' => 'setStartDate', - 'end_date' => 'setEndDate', - 'contact_email' => 'setContactEmail' + 'startDate' => 'setStartDate', + 'endDate' => 'setEndDate', + 'contactEmail' => 'setContactEmail' ]; @@ -106,9 +106,9 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'start_date' => 'getStartDate', - 'end_date' => 'getEndDate', - 'contact_email' => 'getContactEmail' + 'startDate' => 'getStartDate', + 'endDate' => 'getEndDate', + 'contactEmail' => 'getContactEmail' ]; public static function attributeMap() @@ -142,9 +142,9 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['start_date'] = isset($data['start_date']) ? $data['start_date'] : null; - $this->container['end_date'] = isset($data['end_date']) ? $data['end_date'] : null; - $this->container['contact_email'] = isset($data['contact_email']) ? $data['contact_email'] : null; + $this->container['startDate'] = isset($data['startDate']) ? $data['startDate'] : null; + $this->container['endDate'] = isset($data['endDate']) ? $data['endDate'] : null; + $this->container['contactEmail'] = isset($data['contactEmail']) ? $data['contactEmail'] : null; } /** @@ -173,64 +173,64 @@ public function valid() /** - * Gets start_date + * Gets startDate * @return \DateTime */ public function getStartDate() { - return $this->container['start_date']; + return $this->container['startDate']; } /** - * Sets start_date - * @param \DateTime $start_date Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate + * Sets startDate + * @param \DateTime $startDate Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate * @return $this */ - public function setStartDate($start_date) + public function setStartDate($startDate) { - $this->container['start_date'] = $start_date; + $this->container['startDate'] = $startDate; return $this; } /** - * Gets end_date + * Gets endDate * @return \DateTime */ public function getEndDate() { - return $this->container['end_date']; + return $this->container['endDate']; } /** - * Sets end_date - * @param \DateTime $end_date Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate + * Sets endDate + * @param \DateTime $endDate Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate * @return $this */ - public function setEndDate($end_date) + public function setEndDate($endDate) { - $this->container['end_date'] = $end_date; + $this->container['endDate'] = $endDate; return $this; } /** - * Gets contact_email + * Gets contactEmail * @return string */ public function getContactEmail() { - return $this->container['contact_email']; + return $this->container['contactEmail']; } /** - * Sets contact_email - * @param string $contact_email Target a specific email address + * Sets contactEmail + * @param string $contactEmail Target a specific email address * @return $this */ - public function setContactEmail($contact_email) + public function setContactEmail($contactEmail) { - $this->container['contact_email'] = $contact_email; + $this->container['contactEmail'] = $contactEmail; return $this; } diff --git a/lib/Model/DeleteHardbounces1.php b/lib/Model/DeleteHardbounces1.php deleted file mode 100755 index 2cdb6e27..00000000 --- a/lib/Model/DeleteHardbounces1.php +++ /dev/null @@ -1,296 +0,0 @@ - '\DateTime', - 'end_date' => '\DateTime', - 'contact_email' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'start_date' => 'date', - 'end_date' => 'date', - 'contact_email' => 'email' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'start_date' => 'startDate', - 'end_date' => 'endDate', - 'contact_email' => 'contactEmail' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'start_date' => 'setStartDate', - 'end_date' => 'setEndDate', - 'contact_email' => 'setContactEmail' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'start_date' => 'getStartDate', - 'end_date' => 'getEndDate', - 'contact_email' => 'getContactEmail' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['start_date'] = isset($data['start_date']) ? $data['start_date'] : null; - $this->container['end_date'] = isset($data['end_date']) ? $data['end_date'] : null; - $this->container['contact_email'] = isset($data['contact_email']) ? $data['contact_email'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets start_date - * @return \DateTime - */ - public function getStartDate() - { - return $this->container['start_date']; - } - - /** - * Sets start_date - * @param \DateTime $start_date Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate - * @return $this - */ - public function setStartDate($start_date) - { - $this->container['start_date'] = $start_date; - - return $this; - } - - /** - * Gets end_date - * @return \DateTime - */ - public function getEndDate() - { - return $this->container['end_date']; - } - - /** - * Sets end_date - * @param \DateTime $end_date Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate - * @return $this - */ - public function setEndDate($end_date) - { - $this->container['end_date'] = $end_date; - - return $this; - } - - /** - * Gets contact_email - * @return string - */ - public function getContactEmail() - { - return $this->container['contact_email']; - } - - /** - * Sets contact_email - * @param string $contact_email Target a specific email address - * @return $this - */ - public function setContactEmail($contact_email) - { - $this->container['contact_email'] = $contact_email; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/EmailCampaign.php b/lib/Model/EmailCampaign.php deleted file mode 100755 index 865fea73..00000000 --- a/lib/Model/EmailCampaign.php +++ /dev/null @@ -1,686 +0,0 @@ - 'string', - 'sender' => '\Swagger\Client\Model\EmailCampaignscampaignIdSender', - 'name' => 'string', - 'html_content' => 'string', - 'html_url' => 'string', - 'scheduled_at' => 'string', - 'subject' => 'string', - 'reply_to' => 'string', - 'to_field' => 'string', - 'recipients' => '\Swagger\Client\Model\EmailCampaignscampaignIdRecipients', - 'attachment_url' => 'string', - 'inline_image_activation' => 'bool', - 'mirror_active' => 'bool', - 'recurring' => 'bool', - 'footer' => 'string', - 'header' => 'string', - 'utm_campaign' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'tag' => null, - 'sender' => null, - 'name' => null, - 'html_content' => null, - 'html_url' => 'url', - 'scheduled_at' => null, - 'subject' => null, - 'reply_to' => 'email', - 'to_field' => null, - 'recipients' => null, - 'attachment_url' => 'url', - 'inline_image_activation' => null, - 'mirror_active' => null, - 'recurring' => null, - 'footer' => null, - 'header' => null, - 'utm_campaign' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'tag' => 'tag', - 'sender' => 'sender', - 'name' => 'name', - 'html_content' => 'htmlContent', - 'html_url' => 'htmlUrl', - 'scheduled_at' => 'scheduledAt', - 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'recipients' => 'recipients', - 'attachment_url' => 'attachmentUrl', - 'inline_image_activation' => 'inlineImageActivation', - 'mirror_active' => 'mirrorActive', - 'recurring' => 'recurring', - 'footer' => 'footer', - 'header' => 'header', - 'utm_campaign' => 'utmCampaign' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'tag' => 'setTag', - 'sender' => 'setSender', - 'name' => 'setName', - 'html_content' => 'setHtmlContent', - 'html_url' => 'setHtmlUrl', - 'scheduled_at' => 'setScheduledAt', - 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'recipients' => 'setRecipients', - 'attachment_url' => 'setAttachmentUrl', - 'inline_image_activation' => 'setInlineImageActivation', - 'mirror_active' => 'setMirrorActive', - 'recurring' => 'setRecurring', - 'footer' => 'setFooter', - 'header' => 'setHeader', - 'utm_campaign' => 'setUtmCampaign' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'tag' => 'getTag', - 'sender' => 'getSender', - 'name' => 'getName', - 'html_content' => 'getHtmlContent', - 'html_url' => 'getHtmlUrl', - 'scheduled_at' => 'getScheduledAt', - 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'recipients' => 'getRecipients', - 'attachment_url' => 'getAttachmentUrl', - 'inline_image_activation' => 'getInlineImageActivation', - 'mirror_active' => 'getMirrorActive', - 'recurring' => 'getRecurring', - 'footer' => 'getFooter', - 'header' => 'getHeader', - 'utm_campaign' => 'getUtmCampaign' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['html_url'] = isset($data['html_url']) ? $data['html_url'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['inline_image_activation'] = isset($data['inline_image_activation']) ? $data['inline_image_activation'] : false; - $this->container['mirror_active'] = isset($data['mirror_active']) ? $data['mirror_active'] : null; - $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : false; - $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; - $this->container['header'] = isset($data['header']) ? $data['header'] : null; - $this->container['utm_campaign'] = isset($data['utm_campaign']) ? $data['utm_campaign'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if (!is_null($this->container['scheduled_at']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - return false; - } - return true; - } - - - /** - * Gets tag - * @return string - */ - public function getTag() - { - return $this->container['tag']; - } - - /** - * Sets tag - * @param string $tag Tag of the campaign - * @return $this - */ - public function setTag($tag) - { - $this->container['tag'] = $tag; - - return $this; - } - - /** - * Gets sender - * @return \Swagger\Client\Model\EmailCampaignscampaignIdSender - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param \Swagger\Client\Model\EmailCampaignscampaignIdSender $sender - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the campaign - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets html_content - * @return string - */ - public function getHtmlContent() - { - return $this->container['html_content']; - } - - /** - * Sets html_content - * @param string $html_content Body of the message (HTML version). REQUIRED if htmlUrl is empty - * @return $this - */ - public function setHtmlContent($html_content) - { - $this->container['html_content'] = $html_content; - - return $this; - } - - /** - * Gets html_url - * @return string - */ - public function getHtmlUrl() - { - return $this->container['html_url']; - } - - /** - * Sets html_url - * @param string $html_url Url which contents the body of the email message. REQUIRED if htmlContent is empty - * @return $this - */ - public function setHtmlUrl($html_url) - { - $this->container['html_url'] = $html_url; - - return $this; - } - - /** - * Gets scheduled_at - * @return string - */ - public function getScheduledAt() - { - return $this->container['scheduled_at']; - } - - /** - * Sets scheduled_at - * @param string $scheduled_at Date and time on which the campaign has to run - * @return $this - */ - public function setScheduledAt($scheduled_at) - { - - if (!is_null($scheduled_at) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling EmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['scheduled_at'] = $scheduled_at; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject of the campaign - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - - /** - * Gets reply_to - * @return string - */ - public function getReplyTo() - { - return $this->container['reply_to']; - } - - /** - * Sets reply_to - * @param string $reply_to Email on which campaign recipients will be able to reply to - * @return $this - */ - public function setReplyTo($reply_to) - { - $this->container['reply_to'] = $reply_to; - - return $this; - } - - /** - * Gets to_field - * @return string - */ - public function getToField() - { - return $this->container['to_field']; - } - - /** - * Sets to_field - * @param string $to_field This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account - * @return $this - */ - public function setToField($to_field) - { - $this->container['to_field'] = $to_field; - - return $this; - } - - /** - * Gets recipients - * @return \Swagger\Client\Model\EmailCampaignscampaignIdRecipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\EmailCampaignscampaignIdRecipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets attachment_url - * @return string - */ - public function getAttachmentUrl() - { - return $this->container['attachment_url']; - } - - /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment. Url not allowed from local machine. File must be hosted somewhere.Possilbe extension values are xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf - * @return $this - */ - public function setAttachmentUrl($attachment_url) - { - $this->container['attachment_url'] = $attachment_url; - - return $this; - } - - /** - * Gets inline_image_activation - * @return bool - */ - public function getInlineImageActivation() - { - return $this->container['inline_image_activation']; - } - - /** - * Sets inline_image_activation - * @param bool $inline_image_activation Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. You cannot send a campaign of more than 4MB with images embedded in the email. Campaigns with the images embedded in the email must be sent to less than 5000 contacts. - * @return $this - */ - public function setInlineImageActivation($inline_image_activation) - { - $this->container['inline_image_activation'] = $inline_image_activation; - - return $this; - } - - /** - * Gets mirror_active - * @return bool - */ - public function getMirrorActive() - { - return $this->container['mirror_active']; - } - - /** - * Sets mirror_active - * @param bool $mirror_active Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign - * @return $this - */ - public function setMirrorActive($mirror_active) - { - $this->container['mirror_active'] = $mirror_active; - - return $this; - } - - /** - * Gets recurring - * @return bool - */ - public function getRecurring() - { - return $this->container['recurring']; - } - - /** - * Sets recurring - * @param bool $recurring 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 - * @return $this - */ - public function setRecurring($recurring) - { - $this->container['recurring'] = $recurring; - - return $this; - } - - /** - * Gets footer - * @return string - */ - public function getFooter() - { - return $this->container['footer']; - } - - /** - * Sets footer - * @param string $footer Footer of the email campaign - * @return $this - */ - public function setFooter($footer) - { - $this->container['footer'] = $footer; - - return $this; - } - - /** - * Gets header - * @return string - */ - public function getHeader() - { - return $this->container['header']; - } - - /** - * Sets header - * @param string $header Header of the email campaign - * @return $this - */ - public function setHeader($header) - { - $this->container['header'] = $header; - - return $this; - } - - /** - * Gets utm_campaign - * @return string - */ - public function getUtmCampaign() - { - return $this->container['utm_campaign']; - } - - /** - * Sets utm_campaign - * @param string $utm_campaign Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed - * @return $this - */ - public function setUtmCampaign($utm_campaign) - { - $this->container['utm_campaign'] = $utm_campaign; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/EmailCampaigns.php b/lib/Model/EmailCampaigns.php deleted file mode 100755 index 6e9e6b46..00000000 --- a/lib/Model/EmailCampaigns.php +++ /dev/null @@ -1,766 +0,0 @@ - 'string', - 'sender' => '\Swagger\Client\Model\EmailCampaignsSender', - 'name' => 'string', - 'html_content' => 'string', - 'html_url' => 'string', - 'scheduled_at' => 'string', - 'subject' => 'string', - 'reply_to' => 'string', - 'to_field' => 'string', - 'recipients' => '\Swagger\Client\Model\EmailCampaignsRecipients', - 'attachment_url' => 'string', - 'inline_image_activation' => 'bool', - 'mirror_active' => 'bool', - 'recurring' => 'bool', - 'type' => 'string', - 'footer' => 'string', - 'header' => 'string', - 'utm_campaign' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'tag' => null, - 'sender' => null, - 'name' => null, - 'html_content' => null, - 'html_url' => 'url', - 'scheduled_at' => null, - 'subject' => null, - 'reply_to' => 'email', - 'to_field' => null, - 'recipients' => null, - 'attachment_url' => 'url', - 'inline_image_activation' => null, - 'mirror_active' => null, - 'recurring' => null, - 'type' => null, - 'footer' => null, - 'header' => null, - 'utm_campaign' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'tag' => 'tag', - 'sender' => 'sender', - 'name' => 'name', - 'html_content' => 'htmlContent', - 'html_url' => 'htmlUrl', - 'scheduled_at' => 'scheduledAt', - 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'recipients' => 'recipients', - 'attachment_url' => 'attachmentUrl', - 'inline_image_activation' => 'inlineImageActivation', - 'mirror_active' => 'mirrorActive', - 'recurring' => 'recurring', - 'type' => 'type', - 'footer' => 'footer', - 'header' => 'header', - 'utm_campaign' => 'utmCampaign' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'tag' => 'setTag', - 'sender' => 'setSender', - 'name' => 'setName', - 'html_content' => 'setHtmlContent', - 'html_url' => 'setHtmlUrl', - 'scheduled_at' => 'setScheduledAt', - 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'recipients' => 'setRecipients', - 'attachment_url' => 'setAttachmentUrl', - 'inline_image_activation' => 'setInlineImageActivation', - 'mirror_active' => 'setMirrorActive', - 'recurring' => 'setRecurring', - 'type' => 'setType', - 'footer' => 'setFooter', - 'header' => 'setHeader', - 'utm_campaign' => 'setUtmCampaign' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'tag' => 'getTag', - 'sender' => 'getSender', - 'name' => 'getName', - 'html_content' => 'getHtmlContent', - 'html_url' => 'getHtmlUrl', - 'scheduled_at' => 'getScheduledAt', - 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'recipients' => 'getRecipients', - 'attachment_url' => 'getAttachmentUrl', - 'inline_image_activation' => 'getInlineImageActivation', - 'mirror_active' => 'getMirrorActive', - 'recurring' => 'getRecurring', - 'type' => 'getType', - 'footer' => 'getFooter', - 'header' => 'getHeader', - 'utm_campaign' => 'getUtmCampaign' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const TYPE_CLASSIC = 'classic'; - const TYPE_TRIGGER = 'trigger'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_CLASSIC, - self::TYPE_TRIGGER, - ]; - } - - - /** - * 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['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['html_url'] = isset($data['html_url']) ? $data['html_url'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['inline_image_activation'] = isset($data['inline_image_activation']) ? $data['inline_image_activation'] : false; - $this->container['mirror_active'] = isset($data['mirror_active']) ? $data['mirror_active'] : null; - $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : false; - $this->container['type'] = isset($data['type']) ? $data['type'] : null; - $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; - $this->container['header'] = isset($data['header']) ? $data['header'] : null; - $this->container['utm_campaign'] = isset($data['utm_campaign']) ? $data['utm_campaign'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if (!is_null($this->container['scheduled_at']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - if ($this->container['subject'] === null) { - $invalid_properties[] = "'subject' can't be null"; - } - if ($this->container['type'] === null) { - $invalid_properties[] = "'type' can't be null"; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['name'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - return false; - } - if ($this->container['subject'] === null) { - return false; - } - if ($this->container['type'] === null) { - return false; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets tag - * @return string - */ - public function getTag() - { - return $this->container['tag']; - } - - /** - * Sets tag - * @param string $tag Tag of the campaign - * @return $this - */ - public function setTag($tag) - { - $this->container['tag'] = $tag; - - return $this; - } - - /** - * Gets sender - * @return \Swagger\Client\Model\EmailCampaignsSender - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param \Swagger\Client\Model\EmailCampaignsSender $sender - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the campaign - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets html_content - * @return string - */ - public function getHtmlContent() - { - return $this->container['html_content']; - } - - /** - * Sets html_content - * @param string $html_content Mandatory if htmlUrl is empty. Body of the message (HTML) - * @return $this - */ - public function setHtmlContent($html_content) - { - $this->container['html_content'] = $html_content; - - return $this; - } - - /** - * Gets html_url - * @return string - */ - public function getHtmlUrl() - { - return $this->container['html_url']; - } - - /** - * Sets html_url - * @param string $html_url Mandatory if htmlContent is empty. Url to the message (HTML) - * @return $this - */ - public function setHtmlUrl($html_url) - { - $this->container['html_url'] = $html_url; - - return $this; - } - - /** - * Gets scheduled_at - * @return string - */ - public function getScheduledAt() - { - return $this->container['scheduled_at']; - } - - /** - * Sets scheduled_at - * @param string $scheduled_at Sending date and time (YYYY-MM-DD HH:mm:ss) - * @return $this - */ - public function setScheduledAt($scheduled_at) - { - - if (!is_null($scheduled_at) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling EmailCampaigns., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['scheduled_at'] = $scheduled_at; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject of the campaign - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - - /** - * Gets reply_to - * @return string - */ - public function getReplyTo() - { - return $this->container['reply_to']; - } - - /** - * Sets reply_to - * @param string $reply_to Email on which the campaign recipients will be able to reply to - * @return $this - */ - public function setReplyTo($reply_to) - { - $this->container['reply_to'] = $reply_to; - - return $this; - } - - /** - * Gets to_field - * @return string - */ - public function getToField() - { - return $this->container['to_field']; - } - - /** - * Sets to_field - * @param string $to_field To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database - * @return $this - */ - public function setToField($to_field) - { - $this->container['to_field'] = $to_field; - - return $this; - } - - /** - * Gets recipients - * @return \Swagger\Client\Model\EmailCampaignsRecipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\EmailCampaignsRecipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets attachment_url - * @return string - */ - public function getAttachmentUrl() - { - return $this->container['attachment_url']; - } - - /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf - * @return $this - */ - public function setAttachmentUrl($attachment_url) - { - $this->container['attachment_url'] = $attachment_url; - - return $this; - } - - /** - * Gets inline_image_activation - * @return bool - */ - public function getInlineImageActivation() - { - return $this->container['inline_image_activation']; - } - - /** - * Sets inline_image_activation - * @param bool $inline_image_activation Use true to embedded the images in your email. Final size of the email should be less than 4MB. Campaigns with embedded images can not be sent to more than 5000 contacts - * @return $this - */ - public function setInlineImageActivation($inline_image_activation) - { - $this->container['inline_image_activation'] = $inline_image_activation; - - return $this; - } - - /** - * Gets mirror_active - * @return bool - */ - public function getMirrorActive() - { - return $this->container['mirror_active']; - } - - /** - * Sets mirror_active - * @param bool $mirror_active Use true to enable the mirror link - * @return $this - */ - public function setMirrorActive($mirror_active) - { - $this->container['mirror_active'] = $mirror_active; - - return $this; - } - - /** - * Gets recurring - * @return bool - */ - public function getRecurring() - { - return $this->container['recurring']; - } - - /** - * Sets recurring - * @param bool $recurring For trigger campagins use false to make sure a contact receives the same campaign only once - * @return $this - */ - public function setRecurring($recurring) - { - $this->container['recurring'] = $recurring; - - return $this; - } - - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * @param string $type Type of the campaign - * @return $this - */ - public function setType($type) - { - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets footer - * @return string - */ - public function getFooter() - { - return $this->container['footer']; - } - - /** - * Sets footer - * @param string $footer Footer of the email campaign - * @return $this - */ - public function setFooter($footer) - { - $this->container['footer'] = $footer; - - return $this; - } - - /** - * Gets header - * @return string - */ - public function getHeader() - { - return $this->container['header']; - } - - /** - * Sets header - * @param string $header Header of the email campaign - * @return $this - */ - public function setHeader($header) - { - $this->container['header'] = $header; - - return $this; - } - - /** - * Gets utm_campaign - * @return string - */ - public function getUtmCampaign() - { - return $this->container['utm_campaign']; - } - - /** - * Sets utm_campaign - * @param string $utm_campaign Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed - * @return $this - */ - public function setUtmCampaign($utm_campaign) - { - $this->container['utm_campaign'] = $utm_campaign; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/EmailExportRecipients.php b/lib/Model/EmailExportRecipients.php old mode 100755 new mode 100644 index b5d3db0f..40c15314 --- a/lib/Model/EmailExportRecipients.php +++ b/lib/Model/EmailExportRecipients.php @@ -54,8 +54,8 @@ class EmailExportRecipients implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'notify_url' => 'string', - 'recipients_type' => 'string' + 'notifyURL' => 'string', + 'recipientsType' => 'string' ]; /** @@ -63,8 +63,8 @@ class EmailExportRecipients implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'notify_url' => 'url', - 'recipients_type' => null + 'notifyURL' => 'url', + 'recipientsType' => null ]; public static function swaggerTypes() @@ -82,8 +82,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'notify_url' => 'notifyURL', - 'recipients_type' => 'recipientsType' + 'notifyURL' => 'notifyURL', + 'recipientsType' => 'recipientsType' ]; @@ -92,8 +92,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'notify_url' => 'setNotifyUrl', - 'recipients_type' => 'setRecipientsType' + 'notifyURL' => 'setNotifyURL', + 'recipientsType' => 'setRecipientsType' ]; @@ -102,8 +102,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'notify_url' => 'getNotifyUrl', - 'recipients_type' => 'getRecipientsType' + 'notifyURL' => 'getNotifyURL', + 'recipientsType' => 'getRecipientsType' ]; public static function attributeMap() @@ -163,8 +163,8 @@ public function getRecipientsTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null; - $this->container['recipients_type'] = isset($data['recipients_type']) ? $data['recipients_type'] : null; + $this->container['notifyURL'] = isset($data['notifyURL']) ? $data['notifyURL'] : null; + $this->container['recipientsType'] = isset($data['recipientsType']) ? $data['recipientsType'] : null; } /** @@ -176,13 +176,13 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['recipients_type'] === null) { - $invalid_properties[] = "'recipients_type' can't be null"; + if ($this->container['recipientsType'] === null) { + $invalid_properties[] = "'recipientsType' can't be null"; } $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($this->container['recipients_type'], $allowed_values)) { + if (!in_array($this->container['recipientsType'], $allowed_values)) { $invalid_properties[] = sprintf( - "invalid value for 'recipients_type', must be one of '%s'", + "invalid value for 'recipientsType', must be one of '%s'", implode("', '", $allowed_values) ); } @@ -199,11 +199,11 @@ public function listInvalidProperties() public function valid() { - if ($this->container['recipients_type'] === null) { + if ($this->container['recipientsType'] === null) { return false; } $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($this->container['recipients_type'], $allowed_values)) { + if (!in_array($this->container['recipientsType'], $allowed_values)) { return false; } return true; @@ -211,52 +211,52 @@ public function valid() /** - * Gets notify_url + * Gets notifyURL * @return string */ - public function getNotifyUrl() + public function getNotifyURL() { - return $this->container['notify_url']; + return $this->container['notifyURL']; } /** - * Sets notify_url - * @param string $notify_url Webhook called once the export process is finished + * Sets notifyURL + * @param string $notifyURL Webhook called once the export process is finished * @return $this */ - public function setNotifyUrl($notify_url) + public function setNotifyURL($notifyURL) { - $this->container['notify_url'] = $notify_url; + $this->container['notifyURL'] = $notifyURL; return $this; } /** - * Gets recipients_type + * Gets recipientsType * @return string */ public function getRecipientsType() { - return $this->container['recipients_type']; + return $this->container['recipientsType']; } /** - * Sets recipients_type - * @param string $recipients_type Type of recipients to export for a campaign + * Sets recipientsType + * @param string $recipientsType Type of recipients to export for a campaign * @return $this */ - public function setRecipientsType($recipients_type) + public function setRecipientsType($recipientsType) { $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($recipients_type, $allowed_values)) { + if (!in_array($recipientsType, $allowed_values)) { throw new \InvalidArgumentException( sprintf( - "Invalid value for 'recipients_type', must be one of '%s'", + "Invalid value for 'recipientsType', must be one of '%s'", implode("', '", $allowed_values) ) ); } - $this->container['recipients_type'] = $recipients_type; + $this->container['recipientsType'] = $recipientsType; return $this; } diff --git a/lib/Model/EmailTo.php b/lib/Model/EmailTo.php deleted file mode 100755 index b842f610..00000000 --- a/lib/Model/EmailTo.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email_to' => 'email' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email_to' => 'emailTo' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email_to' => 'setEmailTo' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email_to' => 'getEmailTo' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email_to'] = isset($data['email_to']) ? $data['email_to'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets email_to - * @return string[] - */ - public function getEmailTo() - { - return $this->container['email_to']; - } - - /** - * Sets email_to - * @param string[] $email_to If empty the test email will be sent to your entire test list. Use this field to send it to specific addresses in your list. - * @return $this - */ - public function setEmailTo($email_to) - { - $this->container['email_to'] = $email_to; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetAccount.php b/lib/Model/GetAccount.php old mode 100755 new mode 100644 index 2a59f0d1..bb2b89ac --- a/lib/Model/GetAccount.php +++ b/lib/Model/GetAccount.php @@ -55,13 +55,13 @@ class GetAccount implements ArrayAccess */ protected static $swaggerTypes = [ 'email' => 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', - 'address' => '\Swagger\Client\Model\InlineResponse200Address', - 'plan' => '\Swagger\Client\Model\InlineResponse200Plan[]', - 'relay' => '\Swagger\Client\Model\InlineResponse200Relay', - 'marketing_automation' => '\Swagger\Client\Model\InlineResponse200MarketingAutomation' + 'firstName' => 'string', + 'lastName' => 'string', + 'companyName' => 'string', + 'address' => '\Swagger\Client\Model\GetExtendedClientAddress', + 'plan' => '\Swagger\Client\Model\GetAccountPlan[]', + 'relay' => '\Swagger\Client\Model\GetAccountRelay', + 'marketingAutomation' => '\Swagger\Client\Model\GetAccountMarketingAutomation' ]; /** @@ -70,13 +70,13 @@ class GetAccount implements ArrayAccess */ protected static $swaggerFormats = [ 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, + 'firstName' => null, + 'lastName' => null, + 'companyName' => null, 'address' => null, 'plan' => null, 'relay' => null, - 'marketing_automation' => null + 'marketingAutomation' => null ]; public static function swaggerTypes() @@ -95,13 +95,13 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', + 'firstName' => 'firstName', + 'lastName' => 'lastName', + 'companyName' => 'companyName', 'address' => 'address', 'plan' => 'plan', 'relay' => 'relay', - 'marketing_automation' => 'marketingAutomation' + 'marketingAutomation' => 'marketingAutomation' ]; @@ -111,13 +111,13 @@ public static function swaggerFormats() */ protected static $setters = [ 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', + 'firstName' => 'setFirstName', + 'lastName' => 'setLastName', + 'companyName' => 'setCompanyName', 'address' => 'setAddress', 'plan' => 'setPlan', 'relay' => 'setRelay', - 'marketing_automation' => 'setMarketingAutomation' + 'marketingAutomation' => 'setMarketingAutomation' ]; @@ -127,13 +127,13 @@ public static function swaggerFormats() */ protected static $getters = [ 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', + 'firstName' => 'getFirstName', + 'lastName' => 'getLastName', + 'companyName' => 'getCompanyName', 'address' => 'getAddress', 'plan' => 'getPlan', 'relay' => 'getRelay', - 'marketing_automation' => 'getMarketingAutomation' + 'marketingAutomation' => 'getMarketingAutomation' ]; public static function attributeMap() @@ -168,13 +168,13 @@ public static function getters() public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; + $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null; + $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null; + $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; $this->container['address'] = isset($data['address']) ? $data['address'] : null; $this->container['plan'] = isset($data['plan']) ? $data['plan'] : null; $this->container['relay'] = isset($data['relay']) ? $data['relay'] : null; - $this->container['marketing_automation'] = isset($data['marketing_automation']) ? $data['marketing_automation'] : null; + $this->container['marketingAutomation'] = isset($data['marketingAutomation']) ? $data['marketingAutomation'] : null; } /** @@ -189,14 +189,14 @@ public function listInvalidProperties() if ($this->container['email'] === null) { $invalid_properties[] = "'email' can't be null"; } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; + if ($this->container['firstName'] === null) { + $invalid_properties[] = "'firstName' can't be null"; } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; + if ($this->container['lastName'] === null) { + $invalid_properties[] = "'lastName' can't be null"; } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; + if ($this->container['companyName'] === null) { + $invalid_properties[] = "'companyName' can't be null"; } if ($this->container['plan'] === null) { $invalid_properties[] = "'plan' can't be null"; @@ -216,13 +216,13 @@ public function valid() if ($this->container['email'] === null) { return false; } - if ($this->container['first_name'] === null) { + if ($this->container['firstName'] === null) { return false; } - if ($this->container['last_name'] === null) { + if ($this->container['lastName'] === null) { return false; } - if ($this->container['company_name'] === null) { + if ($this->container['companyName'] === null) { return false; } if ($this->container['plan'] === null) { @@ -254,71 +254,71 @@ public function setEmail($email) } /** - * Gets first_name + * Gets firstName * @return string */ public function getFirstName() { - return $this->container['first_name']; + return $this->container['firstName']; } /** - * Sets first_name - * @param string $first_name First Name + * Sets firstName + * @param string $firstName First Name * @return $this */ - public function setFirstName($first_name) + public function setFirstName($firstName) { - $this->container['first_name'] = $first_name; + $this->container['firstName'] = $firstName; return $this; } /** - * Gets last_name + * Gets lastName * @return string */ public function getLastName() { - return $this->container['last_name']; + return $this->container['lastName']; } /** - * Sets last_name - * @param string $last_name Last Name + * Sets lastName + * @param string $lastName Last Name * @return $this */ - public function setLastName($last_name) + public function setLastName($lastName) { - $this->container['last_name'] = $last_name; + $this->container['lastName'] = $lastName; return $this; } /** - * Gets company_name + * Gets companyName * @return string */ public function getCompanyName() { - return $this->container['company_name']; + return $this->container['companyName']; } /** - * Sets company_name - * @param string $company_name Name of the company + * Sets companyName + * @param string $companyName Name of the company * @return $this */ - public function setCompanyName($company_name) + public function setCompanyName($companyName) { - $this->container['company_name'] = $company_name; + $this->container['companyName'] = $companyName; return $this; } /** * Gets address - * @return \Swagger\Client\Model\InlineResponse200Address + * @return \Swagger\Client\Model\GetExtendedClientAddress */ public function getAddress() { @@ -327,7 +327,7 @@ public function getAddress() /** * Sets address - * @param \Swagger\Client\Model\InlineResponse200Address $address + * @param \Swagger\Client\Model\GetExtendedClientAddress $address * @return $this */ public function setAddress($address) @@ -339,7 +339,7 @@ public function setAddress($address) /** * Gets plan - * @return \Swagger\Client\Model\InlineResponse200Plan[] + * @return \Swagger\Client\Model\GetAccountPlan[] */ public function getPlan() { @@ -348,7 +348,7 @@ public function getPlan() /** * Sets plan - * @param \Swagger\Client\Model\InlineResponse200Plan[] $plan Information about your plans and credits + * @param \Swagger\Client\Model\GetAccountPlan[] $plan Information about your plans and credits * @return $this */ public function setPlan($plan) @@ -360,7 +360,7 @@ public function setPlan($plan) /** * Gets relay - * @return \Swagger\Client\Model\InlineResponse200Relay + * @return \Swagger\Client\Model\GetAccountRelay */ public function getRelay() { @@ -369,7 +369,7 @@ public function getRelay() /** * Sets relay - * @param \Swagger\Client\Model\InlineResponse200Relay $relay + * @param \Swagger\Client\Model\GetAccountRelay $relay * @return $this */ public function setRelay($relay) @@ -380,22 +380,22 @@ public function setRelay($relay) } /** - * Gets marketing_automation - * @return \Swagger\Client\Model\InlineResponse200MarketingAutomation + * Gets marketingAutomation + * @return \Swagger\Client\Model\GetAccountMarketingAutomation */ public function getMarketingAutomation() { - return $this->container['marketing_automation']; + return $this->container['marketingAutomation']; } /** - * Sets marketing_automation - * @param \Swagger\Client\Model\InlineResponse200MarketingAutomation $marketing_automation + * Sets marketingAutomation + * @param \Swagger\Client\Model\GetAccountMarketingAutomation $marketingAutomation * @return $this */ - public function setMarketingAutomation($marketing_automation) + public function setMarketingAutomation($marketingAutomation) { - $this->container['marketing_automation'] = $marketing_automation; + $this->container['marketingAutomation'] = $marketingAutomation; return $this; } diff --git a/lib/Model/InlineResponse200MarketingAutomation.php b/lib/Model/GetAccountMarketingAutomation.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/InlineResponse200MarketingAutomation.php rename to lib/Model/GetAccountMarketingAutomation.php index 8fc1682d..e019e95a --- a/lib/Model/InlineResponse200MarketingAutomation.php +++ b/lib/Model/GetAccountMarketingAutomation.php @@ -1,6 +1,6 @@ 'string', - 'credits_type' => 'string', + 'creditsType' => 'string', 'credits' => 'int' ]; @@ -65,7 +65,7 @@ class GetPlan implements ArrayAccess */ protected static $swaggerFormats = [ 'type' => null, - 'credits_type' => null, + 'creditsType' => null, 'credits' => 'int32' ]; @@ -85,7 +85,7 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'type' => 'type', - 'credits_type' => 'creditsType', + 'creditsType' => 'creditsType', 'credits' => 'credits' ]; @@ -96,7 +96,7 @@ public static function swaggerFormats() */ protected static $setters = [ 'type' => 'setType', - 'credits_type' => 'setCreditsType', + 'creditsType' => 'setCreditsType', 'credits' => 'setCredits' ]; @@ -107,7 +107,7 @@ public static function swaggerFormats() */ protected static $getters = [ 'type' => 'getType', - 'credits_type' => 'getCreditsType', + 'creditsType' => 'getCreditsType', 'credits' => 'getCredits' ]; @@ -179,7 +179,7 @@ public function getCreditsTypeAllowableValues() public function __construct(array $data = null) { $this->container['type'] = isset($data['type']) ? $data['type'] : null; - $this->container['credits_type'] = isset($data['credits_type']) ? $data['credits_type'] : null; + $this->container['creditsType'] = isset($data['creditsType']) ? $data['creditsType'] : null; $this->container['credits'] = isset($data['credits']) ? $data['credits'] : null; } @@ -203,13 +203,13 @@ public function listInvalidProperties() ); } - if ($this->container['credits_type'] === null) { - $invalid_properties[] = "'credits_type' can't be null"; + if ($this->container['creditsType'] === null) { + $invalid_properties[] = "'creditsType' can't be null"; } $allowed_values = $this->getCreditsTypeAllowableValues(); - if (!in_array($this->container['credits_type'], $allowed_values)) { + if (!in_array($this->container['creditsType'], $allowed_values)) { $invalid_properties[] = sprintf( - "invalid value for 'credits_type', must be one of '%s'", + "invalid value for 'creditsType', must be one of '%s'", implode("', '", $allowed_values) ); } @@ -236,11 +236,11 @@ public function valid() if (!in_array($this->container['type'], $allowed_values)) { return false; } - if ($this->container['credits_type'] === null) { + if ($this->container['creditsType'] === null) { return false; } $allowed_values = $this->getCreditsTypeAllowableValues(); - if (!in_array($this->container['credits_type'], $allowed_values)) { + if (!in_array($this->container['creditsType'], $allowed_values)) { return false; } if ($this->container['credits'] === null) { @@ -281,31 +281,31 @@ public function setType($type) } /** - * Gets credits_type + * Gets creditsType * @return string */ public function getCreditsType() { - return $this->container['credits_type']; + return $this->container['creditsType']; } /** - * Sets credits_type - * @param string $credits_type This is the type of the credit, \"User Limit\" or \"Send Limit\" are two possible types of credit of a user. \"User Limit\" implies the total number of subscribers you can add to your account, and \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. + * Sets creditsType + * @param string $creditsType This is the type of the credit, \"User Limit\" or \"Send Limit\" are two possible types of credit of a user. \"User Limit\" implies the total number of subscribers you can add to your account, and \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. * @return $this */ - public function setCreditsType($credits_type) + public function setCreditsType($creditsType) { $allowed_values = $this->getCreditsTypeAllowableValues(); - if (!in_array($credits_type, $allowed_values)) { + if (!in_array($creditsType, $allowed_values)) { throw new \InvalidArgumentException( sprintf( - "Invalid value for 'credits_type', must be one of '%s'", + "Invalid value for 'creditsType', must be one of '%s'", implode("', '", $allowed_values) ) ); } - $this->container['credits_type'] = $credits_type; + $this->container['creditsType'] = $creditsType; return $this; } diff --git a/lib/Model/InlineResponse200Relay.php b/lib/Model/GetAccountRelay.php old mode 100755 new mode 100644 similarity index 94% rename from lib/Model/InlineResponse200Relay.php rename to lib/Model/GetAccountRelay.php index ad127369..1e7ae28f --- a/lib/Model/InlineResponse200Relay.php +++ b/lib/Model/GetAccountRelay.php @@ -1,6 +1,6 @@ 'bool', - 'data' => '\Swagger\Client\Model\InlineResponse200RelayData' + 'data' => '\Swagger\Client\Model\GetAccountRelayData' ]; /** @@ -196,7 +196,7 @@ public function setEnabled($enabled) /** * Gets data - * @return \Swagger\Client\Model\InlineResponse200RelayData + * @return \Swagger\Client\Model\GetAccountRelayData */ public function getData() { @@ -205,7 +205,7 @@ public function getData() /** * Sets data - * @param \Swagger\Client\Model\InlineResponse200RelayData $data + * @param \Swagger\Client\Model\GetAccountRelayData $data * @return $this */ public function setData($data) diff --git a/lib/Model/InlineResponse200RelayData.php b/lib/Model/GetAccountRelayData.php old mode 100755 new mode 100644 similarity index 88% rename from lib/Model/InlineResponse200RelayData.php rename to lib/Model/GetAccountRelayData.php index bb45e8c4..bd9e0101 --- a/lib/Model/InlineResponse200RelayData.php +++ b/lib/Model/GetAccountRelayData.php @@ -1,6 +1,6 @@ 'string', + 'userName' => 'string', 'relay' => 'string', 'port' => 'int' ]; @@ -65,7 +65,7 @@ class InlineResponse200RelayData implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'user_name' => 'email', + 'userName' => 'email', 'relay' => null, 'port' => null ]; @@ -85,7 +85,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'user_name' => 'userName', + 'userName' => 'userName', 'relay' => 'relay', 'port' => 'port' ]; @@ -96,7 +96,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'user_name' => 'setUserName', + 'userName' => 'setUserName', 'relay' => 'setRelay', 'port' => 'setPort' ]; @@ -107,7 +107,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'user_name' => 'getUserName', + 'userName' => 'getUserName', 'relay' => 'getRelay', 'port' => 'getPort' ]; @@ -143,7 +143,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['user_name'] = isset($data['user_name']) ? $data['user_name'] : null; + $this->container['userName'] = isset($data['userName']) ? $data['userName'] : null; $this->container['relay'] = isset($data['relay']) ? $data['relay'] : null; $this->container['port'] = isset($data['port']) ? $data['port'] : null; } @@ -157,8 +157,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['user_name'] === null) { - $invalid_properties[] = "'user_name' can't be null"; + if ($this->container['userName'] === null) { + $invalid_properties[] = "'userName' can't be null"; } if ($this->container['relay'] === null) { $invalid_properties[] = "'relay' can't be null"; @@ -178,7 +178,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['user_name'] === null) { + if ($this->container['userName'] === null) { return false; } if ($this->container['relay'] === null) { @@ -192,22 +192,22 @@ public function valid() /** - * Gets user_name + * Gets userName * @return string */ public function getUserName() { - return $this->container['user_name']; + return $this->container['userName']; } /** - * Sets user_name - * @param string $user_name Email to use as login on SMTP + * Sets userName + * @param string $userName Email to use as login on SMTP * @return $this */ - public function setUserName($user_name) + public function setUserName($userName) { - $this->container['user_name'] = $user_name; + $this->container['userName'] = $userName; return $this; } diff --git a/lib/Model/GetAggregatedReport.php b/lib/Model/GetAggregatedReport.php old mode 100755 new mode 100644 index 2b48ca64..d6115e4f --- a/lib/Model/GetAggregatedReport.php +++ b/lib/Model/GetAggregatedReport.php @@ -57,13 +57,13 @@ class GetAggregatedReport implements ArrayAccess 'range' => 'string', 'requests' => 'int', 'delivered' => 'int', - 'hard_bounces' => 'int', - 'soft_bounces' => 'int', + 'hardBounces' => 'int', + 'softBounces' => 'int', 'clicks' => 'int', - 'unique_clicks' => 'int', + 'uniqueClicks' => 'int', 'opens' => 'int', - 'unique_opens' => 'int', - 'spam_reports' => 'int', + 'uniqueOpens' => 'int', + 'spamReports' => 'int', 'blocked' => 'int', 'invalid' => 'int' ]; @@ -76,13 +76,13 @@ class GetAggregatedReport implements ArrayAccess 'range' => null, 'requests' => 'int32', 'delivered' => 'int32', - 'hard_bounces' => 'int32', - 'soft_bounces' => 'int32', + 'hardBounces' => 'int32', + 'softBounces' => 'int32', 'clicks' => 'int32', - 'unique_clicks' => 'int32', + 'uniqueClicks' => 'int32', 'opens' => 'int32', - 'unique_opens' => 'int32', - 'spam_reports' => 'int32', + 'uniqueOpens' => 'int32', + 'spamReports' => 'int32', 'blocked' => 'int32', 'invalid' => 'int32' ]; @@ -105,13 +105,13 @@ public static function swaggerFormats() 'range' => 'range', 'requests' => 'requests', 'delivered' => 'delivered', - 'hard_bounces' => 'hardBounces', - 'soft_bounces' => 'softBounces', + 'hardBounces' => 'hardBounces', + 'softBounces' => 'softBounces', 'clicks' => 'clicks', - 'unique_clicks' => 'uniqueClicks', + 'uniqueClicks' => 'uniqueClicks', 'opens' => 'opens', - 'unique_opens' => 'uniqueOpens', - 'spam_reports' => 'spamReports', + 'uniqueOpens' => 'uniqueOpens', + 'spamReports' => 'spamReports', 'blocked' => 'blocked', 'invalid' => 'invalid' ]; @@ -125,13 +125,13 @@ public static function swaggerFormats() 'range' => 'setRange', 'requests' => 'setRequests', 'delivered' => 'setDelivered', - 'hard_bounces' => 'setHardBounces', - 'soft_bounces' => 'setSoftBounces', + 'hardBounces' => 'setHardBounces', + 'softBounces' => 'setSoftBounces', 'clicks' => 'setClicks', - 'unique_clicks' => 'setUniqueClicks', + 'uniqueClicks' => 'setUniqueClicks', 'opens' => 'setOpens', - 'unique_opens' => 'setUniqueOpens', - 'spam_reports' => 'setSpamReports', + 'uniqueOpens' => 'setUniqueOpens', + 'spamReports' => 'setSpamReports', 'blocked' => 'setBlocked', 'invalid' => 'setInvalid' ]; @@ -145,13 +145,13 @@ public static function swaggerFormats() 'range' => 'getRange', 'requests' => 'getRequests', 'delivered' => 'getDelivered', - 'hard_bounces' => 'getHardBounces', - 'soft_bounces' => 'getSoftBounces', + 'hardBounces' => 'getHardBounces', + 'softBounces' => 'getSoftBounces', 'clicks' => 'getClicks', - 'unique_clicks' => 'getUniqueClicks', + 'uniqueClicks' => 'getUniqueClicks', 'opens' => 'getOpens', - 'unique_opens' => 'getUniqueOpens', - 'spam_reports' => 'getSpamReports', + 'uniqueOpens' => 'getUniqueOpens', + 'spamReports' => 'getSpamReports', 'blocked' => 'getBlocked', 'invalid' => 'getInvalid' ]; @@ -190,13 +190,13 @@ public function __construct(array $data = null) $this->container['range'] = isset($data['range']) ? $data['range'] : null; $this->container['requests'] = isset($data['requests']) ? $data['requests'] : null; $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; + $this->container['hardBounces'] = isset($data['hardBounces']) ? $data['hardBounces'] : null; + $this->container['softBounces'] = isset($data['softBounces']) ? $data['softBounces'] : null; $this->container['clicks'] = isset($data['clicks']) ? $data['clicks'] : null; - $this->container['unique_clicks'] = isset($data['unique_clicks']) ? $data['unique_clicks'] : null; + $this->container['uniqueClicks'] = isset($data['uniqueClicks']) ? $data['uniqueClicks'] : null; $this->container['opens'] = isset($data['opens']) ? $data['opens'] : null; - $this->container['unique_opens'] = isset($data['unique_opens']) ? $data['unique_opens'] : null; - $this->container['spam_reports'] = isset($data['spam_reports']) ? $data['spam_reports'] : null; + $this->container['uniqueOpens'] = isset($data['uniqueOpens']) ? $data['uniqueOpens'] : null; + $this->container['spamReports'] = isset($data['spamReports']) ? $data['spamReports'] : null; $this->container['blocked'] = isset($data['blocked']) ? $data['blocked'] : null; $this->container['invalid'] = isset($data['invalid']) ? $data['invalid'] : null; } @@ -219,26 +219,26 @@ public function listInvalidProperties() if ($this->container['delivered'] === null) { $invalid_properties[] = "'delivered' can't be null"; } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; + if ($this->container['hardBounces'] === null) { + $invalid_properties[] = "'hardBounces' can't be null"; } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; + if ($this->container['softBounces'] === null) { + $invalid_properties[] = "'softBounces' can't be null"; } if ($this->container['clicks'] === null) { $invalid_properties[] = "'clicks' can't be null"; } - if ($this->container['unique_clicks'] === null) { - $invalid_properties[] = "'unique_clicks' can't be null"; + if ($this->container['uniqueClicks'] === null) { + $invalid_properties[] = "'uniqueClicks' can't be null"; } if ($this->container['opens'] === null) { $invalid_properties[] = "'opens' can't be null"; } - if ($this->container['unique_opens'] === null) { - $invalid_properties[] = "'unique_opens' can't be null"; + if ($this->container['uniqueOpens'] === null) { + $invalid_properties[] = "'uniqueOpens' can't be null"; } - if ($this->container['spam_reports'] === null) { - $invalid_properties[] = "'spam_reports' can't be null"; + if ($this->container['spamReports'] === null) { + $invalid_properties[] = "'spamReports' can't be null"; } if ($this->container['blocked'] === null) { $invalid_properties[] = "'blocked' can't be null"; @@ -267,25 +267,25 @@ public function valid() if ($this->container['delivered'] === null) { return false; } - if ($this->container['hard_bounces'] === null) { + if ($this->container['hardBounces'] === null) { return false; } - if ($this->container['soft_bounces'] === null) { + if ($this->container['softBounces'] === null) { return false; } if ($this->container['clicks'] === null) { return false; } - if ($this->container['unique_clicks'] === null) { + if ($this->container['uniqueClicks'] === null) { return false; } if ($this->container['opens'] === null) { return false; } - if ($this->container['unique_opens'] === null) { + if ($this->container['uniqueOpens'] === null) { return false; } - if ($this->container['spam_reports'] === null) { + if ($this->container['spamReports'] === null) { return false; } if ($this->container['blocked'] === null) { @@ -362,43 +362,43 @@ public function setDelivered($delivered) } /** - * Gets hard_bounces + * Gets hardBounces * @return int */ public function getHardBounces() { - return $this->container['hard_bounces']; + return $this->container['hardBounces']; } /** - * Sets hard_bounces - * @param int $hard_bounces Number of hardbounces for the timeframe + * Sets hardBounces + * @param int $hardBounces Number of hardbounces for the timeframe * @return $this */ - public function setHardBounces($hard_bounces) + public function setHardBounces($hardBounces) { - $this->container['hard_bounces'] = $hard_bounces; + $this->container['hardBounces'] = $hardBounces; return $this; } /** - * Gets soft_bounces + * Gets softBounces * @return int */ public function getSoftBounces() { - return $this->container['soft_bounces']; + return $this->container['softBounces']; } /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounces for the timeframe + * Sets softBounces + * @param int $softBounces Number of softbounces for the timeframe * @return $this */ - public function setSoftBounces($soft_bounces) + public function setSoftBounces($softBounces) { - $this->container['soft_bounces'] = $soft_bounces; + $this->container['softBounces'] = $softBounces; return $this; } @@ -425,22 +425,22 @@ public function setClicks($clicks) } /** - * Gets unique_clicks + * Gets uniqueClicks * @return int */ public function getUniqueClicks() { - return $this->container['unique_clicks']; + return $this->container['uniqueClicks']; } /** - * Sets unique_clicks - * @param int $unique_clicks Number of unique clicks for the timeframe + * Sets uniqueClicks + * @param int $uniqueClicks Number of unique clicks for the timeframe * @return $this */ - public function setUniqueClicks($unique_clicks) + public function setUniqueClicks($uniqueClicks) { - $this->container['unique_clicks'] = $unique_clicks; + $this->container['uniqueClicks'] = $uniqueClicks; return $this; } @@ -467,43 +467,43 @@ public function setOpens($opens) } /** - * Gets unique_opens + * Gets uniqueOpens * @return int */ public function getUniqueOpens() { - return $this->container['unique_opens']; + return $this->container['uniqueOpens']; } /** - * Sets unique_opens - * @param int $unique_opens Number of unique openings for the timeframe + * Sets uniqueOpens + * @param int $uniqueOpens Number of unique openings for the timeframe * @return $this */ - public function setUniqueOpens($unique_opens) + public function setUniqueOpens($uniqueOpens) { - $this->container['unique_opens'] = $unique_opens; + $this->container['uniqueOpens'] = $uniqueOpens; return $this; } /** - * Gets spam_reports + * Gets spamReports * @return int */ public function getSpamReports() { - return $this->container['spam_reports']; + return $this->container['spamReports']; } /** - * Sets spam_reports - * @param int $spam_reports Number of complaint (spam report) for the timeframe + * Sets spamReports + * @param int $spamReports Number of complaint (spam report) for the timeframe * @return $this */ - public function setSpamReports($spam_reports) + public function setSpamReports($spamReports) { - $this->container['spam_reports'] = $spam_reports; + $this->container['spamReports'] = $spamReports; return $this; } diff --git a/lib/Model/GetAttributes.php b/lib/Model/GetAttributes.php old mode 100755 new mode 100644 index a24fd40e..d7465fb8 --- a/lib/Model/GetAttributes.php +++ b/lib/Model/GetAttributes.php @@ -54,7 +54,7 @@ class GetAttributes implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'attributes' => '\Swagger\Client\Model\InlineResponse20016Attributes[]' + 'attributes' => '\Swagger\Client\Model\GetAttributesAttributes[]' ]; /** @@ -168,7 +168,7 @@ public function valid() /** * Gets attributes - * @return \Swagger\Client\Model\InlineResponse20016Attributes[] + * @return \Swagger\Client\Model\GetAttributesAttributes[] */ public function getAttributes() { @@ -177,7 +177,7 @@ public function getAttributes() /** * Sets attributes - * @param \Swagger\Client\Model\InlineResponse20016Attributes[] $attributes Listing of available contact attributes in your account + * @param \Swagger\Client\Model\GetAttributesAttributes[] $attributes Listing of available contact attributes in your account * @return $this */ public function setAttributes($attributes) diff --git a/lib/Model/InlineResponse20016Attributes.php b/lib/Model/GetAttributesAttributes.php old mode 100755 new mode 100644 similarity index 90% rename from lib/Model/InlineResponse20016Attributes.php rename to lib/Model/GetAttributesAttributes.php index fdd74296..db97699e --- a/lib/Model/InlineResponse20016Attributes.php +++ b/lib/Model/GetAttributesAttributes.php @@ -1,6 +1,6 @@ 'string', 'category' => 'string', 'type' => 'string', - 'enumeration' => '\Swagger\Client\Model\InlineResponse20016Enumeration[]', - 'calculated_value' => 'string' + 'enumeration' => '\Swagger\Client\Model\GetAttributesEnumeration[]', + 'calculatedValue' => 'string' ]; /** @@ -72,7 +72,7 @@ class InlineResponse20016Attributes implements ArrayAccess 'category' => null, 'type' => null, 'enumeration' => null, - 'calculated_value' => null + 'calculatedValue' => null ]; public static function swaggerTypes() @@ -95,7 +95,7 @@ public static function swaggerFormats() 'category' => 'category', 'type' => 'type', 'enumeration' => 'enumeration', - 'calculated_value' => 'calculatedValue' + 'calculatedValue' => 'calculatedValue' ]; @@ -109,7 +109,7 @@ public static function swaggerFormats() 'category' => 'setCategory', 'type' => 'setType', 'enumeration' => 'setEnumeration', - 'calculated_value' => 'setCalculatedValue' + 'calculatedValue' => 'setCalculatedValue' ]; @@ -123,7 +123,7 @@ public static function swaggerFormats() 'category' => 'getCategory', 'type' => 'getType', 'enumeration' => 'getEnumeration', - 'calculated_value' => 'getCalculatedValue' + 'calculatedValue' => 'getCalculatedValue' ]; public static function attributeMap() @@ -200,7 +200,7 @@ public function __construct(array $data = null) $this->container['category'] = isset($data['category']) ? $data['category'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['enumeration'] = isset($data['enumeration']) ? $data['enumeration'] : null; - $this->container['calculated_value'] = isset($data['calculated_value']) ? $data['calculated_value'] : null; + $this->container['calculatedValue'] = isset($data['calculatedValue']) ? $data['calculatedValue'] : null; } /** @@ -374,7 +374,7 @@ public function setType($type) /** * Gets enumeration - * @return \Swagger\Client\Model\InlineResponse20016Enumeration[] + * @return \Swagger\Client\Model\GetAttributesEnumeration[] */ public function getEnumeration() { @@ -383,7 +383,7 @@ public function getEnumeration() /** * Sets enumeration - * @param \Swagger\Client\Model\InlineResponse20016Enumeration[] $enumeration Parameter only available for \"category\" type attributes. + * @param \Swagger\Client\Model\GetAttributesEnumeration[] $enumeration Parameter only available for \"category\" type attributes. * @return $this */ public function setEnumeration($enumeration) @@ -394,22 +394,22 @@ public function setEnumeration($enumeration) } /** - * Gets calculated_value + * Gets calculatedValue * @return string */ public function getCalculatedValue() { - return $this->container['calculated_value']; + return $this->container['calculatedValue']; } /** - * Sets calculated_value - * @param string $calculated_value Calculated value formula + * Sets calculatedValue + * @param string $calculatedValue Calculated value formula * @return $this */ - public function setCalculatedValue($calculated_value) + public function setCalculatedValue($calculatedValue) { - $this->container['calculated_value'] = $calculated_value; + $this->container['calculatedValue'] = $calculatedValue; return $this; } diff --git a/lib/Model/InlineResponse20016Enumeration.php b/lib/Model/GetAttributesEnumeration.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/InlineResponse20016Enumeration.php rename to lib/Model/GetAttributesEnumeration.php index 6b75339e..150c81d9 --- a/lib/Model/InlineResponse20016Enumeration.php +++ b/lib/Model/GetAttributesEnumeration.php @@ -1,6 +1,6 @@ 'string', 'type' => 'string', 'status' => 'string', - 'scheduled_at' => 'string' + 'scheduledAt' => 'string' ]; /** @@ -72,7 +72,7 @@ class GetCampaignOverview implements ArrayAccess 'subject' => null, 'type' => null, 'status' => null, - 'scheduled_at' => null + 'scheduledAt' => null ]; public static function swaggerTypes() @@ -95,7 +95,7 @@ public static function swaggerFormats() 'subject' => 'subject', 'type' => 'type', 'status' => 'status', - 'scheduled_at' => 'scheduledAt' + 'scheduledAt' => 'scheduledAt' ]; @@ -109,7 +109,7 @@ public static function swaggerFormats() 'subject' => 'setSubject', 'type' => 'setType', 'status' => 'setStatus', - 'scheduled_at' => 'setScheduledAt' + 'scheduledAt' => 'setScheduledAt' ]; @@ -123,7 +123,7 @@ public static function swaggerFormats() 'subject' => 'getSubject', 'type' => 'getType', 'status' => 'getStatus', - 'scheduled_at' => 'getScheduledAt' + 'scheduledAt' => 'getScheduledAt' ]; public static function attributeMap() @@ -198,7 +198,7 @@ public function __construct(array $data = null) $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; } /** @@ -241,11 +241,11 @@ public function listInvalidProperties() ); } - if ($this->container['scheduled_at'] === null) { - $invalid_properties[] = "'scheduled_at' can't be null"; + if ($this->container['scheduledAt'] === null) { + $invalid_properties[] = "'scheduledAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -283,10 +283,10 @@ public function valid() if (!in_array($this->container['status'], $allowed_values)) { return false; } - if ($this->container['scheduled_at'] === null) { + if ($this->container['scheduledAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } return true; @@ -417,27 +417,27 @@ public function setStatus($status) } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Date on which campaign is scheduled + * Sets scheduledAt + * @param string $scheduledAt Date on which campaign is scheduled * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling GetCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } diff --git a/lib/Model/GetCampaignRecipients.php b/lib/Model/GetCampaignRecipients.php old mode 100755 new mode 100644 index fbbe1417..4498a6c2 --- a/lib/Model/GetCampaignRecipients.php +++ b/lib/Model/GetCampaignRecipients.php @@ -54,8 +54,8 @@ class GetCampaignRecipients implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'lists' => '\Swagger\Client\Model\InlineResponse2008RecipientsLists[]', - 'exclusion_lists' => '\Swagger\Client\Model\InlineResponse2008RecipientsExclusionLists[]' + 'lists' => '\Swagger\Client\Model\GetCampaignRecipientsLists[]', + 'exclusionLists' => '\Swagger\Client\Model\GetCampaignRecipientsExclusionLists[]' ]; /** @@ -64,7 +64,7 @@ class GetCampaignRecipients implements ArrayAccess */ protected static $swaggerFormats = [ 'lists' => null, - 'exclusion_lists' => null + 'exclusionLists' => null ]; public static function swaggerTypes() @@ -83,7 +83,7 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'lists' => 'lists', - 'exclusion_lists' => 'exclusionLists' + 'exclusionLists' => 'exclusionLists' ]; @@ -93,7 +93,7 @@ public static function swaggerFormats() */ protected static $setters = [ 'lists' => 'setLists', - 'exclusion_lists' => 'setExclusionLists' + 'exclusionLists' => 'setExclusionLists' ]; @@ -103,7 +103,7 @@ public static function swaggerFormats() */ protected static $getters = [ 'lists' => 'getLists', - 'exclusion_lists' => 'getExclusionLists' + 'exclusionLists' => 'getExclusionLists' ]; public static function attributeMap() @@ -138,7 +138,7 @@ public static function getters() public function __construct(array $data = null) { $this->container['lists'] = isset($data['lists']) ? $data['lists'] : null; - $this->container['exclusion_lists'] = isset($data['exclusion_lists']) ? $data['exclusion_lists'] : null; + $this->container['exclusionLists'] = isset($data['exclusionLists']) ? $data['exclusionLists'] : null; } /** @@ -153,8 +153,8 @@ public function listInvalidProperties() if ($this->container['lists'] === null) { $invalid_properties[] = "'lists' can't be null"; } - if ($this->container['exclusion_lists'] === null) { - $invalid_properties[] = "'exclusion_lists' can't be null"; + if ($this->container['exclusionLists'] === null) { + $invalid_properties[] = "'exclusionLists' can't be null"; } return $invalid_properties; } @@ -171,7 +171,7 @@ public function valid() if ($this->container['lists'] === null) { return false; } - if ($this->container['exclusion_lists'] === null) { + if ($this->container['exclusionLists'] === null) { return false; } return true; @@ -180,7 +180,7 @@ public function valid() /** * Gets lists - * @return \Swagger\Client\Model\InlineResponse2008RecipientsLists[] + * @return \Swagger\Client\Model\GetCampaignRecipientsLists[] */ public function getLists() { @@ -189,7 +189,7 @@ public function getLists() /** * Sets lists - * @param \Swagger\Client\Model\InlineResponse2008RecipientsLists[] $lists Lists included in the campaign + * @param \Swagger\Client\Model\GetCampaignRecipientsLists[] $lists Lists included in the campaign * @return $this */ public function setLists($lists) @@ -200,22 +200,22 @@ public function setLists($lists) } /** - * Gets exclusion_lists - * @return \Swagger\Client\Model\InlineResponse2008RecipientsExclusionLists[] + * Gets exclusionLists + * @return \Swagger\Client\Model\GetCampaignRecipientsExclusionLists[] */ public function getExclusionLists() { - return $this->container['exclusion_lists']; + return $this->container['exclusionLists']; } /** - * Sets exclusion_lists - * @param \Swagger\Client\Model\InlineResponse2008RecipientsExclusionLists[] $exclusion_lists Lists excluded of the campaign + * Sets exclusionLists + * @param \Swagger\Client\Model\GetCampaignRecipientsExclusionLists[] $exclusionLists Lists excluded of the campaign * @return $this */ - public function setExclusionLists($exclusion_lists) + public function setExclusionLists($exclusionLists) { - $this->container['exclusion_lists'] = $exclusion_lists; + $this->container['exclusionLists'] = $exclusionLists; return $this; } diff --git a/lib/Model/InlineResponse2008RecipientsExclusionLists.php b/lib/Model/GetCampaignRecipientsExclusionLists.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/InlineResponse2008RecipientsExclusionLists.php rename to lib/Model/GetCampaignRecipientsExclusionLists.php index f7b4a8cf..9d7a6a28 --- a/lib/Model/InlineResponse2008RecipientsExclusionLists.php +++ b/lib/Model/GetCampaignRecipientsExclusionLists.php @@ -1,6 +1,6 @@ 'int', - 'unique_clicks' => 'int', + 'listId' => 'int', + 'uniqueClicks' => 'int', 'clickers' => 'int', 'complaints' => 'int', 'delivered' => 'int', 'sent' => 'int', - 'soft_bounces' => 'int', - 'hard_bounces' => 'int', - 'unique_views' => 'int', + 'softBounces' => 'int', + 'hardBounces' => 'int', + 'uniqueViews' => 'int', 'unsubscriptions' => 'int', 'viewed' => 'int', 'deferred' => 'int' @@ -73,15 +73,15 @@ class GetCampaignStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'list_id' => 'int32', - 'unique_clicks' => 'int32', + 'listId' => 'int32', + 'uniqueClicks' => 'int32', 'clickers' => 'int32', 'complaints' => 'int32', 'delivered' => 'int32', 'sent' => 'int32', - 'soft_bounces' => 'int32', - 'hard_bounces' => 'int32', - 'unique_views' => 'int32', + 'softBounces' => 'int32', + 'hardBounces' => 'int32', + 'uniqueViews' => 'int32', 'unsubscriptions' => 'int32', 'viewed' => 'int32', 'deferred' => 'int32' @@ -102,15 +102,15 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'list_id' => 'listId', - 'unique_clicks' => 'uniqueClicks', + 'listId' => 'listId', + 'uniqueClicks' => 'uniqueClicks', 'clickers' => 'clickers', 'complaints' => 'complaints', 'delivered' => 'delivered', 'sent' => 'sent', - 'soft_bounces' => 'softBounces', - 'hard_bounces' => 'hardBounces', - 'unique_views' => 'uniqueViews', + 'softBounces' => 'softBounces', + 'hardBounces' => 'hardBounces', + 'uniqueViews' => 'uniqueViews', 'unsubscriptions' => 'unsubscriptions', 'viewed' => 'viewed', 'deferred' => 'deferred' @@ -122,15 +122,15 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'list_id' => 'setListId', - 'unique_clicks' => 'setUniqueClicks', + 'listId' => 'setListId', + 'uniqueClicks' => 'setUniqueClicks', 'clickers' => 'setClickers', 'complaints' => 'setComplaints', 'delivered' => 'setDelivered', 'sent' => 'setSent', - 'soft_bounces' => 'setSoftBounces', - 'hard_bounces' => 'setHardBounces', - 'unique_views' => 'setUniqueViews', + 'softBounces' => 'setSoftBounces', + 'hardBounces' => 'setHardBounces', + 'uniqueViews' => 'setUniqueViews', 'unsubscriptions' => 'setUnsubscriptions', 'viewed' => 'setViewed', 'deferred' => 'setDeferred' @@ -142,15 +142,15 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'list_id' => 'getListId', - 'unique_clicks' => 'getUniqueClicks', + 'listId' => 'getListId', + 'uniqueClicks' => 'getUniqueClicks', 'clickers' => 'getClickers', 'complaints' => 'getComplaints', 'delivered' => 'getDelivered', 'sent' => 'getSent', - 'soft_bounces' => 'getSoftBounces', - 'hard_bounces' => 'getHardBounces', - 'unique_views' => 'getUniqueViews', + 'softBounces' => 'getSoftBounces', + 'hardBounces' => 'getHardBounces', + 'uniqueViews' => 'getUniqueViews', 'unsubscriptions' => 'getUnsubscriptions', 'viewed' => 'getViewed', 'deferred' => 'getDeferred' @@ -187,15 +187,15 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['list_id'] = isset($data['list_id']) ? $data['list_id'] : null; - $this->container['unique_clicks'] = isset($data['unique_clicks']) ? $data['unique_clicks'] : null; + $this->container['listId'] = isset($data['listId']) ? $data['listId'] : null; + $this->container['uniqueClicks'] = isset($data['uniqueClicks']) ? $data['uniqueClicks'] : null; $this->container['clickers'] = isset($data['clickers']) ? $data['clickers'] : null; $this->container['complaints'] = isset($data['complaints']) ? $data['complaints'] : null; $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; $this->container['sent'] = isset($data['sent']) ? $data['sent'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['unique_views'] = isset($data['unique_views']) ? $data['unique_views'] : null; + $this->container['softBounces'] = isset($data['softBounces']) ? $data['softBounces'] : null; + $this->container['hardBounces'] = isset($data['hardBounces']) ? $data['hardBounces'] : null; + $this->container['uniqueViews'] = isset($data['uniqueViews']) ? $data['uniqueViews'] : null; $this->container['unsubscriptions'] = isset($data['unsubscriptions']) ? $data['unsubscriptions'] : null; $this->container['viewed'] = isset($data['viewed']) ? $data['viewed'] : null; $this->container['deferred'] = isset($data['deferred']) ? $data['deferred'] : null; @@ -210,11 +210,11 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['list_id'] === null) { - $invalid_properties[] = "'list_id' can't be null"; + if ($this->container['listId'] === null) { + $invalid_properties[] = "'listId' can't be null"; } - if ($this->container['unique_clicks'] === null) { - $invalid_properties[] = "'unique_clicks' can't be null"; + if ($this->container['uniqueClicks'] === null) { + $invalid_properties[] = "'uniqueClicks' can't be null"; } if ($this->container['clickers'] === null) { $invalid_properties[] = "'clickers' can't be null"; @@ -228,14 +228,14 @@ public function listInvalidProperties() if ($this->container['sent'] === null) { $invalid_properties[] = "'sent' can't be null"; } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; + if ($this->container['softBounces'] === null) { + $invalid_properties[] = "'softBounces' can't be null"; } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; + if ($this->container['hardBounces'] === null) { + $invalid_properties[] = "'hardBounces' can't be null"; } - if ($this->container['unique_views'] === null) { - $invalid_properties[] = "'unique_views' can't be null"; + if ($this->container['uniqueViews'] === null) { + $invalid_properties[] = "'uniqueViews' can't be null"; } if ($this->container['unsubscriptions'] === null) { $invalid_properties[] = "'unsubscriptions' can't be null"; @@ -258,10 +258,10 @@ public function listInvalidProperties() public function valid() { - if ($this->container['list_id'] === null) { + if ($this->container['listId'] === null) { return false; } - if ($this->container['unique_clicks'] === null) { + if ($this->container['uniqueClicks'] === null) { return false; } if ($this->container['clickers'] === null) { @@ -276,13 +276,13 @@ public function valid() if ($this->container['sent'] === null) { return false; } - if ($this->container['soft_bounces'] === null) { + if ($this->container['softBounces'] === null) { return false; } - if ($this->container['hard_bounces'] === null) { + if ($this->container['hardBounces'] === null) { return false; } - if ($this->container['unique_views'] === null) { + if ($this->container['uniqueViews'] === null) { return false; } if ($this->container['unsubscriptions'] === null) { @@ -299,43 +299,43 @@ public function valid() /** - * Gets list_id + * Gets listId * @return int */ public function getListId() { - return $this->container['list_id']; + return $this->container['listId']; } /** - * Sets list_id - * @param int $list_id List Id of email campaign (only in case of get email campaign(s)) + * Sets listId + * @param int $listId List Id of email campaign (only in case of get email campaign(s)) * @return $this */ - public function setListId($list_id) + public function setListId($listId) { - $this->container['list_id'] = $list_id; + $this->container['listId'] = $listId; return $this; } /** - * Gets unique_clicks + * Gets uniqueClicks * @return int */ public function getUniqueClicks() { - return $this->container['unique_clicks']; + return $this->container['uniqueClicks']; } /** - * Sets unique_clicks - * @param int $unique_clicks Number of unique clicks for the campaign + * Sets uniqueClicks + * @param int $uniqueClicks Number of unique clicks for the campaign * @return $this */ - public function setUniqueClicks($unique_clicks) + public function setUniqueClicks($uniqueClicks) { - $this->container['unique_clicks'] = $unique_clicks; + $this->container['uniqueClicks'] = $uniqueClicks; return $this; } @@ -425,64 +425,64 @@ public function setSent($sent) } /** - * Gets soft_bounces + * Gets softBounces * @return int */ public function getSoftBounces() { - return $this->container['soft_bounces']; + return $this->container['softBounces']; } /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounce for the campaign + * Sets softBounces + * @param int $softBounces Number of softbounce for the campaign * @return $this */ - public function setSoftBounces($soft_bounces) + public function setSoftBounces($softBounces) { - $this->container['soft_bounces'] = $soft_bounces; + $this->container['softBounces'] = $softBounces; return $this; } /** - * Gets hard_bounces + * Gets hardBounces * @return int */ public function getHardBounces() { - return $this->container['hard_bounces']; + return $this->container['hardBounces']; } /** - * Sets hard_bounces - * @param int $hard_bounces Number of harbounce for the campaign + * Sets hardBounces + * @param int $hardBounces Number of harbounce for the campaign * @return $this */ - public function setHardBounces($hard_bounces) + public function setHardBounces($hardBounces) { - $this->container['hard_bounces'] = $hard_bounces; + $this->container['hardBounces'] = $hardBounces; return $this; } /** - * Gets unique_views + * Gets uniqueViews * @return int */ public function getUniqueViews() { - return $this->container['unique_views']; + return $this->container['uniqueViews']; } /** - * Sets unique_views - * @param int $unique_views Number of unique openings for the campaign + * Sets uniqueViews + * @param int $uniqueViews Number of unique openings for the campaign * @return $this */ - public function setUniqueViews($unique_views) + public function setUniqueViews($uniqueViews) { - $this->container['unique_views'] = $unique_views; + $this->container['uniqueViews'] = $uniqueViews; return $this; } diff --git a/lib/Model/GetChildInfo.php b/lib/Model/GetChildInfo.php old mode 100755 new mode 100644 index b1e25d60..8a1ef8c7 --- a/lib/Model/GetChildInfo.php +++ b/lib/Model/GetChildInfo.php @@ -55,14 +55,14 @@ class GetChildInfo implements ArrayAccess */ protected static $swaggerTypes = [ 'email' => 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', - 'credits' => '\Swagger\Client\Model\InlineResponse2001Credits', - 'statistics' => '\Swagger\Client\Model\InlineResponse2001Statistics', + 'firstName' => 'string', + 'lastName' => 'string', + 'companyName' => 'string', + 'credits' => '\Swagger\Client\Model\GetChildInfoCredits', + 'statistics' => '\Swagger\Client\Model\GetChildInfoStatistics', 'password' => 'string', - 'ips' => '\Swagger\Client\Model\InlineResponse2001Ips[]', - 'api_keys' => '\Swagger\Client\Model\InlineResponse2001ApiKeys[]' + 'ips' => '\Swagger\Client\Model\GetChildInfoIps[]', + 'apiKeys' => '\Swagger\Client\Model\GetChildInfoApiKeys[]' ]; /** @@ -71,14 +71,14 @@ class GetChildInfo implements ArrayAccess */ protected static $swaggerFormats = [ 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, + 'firstName' => null, + 'lastName' => null, + 'companyName' => null, 'credits' => null, 'statistics' => null, 'password' => 'password', 'ips' => null, - 'api_keys' => null + 'apiKeys' => null ]; public static function swaggerTypes() @@ -97,14 +97,14 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', + 'firstName' => 'firstName', + 'lastName' => 'lastName', + 'companyName' => 'companyName', 'credits' => 'credits', 'statistics' => 'statistics', 'password' => 'password', 'ips' => 'ips', - 'api_keys' => 'apiKeys' + 'apiKeys' => 'apiKeys' ]; @@ -114,14 +114,14 @@ public static function swaggerFormats() */ protected static $setters = [ 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', + 'firstName' => 'setFirstName', + 'lastName' => 'setLastName', + 'companyName' => 'setCompanyName', 'credits' => 'setCredits', 'statistics' => 'setStatistics', 'password' => 'setPassword', 'ips' => 'setIps', - 'api_keys' => 'setApiKeys' + 'apiKeys' => 'setApiKeys' ]; @@ -131,14 +131,14 @@ public static function swaggerFormats() */ protected static $getters = [ 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', + 'firstName' => 'getFirstName', + 'lastName' => 'getLastName', + 'companyName' => 'getCompanyName', 'credits' => 'getCredits', 'statistics' => 'getStatistics', 'password' => 'getPassword', 'ips' => 'getIps', - 'api_keys' => 'getApiKeys' + 'apiKeys' => 'getApiKeys' ]; public static function attributeMap() @@ -173,14 +173,14 @@ public static function getters() public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; + $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null; + $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null; + $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; $this->container['credits'] = isset($data['credits']) ? $data['credits'] : null; $this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null; $this->container['password'] = isset($data['password']) ? $data['password'] : null; $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; - $this->container['api_keys'] = isset($data['api_keys']) ? $data['api_keys'] : null; + $this->container['apiKeys'] = isset($data['apiKeys']) ? $data['apiKeys'] : null; } /** @@ -195,14 +195,14 @@ public function listInvalidProperties() if ($this->container['email'] === null) { $invalid_properties[] = "'email' can't be null"; } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; + if ($this->container['firstName'] === null) { + $invalid_properties[] = "'firstName' can't be null"; } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; + if ($this->container['lastName'] === null) { + $invalid_properties[] = "'lastName' can't be null"; } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; + if ($this->container['companyName'] === null) { + $invalid_properties[] = "'companyName' can't be null"; } if ($this->container['password'] === null) { $invalid_properties[] = "'password' can't be null"; @@ -222,13 +222,13 @@ public function valid() if ($this->container['email'] === null) { return false; } - if ($this->container['first_name'] === null) { + if ($this->container['firstName'] === null) { return false; } - if ($this->container['last_name'] === null) { + if ($this->container['lastName'] === null) { return false; } - if ($this->container['company_name'] === null) { + if ($this->container['companyName'] === null) { return false; } if ($this->container['password'] === null) { @@ -260,71 +260,71 @@ public function setEmail($email) } /** - * Gets first_name + * Gets firstName * @return string */ public function getFirstName() { - return $this->container['first_name']; + return $this->container['firstName']; } /** - * Sets first_name - * @param string $first_name First Name + * Sets firstName + * @param string $firstName First Name * @return $this */ - public function setFirstName($first_name) + public function setFirstName($firstName) { - $this->container['first_name'] = $first_name; + $this->container['firstName'] = $firstName; return $this; } /** - * Gets last_name + * Gets lastName * @return string */ public function getLastName() { - return $this->container['last_name']; + return $this->container['lastName']; } /** - * Sets last_name - * @param string $last_name Last Name + * Sets lastName + * @param string $lastName Last Name * @return $this */ - public function setLastName($last_name) + public function setLastName($lastName) { - $this->container['last_name'] = $last_name; + $this->container['lastName'] = $lastName; return $this; } /** - * Gets company_name + * Gets companyName * @return string */ public function getCompanyName() { - return $this->container['company_name']; + return $this->container['companyName']; } /** - * Sets company_name - * @param string $company_name Name of the company + * Sets companyName + * @param string $companyName Name of the company * @return $this */ - public function setCompanyName($company_name) + public function setCompanyName($companyName) { - $this->container['company_name'] = $company_name; + $this->container['companyName'] = $companyName; return $this; } /** * Gets credits - * @return \Swagger\Client\Model\InlineResponse2001Credits + * @return \Swagger\Client\Model\GetChildInfoCredits */ public function getCredits() { @@ -333,7 +333,7 @@ public function getCredits() /** * Sets credits - * @param \Swagger\Client\Model\InlineResponse2001Credits $credits + * @param \Swagger\Client\Model\GetChildInfoCredits $credits * @return $this */ public function setCredits($credits) @@ -345,7 +345,7 @@ public function setCredits($credits) /** * Gets statistics - * @return \Swagger\Client\Model\InlineResponse2001Statistics + * @return \Swagger\Client\Model\GetChildInfoStatistics */ public function getStatistics() { @@ -354,7 +354,7 @@ public function getStatistics() /** * Sets statistics - * @param \Swagger\Client\Model\InlineResponse2001Statistics $statistics + * @param \Swagger\Client\Model\GetChildInfoStatistics $statistics * @return $this */ public function setStatistics($statistics) @@ -387,7 +387,7 @@ public function setPassword($password) /** * Gets ips - * @return \Swagger\Client\Model\InlineResponse2001Ips[] + * @return \Swagger\Client\Model\GetChildInfoIps[] */ public function getIps() { @@ -396,7 +396,7 @@ public function getIps() /** * Sets ips - * @param \Swagger\Client\Model\InlineResponse2001Ips[] $ips IP(s) associated to a child account user + * @param \Swagger\Client\Model\GetChildInfoIps[] $ips IP(s) associated to a child account user * @return $this */ public function setIps($ips) @@ -407,22 +407,22 @@ public function setIps($ips) } /** - * Gets api_keys - * @return \Swagger\Client\Model\InlineResponse2001ApiKeys[] + * Gets apiKeys + * @return \Swagger\Client\Model\GetChildInfoApiKeys[] */ public function getApiKeys() { - return $this->container['api_keys']; + return $this->container['apiKeys']; } /** - * Sets api_keys - * @param \Swagger\Client\Model\InlineResponse2001ApiKeys[] $api_keys API Keys associated to child account + * Sets apiKeys + * @param \Swagger\Client\Model\GetChildInfoApiKeys[] $apiKeys API Keys associated to child account * @return $this */ - public function setApiKeys($api_keys) + public function setApiKeys($apiKeys) { - $this->container['api_keys'] = $api_keys; + $this->container['apiKeys'] = $apiKeys; return $this; } diff --git a/lib/Model/InlineResponse2001ApiKeys.php b/lib/Model/GetChildInfoApiKeys.php old mode 100755 new mode 100644 similarity index 97% rename from lib/Model/InlineResponse2001ApiKeys.php rename to lib/Model/GetChildInfoApiKeys.php index 11f86bd0..90512092 --- a/lib/Model/InlineResponse2001ApiKeys.php +++ b/lib/Model/GetChildInfoApiKeys.php @@ -1,6 +1,6 @@ 'int', - 'sms_credits' => 'int' + 'emailCredits' => 'int', + 'smsCredits' => 'int' ]; /** @@ -64,8 +64,8 @@ class InlineResponse2001Credits implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'email_credits' => 'int32', - 'sms_credits' => 'int32' + 'emailCredits' => 'int32', + 'smsCredits' => 'int32' ]; public static function swaggerTypes() @@ -83,8 +83,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'email_credits' => 'emailCredits', - 'sms_credits' => 'smsCredits' + 'emailCredits' => 'emailCredits', + 'smsCredits' => 'smsCredits' ]; @@ -93,8 +93,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'email_credits' => 'setEmailCredits', - 'sms_credits' => 'setSmsCredits' + 'emailCredits' => 'setEmailCredits', + 'smsCredits' => 'setSmsCredits' ]; @@ -103,8 +103,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'email_credits' => 'getEmailCredits', - 'sms_credits' => 'getSmsCredits' + 'emailCredits' => 'getEmailCredits', + 'smsCredits' => 'getSmsCredits' ]; public static function attributeMap() @@ -138,8 +138,8 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['email_credits'] = isset($data['email_credits']) ? $data['email_credits'] : null; - $this->container['sms_credits'] = isset($data['sms_credits']) ? $data['sms_credits'] : null; + $this->container['emailCredits'] = isset($data['emailCredits']) ? $data['emailCredits'] : null; + $this->container['smsCredits'] = isset($data['smsCredits']) ? $data['smsCredits'] : null; } /** @@ -168,43 +168,43 @@ public function valid() /** - * Gets email_credits + * Gets emailCredits * @return int */ public function getEmailCredits() { - return $this->container['email_credits']; + return $this->container['emailCredits']; } /** - * Sets email_credits - * @param int $email_credits Email credits available for your child + * Sets emailCredits + * @param int $emailCredits Email credits available for your child * @return $this */ - public function setEmailCredits($email_credits) + public function setEmailCredits($emailCredits) { - $this->container['email_credits'] = $email_credits; + $this->container['emailCredits'] = $emailCredits; return $this; } /** - * Gets sms_credits + * Gets smsCredits * @return int */ public function getSmsCredits() { - return $this->container['sms_credits']; + return $this->container['smsCredits']; } /** - * Sets sms_credits - * @param int $sms_credits SMS credits available for your child + * Sets smsCredits + * @param int $smsCredits SMS credits available for your child * @return $this */ - public function setSmsCredits($sms_credits) + public function setSmsCredits($smsCredits) { - $this->container['sms_credits'] = $sms_credits; + $this->container['smsCredits'] = $smsCredits; return $this; } diff --git a/lib/Model/InlineResponse2001Ips.php b/lib/Model/GetChildInfoIps.php old mode 100755 new mode 100644 similarity index 97% rename from lib/Model/InlineResponse2001Ips.php rename to lib/Model/GetChildInfoIps.php index e9a59d94..38c9f88b --- a/lib/Model/InlineResponse2001Ips.php +++ b/lib/Model/GetChildInfoIps.php @@ -1,6 +1,6 @@ 'int', - 'current_month_total_sent' => 'int', - 'total_sent' => 'int' + 'previousMonthTotalSent' => 'int', + 'currentMonthTotalSent' => 'int', + 'totalSent' => 'int' ]; /** @@ -65,9 +65,9 @@ class InlineResponse2001Statistics implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'previous_month_total_sent' => 'int32', - 'current_month_total_sent' => 'int32', - 'total_sent' => 'int32' + 'previousMonthTotalSent' => 'int32', + 'currentMonthTotalSent' => 'int32', + 'totalSent' => 'int32' ]; public static function swaggerTypes() @@ -85,9 +85,9 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'previous_month_total_sent' => 'previousMonthTotalSent', - 'current_month_total_sent' => 'currentMonthTotalSent', - 'total_sent' => 'totalSent' + 'previousMonthTotalSent' => 'previousMonthTotalSent', + 'currentMonthTotalSent' => 'currentMonthTotalSent', + 'totalSent' => 'totalSent' ]; @@ -96,9 +96,9 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'previous_month_total_sent' => 'setPreviousMonthTotalSent', - 'current_month_total_sent' => 'setCurrentMonthTotalSent', - 'total_sent' => 'setTotalSent' + 'previousMonthTotalSent' => 'setPreviousMonthTotalSent', + 'currentMonthTotalSent' => 'setCurrentMonthTotalSent', + 'totalSent' => 'setTotalSent' ]; @@ -107,9 +107,9 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'previous_month_total_sent' => 'getPreviousMonthTotalSent', - 'current_month_total_sent' => 'getCurrentMonthTotalSent', - 'total_sent' => 'getTotalSent' + 'previousMonthTotalSent' => 'getPreviousMonthTotalSent', + 'currentMonthTotalSent' => 'getCurrentMonthTotalSent', + 'totalSent' => 'getTotalSent' ]; public static function attributeMap() @@ -143,9 +143,9 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['previous_month_total_sent'] = isset($data['previous_month_total_sent']) ? $data['previous_month_total_sent'] : null; - $this->container['current_month_total_sent'] = isset($data['current_month_total_sent']) ? $data['current_month_total_sent'] : null; - $this->container['total_sent'] = isset($data['total_sent']) ? $data['total_sent'] : null; + $this->container['previousMonthTotalSent'] = isset($data['previousMonthTotalSent']) ? $data['previousMonthTotalSent'] : null; + $this->container['currentMonthTotalSent'] = isset($data['currentMonthTotalSent']) ? $data['currentMonthTotalSent'] : null; + $this->container['totalSent'] = isset($data['totalSent']) ? $data['totalSent'] : null; } /** @@ -174,64 +174,64 @@ public function valid() /** - * Gets previous_month_total_sent + * Gets previousMonthTotalSent * @return int */ public function getPreviousMonthTotalSent() { - return $this->container['previous_month_total_sent']; + return $this->container['previousMonthTotalSent']; } /** - * Sets previous_month_total_sent - * @param int $previous_month_total_sent Overall emails sent for the previous month + * Sets previousMonthTotalSent + * @param int $previousMonthTotalSent Overall emails sent for the previous month * @return $this */ - public function setPreviousMonthTotalSent($previous_month_total_sent) + public function setPreviousMonthTotalSent($previousMonthTotalSent) { - $this->container['previous_month_total_sent'] = $previous_month_total_sent; + $this->container['previousMonthTotalSent'] = $previousMonthTotalSent; return $this; } /** - * Gets current_month_total_sent + * Gets currentMonthTotalSent * @return int */ public function getCurrentMonthTotalSent() { - return $this->container['current_month_total_sent']; + return $this->container['currentMonthTotalSent']; } /** - * Sets current_month_total_sent - * @param int $current_month_total_sent Overall emails sent for current month + * Sets currentMonthTotalSent + * @param int $currentMonthTotalSent Overall emails sent for current month * @return $this */ - public function setCurrentMonthTotalSent($current_month_total_sent) + public function setCurrentMonthTotalSent($currentMonthTotalSent) { - $this->container['current_month_total_sent'] = $current_month_total_sent; + $this->container['currentMonthTotalSent'] = $currentMonthTotalSent; return $this; } /** - * Gets total_sent + * Gets totalSent * @return int */ public function getTotalSent() { - return $this->container['total_sent']; + return $this->container['totalSent']; } /** - * Sets total_sent - * @param int $total_sent Overall emails sent for since the account exists + * Sets totalSent + * @param int $totalSent Overall emails sent for since the account exists * @return $this */ - public function setTotalSent($total_sent) + public function setTotalSent($totalSent) { - $this->container['total_sent'] = $total_sent; + $this->container['totalSent'] = $totalSent; return $this; } diff --git a/lib/Model/GetChildrenList.php b/lib/Model/GetChildrenList.php old mode 100755 new mode 100644 index b156b51f..342baccf --- a/lib/Model/GetChildrenList.php +++ b/lib/Model/GetChildrenList.php @@ -54,7 +54,7 @@ class GetChildrenList implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'children' => '\Swagger\Client\Model\InlineResponse2001Children[]' + 'children' => 'object[]' ]; /** @@ -162,7 +162,7 @@ public function valid() /** * Gets children - * @return \Swagger\Client\Model\InlineResponse2001Children[] + * @return object[] */ public function getChildren() { @@ -171,7 +171,7 @@ public function getChildren() /** * Sets children - * @param \Swagger\Client\Model\InlineResponse2001Children[] $children Your children's account information + * @param object[] $children Your children's account information * @return $this */ public function setChildren($children) diff --git a/lib/Model/GetClient.php b/lib/Model/GetClient.php old mode 100755 new mode 100644 index 9aeae6ba..ecc6ab26 --- a/lib/Model/GetClient.php +++ b/lib/Model/GetClient.php @@ -55,9 +55,9 @@ class GetClient implements ArrayAccess */ protected static $swaggerTypes = [ 'email' => 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string' + 'firstName' => 'string', + 'lastName' => 'string', + 'companyName' => 'string' ]; /** @@ -66,9 +66,9 @@ class GetClient implements ArrayAccess */ protected static $swaggerFormats = [ 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null + 'firstName' => null, + 'lastName' => null, + 'companyName' => null ]; public static function swaggerTypes() @@ -87,9 +87,9 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName' + 'firstName' => 'firstName', + 'lastName' => 'lastName', + 'companyName' => 'companyName' ]; @@ -99,9 +99,9 @@ public static function swaggerFormats() */ protected static $setters = [ 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName' + 'firstName' => 'setFirstName', + 'lastName' => 'setLastName', + 'companyName' => 'setCompanyName' ]; @@ -111,9 +111,9 @@ public static function swaggerFormats() */ protected static $getters = [ 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName' + 'firstName' => 'getFirstName', + 'lastName' => 'getLastName', + 'companyName' => 'getCompanyName' ]; public static function attributeMap() @@ -148,9 +148,9 @@ public static function getters() public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; + $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null; + $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null; + $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; } /** @@ -165,14 +165,14 @@ public function listInvalidProperties() if ($this->container['email'] === null) { $invalid_properties[] = "'email' can't be null"; } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; + if ($this->container['firstName'] === null) { + $invalid_properties[] = "'firstName' can't be null"; } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; + if ($this->container['lastName'] === null) { + $invalid_properties[] = "'lastName' can't be null"; } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; + if ($this->container['companyName'] === null) { + $invalid_properties[] = "'companyName' can't be null"; } return $invalid_properties; } @@ -189,13 +189,13 @@ public function valid() if ($this->container['email'] === null) { return false; } - if ($this->container['first_name'] === null) { + if ($this->container['firstName'] === null) { return false; } - if ($this->container['last_name'] === null) { + if ($this->container['lastName'] === null) { return false; } - if ($this->container['company_name'] === null) { + if ($this->container['companyName'] === null) { return false; } return true; @@ -224,64 +224,64 @@ public function setEmail($email) } /** - * Gets first_name + * Gets firstName * @return string */ public function getFirstName() { - return $this->container['first_name']; + return $this->container['firstName']; } /** - * Sets first_name - * @param string $first_name First Name + * Sets firstName + * @param string $firstName First Name * @return $this */ - public function setFirstName($first_name) + public function setFirstName($firstName) { - $this->container['first_name'] = $first_name; + $this->container['firstName'] = $firstName; return $this; } /** - * Gets last_name + * Gets lastName * @return string */ public function getLastName() { - return $this->container['last_name']; + return $this->container['lastName']; } /** - * Sets last_name - * @param string $last_name Last Name + * Sets lastName + * @param string $lastName Last Name * @return $this */ - public function setLastName($last_name) + public function setLastName($lastName) { - $this->container['last_name'] = $last_name; + $this->container['lastName'] = $lastName; return $this; } /** - * Gets company_name + * Gets companyName * @return string */ public function getCompanyName() { - return $this->container['company_name']; + return $this->container['companyName']; } /** - * Sets company_name - * @param string $company_name Name of the company + * Sets companyName + * @param string $companyName Name of the company * @return $this */ - public function setCompanyName($company_name) + public function setCompanyName($companyName) { - $this->container['company_name'] = $company_name; + $this->container['companyName'] = $companyName; return $this; } diff --git a/lib/Model/GetContactCampaignStats.php b/lib/Model/GetContactCampaignStats.php old mode 100755 new mode 100644 index ced9f980..80fa71c7 --- a/lib/Model/GetContactCampaignStats.php +++ b/lib/Model/GetContactCampaignStats.php @@ -55,14 +55,14 @@ class GetContactCampaignStats implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'messages_sent' => '\Swagger\Client\Model\InlineResponse20015MessagesSent[]', - 'hard_bounces' => '\Swagger\Client\Model\InlineResponse20015MessagesSent[]', - 'soft_bounces' => '\Swagger\Client\Model\InlineResponse20015MessagesSent[]', - 'complaints' => '\Swagger\Client\Model\InlineResponse20015MessagesSent[]', - 'unsubscriptions' => '\Swagger\Client\Model\InlineResponse20015Unsubscriptions', - 'opened' => '\Swagger\Client\Model\InlineResponse20015Opened[]', - 'clicked' => '\Swagger\Client\Model\InlineResponse20015Clicked[]', - 'transac_attributes' => '\Swagger\Client\Model\InlineResponse20015TransacAttributes[]' + 'messagesSent' => '\Swagger\Client\Model\GetContactCampaignStatsMessagesSent[]', + 'hardBounces' => '\Swagger\Client\Model\GetContactCampaignStatsMessagesSent[]', + 'softBounces' => '\Swagger\Client\Model\GetContactCampaignStatsMessagesSent[]', + 'complaints' => '\Swagger\Client\Model\GetContactCampaignStatsMessagesSent[]', + 'unsubscriptions' => '\Swagger\Client\Model\GetContactCampaignStatsUnsubscriptions', + 'opened' => '\Swagger\Client\Model\GetContactCampaignStatsOpened[]', + 'clicked' => '\Swagger\Client\Model\GetContactCampaignStatsClicked[]', + 'transacAttributes' => '\Swagger\Client\Model\GetContactCampaignStatsTransacAttributes[]' ]; /** @@ -70,14 +70,14 @@ class GetContactCampaignStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'messages_sent' => null, - 'hard_bounces' => null, - 'soft_bounces' => null, + 'messagesSent' => null, + 'hardBounces' => null, + 'softBounces' => null, 'complaints' => null, 'unsubscriptions' => null, 'opened' => null, 'clicked' => null, - 'transac_attributes' => null + 'transacAttributes' => null ]; public static function swaggerTypes() @@ -95,14 +95,14 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'messages_sent' => 'messagesSent', - 'hard_bounces' => 'hardBounces', - 'soft_bounces' => 'softBounces', + 'messagesSent' => 'messagesSent', + 'hardBounces' => 'hardBounces', + 'softBounces' => 'softBounces', 'complaints' => 'complaints', 'unsubscriptions' => 'unsubscriptions', 'opened' => 'opened', 'clicked' => 'clicked', - 'transac_attributes' => 'transacAttributes' + 'transacAttributes' => 'transacAttributes' ]; @@ -111,14 +111,14 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'messages_sent' => 'setMessagesSent', - 'hard_bounces' => 'setHardBounces', - 'soft_bounces' => 'setSoftBounces', + 'messagesSent' => 'setMessagesSent', + 'hardBounces' => 'setHardBounces', + 'softBounces' => 'setSoftBounces', 'complaints' => 'setComplaints', 'unsubscriptions' => 'setUnsubscriptions', 'opened' => 'setOpened', 'clicked' => 'setClicked', - 'transac_attributes' => 'setTransacAttributes' + 'transacAttributes' => 'setTransacAttributes' ]; @@ -127,14 +127,14 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'messages_sent' => 'getMessagesSent', - 'hard_bounces' => 'getHardBounces', - 'soft_bounces' => 'getSoftBounces', + 'messagesSent' => 'getMessagesSent', + 'hardBounces' => 'getHardBounces', + 'softBounces' => 'getSoftBounces', 'complaints' => 'getComplaints', 'unsubscriptions' => 'getUnsubscriptions', 'opened' => 'getOpened', 'clicked' => 'getClicked', - 'transac_attributes' => 'getTransacAttributes' + 'transacAttributes' => 'getTransacAttributes' ]; public static function attributeMap() @@ -168,14 +168,14 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['messages_sent'] = isset($data['messages_sent']) ? $data['messages_sent'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; + $this->container['messagesSent'] = isset($data['messagesSent']) ? $data['messagesSent'] : null; + $this->container['hardBounces'] = isset($data['hardBounces']) ? $data['hardBounces'] : null; + $this->container['softBounces'] = isset($data['softBounces']) ? $data['softBounces'] : null; $this->container['complaints'] = isset($data['complaints']) ? $data['complaints'] : null; $this->container['unsubscriptions'] = isset($data['unsubscriptions']) ? $data['unsubscriptions'] : null; $this->container['opened'] = isset($data['opened']) ? $data['opened'] : null; $this->container['clicked'] = isset($data['clicked']) ? $data['clicked'] : null; - $this->container['transac_attributes'] = isset($data['transac_attributes']) ? $data['transac_attributes'] : null; + $this->container['transacAttributes'] = isset($data['transacAttributes']) ? $data['transacAttributes'] : null; } /** @@ -204,71 +204,71 @@ public function valid() /** - * Gets messages_sent - * @return \Swagger\Client\Model\InlineResponse20015MessagesSent[] + * Gets messagesSent + * @return \Swagger\Client\Model\GetContactCampaignStatsMessagesSent[] */ public function getMessagesSent() { - return $this->container['messages_sent']; + return $this->container['messagesSent']; } /** - * Sets messages_sent - * @param \Swagger\Client\Model\InlineResponse20015MessagesSent[] $messages_sent + * Sets messagesSent + * @param \Swagger\Client\Model\GetContactCampaignStatsMessagesSent[] $messagesSent * @return $this */ - public function setMessagesSent($messages_sent) + public function setMessagesSent($messagesSent) { - $this->container['messages_sent'] = $messages_sent; + $this->container['messagesSent'] = $messagesSent; return $this; } /** - * Gets hard_bounces - * @return \Swagger\Client\Model\InlineResponse20015MessagesSent[] + * Gets hardBounces + * @return \Swagger\Client\Model\GetContactCampaignStatsMessagesSent[] */ public function getHardBounces() { - return $this->container['hard_bounces']; + return $this->container['hardBounces']; } /** - * Sets hard_bounces - * @param \Swagger\Client\Model\InlineResponse20015MessagesSent[] $hard_bounces + * Sets hardBounces + * @param \Swagger\Client\Model\GetContactCampaignStatsMessagesSent[] $hardBounces * @return $this */ - public function setHardBounces($hard_bounces) + public function setHardBounces($hardBounces) { - $this->container['hard_bounces'] = $hard_bounces; + $this->container['hardBounces'] = $hardBounces; return $this; } /** - * Gets soft_bounces - * @return \Swagger\Client\Model\InlineResponse20015MessagesSent[] + * Gets softBounces + * @return \Swagger\Client\Model\GetContactCampaignStatsMessagesSent[] */ public function getSoftBounces() { - return $this->container['soft_bounces']; + return $this->container['softBounces']; } /** - * Sets soft_bounces - * @param \Swagger\Client\Model\InlineResponse20015MessagesSent[] $soft_bounces + * Sets softBounces + * @param \Swagger\Client\Model\GetContactCampaignStatsMessagesSent[] $softBounces * @return $this */ - public function setSoftBounces($soft_bounces) + public function setSoftBounces($softBounces) { - $this->container['soft_bounces'] = $soft_bounces; + $this->container['softBounces'] = $softBounces; return $this; } /** * Gets complaints - * @return \Swagger\Client\Model\InlineResponse20015MessagesSent[] + * @return \Swagger\Client\Model\GetContactCampaignStatsMessagesSent[] */ public function getComplaints() { @@ -277,7 +277,7 @@ public function getComplaints() /** * Sets complaints - * @param \Swagger\Client\Model\InlineResponse20015MessagesSent[] $complaints + * @param \Swagger\Client\Model\GetContactCampaignStatsMessagesSent[] $complaints * @return $this */ public function setComplaints($complaints) @@ -289,7 +289,7 @@ public function setComplaints($complaints) /** * Gets unsubscriptions - * @return \Swagger\Client\Model\InlineResponse20015Unsubscriptions + * @return \Swagger\Client\Model\GetContactCampaignStatsUnsubscriptions */ public function getUnsubscriptions() { @@ -298,7 +298,7 @@ public function getUnsubscriptions() /** * Sets unsubscriptions - * @param \Swagger\Client\Model\InlineResponse20015Unsubscriptions $unsubscriptions + * @param \Swagger\Client\Model\GetContactCampaignStatsUnsubscriptions $unsubscriptions * @return $this */ public function setUnsubscriptions($unsubscriptions) @@ -310,7 +310,7 @@ public function setUnsubscriptions($unsubscriptions) /** * Gets opened - * @return \Swagger\Client\Model\InlineResponse20015Opened[] + * @return \Swagger\Client\Model\GetContactCampaignStatsOpened[] */ public function getOpened() { @@ -319,7 +319,7 @@ public function getOpened() /** * Sets opened - * @param \Swagger\Client\Model\InlineResponse20015Opened[] $opened + * @param \Swagger\Client\Model\GetContactCampaignStatsOpened[] $opened * @return $this */ public function setOpened($opened) @@ -331,7 +331,7 @@ public function setOpened($opened) /** * Gets clicked - * @return \Swagger\Client\Model\InlineResponse20015Clicked[] + * @return \Swagger\Client\Model\GetContactCampaignStatsClicked[] */ public function getClicked() { @@ -340,7 +340,7 @@ public function getClicked() /** * Sets clicked - * @param \Swagger\Client\Model\InlineResponse20015Clicked[] $clicked + * @param \Swagger\Client\Model\GetContactCampaignStatsClicked[] $clicked * @return $this */ public function setClicked($clicked) @@ -351,22 +351,22 @@ public function setClicked($clicked) } /** - * Gets transac_attributes - * @return \Swagger\Client\Model\InlineResponse20015TransacAttributes[] + * Gets transacAttributes + * @return \Swagger\Client\Model\GetContactCampaignStatsTransacAttributes[] */ public function getTransacAttributes() { - return $this->container['transac_attributes']; + return $this->container['transacAttributes']; } /** - * Sets transac_attributes - * @param \Swagger\Client\Model\InlineResponse20015TransacAttributes[] $transac_attributes + * Sets transacAttributes + * @param \Swagger\Client\Model\GetContactCampaignStatsTransacAttributes[] $transacAttributes * @return $this */ - public function setTransacAttributes($transac_attributes) + public function setTransacAttributes($transacAttributes) { - $this->container['transac_attributes'] = $transac_attributes; + $this->container['transacAttributes'] = $transacAttributes; return $this; } diff --git a/lib/Model/InlineResponse20015Clicked.php b/lib/Model/GetContactCampaignStatsClicked.php old mode 100755 new mode 100644 similarity index 83% rename from lib/Model/InlineResponse20015Clicked.php rename to lib/Model/GetContactCampaignStatsClicked.php index 390d86ce..01965711 --- a/lib/Model/InlineResponse20015Clicked.php +++ b/lib/Model/GetContactCampaignStatsClicked.php @@ -1,6 +1,6 @@ 'int', - 'links' => '\Swagger\Client\Model\InlineResponse20015Links[]' + 'campaignId' => 'int', + 'links' => '\Swagger\Client\Model\GetContactCampaignStatsLinks[]' ]; /** @@ -63,7 +63,7 @@ class InlineResponse20015Clicked implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaign_id' => 'int32', + 'campaignId' => 'int32', 'links' => null ]; @@ -82,7 +82,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'campaign_id' => 'campaignId', + 'campaignId' => 'campaignId', 'links' => 'links' ]; @@ -92,7 +92,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'campaign_id' => 'setCampaignId', + 'campaignId' => 'setCampaignId', 'links' => 'setLinks' ]; @@ -102,7 +102,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'campaign_id' => 'getCampaignId', + 'campaignId' => 'getCampaignId', 'links' => 'getLinks' ]; @@ -137,7 +137,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['campaign_id'] = isset($data['campaign_id']) ? $data['campaign_id'] : null; + $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; $this->container['links'] = isset($data['links']) ? $data['links'] : null; } @@ -150,8 +150,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['campaign_id'] === null) { - $invalid_properties[] = "'campaign_id' can't be null"; + if ($this->container['campaignId'] === null) { + $invalid_properties[] = "'campaignId' can't be null"; } if ($this->container['links'] === null) { $invalid_properties[] = "'links' can't be null"; @@ -168,7 +168,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['campaign_id'] === null) { + if ($this->container['campaignId'] === null) { return false; } if ($this->container['links'] === null) { @@ -179,29 +179,29 @@ public function valid() /** - * Gets campaign_id + * Gets campaignId * @return int */ public function getCampaignId() { - return $this->container['campaign_id']; + return $this->container['campaignId']; } /** - * Sets campaign_id - * @param int $campaign_id ID of the campaign which generated the event + * Sets campaignId + * @param int $campaignId ID of the campaign which generated the event * @return $this */ - public function setCampaignId($campaign_id) + public function setCampaignId($campaignId) { - $this->container['campaign_id'] = $campaign_id; + $this->container['campaignId'] = $campaignId; return $this; } /** * Gets links - * @return \Swagger\Client\Model\InlineResponse20015Links[] + * @return \Swagger\Client\Model\GetContactCampaignStatsLinks[] */ public function getLinks() { @@ -210,7 +210,7 @@ public function getLinks() /** * Sets links - * @param \Swagger\Client\Model\InlineResponse20015Links[] $links + * @param \Swagger\Client\Model\GetContactCampaignStatsLinks[] $links * @return $this */ public function setLinks($links) diff --git a/lib/Model/InlineResponse20015Links.php b/lib/Model/GetContactCampaignStatsLinks.php old mode 100755 new mode 100644 similarity index 89% rename from lib/Model/InlineResponse20015Links.php rename to lib/Model/GetContactCampaignStatsLinks.php index 25275045..021acc04 --- a/lib/Model/InlineResponse20015Links.php +++ b/lib/Model/GetContactCampaignStatsLinks.php @@ -1,6 +1,6 @@ 'int', - 'event_time' => '\DateTime', + 'eventTime' => '\DateTime', 'ip' => 'string', 'url' => 'string' ]; @@ -66,7 +66,7 @@ class InlineResponse20015Links implements ArrayAccess */ protected static $swaggerFormats = [ 'count' => 'int32', - 'event_time' => 'date-time', + 'eventTime' => 'date-time', 'ip' => null, 'url' => null ]; @@ -87,7 +87,7 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'count' => 'count', - 'event_time' => 'eventTime', + 'eventTime' => 'eventTime', 'ip' => 'ip', 'url' => 'url' ]; @@ -99,7 +99,7 @@ public static function swaggerFormats() */ protected static $setters = [ 'count' => 'setCount', - 'event_time' => 'setEventTime', + 'eventTime' => 'setEventTime', 'ip' => 'setIp', 'url' => 'setUrl' ]; @@ -111,7 +111,7 @@ public static function swaggerFormats() */ protected static $getters = [ 'count' => 'getCount', - 'event_time' => 'getEventTime', + 'eventTime' => 'getEventTime', 'ip' => 'getIp', 'url' => 'getUrl' ]; @@ -148,7 +148,7 @@ public static function getters() public function __construct(array $data = null) { $this->container['count'] = isset($data['count']) ? $data['count'] : null; - $this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null; + $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; $this->container['url'] = isset($data['url']) ? $data['url'] : null; } @@ -165,8 +165,8 @@ public function listInvalidProperties() if ($this->container['count'] === null) { $invalid_properties[] = "'count' can't be null"; } - if ($this->container['event_time'] === null) { - $invalid_properties[] = "'event_time' can't be null"; + if ($this->container['eventTime'] === null) { + $invalid_properties[] = "'eventTime' can't be null"; } if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; @@ -189,7 +189,7 @@ public function valid() if ($this->container['count'] === null) { return false; } - if ($this->container['event_time'] === null) { + if ($this->container['eventTime'] === null) { return false; } if ($this->container['ip'] === null) { @@ -224,22 +224,22 @@ public function setCount($count) } /** - * Gets event_time + * Gets eventTime * @return \DateTime */ public function getEventTime() { - return $this->container['event_time']; + return $this->container['eventTime']; } /** - * Sets event_time - * @param \DateTime $event_time Date of the event + * Sets eventTime + * @param \DateTime $eventTime Date of the event * @return $this */ - public function setEventTime($event_time) + public function setEventTime($eventTime) { - $this->container['event_time'] = $event_time; + $this->container['eventTime'] = $eventTime; return $this; } diff --git a/lib/Model/InlineResponse20015MessagesSent.php b/lib/Model/GetContactCampaignStatsMessagesSent.php old mode 100755 new mode 100644 similarity index 76% rename from lib/Model/InlineResponse20015MessagesSent.php rename to lib/Model/GetContactCampaignStatsMessagesSent.php index f25e6ad5..119d2167 --- a/lib/Model/InlineResponse20015MessagesSent.php +++ b/lib/Model/GetContactCampaignStatsMessagesSent.php @@ -1,6 +1,6 @@ 'int', - 'event_time' => '\DateTime' + 'campaignId' => 'int', + 'eventTime' => '\DateTime' ]; /** @@ -63,8 +63,8 @@ class InlineResponse20015MessagesSent implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaign_id' => 'int32', - 'event_time' => 'date-time' + 'campaignId' => 'int32', + 'eventTime' => 'date-time' ]; public static function swaggerTypes() @@ -82,8 +82,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'campaign_id' => 'campaignId', - 'event_time' => 'eventTime' + 'campaignId' => 'campaignId', + 'eventTime' => 'eventTime' ]; @@ -92,8 +92,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'campaign_id' => 'setCampaignId', - 'event_time' => 'setEventTime' + 'campaignId' => 'setCampaignId', + 'eventTime' => 'setEventTime' ]; @@ -102,8 +102,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'campaign_id' => 'getCampaignId', - 'event_time' => 'getEventTime' + 'campaignId' => 'getCampaignId', + 'eventTime' => 'getEventTime' ]; public static function attributeMap() @@ -137,8 +137,8 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['campaign_id'] = isset($data['campaign_id']) ? $data['campaign_id'] : null; - $this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null; + $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; + $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; } /** @@ -150,11 +150,11 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['campaign_id'] === null) { - $invalid_properties[] = "'campaign_id' can't be null"; + if ($this->container['campaignId'] === null) { + $invalid_properties[] = "'campaignId' can't be null"; } - if ($this->container['event_time'] === null) { - $invalid_properties[] = "'event_time' can't be null"; + if ($this->container['eventTime'] === null) { + $invalid_properties[] = "'eventTime' can't be null"; } return $invalid_properties; } @@ -168,10 +168,10 @@ public function listInvalidProperties() public function valid() { - if ($this->container['campaign_id'] === null) { + if ($this->container['campaignId'] === null) { return false; } - if ($this->container['event_time'] === null) { + if ($this->container['eventTime'] === null) { return false; } return true; @@ -179,43 +179,43 @@ public function valid() /** - * Gets campaign_id + * Gets campaignId * @return int */ public function getCampaignId() { - return $this->container['campaign_id']; + return $this->container['campaignId']; } /** - * Sets campaign_id - * @param int $campaign_id ID of the campaign which generated the event + * Sets campaignId + * @param int $campaignId ID of the campaign which generated the event * @return $this */ - public function setCampaignId($campaign_id) + public function setCampaignId($campaignId) { - $this->container['campaign_id'] = $campaign_id; + $this->container['campaignId'] = $campaignId; return $this; } /** - * Gets event_time + * Gets eventTime * @return \DateTime */ public function getEventTime() { - return $this->container['event_time']; + return $this->container['eventTime']; } /** - * Sets event_time - * @param \DateTime $event_time Date of the event + * Sets eventTime + * @param \DateTime $eventTime Date of the event * @return $this */ - public function setEventTime($event_time) + public function setEventTime($eventTime) { - $this->container['event_time'] = $event_time; + $this->container['eventTime'] = $eventTime; return $this; } diff --git a/lib/Model/InlineResponse20015Opened.php b/lib/Model/GetContactCampaignStatsOpened.php old mode 100755 new mode 100644 similarity index 81% rename from lib/Model/InlineResponse20015Opened.php rename to lib/Model/GetContactCampaignStatsOpened.php index 26f795e8..0938fbe4 --- a/lib/Model/InlineResponse20015Opened.php +++ b/lib/Model/GetContactCampaignStatsOpened.php @@ -1,6 +1,6 @@ 'int', + 'campaignId' => 'int', 'count' => 'int', - 'event_time' => '\DateTime', + 'eventTime' => '\DateTime', 'ip' => 'string' ]; @@ -65,9 +65,9 @@ class InlineResponse20015Opened implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaign_id' => 'int32', + 'campaignId' => 'int32', 'count' => 'int32', - 'event_time' => 'date-time', + 'eventTime' => 'date-time', 'ip' => null ]; @@ -86,9 +86,9 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'campaign_id' => 'campaignId', + 'campaignId' => 'campaignId', 'count' => 'count', - 'event_time' => 'eventTime', + 'eventTime' => 'eventTime', 'ip' => 'ip' ]; @@ -98,9 +98,9 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'campaign_id' => 'setCampaignId', + 'campaignId' => 'setCampaignId', 'count' => 'setCount', - 'event_time' => 'setEventTime', + 'eventTime' => 'setEventTime', 'ip' => 'setIp' ]; @@ -110,9 +110,9 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'campaign_id' => 'getCampaignId', + 'campaignId' => 'getCampaignId', 'count' => 'getCount', - 'event_time' => 'getEventTime', + 'eventTime' => 'getEventTime', 'ip' => 'getIp' ]; @@ -147,9 +147,9 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['campaign_id'] = isset($data['campaign_id']) ? $data['campaign_id'] : null; + $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; - $this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null; + $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } @@ -162,14 +162,14 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['campaign_id'] === null) { - $invalid_properties[] = "'campaign_id' can't be null"; + if ($this->container['campaignId'] === null) { + $invalid_properties[] = "'campaignId' can't be null"; } if ($this->container['count'] === null) { $invalid_properties[] = "'count' can't be null"; } - if ($this->container['event_time'] === null) { - $invalid_properties[] = "'event_time' can't be null"; + if ($this->container['eventTime'] === null) { + $invalid_properties[] = "'eventTime' can't be null"; } if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; @@ -186,13 +186,13 @@ public function listInvalidProperties() public function valid() { - if ($this->container['campaign_id'] === null) { + if ($this->container['campaignId'] === null) { return false; } if ($this->container['count'] === null) { return false; } - if ($this->container['event_time'] === null) { + if ($this->container['eventTime'] === null) { return false; } if ($this->container['ip'] === null) { @@ -203,22 +203,22 @@ public function valid() /** - * Gets campaign_id + * Gets campaignId * @return int */ public function getCampaignId() { - return $this->container['campaign_id']; + return $this->container['campaignId']; } /** - * Sets campaign_id - * @param int $campaign_id ID of the campaign which generated the event + * Sets campaignId + * @param int $campaignId ID of the campaign which generated the event * @return $this */ - public function setCampaignId($campaign_id) + public function setCampaignId($campaignId) { - $this->container['campaign_id'] = $campaign_id; + $this->container['campaignId'] = $campaignId; return $this; } @@ -245,22 +245,22 @@ public function setCount($count) } /** - * Gets event_time + * Gets eventTime * @return \DateTime */ public function getEventTime() { - return $this->container['event_time']; + return $this->container['eventTime']; } /** - * Sets event_time - * @param \DateTime $event_time Date of the event + * Sets eventTime + * @param \DateTime $eventTime Date of the event * @return $this */ - public function setEventTime($event_time) + public function setEventTime($eventTime) { - $this->container['event_time'] = $event_time; + $this->container['eventTime'] = $eventTime; return $this; } diff --git a/lib/Model/InlineResponse20015TransacAttributes.php b/lib/Model/GetContactCampaignStatsTransacAttributes.php old mode 100755 new mode 100644 similarity index 71% rename from lib/Model/InlineResponse20015TransacAttributes.php rename to lib/Model/GetContactCampaignStatsTransacAttributes.php index a8b24a9a..6e66d090 --- a/lib/Model/InlineResponse20015TransacAttributes.php +++ b/lib/Model/GetContactCampaignStatsTransacAttributes.php @@ -1,6 +1,6 @@ '\DateTime', - 'order_price' => 'float', - 'order_id' => 'int' + 'orderDate' => '\DateTime', + 'orderPrice' => 'float', + 'orderId' => 'int' ]; /** @@ -64,9 +64,9 @@ class InlineResponse20015TransacAttributes implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'order_date' => 'date', - 'order_price' => 'float', - 'order_id' => 'int32' + 'orderDate' => 'date', + 'orderPrice' => 'float', + 'orderId' => 'int32' ]; public static function swaggerTypes() @@ -84,9 +84,9 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'order_date' => 'orderDate', - 'order_price' => 'orderPrice', - 'order_id' => 'orderId' + 'orderDate' => 'orderDate', + 'orderPrice' => 'orderPrice', + 'orderId' => 'orderId' ]; @@ -95,9 +95,9 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'order_date' => 'setOrderDate', - 'order_price' => 'setOrderPrice', - 'order_id' => 'setOrderId' + 'orderDate' => 'setOrderDate', + 'orderPrice' => 'setOrderPrice', + 'orderId' => 'setOrderId' ]; @@ -106,9 +106,9 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'order_date' => 'getOrderDate', - 'order_price' => 'getOrderPrice', - 'order_id' => 'getOrderId' + 'orderDate' => 'getOrderDate', + 'orderPrice' => 'getOrderPrice', + 'orderId' => 'getOrderId' ]; public static function attributeMap() @@ -142,9 +142,9 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['order_date'] = isset($data['order_date']) ? $data['order_date'] : null; - $this->container['order_price'] = isset($data['order_price']) ? $data['order_price'] : null; - $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + $this->container['orderDate'] = isset($data['orderDate']) ? $data['orderDate'] : null; + $this->container['orderPrice'] = isset($data['orderPrice']) ? $data['orderPrice'] : null; + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; } /** @@ -156,14 +156,14 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['order_date'] === null) { - $invalid_properties[] = "'order_date' can't be null"; + if ($this->container['orderDate'] === null) { + $invalid_properties[] = "'orderDate' can't be null"; } - if ($this->container['order_price'] === null) { - $invalid_properties[] = "'order_price' can't be null"; + if ($this->container['orderPrice'] === null) { + $invalid_properties[] = "'orderPrice' can't be null"; } - if ($this->container['order_id'] === null) { - $invalid_properties[] = "'order_id' can't be null"; + if ($this->container['orderId'] === null) { + $invalid_properties[] = "'orderId' can't be null"; } return $invalid_properties; } @@ -177,13 +177,13 @@ public function listInvalidProperties() public function valid() { - if ($this->container['order_date'] === null) { + if ($this->container['orderDate'] === null) { return false; } - if ($this->container['order_price'] === null) { + if ($this->container['orderPrice'] === null) { return false; } - if ($this->container['order_id'] === null) { + if ($this->container['orderId'] === null) { return false; } return true; @@ -191,64 +191,64 @@ public function valid() /** - * Gets order_date + * Gets orderDate * @return \DateTime */ public function getOrderDate() { - return $this->container['order_date']; + return $this->container['orderDate']; } /** - * Sets order_date - * @param \DateTime $order_date Date of the order + * Sets orderDate + * @param \DateTime $orderDate Date of the order * @return $this */ - public function setOrderDate($order_date) + public function setOrderDate($orderDate) { - $this->container['order_date'] = $order_date; + $this->container['orderDate'] = $orderDate; return $this; } /** - * Gets order_price + * Gets orderPrice * @return float */ public function getOrderPrice() { - return $this->container['order_price']; + return $this->container['orderPrice']; } /** - * Sets order_price - * @param float $order_price Price of the order + * Sets orderPrice + * @param float $orderPrice Price of the order * @return $this */ - public function setOrderPrice($order_price) + public function setOrderPrice($orderPrice) { - $this->container['order_price'] = $order_price; + $this->container['orderPrice'] = $orderPrice; return $this; } /** - * Gets order_id + * Gets orderId * @return int */ public function getOrderId() { - return $this->container['order_id']; + return $this->container['orderId']; } /** - * Sets order_id - * @param int $order_id ID of the order + * Sets orderId + * @param int $orderId ID of the order * @return $this */ - public function setOrderId($order_id) + public function setOrderId($orderId) { - $this->container['order_id'] = $order_id; + $this->container['orderId'] = $orderId; return $this; } diff --git a/lib/Model/InlineResponse20015Unsubscriptions.php b/lib/Model/GetContactCampaignStatsUnsubscriptions.php old mode 100755 new mode 100644 similarity index 68% rename from lib/Model/InlineResponse20015Unsubscriptions.php rename to lib/Model/GetContactCampaignStatsUnsubscriptions.php index 2dd1f9d4..ccc18857 --- a/lib/Model/InlineResponse20015Unsubscriptions.php +++ b/lib/Model/GetContactCampaignStatsUnsubscriptions.php @@ -1,6 +1,6 @@ '\Swagger\Client\Model\InlineResponse20015UnsubscriptionsUserUnsubscription[]', - 'admin_unsubscription' => '\Swagger\Client\Model\InlineResponse20015UnsubscriptionsAdminUnsubscription[]' + 'userUnsubscription' => '\Swagger\Client\Model\GetContactCampaignStatsUnsubscriptionsUserUnsubscription[]', + 'adminUnsubscription' => '\Swagger\Client\Model\GetContactCampaignStatsUnsubscriptionsAdminUnsubscription[]' ]; /** @@ -63,8 +63,8 @@ class InlineResponse20015Unsubscriptions implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'user_unsubscription' => null, - 'admin_unsubscription' => null + 'userUnsubscription' => null, + 'adminUnsubscription' => null ]; public static function swaggerTypes() @@ -82,8 +82,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'user_unsubscription' => 'userUnsubscription', - 'admin_unsubscription' => 'adminUnsubscription' + 'userUnsubscription' => 'userUnsubscription', + 'adminUnsubscription' => 'adminUnsubscription' ]; @@ -92,8 +92,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'user_unsubscription' => 'setUserUnsubscription', - 'admin_unsubscription' => 'setAdminUnsubscription' + 'userUnsubscription' => 'setUserUnsubscription', + 'adminUnsubscription' => 'setAdminUnsubscription' ]; @@ -102,8 +102,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'user_unsubscription' => 'getUserUnsubscription', - 'admin_unsubscription' => 'getAdminUnsubscription' + 'userUnsubscription' => 'getUserUnsubscription', + 'adminUnsubscription' => 'getAdminUnsubscription' ]; public static function attributeMap() @@ -137,8 +137,8 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['user_unsubscription'] = isset($data['user_unsubscription']) ? $data['user_unsubscription'] : null; - $this->container['admin_unsubscription'] = isset($data['admin_unsubscription']) ? $data['admin_unsubscription'] : null; + $this->container['userUnsubscription'] = isset($data['userUnsubscription']) ? $data['userUnsubscription'] : null; + $this->container['adminUnsubscription'] = isset($data['adminUnsubscription']) ? $data['adminUnsubscription'] : null; } /** @@ -150,11 +150,11 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['user_unsubscription'] === null) { - $invalid_properties[] = "'user_unsubscription' can't be null"; + if ($this->container['userUnsubscription'] === null) { + $invalid_properties[] = "'userUnsubscription' can't be null"; } - if ($this->container['admin_unsubscription'] === null) { - $invalid_properties[] = "'admin_unsubscription' can't be null"; + if ($this->container['adminUnsubscription'] === null) { + $invalid_properties[] = "'adminUnsubscription' can't be null"; } return $invalid_properties; } @@ -168,10 +168,10 @@ public function listInvalidProperties() public function valid() { - if ($this->container['user_unsubscription'] === null) { + if ($this->container['userUnsubscription'] === null) { return false; } - if ($this->container['admin_unsubscription'] === null) { + if ($this->container['adminUnsubscription'] === null) { return false; } return true; @@ -179,43 +179,43 @@ public function valid() /** - * Gets user_unsubscription - * @return \Swagger\Client\Model\InlineResponse20015UnsubscriptionsUserUnsubscription[] + * Gets userUnsubscription + * @return \Swagger\Client\Model\GetContactCampaignStatsUnsubscriptionsUserUnsubscription[] */ public function getUserUnsubscription() { - return $this->container['user_unsubscription']; + return $this->container['userUnsubscription']; } /** - * Sets user_unsubscription - * @param \Swagger\Client\Model\InlineResponse20015UnsubscriptionsUserUnsubscription[] $user_unsubscription Contact has unsubscribed via the unsubscription link in the email + * Sets userUnsubscription + * @param \Swagger\Client\Model\GetContactCampaignStatsUnsubscriptionsUserUnsubscription[] $userUnsubscription Contact has unsubscribed via the unsubscription link in the email * @return $this */ - public function setUserUnsubscription($user_unsubscription) + public function setUserUnsubscription($userUnsubscription) { - $this->container['user_unsubscription'] = $user_unsubscription; + $this->container['userUnsubscription'] = $userUnsubscription; return $this; } /** - * Gets admin_unsubscription - * @return \Swagger\Client\Model\InlineResponse20015UnsubscriptionsAdminUnsubscription[] + * Gets adminUnsubscription + * @return \Swagger\Client\Model\GetContactCampaignStatsUnsubscriptionsAdminUnsubscription[] */ public function getAdminUnsubscription() { - return $this->container['admin_unsubscription']; + return $this->container['adminUnsubscription']; } /** - * Sets admin_unsubscription - * @param \Swagger\Client\Model\InlineResponse20015UnsubscriptionsAdminUnsubscription[] $admin_unsubscription Contact has been unsubscribed from the administrator + * Sets adminUnsubscription + * @param \Swagger\Client\Model\GetContactCampaignStatsUnsubscriptionsAdminUnsubscription[] $adminUnsubscription Contact has been unsubscribed from the administrator * @return $this */ - public function setAdminUnsubscription($admin_unsubscription) + public function setAdminUnsubscription($adminUnsubscription) { - $this->container['admin_unsubscription'] = $admin_unsubscription; + $this->container['adminUnsubscription'] = $adminUnsubscription; return $this; } diff --git a/lib/Model/InlineResponse20015UnsubscriptionsAdminUnsubscription.php b/lib/Model/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.php old mode 100755 new mode 100644 similarity index 85% rename from lib/Model/InlineResponse20015UnsubscriptionsAdminUnsubscription.php rename to lib/Model/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.php index 3ede8ec1..7c1ef022 --- a/lib/Model/InlineResponse20015UnsubscriptionsAdminUnsubscription.php +++ b/lib/Model/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.php @@ -1,6 +1,6 @@ '\DateTime', + 'eventTime' => '\DateTime', 'ip' => 'string' ]; @@ -63,7 +63,7 @@ class InlineResponse20015UnsubscriptionsAdminUnsubscription implements ArrayAcce * @var string[] */ protected static $swaggerFormats = [ - 'event_time' => 'date-time', + 'eventTime' => 'date-time', 'ip' => null ]; @@ -82,7 +82,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'event_time' => 'eventTime', + 'eventTime' => 'eventTime', 'ip' => 'ip' ]; @@ -92,7 +92,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'event_time' => 'setEventTime', + 'eventTime' => 'setEventTime', 'ip' => 'setIp' ]; @@ -102,7 +102,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'event_time' => 'getEventTime', + 'eventTime' => 'getEventTime', 'ip' => 'getIp' ]; @@ -137,7 +137,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null; + $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } @@ -150,8 +150,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['event_time'] === null) { - $invalid_properties[] = "'event_time' can't be null"; + if ($this->container['eventTime'] === null) { + $invalid_properties[] = "'eventTime' can't be null"; } if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; @@ -168,7 +168,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['event_time'] === null) { + if ($this->container['eventTime'] === null) { return false; } if ($this->container['ip'] === null) { @@ -179,22 +179,22 @@ public function valid() /** - * Gets event_time + * Gets eventTime * @return \DateTime */ public function getEventTime() { - return $this->container['event_time']; + return $this->container['eventTime']; } /** - * Sets event_time - * @param \DateTime $event_time Date of the event + * Sets eventTime + * @param \DateTime $eventTime Date of the event * @return $this */ - public function setEventTime($event_time) + public function setEventTime($eventTime) { - $this->container['event_time'] = $event_time; + $this->container['eventTime'] = $eventTime; return $this; } diff --git a/lib/Model/InlineResponse20015UnsubscriptionsUserUnsubscription.php b/lib/Model/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.php old mode 100755 new mode 100644 similarity index 78% rename from lib/Model/InlineResponse20015UnsubscriptionsUserUnsubscription.php rename to lib/Model/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.php index 851994d7..4e27a35e --- a/lib/Model/InlineResponse20015UnsubscriptionsUserUnsubscription.php +++ b/lib/Model/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.php @@ -1,6 +1,6 @@ 'int', - 'event_time' => '\DateTime', + 'campaignId' => 'int', + 'eventTime' => '\DateTime', 'ip' => 'string' ]; @@ -64,8 +64,8 @@ class InlineResponse20015UnsubscriptionsUserUnsubscription implements ArrayAcces * @var string[] */ protected static $swaggerFormats = [ - 'campaign_id' => 'int32', - 'event_time' => 'date-time', + 'campaignId' => 'int32', + 'eventTime' => 'date-time', 'ip' => null ]; @@ -84,8 +84,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'campaign_id' => 'campaignId', - 'event_time' => 'eventTime', + 'campaignId' => 'campaignId', + 'eventTime' => 'eventTime', 'ip' => 'ip' ]; @@ -95,8 +95,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'campaign_id' => 'setCampaignId', - 'event_time' => 'setEventTime', + 'campaignId' => 'setCampaignId', + 'eventTime' => 'setEventTime', 'ip' => 'setIp' ]; @@ -106,8 +106,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'campaign_id' => 'getCampaignId', - 'event_time' => 'getEventTime', + 'campaignId' => 'getCampaignId', + 'eventTime' => 'getEventTime', 'ip' => 'getIp' ]; @@ -142,8 +142,8 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['campaign_id'] = isset($data['campaign_id']) ? $data['campaign_id'] : null; - $this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null; + $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; + $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } @@ -156,11 +156,11 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['campaign_id'] === null) { - $invalid_properties[] = "'campaign_id' can't be null"; + if ($this->container['campaignId'] === null) { + $invalid_properties[] = "'campaignId' can't be null"; } - if ($this->container['event_time'] === null) { - $invalid_properties[] = "'event_time' can't be null"; + if ($this->container['eventTime'] === null) { + $invalid_properties[] = "'eventTime' can't be null"; } if ($this->container['ip'] === null) { $invalid_properties[] = "'ip' can't be null"; @@ -177,10 +177,10 @@ public function listInvalidProperties() public function valid() { - if ($this->container['campaign_id'] === null) { + if ($this->container['campaignId'] === null) { return false; } - if ($this->container['event_time'] === null) { + if ($this->container['eventTime'] === null) { return false; } if ($this->container['ip'] === null) { @@ -191,43 +191,43 @@ public function valid() /** - * Gets campaign_id + * Gets campaignId * @return int */ public function getCampaignId() { - return $this->container['campaign_id']; + return $this->container['campaignId']; } /** - * Sets campaign_id - * @param int $campaign_id ID of the campaign which generated the event + * Sets campaignId + * @param int $campaignId ID of the campaign which generated the event * @return $this */ - public function setCampaignId($campaign_id) + public function setCampaignId($campaignId) { - $this->container['campaign_id'] = $campaign_id; + $this->container['campaignId'] = $campaignId; return $this; } /** - * Gets event_time + * Gets eventTime * @return \DateTime */ public function getEventTime() { - return $this->container['event_time']; + return $this->container['eventTime']; } /** - * Sets event_time - * @param \DateTime $event_time Date of the event + * Sets eventTime + * @param \DateTime $eventTime Date of the event * @return $this */ - public function setEventTime($event_time) + public function setEventTime($eventTime) { - $this->container['event_time'] = $event_time; + $this->container['eventTime'] = $eventTime; return $this; } diff --git a/lib/Model/GetContactDetails.php b/lib/Model/GetContactDetails.php old mode 100755 new mode 100644 index 5098c9b9..7af3e984 --- a/lib/Model/GetContactDetails.php +++ b/lib/Model/GetContactDetails.php @@ -56,11 +56,11 @@ class GetContactDetails implements ArrayAccess protected static $swaggerTypes = [ 'email' => 'string', 'id' => 'int', - 'email_blacklisted' => 'bool', - 'sms_blacklisted' => 'bool', - 'modified_at' => '\DateTime', - 'list_ids' => 'int[]', - 'list_unsubscribed' => 'int[]', + 'emailBlacklisted' => 'bool', + 'smsBlacklisted' => 'bool', + 'modifiedAt' => '\DateTime', + 'listIds' => 'int[]', + 'listUnsubscribed' => 'int[]', 'attributes' => 'map[string,string]' ]; @@ -71,11 +71,11 @@ class GetContactDetails implements ArrayAccess protected static $swaggerFormats = [ 'email' => 'email', 'id' => 'int32', - 'email_blacklisted' => null, - 'sms_blacklisted' => null, - 'modified_at' => 'date-time', - 'list_ids' => 'int32', - 'list_unsubscribed' => 'int32', + 'emailBlacklisted' => null, + 'smsBlacklisted' => null, + 'modifiedAt' => 'date-time', + 'listIds' => 'int32', + 'listUnsubscribed' => 'int32', 'attributes' => null ]; @@ -96,11 +96,11 @@ public static function swaggerFormats() protected static $attributeMap = [ 'email' => 'email', 'id' => 'id', - 'email_blacklisted' => 'emailBlacklisted', - 'sms_blacklisted' => 'smsBlacklisted', - 'modified_at' => 'modifiedAt', - 'list_ids' => 'listIds', - 'list_unsubscribed' => 'listUnsubscribed', + 'emailBlacklisted' => 'emailBlacklisted', + 'smsBlacklisted' => 'smsBlacklisted', + 'modifiedAt' => 'modifiedAt', + 'listIds' => 'listIds', + 'listUnsubscribed' => 'listUnsubscribed', 'attributes' => 'attributes' ]; @@ -112,11 +112,11 @@ public static function swaggerFormats() protected static $setters = [ 'email' => 'setEmail', 'id' => 'setId', - 'email_blacklisted' => 'setEmailBlacklisted', - 'sms_blacklisted' => 'setSmsBlacklisted', - 'modified_at' => 'setModifiedAt', - 'list_ids' => 'setListIds', - 'list_unsubscribed' => 'setListUnsubscribed', + 'emailBlacklisted' => 'setEmailBlacklisted', + 'smsBlacklisted' => 'setSmsBlacklisted', + 'modifiedAt' => 'setModifiedAt', + 'listIds' => 'setListIds', + 'listUnsubscribed' => 'setListUnsubscribed', 'attributes' => 'setAttributes' ]; @@ -128,11 +128,11 @@ public static function swaggerFormats() protected static $getters = [ 'email' => 'getEmail', 'id' => 'getId', - 'email_blacklisted' => 'getEmailBlacklisted', - 'sms_blacklisted' => 'getSmsBlacklisted', - 'modified_at' => 'getModifiedAt', - 'list_ids' => 'getListIds', - 'list_unsubscribed' => 'getListUnsubscribed', + 'emailBlacklisted' => 'getEmailBlacklisted', + 'smsBlacklisted' => 'getSmsBlacklisted', + 'modifiedAt' => 'getModifiedAt', + 'listIds' => 'getListIds', + 'listUnsubscribed' => 'getListUnsubscribed', 'attributes' => 'getAttributes' ]; @@ -169,11 +169,11 @@ public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; - $this->container['email_blacklisted'] = isset($data['email_blacklisted']) ? $data['email_blacklisted'] : null; - $this->container['sms_blacklisted'] = isset($data['sms_blacklisted']) ? $data['sms_blacklisted'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - $this->container['list_unsubscribed'] = isset($data['list_unsubscribed']) ? $data['list_unsubscribed'] : null; + $this->container['emailBlacklisted'] = isset($data['emailBlacklisted']) ? $data['emailBlacklisted'] : null; + $this->container['smsBlacklisted'] = isset($data['smsBlacklisted']) ? $data['smsBlacklisted'] : null; + $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; + $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; + $this->container['listUnsubscribed'] = isset($data['listUnsubscribed']) ? $data['listUnsubscribed'] : null; $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; } @@ -192,17 +192,17 @@ public function listInvalidProperties() if ($this->container['id'] === null) { $invalid_properties[] = "'id' can't be null"; } - if ($this->container['email_blacklisted'] === null) { - $invalid_properties[] = "'email_blacklisted' can't be null"; + if ($this->container['emailBlacklisted'] === null) { + $invalid_properties[] = "'emailBlacklisted' can't be null"; } - if ($this->container['sms_blacklisted'] === null) { - $invalid_properties[] = "'sms_blacklisted' can't be null"; + if ($this->container['smsBlacklisted'] === null) { + $invalid_properties[] = "'smsBlacklisted' can't be null"; } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; + if ($this->container['modifiedAt'] === null) { + $invalid_properties[] = "'modifiedAt' can't be null"; } - if ($this->container['list_ids'] === null) { - $invalid_properties[] = "'list_ids' can't be null"; + if ($this->container['listIds'] === null) { + $invalid_properties[] = "'listIds' can't be null"; } if ($this->container['attributes'] === null) { $invalid_properties[] = "'attributes' can't be null"; @@ -225,16 +225,16 @@ public function valid() if ($this->container['id'] === null) { return false; } - if ($this->container['email_blacklisted'] === null) { + if ($this->container['emailBlacklisted'] === null) { return false; } - if ($this->container['sms_blacklisted'] === null) { + if ($this->container['smsBlacklisted'] === null) { return false; } - if ($this->container['modified_at'] === null) { + if ($this->container['modifiedAt'] === null) { return false; } - if ($this->container['list_ids'] === null) { + if ($this->container['listIds'] === null) { return false; } if ($this->container['attributes'] === null) { @@ -287,106 +287,106 @@ public function setId($id) } /** - * Gets email_blacklisted + * Gets emailBlacklisted * @return bool */ public function getEmailBlacklisted() { - return $this->container['email_blacklisted']; + return $this->container['emailBlacklisted']; } /** - * Sets email_blacklisted - * @param bool $email_blacklisted Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) + * Sets emailBlacklisted + * @param bool $emailBlacklisted Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) * @return $this */ - public function setEmailBlacklisted($email_blacklisted) + public function setEmailBlacklisted($emailBlacklisted) { - $this->container['email_blacklisted'] = $email_blacklisted; + $this->container['emailBlacklisted'] = $emailBlacklisted; return $this; } /** - * Gets sms_blacklisted + * Gets smsBlacklisted * @return bool */ public function getSmsBlacklisted() { - return $this->container['sms_blacklisted']; + return $this->container['smsBlacklisted']; } /** - * Sets sms_blacklisted - * @param bool $sms_blacklisted Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) + * Sets smsBlacklisted + * @param bool $smsBlacklisted Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) * @return $this */ - public function setSmsBlacklisted($sms_blacklisted) + public function setSmsBlacklisted($smsBlacklisted) { - $this->container['sms_blacklisted'] = $sms_blacklisted; + $this->container['smsBlacklisted'] = $smsBlacklisted; return $this; } /** - * Gets modified_at + * Gets modifiedAt * @return \DateTime */ public function getModifiedAt() { - return $this->container['modified_at']; + return $this->container['modifiedAt']; } /** - * Sets modified_at - * @param \DateTime $modified_at Last modification date of the contact + * Sets modifiedAt + * @param \DateTime $modifiedAt Last modification date of the contact * @return $this */ - public function setModifiedAt($modified_at) + public function setModifiedAt($modifiedAt) { - $this->container['modified_at'] = $modified_at; + $this->container['modifiedAt'] = $modifiedAt; return $this; } /** - * Gets list_ids + * Gets listIds * @return int[] */ public function getListIds() { - return $this->container['list_ids']; + return $this->container['listIds']; } /** - * Sets list_ids - * @param int[] $list_ids + * Sets listIds + * @param int[] $listIds * @return $this */ - public function setListIds($list_ids) + public function setListIds($listIds) { - $this->container['list_ids'] = $list_ids; + $this->container['listIds'] = $listIds; return $this; } /** - * Gets list_unsubscribed + * Gets listUnsubscribed * @return int[] */ public function getListUnsubscribed() { - return $this->container['list_unsubscribed']; + return $this->container['listUnsubscribed']; } /** - * Sets list_unsubscribed - * @param int[] $list_unsubscribed + * Sets listUnsubscribed + * @param int[] $listUnsubscribed * @return $this */ - public function setListUnsubscribed($list_unsubscribed) + public function setListUnsubscribed($listUnsubscribed) { - $this->container['list_unsubscribed'] = $list_unsubscribed; + $this->container['listUnsubscribed'] = $listUnsubscribed; return $this; } diff --git a/lib/Model/GetContacts.php b/lib/Model/GetContacts.php old mode 100755 new mode 100644 index 8830f549..33570d2e --- a/lib/Model/GetContacts.php +++ b/lib/Model/GetContacts.php @@ -54,7 +54,7 @@ class GetContacts implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'contacts' => '\Swagger\Client\Model\InlineResponse20014Contacts[]', + 'contacts' => 'object[]', 'count' => 'int' ]; @@ -180,7 +180,7 @@ public function valid() /** * Gets contacts - * @return \Swagger\Client\Model\InlineResponse20014Contacts[] + * @return object[] */ public function getContacts() { @@ -189,7 +189,7 @@ public function getContacts() /** * Sets contacts - * @param \Swagger\Client\Model\InlineResponse20014Contacts[] $contacts + * @param object[] $contacts * @return $this */ public function setContacts($contacts) diff --git a/lib/Model/GetEmailCampaign.php b/lib/Model/GetEmailCampaign.php old mode 100755 new mode 100644 index 29109def..d85b7021 --- a/lib/Model/GetEmailCampaign.php +++ b/lib/Model/GetEmailCampaign.php @@ -59,23 +59,21 @@ class GetEmailCampaign implements ArrayAccess 'subject' => 'string', 'type' => 'string', 'status' => 'string', - 'scheduled_at' => 'string', - 'test_sent' => 'bool', + 'scheduledAt' => 'string', + 'testSent' => 'bool', 'header' => 'string', 'footer' => 'string', - 'sender' => '\Swagger\Client\Model\InlineResponse2008Sender', - 'reply_to' => 'string', - 'to_field' => 'string', - 'html_content' => 'string', - 'share_link' => 'string', + 'sender' => '\Swagger\Client\Model\GetExtendedCampaignOverviewSender', + 'replyTo' => 'string', + 'toField' => 'string', + 'htmlContent' => 'string', + 'shareLink' => 'string', 'tag' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string', - 'inline_image_activation' => 'bool', - 'mirror_active' => 'bool', - 'recurring' => 'bool', - 'recipients' => '\Swagger\Client\Model\InlineResponse2008Recipients', - 'statistics' => '\Swagger\Client\Model\InlineResponse2008Statistics' + 'createdAt' => 'string', + 'modifiedAt' => 'string', + 'inlineImageActivation' => 'bool', + 'mirrorActive' => 'bool', + 'recurring' => 'bool' ]; /** @@ -88,23 +86,21 @@ class GetEmailCampaign implements ArrayAccess 'subject' => null, 'type' => null, 'status' => null, - 'scheduled_at' => null, - 'test_sent' => null, + 'scheduledAt' => null, + 'testSent' => null, 'header' => null, 'footer' => null, 'sender' => null, - 'reply_to' => 'email', - 'to_field' => 'email', - 'html_content' => null, - 'share_link' => 'url', + 'replyTo' => 'email', + 'toField' => 'email', + 'htmlContent' => null, + 'shareLink' => 'url', 'tag' => null, - 'created_at' => null, - 'modified_at' => null, - 'inline_image_activation' => null, - 'mirror_active' => null, - 'recurring' => null, - 'recipients' => null, - 'statistics' => null + 'createdAt' => null, + 'modifiedAt' => null, + 'inlineImageActivation' => null, + 'mirrorActive' => null, + 'recurring' => null ]; public static function swaggerTypes() @@ -127,23 +123,21 @@ public static function swaggerFormats() 'subject' => 'subject', 'type' => 'type', 'status' => 'status', - 'scheduled_at' => 'scheduledAt', - 'test_sent' => 'testSent', + 'scheduledAt' => 'scheduledAt', + 'testSent' => 'testSent', 'header' => 'header', 'footer' => 'footer', 'sender' => 'sender', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'html_content' => 'htmlContent', - 'share_link' => 'shareLink', + 'replyTo' => 'replyTo', + 'toField' => 'toField', + 'htmlContent' => 'htmlContent', + 'shareLink' => 'shareLink', 'tag' => 'tag', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt', - 'inline_image_activation' => 'inlineImageActivation', - 'mirror_active' => 'mirrorActive', - 'recurring' => 'recurring', - 'recipients' => 'recipients', - 'statistics' => 'statistics' + 'createdAt' => 'createdAt', + 'modifiedAt' => 'modifiedAt', + 'inlineImageActivation' => 'inlineImageActivation', + 'mirrorActive' => 'mirrorActive', + 'recurring' => 'recurring' ]; @@ -157,23 +151,21 @@ public static function swaggerFormats() 'subject' => 'setSubject', 'type' => 'setType', 'status' => 'setStatus', - 'scheduled_at' => 'setScheduledAt', - 'test_sent' => 'setTestSent', + 'scheduledAt' => 'setScheduledAt', + 'testSent' => 'setTestSent', 'header' => 'setHeader', 'footer' => 'setFooter', 'sender' => 'setSender', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'html_content' => 'setHtmlContent', - 'share_link' => 'setShareLink', + 'replyTo' => 'setReplyTo', + 'toField' => 'setToField', + 'htmlContent' => 'setHtmlContent', + 'shareLink' => 'setShareLink', 'tag' => 'setTag', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt', - 'inline_image_activation' => 'setInlineImageActivation', - 'mirror_active' => 'setMirrorActive', - 'recurring' => 'setRecurring', - 'recipients' => 'setRecipients', - 'statistics' => 'setStatistics' + 'createdAt' => 'setCreatedAt', + 'modifiedAt' => 'setModifiedAt', + 'inlineImageActivation' => 'setInlineImageActivation', + 'mirrorActive' => 'setMirrorActive', + 'recurring' => 'setRecurring' ]; @@ -187,23 +179,21 @@ public static function swaggerFormats() 'subject' => 'getSubject', 'type' => 'getType', 'status' => 'getStatus', - 'scheduled_at' => 'getScheduledAt', - 'test_sent' => 'getTestSent', + 'scheduledAt' => 'getScheduledAt', + 'testSent' => 'getTestSent', 'header' => 'getHeader', 'footer' => 'getFooter', 'sender' => 'getSender', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'html_content' => 'getHtmlContent', - 'share_link' => 'getShareLink', + 'replyTo' => 'getReplyTo', + 'toField' => 'getToField', + 'htmlContent' => 'getHtmlContent', + 'shareLink' => 'getShareLink', 'tag' => 'getTag', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt', - 'inline_image_activation' => 'getInlineImageActivation', - 'mirror_active' => 'getMirrorActive', - 'recurring' => 'getRecurring', - 'recipients' => 'getRecipients', - 'statistics' => 'getStatistics' + 'createdAt' => 'getCreatedAt', + 'modifiedAt' => 'getModifiedAt', + 'inlineImageActivation' => 'getInlineImageActivation', + 'mirrorActive' => 'getMirrorActive', + 'recurring' => 'getRecurring' ]; public static function attributeMap() @@ -278,23 +268,21 @@ public function __construct(array $data = null) $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; + $this->container['testSent'] = isset($data['testSent']) ? $data['testSent'] : null; $this->container['header'] = isset($data['header']) ? $data['header'] : null; $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['share_link'] = isset($data['share_link']) ? $data['share_link'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; + $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; + $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; + $this->container['shareLink'] = isset($data['shareLink']) ? $data['shareLink'] : null; $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - $this->container['inline_image_activation'] = isset($data['inline_image_activation']) ? $data['inline_image_activation'] : null; - $this->container['mirror_active'] = isset($data['mirror_active']) ? $data['mirror_active'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; + $this->container['inlineImageActivation'] = isset($data['inlineImageActivation']) ? $data['inlineImageActivation'] : null; + $this->container['mirrorActive'] = isset($data['mirrorActive']) ? $data['mirrorActive'] : null; $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : null; - $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null; } /** @@ -337,15 +325,15 @@ public function listInvalidProperties() ); } - if ($this->container['scheduled_at'] === null) { - $invalid_properties[] = "'scheduled_at' can't be null"; + if ($this->container['scheduledAt'] === null) { + $invalid_properties[] = "'scheduledAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; + if ($this->container['testSent'] === null) { + $invalid_properties[] = "'testSent' can't be null"; } if ($this->container['header'] === null) { $invalid_properties[] = "'header' can't be null"; @@ -353,33 +341,33 @@ public function listInvalidProperties() if ($this->container['footer'] === null) { $invalid_properties[] = "'footer' can't be null"; } - if ($this->container['reply_to'] === null) { - $invalid_properties[] = "'reply_to' can't be null"; + if ($this->container['replyTo'] === null) { + $invalid_properties[] = "'replyTo' can't be null"; } - if ($this->container['to_field'] === null) { - $invalid_properties[] = "'to_field' can't be null"; + if ($this->container['toField'] === null) { + $invalid_properties[] = "'toField' can't be null"; } - if ($this->container['html_content'] === null) { - $invalid_properties[] = "'html_content' can't be null"; + if ($this->container['htmlContent'] === null) { + $invalid_properties[] = "'htmlContent' can't be null"; } - if ($this->container['share_link'] === null) { - $invalid_properties[] = "'share_link' can't be null"; + if ($this->container['shareLink'] === null) { + $invalid_properties[] = "'shareLink' can't be null"; } if ($this->container['tag'] === null) { $invalid_properties[] = "'tag' can't be null"; } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; + if ($this->container['createdAt'] === null) { + $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { + $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; + if ($this->container['modifiedAt'] === null) { + $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { + $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -417,13 +405,13 @@ public function valid() if (!in_array($this->container['status'], $allowed_values)) { return false; } - if ($this->container['scheduled_at'] === null) { + if ($this->container['scheduledAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } - if ($this->container['test_sent'] === null) { + if ($this->container['testSent'] === null) { return false; } if ($this->container['header'] === null) { @@ -432,31 +420,31 @@ public function valid() if ($this->container['footer'] === null) { return false; } - if ($this->container['reply_to'] === null) { + if ($this->container['replyTo'] === null) { return false; } - if ($this->container['to_field'] === null) { + if ($this->container['toField'] === null) { return false; } - if ($this->container['html_content'] === null) { + if ($this->container['htmlContent'] === null) { return false; } - if ($this->container['share_link'] === null) { + if ($this->container['shareLink'] === null) { return false; } if ($this->container['tag'] === null) { return false; } - if ($this->container['created_at'] === null) { + if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { return false; } - if ($this->container['modified_at'] === null) { + if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { return false; } return true; @@ -587,48 +575,48 @@ public function setStatus($status) } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Date on which campaign is scheduled + * Sets scheduledAt + * @param string $scheduledAt Date on which campaign is scheduled * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling GetEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } /** - * Gets test_sent + * Gets testSent * @return bool */ public function getTestSent() { - return $this->container['test_sent']; + return $this->container['testSent']; } /** - * Sets test_sent - * @param bool $test_sent Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) + * Sets testSent + * @param bool $testSent Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) * @return $this */ - public function setTestSent($test_sent) + public function setTestSent($testSent) { - $this->container['test_sent'] = $test_sent; + $this->container['testSent'] = $testSent; return $this; } @@ -677,7 +665,7 @@ public function setFooter($footer) /** * Gets sender - * @return \Swagger\Client\Model\InlineResponse2008Sender + * @return \Swagger\Client\Model\GetExtendedCampaignOverviewSender */ public function getSender() { @@ -686,7 +674,7 @@ public function getSender() /** * Sets sender - * @param \Swagger\Client\Model\InlineResponse2008Sender $sender + * @param \Swagger\Client\Model\GetExtendedCampaignOverviewSender $sender * @return $this */ public function setSender($sender) @@ -697,85 +685,85 @@ public function setSender($sender) } /** - * Gets reply_to + * Gets replyTo * @return string */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param string $reply_to Email defined as the \"Reply to\" of the campaign + * Sets replyTo + * @param string $replyTo Email defined as the \"Reply to\" of the campaign * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** - * Gets to_field + * Gets toField * @return string */ public function getToField() { - return $this->container['to_field']; + return $this->container['toField']; } /** - * Sets to_field - * @param string $to_field Customisation of the \"to\" field of the campaign + * Sets toField + * @param string $toField Customisation of the \"to\" field of the campaign * @return $this */ - public function setToField($to_field) + public function setToField($toField) { - $this->container['to_field'] = $to_field; + $this->container['toField'] = $toField; return $this; } /** - * Gets html_content + * Gets htmlContent * @return string */ public function getHtmlContent() { - return $this->container['html_content']; + return $this->container['htmlContent']; } /** - * Sets html_content - * @param string $html_content HTML content of the campaign + * Sets htmlContent + * @param string $htmlContent HTML content of the campaign * @return $this */ - public function setHtmlContent($html_content) + public function setHtmlContent($htmlContent) { - $this->container['html_content'] = $html_content; + $this->container['htmlContent'] = $htmlContent; return $this; } /** - * Gets share_link + * Gets shareLink * @return string */ public function getShareLink() { - return $this->container['share_link']; + return $this->container['shareLink']; } /** - * Sets share_link - * @param string $share_link Link to share the campaign on social medias + * Sets shareLink + * @param string $shareLink Link to share the campaign on social medias * @return $this */ - public function setShareLink($share_link) + public function setShareLink($shareLink) { - $this->container['share_link'] = $share_link; + $this->container['shareLink'] = $shareLink; return $this; } @@ -802,95 +790,95 @@ public function setTag($tag) } /** - * Gets created_at + * Gets createdAt * @return string */ public function getCreatedAt() { - return $this->container['created_at']; + return $this->container['createdAt']; } /** - * Sets created_at - * @param string $created_at Creation date of the campaign + * Sets createdAt + * @param string $createdAt Creation date of the campaign * @return $this */ - public function setCreatedAt($created_at) + public function setCreatedAt($createdAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling GetEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $createdAt))) { + throw new \InvalidArgumentException("invalid value for $createdAt when calling GetEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['created_at'] = $created_at; + $this->container['createdAt'] = $createdAt; return $this; } /** - * Gets modified_at + * Gets modifiedAt * @return string */ public function getModifiedAt() { - return $this->container['modified_at']; + return $this->container['modifiedAt']; } /** - * Sets modified_at - * @param string $modified_at Date of last modification of the campaign + * Sets modifiedAt + * @param string $modifiedAt Date of last modification of the campaign * @return $this */ - public function setModifiedAt($modified_at) + public function setModifiedAt($modifiedAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling GetEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedAt))) { + throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['modified_at'] = $modified_at; + $this->container['modifiedAt'] = $modifiedAt; return $this; } /** - * Gets inline_image_activation + * Gets inlineImageActivation * @return bool */ public function getInlineImageActivation() { - return $this->container['inline_image_activation']; + return $this->container['inlineImageActivation']; } /** - * Sets inline_image_activation - * @param bool $inline_image_activation Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. + * Sets inlineImageActivation + * @param bool $inlineImageActivation Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. * @return $this */ - public function setInlineImageActivation($inline_image_activation) + public function setInlineImageActivation($inlineImageActivation) { - $this->container['inline_image_activation'] = $inline_image_activation; + $this->container['inlineImageActivation'] = $inlineImageActivation; return $this; } /** - * Gets mirror_active + * Gets mirrorActive * @return bool */ public function getMirrorActive() { - return $this->container['mirror_active']; + return $this->container['mirrorActive']; } /** - * Sets mirror_active - * @param bool $mirror_active Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign + * Sets mirrorActive + * @param bool $mirrorActive Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign * @return $this */ - public function setMirrorActive($mirror_active) + public function setMirrorActive($mirrorActive) { - $this->container['mirror_active'] = $mirror_active; + $this->container['mirrorActive'] = $mirrorActive; return $this; } @@ -915,48 +903,6 @@ public function setRecurring($recurring) return $this; } - - /** - * Gets recipients - * @return \Swagger\Client\Model\InlineResponse2008Recipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\InlineResponse2008Recipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets statistics - * @return \Swagger\Client\Model\InlineResponse2008Statistics - */ - public function getStatistics() - { - return $this->container['statistics']; - } - - /** - * Sets statistics - * @param \Swagger\Client\Model\InlineResponse2008Statistics $statistics - * @return $this - */ - public function setStatistics($statistics) - { - $this->container['statistics'] = $statistics; - - return $this; - } /** * Returns true if offset exists. False otherwise. * @param integer $offset Offset diff --git a/lib/Model/GetEmailCampaigns.php b/lib/Model/GetEmailCampaigns.php old mode 100755 new mode 100644 index 045bdfdd..4c42fadb --- a/lib/Model/GetEmailCampaigns.php +++ b/lib/Model/GetEmailCampaigns.php @@ -54,7 +54,7 @@ class GetEmailCampaigns implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'campaigns' => '\Swagger\Client\Model\InlineResponse2008Campaigns[]', + 'campaigns' => 'null[]', 'count' => 'int' ]; @@ -174,7 +174,7 @@ public function valid() /** * Gets campaigns - * @return \Swagger\Client\Model\InlineResponse2008Campaigns[] + * @return null[] */ public function getCampaigns() { @@ -183,7 +183,7 @@ public function getCampaigns() /** * Sets campaigns - * @param \Swagger\Client\Model\InlineResponse2008Campaigns[] $campaigns + * @param null[] $campaigns * @return $this */ public function setCampaigns($campaigns) diff --git a/lib/Model/GetEmailEventReport.php b/lib/Model/GetEmailEventReport.php old mode 100755 new mode 100644 index 359dbd7b..3f43d592 --- a/lib/Model/GetEmailEventReport.php +++ b/lib/Model/GetEmailEventReport.php @@ -54,7 +54,7 @@ class GetEmailEventReport implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'events' => '\Swagger\Client\Model\InlineResponse20011Events[]' + 'events' => '\Swagger\Client\Model\GetEmailEventReportEvents[]' ]; /** @@ -162,7 +162,7 @@ public function valid() /** * Gets events - * @return \Swagger\Client\Model\InlineResponse20011Events[] + * @return \Swagger\Client\Model\GetEmailEventReportEvents[] */ public function getEvents() { @@ -171,7 +171,7 @@ public function getEvents() /** * Sets events - * @param \Swagger\Client\Model\InlineResponse20011Events[] $events + * @param \Swagger\Client\Model\GetEmailEventReportEvents[] $events * @return $this */ public function setEvents($events) diff --git a/lib/Model/InlineResponse20011Events.php b/lib/Model/GetEmailEventReportEvents.php old mode 100755 new mode 100644 similarity index 92% rename from lib/Model/InlineResponse20011Events.php rename to lib/Model/GetEmailEventReportEvents.php index 567efe52..1d2a4e1b --- a/lib/Model/InlineResponse20011Events.php +++ b/lib/Model/GetEmailEventReportEvents.php @@ -1,6 +1,6 @@ 'string', 'date' => '\DateTime', - 'message_id' => 'string', + 'messageId' => 'string', 'event' => 'string', 'reason' => 'string', 'tag' => 'string', @@ -70,7 +70,7 @@ class InlineResponse20011Events implements ArrayAccess protected static $swaggerFormats = [ 'email' => 'email', 'date' => 'date', - 'message_id' => null, + 'messageId' => null, 'event' => null, 'reason' => null, 'tag' => null, @@ -94,7 +94,7 @@ public static function swaggerFormats() protected static $attributeMap = [ 'email' => 'email', 'date' => 'date', - 'message_id' => 'messageId', + 'messageId' => 'messageId', 'event' => 'event', 'reason' => 'reason', 'tag' => 'tag', @@ -109,7 +109,7 @@ public static function swaggerFormats() protected static $setters = [ 'email' => 'setEmail', 'date' => 'setDate', - 'message_id' => 'setMessageId', + 'messageId' => 'setMessageId', 'event' => 'setEvent', 'reason' => 'setReason', 'tag' => 'setTag', @@ -124,7 +124,7 @@ public static function swaggerFormats() protected static $getters = [ 'email' => 'getEmail', 'date' => 'getDate', - 'message_id' => 'getMessageId', + 'messageId' => 'getMessageId', 'event' => 'getEvent', 'reason' => 'getReason', 'tag' => 'getTag', @@ -196,7 +196,7 @@ public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['date'] = isset($data['date']) ? $data['date'] : null; - $this->container['message_id'] = isset($data['message_id']) ? $data['message_id'] : null; + $this->container['messageId'] = isset($data['messageId']) ? $data['messageId'] : null; $this->container['event'] = isset($data['event']) ? $data['event'] : null; $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; @@ -218,8 +218,8 @@ public function listInvalidProperties() if ($this->container['date'] === null) { $invalid_properties[] = "'date' can't be null"; } - if ($this->container['message_id'] === null) { - $invalid_properties[] = "'message_id' can't be null"; + if ($this->container['messageId'] === null) { + $invalid_properties[] = "'messageId' can't be null"; } if ($this->container['event'] === null) { $invalid_properties[] = "'event' can't be null"; @@ -256,7 +256,7 @@ public function valid() if ($this->container['date'] === null) { return false; } - if ($this->container['message_id'] === null) { + if ($this->container['messageId'] === null) { return false; } if ($this->container['event'] === null) { @@ -319,22 +319,22 @@ public function setDate($date) } /** - * Gets message_id + * Gets messageId * @return string */ public function getMessageId() { - return $this->container['message_id']; + return $this->container['messageId']; } /** - * Sets message_id - * @param string $message_id Message ID which generated the event + * Sets messageId + * @param string $messageId Message ID which generated the event * @return $this */ - public function setMessageId($message_id) + public function setMessageId($messageId) { - $this->container['message_id'] = $message_id; + $this->container['messageId'] = $messageId; return $this; } diff --git a/lib/Model/GetExtendedCampaignOverview.php b/lib/Model/GetExtendedCampaignOverview.php old mode 100755 new mode 100644 index 33e26fd7..cce4c504 --- a/lib/Model/GetExtendedCampaignOverview.php +++ b/lib/Model/GetExtendedCampaignOverview.php @@ -59,20 +59,20 @@ class GetExtendedCampaignOverview implements ArrayAccess 'subject' => 'string', 'type' => 'string', 'status' => 'string', - 'scheduled_at' => 'string', - 'test_sent' => 'bool', + 'scheduledAt' => 'string', + 'testSent' => 'bool', 'header' => 'string', 'footer' => 'string', - 'sender' => '\Swagger\Client\Model\InlineResponse2008Sender', - 'reply_to' => 'string', - 'to_field' => 'string', - 'html_content' => 'string', - 'share_link' => 'string', + 'sender' => '\Swagger\Client\Model\GetExtendedCampaignOverviewSender', + 'replyTo' => 'string', + 'toField' => 'string', + 'htmlContent' => 'string', + 'shareLink' => 'string', 'tag' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string', - 'inline_image_activation' => 'bool', - 'mirror_active' => 'bool', + 'createdAt' => 'string', + 'modifiedAt' => 'string', + 'inlineImageActivation' => 'bool', + 'mirrorActive' => 'bool', 'recurring' => 'bool' ]; @@ -86,20 +86,20 @@ class GetExtendedCampaignOverview implements ArrayAccess 'subject' => null, 'type' => null, 'status' => null, - 'scheduled_at' => null, - 'test_sent' => null, + 'scheduledAt' => null, + 'testSent' => null, 'header' => null, 'footer' => null, 'sender' => null, - 'reply_to' => 'email', - 'to_field' => 'email', - 'html_content' => null, - 'share_link' => 'url', + 'replyTo' => 'email', + 'toField' => 'email', + 'htmlContent' => null, + 'shareLink' => 'url', 'tag' => null, - 'created_at' => null, - 'modified_at' => null, - 'inline_image_activation' => null, - 'mirror_active' => null, + 'createdAt' => null, + 'modifiedAt' => null, + 'inlineImageActivation' => null, + 'mirrorActive' => null, 'recurring' => null ]; @@ -123,20 +123,20 @@ public static function swaggerFormats() 'subject' => 'subject', 'type' => 'type', 'status' => 'status', - 'scheduled_at' => 'scheduledAt', - 'test_sent' => 'testSent', + 'scheduledAt' => 'scheduledAt', + 'testSent' => 'testSent', 'header' => 'header', 'footer' => 'footer', 'sender' => 'sender', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'html_content' => 'htmlContent', - 'share_link' => 'shareLink', + 'replyTo' => 'replyTo', + 'toField' => 'toField', + 'htmlContent' => 'htmlContent', + 'shareLink' => 'shareLink', 'tag' => 'tag', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt', - 'inline_image_activation' => 'inlineImageActivation', - 'mirror_active' => 'mirrorActive', + 'createdAt' => 'createdAt', + 'modifiedAt' => 'modifiedAt', + 'inlineImageActivation' => 'inlineImageActivation', + 'mirrorActive' => 'mirrorActive', 'recurring' => 'recurring' ]; @@ -151,20 +151,20 @@ public static function swaggerFormats() 'subject' => 'setSubject', 'type' => 'setType', 'status' => 'setStatus', - 'scheduled_at' => 'setScheduledAt', - 'test_sent' => 'setTestSent', + 'scheduledAt' => 'setScheduledAt', + 'testSent' => 'setTestSent', 'header' => 'setHeader', 'footer' => 'setFooter', 'sender' => 'setSender', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'html_content' => 'setHtmlContent', - 'share_link' => 'setShareLink', + 'replyTo' => 'setReplyTo', + 'toField' => 'setToField', + 'htmlContent' => 'setHtmlContent', + 'shareLink' => 'setShareLink', 'tag' => 'setTag', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt', - 'inline_image_activation' => 'setInlineImageActivation', - 'mirror_active' => 'setMirrorActive', + 'createdAt' => 'setCreatedAt', + 'modifiedAt' => 'setModifiedAt', + 'inlineImageActivation' => 'setInlineImageActivation', + 'mirrorActive' => 'setMirrorActive', 'recurring' => 'setRecurring' ]; @@ -179,20 +179,20 @@ public static function swaggerFormats() 'subject' => 'getSubject', 'type' => 'getType', 'status' => 'getStatus', - 'scheduled_at' => 'getScheduledAt', - 'test_sent' => 'getTestSent', + 'scheduledAt' => 'getScheduledAt', + 'testSent' => 'getTestSent', 'header' => 'getHeader', 'footer' => 'getFooter', 'sender' => 'getSender', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'html_content' => 'getHtmlContent', - 'share_link' => 'getShareLink', + 'replyTo' => 'getReplyTo', + 'toField' => 'getToField', + 'htmlContent' => 'getHtmlContent', + 'shareLink' => 'getShareLink', 'tag' => 'getTag', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt', - 'inline_image_activation' => 'getInlineImageActivation', - 'mirror_active' => 'getMirrorActive', + 'createdAt' => 'getCreatedAt', + 'modifiedAt' => 'getModifiedAt', + 'inlineImageActivation' => 'getInlineImageActivation', + 'mirrorActive' => 'getMirrorActive', 'recurring' => 'getRecurring' ]; @@ -268,20 +268,20 @@ public function __construct(array $data = null) $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; + $this->container['testSent'] = isset($data['testSent']) ? $data['testSent'] : null; $this->container['header'] = isset($data['header']) ? $data['header'] : null; $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['share_link'] = isset($data['share_link']) ? $data['share_link'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; + $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; + $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; + $this->container['shareLink'] = isset($data['shareLink']) ? $data['shareLink'] : null; $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - $this->container['inline_image_activation'] = isset($data['inline_image_activation']) ? $data['inline_image_activation'] : null; - $this->container['mirror_active'] = isset($data['mirror_active']) ? $data['mirror_active'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; + $this->container['inlineImageActivation'] = isset($data['inlineImageActivation']) ? $data['inlineImageActivation'] : null; + $this->container['mirrorActive'] = isset($data['mirrorActive']) ? $data['mirrorActive'] : null; $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : null; } @@ -325,15 +325,15 @@ public function listInvalidProperties() ); } - if ($this->container['scheduled_at'] === null) { - $invalid_properties[] = "'scheduled_at' can't be null"; + if ($this->container['scheduledAt'] === null) { + $invalid_properties[] = "'scheduledAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; + if ($this->container['testSent'] === null) { + $invalid_properties[] = "'testSent' can't be null"; } if ($this->container['header'] === null) { $invalid_properties[] = "'header' can't be null"; @@ -341,33 +341,33 @@ public function listInvalidProperties() if ($this->container['footer'] === null) { $invalid_properties[] = "'footer' can't be null"; } - if ($this->container['reply_to'] === null) { - $invalid_properties[] = "'reply_to' can't be null"; + if ($this->container['replyTo'] === null) { + $invalid_properties[] = "'replyTo' can't be null"; } - if ($this->container['to_field'] === null) { - $invalid_properties[] = "'to_field' can't be null"; + if ($this->container['toField'] === null) { + $invalid_properties[] = "'toField' can't be null"; } - if ($this->container['html_content'] === null) { - $invalid_properties[] = "'html_content' can't be null"; + if ($this->container['htmlContent'] === null) { + $invalid_properties[] = "'htmlContent' can't be null"; } - if ($this->container['share_link'] === null) { - $invalid_properties[] = "'share_link' can't be null"; + if ($this->container['shareLink'] === null) { + $invalid_properties[] = "'shareLink' can't be null"; } if ($this->container['tag'] === null) { $invalid_properties[] = "'tag' can't be null"; } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; + if ($this->container['createdAt'] === null) { + $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { + $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; + if ($this->container['modifiedAt'] === null) { + $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { + $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -405,13 +405,13 @@ public function valid() if (!in_array($this->container['status'], $allowed_values)) { return false; } - if ($this->container['scheduled_at'] === null) { + if ($this->container['scheduledAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } - if ($this->container['test_sent'] === null) { + if ($this->container['testSent'] === null) { return false; } if ($this->container['header'] === null) { @@ -420,31 +420,31 @@ public function valid() if ($this->container['footer'] === null) { return false; } - if ($this->container['reply_to'] === null) { + if ($this->container['replyTo'] === null) { return false; } - if ($this->container['to_field'] === null) { + if ($this->container['toField'] === null) { return false; } - if ($this->container['html_content'] === null) { + if ($this->container['htmlContent'] === null) { return false; } - if ($this->container['share_link'] === null) { + if ($this->container['shareLink'] === null) { return false; } if ($this->container['tag'] === null) { return false; } - if ($this->container['created_at'] === null) { + if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { return false; } - if ($this->container['modified_at'] === null) { + if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { return false; } return true; @@ -575,48 +575,48 @@ public function setStatus($status) } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Date on which campaign is scheduled + * Sets scheduledAt + * @param string $scheduledAt Date on which campaign is scheduled * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling GetExtendedCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetExtendedCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } /** - * Gets test_sent + * Gets testSent * @return bool */ public function getTestSent() { - return $this->container['test_sent']; + return $this->container['testSent']; } /** - * Sets test_sent - * @param bool $test_sent Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) + * Sets testSent + * @param bool $testSent Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) * @return $this */ - public function setTestSent($test_sent) + public function setTestSent($testSent) { - $this->container['test_sent'] = $test_sent; + $this->container['testSent'] = $testSent; return $this; } @@ -665,7 +665,7 @@ public function setFooter($footer) /** * Gets sender - * @return \Swagger\Client\Model\InlineResponse2008Sender + * @return \Swagger\Client\Model\GetExtendedCampaignOverviewSender */ public function getSender() { @@ -674,7 +674,7 @@ public function getSender() /** * Sets sender - * @param \Swagger\Client\Model\InlineResponse2008Sender $sender + * @param \Swagger\Client\Model\GetExtendedCampaignOverviewSender $sender * @return $this */ public function setSender($sender) @@ -685,85 +685,85 @@ public function setSender($sender) } /** - * Gets reply_to + * Gets replyTo * @return string */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param string $reply_to Email defined as the \"Reply to\" of the campaign + * Sets replyTo + * @param string $replyTo Email defined as the \"Reply to\" of the campaign * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** - * Gets to_field + * Gets toField * @return string */ public function getToField() { - return $this->container['to_field']; + return $this->container['toField']; } /** - * Sets to_field - * @param string $to_field Customisation of the \"to\" field of the campaign + * Sets toField + * @param string $toField Customisation of the \"to\" field of the campaign * @return $this */ - public function setToField($to_field) + public function setToField($toField) { - $this->container['to_field'] = $to_field; + $this->container['toField'] = $toField; return $this; } /** - * Gets html_content + * Gets htmlContent * @return string */ public function getHtmlContent() { - return $this->container['html_content']; + return $this->container['htmlContent']; } /** - * Sets html_content - * @param string $html_content HTML content of the campaign + * Sets htmlContent + * @param string $htmlContent HTML content of the campaign * @return $this */ - public function setHtmlContent($html_content) + public function setHtmlContent($htmlContent) { - $this->container['html_content'] = $html_content; + $this->container['htmlContent'] = $htmlContent; return $this; } /** - * Gets share_link + * Gets shareLink * @return string */ public function getShareLink() { - return $this->container['share_link']; + return $this->container['shareLink']; } /** - * Sets share_link - * @param string $share_link Link to share the campaign on social medias + * Sets shareLink + * @param string $shareLink Link to share the campaign on social medias * @return $this */ - public function setShareLink($share_link) + public function setShareLink($shareLink) { - $this->container['share_link'] = $share_link; + $this->container['shareLink'] = $shareLink; return $this; } @@ -790,95 +790,95 @@ public function setTag($tag) } /** - * Gets created_at + * Gets createdAt * @return string */ public function getCreatedAt() { - return $this->container['created_at']; + return $this->container['createdAt']; } /** - * Sets created_at - * @param string $created_at Creation date of the campaign + * Sets createdAt + * @param string $createdAt Creation date of the campaign * @return $this */ - public function setCreatedAt($created_at) + public function setCreatedAt($createdAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling GetExtendedCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $createdAt))) { + throw new \InvalidArgumentException("invalid value for $createdAt when calling GetExtendedCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['created_at'] = $created_at; + $this->container['createdAt'] = $createdAt; return $this; } /** - * Gets modified_at + * Gets modifiedAt * @return string */ public function getModifiedAt() { - return $this->container['modified_at']; + return $this->container['modifiedAt']; } /** - * Sets modified_at - * @param string $modified_at Date of last modification of the campaign + * Sets modifiedAt + * @param string $modifiedAt Date of last modification of the campaign * @return $this */ - public function setModifiedAt($modified_at) + public function setModifiedAt($modifiedAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling GetExtendedCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedAt))) { + throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetExtendedCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['modified_at'] = $modified_at; + $this->container['modifiedAt'] = $modifiedAt; return $this; } /** - * Gets inline_image_activation + * Gets inlineImageActivation * @return bool */ public function getInlineImageActivation() { - return $this->container['inline_image_activation']; + return $this->container['inlineImageActivation']; } /** - * Sets inline_image_activation - * @param bool $inline_image_activation Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. + * Sets inlineImageActivation + * @param bool $inlineImageActivation Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. * @return $this */ - public function setInlineImageActivation($inline_image_activation) + public function setInlineImageActivation($inlineImageActivation) { - $this->container['inline_image_activation'] = $inline_image_activation; + $this->container['inlineImageActivation'] = $inlineImageActivation; return $this; } /** - * Gets mirror_active + * Gets mirrorActive * @return bool */ public function getMirrorActive() { - return $this->container['mirror_active']; + return $this->container['mirrorActive']; } /** - * Sets mirror_active - * @param bool $mirror_active Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign + * Sets mirrorActive + * @param bool $mirrorActive Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign * @return $this */ - public function setMirrorActive($mirror_active) + public function setMirrorActive($mirrorActive) { - $this->container['mirror_active'] = $mirror_active; + $this->container['mirrorActive'] = $mirrorActive; return $this; } diff --git a/lib/Model/InlineResponse2008Sender.php b/lib/Model/GetExtendedCampaignOverviewSender.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/InlineResponse2008Sender.php rename to lib/Model/GetExtendedCampaignOverviewSender.php index 76f810e9..3473e93b --- a/lib/Model/InlineResponse2008Sender.php +++ b/lib/Model/GetExtendedCampaignOverviewSender.php @@ -1,6 +1,6 @@ '\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats[]', - 'mirror_click' => 'int', + 'campaignStats' => 'object[]', + 'mirrorClick' => 'int', 'remaining' => 'int', - 'links_stats' => 'map[string,\Swagger\Client\Model\InlineResponse2008StatisticsLinksStats]', - 'stats_by_domain' => 'map[string,\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats]' + 'linksStats' => 'map[string,\Swagger\Client\Model\GetExtendedCampaignStatsLinksStats]', + 'statsByDomain' => '\Swagger\Client\Model\GetStatsByDomain' ]; /** @@ -66,11 +66,11 @@ class GetExtendedCampaignStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaign_stats' => null, - 'mirror_click' => 'int32', + 'campaignStats' => null, + 'mirrorClick' => 'int32', 'remaining' => 'int32', - 'links_stats' => null, - 'stats_by_domain' => null + 'linksStats' => null, + 'statsByDomain' => null ]; public static function swaggerTypes() @@ -88,11 +88,11 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'campaign_stats' => 'campaignStats', - 'mirror_click' => 'mirrorClick', + 'campaignStats' => 'campaignStats', + 'mirrorClick' => 'mirrorClick', 'remaining' => 'remaining', - 'links_stats' => 'linksStats', - 'stats_by_domain' => 'statsByDomain' + 'linksStats' => 'linksStats', + 'statsByDomain' => 'statsByDomain' ]; @@ -101,11 +101,11 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'campaign_stats' => 'setCampaignStats', - 'mirror_click' => 'setMirrorClick', + 'campaignStats' => 'setCampaignStats', + 'mirrorClick' => 'setMirrorClick', 'remaining' => 'setRemaining', - 'links_stats' => 'setLinksStats', - 'stats_by_domain' => 'setStatsByDomain' + 'linksStats' => 'setLinksStats', + 'statsByDomain' => 'setStatsByDomain' ]; @@ -114,11 +114,11 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'campaign_stats' => 'getCampaignStats', - 'mirror_click' => 'getMirrorClick', + 'campaignStats' => 'getCampaignStats', + 'mirrorClick' => 'getMirrorClick', 'remaining' => 'getRemaining', - 'links_stats' => 'getLinksStats', - 'stats_by_domain' => 'getStatsByDomain' + 'linksStats' => 'getLinksStats', + 'statsByDomain' => 'getStatsByDomain' ]; public static function attributeMap() @@ -152,11 +152,11 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['campaign_stats'] = isset($data['campaign_stats']) ? $data['campaign_stats'] : null; - $this->container['mirror_click'] = isset($data['mirror_click']) ? $data['mirror_click'] : null; + $this->container['campaignStats'] = isset($data['campaignStats']) ? $data['campaignStats'] : null; + $this->container['mirrorClick'] = isset($data['mirrorClick']) ? $data['mirrorClick'] : null; $this->container['remaining'] = isset($data['remaining']) ? $data['remaining'] : null; - $this->container['links_stats'] = isset($data['links_stats']) ? $data['links_stats'] : null; - $this->container['stats_by_domain'] = isset($data['stats_by_domain']) ? $data['stats_by_domain'] : null; + $this->container['linksStats'] = isset($data['linksStats']) ? $data['linksStats'] : null; + $this->container['statsByDomain'] = isset($data['statsByDomain']) ? $data['statsByDomain'] : null; } /** @@ -168,20 +168,20 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['campaign_stats'] === null) { - $invalid_properties[] = "'campaign_stats' can't be null"; + if ($this->container['campaignStats'] === null) { + $invalid_properties[] = "'campaignStats' can't be null"; } - if ($this->container['mirror_click'] === null) { - $invalid_properties[] = "'mirror_click' can't be null"; + if ($this->container['mirrorClick'] === null) { + $invalid_properties[] = "'mirrorClick' can't be null"; } if ($this->container['remaining'] === null) { $invalid_properties[] = "'remaining' can't be null"; } - if ($this->container['links_stats'] === null) { - $invalid_properties[] = "'links_stats' can't be null"; + if ($this->container['linksStats'] === null) { + $invalid_properties[] = "'linksStats' can't be null"; } - if ($this->container['stats_by_domain'] === null) { - $invalid_properties[] = "'stats_by_domain' can't be null"; + if ($this->container['statsByDomain'] === null) { + $invalid_properties[] = "'statsByDomain' can't be null"; } return $invalid_properties; } @@ -195,19 +195,19 @@ public function listInvalidProperties() public function valid() { - if ($this->container['campaign_stats'] === null) { + if ($this->container['campaignStats'] === null) { return false; } - if ($this->container['mirror_click'] === null) { + if ($this->container['mirrorClick'] === null) { return false; } if ($this->container['remaining'] === null) { return false; } - if ($this->container['links_stats'] === null) { + if ($this->container['linksStats'] === null) { return false; } - if ($this->container['stats_by_domain'] === null) { + if ($this->container['statsByDomain'] === null) { return false; } return true; @@ -215,43 +215,43 @@ public function valid() /** - * Gets campaign_stats - * @return \Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats[] + * Gets campaignStats + * @return object[] */ public function getCampaignStats() { - return $this->container['campaign_stats']; + return $this->container['campaignStats']; } /** - * Sets campaign_stats - * @param \Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats[] $campaign_stats + * Sets campaignStats + * @param object[] $campaignStats * @return $this */ - public function setCampaignStats($campaign_stats) + public function setCampaignStats($campaignStats) { - $this->container['campaign_stats'] = $campaign_stats; + $this->container['campaignStats'] = $campaignStats; return $this; } /** - * Gets mirror_click + * Gets mirrorClick * @return int */ public function getMirrorClick() { - return $this->container['mirror_click']; + return $this->container['mirrorClick']; } /** - * Sets mirror_click - * @param int $mirror_click Number of clicks on mirror link + * Sets mirrorClick + * @param int $mirrorClick Number of clicks on mirror link * @return $this */ - public function setMirrorClick($mirror_click) + public function setMirrorClick($mirrorClick) { - $this->container['mirror_click'] = $mirror_click; + $this->container['mirrorClick'] = $mirrorClick; return $this; } @@ -278,43 +278,43 @@ public function setRemaining($remaining) } /** - * Gets links_stats - * @return map[string,\Swagger\Client\Model\InlineResponse2008StatisticsLinksStats] + * Gets linksStats + * @return map[string,\Swagger\Client\Model\GetExtendedCampaignStatsLinksStats] */ public function getLinksStats() { - return $this->container['links_stats']; + return $this->container['linksStats']; } /** - * Sets links_stats - * @param map[string,\Swagger\Client\Model\InlineResponse2008StatisticsLinksStats] $links_stats + * Sets linksStats + * @param map[string,\Swagger\Client\Model\GetExtendedCampaignStatsLinksStats] $linksStats * @return $this */ - public function setLinksStats($links_stats) + public function setLinksStats($linksStats) { - $this->container['links_stats'] = $links_stats; + $this->container['linksStats'] = $linksStats; return $this; } /** - * Gets stats_by_domain - * @return map[string,\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats] + * Gets statsByDomain + * @return \Swagger\Client\Model\GetStatsByDomain */ public function getStatsByDomain() { - return $this->container['stats_by_domain']; + return $this->container['statsByDomain']; } /** - * Sets stats_by_domain - * @param map[string,\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats] $stats_by_domain + * Sets statsByDomain + * @param \Swagger\Client\Model\GetStatsByDomain $statsByDomain * @return $this */ - public function setStatsByDomain($stats_by_domain) + public function setStatsByDomain($statsByDomain) { - $this->container['stats_by_domain'] = $stats_by_domain; + $this->container['statsByDomain'] = $statsByDomain; return $this; } diff --git a/lib/Model/InlineResponse2008StatisticsLinksStats.php b/lib/Model/GetExtendedCampaignStatsLinksStats.php old mode 100755 new mode 100644 similarity index 85% rename from lib/Model/InlineResponse2008StatisticsLinksStats.php rename to lib/Model/GetExtendedCampaignStatsLinksStats.php index 27913a94..e2822473 --- a/lib/Model/InlineResponse2008StatisticsLinksStats.php +++ b/lib/Model/GetExtendedCampaignStatsLinksStats.php @@ -1,6 +1,6 @@ 'int' + 'nbClick' => 'int' ]; /** @@ -63,7 +63,7 @@ class InlineResponse2008StatisticsLinksStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'nb_click' => 'int32' + 'nbClick' => 'int32' ]; public static function swaggerTypes() @@ -81,7 +81,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'nb_click' => 'nbClick' + 'nbClick' => 'nbClick' ]; @@ -90,7 +90,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'nb_click' => 'setNbClick' + 'nbClick' => 'setNbClick' ]; @@ -99,7 +99,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'nb_click' => 'getNbClick' + 'nbClick' => 'getNbClick' ]; public static function attributeMap() @@ -133,7 +133,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['nb_click'] = isset($data['nb_click']) ? $data['nb_click'] : null; + $this->container['nbClick'] = isset($data['nbClick']) ? $data['nbClick'] : null; } /** @@ -145,8 +145,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['nb_click'] === null) { - $invalid_properties[] = "'nb_click' can't be null"; + if ($this->container['nbClick'] === null) { + $invalid_properties[] = "'nbClick' can't be null"; } return $invalid_properties; } @@ -160,7 +160,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['nb_click'] === null) { + if ($this->container['nbClick'] === null) { return false; } return true; @@ -168,22 +168,22 @@ public function valid() /** - * Gets nb_click + * Gets nbClick * @return int */ public function getNbClick() { - return $this->container['nb_click']; + return $this->container['nbClick']; } /** - * Sets nb_click - * @param int $nb_click Number of clicks for the link + * Sets nbClick + * @param int $nbClick Number of clicks for the link * @return $this */ - public function setNbClick($nb_click) + public function setNbClick($nbClick) { - $this->container['nb_click'] = $nb_click; + $this->container['nbClick'] = $nbClick; return $this; } diff --git a/lib/Model/GetExtendedClient.php b/lib/Model/GetExtendedClient.php old mode 100755 new mode 100644 index a4922594..da01216c --- a/lib/Model/GetExtendedClient.php +++ b/lib/Model/GetExtendedClient.php @@ -55,10 +55,10 @@ class GetExtendedClient implements ArrayAccess */ protected static $swaggerTypes = [ 'email' => 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', - 'address' => '\Swagger\Client\Model\InlineResponse200Address' + 'firstName' => 'string', + 'lastName' => 'string', + 'companyName' => 'string', + 'address' => '\Swagger\Client\Model\GetExtendedClientAddress' ]; /** @@ -67,9 +67,9 @@ class GetExtendedClient implements ArrayAccess */ protected static $swaggerFormats = [ 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, + 'firstName' => null, + 'lastName' => null, + 'companyName' => null, 'address' => null ]; @@ -89,9 +89,9 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', + 'firstName' => 'firstName', + 'lastName' => 'lastName', + 'companyName' => 'companyName', 'address' => 'address' ]; @@ -102,9 +102,9 @@ public static function swaggerFormats() */ protected static $setters = [ 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', + 'firstName' => 'setFirstName', + 'lastName' => 'setLastName', + 'companyName' => 'setCompanyName', 'address' => 'setAddress' ]; @@ -115,9 +115,9 @@ public static function swaggerFormats() */ protected static $getters = [ 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', + 'firstName' => 'getFirstName', + 'lastName' => 'getLastName', + 'companyName' => 'getCompanyName', 'address' => 'getAddress' ]; @@ -153,9 +153,9 @@ public static function getters() public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; + $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null; + $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null; + $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; $this->container['address'] = isset($data['address']) ? $data['address'] : null; } @@ -171,14 +171,14 @@ public function listInvalidProperties() if ($this->container['email'] === null) { $invalid_properties[] = "'email' can't be null"; } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; + if ($this->container['firstName'] === null) { + $invalid_properties[] = "'firstName' can't be null"; } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; + if ($this->container['lastName'] === null) { + $invalid_properties[] = "'lastName' can't be null"; } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; + if ($this->container['companyName'] === null) { + $invalid_properties[] = "'companyName' can't be null"; } return $invalid_properties; } @@ -195,13 +195,13 @@ public function valid() if ($this->container['email'] === null) { return false; } - if ($this->container['first_name'] === null) { + if ($this->container['firstName'] === null) { return false; } - if ($this->container['last_name'] === null) { + if ($this->container['lastName'] === null) { return false; } - if ($this->container['company_name'] === null) { + if ($this->container['companyName'] === null) { return false; } return true; @@ -230,71 +230,71 @@ public function setEmail($email) } /** - * Gets first_name + * Gets firstName * @return string */ public function getFirstName() { - return $this->container['first_name']; + return $this->container['firstName']; } /** - * Sets first_name - * @param string $first_name First Name + * Sets firstName + * @param string $firstName First Name * @return $this */ - public function setFirstName($first_name) + public function setFirstName($firstName) { - $this->container['first_name'] = $first_name; + $this->container['firstName'] = $firstName; return $this; } /** - * Gets last_name + * Gets lastName * @return string */ public function getLastName() { - return $this->container['last_name']; + return $this->container['lastName']; } /** - * Sets last_name - * @param string $last_name Last Name + * Sets lastName + * @param string $lastName Last Name * @return $this */ - public function setLastName($last_name) + public function setLastName($lastName) { - $this->container['last_name'] = $last_name; + $this->container['lastName'] = $lastName; return $this; } /** - * Gets company_name + * Gets companyName * @return string */ public function getCompanyName() { - return $this->container['company_name']; + return $this->container['companyName']; } /** - * Sets company_name - * @param string $company_name Name of the company + * Sets companyName + * @param string $companyName Name of the company * @return $this */ - public function setCompanyName($company_name) + public function setCompanyName($companyName) { - $this->container['company_name'] = $company_name; + $this->container['companyName'] = $companyName; return $this; } /** * Gets address - * @return \Swagger\Client\Model\InlineResponse200Address + * @return \Swagger\Client\Model\GetExtendedClientAddress */ public function getAddress() { @@ -303,7 +303,7 @@ public function getAddress() /** * Sets address - * @param \Swagger\Client\Model\InlineResponse200Address $address + * @param \Swagger\Client\Model\GetExtendedClientAddress $address * @return $this */ public function setAddress($address) diff --git a/lib/Model/InlineResponse200Address.php b/lib/Model/GetExtendedClientAddress.php old mode 100755 new mode 100644 similarity index 90% rename from lib/Model/InlineResponse200Address.php rename to lib/Model/GetExtendedClientAddress.php index b8fee983..4ea07ac8 --- a/lib/Model/InlineResponse200Address.php +++ b/lib/Model/GetExtendedClientAddress.php @@ -1,6 +1,6 @@ 'string', 'city' => 'string', - 'zip_code' => 'string', + 'zipCode' => 'string', 'country' => 'string' ]; @@ -68,7 +68,7 @@ class InlineResponse200Address implements ArrayAccess protected static $swaggerFormats = [ 'street' => null, 'city' => null, - 'zip_code' => null, + 'zipCode' => null, 'country' => null ]; @@ -89,7 +89,7 @@ public static function swaggerFormats() protected static $attributeMap = [ 'street' => 'street', 'city' => 'city', - 'zip_code' => 'zipCode', + 'zipCode' => 'zipCode', 'country' => 'country' ]; @@ -101,7 +101,7 @@ public static function swaggerFormats() protected static $setters = [ 'street' => 'setStreet', 'city' => 'setCity', - 'zip_code' => 'setZipCode', + 'zipCode' => 'setZipCode', 'country' => 'setCountry' ]; @@ -113,7 +113,7 @@ public static function swaggerFormats() protected static $getters = [ 'street' => 'getStreet', 'city' => 'getCity', - 'zip_code' => 'getZipCode', + 'zipCode' => 'getZipCode', 'country' => 'getCountry' ]; @@ -150,7 +150,7 @@ public function __construct(array $data = null) { $this->container['street'] = isset($data['street']) ? $data['street'] : null; $this->container['city'] = isset($data['city']) ? $data['city'] : null; - $this->container['zip_code'] = isset($data['zip_code']) ? $data['zip_code'] : null; + $this->container['zipCode'] = isset($data['zipCode']) ? $data['zipCode'] : null; $this->container['country'] = isset($data['country']) ? $data['country'] : null; } @@ -169,8 +169,8 @@ public function listInvalidProperties() if ($this->container['city'] === null) { $invalid_properties[] = "'city' can't be null"; } - if ($this->container['zip_code'] === null) { - $invalid_properties[] = "'zip_code' can't be null"; + if ($this->container['zipCode'] === null) { + $invalid_properties[] = "'zipCode' can't be null"; } if ($this->container['country'] === null) { $invalid_properties[] = "'country' can't be null"; @@ -193,7 +193,7 @@ public function valid() if ($this->container['city'] === null) { return false; } - if ($this->container['zip_code'] === null) { + if ($this->container['zipCode'] === null) { return false; } if ($this->container['country'] === null) { @@ -246,22 +246,22 @@ public function setCity($city) } /** - * Gets zip_code + * Gets zipCode * @return string */ public function getZipCode() { - return $this->container['zip_code']; + return $this->container['zipCode']; } /** - * Sets zip_code - * @param string $zip_code Zip Code information + * Sets zipCode + * @param string $zipCode Zip Code information * @return $this */ - public function setZipCode($zip_code) + public function setZipCode($zipCode) { - $this->container['zip_code'] = $zip_code; + $this->container['zipCode'] = $zipCode; return $this; } diff --git a/lib/Model/GetExtendedContactDetails.php b/lib/Model/GetExtendedContactDetails.php old mode 100755 new mode 100644 index 334836a6..12a4c7a2 --- a/lib/Model/GetExtendedContactDetails.php +++ b/lib/Model/GetExtendedContactDetails.php @@ -56,11 +56,11 @@ class GetExtendedContactDetails implements ArrayAccess protected static $swaggerTypes = [ 'email' => 'string', 'id' => 'int', - 'email_blacklisted' => 'bool', - 'sms_blacklisted' => 'bool', - 'modified_at' => '\DateTime', - 'list_ids' => 'int[]', - 'list_unsubscribed' => 'int[]', + 'emailBlacklisted' => 'bool', + 'smsBlacklisted' => 'bool', + 'modifiedAt' => '\DateTime', + 'listIds' => 'int[]', + 'listUnsubscribed' => 'int[]', 'attributes' => 'map[string,string]' ]; @@ -71,11 +71,11 @@ class GetExtendedContactDetails implements ArrayAccess protected static $swaggerFormats = [ 'email' => 'email', 'id' => 'int32', - 'email_blacklisted' => null, - 'sms_blacklisted' => null, - 'modified_at' => 'date-time', - 'list_ids' => 'int32', - 'list_unsubscribed' => 'int32', + 'emailBlacklisted' => null, + 'smsBlacklisted' => null, + 'modifiedAt' => 'date-time', + 'listIds' => 'int32', + 'listUnsubscribed' => 'int32', 'attributes' => null ]; @@ -96,11 +96,11 @@ public static function swaggerFormats() protected static $attributeMap = [ 'email' => 'email', 'id' => 'id', - 'email_blacklisted' => 'emailBlacklisted', - 'sms_blacklisted' => 'smsBlacklisted', - 'modified_at' => 'modifiedAt', - 'list_ids' => 'listIds', - 'list_unsubscribed' => 'listUnsubscribed', + 'emailBlacklisted' => 'emailBlacklisted', + 'smsBlacklisted' => 'smsBlacklisted', + 'modifiedAt' => 'modifiedAt', + 'listIds' => 'listIds', + 'listUnsubscribed' => 'listUnsubscribed', 'attributes' => 'attributes' ]; @@ -112,11 +112,11 @@ public static function swaggerFormats() protected static $setters = [ 'email' => 'setEmail', 'id' => 'setId', - 'email_blacklisted' => 'setEmailBlacklisted', - 'sms_blacklisted' => 'setSmsBlacklisted', - 'modified_at' => 'setModifiedAt', - 'list_ids' => 'setListIds', - 'list_unsubscribed' => 'setListUnsubscribed', + 'emailBlacklisted' => 'setEmailBlacklisted', + 'smsBlacklisted' => 'setSmsBlacklisted', + 'modifiedAt' => 'setModifiedAt', + 'listIds' => 'setListIds', + 'listUnsubscribed' => 'setListUnsubscribed', 'attributes' => 'setAttributes' ]; @@ -128,11 +128,11 @@ public static function swaggerFormats() protected static $getters = [ 'email' => 'getEmail', 'id' => 'getId', - 'email_blacklisted' => 'getEmailBlacklisted', - 'sms_blacklisted' => 'getSmsBlacklisted', - 'modified_at' => 'getModifiedAt', - 'list_ids' => 'getListIds', - 'list_unsubscribed' => 'getListUnsubscribed', + 'emailBlacklisted' => 'getEmailBlacklisted', + 'smsBlacklisted' => 'getSmsBlacklisted', + 'modifiedAt' => 'getModifiedAt', + 'listIds' => 'getListIds', + 'listUnsubscribed' => 'getListUnsubscribed', 'attributes' => 'getAttributes' ]; @@ -169,11 +169,11 @@ public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; - $this->container['email_blacklisted'] = isset($data['email_blacklisted']) ? $data['email_blacklisted'] : null; - $this->container['sms_blacklisted'] = isset($data['sms_blacklisted']) ? $data['sms_blacklisted'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - $this->container['list_unsubscribed'] = isset($data['list_unsubscribed']) ? $data['list_unsubscribed'] : null; + $this->container['emailBlacklisted'] = isset($data['emailBlacklisted']) ? $data['emailBlacklisted'] : null; + $this->container['smsBlacklisted'] = isset($data['smsBlacklisted']) ? $data['smsBlacklisted'] : null; + $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; + $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; + $this->container['listUnsubscribed'] = isset($data['listUnsubscribed']) ? $data['listUnsubscribed'] : null; $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; } @@ -192,17 +192,17 @@ public function listInvalidProperties() if ($this->container['id'] === null) { $invalid_properties[] = "'id' can't be null"; } - if ($this->container['email_blacklisted'] === null) { - $invalid_properties[] = "'email_blacklisted' can't be null"; + if ($this->container['emailBlacklisted'] === null) { + $invalid_properties[] = "'emailBlacklisted' can't be null"; } - if ($this->container['sms_blacklisted'] === null) { - $invalid_properties[] = "'sms_blacklisted' can't be null"; + if ($this->container['smsBlacklisted'] === null) { + $invalid_properties[] = "'smsBlacklisted' can't be null"; } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; + if ($this->container['modifiedAt'] === null) { + $invalid_properties[] = "'modifiedAt' can't be null"; } - if ($this->container['list_ids'] === null) { - $invalid_properties[] = "'list_ids' can't be null"; + if ($this->container['listIds'] === null) { + $invalid_properties[] = "'listIds' can't be null"; } if ($this->container['attributes'] === null) { $invalid_properties[] = "'attributes' can't be null"; @@ -225,16 +225,16 @@ public function valid() if ($this->container['id'] === null) { return false; } - if ($this->container['email_blacklisted'] === null) { + if ($this->container['emailBlacklisted'] === null) { return false; } - if ($this->container['sms_blacklisted'] === null) { + if ($this->container['smsBlacklisted'] === null) { return false; } - if ($this->container['modified_at'] === null) { + if ($this->container['modifiedAt'] === null) { return false; } - if ($this->container['list_ids'] === null) { + if ($this->container['listIds'] === null) { return false; } if ($this->container['attributes'] === null) { @@ -287,106 +287,106 @@ public function setId($id) } /** - * Gets email_blacklisted + * Gets emailBlacklisted * @return bool */ public function getEmailBlacklisted() { - return $this->container['email_blacklisted']; + return $this->container['emailBlacklisted']; } /** - * Sets email_blacklisted - * @param bool $email_blacklisted Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) + * Sets emailBlacklisted + * @param bool $emailBlacklisted Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) * @return $this */ - public function setEmailBlacklisted($email_blacklisted) + public function setEmailBlacklisted($emailBlacklisted) { - $this->container['email_blacklisted'] = $email_blacklisted; + $this->container['emailBlacklisted'] = $emailBlacklisted; return $this; } /** - * Gets sms_blacklisted + * Gets smsBlacklisted * @return bool */ public function getSmsBlacklisted() { - return $this->container['sms_blacklisted']; + return $this->container['smsBlacklisted']; } /** - * Sets sms_blacklisted - * @param bool $sms_blacklisted Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) + * Sets smsBlacklisted + * @param bool $smsBlacklisted Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) * @return $this */ - public function setSmsBlacklisted($sms_blacklisted) + public function setSmsBlacklisted($smsBlacklisted) { - $this->container['sms_blacklisted'] = $sms_blacklisted; + $this->container['smsBlacklisted'] = $smsBlacklisted; return $this; } /** - * Gets modified_at + * Gets modifiedAt * @return \DateTime */ public function getModifiedAt() { - return $this->container['modified_at']; + return $this->container['modifiedAt']; } /** - * Sets modified_at - * @param \DateTime $modified_at Last modification date of the contact + * Sets modifiedAt + * @param \DateTime $modifiedAt Last modification date of the contact * @return $this */ - public function setModifiedAt($modified_at) + public function setModifiedAt($modifiedAt) { - $this->container['modified_at'] = $modified_at; + $this->container['modifiedAt'] = $modifiedAt; return $this; } /** - * Gets list_ids + * Gets listIds * @return int[] */ public function getListIds() { - return $this->container['list_ids']; + return $this->container['listIds']; } /** - * Sets list_ids - * @param int[] $list_ids + * Sets listIds + * @param int[] $listIds * @return $this */ - public function setListIds($list_ids) + public function setListIds($listIds) { - $this->container['list_ids'] = $list_ids; + $this->container['listIds'] = $listIds; return $this; } /** - * Gets list_unsubscribed + * Gets listUnsubscribed * @return int[] */ public function getListUnsubscribed() { - return $this->container['list_unsubscribed']; + return $this->container['listUnsubscribed']; } /** - * Sets list_unsubscribed - * @param int[] $list_unsubscribed + * Sets listUnsubscribed + * @param int[] $listUnsubscribed * @return $this */ - public function setListUnsubscribed($list_unsubscribed) + public function setListUnsubscribed($listUnsubscribed) { - $this->container['list_unsubscribed'] = $list_unsubscribed; + $this->container['listUnsubscribed'] = $listUnsubscribed; return $this; } diff --git a/lib/Model/GetExtendedList.php b/lib/Model/GetExtendedList.php old mode 100755 new mode 100644 index 50e98224..8d6c2e02 --- a/lib/Model/GetExtendedList.php +++ b/lib/Model/GetExtendedList.php @@ -56,12 +56,12 @@ class GetExtendedList implements ArrayAccess protected static $swaggerTypes = [ 'id' => 'int', 'name' => 'string', - 'total_blacklisted' => 'int', - 'total_subscribers' => 'int', - 'folder_id' => 'int', - 'created_at' => '\DateTime', - 'campaign_stats' => '\Swagger\Client\Model\InlineResponse20020CampaignStats[]', - 'dynamic_list' => 'bool' + 'totalBlacklisted' => 'int', + 'totalSubscribers' => 'int', + 'folderId' => 'int', + 'createdAt' => '\DateTime', + 'campaignStats' => '\Swagger\Client\Model\GetExtendedListCampaignStats[]', + 'dynamicList' => 'bool' ]; /** @@ -71,12 +71,12 @@ class GetExtendedList implements ArrayAccess protected static $swaggerFormats = [ 'id' => 'int32', 'name' => null, - 'total_blacklisted' => 'int32', - 'total_subscribers' => 'int32', - 'folder_id' => 'int32', - 'created_at' => 'date', - 'campaign_stats' => null, - 'dynamic_list' => null + 'totalBlacklisted' => 'int32', + 'totalSubscribers' => 'int32', + 'folderId' => 'int32', + 'createdAt' => 'date', + 'campaignStats' => null, + 'dynamicList' => null ]; public static function swaggerTypes() @@ -96,12 +96,12 @@ public static function swaggerFormats() protected static $attributeMap = [ 'id' => 'id', 'name' => 'name', - 'total_blacklisted' => 'totalBlacklisted', - 'total_subscribers' => 'totalSubscribers', - 'folder_id' => 'folderId', - 'created_at' => 'createdAt', - 'campaign_stats' => 'campaignStats', - 'dynamic_list' => 'dynamicList' + 'totalBlacklisted' => 'totalBlacklisted', + 'totalSubscribers' => 'totalSubscribers', + 'folderId' => 'folderId', + 'createdAt' => 'createdAt', + 'campaignStats' => 'campaignStats', + 'dynamicList' => 'dynamicList' ]; @@ -112,12 +112,12 @@ public static function swaggerFormats() protected static $setters = [ 'id' => 'setId', 'name' => 'setName', - 'total_blacklisted' => 'setTotalBlacklisted', - 'total_subscribers' => 'setTotalSubscribers', - 'folder_id' => 'setFolderId', - 'created_at' => 'setCreatedAt', - 'campaign_stats' => 'setCampaignStats', - 'dynamic_list' => 'setDynamicList' + 'totalBlacklisted' => 'setTotalBlacklisted', + 'totalSubscribers' => 'setTotalSubscribers', + 'folderId' => 'setFolderId', + 'createdAt' => 'setCreatedAt', + 'campaignStats' => 'setCampaignStats', + 'dynamicList' => 'setDynamicList' ]; @@ -128,12 +128,12 @@ public static function swaggerFormats() protected static $getters = [ 'id' => 'getId', 'name' => 'getName', - 'total_blacklisted' => 'getTotalBlacklisted', - 'total_subscribers' => 'getTotalSubscribers', - 'folder_id' => 'getFolderId', - 'created_at' => 'getCreatedAt', - 'campaign_stats' => 'getCampaignStats', - 'dynamic_list' => 'getDynamicList' + 'totalBlacklisted' => 'getTotalBlacklisted', + 'totalSubscribers' => 'getTotalSubscribers', + 'folderId' => 'getFolderId', + 'createdAt' => 'getCreatedAt', + 'campaignStats' => 'getCampaignStats', + 'dynamicList' => 'getDynamicList' ]; public static function attributeMap() @@ -169,12 +169,12 @@ 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['total_blacklisted'] = isset($data['total_blacklisted']) ? $data['total_blacklisted'] : null; - $this->container['total_subscribers'] = isset($data['total_subscribers']) ? $data['total_subscribers'] : null; - $this->container['folder_id'] = isset($data['folder_id']) ? $data['folder_id'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['campaign_stats'] = isset($data['campaign_stats']) ? $data['campaign_stats'] : null; - $this->container['dynamic_list'] = isset($data['dynamic_list']) ? $data['dynamic_list'] : null; + $this->container['totalBlacklisted'] = isset($data['totalBlacklisted']) ? $data['totalBlacklisted'] : null; + $this->container['totalSubscribers'] = isset($data['totalSubscribers']) ? $data['totalSubscribers'] : null; + $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['campaignStats'] = isset($data['campaignStats']) ? $data['campaignStats'] : null; + $this->container['dynamicList'] = isset($data['dynamicList']) ? $data['dynamicList'] : null; } /** @@ -192,17 +192,17 @@ public function listInvalidProperties() if ($this->container['name'] === null) { $invalid_properties[] = "'name' can't be null"; } - if ($this->container['total_blacklisted'] === null) { - $invalid_properties[] = "'total_blacklisted' can't be null"; + if ($this->container['totalBlacklisted'] === null) { + $invalid_properties[] = "'totalBlacklisted' can't be null"; } - if ($this->container['total_subscribers'] === null) { - $invalid_properties[] = "'total_subscribers' can't be null"; + if ($this->container['totalSubscribers'] === null) { + $invalid_properties[] = "'totalSubscribers' can't be null"; } - if ($this->container['folder_id'] === null) { - $invalid_properties[] = "'folder_id' can't be null"; + if ($this->container['folderId'] === null) { + $invalid_properties[] = "'folderId' can't be null"; } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; + if ($this->container['createdAt'] === null) { + $invalid_properties[] = "'createdAt' can't be null"; } return $invalid_properties; } @@ -222,16 +222,16 @@ public function valid() if ($this->container['name'] === null) { return false; } - if ($this->container['total_blacklisted'] === null) { + if ($this->container['totalBlacklisted'] === null) { return false; } - if ($this->container['total_subscribers'] === null) { + if ($this->container['totalSubscribers'] === null) { return false; } - if ($this->container['folder_id'] === null) { + if ($this->container['folderId'] === null) { return false; } - if ($this->container['created_at'] === null) { + if ($this->container['createdAt'] === null) { return false; } return true; @@ -281,127 +281,127 @@ public function setName($name) } /** - * Gets total_blacklisted + * Gets totalBlacklisted * @return int */ public function getTotalBlacklisted() { - return $this->container['total_blacklisted']; + return $this->container['totalBlacklisted']; } /** - * Sets total_blacklisted - * @param int $total_blacklisted Number of blacklisted contacts in the list + * Sets totalBlacklisted + * @param int $totalBlacklisted Number of blacklisted contacts in the list * @return $this */ - public function setTotalBlacklisted($total_blacklisted) + public function setTotalBlacklisted($totalBlacklisted) { - $this->container['total_blacklisted'] = $total_blacklisted; + $this->container['totalBlacklisted'] = $totalBlacklisted; return $this; } /** - * Gets total_subscribers + * Gets totalSubscribers * @return int */ public function getTotalSubscribers() { - return $this->container['total_subscribers']; + return $this->container['totalSubscribers']; } /** - * Sets total_subscribers - * @param int $total_subscribers Number of contacts in the list + * Sets totalSubscribers + * @param int $totalSubscribers Number of contacts in the list * @return $this */ - public function setTotalSubscribers($total_subscribers) + public function setTotalSubscribers($totalSubscribers) { - $this->container['total_subscribers'] = $total_subscribers; + $this->container['totalSubscribers'] = $totalSubscribers; return $this; } /** - * Gets folder_id + * Gets folderId * @return int */ public function getFolderId() { - return $this->container['folder_id']; + return $this->container['folderId']; } /** - * Sets folder_id - * @param int $folder_id ID of the folder + * Sets folderId + * @param int $folderId ID of the folder * @return $this */ - public function setFolderId($folder_id) + public function setFolderId($folderId) { - $this->container['folder_id'] = $folder_id; + $this->container['folderId'] = $folderId; return $this; } /** - * Gets created_at + * Gets createdAt * @return \DateTime */ public function getCreatedAt() { - return $this->container['created_at']; + return $this->container['createdAt']; } /** - * Sets created_at - * @param \DateTime $created_at Creation Date of the list + * Sets createdAt + * @param \DateTime $createdAt Creation Date of the list * @return $this */ - public function setCreatedAt($created_at) + public function setCreatedAt($createdAt) { - $this->container['created_at'] = $created_at; + $this->container['createdAt'] = $createdAt; return $this; } /** - * Gets campaign_stats - * @return \Swagger\Client\Model\InlineResponse20020CampaignStats[] + * Gets campaignStats + * @return \Swagger\Client\Model\GetExtendedListCampaignStats[] */ public function getCampaignStats() { - return $this->container['campaign_stats']; + return $this->container['campaignStats']; } /** - * Sets campaign_stats - * @param \Swagger\Client\Model\InlineResponse20020CampaignStats[] $campaign_stats + * Sets campaignStats + * @param \Swagger\Client\Model\GetExtendedListCampaignStats[] $campaignStats * @return $this */ - public function setCampaignStats($campaign_stats) + public function setCampaignStats($campaignStats) { - $this->container['campaign_stats'] = $campaign_stats; + $this->container['campaignStats'] = $campaignStats; return $this; } /** - * Gets dynamic_list + * Gets dynamicList * @return bool */ public function getDynamicList() { - return $this->container['dynamic_list']; + return $this->container['dynamicList']; } /** - * Sets dynamic_list - * @param bool $dynamic_list Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) + * Sets dynamicList + * @param bool $dynamicList Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) * @return $this */ - public function setDynamicList($dynamic_list) + public function setDynamicList($dynamicList) { - $this->container['dynamic_list'] = $dynamic_list; + $this->container['dynamicList'] = $dynamicList; return $this; } diff --git a/lib/Model/InlineResponse20020CampaignStats.php b/lib/Model/GetExtendedListCampaignStats.php old mode 100755 new mode 100644 similarity index 81% rename from lib/Model/InlineResponse20020CampaignStats.php rename to lib/Model/GetExtendedListCampaignStats.php index 2e51f6e7..6d2b42ce --- a/lib/Model/InlineResponse20020CampaignStats.php +++ b/lib/Model/GetExtendedListCampaignStats.php @@ -1,6 +1,6 @@ 'int', - 'stats' => '\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats' + 'campaignId' => 'int', + 'stats' => '\Swagger\Client\Model\GetCampaignStats' ]; /** @@ -63,7 +63,7 @@ class InlineResponse20020CampaignStats implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'campaign_id' => 'int32', + 'campaignId' => 'int32', 'stats' => null ]; @@ -82,7 +82,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'campaign_id' => 'campaignId', + 'campaignId' => 'campaignId', 'stats' => 'stats' ]; @@ -92,7 +92,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'campaign_id' => 'setCampaignId', + 'campaignId' => 'setCampaignId', 'stats' => 'setStats' ]; @@ -102,7 +102,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'campaign_id' => 'getCampaignId', + 'campaignId' => 'getCampaignId', 'stats' => 'getStats' ]; @@ -137,7 +137,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['campaign_id'] = isset($data['campaign_id']) ? $data['campaign_id'] : null; + $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; $this->container['stats'] = isset($data['stats']) ? $data['stats'] : null; } @@ -150,8 +150,11 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['campaign_id'] === null) { - $invalid_properties[] = "'campaign_id' can't be null"; + if ($this->container['campaignId'] === null) { + $invalid_properties[] = "'campaignId' can't be null"; + } + if ($this->container['stats'] === null) { + $invalid_properties[] = "'stats' can't be null"; } return $invalid_properties; } @@ -165,7 +168,10 @@ public function listInvalidProperties() public function valid() { - if ($this->container['campaign_id'] === null) { + if ($this->container['campaignId'] === null) { + return false; + } + if ($this->container['stats'] === null) { return false; } return true; @@ -173,29 +179,29 @@ public function valid() /** - * Gets campaign_id + * Gets campaignId * @return int */ public function getCampaignId() { - return $this->container['campaign_id']; + return $this->container['campaignId']; } /** - * Sets campaign_id - * @param int $campaign_id ID of the campaign + * Sets campaignId + * @param int $campaignId ID of the campaign * @return $this */ - public function setCampaignId($campaign_id) + public function setCampaignId($campaignId) { - $this->container['campaign_id'] = $campaign_id; + $this->container['campaignId'] = $campaignId; return $this; } /** * Gets stats - * @return \Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats + * @return \Swagger\Client\Model\GetCampaignStats */ public function getStats() { @@ -204,7 +210,7 @@ public function getStats() /** * Sets stats - * @param \Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats $stats + * @param \Swagger\Client\Model\GetCampaignStats $stats * @return $this */ public function setStats($stats) diff --git a/lib/Model/GetFolder.php b/lib/Model/GetFolder.php old mode 100755 new mode 100644 index faf7a18d..e68530cf --- a/lib/Model/GetFolder.php +++ b/lib/Model/GetFolder.php @@ -56,9 +56,9 @@ class GetFolder implements ArrayAccess protected static $swaggerTypes = [ 'id' => 'int', 'name' => 'string', - 'total_blacklisted' => 'int', - 'total_subscribers' => 'int', - 'unique_subscribers' => 'int' + 'totalBlacklisted' => 'int', + 'totalSubscribers' => 'int', + 'uniqueSubscribers' => 'int' ]; /** @@ -68,9 +68,9 @@ class GetFolder implements ArrayAccess protected static $swaggerFormats = [ 'id' => 'int32', 'name' => null, - 'total_blacklisted' => 'int32', - 'total_subscribers' => 'int32', - 'unique_subscribers' => 'int32' + 'totalBlacklisted' => 'int32', + 'totalSubscribers' => 'int32', + 'uniqueSubscribers' => 'int32' ]; public static function swaggerTypes() @@ -90,9 +90,9 @@ public static function swaggerFormats() protected static $attributeMap = [ 'id' => 'id', 'name' => 'name', - 'total_blacklisted' => 'totalBlacklisted', - 'total_subscribers' => 'totalSubscribers', - 'unique_subscribers' => 'uniqueSubscribers' + 'totalBlacklisted' => 'totalBlacklisted', + 'totalSubscribers' => 'totalSubscribers', + 'uniqueSubscribers' => 'uniqueSubscribers' ]; @@ -103,9 +103,9 @@ public static function swaggerFormats() protected static $setters = [ 'id' => 'setId', 'name' => 'setName', - 'total_blacklisted' => 'setTotalBlacklisted', - 'total_subscribers' => 'setTotalSubscribers', - 'unique_subscribers' => 'setUniqueSubscribers' + 'totalBlacklisted' => 'setTotalBlacklisted', + 'totalSubscribers' => 'setTotalSubscribers', + 'uniqueSubscribers' => 'setUniqueSubscribers' ]; @@ -116,9 +116,9 @@ public static function swaggerFormats() protected static $getters = [ 'id' => 'getId', 'name' => 'getName', - 'total_blacklisted' => 'getTotalBlacklisted', - 'total_subscribers' => 'getTotalSubscribers', - 'unique_subscribers' => 'getUniqueSubscribers' + 'totalBlacklisted' => 'getTotalBlacklisted', + 'totalSubscribers' => 'getTotalSubscribers', + 'uniqueSubscribers' => 'getUniqueSubscribers' ]; public static function attributeMap() @@ -154,9 +154,9 @@ 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['total_blacklisted'] = isset($data['total_blacklisted']) ? $data['total_blacklisted'] : null; - $this->container['total_subscribers'] = isset($data['total_subscribers']) ? $data['total_subscribers'] : null; - $this->container['unique_subscribers'] = isset($data['unique_subscribers']) ? $data['unique_subscribers'] : null; + $this->container['totalBlacklisted'] = isset($data['totalBlacklisted']) ? $data['totalBlacklisted'] : null; + $this->container['totalSubscribers'] = isset($data['totalSubscribers']) ? $data['totalSubscribers'] : null; + $this->container['uniqueSubscribers'] = isset($data['uniqueSubscribers']) ? $data['uniqueSubscribers'] : null; } /** @@ -174,14 +174,14 @@ public function listInvalidProperties() if ($this->container['name'] === null) { $invalid_properties[] = "'name' can't be null"; } - if ($this->container['total_blacklisted'] === null) { - $invalid_properties[] = "'total_blacklisted' can't be null"; + if ($this->container['totalBlacklisted'] === null) { + $invalid_properties[] = "'totalBlacklisted' can't be null"; } - if ($this->container['total_subscribers'] === null) { - $invalid_properties[] = "'total_subscribers' can't be null"; + if ($this->container['totalSubscribers'] === null) { + $invalid_properties[] = "'totalSubscribers' can't be null"; } - if ($this->container['unique_subscribers'] === null) { - $invalid_properties[] = "'unique_subscribers' can't be null"; + if ($this->container['uniqueSubscribers'] === null) { + $invalid_properties[] = "'uniqueSubscribers' can't be null"; } return $invalid_properties; } @@ -201,13 +201,13 @@ public function valid() if ($this->container['name'] === null) { return false; } - if ($this->container['total_blacklisted'] === null) { + if ($this->container['totalBlacklisted'] === null) { return false; } - if ($this->container['total_subscribers'] === null) { + if ($this->container['totalSubscribers'] === null) { return false; } - if ($this->container['unique_subscribers'] === null) { + if ($this->container['uniqueSubscribers'] === null) { return false; } return true; @@ -257,64 +257,64 @@ public function setName($name) } /** - * Gets total_blacklisted + * Gets totalBlacklisted * @return int */ public function getTotalBlacklisted() { - return $this->container['total_blacklisted']; + return $this->container['totalBlacklisted']; } /** - * Sets total_blacklisted - * @param int $total_blacklisted Number of blacklisted contacts in the folder + * Sets totalBlacklisted + * @param int $totalBlacklisted Number of blacklisted contacts in the folder * @return $this */ - public function setTotalBlacklisted($total_blacklisted) + public function setTotalBlacklisted($totalBlacklisted) { - $this->container['total_blacklisted'] = $total_blacklisted; + $this->container['totalBlacklisted'] = $totalBlacklisted; return $this; } /** - * Gets total_subscribers + * Gets totalSubscribers * @return int */ public function getTotalSubscribers() { - return $this->container['total_subscribers']; + return $this->container['totalSubscribers']; } /** - * Sets total_subscribers - * @param int $total_subscribers Number of contacts in the folder + * Sets totalSubscribers + * @param int $totalSubscribers Number of contacts in the folder * @return $this */ - public function setTotalSubscribers($total_subscribers) + public function setTotalSubscribers($totalSubscribers) { - $this->container['total_subscribers'] = $total_subscribers; + $this->container['totalSubscribers'] = $totalSubscribers; return $this; } /** - * Gets unique_subscribers + * Gets uniqueSubscribers * @return int */ public function getUniqueSubscribers() { - return $this->container['unique_subscribers']; + return $this->container['uniqueSubscribers']; } /** - * Sets unique_subscribers - * @param int $unique_subscribers Number of unique contacts in the folder + * Sets uniqueSubscribers + * @param int $uniqueSubscribers Number of unique contacts in the folder * @return $this */ - public function setUniqueSubscribers($unique_subscribers) + public function setUniqueSubscribers($uniqueSubscribers) { - $this->container['unique_subscribers'] = $unique_subscribers; + $this->container['uniqueSubscribers'] = $uniqueSubscribers; return $this; } diff --git a/lib/Model/GetFolderLists.php b/lib/Model/GetFolderLists.php old mode 100755 new mode 100644 index fa9c3f71..c30d8480 --- a/lib/Model/GetFolderLists.php +++ b/lib/Model/GetFolderLists.php @@ -54,7 +54,7 @@ class GetFolderLists implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'lists' => '\Swagger\Client\Model\InlineResponse20018Lists[]', + 'lists' => 'object[]', 'count' => 'int' ]; @@ -180,7 +180,7 @@ public function valid() /** * Gets lists - * @return \Swagger\Client\Model\InlineResponse20018Lists[] + * @return object[] */ public function getLists() { @@ -189,7 +189,7 @@ public function getLists() /** * Sets lists - * @param \Swagger\Client\Model\InlineResponse20018Lists[] $lists + * @param object[] $lists * @return $this */ public function setLists($lists) diff --git a/lib/Model/GetFolders.php b/lib/Model/GetFolders.php old mode 100755 new mode 100644 index b0a2dc26..dcd3dba8 --- a/lib/Model/GetFolders.php +++ b/lib/Model/GetFolders.php @@ -54,7 +54,7 @@ class GetFolders implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'folders' => '\Swagger\Client\Model\InlineResponse20017Folders[]', + 'folders' => 'object[]', 'count' => 'int' ]; @@ -168,7 +168,7 @@ public function valid() /** * Gets folders - * @return \Swagger\Client\Model\InlineResponse20017Folders[] + * @return object[] */ public function getFolders() { @@ -177,7 +177,7 @@ public function getFolders() /** * Sets folders - * @param \Swagger\Client\Model\InlineResponse20017Folders[] $folders + * @param object[] $folders * @return $this */ public function setFolders($folders) diff --git a/lib/Model/GetIps.php b/lib/Model/GetIps.php old mode 100755 new mode 100644 index 6540f871..2c04bca1 --- a/lib/Model/GetIps.php +++ b/lib/Model/GetIps.php @@ -54,7 +54,7 @@ class GetIps implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'ips' => '\Swagger\Client\Model\InlineResponse2006Ips[]' + 'ips' => '\Swagger\Client\Model\GetIp[]' ]; /** @@ -168,7 +168,7 @@ public function valid() /** * Gets ips - * @return \Swagger\Client\Model\InlineResponse2006Ips[] + * @return \Swagger\Client\Model\GetIp[] */ public function getIps() { @@ -177,7 +177,7 @@ public function getIps() /** * Sets ips - * @param \Swagger\Client\Model\InlineResponse2006Ips[] $ips Dedicated IP(s) available on your account + * @param \Swagger\Client\Model\GetIp[] $ips Dedicated IP(s) available on your account * @return $this */ public function setIps($ips) diff --git a/lib/Model/GetIpsFromSender.php b/lib/Model/GetIpsFromSender.php old mode 100755 new mode 100644 index d98f2b59..48cc32c2 --- a/lib/Model/GetIpsFromSender.php +++ b/lib/Model/GetIpsFromSender.php @@ -54,7 +54,7 @@ class GetIpsFromSender implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'ips' => '\Swagger\Client\Model\InlineResponse2005Ips[]' + 'ips' => '\Swagger\Client\Model\GetIpFromSender[]' ]; /** @@ -168,7 +168,7 @@ public function valid() /** * Gets ips - * @return \Swagger\Client\Model\InlineResponse2005Ips[] + * @return \Swagger\Client\Model\GetIpFromSender[] */ public function getIps() { @@ -177,7 +177,7 @@ public function getIps() /** * Sets ips - * @param \Swagger\Client\Model\InlineResponse2005Ips[] $ips Dedicated IP(s) linked to a sender + * @param \Swagger\Client\Model\GetIpFromSender[] $ips Dedicated IP(s) linked to a sender * @return $this */ public function setIps($ips) diff --git a/lib/Model/GetList.php b/lib/Model/GetList.php old mode 100755 new mode 100644 index a75d9ed6..300d67fd --- a/lib/Model/GetList.php +++ b/lib/Model/GetList.php @@ -56,8 +56,8 @@ class GetList implements ArrayAccess protected static $swaggerTypes = [ 'id' => 'int', 'name' => 'string', - 'total_blacklisted' => 'int', - 'total_subscribers' => 'int' + 'totalBlacklisted' => 'int', + 'totalSubscribers' => 'int' ]; /** @@ -67,8 +67,8 @@ class GetList implements ArrayAccess protected static $swaggerFormats = [ 'id' => 'int32', 'name' => null, - 'total_blacklisted' => 'int32', - 'total_subscribers' => 'int32' + 'totalBlacklisted' => 'int32', + 'totalSubscribers' => 'int32' ]; public static function swaggerTypes() @@ -88,8 +88,8 @@ public static function swaggerFormats() protected static $attributeMap = [ 'id' => 'id', 'name' => 'name', - 'total_blacklisted' => 'totalBlacklisted', - 'total_subscribers' => 'totalSubscribers' + 'totalBlacklisted' => 'totalBlacklisted', + 'totalSubscribers' => 'totalSubscribers' ]; @@ -100,8 +100,8 @@ public static function swaggerFormats() protected static $setters = [ 'id' => 'setId', 'name' => 'setName', - 'total_blacklisted' => 'setTotalBlacklisted', - 'total_subscribers' => 'setTotalSubscribers' + 'totalBlacklisted' => 'setTotalBlacklisted', + 'totalSubscribers' => 'setTotalSubscribers' ]; @@ -112,8 +112,8 @@ public static function swaggerFormats() protected static $getters = [ 'id' => 'getId', 'name' => 'getName', - 'total_blacklisted' => 'getTotalBlacklisted', - 'total_subscribers' => 'getTotalSubscribers' + 'totalBlacklisted' => 'getTotalBlacklisted', + 'totalSubscribers' => 'getTotalSubscribers' ]; public static function attributeMap() @@ -149,8 +149,8 @@ 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['total_blacklisted'] = isset($data['total_blacklisted']) ? $data['total_blacklisted'] : null; - $this->container['total_subscribers'] = isset($data['total_subscribers']) ? $data['total_subscribers'] : null; + $this->container['totalBlacklisted'] = isset($data['totalBlacklisted']) ? $data['totalBlacklisted'] : null; + $this->container['totalSubscribers'] = isset($data['totalSubscribers']) ? $data['totalSubscribers'] : null; } /** @@ -168,11 +168,11 @@ public function listInvalidProperties() if ($this->container['name'] === null) { $invalid_properties[] = "'name' can't be null"; } - if ($this->container['total_blacklisted'] === null) { - $invalid_properties[] = "'total_blacklisted' can't be null"; + if ($this->container['totalBlacklisted'] === null) { + $invalid_properties[] = "'totalBlacklisted' can't be null"; } - if ($this->container['total_subscribers'] === null) { - $invalid_properties[] = "'total_subscribers' can't be null"; + if ($this->container['totalSubscribers'] === null) { + $invalid_properties[] = "'totalSubscribers' can't be null"; } return $invalid_properties; } @@ -192,10 +192,10 @@ public function valid() if ($this->container['name'] === null) { return false; } - if ($this->container['total_blacklisted'] === null) { + if ($this->container['totalBlacklisted'] === null) { return false; } - if ($this->container['total_subscribers'] === null) { + if ($this->container['totalSubscribers'] === null) { return false; } return true; @@ -245,43 +245,43 @@ public function setName($name) } /** - * Gets total_blacklisted + * Gets totalBlacklisted * @return int */ public function getTotalBlacklisted() { - return $this->container['total_blacklisted']; + return $this->container['totalBlacklisted']; } /** - * Sets total_blacklisted - * @param int $total_blacklisted Number of blacklisted contacts in the list + * Sets totalBlacklisted + * @param int $totalBlacklisted Number of blacklisted contacts in the list * @return $this */ - public function setTotalBlacklisted($total_blacklisted) + public function setTotalBlacklisted($totalBlacklisted) { - $this->container['total_blacklisted'] = $total_blacklisted; + $this->container['totalBlacklisted'] = $totalBlacklisted; return $this; } /** - * Gets total_subscribers + * Gets totalSubscribers * @return int */ public function getTotalSubscribers() { - return $this->container['total_subscribers']; + return $this->container['totalSubscribers']; } /** - * Sets total_subscribers - * @param int $total_subscribers Number of contacts in the list + * Sets totalSubscribers + * @param int $totalSubscribers Number of contacts in the list * @return $this */ - public function setTotalSubscribers($total_subscribers) + public function setTotalSubscribers($totalSubscribers) { - $this->container['total_subscribers'] = $total_subscribers; + $this->container['totalSubscribers'] = $totalSubscribers; return $this; } diff --git a/lib/Model/GetLists.php b/lib/Model/GetLists.php old mode 100755 new mode 100644 index 1eb0d4ac..1f2e11b7 --- a/lib/Model/GetLists.php +++ b/lib/Model/GetLists.php @@ -55,7 +55,7 @@ class GetLists implements ArrayAccess */ protected static $swaggerTypes = [ 'count' => 'int', - 'lists' => '\Swagger\Client\Model\InlineResponse20018Lists[]' + 'lists' => '\Swagger\Client\Model\GetListsLists[]' ]; /** @@ -201,7 +201,7 @@ public function setCount($count) /** * Gets lists - * @return \Swagger\Client\Model\InlineResponse20018Lists[] + * @return \Swagger\Client\Model\GetListsLists[] */ public function getLists() { @@ -210,7 +210,7 @@ public function getLists() /** * Sets lists - * @param \Swagger\Client\Model\InlineResponse20018Lists[] $lists Listing of all the lists available in your account + * @param \Swagger\Client\Model\GetListsLists[] $lists Listing of all the lists available in your account * @return $this */ public function setLists($lists) diff --git a/lib/Model/GetListsFolder.php b/lib/Model/GetListsFolder.php new file mode 100644 index 00000000..30a6597b --- /dev/null +++ b/lib/Model/GetListsFolder.php @@ -0,0 +1,281 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + 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' + ]; + + public static function attributeMap() + { + return self::$attributeMap; + } + + public static function setters() + { + return self::$setters; + } + + public static function getters() + { + return self::$getters; + } + + + + + + /** + * 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() + { + $invalid_properties = []; + + if ($this->container['id'] === null) { + $invalid_properties[] = "'id' can't be null"; + } + if ($this->container['name'] === null) { + $invalid_properties[] = "'name' can't be null"; + } + return $invalid_properties; + } + + /** + * validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['id'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + return true; + } + + + /** + * Gets id + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * @param int $id ID of the folder + * @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 folder + * @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 + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * @param integer $offset Offset + * @return mixed + */ + 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 + */ + 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 + */ + 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + } + + return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/IpId.php b/lib/Model/GetListsLists.php old mode 100755 new mode 100644 similarity index 87% rename from lib/Model/IpId.php rename to lib/Model/GetListsLists.php index 7ceb5f74..043e49fa --- a/lib/Model/IpId.php +++ b/lib/Model/GetListsLists.php @@ -1,6 +1,6 @@ 'int' + 'folder' => '\Swagger\Client\Model\GetListsFolder' ]; /** @@ -62,7 +62,7 @@ class IpId implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'ip_id' => 'int32' + 'folder' => null ]; public static function swaggerTypes() @@ -80,7 +80,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'ip_id' => 'ipId' + 'folder' => 'folder' ]; @@ -89,7 +89,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'ip_id' => 'setIpId' + 'folder' => 'setFolder' ]; @@ -98,7 +98,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'ip_id' => 'getIpId' + 'folder' => 'getFolder' ]; public static function attributeMap() @@ -132,7 +132,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['ip_id'] = isset($data['ip_id']) ? $data['ip_id'] : null; + $this->container['folder'] = isset($data['folder']) ? $data['folder'] : null; } /** @@ -161,22 +161,22 @@ public function valid() /** - * Gets ip_id - * @return int + * Gets folder + * @return \Swagger\Client\Model\GetListsFolder */ - public function getIpId() + public function getFolder() { - return $this->container['ip_id']; + return $this->container['folder']; } /** - * Sets ip_id - * @param int $ip_id ID of the IP + * Sets folder + * @param \Swagger\Client\Model\GetListsFolder $folder * @return $this */ - public function setIpId($ip_id) + public function setFolder($folder) { - $this->container['ip_id'] = $ip_id; + $this->container['folder'] = $folder; return $this; } diff --git a/lib/Model/GetProcess.php b/lib/Model/GetProcess.php old mode 100755 new mode 100644 index 6840cc21..18431662 --- a/lib/Model/GetProcess.php +++ b/lib/Model/GetProcess.php @@ -57,7 +57,7 @@ class GetProcess implements ArrayAccess 'id' => 'int', 'status' => 'string', 'name' => 'string', - 'export_url' => 'string' + 'exportUrl' => 'string' ]; /** @@ -68,7 +68,7 @@ class GetProcess implements ArrayAccess 'id' => 'int32', 'status' => null, 'name' => null, - 'export_url' => null + 'exportUrl' => null ]; public static function swaggerTypes() @@ -89,7 +89,7 @@ public static function swaggerFormats() 'id' => 'id', 'status' => 'status', 'name' => 'name', - 'export_url' => 'export_url' + 'exportUrl' => 'export_url' ]; @@ -101,7 +101,7 @@ public static function swaggerFormats() 'id' => 'setId', 'status' => 'setStatus', 'name' => 'setName', - 'export_url' => 'setExportUrl' + 'exportUrl' => 'setExportUrl' ]; @@ -113,7 +113,7 @@ public static function swaggerFormats() 'id' => 'getId', 'status' => 'getStatus', 'name' => 'getName', - 'export_url' => 'getExportUrl' + 'exportUrl' => 'getExportUrl' ]; public static function attributeMap() @@ -166,7 +166,7 @@ public function __construct(array $data = null) $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['export_url'] = isset($data['export_url']) ? $data['export_url'] : null; + $this->container['exportUrl'] = isset($data['exportUrl']) ? $data['exportUrl'] : null; } /** @@ -297,22 +297,22 @@ public function setName($name) } /** - * Gets export_url + * Gets exportUrl * @return string */ public function getExportUrl() { - return $this->container['export_url']; + return $this->container['exportUrl']; } /** - * Sets export_url - * @param string $export_url URL on which send export the of contacts once the process is completed + * Sets exportUrl + * @param string $exportUrl URL on which send export the of contacts once the process is completed * @return $this */ - public function setExportUrl($export_url) + public function setExportUrl($exportUrl) { - $this->container['export_url'] = $export_url; + $this->container['exportUrl'] = $exportUrl; return $this; } diff --git a/lib/Model/GetProcesses.php b/lib/Model/GetProcesses.php old mode 100755 new mode 100644 index 3aac800e..503de031 --- a/lib/Model/GetProcesses.php +++ b/lib/Model/GetProcesses.php @@ -54,7 +54,7 @@ class GetProcesses implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'processes' => '\Swagger\Client\Model\InlineResponse2007Processes[]', + 'processes' => '\Swagger\Client\Model\GetProcess[]', 'count' => 'int' ]; @@ -174,7 +174,7 @@ public function valid() /** * Gets processes - * @return \Swagger\Client\Model\InlineResponse2007Processes[] + * @return \Swagger\Client\Model\GetProcess[] */ public function getProcesses() { @@ -183,7 +183,7 @@ public function getProcesses() /** * Sets processes - * @param \Swagger\Client\Model\InlineResponse2007Processes[] $processes List of processes available on your account + * @param \Swagger\Client\Model\GetProcess[] $processes List of processes available on your account * @return $this */ public function setProcesses($processes) diff --git a/lib/Model/GetReports.php b/lib/Model/GetReports.php old mode 100755 new mode 100644 index fb3de790..52df7f97 --- a/lib/Model/GetReports.php +++ b/lib/Model/GetReports.php @@ -54,7 +54,7 @@ class GetReports implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'reports' => '\Swagger\Client\Model\InlineResponse2009Reports[]' + 'reports' => '\Swagger\Client\Model\GetReportsReports[]' ]; /** @@ -162,7 +162,7 @@ public function valid() /** * Gets reports - * @return \Swagger\Client\Model\InlineResponse2009Reports[] + * @return \Swagger\Client\Model\GetReportsReports[] */ public function getReports() { @@ -171,7 +171,7 @@ public function getReports() /** * Sets reports - * @param \Swagger\Client\Model\InlineResponse2009Reports[] $reports + * @param \Swagger\Client\Model\GetReportsReports[] $reports * @return $this */ public function setReports($reports) diff --git a/lib/Model/InlineResponse2009Reports.php b/lib/Model/GetReportsReports.php old mode 100755 new mode 100644 similarity index 76% rename from lib/Model/InlineResponse2009Reports.php rename to lib/Model/GetReportsReports.php index 164b54a6..8809a30f --- a/lib/Model/InlineResponse2009Reports.php +++ b/lib/Model/GetReportsReports.php @@ -1,6 +1,6 @@ 'string', 'requests' => 'int', 'delivered' => 'int', - 'hard_bounces' => 'int', - 'soft_bounces' => 'int', + 'hardBounces' => 'int', + 'softBounces' => 'int', 'clicks' => 'int', - 'unique_clicks' => 'int', + 'uniqueClicks' => 'int', 'opens' => 'int', - 'unique_opens' => 'int', - 'spam_reports' => 'int', + 'uniqueOpens' => 'int', + 'spamReports' => 'int', 'blocked' => 'int', 'invalid' => 'int' ]; @@ -78,13 +78,13 @@ class InlineResponse2009Reports implements ArrayAccess 'tag' => null, 'requests' => 'int32', 'delivered' => 'int32', - 'hard_bounces' => 'int32', - 'soft_bounces' => 'int32', + 'hardBounces' => 'int32', + 'softBounces' => 'int32', 'clicks' => 'int32', - 'unique_clicks' => 'int32', + 'uniqueClicks' => 'int32', 'opens' => 'int32', - 'unique_opens' => 'int32', - 'spam_reports' => 'int32', + 'uniqueOpens' => 'int32', + 'spamReports' => 'int32', 'blocked' => 'int32', 'invalid' => 'int32' ]; @@ -108,13 +108,13 @@ public static function swaggerFormats() 'tag' => 'tag', 'requests' => 'requests', 'delivered' => 'delivered', - 'hard_bounces' => 'hardBounces', - 'soft_bounces' => 'softBounces', + 'hardBounces' => 'hardBounces', + 'softBounces' => 'softBounces', 'clicks' => 'clicks', - 'unique_clicks' => 'uniqueClicks', + 'uniqueClicks' => 'uniqueClicks', 'opens' => 'opens', - 'unique_opens' => 'uniqueOpens', - 'spam_reports' => 'spamReports', + 'uniqueOpens' => 'uniqueOpens', + 'spamReports' => 'spamReports', 'blocked' => 'blocked', 'invalid' => 'invalid' ]; @@ -129,13 +129,13 @@ public static function swaggerFormats() 'tag' => 'setTag', 'requests' => 'setRequests', 'delivered' => 'setDelivered', - 'hard_bounces' => 'setHardBounces', - 'soft_bounces' => 'setSoftBounces', + 'hardBounces' => 'setHardBounces', + 'softBounces' => 'setSoftBounces', 'clicks' => 'setClicks', - 'unique_clicks' => 'setUniqueClicks', + 'uniqueClicks' => 'setUniqueClicks', 'opens' => 'setOpens', - 'unique_opens' => 'setUniqueOpens', - 'spam_reports' => 'setSpamReports', + 'uniqueOpens' => 'setUniqueOpens', + 'spamReports' => 'setSpamReports', 'blocked' => 'setBlocked', 'invalid' => 'setInvalid' ]; @@ -150,13 +150,13 @@ public static function swaggerFormats() 'tag' => 'getTag', 'requests' => 'getRequests', 'delivered' => 'getDelivered', - 'hard_bounces' => 'getHardBounces', - 'soft_bounces' => 'getSoftBounces', + 'hardBounces' => 'getHardBounces', + 'softBounces' => 'getSoftBounces', 'clicks' => 'getClicks', - 'unique_clicks' => 'getUniqueClicks', + 'uniqueClicks' => 'getUniqueClicks', 'opens' => 'getOpens', - 'unique_opens' => 'getUniqueOpens', - 'spam_reports' => 'getSpamReports', + 'uniqueOpens' => 'getUniqueOpens', + 'spamReports' => 'getSpamReports', 'blocked' => 'getBlocked', 'invalid' => 'getInvalid' ]; @@ -196,13 +196,13 @@ public function __construct(array $data = null) $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; $this->container['requests'] = isset($data['requests']) ? $data['requests'] : null; $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; + $this->container['hardBounces'] = isset($data['hardBounces']) ? $data['hardBounces'] : null; + $this->container['softBounces'] = isset($data['softBounces']) ? $data['softBounces'] : null; $this->container['clicks'] = isset($data['clicks']) ? $data['clicks'] : null; - $this->container['unique_clicks'] = isset($data['unique_clicks']) ? $data['unique_clicks'] : null; + $this->container['uniqueClicks'] = isset($data['uniqueClicks']) ? $data['uniqueClicks'] : null; $this->container['opens'] = isset($data['opens']) ? $data['opens'] : null; - $this->container['unique_opens'] = isset($data['unique_opens']) ? $data['unique_opens'] : null; - $this->container['spam_reports'] = isset($data['spam_reports']) ? $data['spam_reports'] : null; + $this->container['uniqueOpens'] = isset($data['uniqueOpens']) ? $data['uniqueOpens'] : null; + $this->container['spamReports'] = isset($data['spamReports']) ? $data['spamReports'] : null; $this->container['blocked'] = isset($data['blocked']) ? $data['blocked'] : null; $this->container['invalid'] = isset($data['invalid']) ? $data['invalid'] : null; } @@ -228,26 +228,26 @@ public function listInvalidProperties() if ($this->container['delivered'] === null) { $invalid_properties[] = "'delivered' can't be null"; } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; + if ($this->container['hardBounces'] === null) { + $invalid_properties[] = "'hardBounces' can't be null"; } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; + if ($this->container['softBounces'] === null) { + $invalid_properties[] = "'softBounces' can't be null"; } if ($this->container['clicks'] === null) { $invalid_properties[] = "'clicks' can't be null"; } - if ($this->container['unique_clicks'] === null) { - $invalid_properties[] = "'unique_clicks' can't be null"; + if ($this->container['uniqueClicks'] === null) { + $invalid_properties[] = "'uniqueClicks' can't be null"; } if ($this->container['opens'] === null) { $invalid_properties[] = "'opens' can't be null"; } - if ($this->container['unique_opens'] === null) { - $invalid_properties[] = "'unique_opens' can't be null"; + if ($this->container['uniqueOpens'] === null) { + $invalid_properties[] = "'uniqueOpens' can't be null"; } - if ($this->container['spam_reports'] === null) { - $invalid_properties[] = "'spam_reports' can't be null"; + if ($this->container['spamReports'] === null) { + $invalid_properties[] = "'spamReports' can't be null"; } if ($this->container['blocked'] === null) { $invalid_properties[] = "'blocked' can't be null"; @@ -279,25 +279,25 @@ public function valid() if ($this->container['delivered'] === null) { return false; } - if ($this->container['hard_bounces'] === null) { + if ($this->container['hardBounces'] === null) { return false; } - if ($this->container['soft_bounces'] === null) { + if ($this->container['softBounces'] === null) { return false; } if ($this->container['clicks'] === null) { return false; } - if ($this->container['unique_clicks'] === null) { + if ($this->container['uniqueClicks'] === null) { return false; } if ($this->container['opens'] === null) { return false; } - if ($this->container['unique_opens'] === null) { + if ($this->container['uniqueOpens'] === null) { return false; } - if ($this->container['spam_reports'] === null) { + if ($this->container['spamReports'] === null) { return false; } if ($this->container['blocked'] === null) { @@ -395,43 +395,43 @@ public function setDelivered($delivered) } /** - * Gets hard_bounces + * Gets hardBounces * @return int */ public function getHardBounces() { - return $this->container['hard_bounces']; + return $this->container['hardBounces']; } /** - * Sets hard_bounces - * @param int $hard_bounces Number of hardbounces for the date + * Sets hardBounces + * @param int $hardBounces Number of hardbounces for the date * @return $this */ - public function setHardBounces($hard_bounces) + public function setHardBounces($hardBounces) { - $this->container['hard_bounces'] = $hard_bounces; + $this->container['hardBounces'] = $hardBounces; return $this; } /** - * Gets soft_bounces + * Gets softBounces * @return int */ public function getSoftBounces() { - return $this->container['soft_bounces']; + return $this->container['softBounces']; } /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounces for the date + * Sets softBounces + * @param int $softBounces Number of softbounces for the date * @return $this */ - public function setSoftBounces($soft_bounces) + public function setSoftBounces($softBounces) { - $this->container['soft_bounces'] = $soft_bounces; + $this->container['softBounces'] = $softBounces; return $this; } @@ -458,22 +458,22 @@ public function setClicks($clicks) } /** - * Gets unique_clicks + * Gets uniqueClicks * @return int */ public function getUniqueClicks() { - return $this->container['unique_clicks']; + return $this->container['uniqueClicks']; } /** - * Sets unique_clicks - * @param int $unique_clicks Number of unique clicks for the date + * Sets uniqueClicks + * @param int $uniqueClicks Number of unique clicks for the date * @return $this */ - public function setUniqueClicks($unique_clicks) + public function setUniqueClicks($uniqueClicks) { - $this->container['unique_clicks'] = $unique_clicks; + $this->container['uniqueClicks'] = $uniqueClicks; return $this; } @@ -500,43 +500,43 @@ public function setOpens($opens) } /** - * Gets unique_opens + * Gets uniqueOpens * @return int */ public function getUniqueOpens() { - return $this->container['unique_opens']; + return $this->container['uniqueOpens']; } /** - * Sets unique_opens - * @param int $unique_opens Number of unique openings for the date + * Sets uniqueOpens + * @param int $uniqueOpens Number of unique openings for the date * @return $this */ - public function setUniqueOpens($unique_opens) + public function setUniqueOpens($uniqueOpens) { - $this->container['unique_opens'] = $unique_opens; + $this->container['uniqueOpens'] = $uniqueOpens; return $this; } /** - * Gets spam_reports + * Gets spamReports * @return int */ public function getSpamReports() { - return $this->container['spam_reports']; + return $this->container['spamReports']; } /** - * Sets spam_reports - * @param int $spam_reports Number of complaints (spam reports) for the date + * Sets spamReports + * @param int $spamReports Number of complaints (spam reports) for the date * @return $this */ - public function setSpamReports($spam_reports) + public function setSpamReports($spamReports) { - $this->container['spam_reports'] = $spam_reports; + $this->container['spamReports'] = $spamReports; return $this; } diff --git a/lib/Model/GetSendersList.php b/lib/Model/GetSendersList.php old mode 100755 new mode 100644 index 36923f12..bcf29023 --- a/lib/Model/GetSendersList.php +++ b/lib/Model/GetSendersList.php @@ -54,7 +54,7 @@ class GetSendersList implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'senders' => '\Swagger\Client\Model\InlineResponse2004Senders[]' + 'senders' => '\Swagger\Client\Model\GetSendersListSenders[]' ]; /** @@ -162,7 +162,7 @@ public function valid() /** * Gets senders - * @return \Swagger\Client\Model\InlineResponse2004Senders[] + * @return \Swagger\Client\Model\GetSendersListSenders[] */ public function getSenders() { @@ -171,7 +171,7 @@ public function getSenders() /** * Sets senders - * @param \Swagger\Client\Model\InlineResponse2004Senders[] $senders List of the senders available in your account + * @param \Swagger\Client\Model\GetSendersListSenders[] $senders List of the senders available in your account * @return $this */ public function setSenders($senders) diff --git a/lib/Model/InlineResponse2004Ips.php b/lib/Model/GetSendersListIps.php old mode 100755 new mode 100644 similarity index 97% rename from lib/Model/InlineResponse2004Ips.php rename to lib/Model/GetSendersListIps.php index 2fe613cf..4d316352 --- a/lib/Model/InlineResponse2004Ips.php +++ b/lib/Model/GetSendersListIps.php @@ -1,6 +1,6 @@ 'string', 'email' => 'string', 'active' => 'bool', - 'ips' => '\Swagger\Client\Model\InlineResponse2004Ips[]' + 'ips' => '\Swagger\Client\Model\GetSendersListIps[]' ]; /** @@ -294,7 +294,7 @@ public function setActive($active) /** * Gets ips - * @return \Swagger\Client\Model\InlineResponse2004Ips[] + * @return \Swagger\Client\Model\GetSendersListIps[] */ public function getIps() { @@ -303,7 +303,7 @@ public function getIps() /** * Sets ips - * @param \Swagger\Client\Model\InlineResponse2004Ips[] $ips List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs + * @param \Swagger\Client\Model\GetSendersListIps[] $ips List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs * @return $this */ public function setIps($ips) diff --git a/lib/Model/GetSmsCampaign.php b/lib/Model/GetSmsCampaign.php old mode 100755 new mode 100644 index c8ffd3cf..1ad1d3a8 --- a/lib/Model/GetSmsCampaign.php +++ b/lib/Model/GetSmsCampaign.php @@ -58,13 +58,11 @@ class GetSmsCampaign implements ArrayAccess 'name' => 'string', 'status' => 'string', 'content' => 'string', - 'scheduled_at' => 'string', - 'test_sent' => 'bool', + 'scheduledAt' => 'string', + 'testSent' => 'bool', 'sender' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string', - 'recipients' => '\Swagger\Client\Model\InlineResponse2008Recipients', - 'statistics' => '\Swagger\Client\Model\InlineResponse20021Statistics' + 'createdAt' => 'string', + 'modifiedAt' => 'string' ]; /** @@ -76,13 +74,11 @@ class GetSmsCampaign implements ArrayAccess 'name' => null, 'status' => null, 'content' => null, - 'scheduled_at' => null, - 'test_sent' => null, + 'scheduledAt' => null, + 'testSent' => null, 'sender' => null, - 'created_at' => null, - 'modified_at' => null, - 'recipients' => null, - 'statistics' => null + 'createdAt' => null, + 'modifiedAt' => null ]; public static function swaggerTypes() @@ -104,13 +100,11 @@ public static function swaggerFormats() 'name' => 'name', 'status' => 'status', 'content' => 'content', - 'scheduled_at' => 'scheduledAt', - 'test_sent' => 'testSent', + 'scheduledAt' => 'scheduledAt', + 'testSent' => 'testSent', 'sender' => 'sender', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt', - 'recipients' => 'recipients', - 'statistics' => 'statistics' + 'createdAt' => 'createdAt', + 'modifiedAt' => 'modifiedAt' ]; @@ -123,13 +117,11 @@ public static function swaggerFormats() 'name' => 'setName', 'status' => 'setStatus', 'content' => 'setContent', - 'scheduled_at' => 'setScheduledAt', - 'test_sent' => 'setTestSent', + 'scheduledAt' => 'setScheduledAt', + 'testSent' => 'setTestSent', 'sender' => 'setSender', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt', - 'recipients' => 'setRecipients', - 'statistics' => 'setStatistics' + 'createdAt' => 'setCreatedAt', + 'modifiedAt' => 'setModifiedAt' ]; @@ -142,13 +134,11 @@ public static function swaggerFormats() 'name' => 'getName', 'status' => 'getStatus', 'content' => 'getContent', - 'scheduled_at' => 'getScheduledAt', - 'test_sent' => 'getTestSent', + 'scheduledAt' => 'getScheduledAt', + 'testSent' => 'getTestSent', 'sender' => 'getSender', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt', - 'recipients' => 'getRecipients', - 'statistics' => 'getStatistics' + 'createdAt' => 'getCreatedAt', + 'modifiedAt' => 'getModifiedAt' ]; public static function attributeMap() @@ -208,13 +198,11 @@ public function __construct(array $data = null) $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; $this->container['content'] = isset($data['content']) ? $data['content'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; + $this->container['testSent'] = isset($data['testSent']) ? $data['testSent'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; } /** @@ -246,31 +234,31 @@ public function listInvalidProperties() if ($this->container['content'] === null) { $invalid_properties[] = "'content' can't be null"; } - if ($this->container['scheduled_at'] === null) { - $invalid_properties[] = "'scheduled_at' can't be null"; + if ($this->container['scheduledAt'] === null) { + $invalid_properties[] = "'scheduledAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; + if ($this->container['testSent'] === null) { + $invalid_properties[] = "'testSent' can't be null"; } if ($this->container['sender'] === null) { $invalid_properties[] = "'sender' can't be null"; } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; + if ($this->container['createdAt'] === null) { + $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { + $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; + if ($this->container['modifiedAt'] === null) { + $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { + $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -301,28 +289,28 @@ public function valid() if ($this->container['content'] === null) { return false; } - if ($this->container['scheduled_at'] === null) { + if ($this->container['scheduledAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } - if ($this->container['test_sent'] === null) { + if ($this->container['testSent'] === null) { return false; } if ($this->container['sender'] === null) { return false; } - if ($this->container['created_at'] === null) { + if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { return false; } - if ($this->container['modified_at'] === null) { + if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { return false; } return true; @@ -423,48 +411,48 @@ public function setContent($content) } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Date on which SMS campaign is scheduled + * Sets scheduledAt + * @param string $scheduledAt Date on which SMS campaign is scheduled * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling GetSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } /** - * Gets test_sent + * Gets testSent * @return bool */ public function getTestSent() { - return $this->container['test_sent']; + return $this->container['testSent']; } /** - * Sets test_sent - * @param bool $test_sent Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) + * Sets testSent + * @param bool $testSent Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) * @return $this */ - public function setTestSent($test_sent) + public function setTestSent($testSent) { - $this->container['test_sent'] = $test_sent; + $this->container['testSent'] = $testSent; return $this; } @@ -491,95 +479,53 @@ public function setSender($sender) } /** - * Gets created_at + * Gets createdAt * @return string */ public function getCreatedAt() { - return $this->container['created_at']; + return $this->container['createdAt']; } /** - * Sets created_at - * @param string $created_at Creation date of the SMS campaign + * Sets createdAt + * @param string $createdAt Creation date of the SMS campaign * @return $this */ - public function setCreatedAt($created_at) + public function setCreatedAt($createdAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling GetSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $createdAt))) { + throw new \InvalidArgumentException("invalid value for $createdAt when calling GetSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['created_at'] = $created_at; + $this->container['createdAt'] = $createdAt; return $this; } /** - * Gets modified_at + * Gets modifiedAt * @return string */ public function getModifiedAt() { - return $this->container['modified_at']; + return $this->container['modifiedAt']; } /** - * Sets modified_at - * @param string $modified_at Date of last modification of the SMS campaign + * Sets modifiedAt + * @param string $modifiedAt Date of last modification of the SMS campaign * @return $this */ - public function setModifiedAt($modified_at) + public function setModifiedAt($modifiedAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling GetSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedAt))) { + throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['modified_at'] = $modified_at; - - return $this; - } - - /** - * Gets recipients - * @return \Swagger\Client\Model\InlineResponse2008Recipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\InlineResponse2008Recipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets statistics - * @return \Swagger\Client\Model\InlineResponse20021Statistics - */ - public function getStatistics() - { - return $this->container['statistics']; - } - - /** - * Sets statistics - * @param \Swagger\Client\Model\InlineResponse20021Statistics $statistics - * @return $this - */ - public function setStatistics($statistics) - { - $this->container['statistics'] = $statistics; + $this->container['modifiedAt'] = $modifiedAt; return $this; } diff --git a/lib/Model/GetSmsCampaign1.php b/lib/Model/GetSmsCampaign1.php deleted file mode 100755 index 3b0f01ef..00000000 --- a/lib/Model/GetSmsCampaign1.php +++ /dev/null @@ -1,645 +0,0 @@ - 'int', - 'name' => 'string', - 'status' => 'string', - 'content' => 'string', - 'scheduled_at' => 'string', - 'test_sent' => 'bool', - 'sender' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string', - 'recipients' => '\Swagger\Client\Model\InlineResponse2008Recipients', - 'statistics' => '\Swagger\Client\Model\InlineResponse20021Statistics' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'name' => null, - 'status' => null, - 'content' => null, - 'scheduled_at' => null, - 'test_sent' => null, - 'sender' => null, - 'created_at' => null, - 'modified_at' => null, - 'recipients' => null, - 'statistics' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'status' => 'status', - 'content' => 'content', - 'scheduled_at' => 'scheduledAt', - 'test_sent' => 'testSent', - 'sender' => 'sender', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt', - 'recipients' => 'recipients', - 'statistics' => 'statistics' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'status' => 'setStatus', - 'content' => 'setContent', - 'scheduled_at' => 'setScheduledAt', - 'test_sent' => 'setTestSent', - 'sender' => 'setSender', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt', - 'recipients' => 'setRecipients', - 'statistics' => 'setStatistics' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'status' => 'getStatus', - 'content' => 'getContent', - 'scheduled_at' => 'getScheduledAt', - 'test_sent' => 'getTestSent', - 'sender' => 'getSender', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt', - 'recipients' => 'getRecipients', - 'statistics' => 'getStatistics' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const STATUS_DRAFT = 'draft'; - const STATUS_SENT = 'sent'; - const STATUS_ARCHIVE = 'archive'; - const STATUS_QUEUED = 'queued'; - const STATUS_SUSPENDED = 'suspended'; - const STATUS_IN_PROCESS = 'in_process'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getStatusAllowableValues() - { - return [ - self::STATUS_DRAFT, - self::STATUS_SENT, - self::STATUS_ARCHIVE, - self::STATUS_QUEUED, - self::STATUS_SUSPENDED, - self::STATUS_IN_PROCESS, - ]; - } - - - /** - * 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['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['content'] = isset($data['content']) ? $data['content'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; - $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : 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. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['status'] === null) { - $invalid_properties[] = "'status' can't be null"; - } - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['content'] === null) { - $invalid_properties[] = "'content' can't be null"; - } - if ($this->container['scheduled_at'] === null) { - $invalid_properties[] = "'scheduled_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; - } - if ($this->container['sender'] === null) { - $invalid_properties[] = "'sender' can't be null"; - } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['status'] === null) { - return false; - } - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - return false; - } - if ($this->container['content'] === null) { - return false; - } - if ($this->container['scheduled_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - return false; - } - if ($this->container['test_sent'] === null) { - return false; - } - if ($this->container['sender'] === null) { - return false; - } - if ($this->container['created_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - return false; - } - if ($this->container['modified_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the SMS Campaign - * @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 SMS Campaign - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * @param string $status Status of the SMS Campaign - * @return $this - */ - public function setStatus($status) - { - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($status, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets content - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * @param string $content Content of the SMS Campaign - * @return $this - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } - - /** - * Gets scheduled_at - * @return string - */ - public function getScheduledAt() - { - return $this->container['scheduled_at']; - } - - /** - * Sets scheduled_at - * @param string $scheduled_at Date on which SMS campaign is scheduled - * @return $this - */ - public function setScheduledAt($scheduled_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling GetSmsCampaign1., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['scheduled_at'] = $scheduled_at; - - return $this; - } - - /** - * Gets test_sent - * @return bool - */ - public function getTestSent() - { - return $this->container['test_sent']; - } - - /** - * Sets test_sent - * @param bool $test_sent Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) - * @return $this - */ - public function setTestSent($test_sent) - { - $this->container['test_sent'] = $test_sent; - - return $this; - } - - /** - * Gets sender - * @return string - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param string $sender Sender of the SMS Campaign - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * @param string $created_at Creation date of the SMS campaign - * @return $this - */ - public function setCreatedAt($created_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling GetSmsCampaign1., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets modified_at - * @return string - */ - public function getModifiedAt() - { - return $this->container['modified_at']; - } - - /** - * Sets modified_at - * @param string $modified_at Date of last modification of the SMS campaign - * @return $this - */ - public function setModifiedAt($modified_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling GetSmsCampaign1., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['modified_at'] = $modified_at; - - return $this; - } - - /** - * Gets recipients - * @return \Swagger\Client\Model\InlineResponse2008Recipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\InlineResponse2008Recipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets statistics - * @return \Swagger\Client\Model\InlineResponse20021Statistics - */ - public function getStatistics() - { - return $this->container['statistics']; - } - - /** - * Sets statistics - * @param \Swagger\Client\Model\InlineResponse20021Statistics $statistics - * @return $this - */ - public function setStatistics($statistics) - { - $this->container['statistics'] = $statistics; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetSmsCampaignOverview.php b/lib/Model/GetSmsCampaignOverview.php old mode 100755 new mode 100644 index 810f934c..5d2b232b --- a/lib/Model/GetSmsCampaignOverview.php +++ b/lib/Model/GetSmsCampaignOverview.php @@ -58,11 +58,11 @@ class GetSmsCampaignOverview implements ArrayAccess 'name' => 'string', 'status' => 'string', 'content' => 'string', - 'scheduled_at' => 'string', - 'test_sent' => 'bool', + 'scheduledAt' => 'string', + 'testSent' => 'bool', 'sender' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string' + 'createdAt' => 'string', + 'modifiedAt' => 'string' ]; /** @@ -74,11 +74,11 @@ class GetSmsCampaignOverview implements ArrayAccess 'name' => null, 'status' => null, 'content' => null, - 'scheduled_at' => null, - 'test_sent' => null, + 'scheduledAt' => null, + 'testSent' => null, 'sender' => null, - 'created_at' => null, - 'modified_at' => null + 'createdAt' => null, + 'modifiedAt' => null ]; public static function swaggerTypes() @@ -100,11 +100,11 @@ public static function swaggerFormats() 'name' => 'name', 'status' => 'status', 'content' => 'content', - 'scheduled_at' => 'scheduledAt', - 'test_sent' => 'testSent', + 'scheduledAt' => 'scheduledAt', + 'testSent' => 'testSent', 'sender' => 'sender', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt' + 'createdAt' => 'createdAt', + 'modifiedAt' => 'modifiedAt' ]; @@ -117,11 +117,11 @@ public static function swaggerFormats() 'name' => 'setName', 'status' => 'setStatus', 'content' => 'setContent', - 'scheduled_at' => 'setScheduledAt', - 'test_sent' => 'setTestSent', + 'scheduledAt' => 'setScheduledAt', + 'testSent' => 'setTestSent', 'sender' => 'setSender', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt' + 'createdAt' => 'setCreatedAt', + 'modifiedAt' => 'setModifiedAt' ]; @@ -134,11 +134,11 @@ public static function swaggerFormats() 'name' => 'getName', 'status' => 'getStatus', 'content' => 'getContent', - 'scheduled_at' => 'getScheduledAt', - 'test_sent' => 'getTestSent', + 'scheduledAt' => 'getScheduledAt', + 'testSent' => 'getTestSent', 'sender' => 'getSender', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt' + 'createdAt' => 'getCreatedAt', + 'modifiedAt' => 'getModifiedAt' ]; public static function attributeMap() @@ -198,11 +198,11 @@ public function __construct(array $data = null) $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; $this->container['content'] = isset($data['content']) ? $data['content'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; + $this->container['testSent'] = isset($data['testSent']) ? $data['testSent'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; } /** @@ -234,31 +234,31 @@ public function listInvalidProperties() if ($this->container['content'] === null) { $invalid_properties[] = "'content' can't be null"; } - if ($this->container['scheduled_at'] === null) { - $invalid_properties[] = "'scheduled_at' can't be null"; + if ($this->container['scheduledAt'] === null) { + $invalid_properties[] = "'scheduledAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; + if ($this->container['testSent'] === null) { + $invalid_properties[] = "'testSent' can't be null"; } if ($this->container['sender'] === null) { $invalid_properties[] = "'sender' can't be null"; } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; + if ($this->container['createdAt'] === null) { + $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { + $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; + if ($this->container['modifiedAt'] === null) { + $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { + $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -289,28 +289,28 @@ public function valid() if ($this->container['content'] === null) { return false; } - if ($this->container['scheduled_at'] === null) { + if ($this->container['scheduledAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } - if ($this->container['test_sent'] === null) { + if ($this->container['testSent'] === null) { return false; } if ($this->container['sender'] === null) { return false; } - if ($this->container['created_at'] === null) { + if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { return false; } - if ($this->container['modified_at'] === null) { + if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { return false; } return true; @@ -411,48 +411,48 @@ public function setContent($content) } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Date on which SMS campaign is scheduled + * Sets scheduledAt + * @param string $scheduledAt Date on which SMS campaign is scheduled * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling GetSmsCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling GetSmsCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } /** - * Gets test_sent + * Gets testSent * @return bool */ public function getTestSent() { - return $this->container['test_sent']; + return $this->container['testSent']; } /** - * Sets test_sent - * @param bool $test_sent Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) + * Sets testSent + * @param bool $testSent Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) * @return $this */ - public function setTestSent($test_sent) + public function setTestSent($testSent) { - $this->container['test_sent'] = $test_sent; + $this->container['testSent'] = $testSent; return $this; } @@ -479,53 +479,53 @@ public function setSender($sender) } /** - * Gets created_at + * Gets createdAt * @return string */ public function getCreatedAt() { - return $this->container['created_at']; + return $this->container['createdAt']; } /** - * Sets created_at - * @param string $created_at Creation date of the SMS campaign + * Sets createdAt + * @param string $createdAt Creation date of the SMS campaign * @return $this */ - public function setCreatedAt($created_at) + public function setCreatedAt($createdAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling GetSmsCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $createdAt))) { + throw new \InvalidArgumentException("invalid value for $createdAt when calling GetSmsCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['created_at'] = $created_at; + $this->container['createdAt'] = $createdAt; return $this; } /** - * Gets modified_at + * Gets modifiedAt * @return string */ public function getModifiedAt() { - return $this->container['modified_at']; + return $this->container['modifiedAt']; } /** - * Sets modified_at - * @param string $modified_at Date of last modification of the SMS campaign + * Sets modifiedAt + * @param string $modifiedAt Date of last modification of the SMS campaign * @return $this */ - public function setModifiedAt($modified_at) + public function setModifiedAt($modifiedAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling GetSmsCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedAt))) { + throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetSmsCampaignOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['modified_at'] = $modified_at; + $this->container['modifiedAt'] = $modifiedAt; return $this; } diff --git a/lib/Model/GetSmsCampaignStats.php b/lib/Model/GetSmsCampaignStats.php old mode 100755 new mode 100644 index b854e2c1..2291977f --- a/lib/Model/GetSmsCampaignStats.php +++ b/lib/Model/GetSmsCampaignStats.php @@ -57,8 +57,8 @@ class GetSmsCampaignStats implements ArrayAccess 'delivered' => 'int', 'sent' => 'int', 'processing' => 'int', - 'soft_bounces' => 'int', - 'hard_bounces' => 'int', + 'softBounces' => 'int', + 'hardBounces' => 'int', 'unsubscriptions' => 'int', 'answered' => 'int' ]; @@ -71,8 +71,8 @@ class GetSmsCampaignStats implements ArrayAccess 'delivered' => 'int32', 'sent' => 'int32', 'processing' => 'int32', - 'soft_bounces' => 'int32', - 'hard_bounces' => 'int32', + 'softBounces' => 'int32', + 'hardBounces' => 'int32', 'unsubscriptions' => 'int32', 'answered' => 'int32' ]; @@ -95,8 +95,8 @@ public static function swaggerFormats() 'delivered' => 'delivered', 'sent' => 'sent', 'processing' => 'processing', - 'soft_bounces' => 'softBounces', - 'hard_bounces' => 'hardBounces', + 'softBounces' => 'softBounces', + 'hardBounces' => 'hardBounces', 'unsubscriptions' => 'unsubscriptions', 'answered' => 'answered' ]; @@ -110,8 +110,8 @@ public static function swaggerFormats() 'delivered' => 'setDelivered', 'sent' => 'setSent', 'processing' => 'setProcessing', - 'soft_bounces' => 'setSoftBounces', - 'hard_bounces' => 'setHardBounces', + 'softBounces' => 'setSoftBounces', + 'hardBounces' => 'setHardBounces', 'unsubscriptions' => 'setUnsubscriptions', 'answered' => 'setAnswered' ]; @@ -125,8 +125,8 @@ public static function swaggerFormats() 'delivered' => 'getDelivered', 'sent' => 'getSent', 'processing' => 'getProcessing', - 'soft_bounces' => 'getSoftBounces', - 'hard_bounces' => 'getHardBounces', + 'softBounces' => 'getSoftBounces', + 'hardBounces' => 'getHardBounces', 'unsubscriptions' => 'getUnsubscriptions', 'answered' => 'getAnswered' ]; @@ -165,8 +165,8 @@ public function __construct(array $data = null) $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; $this->container['sent'] = isset($data['sent']) ? $data['sent'] : null; $this->container['processing'] = isset($data['processing']) ? $data['processing'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; + $this->container['softBounces'] = isset($data['softBounces']) ? $data['softBounces'] : null; + $this->container['hardBounces'] = isset($data['hardBounces']) ? $data['hardBounces'] : null; $this->container['unsubscriptions'] = isset($data['unsubscriptions']) ? $data['unsubscriptions'] : null; $this->container['answered'] = isset($data['answered']) ? $data['answered'] : null; } @@ -189,11 +189,11 @@ public function listInvalidProperties() if ($this->container['processing'] === null) { $invalid_properties[] = "'processing' can't be null"; } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; + if ($this->container['softBounces'] === null) { + $invalid_properties[] = "'softBounces' can't be null"; } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; + if ($this->container['hardBounces'] === null) { + $invalid_properties[] = "'hardBounces' can't be null"; } if ($this->container['unsubscriptions'] === null) { $invalid_properties[] = "'unsubscriptions' can't be null"; @@ -222,10 +222,10 @@ public function valid() if ($this->container['processing'] === null) { return false; } - if ($this->container['soft_bounces'] === null) { + if ($this->container['softBounces'] === null) { return false; } - if ($this->container['hard_bounces'] === null) { + if ($this->container['hardBounces'] === null) { return false; } if ($this->container['unsubscriptions'] === null) { @@ -302,43 +302,43 @@ public function setProcessing($processing) } /** - * Gets soft_bounces + * Gets softBounces * @return int */ public function getSoftBounces() { - return $this->container['soft_bounces']; + return $this->container['softBounces']; } /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounced SMS + * Sets softBounces + * @param int $softBounces Number of softbounced SMS * @return $this */ - public function setSoftBounces($soft_bounces) + public function setSoftBounces($softBounces) { - $this->container['soft_bounces'] = $soft_bounces; + $this->container['softBounces'] = $softBounces; return $this; } /** - * Gets hard_bounces + * Gets hardBounces * @return int */ public function getHardBounces() { - return $this->container['hard_bounces']; + return $this->container['hardBounces']; } /** - * Sets hard_bounces - * @param int $hard_bounces Number of hardbounced SMS + * Sets hardBounces + * @param int $hardBounces Number of hardbounced SMS * @return $this */ - public function setHardBounces($hard_bounces) + public function setHardBounces($hardBounces) { - $this->container['hard_bounces'] = $hard_bounces; + $this->container['hardBounces'] = $hardBounces; return $this; } diff --git a/lib/Model/GetSmsCampaigns.php b/lib/Model/GetSmsCampaigns.php old mode 100755 new mode 100644 index 12ad2b45..100d8709 --- a/lib/Model/GetSmsCampaigns.php +++ b/lib/Model/GetSmsCampaigns.php @@ -54,7 +54,7 @@ class GetSmsCampaigns implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'campaigns' => '\Swagger\Client\Model\InlineResponse20021Campaigns[]', + 'campaigns' => 'null[]', 'count' => 'int' ]; @@ -174,7 +174,7 @@ public function valid() /** * Gets campaigns - * @return \Swagger\Client\Model\InlineResponse20021Campaigns[] + * @return null[] */ public function getCampaigns() { @@ -183,7 +183,7 @@ public function getCampaigns() /** * Sets campaigns - * @param \Swagger\Client\Model\InlineResponse20021Campaigns[] $campaigns + * @param null[] $campaigns * @return $this */ public function setCampaigns($campaigns) diff --git a/lib/Model/GetSmsEventReport.php b/lib/Model/GetSmsEventReport.php old mode 100755 new mode 100644 index 9e6f0b4c..714cec05 --- a/lib/Model/GetSmsEventReport.php +++ b/lib/Model/GetSmsEventReport.php @@ -54,7 +54,7 @@ class GetSmsEventReport implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'events' => '\Swagger\Client\Model\InlineResponse20022Events[]' + 'events' => '\Swagger\Client\Model\GetSmsEventReportEvents[]' ]; /** @@ -162,7 +162,7 @@ public function valid() /** * Gets events - * @return \Swagger\Client\Model\InlineResponse20022Events[] + * @return \Swagger\Client\Model\GetSmsEventReportEvents[] */ public function getEvents() { @@ -171,7 +171,7 @@ public function getEvents() /** * Sets events - * @param \Swagger\Client\Model\InlineResponse20022Events[] $events + * @param \Swagger\Client\Model\GetSmsEventReportEvents[] $events * @return $this */ public function setEvents($events) diff --git a/lib/Model/InlineResponse20022Events.php b/lib/Model/GetSmsEventReportEvents.php old mode 100755 new mode 100644 similarity index 86% rename from lib/Model/InlineResponse20022Events.php rename to lib/Model/GetSmsEventReportEvents.php index f10718e1..8c8d2feb --- a/lib/Model/InlineResponse20022Events.php +++ b/lib/Model/GetSmsEventReportEvents.php @@ -1,6 +1,6 @@ 'string', + 'phoneNumber' => 'string', 'date' => '\DateTime', - 'message_id' => 'string', + 'messageId' => 'string', 'event' => 'string', 'reason' => 'string', 'reply' => 'string', @@ -68,9 +68,9 @@ class InlineResponse20022Events implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'phone_number' => null, + 'phoneNumber' => null, 'date' => 'date', - 'message_id' => null, + 'messageId' => null, 'event' => null, 'reason' => null, 'reply' => null, @@ -92,9 +92,9 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'phone_number' => 'phoneNumber', + 'phoneNumber' => 'phoneNumber', 'date' => 'date', - 'message_id' => 'messageId', + 'messageId' => 'messageId', 'event' => 'event', 'reason' => 'reason', 'reply' => 'reply', @@ -107,9 +107,9 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'phone_number' => 'setPhoneNumber', + 'phoneNumber' => 'setPhoneNumber', 'date' => 'setDate', - 'message_id' => 'setMessageId', + 'messageId' => 'setMessageId', 'event' => 'setEvent', 'reason' => 'setReason', 'reply' => 'setReply', @@ -122,9 +122,9 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'phone_number' => 'getPhoneNumber', + 'phoneNumber' => 'getPhoneNumber', 'date' => 'getDate', - 'message_id' => 'getMessageId', + 'messageId' => 'getMessageId', 'event' => 'getEvent', 'reason' => 'getReason', 'reply' => 'getReply', @@ -190,9 +190,9 @@ public function getEventAllowableValues() */ public function __construct(array $data = null) { - $this->container['phone_number'] = isset($data['phone_number']) ? $data['phone_number'] : null; + $this->container['phoneNumber'] = isset($data['phoneNumber']) ? $data['phoneNumber'] : null; $this->container['date'] = isset($data['date']) ? $data['date'] : null; - $this->container['message_id'] = isset($data['message_id']) ? $data['message_id'] : null; + $this->container['messageId'] = isset($data['messageId']) ? $data['messageId'] : null; $this->container['event'] = isset($data['event']) ? $data['event'] : null; $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; $this->container['reply'] = isset($data['reply']) ? $data['reply'] : null; @@ -208,14 +208,14 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['phone_number'] === null) { - $invalid_properties[] = "'phone_number' can't be null"; + if ($this->container['phoneNumber'] === null) { + $invalid_properties[] = "'phoneNumber' can't be null"; } if ($this->container['date'] === null) { $invalid_properties[] = "'date' can't be null"; } - if ($this->container['message_id'] === null) { - $invalid_properties[] = "'message_id' can't be null"; + if ($this->container['messageId'] === null) { + $invalid_properties[] = "'messageId' can't be null"; } if ($this->container['event'] === null) { $invalid_properties[] = "'event' can't be null"; @@ -246,13 +246,13 @@ public function listInvalidProperties() public function valid() { - if ($this->container['phone_number'] === null) { + if ($this->container['phoneNumber'] === null) { return false; } if ($this->container['date'] === null) { return false; } - if ($this->container['message_id'] === null) { + if ($this->container['messageId'] === null) { return false; } if ($this->container['event'] === null) { @@ -273,22 +273,22 @@ public function valid() /** - * Gets phone_number + * Gets phoneNumber * @return string */ public function getPhoneNumber() { - return $this->container['phone_number']; + return $this->container['phoneNumber']; } /** - * Sets phone_number - * @param string $phone_number Phone number which has generated the event + * Sets phoneNumber + * @param string $phoneNumber Phone number which has generated the event * @return $this */ - public function setPhoneNumber($phone_number) + public function setPhoneNumber($phoneNumber) { - $this->container['phone_number'] = $phone_number; + $this->container['phoneNumber'] = $phoneNumber; return $this; } @@ -315,22 +315,22 @@ public function setDate($date) } /** - * Gets message_id + * Gets messageId * @return string */ public function getMessageId() { - return $this->container['message_id']; + return $this->container['messageId']; } /** - * Sets message_id - * @param string $message_id Message ID which generated the event + * Sets messageId + * @param string $messageId Message ID which generated the event * @return $this */ - public function setMessageId($message_id) + public function setMessageId($messageId) { - $this->container['message_id'] = $message_id; + $this->container['messageId'] = $messageId; return $this; } diff --git a/lib/Model/GetSmtpTemplateOverview.php b/lib/Model/GetSmtpTemplateOverview.php old mode 100755 new mode 100644 index e09136b2..95d4232e --- a/lib/Model/GetSmtpTemplateOverview.php +++ b/lib/Model/GetSmtpTemplateOverview.php @@ -57,15 +57,15 @@ class GetSmtpTemplateOverview implements ArrayAccess 'id' => 'int', 'name' => 'string', 'subject' => 'string', - 'is_active' => 'bool', - 'test_sent' => 'bool', - 'sender' => '\Swagger\Client\Model\InlineResponse20012Sender', - 'reply_to' => 'string', - 'to_field' => 'string', + 'isActive' => 'bool', + 'testSent' => 'bool', + 'sender' => '\Swagger\Client\Model\GetSmtpTemplateOverviewSender', + 'replyTo' => 'string', + 'toField' => 'string', 'tag' => 'string', - 'html_content' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string' + 'htmlContent' => 'string', + 'createdAt' => 'string', + 'modifiedAt' => 'string' ]; /** @@ -76,15 +76,15 @@ class GetSmtpTemplateOverview implements ArrayAccess 'id' => 'int32', 'name' => null, 'subject' => null, - 'is_active' => null, - 'test_sent' => null, + 'isActive' => null, + 'testSent' => null, 'sender' => null, - 'reply_to' => 'email', - 'to_field' => null, + 'replyTo' => 'email', + 'toField' => null, 'tag' => null, - 'html_content' => null, - 'created_at' => null, - 'modified_at' => null + 'htmlContent' => null, + 'createdAt' => null, + 'modifiedAt' => null ]; public static function swaggerTypes() @@ -105,15 +105,15 @@ public static function swaggerFormats() 'id' => 'id', 'name' => 'name', 'subject' => 'subject', - 'is_active' => 'isActive', - 'test_sent' => 'testSent', + 'isActive' => 'isActive', + 'testSent' => 'testSent', 'sender' => 'sender', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', + 'replyTo' => 'replyTo', + 'toField' => 'toField', 'tag' => 'tag', - 'html_content' => 'htmlContent', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt' + 'htmlContent' => 'htmlContent', + 'createdAt' => 'createdAt', + 'modifiedAt' => 'modifiedAt' ]; @@ -125,15 +125,15 @@ public static function swaggerFormats() 'id' => 'setId', 'name' => 'setName', 'subject' => 'setSubject', - 'is_active' => 'setIsActive', - 'test_sent' => 'setTestSent', + 'isActive' => 'setIsActive', + 'testSent' => 'setTestSent', 'sender' => 'setSender', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', + 'replyTo' => 'setReplyTo', + 'toField' => 'setToField', 'tag' => 'setTag', - 'html_content' => 'setHtmlContent', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt' + 'htmlContent' => 'setHtmlContent', + 'createdAt' => 'setCreatedAt', + 'modifiedAt' => 'setModifiedAt' ]; @@ -145,15 +145,15 @@ public static function swaggerFormats() 'id' => 'getId', 'name' => 'getName', 'subject' => 'getSubject', - 'is_active' => 'getIsActive', - 'test_sent' => 'getTestSent', + 'isActive' => 'getIsActive', + 'testSent' => 'getTestSent', 'sender' => 'getSender', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', + 'replyTo' => 'getReplyTo', + 'toField' => 'getToField', 'tag' => 'getTag', - 'html_content' => 'getHtmlContent', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt' + 'htmlContent' => 'getHtmlContent', + 'createdAt' => 'getCreatedAt', + 'modifiedAt' => 'getModifiedAt' ]; public static function attributeMap() @@ -190,15 +190,15 @@ 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['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['is_active'] = isset($data['is_active']) ? $data['is_active'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; + $this->container['isActive'] = isset($data['isActive']) ? $data['isActive'] : null; + $this->container['testSent'] = isset($data['testSent']) ? $data['testSent'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; + $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; + $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; } /** @@ -219,36 +219,36 @@ public function listInvalidProperties() if ($this->container['subject'] === null) { $invalid_properties[] = "'subject' can't be null"; } - if ($this->container['is_active'] === null) { - $invalid_properties[] = "'is_active' can't be null"; + if ($this->container['isActive'] === null) { + $invalid_properties[] = "'isActive' can't be null"; } - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; + if ($this->container['testSent'] === null) { + $invalid_properties[] = "'testSent' can't be null"; } - if ($this->container['reply_to'] === null) { - $invalid_properties[] = "'reply_to' can't be null"; + if ($this->container['replyTo'] === null) { + $invalid_properties[] = "'replyTo' can't be null"; } - if ($this->container['to_field'] === null) { - $invalid_properties[] = "'to_field' can't be null"; + if ($this->container['toField'] === null) { + $invalid_properties[] = "'toField' can't be null"; } if ($this->container['tag'] === null) { $invalid_properties[] = "'tag' can't be null"; } - if ($this->container['html_content'] === null) { - $invalid_properties[] = "'html_content' can't be null"; + if ($this->container['htmlContent'] === null) { + $invalid_properties[] = "'htmlContent' can't be null"; } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; + if ($this->container['createdAt'] === null) { + $invalid_properties[] = "'createdAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { + $invalid_properties[] = "invalid value for 'createdAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; + if ($this->container['modifiedAt'] === null) { + $invalid_properties[] = "'modifiedAt' can't be null"; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { + $invalid_properties[] = "invalid value for 'modifiedAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -272,34 +272,34 @@ public function valid() if ($this->container['subject'] === null) { return false; } - if ($this->container['is_active'] === null) { + if ($this->container['isActive'] === null) { return false; } - if ($this->container['test_sent'] === null) { + if ($this->container['testSent'] === null) { return false; } - if ($this->container['reply_to'] === null) { + if ($this->container['replyTo'] === null) { return false; } - if ($this->container['to_field'] === null) { + if ($this->container['toField'] === null) { return false; } if ($this->container['tag'] === null) { return false; } - if ($this->container['html_content'] === null) { + if ($this->container['htmlContent'] === null) { return false; } - if ($this->container['created_at'] === null) { + if ($this->container['createdAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['createdAt'])) { return false; } - if ($this->container['modified_at'] === null) { + if ($this->container['modifiedAt'] === null) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modifiedAt'])) { return false; } return true; @@ -370,50 +370,50 @@ public function setSubject($subject) } /** - * Gets is_active + * Gets isActive * @return bool */ public function getIsActive() { - return $this->container['is_active']; + return $this->container['isActive']; } /** - * Sets is_active - * @param bool $is_active Status of template (true=active, false=inactive) + * Sets isActive + * @param bool $isActive Status of template (true=active, false=inactive) * @return $this */ - public function setIsActive($is_active) + public function setIsActive($isActive) { - $this->container['is_active'] = $is_active; + $this->container['isActive'] = $isActive; return $this; } /** - * Gets test_sent + * Gets testSent * @return bool */ public function getTestSent() { - return $this->container['test_sent']; + return $this->container['testSent']; } /** - * Sets test_sent - * @param bool $test_sent Status of test sending for the template (true=test email has been sent, false=test email has not been sent) + * Sets testSent + * @param bool $testSent Status of test sending for the template (true=test email has been sent, false=test email has not been sent) * @return $this */ - public function setTestSent($test_sent) + public function setTestSent($testSent) { - $this->container['test_sent'] = $test_sent; + $this->container['testSent'] = $testSent; return $this; } /** * Gets sender - * @return \Swagger\Client\Model\InlineResponse20012Sender + * @return \Swagger\Client\Model\GetSmtpTemplateOverviewSender */ public function getSender() { @@ -422,7 +422,7 @@ public function getSender() /** * Sets sender - * @param \Swagger\Client\Model\InlineResponse20012Sender $sender + * @param \Swagger\Client\Model\GetSmtpTemplateOverviewSender $sender * @return $this */ public function setSender($sender) @@ -433,43 +433,43 @@ public function setSender($sender) } /** - * Gets reply_to + * Gets replyTo * @return string */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param string $reply_to Email defined as the \"Reply to\" for the template + * Sets replyTo + * @param string $replyTo Email defined as the \"Reply to\" for the template * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** - * Gets to_field + * Gets toField * @return string */ public function getToField() { - return $this->container['to_field']; + return $this->container['toField']; } /** - * Sets to_field - * @param string $to_field Customisation of the \"to\" field for the template + * Sets toField + * @param string $toField Customisation of the \"to\" field for the template * @return $this */ - public function setToField($to_field) + public function setToField($toField) { - $this->container['to_field'] = $to_field; + $this->container['toField'] = $toField; return $this; } @@ -496,74 +496,74 @@ public function setTag($tag) } /** - * Gets html_content + * Gets htmlContent * @return string */ public function getHtmlContent() { - return $this->container['html_content']; + return $this->container['htmlContent']; } /** - * Sets html_content - * @param string $html_content HTML content of the template + * Sets htmlContent + * @param string $htmlContent HTML content of the template * @return $this */ - public function setHtmlContent($html_content) + public function setHtmlContent($htmlContent) { - $this->container['html_content'] = $html_content; + $this->container['htmlContent'] = $htmlContent; return $this; } /** - * Gets created_at + * Gets createdAt * @return string */ public function getCreatedAt() { - return $this->container['created_at']; + return $this->container['createdAt']; } /** - * Sets created_at - * @param string $created_at Creation date of the template + * Sets createdAt + * @param string $createdAt Creation date of the template * @return $this */ - public function setCreatedAt($created_at) + public function setCreatedAt($createdAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling GetSmtpTemplateOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $createdAt))) { + throw new \InvalidArgumentException("invalid value for $createdAt when calling GetSmtpTemplateOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['created_at'] = $created_at; + $this->container['createdAt'] = $createdAt; return $this; } /** - * Gets modified_at + * Gets modifiedAt * @return string */ public function getModifiedAt() { - return $this->container['modified_at']; + return $this->container['modifiedAt']; } /** - * Sets modified_at - * @param string $modified_at Last modification date of the template + * Sets modifiedAt + * @param string $modifiedAt Last modification date of the template * @return $this */ - public function setModifiedAt($modified_at) + public function setModifiedAt($modifiedAt) { - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling GetSmtpTemplateOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modifiedAt))) { + throw new \InvalidArgumentException("invalid value for $modifiedAt when calling GetSmtpTemplateOverview., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['modified_at'] = $modified_at; + $this->container['modifiedAt'] = $modifiedAt; return $this; } diff --git a/lib/Model/InlineResponse20012Sender.php b/lib/Model/GetSmtpTemplateOverviewSender.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/InlineResponse20012Sender.php rename to lib/Model/GetSmtpTemplateOverviewSender.php index 2b2fc7b0..10fb7b0c --- a/lib/Model/InlineResponse20012Sender.php +++ b/lib/Model/GetSmtpTemplateOverviewSender.php @@ -1,6 +1,6 @@ 'int', - 'templates' => '\Swagger\Client\Model\InlineResponse20012Templates[]' + 'templates' => '\Swagger\Client\Model\GetSmtpTemplateOverview[]' ]; /** @@ -189,7 +189,7 @@ public function setCount($count) /** * Gets templates - * @return \Swagger\Client\Model\InlineResponse20012Templates[] + * @return \Swagger\Client\Model\GetSmtpTemplateOverview[] */ public function getTemplates() { @@ -198,7 +198,7 @@ public function getTemplates() /** * Sets templates - * @param \Swagger\Client\Model\InlineResponse20012Templates[] $templates + * @param \Swagger\Client\Model\GetSmtpTemplateOverview[] $templates * @return $this */ public function setTemplates($templates) diff --git a/lib/Model/GetTransacAggregatedSmsReport.php b/lib/Model/GetTransacAggregatedSmsReport.php old mode 100755 new mode 100644 index b72aa64d..2b03e5a0 --- a/lib/Model/GetTransacAggregatedSmsReport.php +++ b/lib/Model/GetTransacAggregatedSmsReport.php @@ -57,8 +57,8 @@ class GetTransacAggregatedSmsReport implements ArrayAccess 'range' => 'string', 'requests' => 'int', 'delivered' => 'int', - 'hard_bounces' => 'int', - 'soft_bounces' => 'int', + 'hardBounces' => 'int', + 'softBounces' => 'int', 'blocked' => 'int', 'unsubscribed' => 'int', 'replied' => 'int', @@ -74,8 +74,8 @@ class GetTransacAggregatedSmsReport implements ArrayAccess 'range' => null, 'requests' => 'int32', 'delivered' => 'int32', - 'hard_bounces' => 'int32', - 'soft_bounces' => 'int32', + 'hardBounces' => 'int32', + 'softBounces' => 'int32', 'blocked' => 'int32', 'unsubscribed' => 'int32', 'replied' => 'int32', @@ -101,8 +101,8 @@ public static function swaggerFormats() 'range' => 'range', 'requests' => 'requests', 'delivered' => 'delivered', - 'hard_bounces' => 'hardBounces', - 'soft_bounces' => 'softBounces', + 'hardBounces' => 'hardBounces', + 'softBounces' => 'softBounces', 'blocked' => 'blocked', 'unsubscribed' => 'unsubscribed', 'replied' => 'replied', @@ -119,8 +119,8 @@ public static function swaggerFormats() 'range' => 'setRange', 'requests' => 'setRequests', 'delivered' => 'setDelivered', - 'hard_bounces' => 'setHardBounces', - 'soft_bounces' => 'setSoftBounces', + 'hardBounces' => 'setHardBounces', + 'softBounces' => 'setSoftBounces', 'blocked' => 'setBlocked', 'unsubscribed' => 'setUnsubscribed', 'replied' => 'setReplied', @@ -137,8 +137,8 @@ public static function swaggerFormats() 'range' => 'getRange', 'requests' => 'getRequests', 'delivered' => 'getDelivered', - 'hard_bounces' => 'getHardBounces', - 'soft_bounces' => 'getSoftBounces', + 'hardBounces' => 'getHardBounces', + 'softBounces' => 'getSoftBounces', 'blocked' => 'getBlocked', 'unsubscribed' => 'getUnsubscribed', 'replied' => 'getReplied', @@ -180,8 +180,8 @@ public function __construct(array $data = null) $this->container['range'] = isset($data['range']) ? $data['range'] : null; $this->container['requests'] = isset($data['requests']) ? $data['requests'] : null; $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; + $this->container['hardBounces'] = isset($data['hardBounces']) ? $data['hardBounces'] : null; + $this->container['softBounces'] = isset($data['softBounces']) ? $data['softBounces'] : null; $this->container['blocked'] = isset($data['blocked']) ? $data['blocked'] : null; $this->container['unsubscribed'] = isset($data['unsubscribed']) ? $data['unsubscribed'] : null; $this->container['replied'] = isset($data['replied']) ? $data['replied'] : null; @@ -207,11 +207,11 @@ public function listInvalidProperties() if ($this->container['delivered'] === null) { $invalid_properties[] = "'delivered' can't be null"; } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; + if ($this->container['hardBounces'] === null) { + $invalid_properties[] = "'hardBounces' can't be null"; } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; + if ($this->container['softBounces'] === null) { + $invalid_properties[] = "'softBounces' can't be null"; } if ($this->container['blocked'] === null) { $invalid_properties[] = "'blocked' can't be null"; @@ -249,10 +249,10 @@ public function valid() if ($this->container['delivered'] === null) { return false; } - if ($this->container['hard_bounces'] === null) { + if ($this->container['hardBounces'] === null) { return false; } - if ($this->container['soft_bounces'] === null) { + if ($this->container['softBounces'] === null) { return false; } if ($this->container['blocked'] === null) { @@ -338,43 +338,43 @@ public function setDelivered($delivered) } /** - * Gets hard_bounces + * Gets hardBounces * @return int */ public function getHardBounces() { - return $this->container['hard_bounces']; + return $this->container['hardBounces']; } /** - * Sets hard_bounces - * @param int $hard_bounces Number of hardbounces for the timeframe + * Sets hardBounces + * @param int $hardBounces Number of hardbounces for the timeframe * @return $this */ - public function setHardBounces($hard_bounces) + public function setHardBounces($hardBounces) { - $this->container['hard_bounces'] = $hard_bounces; + $this->container['hardBounces'] = $hardBounces; return $this; } /** - * Gets soft_bounces + * Gets softBounces * @return int */ public function getSoftBounces() { - return $this->container['soft_bounces']; + return $this->container['softBounces']; } /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounces for the timeframe + * Sets softBounces + * @param int $softBounces Number of softbounces for the timeframe * @return $this */ - public function setSoftBounces($soft_bounces) + public function setSoftBounces($softBounces) { - $this->container['soft_bounces'] = $soft_bounces; + $this->container['softBounces'] = $softBounces; return $this; } diff --git a/lib/Model/GetTransacSmsReport.php b/lib/Model/GetTransacSmsReport.php old mode 100755 new mode 100644 index ce683be1..0f61e113 --- a/lib/Model/GetTransacSmsReport.php +++ b/lib/Model/GetTransacSmsReport.php @@ -54,7 +54,7 @@ class GetTransacSmsReport implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'reports' => '\Swagger\Client\Model\InlineResponse20024Reports[]' + 'reports' => '\Swagger\Client\Model\GetTransacSmsReportReports[]' ]; /** @@ -162,7 +162,7 @@ public function valid() /** * Gets reports - * @return \Swagger\Client\Model\InlineResponse20024Reports[] + * @return \Swagger\Client\Model\GetTransacSmsReportReports[] */ public function getReports() { @@ -171,7 +171,7 @@ public function getReports() /** * Sets reports - * @param \Swagger\Client\Model\InlineResponse20024Reports[] $reports + * @param \Swagger\Client\Model\GetTransacSmsReportReports[] $reports * @return $this */ public function setReports($reports) diff --git a/lib/Model/InlineResponse20024Reports.php b/lib/Model/GetTransacSmsReportReports.php old mode 100755 new mode 100644 similarity index 88% rename from lib/Model/InlineResponse20024Reports.php rename to lib/Model/GetTransacSmsReportReports.php index c00ebd94..694d04f4 --- a/lib/Model/InlineResponse20024Reports.php +++ b/lib/Model/GetTransacSmsReportReports.php @@ -1,6 +1,6 @@ 'string', 'requests' => 'int', 'delivered' => 'int', - 'hard_bounces' => 'int', - 'soft_bounces' => 'int', + 'hardBounces' => 'int', + 'softBounces' => 'int', 'blocked' => 'int', 'unsubscribed' => 'int', 'replied' => 'int', @@ -76,8 +76,8 @@ class InlineResponse20024Reports implements ArrayAccess 'tag' => null, 'requests' => 'int32', 'delivered' => 'int32', - 'hard_bounces' => 'int32', - 'soft_bounces' => 'int32', + 'hardBounces' => 'int32', + 'softBounces' => 'int32', 'blocked' => 'int32', 'unsubscribed' => 'int32', 'replied' => 'int32', @@ -104,8 +104,8 @@ public static function swaggerFormats() 'tag' => 'tag', 'requests' => 'requests', 'delivered' => 'delivered', - 'hard_bounces' => 'hardBounces', - 'soft_bounces' => 'softBounces', + 'hardBounces' => 'hardBounces', + 'softBounces' => 'softBounces', 'blocked' => 'blocked', 'unsubscribed' => 'unsubscribed', 'replied' => 'replied', @@ -123,8 +123,8 @@ public static function swaggerFormats() 'tag' => 'setTag', 'requests' => 'setRequests', 'delivered' => 'setDelivered', - 'hard_bounces' => 'setHardBounces', - 'soft_bounces' => 'setSoftBounces', + 'hardBounces' => 'setHardBounces', + 'softBounces' => 'setSoftBounces', 'blocked' => 'setBlocked', 'unsubscribed' => 'setUnsubscribed', 'replied' => 'setReplied', @@ -142,8 +142,8 @@ public static function swaggerFormats() 'tag' => 'getTag', 'requests' => 'getRequests', 'delivered' => 'getDelivered', - 'hard_bounces' => 'getHardBounces', - 'soft_bounces' => 'getSoftBounces', + 'hardBounces' => 'getHardBounces', + 'softBounces' => 'getSoftBounces', 'blocked' => 'getBlocked', 'unsubscribed' => 'getUnsubscribed', 'replied' => 'getReplied', @@ -186,8 +186,8 @@ public function __construct(array $data = null) $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; $this->container['requests'] = isset($data['requests']) ? $data['requests'] : null; $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; + $this->container['hardBounces'] = isset($data['hardBounces']) ? $data['hardBounces'] : null; + $this->container['softBounces'] = isset($data['softBounces']) ? $data['softBounces'] : null; $this->container['blocked'] = isset($data['blocked']) ? $data['blocked'] : null; $this->container['unsubscribed'] = isset($data['unsubscribed']) ? $data['unsubscribed'] : null; $this->container['replied'] = isset($data['replied']) ? $data['replied'] : null; @@ -216,11 +216,11 @@ public function listInvalidProperties() if ($this->container['delivered'] === null) { $invalid_properties[] = "'delivered' can't be null"; } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; + if ($this->container['hardBounces'] === null) { + $invalid_properties[] = "'hardBounces' can't be null"; } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; + if ($this->container['softBounces'] === null) { + $invalid_properties[] = "'softBounces' can't be null"; } if ($this->container['blocked'] === null) { $invalid_properties[] = "'blocked' can't be null"; @@ -261,10 +261,10 @@ public function valid() if ($this->container['delivered'] === null) { return false; } - if ($this->container['hard_bounces'] === null) { + if ($this->container['hardBounces'] === null) { return false; } - if ($this->container['soft_bounces'] === null) { + if ($this->container['softBounces'] === null) { return false; } if ($this->container['blocked'] === null) { @@ -371,43 +371,43 @@ public function setDelivered($delivered) } /** - * Gets hard_bounces + * Gets hardBounces * @return int */ public function getHardBounces() { - return $this->container['hard_bounces']; + return $this->container['hardBounces']; } /** - * Sets hard_bounces - * @param int $hard_bounces Number of hardbounces for the date + * Sets hardBounces + * @param int $hardBounces Number of hardbounces for the date * @return $this */ - public function setHardBounces($hard_bounces) + public function setHardBounces($hardBounces) { - $this->container['hard_bounces'] = $hard_bounces; + $this->container['hardBounces'] = $hardBounces; return $this; } /** - * Gets soft_bounces + * Gets softBounces * @return int */ public function getSoftBounces() { - return $this->container['soft_bounces']; + return $this->container['softBounces']; } /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounces for the date + * Sets softBounces + * @param int $softBounces Number of softbounces for the date * @return $this */ - public function setSoftBounces($soft_bounces) + public function setSoftBounces($softBounces) { - $this->container['soft_bounces'] = $soft_bounces; + $this->container['softBounces'] = $softBounces; return $this; } diff --git a/lib/Model/GetWebhook.php b/lib/Model/GetWebhook.php old mode 100755 new mode 100644 index d1d85f76..8c652348 --- a/lib/Model/GetWebhook.php +++ b/lib/Model/GetWebhook.php @@ -59,8 +59,8 @@ class GetWebhook implements ArrayAccess 'description' => 'string', 'events' => 'string[]', 'type' => 'string', - 'created_at' => '\DateTime', - 'modified_at' => '\DateTime' + 'createdAt' => '\DateTime', + 'modifiedAt' => '\DateTime' ]; /** @@ -73,8 +73,8 @@ class GetWebhook implements ArrayAccess 'description' => null, 'events' => null, 'type' => null, - 'created_at' => 'date', - 'modified_at' => 'date' + 'createdAt' => 'date', + 'modifiedAt' => 'date' ]; public static function swaggerTypes() @@ -97,8 +97,8 @@ public static function swaggerFormats() 'description' => 'description', 'events' => 'events', 'type' => 'type', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt' + 'createdAt' => 'createdAt', + 'modifiedAt' => 'modifiedAt' ]; @@ -112,8 +112,8 @@ public static function swaggerFormats() 'description' => 'setDescription', 'events' => 'setEvents', 'type' => 'setType', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt' + 'createdAt' => 'setCreatedAt', + 'modifiedAt' => 'setModifiedAt' ]; @@ -127,8 +127,8 @@ public static function swaggerFormats() 'description' => 'getDescription', 'events' => 'getEvents', 'type' => 'getType', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt' + 'createdAt' => 'getCreatedAt', + 'modifiedAt' => 'getModifiedAt' ]; public static function attributeMap() @@ -181,8 +181,8 @@ public function __construct(array $data = null) $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['events'] = isset($data['events']) ? $data['events'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; } /** @@ -217,11 +217,11 @@ public function listInvalidProperties() ); } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; + if ($this->container['createdAt'] === null) { + $invalid_properties[] = "'createdAt' can't be null"; } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; + if ($this->container['modifiedAt'] === null) { + $invalid_properties[] = "'modifiedAt' can't be null"; } return $invalid_properties; } @@ -254,10 +254,10 @@ public function valid() if (!in_array($this->container['type'], $allowed_values)) { return false; } - if ($this->container['created_at'] === null) { + if ($this->container['createdAt'] === null) { return false; } - if ($this->container['modified_at'] === null) { + if ($this->container['modifiedAt'] === null) { return false; } return true; @@ -379,43 +379,43 @@ public function setType($type) } /** - * Gets created_at + * Gets createdAt * @return \DateTime */ public function getCreatedAt() { - return $this->container['created_at']; + return $this->container['createdAt']; } /** - * Sets created_at - * @param \DateTime $created_at Creation date of the webhook + * Sets createdAt + * @param \DateTime $createdAt Creation date of the webhook * @return $this */ - public function setCreatedAt($created_at) + public function setCreatedAt($createdAt) { - $this->container['created_at'] = $created_at; + $this->container['createdAt'] = $createdAt; return $this; } /** - * Gets modified_at + * Gets modifiedAt * @return \DateTime */ public function getModifiedAt() { - return $this->container['modified_at']; + return $this->container['modifiedAt']; } /** - * Sets modified_at - * @param \DateTime $modified_at Last modification date of the webhook + * Sets modifiedAt + * @param \DateTime $modifiedAt Last modification date of the webhook * @return $this */ - public function setModifiedAt($modified_at) + public function setModifiedAt($modifiedAt) { - $this->container['modified_at'] = $modified_at; + $this->container['modifiedAt'] = $modifiedAt; return $this; } diff --git a/lib/Model/GetWebhooks.php b/lib/Model/GetWebhooks.php old mode 100755 new mode 100644 index c22fb658..fdde8265 --- a/lib/Model/GetWebhooks.php +++ b/lib/Model/GetWebhooks.php @@ -54,7 +54,7 @@ class GetWebhooks implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'webhooks' => '\Swagger\Client\Model\InlineResponse20013Webhooks[]' + 'webhooks' => 'object[]' ]; /** @@ -168,7 +168,7 @@ public function valid() /** * Gets webhooks - * @return \Swagger\Client\Model\InlineResponse20013Webhooks[] + * @return object[] */ public function getWebhooks() { @@ -177,7 +177,7 @@ public function getWebhooks() /** * Sets webhooks - * @param \Swagger\Client\Model\InlineResponse20013Webhooks[] $webhooks + * @param object[] $webhooks * @return $this */ public function setWebhooks($webhooks) diff --git a/lib/Model/InlineResponse200.php b/lib/Model/InlineResponse200.php deleted file mode 100755 index bf9efbc2..00000000 --- a/lib/Model/InlineResponse200.php +++ /dev/null @@ -1,461 +0,0 @@ - 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', - 'address' => '\Swagger\Client\Model\InlineResponse200Address', - 'plan' => '\Swagger\Client\Model\InlineResponse200Plan[]', - 'relay' => '\Swagger\Client\Model\InlineResponse200Relay', - 'marketing_automation' => '\Swagger\Client\Model\InlineResponse200MarketingAutomation' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, - 'address' => null, - 'plan' => null, - 'relay' => null, - 'marketing_automation' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', - 'address' => 'address', - 'plan' => 'plan', - 'relay' => 'relay', - 'marketing_automation' => 'marketingAutomation' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', - 'address' => 'setAddress', - 'plan' => 'setPlan', - 'relay' => 'setRelay', - 'marketing_automation' => 'setMarketingAutomation' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', - 'address' => 'getAddress', - 'plan' => 'getPlan', - 'relay' => 'getRelay', - 'marketing_automation' => 'getMarketingAutomation' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; - $this->container['address'] = isset($data['address']) ? $data['address'] : null; - $this->container['plan'] = isset($data['plan']) ? $data['plan'] : null; - $this->container['relay'] = isset($data['relay']) ? $data['relay'] : null; - $this->container['marketing_automation'] = isset($data['marketing_automation']) ? $data['marketing_automation'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['email'] === null) { - $invalid_properties[] = "'email' can't be null"; - } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; - } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; - } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; - } - if ($this->container['plan'] === null) { - $invalid_properties[] = "'plan' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['email'] === null) { - return false; - } - if ($this->container['first_name'] === null) { - return false; - } - if ($this->container['last_name'] === null) { - return false; - } - if ($this->container['company_name'] === null) { - return false; - } - if ($this->container['plan'] === null) { - return false; - } - return true; - } - - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email Login Email - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets first_name - * @return string - */ - public function getFirstName() - { - return $this->container['first_name']; - } - - /** - * Sets first_name - * @param string $first_name First Name - * @return $this - */ - public function setFirstName($first_name) - { - $this->container['first_name'] = $first_name; - - return $this; - } - - /** - * Gets last_name - * @return string - */ - public function getLastName() - { - return $this->container['last_name']; - } - - /** - * Sets last_name - * @param string $last_name Last Name - * @return $this - */ - public function setLastName($last_name) - { - $this->container['last_name'] = $last_name; - - return $this; - } - - /** - * Gets company_name - * @return string - */ - public function getCompanyName() - { - return $this->container['company_name']; - } - - /** - * Sets company_name - * @param string $company_name Name of the company - * @return $this - */ - public function setCompanyName($company_name) - { - $this->container['company_name'] = $company_name; - - return $this; - } - - /** - * Gets address - * @return \Swagger\Client\Model\InlineResponse200Address - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * @param \Swagger\Client\Model\InlineResponse200Address $address - * @return $this - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - - /** - * Gets plan - * @return \Swagger\Client\Model\InlineResponse200Plan[] - */ - public function getPlan() - { - return $this->container['plan']; - } - - /** - * Sets plan - * @param \Swagger\Client\Model\InlineResponse200Plan[] $plan Information about your plans and credits - * @return $this - */ - public function setPlan($plan) - { - $this->container['plan'] = $plan; - - return $this; - } - - /** - * Gets relay - * @return \Swagger\Client\Model\InlineResponse200Relay - */ - public function getRelay() - { - return $this->container['relay']; - } - - /** - * Sets relay - * @param \Swagger\Client\Model\InlineResponse200Relay $relay - * @return $this - */ - public function setRelay($relay) - { - $this->container['relay'] = $relay; - - return $this; - } - - /** - * Gets marketing_automation - * @return \Swagger\Client\Model\InlineResponse200MarketingAutomation - */ - public function getMarketingAutomation() - { - return $this->container['marketing_automation']; - } - - /** - * Sets marketing_automation - * @param \Swagger\Client\Model\InlineResponse200MarketingAutomation $marketing_automation - * @return $this - */ - public function setMarketingAutomation($marketing_automation) - { - $this->container['marketing_automation'] = $marketing_automation; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2001.php b/lib/Model/InlineResponse2001.php deleted file mode 100755 index 51a7a7d2..00000000 --- a/lib/Model/InlineResponse2001.php +++ /dev/null @@ -1,242 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2001Children[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'children' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'children' => 'children' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'children' => 'setChildren' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'children' => 'getChildren' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['children'] = isset($data['children']) ? $data['children'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets children - * @return \Swagger\Client\Model\InlineResponse2001Children[] - */ - public function getChildren() - { - return $this->container['children']; - } - - /** - * Sets children - * @param \Swagger\Client\Model\InlineResponse2001Children[] $children Your children's account information - * @return $this - */ - public function setChildren($children) - { - $this->container['children'] = $children; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20010.php b/lib/Model/InlineResponse20010.php deleted file mode 100755 index 283ab281..00000000 --- a/lib/Model/InlineResponse20010.php +++ /dev/null @@ -1,611 +0,0 @@ - 'string', - 'requests' => 'int', - 'delivered' => 'int', - 'hard_bounces' => 'int', - 'soft_bounces' => 'int', - 'clicks' => 'int', - 'unique_clicks' => 'int', - 'opens' => 'int', - 'unique_opens' => 'int', - 'spam_reports' => 'int', - 'blocked' => 'int', - 'invalid' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'range' => null, - 'requests' => 'int32', - 'delivered' => 'int32', - 'hard_bounces' => 'int32', - 'soft_bounces' => 'int32', - 'clicks' => 'int32', - 'unique_clicks' => 'int32', - 'opens' => 'int32', - 'unique_opens' => 'int32', - 'spam_reports' => 'int32', - 'blocked' => 'int32', - 'invalid' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'range' => 'range', - 'requests' => 'requests', - 'delivered' => 'delivered', - 'hard_bounces' => 'hardBounces', - 'soft_bounces' => 'softBounces', - 'clicks' => 'clicks', - 'unique_clicks' => 'uniqueClicks', - 'opens' => 'opens', - 'unique_opens' => 'uniqueOpens', - 'spam_reports' => 'spamReports', - 'blocked' => 'blocked', - 'invalid' => 'invalid' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'range' => 'setRange', - 'requests' => 'setRequests', - 'delivered' => 'setDelivered', - 'hard_bounces' => 'setHardBounces', - 'soft_bounces' => 'setSoftBounces', - 'clicks' => 'setClicks', - 'unique_clicks' => 'setUniqueClicks', - 'opens' => 'setOpens', - 'unique_opens' => 'setUniqueOpens', - 'spam_reports' => 'setSpamReports', - 'blocked' => 'setBlocked', - 'invalid' => 'setInvalid' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'range' => 'getRange', - 'requests' => 'getRequests', - 'delivered' => 'getDelivered', - 'hard_bounces' => 'getHardBounces', - 'soft_bounces' => 'getSoftBounces', - 'clicks' => 'getClicks', - 'unique_clicks' => 'getUniqueClicks', - 'opens' => 'getOpens', - 'unique_opens' => 'getUniqueOpens', - 'spam_reports' => 'getSpamReports', - 'blocked' => 'getBlocked', - 'invalid' => 'getInvalid' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['range'] = isset($data['range']) ? $data['range'] : null; - $this->container['requests'] = isset($data['requests']) ? $data['requests'] : null; - $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; - $this->container['clicks'] = isset($data['clicks']) ? $data['clicks'] : null; - $this->container['unique_clicks'] = isset($data['unique_clicks']) ? $data['unique_clicks'] : null; - $this->container['opens'] = isset($data['opens']) ? $data['opens'] : null; - $this->container['unique_opens'] = isset($data['unique_opens']) ? $data['unique_opens'] : null; - $this->container['spam_reports'] = isset($data['spam_reports']) ? $data['spam_reports'] : null; - $this->container['blocked'] = isset($data['blocked']) ? $data['blocked'] : null; - $this->container['invalid'] = isset($data['invalid']) ? $data['invalid'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['range'] === null) { - $invalid_properties[] = "'range' can't be null"; - } - if ($this->container['requests'] === null) { - $invalid_properties[] = "'requests' can't be null"; - } - if ($this->container['delivered'] === null) { - $invalid_properties[] = "'delivered' can't be null"; - } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; - } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; - } - if ($this->container['clicks'] === null) { - $invalid_properties[] = "'clicks' can't be null"; - } - if ($this->container['unique_clicks'] === null) { - $invalid_properties[] = "'unique_clicks' can't be null"; - } - if ($this->container['opens'] === null) { - $invalid_properties[] = "'opens' can't be null"; - } - if ($this->container['unique_opens'] === null) { - $invalid_properties[] = "'unique_opens' can't be null"; - } - if ($this->container['spam_reports'] === null) { - $invalid_properties[] = "'spam_reports' can't be null"; - } - if ($this->container['blocked'] === null) { - $invalid_properties[] = "'blocked' can't be null"; - } - if ($this->container['invalid'] === null) { - $invalid_properties[] = "'invalid' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['range'] === null) { - return false; - } - if ($this->container['requests'] === null) { - return false; - } - if ($this->container['delivered'] === null) { - return false; - } - if ($this->container['hard_bounces'] === null) { - return false; - } - if ($this->container['soft_bounces'] === null) { - return false; - } - if ($this->container['clicks'] === null) { - return false; - } - if ($this->container['unique_clicks'] === null) { - return false; - } - if ($this->container['opens'] === null) { - return false; - } - if ($this->container['unique_opens'] === null) { - return false; - } - if ($this->container['spam_reports'] === null) { - return false; - } - if ($this->container['blocked'] === null) { - return false; - } - if ($this->container['invalid'] === null) { - return false; - } - return true; - } - - - /** - * Gets range - * @return string - */ - public function getRange() - { - return $this->container['range']; - } - - /** - * Sets range - * @param string $range Time frame of the report - * @return $this - */ - public function setRange($range) - { - $this->container['range'] = $range; - - return $this; - } - - /** - * Gets requests - * @return int - */ - public function getRequests() - { - return $this->container['requests']; - } - - /** - * Sets requests - * @param int $requests Number of requests for the timeframe - * @return $this - */ - public function setRequests($requests) - { - $this->container['requests'] = $requests; - - return $this; - } - - /** - * Gets delivered - * @return int - */ - public function getDelivered() - { - return $this->container['delivered']; - } - - /** - * Sets delivered - * @param int $delivered Number of delivered emails for the timeframe - * @return $this - */ - public function setDelivered($delivered) - { - $this->container['delivered'] = $delivered; - - return $this; - } - - /** - * Gets hard_bounces - * @return int - */ - public function getHardBounces() - { - return $this->container['hard_bounces']; - } - - /** - * Sets hard_bounces - * @param int $hard_bounces Number of hardbounces for the timeframe - * @return $this - */ - public function setHardBounces($hard_bounces) - { - $this->container['hard_bounces'] = $hard_bounces; - - return $this; - } - - /** - * Gets soft_bounces - * @return int - */ - public function getSoftBounces() - { - return $this->container['soft_bounces']; - } - - /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounces for the timeframe - * @return $this - */ - public function setSoftBounces($soft_bounces) - { - $this->container['soft_bounces'] = $soft_bounces; - - return $this; - } - - /** - * Gets clicks - * @return int - */ - public function getClicks() - { - return $this->container['clicks']; - } - - /** - * Sets clicks - * @param int $clicks Number of clicks for the timeframe - * @return $this - */ - public function setClicks($clicks) - { - $this->container['clicks'] = $clicks; - - return $this; - } - - /** - * Gets unique_clicks - * @return int - */ - public function getUniqueClicks() - { - return $this->container['unique_clicks']; - } - - /** - * Sets unique_clicks - * @param int $unique_clicks Number of unique clicks for the timeframe - * @return $this - */ - public function setUniqueClicks($unique_clicks) - { - $this->container['unique_clicks'] = $unique_clicks; - - return $this; - } - - /** - * Gets opens - * @return int - */ - public function getOpens() - { - return $this->container['opens']; - } - - /** - * Sets opens - * @param int $opens Number of openings for the timeframe - * @return $this - */ - public function setOpens($opens) - { - $this->container['opens'] = $opens; - - return $this; - } - - /** - * Gets unique_opens - * @return int - */ - public function getUniqueOpens() - { - return $this->container['unique_opens']; - } - - /** - * Sets unique_opens - * @param int $unique_opens Number of unique openings for the timeframe - * @return $this - */ - public function setUniqueOpens($unique_opens) - { - $this->container['unique_opens'] = $unique_opens; - - return $this; - } - - /** - * Gets spam_reports - * @return int - */ - public function getSpamReports() - { - return $this->container['spam_reports']; - } - - /** - * Sets spam_reports - * @param int $spam_reports Number of complaint (spam report) for the timeframe - * @return $this - */ - public function setSpamReports($spam_reports) - { - $this->container['spam_reports'] = $spam_reports; - - return $this; - } - - /** - * Gets blocked - * @return int - */ - public function getBlocked() - { - return $this->container['blocked']; - } - - /** - * Sets blocked - * @param int $blocked Number of blocked contact emails for the timeframe - * @return $this - */ - public function setBlocked($blocked) - { - $this->container['blocked'] = $blocked; - - return $this; - } - - /** - * Gets invalid - * @return int - */ - public function getInvalid() - { - return $this->container['invalid']; - } - - /** - * Sets invalid - * @param int $invalid Number of invalid emails for the timeframe - * @return $this - */ - public function setInvalid($invalid) - { - $this->container['invalid'] = $invalid; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20011.php b/lib/Model/InlineResponse20011.php deleted file mode 100755 index b65de02a..00000000 --- a/lib/Model/InlineResponse20011.php +++ /dev/null @@ -1,242 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20011Events[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'events' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'events' => 'events' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'events' => 'setEvents' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'events' => 'getEvents' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['events'] = isset($data['events']) ? $data['events'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets events - * @return \Swagger\Client\Model\InlineResponse20011Events[] - */ - public function getEvents() - { - return $this->container['events']; - } - - /** - * Sets events - * @param \Swagger\Client\Model\InlineResponse20011Events[] $events - * @return $this - */ - public function setEvents($events) - { - $this->container['events'] = $events; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20012.php b/lib/Model/InlineResponse20012.php deleted file mode 100755 index 6c4e4aa1..00000000 --- a/lib/Model/InlineResponse20012.php +++ /dev/null @@ -1,269 +0,0 @@ - 'int', - 'templates' => '\Swagger\Client\Model\InlineResponse20012Templates[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'count' => 'int32', - 'templates' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'count' => 'count', - 'templates' => 'templates' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'count' => 'setCount', - 'templates' => 'setTemplates' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'count' => 'getCount', - 'templates' => 'getTemplates' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['count'] = isset($data['count']) ? $data['count'] : null; - $this->container['templates'] = isset($data['templates']) ? $data['templates'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets count - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * @param int $count Count of smtp templates - * @return $this - */ - public function setCount($count) - { - $this->container['count'] = $count; - - return $this; - } - - /** - * Gets templates - * @return \Swagger\Client\Model\InlineResponse20012Templates[] - */ - public function getTemplates() - { - return $this->container['templates']; - } - - /** - * Sets templates - * @param \Swagger\Client\Model\InlineResponse20012Templates[] $templates - * @return $this - */ - public function setTemplates($templates) - { - $this->container['templates'] = $templates; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20012Templates.php b/lib/Model/InlineResponse20012Templates.php deleted file mode 100755 index 39784d5a..00000000 --- a/lib/Model/InlineResponse20012Templates.php +++ /dev/null @@ -1,629 +0,0 @@ - 'int', - 'name' => 'string', - 'subject' => 'string', - 'is_active' => 'bool', - 'test_sent' => 'bool', - 'sender' => '\Swagger\Client\Model\InlineResponse20012Sender', - 'reply_to' => 'string', - 'to_field' => 'string', - 'tag' => 'string', - 'html_content' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'name' => null, - 'subject' => null, - 'is_active' => null, - 'test_sent' => null, - 'sender' => null, - 'reply_to' => 'email', - 'to_field' => null, - 'tag' => null, - 'html_content' => null, - 'created_at' => null, - 'modified_at' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'subject' => 'subject', - 'is_active' => 'isActive', - 'test_sent' => 'testSent', - 'sender' => 'sender', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'tag' => 'tag', - 'html_content' => 'htmlContent', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'subject' => 'setSubject', - 'is_active' => 'setIsActive', - 'test_sent' => 'setTestSent', - 'sender' => 'setSender', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'tag' => 'setTag', - 'html_content' => 'setHtmlContent', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'subject' => 'getSubject', - 'is_active' => 'getIsActive', - 'test_sent' => 'getTestSent', - 'sender' => 'getSender', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'tag' => 'getTag', - 'html_content' => 'getHtmlContent', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['is_active'] = isset($data['is_active']) ? $data['is_active'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; - $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['subject'] === null) { - $invalid_properties[] = "'subject' can't be null"; - } - if ($this->container['is_active'] === null) { - $invalid_properties[] = "'is_active' can't be null"; - } - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; - } - if ($this->container['reply_to'] === null) { - $invalid_properties[] = "'reply_to' can't be null"; - } - if ($this->container['to_field'] === null) { - $invalid_properties[] = "'to_field' can't be null"; - } - if ($this->container['tag'] === null) { - $invalid_properties[] = "'tag' can't be null"; - } - if ($this->container['html_content'] === null) { - $invalid_properties[] = "'html_content' can't be null"; - } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['subject'] === null) { - return false; - } - if ($this->container['is_active'] === null) { - return false; - } - if ($this->container['test_sent'] === null) { - return false; - } - if ($this->container['reply_to'] === null) { - return false; - } - if ($this->container['to_field'] === null) { - return false; - } - if ($this->container['tag'] === null) { - return false; - } - if ($this->container['html_content'] === null) { - return false; - } - if ($this->container['created_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - return false; - } - if ($this->container['modified_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the template - * @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 template - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject of the template - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - - /** - * Gets is_active - * @return bool - */ - public function getIsActive() - { - return $this->container['is_active']; - } - - /** - * Sets is_active - * @param bool $is_active Status of template (true=active, false=inactive) - * @return $this - */ - public function setIsActive($is_active) - { - $this->container['is_active'] = $is_active; - - return $this; - } - - /** - * Gets test_sent - * @return bool - */ - public function getTestSent() - { - return $this->container['test_sent']; - } - - /** - * Sets test_sent - * @param bool $test_sent Status of test sending for the template (true=test email has been sent, false=test email has not been sent) - * @return $this - */ - public function setTestSent($test_sent) - { - $this->container['test_sent'] = $test_sent; - - return $this; - } - - /** - * Gets sender - * @return \Swagger\Client\Model\InlineResponse20012Sender - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param \Swagger\Client\Model\InlineResponse20012Sender $sender - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets reply_to - * @return string - */ - public function getReplyTo() - { - return $this->container['reply_to']; - } - - /** - * Sets reply_to - * @param string $reply_to Email defined as the \"Reply to\" for the template - * @return $this - */ - public function setReplyTo($reply_to) - { - $this->container['reply_to'] = $reply_to; - - return $this; - } - - /** - * Gets to_field - * @return string - */ - public function getToField() - { - return $this->container['to_field']; - } - - /** - * Sets to_field - * @param string $to_field Customisation of the \"to\" field for the template - * @return $this - */ - public function setToField($to_field) - { - $this->container['to_field'] = $to_field; - - return $this; - } - - /** - * Gets tag - * @return string - */ - public function getTag() - { - return $this->container['tag']; - } - - /** - * Sets tag - * @param string $tag Tag of the template - * @return $this - */ - public function setTag($tag) - { - $this->container['tag'] = $tag; - - return $this; - } - - /** - * Gets html_content - * @return string - */ - public function getHtmlContent() - { - return $this->container['html_content']; - } - - /** - * Sets html_content - * @param string $html_content HTML content of the template - * @return $this - */ - public function setHtmlContent($html_content) - { - $this->container['html_content'] = $html_content; - - return $this; - } - - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * @param string $created_at Creation date of the template - * @return $this - */ - public function setCreatedAt($created_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling InlineResponse20012Templates., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets modified_at - * @return string - */ - public function getModifiedAt() - { - return $this->container['modified_at']; - } - - /** - * Sets modified_at - * @param string $modified_at Last modification date of the template - * @return $this - */ - public function setModifiedAt($modified_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling InlineResponse20012Templates., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['modified_at'] = $modified_at; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20013.php b/lib/Model/InlineResponse20013.php deleted file mode 100755 index 27e1aee2..00000000 --- a/lib/Model/InlineResponse20013.php +++ /dev/null @@ -1,248 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20013Webhooks[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'webhooks' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'webhooks' => 'webhooks' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'webhooks' => 'setWebhooks' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'webhooks' => 'getWebhooks' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['webhooks'] = isset($data['webhooks']) ? $data['webhooks'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['webhooks'] === null) { - $invalid_properties[] = "'webhooks' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['webhooks'] === null) { - return false; - } - return true; - } - - - /** - * Gets webhooks - * @return \Swagger\Client\Model\InlineResponse20013Webhooks[] - */ - public function getWebhooks() - { - return $this->container['webhooks']; - } - - /** - * Sets webhooks - * @param \Swagger\Client\Model\InlineResponse20013Webhooks[] $webhooks - * @return $this - */ - public function setWebhooks($webhooks) - { - $this->container['webhooks'] = $webhooks; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20013Webhooks.php b/lib/Model/InlineResponse20013Webhooks.php deleted file mode 100755 index 666fa4f1..00000000 --- a/lib/Model/InlineResponse20013Webhooks.php +++ /dev/null @@ -1,481 +0,0 @@ - 'string', - 'id' => 'int', - 'description' => 'string', - 'events' => 'string[]', - 'type' => 'string', - 'created_at' => '\DateTime', - 'modified_at' => '\DateTime' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'url' => 'url', - 'id' => 'int32', - 'description' => null, - 'events' => null, - 'type' => null, - 'created_at' => 'date', - 'modified_at' => 'date' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'id' => 'id', - 'description' => 'description', - 'events' => 'events', - 'type' => 'type', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'url' => 'setUrl', - 'id' => 'setId', - 'description' => 'setDescription', - 'events' => 'setEvents', - 'type' => 'setType', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'url' => 'getUrl', - 'id' => 'getId', - 'description' => 'getDescription', - 'events' => 'getEvents', - 'type' => 'getType', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const TYPE_MARKETING = 'marketing'; - const TYPE_TRANSAC = 'transac'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_MARKETING, - self::TYPE_TRANSAC, - ]; - } - - - /** - * 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; - $this->container['id'] = isset($data['id']) ? $data['id'] : null; - $this->container['description'] = isset($data['description']) ? $data['description'] : null; - $this->container['events'] = isset($data['events']) ? $data['events'] : null; - $this->container['type'] = isset($data['type']) ? $data['type'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['url'] === null) { - $invalid_properties[] = "'url' can't be null"; - } - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['description'] === null) { - $invalid_properties[] = "'description' can't be null"; - } - if ($this->container['events'] === null) { - $invalid_properties[] = "'events' can't be null"; - } - if ($this->container['type'] === null) { - $invalid_properties[] = "'type' can't be null"; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; - } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['url'] === null) { - return false; - } - if ($this->container['id'] === null) { - return false; - } - if ($this->container['description'] === null) { - return false; - } - if ($this->container['events'] === null) { - return false; - } - if ($this->container['type'] === null) { - return false; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - return false; - } - if ($this->container['created_at'] === null) { - return false; - } - if ($this->container['modified_at'] === null) { - return false; - } - return true; - } - - - /** - * Gets url - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * @param string $url URL of the webhook - * @return $this - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the webhook - * @return $this - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * @param string $description Description of the webhook - * @return $this - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - - /** - * Gets events - * @return string[] - */ - public function getEvents() - { - return $this->container['events']; - } - - /** - * Sets events - * @param string[] $events - * @return $this - */ - public function setEvents($events) - { - $this->container['events'] = $events; - - return $this; - } - - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * @param string $type Type of webhook (marketing or transac) - * @return $this - */ - public function setType($type) - { - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets created_at - * @return \DateTime - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * @param \DateTime $created_at Creation date of the webhook - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets modified_at - * @return \DateTime - */ - public function getModifiedAt() - { - return $this->container['modified_at']; - } - - /** - * Sets modified_at - * @param \DateTime $modified_at Last modification date of the webhook - * @return $this - */ - public function setModifiedAt($modified_at) - { - $this->container['modified_at'] = $modified_at; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20014.php b/lib/Model/InlineResponse20014.php deleted file mode 100755 index 199a5429..00000000 --- a/lib/Model/InlineResponse20014.php +++ /dev/null @@ -1,281 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20014Contacts[]', - 'count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'contacts' => null, - 'count' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'contacts' => 'contacts', - 'count' => 'count' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'contacts' => 'setContacts', - 'count' => 'setCount' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'contacts' => 'getContacts', - 'count' => 'getCount' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['contacts'] = isset($data['contacts']) ? $data['contacts'] : 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() - { - $invalid_properties = []; - - if ($this->container['contacts'] === null) { - $invalid_properties[] = "'contacts' can't be null"; - } - if ($this->container['count'] === null) { - $invalid_properties[] = "'count' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['contacts'] === null) { - return false; - } - if ($this->container['count'] === null) { - return false; - } - return true; - } - - - /** - * Gets contacts - * @return \Swagger\Client\Model\InlineResponse20014Contacts[] - */ - public function getContacts() - { - return $this->container['contacts']; - } - - /** - * Sets contacts - * @param \Swagger\Client\Model\InlineResponse20014Contacts[] $contacts - * @return $this - */ - public function setContacts($contacts) - { - $this->container['contacts'] = $contacts; - - return $this; - } - - /** - * Gets count - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * @param int $count Number of contacts - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20014Contacts.php b/lib/Model/InlineResponse20014Contacts.php deleted file mode 100755 index ab62a80a..00000000 --- a/lib/Model/InlineResponse20014Contacts.php +++ /dev/null @@ -1,473 +0,0 @@ - 'string', - 'id' => 'int', - 'email_blacklisted' => 'bool', - 'sms_blacklisted' => 'bool', - 'modified_at' => '\DateTime', - 'list_ids' => 'int[]', - 'list_unsubscribed' => 'int[]', - 'attributes' => 'map[string,string]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'id' => 'int32', - 'email_blacklisted' => null, - 'sms_blacklisted' => null, - 'modified_at' => 'date-time', - 'list_ids' => 'int32', - 'list_unsubscribed' => 'int32', - 'attributes' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email' => 'email', - 'id' => 'id', - 'email_blacklisted' => 'emailBlacklisted', - 'sms_blacklisted' => 'smsBlacklisted', - 'modified_at' => 'modifiedAt', - 'list_ids' => 'listIds', - 'list_unsubscribed' => 'listUnsubscribed', - 'attributes' => 'attributes' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email' => 'setEmail', - 'id' => 'setId', - 'email_blacklisted' => 'setEmailBlacklisted', - 'sms_blacklisted' => 'setSmsBlacklisted', - 'modified_at' => 'setModifiedAt', - 'list_ids' => 'setListIds', - 'list_unsubscribed' => 'setListUnsubscribed', - 'attributes' => 'setAttributes' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email' => 'getEmail', - 'id' => 'getId', - 'email_blacklisted' => 'getEmailBlacklisted', - 'sms_blacklisted' => 'getSmsBlacklisted', - 'modified_at' => 'getModifiedAt', - 'list_ids' => 'getListIds', - 'list_unsubscribed' => 'getListUnsubscribed', - 'attributes' => 'getAttributes' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['id'] = isset($data['id']) ? $data['id'] : null; - $this->container['email_blacklisted'] = isset($data['email_blacklisted']) ? $data['email_blacklisted'] : null; - $this->container['sms_blacklisted'] = isset($data['sms_blacklisted']) ? $data['sms_blacklisted'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - $this->container['list_unsubscribed'] = isset($data['list_unsubscribed']) ? $data['list_unsubscribed'] : 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() - { - $invalid_properties = []; - - if ($this->container['email'] === null) { - $invalid_properties[] = "'email' can't be null"; - } - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['email_blacklisted'] === null) { - $invalid_properties[] = "'email_blacklisted' can't be null"; - } - if ($this->container['sms_blacklisted'] === null) { - $invalid_properties[] = "'sms_blacklisted' can't be null"; - } - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; - } - if ($this->container['list_ids'] === null) { - $invalid_properties[] = "'list_ids' can't be null"; - } - if ($this->container['attributes'] === null) { - $invalid_properties[] = "'attributes' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['email'] === null) { - return false; - } - if ($this->container['id'] === null) { - return false; - } - if ($this->container['email_blacklisted'] === null) { - return false; - } - if ($this->container['sms_blacklisted'] === null) { - return false; - } - if ($this->container['modified_at'] === null) { - return false; - } - if ($this->container['list_ids'] === null) { - return false; - } - if ($this->container['attributes'] === null) { - return false; - } - return true; - } - - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email Email address of the contact for which you requested the details - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the contact for which you requested the details - * @return $this - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets email_blacklisted - * @return bool - */ - public function getEmailBlacklisted() - { - return $this->container['email_blacklisted']; - } - - /** - * Sets email_blacklisted - * @param bool $email_blacklisted Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) - * @return $this - */ - public function setEmailBlacklisted($email_blacklisted) - { - $this->container['email_blacklisted'] = $email_blacklisted; - - return $this; - } - - /** - * Gets sms_blacklisted - * @return bool - */ - public function getSmsBlacklisted() - { - return $this->container['sms_blacklisted']; - } - - /** - * Sets sms_blacklisted - * @param bool $sms_blacklisted Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) - * @return $this - */ - public function setSmsBlacklisted($sms_blacklisted) - { - $this->container['sms_blacklisted'] = $sms_blacklisted; - - return $this; - } - - /** - * Gets modified_at - * @return \DateTime - */ - public function getModifiedAt() - { - return $this->container['modified_at']; - } - - /** - * Sets modified_at - * @param \DateTime $modified_at Last modification date of the contact - * @return $this - */ - public function setModifiedAt($modified_at) - { - $this->container['modified_at'] = $modified_at; - - return $this; - } - - /** - * Gets list_ids - * @return int[] - */ - public function getListIds() - { - return $this->container['list_ids']; - } - - /** - * Sets list_ids - * @param int[] $list_ids - * @return $this - */ - public function setListIds($list_ids) - { - $this->container['list_ids'] = $list_ids; - - return $this; - } - - /** - * Gets list_unsubscribed - * @return int[] - */ - public function getListUnsubscribed() - { - return $this->container['list_unsubscribed']; - } - - /** - * Sets list_unsubscribed - * @param int[] $list_unsubscribed - * @return $this - */ - public function setListUnsubscribed($list_unsubscribed) - { - $this->container['list_unsubscribed'] = $list_unsubscribed; - - return $this; - } - - /** - * Gets attributes - * @return map[string,string] - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * @param map[string,string] $attributes - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20015.php b/lib/Model/InlineResponse20015.php deleted file mode 100755 index 7691f831..00000000 --- a/lib/Model/InlineResponse20015.php +++ /dev/null @@ -1,432 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20015MessagesSent[]', - 'hard_bounces' => '\Swagger\Client\Model\InlineResponse20015MessagesSent[]', - 'soft_bounces' => '\Swagger\Client\Model\InlineResponse20015MessagesSent[]', - 'complaints' => '\Swagger\Client\Model\InlineResponse20015MessagesSent[]', - 'unsubscriptions' => '\Swagger\Client\Model\InlineResponse20015Unsubscriptions', - 'opened' => '\Swagger\Client\Model\InlineResponse20015Opened[]', - 'clicked' => '\Swagger\Client\Model\InlineResponse20015Clicked[]', - 'transac_attributes' => '\Swagger\Client\Model\InlineResponse20015TransacAttributes[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'messages_sent' => null, - 'hard_bounces' => null, - 'soft_bounces' => null, - 'complaints' => null, - 'unsubscriptions' => null, - 'opened' => null, - 'clicked' => null, - 'transac_attributes' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'messages_sent' => 'messagesSent', - 'hard_bounces' => 'hardBounces', - 'soft_bounces' => 'softBounces', - 'complaints' => 'complaints', - 'unsubscriptions' => 'unsubscriptions', - 'opened' => 'opened', - 'clicked' => 'clicked', - 'transac_attributes' => 'transacAttributes' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'messages_sent' => 'setMessagesSent', - 'hard_bounces' => 'setHardBounces', - 'soft_bounces' => 'setSoftBounces', - 'complaints' => 'setComplaints', - 'unsubscriptions' => 'setUnsubscriptions', - 'opened' => 'setOpened', - 'clicked' => 'setClicked', - 'transac_attributes' => 'setTransacAttributes' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'messages_sent' => 'getMessagesSent', - 'hard_bounces' => 'getHardBounces', - 'soft_bounces' => 'getSoftBounces', - 'complaints' => 'getComplaints', - 'unsubscriptions' => 'getUnsubscriptions', - 'opened' => 'getOpened', - 'clicked' => 'getClicked', - 'transac_attributes' => 'getTransacAttributes' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['messages_sent'] = isset($data['messages_sent']) ? $data['messages_sent'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; - $this->container['complaints'] = isset($data['complaints']) ? $data['complaints'] : null; - $this->container['unsubscriptions'] = isset($data['unsubscriptions']) ? $data['unsubscriptions'] : null; - $this->container['opened'] = isset($data['opened']) ? $data['opened'] : null; - $this->container['clicked'] = isset($data['clicked']) ? $data['clicked'] : null; - $this->container['transac_attributes'] = isset($data['transac_attributes']) ? $data['transac_attributes'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets messages_sent - * @return \Swagger\Client\Model\InlineResponse20015MessagesSent[] - */ - public function getMessagesSent() - { - return $this->container['messages_sent']; - } - - /** - * Sets messages_sent - * @param \Swagger\Client\Model\InlineResponse20015MessagesSent[] $messages_sent - * @return $this - */ - public function setMessagesSent($messages_sent) - { - $this->container['messages_sent'] = $messages_sent; - - return $this; - } - - /** - * Gets hard_bounces - * @return \Swagger\Client\Model\InlineResponse20015MessagesSent[] - */ - public function getHardBounces() - { - return $this->container['hard_bounces']; - } - - /** - * Sets hard_bounces - * @param \Swagger\Client\Model\InlineResponse20015MessagesSent[] $hard_bounces - * @return $this - */ - public function setHardBounces($hard_bounces) - { - $this->container['hard_bounces'] = $hard_bounces; - - return $this; - } - - /** - * Gets soft_bounces - * @return \Swagger\Client\Model\InlineResponse20015MessagesSent[] - */ - public function getSoftBounces() - { - return $this->container['soft_bounces']; - } - - /** - * Sets soft_bounces - * @param \Swagger\Client\Model\InlineResponse20015MessagesSent[] $soft_bounces - * @return $this - */ - public function setSoftBounces($soft_bounces) - { - $this->container['soft_bounces'] = $soft_bounces; - - return $this; - } - - /** - * Gets complaints - * @return \Swagger\Client\Model\InlineResponse20015MessagesSent[] - */ - public function getComplaints() - { - return $this->container['complaints']; - } - - /** - * Sets complaints - * @param \Swagger\Client\Model\InlineResponse20015MessagesSent[] $complaints - * @return $this - */ - public function setComplaints($complaints) - { - $this->container['complaints'] = $complaints; - - return $this; - } - - /** - * Gets unsubscriptions - * @return \Swagger\Client\Model\InlineResponse20015Unsubscriptions - */ - public function getUnsubscriptions() - { - return $this->container['unsubscriptions']; - } - - /** - * Sets unsubscriptions - * @param \Swagger\Client\Model\InlineResponse20015Unsubscriptions $unsubscriptions - * @return $this - */ - public function setUnsubscriptions($unsubscriptions) - { - $this->container['unsubscriptions'] = $unsubscriptions; - - return $this; - } - - /** - * Gets opened - * @return \Swagger\Client\Model\InlineResponse20015Opened[] - */ - public function getOpened() - { - return $this->container['opened']; - } - - /** - * Sets opened - * @param \Swagger\Client\Model\InlineResponse20015Opened[] $opened - * @return $this - */ - public function setOpened($opened) - { - $this->container['opened'] = $opened; - - return $this; - } - - /** - * Gets clicked - * @return \Swagger\Client\Model\InlineResponse20015Clicked[] - */ - public function getClicked() - { - return $this->container['clicked']; - } - - /** - * Sets clicked - * @param \Swagger\Client\Model\InlineResponse20015Clicked[] $clicked - * @return $this - */ - public function setClicked($clicked) - { - $this->container['clicked'] = $clicked; - - return $this; - } - - /** - * Gets transac_attributes - * @return \Swagger\Client\Model\InlineResponse20015TransacAttributes[] - */ - public function getTransacAttributes() - { - return $this->container['transac_attributes']; - } - - /** - * Sets transac_attributes - * @param \Swagger\Client\Model\InlineResponse20015TransacAttributes[] $transac_attributes - * @return $this - */ - public function setTransacAttributes($transac_attributes) - { - $this->container['transac_attributes'] = $transac_attributes; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20016.php b/lib/Model/InlineResponse20016.php deleted file mode 100755 index 80934473..00000000 --- a/lib/Model/InlineResponse20016.php +++ /dev/null @@ -1,248 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20016Attributes[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'attributes' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'attributes' => 'attributes' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'attributes' => 'setAttributes' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'attributes' => 'getAttributes' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['attributes'] === null) { - $invalid_properties[] = "'attributes' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['attributes'] === null) { - return false; - } - return true; - } - - - /** - * Gets attributes - * @return \Swagger\Client\Model\InlineResponse20016Attributes[] - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * @param \Swagger\Client\Model\InlineResponse20016Attributes[] $attributes Listing of available contact attributes in your account - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20017.php b/lib/Model/InlineResponse20017.php deleted file mode 100755 index 7da82def..00000000 --- a/lib/Model/InlineResponse20017.php +++ /dev/null @@ -1,269 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20017Folders[]', - 'count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'folders' => null, - 'count' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'folders' => 'folders', - 'count' => 'count' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'folders' => 'setFolders', - 'count' => 'setCount' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'folders' => 'getFolders', - 'count' => 'getCount' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['folders'] = isset($data['folders']) ? $data['folders'] : 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() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets folders - * @return \Swagger\Client\Model\InlineResponse20017Folders[] - */ - public function getFolders() - { - return $this->container['folders']; - } - - /** - * Sets folders - * @param \Swagger\Client\Model\InlineResponse20017Folders[] $folders - * @return $this - */ - public function setFolders($folders) - { - $this->container['folders'] = $folders; - - return $this; - } - - /** - * Gets count - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * @param int $count Number of folders available in your account - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20017Folders.php b/lib/Model/InlineResponse20017Folders.php deleted file mode 100755 index d0cf57cc..00000000 --- a/lib/Model/InlineResponse20017Folders.php +++ /dev/null @@ -1,380 +0,0 @@ - 'int', - 'name' => 'string', - 'total_blacklisted' => 'int', - 'total_subscribers' => 'int', - 'unique_subscribers' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'name' => null, - 'total_blacklisted' => 'int32', - 'total_subscribers' => 'int32', - 'unique_subscribers' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'total_blacklisted' => 'totalBlacklisted', - 'total_subscribers' => 'totalSubscribers', - 'unique_subscribers' => 'uniqueSubscribers' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'total_blacklisted' => 'setTotalBlacklisted', - 'total_subscribers' => 'setTotalSubscribers', - 'unique_subscribers' => 'setUniqueSubscribers' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'total_blacklisted' => 'getTotalBlacklisted', - 'total_subscribers' => 'getTotalSubscribers', - 'unique_subscribers' => 'getUniqueSubscribers' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['total_blacklisted'] = isset($data['total_blacklisted']) ? $data['total_blacklisted'] : null; - $this->container['total_subscribers'] = isset($data['total_subscribers']) ? $data['total_subscribers'] : null; - $this->container['unique_subscribers'] = isset($data['unique_subscribers']) ? $data['unique_subscribers'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['total_blacklisted'] === null) { - $invalid_properties[] = "'total_blacklisted' can't be null"; - } - if ($this->container['total_subscribers'] === null) { - $invalid_properties[] = "'total_subscribers' can't be null"; - } - if ($this->container['unique_subscribers'] === null) { - $invalid_properties[] = "'unique_subscribers' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['total_blacklisted'] === null) { - return false; - } - if ($this->container['total_subscribers'] === null) { - return false; - } - if ($this->container['unique_subscribers'] === null) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the folder - * @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 folder - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets total_blacklisted - * @return int - */ - public function getTotalBlacklisted() - { - return $this->container['total_blacklisted']; - } - - /** - * Sets total_blacklisted - * @param int $total_blacklisted Number of blacklisted contacts in the folder - * @return $this - */ - public function setTotalBlacklisted($total_blacklisted) - { - $this->container['total_blacklisted'] = $total_blacklisted; - - return $this; - } - - /** - * Gets total_subscribers - * @return int - */ - public function getTotalSubscribers() - { - return $this->container['total_subscribers']; - } - - /** - * Sets total_subscribers - * @param int $total_subscribers Number of contacts in the folder - * @return $this - */ - public function setTotalSubscribers($total_subscribers) - { - $this->container['total_subscribers'] = $total_subscribers; - - return $this; - } - - /** - * Gets unique_subscribers - * @return int - */ - public function getUniqueSubscribers() - { - return $this->container['unique_subscribers']; - } - - /** - * Sets unique_subscribers - * @param int $unique_subscribers Number of unique contacts in the folder - * @return $this - */ - public function setUniqueSubscribers($unique_subscribers) - { - $this->container['unique_subscribers'] = $unique_subscribers; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20018.php b/lib/Model/InlineResponse20018.php deleted file mode 100755 index 712f6791..00000000 --- a/lib/Model/InlineResponse20018.php +++ /dev/null @@ -1,281 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20018Lists[]', - 'count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'lists' => null, - 'count' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'lists' => 'lists', - 'count' => 'count' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'lists' => 'setLists', - 'count' => 'setCount' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'lists' => 'getLists', - 'count' => 'getCount' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['lists'] = isset($data['lists']) ? $data['lists'] : 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() - { - $invalid_properties = []; - - if ($this->container['lists'] === null) { - $invalid_properties[] = "'lists' can't be null"; - } - if ($this->container['count'] === null) { - $invalid_properties[] = "'count' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['lists'] === null) { - return false; - } - if ($this->container['count'] === null) { - return false; - } - return true; - } - - - /** - * Gets lists - * @return \Swagger\Client\Model\InlineResponse20018Lists[] - */ - public function getLists() - { - return $this->container['lists']; - } - - /** - * Sets lists - * @param \Swagger\Client\Model\InlineResponse20018Lists[] $lists - * @return $this - */ - public function setLists($lists) - { - $this->container['lists'] = $lists; - - return $this; - } - - /** - * Gets count - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * @param int $count Number of lists in the folder - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20018Lists.php b/lib/Model/InlineResponse20018Lists.php deleted file mode 100755 index a132d568..00000000 --- a/lib/Model/InlineResponse20018Lists.php +++ /dev/null @@ -1,347 +0,0 @@ - 'int', - 'name' => 'string', - 'total_blacklisted' => 'int', - 'total_subscribers' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'name' => null, - 'total_blacklisted' => 'int32', - 'total_subscribers' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'total_blacklisted' => 'totalBlacklisted', - 'total_subscribers' => 'totalSubscribers' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'total_blacklisted' => 'setTotalBlacklisted', - 'total_subscribers' => 'setTotalSubscribers' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'total_blacklisted' => 'getTotalBlacklisted', - 'total_subscribers' => 'getTotalSubscribers' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['total_blacklisted'] = isset($data['total_blacklisted']) ? $data['total_blacklisted'] : null; - $this->container['total_subscribers'] = isset($data['total_subscribers']) ? $data['total_subscribers'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['total_blacklisted'] === null) { - $invalid_properties[] = "'total_blacklisted' can't be null"; - } - if ($this->container['total_subscribers'] === null) { - $invalid_properties[] = "'total_subscribers' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['total_blacklisted'] === null) { - return false; - } - if ($this->container['total_subscribers'] === null) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the list - * @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 list - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets total_blacklisted - * @return int - */ - public function getTotalBlacklisted() - { - return $this->container['total_blacklisted']; - } - - /** - * Sets total_blacklisted - * @param int $total_blacklisted Number of blacklisted contacts in the list - * @return $this - */ - public function setTotalBlacklisted($total_blacklisted) - { - $this->container['total_blacklisted'] = $total_blacklisted; - - return $this; - } - - /** - * Gets total_subscribers - * @return int - */ - public function getTotalSubscribers() - { - return $this->container['total_subscribers']; - } - - /** - * Sets total_subscribers - * @param int $total_subscribers Number of contacts in the list - * @return $this - */ - public function setTotalSubscribers($total_subscribers) - { - $this->container['total_subscribers'] = $total_subscribers; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20019.php b/lib/Model/InlineResponse20019.php deleted file mode 100755 index 59fd010a..00000000 --- a/lib/Model/InlineResponse20019.php +++ /dev/null @@ -1,281 +0,0 @@ - 'int', - 'lists' => '\Swagger\Client\Model\InlineResponse20018Lists[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'count' => 'int32', - 'lists' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'count' => 'count', - 'lists' => 'lists' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'count' => 'setCount', - 'lists' => 'setLists' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'count' => 'getCount', - 'lists' => 'getLists' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['count'] = isset($data['count']) ? $data['count'] : null; - $this->container['lists'] = isset($data['lists']) ? $data['lists'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['count'] === null) { - $invalid_properties[] = "'count' can't be null"; - } - if ($this->container['lists'] === null) { - $invalid_properties[] = "'lists' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['count'] === null) { - return false; - } - if ($this->container['lists'] === null) { - return false; - } - return true; - } - - - /** - * Gets count - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * @param int $count Number of lists in your account - * @return $this - */ - public function setCount($count) - { - $this->container['count'] = $count; - - return $this; - } - - /** - * Gets lists - * @return \Swagger\Client\Model\InlineResponse20018Lists[] - */ - public function getLists() - { - return $this->container['lists']; - } - - /** - * Sets lists - * @param \Swagger\Client\Model\InlineResponse20018Lists[] $lists Listing of all the lists available in your account - * @return $this - */ - public function setLists($lists) - { - $this->container['lists'] = $lists; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2001Children.php b/lib/Model/InlineResponse2001Children.php deleted file mode 100755 index 1066bd3f..00000000 --- a/lib/Model/InlineResponse2001Children.php +++ /dev/null @@ -1,515 +0,0 @@ - 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', - 'credits' => '\Swagger\Client\Model\InlineResponse2001Credits', - 'statistics' => '\Swagger\Client\Model\InlineResponse2001Statistics', - 'password' => 'string', - 'ips' => '\Swagger\Client\Model\InlineResponse2001Ips[]', - 'api_keys' => '\Swagger\Client\Model\InlineResponse2001ApiKeys[]', - 'id' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, - 'credits' => null, - 'statistics' => null, - 'password' => 'password', - 'ips' => null, - 'api_keys' => null, - 'id' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', - 'credits' => 'credits', - 'statistics' => 'statistics', - 'password' => 'password', - 'ips' => 'ips', - 'api_keys' => 'apiKeys', - 'id' => 'id' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', - 'credits' => 'setCredits', - 'statistics' => 'setStatistics', - 'password' => 'setPassword', - 'ips' => 'setIps', - 'api_keys' => 'setApiKeys', - 'id' => 'setId' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', - 'credits' => 'getCredits', - 'statistics' => 'getStatistics', - 'password' => 'getPassword', - 'ips' => 'getIps', - 'api_keys' => 'getApiKeys', - 'id' => 'getId' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; - $this->container['credits'] = isset($data['credits']) ? $data['credits'] : null; - $this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null; - $this->container['password'] = isset($data['password']) ? $data['password'] : null; - $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; - $this->container['api_keys'] = isset($data['api_keys']) ? $data['api_keys'] : 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() - { - $invalid_properties = []; - - if ($this->container['email'] === null) { - $invalid_properties[] = "'email' can't be null"; - } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; - } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; - } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; - } - if ($this->container['password'] === null) { - $invalid_properties[] = "'password' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['email'] === null) { - return false; - } - if ($this->container['first_name'] === null) { - return false; - } - if ($this->container['last_name'] === null) { - return false; - } - if ($this->container['company_name'] === null) { - return false; - } - if ($this->container['password'] === null) { - return false; - } - return true; - } - - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email Login Email - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets first_name - * @return string - */ - public function getFirstName() - { - return $this->container['first_name']; - } - - /** - * Sets first_name - * @param string $first_name First Name - * @return $this - */ - public function setFirstName($first_name) - { - $this->container['first_name'] = $first_name; - - return $this; - } - - /** - * Gets last_name - * @return string - */ - public function getLastName() - { - return $this->container['last_name']; - } - - /** - * Sets last_name - * @param string $last_name Last Name - * @return $this - */ - public function setLastName($last_name) - { - $this->container['last_name'] = $last_name; - - return $this; - } - - /** - * Gets company_name - * @return string - */ - public function getCompanyName() - { - return $this->container['company_name']; - } - - /** - * Sets company_name - * @param string $company_name Name of the company - * @return $this - */ - public function setCompanyName($company_name) - { - $this->container['company_name'] = $company_name; - - return $this; - } - - /** - * Gets credits - * @return \Swagger\Client\Model\InlineResponse2001Credits - */ - public function getCredits() - { - return $this->container['credits']; - } - - /** - * Sets credits - * @param \Swagger\Client\Model\InlineResponse2001Credits $credits - * @return $this - */ - public function setCredits($credits) - { - $this->container['credits'] = $credits; - - return $this; - } - - /** - * Gets statistics - * @return \Swagger\Client\Model\InlineResponse2001Statistics - */ - public function getStatistics() - { - return $this->container['statistics']; - } - - /** - * Sets statistics - * @param \Swagger\Client\Model\InlineResponse2001Statistics $statistics - * @return $this - */ - public function setStatistics($statistics) - { - $this->container['statistics'] = $statistics; - - return $this; - } - - /** - * Gets password - * @return string - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * @param string $password The encrypted password of child account - * @return $this - */ - public function setPassword($password) - { - $this->container['password'] = $password; - - return $this; - } - - /** - * Gets ips - * @return \Swagger\Client\Model\InlineResponse2001Ips[] - */ - public function getIps() - { - return $this->container['ips']; - } - - /** - * Sets ips - * @param \Swagger\Client\Model\InlineResponse2001Ips[] $ips IP(s) associated to a child account user - * @return $this - */ - public function setIps($ips) - { - $this->container['ips'] = $ips; - - return $this; - } - - /** - * Gets api_keys - * @return \Swagger\Client\Model\InlineResponse2001ApiKeys[] - */ - public function getApiKeys() - { - return $this->container['api_keys']; - } - - /** - * Sets api_keys - * @param \Swagger\Client\Model\InlineResponse2001ApiKeys[] $api_keys API Keys associated to child account - * @return $this - */ - public function setApiKeys($api_keys) - { - $this->container['api_keys'] = $api_keys; - - return $this; - } - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the child - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2002.php b/lib/Model/InlineResponse2002.php deleted file mode 100755 index 0d683dfb..00000000 --- a/lib/Model/InlineResponse2002.php +++ /dev/null @@ -1,488 +0,0 @@ - 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', - 'credits' => '\Swagger\Client\Model\InlineResponse2001Credits', - 'statistics' => '\Swagger\Client\Model\InlineResponse2001Statistics', - 'password' => 'string', - 'ips' => '\Swagger\Client\Model\InlineResponse2001Ips[]', - 'api_keys' => '\Swagger\Client\Model\InlineResponse2001ApiKeys[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, - 'credits' => null, - 'statistics' => null, - 'password' => 'password', - 'ips' => null, - 'api_keys' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', - 'credits' => 'credits', - 'statistics' => 'statistics', - 'password' => 'password', - 'ips' => 'ips', - 'api_keys' => 'apiKeys' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', - 'credits' => 'setCredits', - 'statistics' => 'setStatistics', - 'password' => 'setPassword', - 'ips' => 'setIps', - 'api_keys' => 'setApiKeys' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', - 'credits' => 'getCredits', - 'statistics' => 'getStatistics', - 'password' => 'getPassword', - 'ips' => 'getIps', - 'api_keys' => 'getApiKeys' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; - $this->container['credits'] = isset($data['credits']) ? $data['credits'] : null; - $this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null; - $this->container['password'] = isset($data['password']) ? $data['password'] : null; - $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; - $this->container['api_keys'] = isset($data['api_keys']) ? $data['api_keys'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['email'] === null) { - $invalid_properties[] = "'email' can't be null"; - } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; - } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; - } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; - } - if ($this->container['password'] === null) { - $invalid_properties[] = "'password' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['email'] === null) { - return false; - } - if ($this->container['first_name'] === null) { - return false; - } - if ($this->container['last_name'] === null) { - return false; - } - if ($this->container['company_name'] === null) { - return false; - } - if ($this->container['password'] === null) { - return false; - } - return true; - } - - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email Login Email - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets first_name - * @return string - */ - public function getFirstName() - { - return $this->container['first_name']; - } - - /** - * Sets first_name - * @param string $first_name First Name - * @return $this - */ - public function setFirstName($first_name) - { - $this->container['first_name'] = $first_name; - - return $this; - } - - /** - * Gets last_name - * @return string - */ - public function getLastName() - { - return $this->container['last_name']; - } - - /** - * Sets last_name - * @param string $last_name Last Name - * @return $this - */ - public function setLastName($last_name) - { - $this->container['last_name'] = $last_name; - - return $this; - } - - /** - * Gets company_name - * @return string - */ - public function getCompanyName() - { - return $this->container['company_name']; - } - - /** - * Sets company_name - * @param string $company_name Name of the company - * @return $this - */ - public function setCompanyName($company_name) - { - $this->container['company_name'] = $company_name; - - return $this; - } - - /** - * Gets credits - * @return \Swagger\Client\Model\InlineResponse2001Credits - */ - public function getCredits() - { - return $this->container['credits']; - } - - /** - * Sets credits - * @param \Swagger\Client\Model\InlineResponse2001Credits $credits - * @return $this - */ - public function setCredits($credits) - { - $this->container['credits'] = $credits; - - return $this; - } - - /** - * Gets statistics - * @return \Swagger\Client\Model\InlineResponse2001Statistics - */ - public function getStatistics() - { - return $this->container['statistics']; - } - - /** - * Sets statistics - * @param \Swagger\Client\Model\InlineResponse2001Statistics $statistics - * @return $this - */ - public function setStatistics($statistics) - { - $this->container['statistics'] = $statistics; - - return $this; - } - - /** - * Gets password - * @return string - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * @param string $password The encrypted password of child account - * @return $this - */ - public function setPassword($password) - { - $this->container['password'] = $password; - - return $this; - } - - /** - * Gets ips - * @return \Swagger\Client\Model\InlineResponse2001Ips[] - */ - public function getIps() - { - return $this->container['ips']; - } - - /** - * Sets ips - * @param \Swagger\Client\Model\InlineResponse2001Ips[] $ips IP(s) associated to a child account user - * @return $this - */ - public function setIps($ips) - { - $this->container['ips'] = $ips; - - return $this; - } - - /** - * Gets api_keys - * @return \Swagger\Client\Model\InlineResponse2001ApiKeys[] - */ - public function getApiKeys() - { - return $this->container['api_keys']; - } - - /** - * Sets api_keys - * @param \Swagger\Client\Model\InlineResponse2001ApiKeys[] $api_keys API Keys associated to child account - * @return $this - */ - public function setApiKeys($api_keys) - { - $this->container['api_keys'] = $api_keys; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20020.php b/lib/Model/InlineResponse20020.php deleted file mode 100755 index 92f679e9..00000000 --- a/lib/Model/InlineResponse20020.php +++ /dev/null @@ -1,467 +0,0 @@ - 'int', - 'name' => 'string', - 'total_blacklisted' => 'int', - 'total_subscribers' => 'int', - 'folder_id' => 'int', - 'created_at' => '\DateTime', - 'campaign_stats' => '\Swagger\Client\Model\InlineResponse20020CampaignStats[]', - 'dynamic_list' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'name' => null, - 'total_blacklisted' => 'int32', - 'total_subscribers' => 'int32', - 'folder_id' => 'int32', - 'created_at' => 'date', - 'campaign_stats' => null, - 'dynamic_list' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'total_blacklisted' => 'totalBlacklisted', - 'total_subscribers' => 'totalSubscribers', - 'folder_id' => 'folderId', - 'created_at' => 'createdAt', - 'campaign_stats' => 'campaignStats', - 'dynamic_list' => 'dynamicList' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'total_blacklisted' => 'setTotalBlacklisted', - 'total_subscribers' => 'setTotalSubscribers', - 'folder_id' => 'setFolderId', - 'created_at' => 'setCreatedAt', - 'campaign_stats' => 'setCampaignStats', - 'dynamic_list' => 'setDynamicList' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'total_blacklisted' => 'getTotalBlacklisted', - 'total_subscribers' => 'getTotalSubscribers', - 'folder_id' => 'getFolderId', - 'created_at' => 'getCreatedAt', - 'campaign_stats' => 'getCampaignStats', - 'dynamic_list' => 'getDynamicList' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['total_blacklisted'] = isset($data['total_blacklisted']) ? $data['total_blacklisted'] : null; - $this->container['total_subscribers'] = isset($data['total_subscribers']) ? $data['total_subscribers'] : null; - $this->container['folder_id'] = isset($data['folder_id']) ? $data['folder_id'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['campaign_stats'] = isset($data['campaign_stats']) ? $data['campaign_stats'] : null; - $this->container['dynamic_list'] = isset($data['dynamic_list']) ? $data['dynamic_list'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['total_blacklisted'] === null) { - $invalid_properties[] = "'total_blacklisted' can't be null"; - } - if ($this->container['total_subscribers'] === null) { - $invalid_properties[] = "'total_subscribers' can't be null"; - } - if ($this->container['folder_id'] === null) { - $invalid_properties[] = "'folder_id' can't be null"; - } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['total_blacklisted'] === null) { - return false; - } - if ($this->container['total_subscribers'] === null) { - return false; - } - if ($this->container['folder_id'] === null) { - return false; - } - if ($this->container['created_at'] === null) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the list - * @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 list - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets total_blacklisted - * @return int - */ - public function getTotalBlacklisted() - { - return $this->container['total_blacklisted']; - } - - /** - * Sets total_blacklisted - * @param int $total_blacklisted Number of blacklisted contacts in the list - * @return $this - */ - public function setTotalBlacklisted($total_blacklisted) - { - $this->container['total_blacklisted'] = $total_blacklisted; - - return $this; - } - - /** - * Gets total_subscribers - * @return int - */ - public function getTotalSubscribers() - { - return $this->container['total_subscribers']; - } - - /** - * Sets total_subscribers - * @param int $total_subscribers Number of contacts in the list - * @return $this - */ - public function setTotalSubscribers($total_subscribers) - { - $this->container['total_subscribers'] = $total_subscribers; - - return $this; - } - - /** - * Gets folder_id - * @return int - */ - public function getFolderId() - { - return $this->container['folder_id']; - } - - /** - * Sets folder_id - * @param int $folder_id ID of the folder - * @return $this - */ - public function setFolderId($folder_id) - { - $this->container['folder_id'] = $folder_id; - - return $this; - } - - /** - * Gets created_at - * @return \DateTime - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * @param \DateTime $created_at Creation Date of the list - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets campaign_stats - * @return \Swagger\Client\Model\InlineResponse20020CampaignStats[] - */ - public function getCampaignStats() - { - return $this->container['campaign_stats']; - } - - /** - * Sets campaign_stats - * @param \Swagger\Client\Model\InlineResponse20020CampaignStats[] $campaign_stats - * @return $this - */ - public function setCampaignStats($campaign_stats) - { - $this->container['campaign_stats'] = $campaign_stats; - - return $this; - } - - /** - * Gets dynamic_list - * @return bool - */ - public function getDynamicList() - { - return $this->container['dynamic_list']; - } - - /** - * Sets dynamic_list - * @param bool $dynamic_list Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) - * @return $this - */ - public function setDynamicList($dynamic_list) - { - $this->container['dynamic_list'] = $dynamic_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20021.php b/lib/Model/InlineResponse20021.php deleted file mode 100755 index cf62ea2f..00000000 --- a/lib/Model/InlineResponse20021.php +++ /dev/null @@ -1,275 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20021Campaigns[]', - 'count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaigns' => null, - 'count' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'campaigns' => 'campaigns', - 'count' => 'count' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'campaigns' => 'setCampaigns', - 'count' => 'setCount' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'campaigns' => 'getCampaigns', - 'count' => 'getCount' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['campaigns'] = isset($data['campaigns']) ? $data['campaigns'] : 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() - { - $invalid_properties = []; - - if ($this->container['count'] === null) { - $invalid_properties[] = "'count' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['count'] === null) { - return false; - } - return true; - } - - - /** - * Gets campaigns - * @return \Swagger\Client\Model\InlineResponse20021Campaigns[] - */ - public function getCampaigns() - { - return $this->container['campaigns']; - } - - /** - * Sets campaigns - * @param \Swagger\Client\Model\InlineResponse20021Campaigns[] $campaigns - * @return $this - */ - public function setCampaigns($campaigns) - { - $this->container['campaigns'] = $campaigns; - - return $this; - } - - /** - * Gets count - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * @param int $count Number of SMS campaigns retrieved - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20021Campaigns.php b/lib/Model/InlineResponse20021Campaigns.php deleted file mode 100755 index c8fdd654..00000000 --- a/lib/Model/InlineResponse20021Campaigns.php +++ /dev/null @@ -1,645 +0,0 @@ - 'int', - 'name' => 'string', - 'status' => 'string', - 'content' => 'string', - 'scheduled_at' => 'string', - 'test_sent' => 'bool', - 'sender' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string', - 'recipients' => '\Swagger\Client\Model\InlineResponse2008Recipients', - 'statistics' => '\Swagger\Client\Model\InlineResponse20021Statistics' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'name' => null, - 'status' => null, - 'content' => null, - 'scheduled_at' => null, - 'test_sent' => null, - 'sender' => null, - 'created_at' => null, - 'modified_at' => null, - 'recipients' => null, - 'statistics' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'status' => 'status', - 'content' => 'content', - 'scheduled_at' => 'scheduledAt', - 'test_sent' => 'testSent', - 'sender' => 'sender', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt', - 'recipients' => 'recipients', - 'statistics' => 'statistics' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'status' => 'setStatus', - 'content' => 'setContent', - 'scheduled_at' => 'setScheduledAt', - 'test_sent' => 'setTestSent', - 'sender' => 'setSender', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt', - 'recipients' => 'setRecipients', - 'statistics' => 'setStatistics' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'status' => 'getStatus', - 'content' => 'getContent', - 'scheduled_at' => 'getScheduledAt', - 'test_sent' => 'getTestSent', - 'sender' => 'getSender', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt', - 'recipients' => 'getRecipients', - 'statistics' => 'getStatistics' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const STATUS_DRAFT = 'draft'; - const STATUS_SENT = 'sent'; - const STATUS_ARCHIVE = 'archive'; - const STATUS_QUEUED = 'queued'; - const STATUS_SUSPENDED = 'suspended'; - const STATUS_IN_PROCESS = 'in_process'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getStatusAllowableValues() - { - return [ - self::STATUS_DRAFT, - self::STATUS_SENT, - self::STATUS_ARCHIVE, - self::STATUS_QUEUED, - self::STATUS_SUSPENDED, - self::STATUS_IN_PROCESS, - ]; - } - - - /** - * 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['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['content'] = isset($data['content']) ? $data['content'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; - $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : 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. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['status'] === null) { - $invalid_properties[] = "'status' can't be null"; - } - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['content'] === null) { - $invalid_properties[] = "'content' can't be null"; - } - if ($this->container['scheduled_at'] === null) { - $invalid_properties[] = "'scheduled_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; - } - if ($this->container['sender'] === null) { - $invalid_properties[] = "'sender' can't be null"; - } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['status'] === null) { - return false; - } - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - return false; - } - if ($this->container['content'] === null) { - return false; - } - if ($this->container['scheduled_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - return false; - } - if ($this->container['test_sent'] === null) { - return false; - } - if ($this->container['sender'] === null) { - return false; - } - if ($this->container['created_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - return false; - } - if ($this->container['modified_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the SMS Campaign - * @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 SMS Campaign - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * @param string $status Status of the SMS Campaign - * @return $this - */ - public function setStatus($status) - { - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($status, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets content - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * @param string $content Content of the SMS Campaign - * @return $this - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } - - /** - * Gets scheduled_at - * @return string - */ - public function getScheduledAt() - { - return $this->container['scheduled_at']; - } - - /** - * Sets scheduled_at - * @param string $scheduled_at Date on which SMS campaign is scheduled - * @return $this - */ - public function setScheduledAt($scheduled_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling InlineResponse20021Campaigns., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['scheduled_at'] = $scheduled_at; - - return $this; - } - - /** - * Gets test_sent - * @return bool - */ - public function getTestSent() - { - return $this->container['test_sent']; - } - - /** - * Sets test_sent - * @param bool $test_sent Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) - * @return $this - */ - public function setTestSent($test_sent) - { - $this->container['test_sent'] = $test_sent; - - return $this; - } - - /** - * Gets sender - * @return string - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param string $sender Sender of the SMS Campaign - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * @param string $created_at Creation date of the SMS campaign - * @return $this - */ - public function setCreatedAt($created_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling InlineResponse20021Campaigns., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets modified_at - * @return string - */ - public function getModifiedAt() - { - return $this->container['modified_at']; - } - - /** - * Sets modified_at - * @param string $modified_at Date of last modification of the SMS campaign - * @return $this - */ - public function setModifiedAt($modified_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling InlineResponse20021Campaigns., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['modified_at'] = $modified_at; - - return $this; - } - - /** - * Gets recipients - * @return \Swagger\Client\Model\InlineResponse2008Recipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\InlineResponse2008Recipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets statistics - * @return \Swagger\Client\Model\InlineResponse20021Statistics - */ - public function getStatistics() - { - return $this->container['statistics']; - } - - /** - * Sets statistics - * @param \Swagger\Client\Model\InlineResponse20021Statistics $statistics - * @return $this - */ - public function setStatistics($statistics) - { - $this->container['statistics'] = $statistics; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20021Statistics.php b/lib/Model/InlineResponse20021Statistics.php deleted file mode 100755 index 43bc426b..00000000 --- a/lib/Model/InlineResponse20021Statistics.php +++ /dev/null @@ -1,446 +0,0 @@ - 'int', - 'sent' => 'int', - 'processing' => 'int', - 'soft_bounces' => 'int', - 'hard_bounces' => 'int', - 'unsubscriptions' => 'int', - 'answered' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'delivered' => 'int32', - 'sent' => 'int32', - 'processing' => 'int32', - 'soft_bounces' => 'int32', - 'hard_bounces' => 'int32', - 'unsubscriptions' => 'int32', - 'answered' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'delivered' => 'delivered', - 'sent' => 'sent', - 'processing' => 'processing', - 'soft_bounces' => 'softBounces', - 'hard_bounces' => 'hardBounces', - 'unsubscriptions' => 'unsubscriptions', - 'answered' => 'answered' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'delivered' => 'setDelivered', - 'sent' => 'setSent', - 'processing' => 'setProcessing', - 'soft_bounces' => 'setSoftBounces', - 'hard_bounces' => 'setHardBounces', - 'unsubscriptions' => 'setUnsubscriptions', - 'answered' => 'setAnswered' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'delivered' => 'getDelivered', - 'sent' => 'getSent', - 'processing' => 'getProcessing', - 'soft_bounces' => 'getSoftBounces', - 'hard_bounces' => 'getHardBounces', - 'unsubscriptions' => 'getUnsubscriptions', - 'answered' => 'getAnswered' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; - $this->container['sent'] = isset($data['sent']) ? $data['sent'] : null; - $this->container['processing'] = isset($data['processing']) ? $data['processing'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['unsubscriptions'] = isset($data['unsubscriptions']) ? $data['unsubscriptions'] : null; - $this->container['answered'] = isset($data['answered']) ? $data['answered'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['delivered'] === null) { - $invalid_properties[] = "'delivered' can't be null"; - } - if ($this->container['sent'] === null) { - $invalid_properties[] = "'sent' can't be null"; - } - if ($this->container['processing'] === null) { - $invalid_properties[] = "'processing' can't be null"; - } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; - } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; - } - if ($this->container['unsubscriptions'] === null) { - $invalid_properties[] = "'unsubscriptions' can't be null"; - } - if ($this->container['answered'] === null) { - $invalid_properties[] = "'answered' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['delivered'] === null) { - return false; - } - if ($this->container['sent'] === null) { - return false; - } - if ($this->container['processing'] === null) { - return false; - } - if ($this->container['soft_bounces'] === null) { - return false; - } - if ($this->container['hard_bounces'] === null) { - return false; - } - if ($this->container['unsubscriptions'] === null) { - return false; - } - if ($this->container['answered'] === null) { - return false; - } - return true; - } - - - /** - * Gets delivered - * @return int - */ - public function getDelivered() - { - return $this->container['delivered']; - } - - /** - * Sets delivered - * @param int $delivered Number of delivered SMS - * @return $this - */ - public function setDelivered($delivered) - { - $this->container['delivered'] = $delivered; - - return $this; - } - - /** - * Gets sent - * @return int - */ - public function getSent() - { - return $this->container['sent']; - } - - /** - * Sets sent - * @param int $sent Number of sent SMS - * @return $this - */ - public function setSent($sent) - { - $this->container['sent'] = $sent; - - return $this; - } - - /** - * Gets processing - * @return int - */ - public function getProcessing() - { - return $this->container['processing']; - } - - /** - * Sets processing - * @param int $processing Number of processing SMS - * @return $this - */ - public function setProcessing($processing) - { - $this->container['processing'] = $processing; - - return $this; - } - - /** - * Gets soft_bounces - * @return int - */ - public function getSoftBounces() - { - return $this->container['soft_bounces']; - } - - /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounced SMS - * @return $this - */ - public function setSoftBounces($soft_bounces) - { - $this->container['soft_bounces'] = $soft_bounces; - - return $this; - } - - /** - * Gets hard_bounces - * @return int - */ - public function getHardBounces() - { - return $this->container['hard_bounces']; - } - - /** - * Sets hard_bounces - * @param int $hard_bounces Number of hardbounced SMS - * @return $this - */ - public function setHardBounces($hard_bounces) - { - $this->container['hard_bounces'] = $hard_bounces; - - return $this; - } - - /** - * Gets unsubscriptions - * @return int - */ - public function getUnsubscriptions() - { - return $this->container['unsubscriptions']; - } - - /** - * Sets unsubscriptions - * @param int $unsubscriptions Number of unsubscription SMS - * @return $this - */ - public function setUnsubscriptions($unsubscriptions) - { - $this->container['unsubscriptions'] = $unsubscriptions; - - return $this; - } - - /** - * Gets answered - * @return int - */ - public function getAnswered() - { - return $this->container['answered']; - } - - /** - * Sets answered - * @param int $answered Number of replies to the SMS - * @return $this - */ - public function setAnswered($answered) - { - $this->container['answered'] = $answered; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20022.php b/lib/Model/InlineResponse20022.php deleted file mode 100755 index 1284bc6c..00000000 --- a/lib/Model/InlineResponse20022.php +++ /dev/null @@ -1,242 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20022Events[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'events' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'events' => 'events' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'events' => 'setEvents' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'events' => 'getEvents' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['events'] = isset($data['events']) ? $data['events'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets events - * @return \Swagger\Client\Model\InlineResponse20022Events[] - */ - public function getEvents() - { - return $this->container['events']; - } - - /** - * Sets events - * @param \Swagger\Client\Model\InlineResponse20022Events[] $events - * @return $this - */ - public function setEvents($events) - { - $this->container['events'] = $events; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20023.php b/lib/Model/InlineResponse20023.php deleted file mode 100755 index 91e97f13..00000000 --- a/lib/Model/InlineResponse20023.php +++ /dev/null @@ -1,545 +0,0 @@ - 'string', - 'requests' => 'int', - 'delivered' => 'int', - 'hard_bounces' => 'int', - 'soft_bounces' => 'int', - 'blocked' => 'int', - 'unsubscribed' => 'int', - 'replied' => 'int', - 'accepted' => 'int', - 'rejected' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'range' => null, - 'requests' => 'int32', - 'delivered' => 'int32', - 'hard_bounces' => 'int32', - 'soft_bounces' => 'int32', - 'blocked' => 'int32', - 'unsubscribed' => 'int32', - 'replied' => 'int32', - 'accepted' => 'int32', - 'rejected' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'range' => 'range', - 'requests' => 'requests', - 'delivered' => 'delivered', - 'hard_bounces' => 'hardBounces', - 'soft_bounces' => 'softBounces', - 'blocked' => 'blocked', - 'unsubscribed' => 'unsubscribed', - 'replied' => 'replied', - 'accepted' => 'accepted', - 'rejected' => 'rejected' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'range' => 'setRange', - 'requests' => 'setRequests', - 'delivered' => 'setDelivered', - 'hard_bounces' => 'setHardBounces', - 'soft_bounces' => 'setSoftBounces', - 'blocked' => 'setBlocked', - 'unsubscribed' => 'setUnsubscribed', - 'replied' => 'setReplied', - 'accepted' => 'setAccepted', - 'rejected' => 'setRejected' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'range' => 'getRange', - 'requests' => 'getRequests', - 'delivered' => 'getDelivered', - 'hard_bounces' => 'getHardBounces', - 'soft_bounces' => 'getSoftBounces', - 'blocked' => 'getBlocked', - 'unsubscribed' => 'getUnsubscribed', - 'replied' => 'getReplied', - 'accepted' => 'getAccepted', - 'rejected' => 'getRejected' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['range'] = isset($data['range']) ? $data['range'] : null; - $this->container['requests'] = isset($data['requests']) ? $data['requests'] : null; - $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; - $this->container['blocked'] = isset($data['blocked']) ? $data['blocked'] : null; - $this->container['unsubscribed'] = isset($data['unsubscribed']) ? $data['unsubscribed'] : null; - $this->container['replied'] = isset($data['replied']) ? $data['replied'] : null; - $this->container['accepted'] = isset($data['accepted']) ? $data['accepted'] : null; - $this->container['rejected'] = isset($data['rejected']) ? $data['rejected'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['range'] === null) { - $invalid_properties[] = "'range' can't be null"; - } - if ($this->container['requests'] === null) { - $invalid_properties[] = "'requests' can't be null"; - } - if ($this->container['delivered'] === null) { - $invalid_properties[] = "'delivered' can't be null"; - } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; - } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; - } - if ($this->container['blocked'] === null) { - $invalid_properties[] = "'blocked' can't be null"; - } - if ($this->container['unsubscribed'] === null) { - $invalid_properties[] = "'unsubscribed' can't be null"; - } - if ($this->container['replied'] === null) { - $invalid_properties[] = "'replied' can't be null"; - } - if ($this->container['accepted'] === null) { - $invalid_properties[] = "'accepted' can't be null"; - } - if ($this->container['rejected'] === null) { - $invalid_properties[] = "'rejected' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['range'] === null) { - return false; - } - if ($this->container['requests'] === null) { - return false; - } - if ($this->container['delivered'] === null) { - return false; - } - if ($this->container['hard_bounces'] === null) { - return false; - } - if ($this->container['soft_bounces'] === null) { - return false; - } - if ($this->container['blocked'] === null) { - return false; - } - if ($this->container['unsubscribed'] === null) { - return false; - } - if ($this->container['replied'] === null) { - return false; - } - if ($this->container['accepted'] === null) { - return false; - } - if ($this->container['rejected'] === null) { - return false; - } - return true; - } - - - /** - * Gets range - * @return string - */ - public function getRange() - { - return $this->container['range']; - } - - /** - * Sets range - * @param string $range Time frame of the report - * @return $this - */ - public function setRange($range) - { - $this->container['range'] = $range; - - return $this; - } - - /** - * Gets requests - * @return int - */ - public function getRequests() - { - return $this->container['requests']; - } - - /** - * Sets requests - * @param int $requests Number of requests for the timeframe - * @return $this - */ - public function setRequests($requests) - { - $this->container['requests'] = $requests; - - return $this; - } - - /** - * Gets delivered - * @return int - */ - public function getDelivered() - { - return $this->container['delivered']; - } - - /** - * Sets delivered - * @param int $delivered Number of delivered SMS for the timeframe - * @return $this - */ - public function setDelivered($delivered) - { - $this->container['delivered'] = $delivered; - - return $this; - } - - /** - * Gets hard_bounces - * @return int - */ - public function getHardBounces() - { - return $this->container['hard_bounces']; - } - - /** - * Sets hard_bounces - * @param int $hard_bounces Number of hardbounces for the timeframe - * @return $this - */ - public function setHardBounces($hard_bounces) - { - $this->container['hard_bounces'] = $hard_bounces; - - return $this; - } - - /** - * Gets soft_bounces - * @return int - */ - public function getSoftBounces() - { - return $this->container['soft_bounces']; - } - - /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounces for the timeframe - * @return $this - */ - public function setSoftBounces($soft_bounces) - { - $this->container['soft_bounces'] = $soft_bounces; - - return $this; - } - - /** - * Gets blocked - * @return int - */ - public function getBlocked() - { - return $this->container['blocked']; - } - - /** - * Sets blocked - * @param int $blocked Number of blocked contact for the timeframe - * @return $this - */ - public function setBlocked($blocked) - { - $this->container['blocked'] = $blocked; - - return $this; - } - - /** - * Gets unsubscribed - * @return int - */ - public function getUnsubscribed() - { - return $this->container['unsubscribed']; - } - - /** - * Sets unsubscribed - * @param int $unsubscribed Number of unsubscription for the timeframe - * @return $this - */ - public function setUnsubscribed($unsubscribed) - { - $this->container['unsubscribed'] = $unsubscribed; - - return $this; - } - - /** - * Gets replied - * @return int - */ - public function getReplied() - { - return $this->container['replied']; - } - - /** - * Sets replied - * @param int $replied Number of answered SMS for the timeframe - * @return $this - */ - public function setReplied($replied) - { - $this->container['replied'] = $replied; - - return $this; - } - - /** - * Gets accepted - * @return int - */ - public function getAccepted() - { - return $this->container['accepted']; - } - - /** - * Sets accepted - * @param int $accepted Number of accepted for the timeframe - * @return $this - */ - public function setAccepted($accepted) - { - $this->container['accepted'] = $accepted; - - return $this; - } - - /** - * Gets rejected - * @return int - */ - public function getRejected() - { - return $this->container['rejected']; - } - - /** - * Sets rejected - * @param int $rejected Number of rejected for the timeframe - * @return $this - */ - public function setRejected($rejected) - { - $this->container['rejected'] = $rejected; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse20024.php b/lib/Model/InlineResponse20024.php deleted file mode 100755 index 2d6a3d16..00000000 --- a/lib/Model/InlineResponse20024.php +++ /dev/null @@ -1,242 +0,0 @@ - '\Swagger\Client\Model\InlineResponse20024Reports[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'reports' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'reports' => 'reports' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'reports' => 'setReports' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'reports' => 'getReports' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['reports'] = isset($data['reports']) ? $data['reports'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets reports - * @return \Swagger\Client\Model\InlineResponse20024Reports[] - */ - public function getReports() - { - return $this->container['reports']; - } - - /** - * Sets reports - * @param \Swagger\Client\Model\InlineResponse20024Reports[] $reports - * @return $this - */ - public function setReports($reports) - { - $this->container['reports'] = $reports; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2003.php b/lib/Model/InlineResponse2003.php deleted file mode 100755 index 828458a9..00000000 --- a/lib/Model/InlineResponse2003.php +++ /dev/null @@ -1,269 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2003Child', - 'reseller' => '\Swagger\Client\Model\InlineResponse2003Reseller' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'child' => null, - 'reseller' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'child' => 'child', - 'reseller' => 'reseller' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'child' => 'setChild', - 'reseller' => 'setReseller' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'child' => 'getChild', - 'reseller' => 'getReseller' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['child'] = isset($data['child']) ? $data['child'] : null; - $this->container['reseller'] = isset($data['reseller']) ? $data['reseller'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets child - * @return \Swagger\Client\Model\InlineResponse2003Child - */ - public function getChild() - { - return $this->container['child']; - } - - /** - * Sets child - * @param \Swagger\Client\Model\InlineResponse2003Child $child - * @return $this - */ - public function setChild($child) - { - $this->container['child'] = $child; - - return $this; - } - - /** - * Gets reseller - * @return \Swagger\Client\Model\InlineResponse2003Reseller - */ - public function getReseller() - { - return $this->container['reseller']; - } - - /** - * Sets reseller - * @param \Swagger\Client\Model\InlineResponse2003Reseller $reseller - * @return $this - */ - public function setReseller($reseller) - { - $this->container['reseller'] = $reseller; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2004.php b/lib/Model/InlineResponse2004.php deleted file mode 100755 index 7007453f..00000000 --- a/lib/Model/InlineResponse2004.php +++ /dev/null @@ -1,242 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2004Senders[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'senders' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'senders' => 'senders' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'senders' => 'setSenders' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'senders' => 'getSenders' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['senders'] = isset($data['senders']) ? $data['senders'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets senders - * @return \Swagger\Client\Model\InlineResponse2004Senders[] - */ - public function getSenders() - { - return $this->container['senders']; - } - - /** - * Sets senders - * @param \Swagger\Client\Model\InlineResponse2004Senders[] $senders List of the senders available in your account - * @return $this - */ - public function setSenders($senders) - { - $this->container['senders'] = $senders; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2005.php b/lib/Model/InlineResponse2005.php deleted file mode 100755 index d4771d41..00000000 --- a/lib/Model/InlineResponse2005.php +++ /dev/null @@ -1,248 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2005Ips[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'ips' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'ips' => 'ips' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'ips' => 'setIps' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'ips' => 'getIps' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['ips'] = isset($data['ips']) ? $data['ips'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['ips'] === null) { - $invalid_properties[] = "'ips' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['ips'] === null) { - return false; - } - return true; - } - - - /** - * Gets ips - * @return \Swagger\Client\Model\InlineResponse2005Ips[] - */ - public function getIps() - { - return $this->container['ips']; - } - - /** - * Sets ips - * @param \Swagger\Client\Model\InlineResponse2005Ips[] $ips Dedicated IP(s) linked to a sender - * @return $this - */ - public function setIps($ips) - { - $this->container['ips'] = $ips; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2005Ips.php b/lib/Model/InlineResponse2005Ips.php deleted file mode 100755 index 09a2637f..00000000 --- a/lib/Model/InlineResponse2005Ips.php +++ /dev/null @@ -1,347 +0,0 @@ - 'int', - 'ip' => 'string', - 'domain' => 'string', - 'weight' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'ip' => null, - 'domain' => null, - 'weight' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'ip' => 'ip', - 'domain' => 'domain', - 'weight' => 'weight' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'ip' => 'setIp', - 'domain' => 'setDomain', - 'weight' => 'setWeight' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'ip' => 'getIp', - 'domain' => 'getDomain', - 'weight' => 'getWeight' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['ip'] = isset($data['ip']) ? $data['ip'] : null; - $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; - $this->container['weight'] = isset($data['weight']) ? $data['weight'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['ip'] === null) { - $invalid_properties[] = "'ip' can't be null"; - } - if ($this->container['domain'] === null) { - $invalid_properties[] = "'domain' can't be null"; - } - if ($this->container['weight'] === null) { - $invalid_properties[] = "'weight' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['ip'] === null) { - return false; - } - if ($this->container['domain'] === null) { - return false; - } - if ($this->container['weight'] === null) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the dedicated IP - * @return $this - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets ip - * @return string - */ - public function getIp() - { - return $this->container['ip']; - } - - /** - * Sets ip - * @param string $ip Dedicated IP - * @return $this - */ - public function setIp($ip) - { - $this->container['ip'] = $ip; - - return $this; - } - - /** - * Gets domain - * @return string - */ - public function getDomain() - { - return $this->container['domain']; - } - - /** - * Sets domain - * @param string $domain Domain associated to the IP - * @return $this - */ - public function setDomain($domain) - { - $this->container['domain'] = $domain; - - return $this; - } - - /** - * Gets weight - * @return int - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * @param int $weight Weight of the IP - * @return $this - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2006.php b/lib/Model/InlineResponse2006.php deleted file mode 100755 index 256d8d1d..00000000 --- a/lib/Model/InlineResponse2006.php +++ /dev/null @@ -1,248 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2006Ips[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'ips' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'ips' => 'ips' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'ips' => 'setIps' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'ips' => 'getIps' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['ips'] = isset($data['ips']) ? $data['ips'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['ips'] === null) { - $invalid_properties[] = "'ips' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['ips'] === null) { - return false; - } - return true; - } - - - /** - * Gets ips - * @return \Swagger\Client\Model\InlineResponse2006Ips[] - */ - public function getIps() - { - return $this->container['ips']; - } - - /** - * Sets ips - * @param \Swagger\Client\Model\InlineResponse2006Ips[] $ips Dedicated IP(s) available on your account - * @return $this - */ - public function setIps($ips) - { - $this->container['ips'] = $ips; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2006Ips.php b/lib/Model/InlineResponse2006Ips.php deleted file mode 100755 index ccc4fd41..00000000 --- a/lib/Model/InlineResponse2006Ips.php +++ /dev/null @@ -1,347 +0,0 @@ - 'int', - 'ip' => 'string', - 'active' => 'bool', - 'domain' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'ip' => null, - 'active' => null, - 'domain' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'ip' => 'ip', - 'active' => 'active', - 'domain' => 'domain' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'ip' => 'setIp', - 'active' => 'setActive', - 'domain' => 'setDomain' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'ip' => 'getIp', - 'active' => 'getActive', - 'domain' => 'getDomain' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['ip'] = isset($data['ip']) ? $data['ip'] : null; - $this->container['active'] = isset($data['active']) ? $data['active'] : null; - $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['ip'] === null) { - $invalid_properties[] = "'ip' can't be null"; - } - if ($this->container['active'] === null) { - $invalid_properties[] = "'active' can't be null"; - } - if ($this->container['domain'] === null) { - $invalid_properties[] = "'domain' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['ip'] === null) { - return false; - } - if ($this->container['active'] === null) { - return false; - } - if ($this->container['domain'] === null) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the dedicated IP - * @return $this - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets ip - * @return string - */ - public function getIp() - { - return $this->container['ip']; - } - - /** - * Sets ip - * @param string $ip Dedicated IP - * @return $this - */ - public function setIp($ip) - { - $this->container['ip'] = $ip; - - return $this; - } - - /** - * Gets active - * @return bool - */ - public function getActive() - { - return $this->container['active']; - } - - /** - * Sets active - * @param bool $active Status of the IP (true=active, false=inactive) - * @return $this - */ - public function setActive($active) - { - $this->container['active'] = $active; - - return $this; - } - - /** - * Gets domain - * @return string - */ - public function getDomain() - { - return $this->container['domain']; - } - - /** - * Sets domain - * @param string $domain Domain associated to the IP - * @return $this - */ - public function setDomain($domain) - { - $this->container['domain'] = $domain; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2007.php b/lib/Model/InlineResponse2007.php deleted file mode 100755 index 251275e7..00000000 --- a/lib/Model/InlineResponse2007.php +++ /dev/null @@ -1,275 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2007Processes[]', - 'count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'processes' => null, - 'count' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'processes' => 'processes', - 'count' => 'count' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'processes' => 'setProcesses', - 'count' => 'setCount' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'processes' => 'getProcesses', - 'count' => 'getCount' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['processes'] = isset($data['processes']) ? $data['processes'] : 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() - { - $invalid_properties = []; - - if ($this->container['count'] === null) { - $invalid_properties[] = "'count' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['count'] === null) { - return false; - } - return true; - } - - - /** - * Gets processes - * @return \Swagger\Client\Model\InlineResponse2007Processes[] - */ - public function getProcesses() - { - return $this->container['processes']; - } - - /** - * Sets processes - * @param \Swagger\Client\Model\InlineResponse2007Processes[] $processes List of processes available on your account - * @return $this - */ - public function setProcesses($processes) - { - $this->container['processes'] = $processes; - - return $this; - } - - /** - * Gets count - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * @param int $count Number of processes available on your account - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2007Processes.php b/lib/Model/InlineResponse2007Processes.php deleted file mode 100755 index 0217055c..00000000 --- a/lib/Model/InlineResponse2007Processes.php +++ /dev/null @@ -1,378 +0,0 @@ - 'int', - 'status' => 'string', - 'name' => 'string', - 'export_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'status' => null, - 'name' => null, - 'export_url' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'status' => 'status', - 'name' => 'name', - 'export_url' => 'export_url' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'status' => 'setStatus', - 'name' => 'setName', - 'export_url' => 'setExportUrl' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'status' => 'getStatus', - 'name' => 'getName', - 'export_url' => 'getExportUrl' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const STATUS_QUEUED = 'queued'; - const STATUS_IN_PROCESS = 'in_process'; - const STATUS_COMPLETED = 'completed'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getStatusAllowableValues() - { - return [ - self::STATUS_QUEUED, - self::STATUS_IN_PROCESS, - self::STATUS_COMPLETED, - ]; - } - - - /** - * 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['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['export_url'] = isset($data['export_url']) ? $data['export_url'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['status'] === null) { - $invalid_properties[] = "'status' can't be null"; - } - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['status'] === null) { - return false; - } - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id Id of the process - * @return $this - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * @param string $status Status of the process - * @return $this - */ - public function setStatus($status) - { - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($status, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Process name - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets export_url - * @return string - */ - public function getExportUrl() - { - return $this->container['export_url']; - } - - /** - * Sets export_url - * @param string $export_url URL on which send export the of contacts once the process is completed - * @return $this - */ - public function setExportUrl($export_url) - { - $this->container['export_url'] = $export_url; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2008.php b/lib/Model/InlineResponse2008.php deleted file mode 100755 index 13beaedb..00000000 --- a/lib/Model/InlineResponse2008.php +++ /dev/null @@ -1,275 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2008Campaigns[]', - 'count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaigns' => null, - 'count' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'campaigns' => 'campaigns', - 'count' => 'count' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'campaigns' => 'setCampaigns', - 'count' => 'setCount' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'campaigns' => 'getCampaigns', - 'count' => 'getCount' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['campaigns'] = isset($data['campaigns']) ? $data['campaigns'] : 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() - { - $invalid_properties = []; - - if ($this->container['count'] === null) { - $invalid_properties[] = "'count' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['count'] === null) { - return false; - } - return true; - } - - - /** - * Gets campaigns - * @return \Swagger\Client\Model\InlineResponse2008Campaigns[] - */ - public function getCampaigns() - { - return $this->container['campaigns']; - } - - /** - * Sets campaigns - * @param \Swagger\Client\Model\InlineResponse2008Campaigns[] $campaigns - * @return $this - */ - public function setCampaigns($campaigns) - { - $this->container['campaigns'] = $campaigns; - - return $this; - } - - /** - * Gets count - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * @param int $count Number of Email campaigns retrieved - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2008Campaigns.php b/lib/Model/InlineResponse2008Campaigns.php deleted file mode 100755 index dc6e9a98..00000000 --- a/lib/Model/InlineResponse2008Campaigns.php +++ /dev/null @@ -1,1019 +0,0 @@ - 'int', - 'name' => 'string', - 'subject' => 'string', - 'type' => 'string', - 'status' => 'string', - 'scheduled_at' => 'string', - 'test_sent' => 'bool', - 'header' => 'string', - 'footer' => 'string', - 'sender' => '\Swagger\Client\Model\InlineResponse2008Sender', - 'reply_to' => 'string', - 'to_field' => 'string', - 'html_content' => 'string', - 'share_link' => 'string', - 'tag' => 'string', - 'created_at' => 'string', - 'modified_at' => 'string', - 'inline_image_activation' => 'bool', - 'mirror_active' => 'bool', - 'recurring' => 'bool', - 'recipients' => '\Swagger\Client\Model\InlineResponse2008Recipients', - 'statistics' => '\Swagger\Client\Model\InlineResponse2008Statistics' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'name' => null, - 'subject' => null, - 'type' => null, - 'status' => null, - 'scheduled_at' => null, - 'test_sent' => null, - 'header' => null, - 'footer' => null, - 'sender' => null, - 'reply_to' => 'email', - 'to_field' => 'email', - 'html_content' => null, - 'share_link' => 'url', - 'tag' => null, - 'created_at' => null, - 'modified_at' => null, - 'inline_image_activation' => null, - 'mirror_active' => null, - 'recurring' => null, - 'recipients' => null, - 'statistics' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'subject' => 'subject', - 'type' => 'type', - 'status' => 'status', - 'scheduled_at' => 'scheduledAt', - 'test_sent' => 'testSent', - 'header' => 'header', - 'footer' => 'footer', - 'sender' => 'sender', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'html_content' => 'htmlContent', - 'share_link' => 'shareLink', - 'tag' => 'tag', - 'created_at' => 'createdAt', - 'modified_at' => 'modifiedAt', - 'inline_image_activation' => 'inlineImageActivation', - 'mirror_active' => 'mirrorActive', - 'recurring' => 'recurring', - 'recipients' => 'recipients', - 'statistics' => 'statistics' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'subject' => 'setSubject', - 'type' => 'setType', - 'status' => 'setStatus', - 'scheduled_at' => 'setScheduledAt', - 'test_sent' => 'setTestSent', - 'header' => 'setHeader', - 'footer' => 'setFooter', - 'sender' => 'setSender', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'html_content' => 'setHtmlContent', - 'share_link' => 'setShareLink', - 'tag' => 'setTag', - 'created_at' => 'setCreatedAt', - 'modified_at' => 'setModifiedAt', - 'inline_image_activation' => 'setInlineImageActivation', - 'mirror_active' => 'setMirrorActive', - 'recurring' => 'setRecurring', - 'recipients' => 'setRecipients', - 'statistics' => 'setStatistics' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'subject' => 'getSubject', - 'type' => 'getType', - 'status' => 'getStatus', - 'scheduled_at' => 'getScheduledAt', - 'test_sent' => 'getTestSent', - 'header' => 'getHeader', - 'footer' => 'getFooter', - 'sender' => 'getSender', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'html_content' => 'getHtmlContent', - 'share_link' => 'getShareLink', - 'tag' => 'getTag', - 'created_at' => 'getCreatedAt', - 'modified_at' => 'getModifiedAt', - 'inline_image_activation' => 'getInlineImageActivation', - 'mirror_active' => 'getMirrorActive', - 'recurring' => 'getRecurring', - 'recipients' => 'getRecipients', - 'statistics' => 'getStatistics' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const TYPE_CLASSIC = 'classic'; - const TYPE_TRIGGER = 'trigger'; - const STATUS_DRAFT = 'draft'; - const STATUS_SENT = 'sent'; - const STATUS_ARCHIVE = 'archive'; - const STATUS_QUEUED = 'queued'; - const STATUS_SUSPENDED = 'suspended'; - const STATUS_IN_PROCESS = 'in_process'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_CLASSIC, - self::TYPE_TRIGGER, - ]; - } - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getStatusAllowableValues() - { - return [ - self::STATUS_DRAFT, - self::STATUS_SENT, - self::STATUS_ARCHIVE, - self::STATUS_QUEUED, - self::STATUS_SUSPENDED, - self::STATUS_IN_PROCESS, - ]; - } - - - /** - * 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['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['type'] = isset($data['type']) ? $data['type'] : null; - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - $this->container['test_sent'] = isset($data['test_sent']) ? $data['test_sent'] : null; - $this->container['header'] = isset($data['header']) ? $data['header'] : null; - $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; - $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['share_link'] = isset($data['share_link']) ? $data['share_link'] : null; - $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['modified_at'] = isset($data['modified_at']) ? $data['modified_at'] : null; - $this->container['inline_image_activation'] = isset($data['inline_image_activation']) ? $data['inline_image_activation'] : null; - $this->container['mirror_active'] = isset($data['mirror_active']) ? $data['mirror_active'] : null; - $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : 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. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['subject'] === null) { - $invalid_properties[] = "'subject' can't be null"; - } - if ($this->container['type'] === null) { - $invalid_properties[] = "'type' can't be null"; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['status'] === null) { - $invalid_properties[] = "'status' can't be null"; - } - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['scheduled_at'] === null) { - $invalid_properties[] = "'scheduled_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - if ($this->container['test_sent'] === null) { - $invalid_properties[] = "'test_sent' can't be null"; - } - if ($this->container['header'] === null) { - $invalid_properties[] = "'header' can't be null"; - } - if ($this->container['footer'] === null) { - $invalid_properties[] = "'footer' can't be null"; - } - if ($this->container['reply_to'] === null) { - $invalid_properties[] = "'reply_to' can't be null"; - } - if ($this->container['to_field'] === null) { - $invalid_properties[] = "'to_field' can't be null"; - } - if ($this->container['html_content'] === null) { - $invalid_properties[] = "'html_content' can't be null"; - } - if ($this->container['share_link'] === null) { - $invalid_properties[] = "'share_link' can't be null"; - } - if ($this->container['tag'] === null) { - $invalid_properties[] = "'tag' can't be null"; - } - if ($this->container['created_at'] === null) { - $invalid_properties[] = "'created_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - $invalid_properties[] = "invalid value for 'created_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - if ($this->container['modified_at'] === null) { - $invalid_properties[] = "'modified_at' can't be null"; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - $invalid_properties[] = "invalid value for 'modified_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['subject'] === null) { - return false; - } - if ($this->container['type'] === null) { - return false; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - return false; - } - if ($this->container['status'] === null) { - return false; - } - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - return false; - } - if ($this->container['scheduled_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - return false; - } - if ($this->container['test_sent'] === null) { - return false; - } - if ($this->container['header'] === null) { - return false; - } - if ($this->container['footer'] === null) { - return false; - } - if ($this->container['reply_to'] === null) { - return false; - } - if ($this->container['to_field'] === null) { - return false; - } - if ($this->container['html_content'] === null) { - return false; - } - if ($this->container['share_link'] === null) { - return false; - } - if ($this->container['tag'] === null) { - return false; - } - if ($this->container['created_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['created_at'])) { - return false; - } - if ($this->container['modified_at'] === null) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['modified_at'])) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the campaign - * @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 campaign - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject of the campaign - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * @param string $type Type of campaign - * @return $this - */ - public function setType($type) - { - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * @param string $status Status of the campaign - * @return $this - */ - public function setStatus($status) - { - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($status, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets scheduled_at - * @return string - */ - public function getScheduledAt() - { - return $this->container['scheduled_at']; - } - - /** - * Sets scheduled_at - * @param string $scheduled_at Date on which campaign is scheduled - * @return $this - */ - public function setScheduledAt($scheduled_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling InlineResponse2008Campaigns., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['scheduled_at'] = $scheduled_at; - - return $this; - } - - /** - * Gets test_sent - * @return bool - */ - public function getTestSent() - { - return $this->container['test_sent']; - } - - /** - * Sets test_sent - * @param bool $test_sent Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) - * @return $this - */ - public function setTestSent($test_sent) - { - $this->container['test_sent'] = $test_sent; - - return $this; - } - - /** - * Gets header - * @return string - */ - public function getHeader() - { - return $this->container['header']; - } - - /** - * Sets header - * @param string $header Header of the campaign - * @return $this - */ - public function setHeader($header) - { - $this->container['header'] = $header; - - return $this; - } - - /** - * Gets footer - * @return string - */ - public function getFooter() - { - return $this->container['footer']; - } - - /** - * Sets footer - * @param string $footer Footer of the campaign - * @return $this - */ - public function setFooter($footer) - { - $this->container['footer'] = $footer; - - return $this; - } - - /** - * Gets sender - * @return \Swagger\Client\Model\InlineResponse2008Sender - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param \Swagger\Client\Model\InlineResponse2008Sender $sender - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets reply_to - * @return string - */ - public function getReplyTo() - { - return $this->container['reply_to']; - } - - /** - * Sets reply_to - * @param string $reply_to Email defined as the \"Reply to\" of the campaign - * @return $this - */ - public function setReplyTo($reply_to) - { - $this->container['reply_to'] = $reply_to; - - return $this; - } - - /** - * Gets to_field - * @return string - */ - public function getToField() - { - return $this->container['to_field']; - } - - /** - * Sets to_field - * @param string $to_field Customisation of the \"to\" field of the campaign - * @return $this - */ - public function setToField($to_field) - { - $this->container['to_field'] = $to_field; - - return $this; - } - - /** - * Gets html_content - * @return string - */ - public function getHtmlContent() - { - return $this->container['html_content']; - } - - /** - * Sets html_content - * @param string $html_content HTML content of the campaign - * @return $this - */ - public function setHtmlContent($html_content) - { - $this->container['html_content'] = $html_content; - - return $this; - } - - /** - * Gets share_link - * @return string - */ - public function getShareLink() - { - return $this->container['share_link']; - } - - /** - * Sets share_link - * @param string $share_link Link to share the campaign on social medias - * @return $this - */ - public function setShareLink($share_link) - { - $this->container['share_link'] = $share_link; - - return $this; - } - - /** - * Gets tag - * @return string - */ - public function getTag() - { - return $this->container['tag']; - } - - /** - * Sets tag - * @param string $tag Tag of the campaign - * @return $this - */ - public function setTag($tag) - { - $this->container['tag'] = $tag; - - return $this; - } - - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * @param string $created_at Creation date of the campaign - * @return $this - */ - public function setCreatedAt($created_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $created_at))) { - throw new \InvalidArgumentException("invalid value for $created_at when calling InlineResponse2008Campaigns., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets modified_at - * @return string - */ - public function getModifiedAt() - { - return $this->container['modified_at']; - } - - /** - * Sets modified_at - * @param string $modified_at Date of last modification of the campaign - * @return $this - */ - public function setModifiedAt($modified_at) - { - - if ((!preg_match("/YYYY-MM-DD HH:mm:ss/", $modified_at))) { - throw new \InvalidArgumentException("invalid value for $modified_at when calling InlineResponse2008Campaigns., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['modified_at'] = $modified_at; - - return $this; - } - - /** - * Gets inline_image_activation - * @return bool - */ - public function getInlineImageActivation() - { - return $this->container['inline_image_activation']; - } - - /** - * Sets inline_image_activation - * @param bool $inline_image_activation Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. - * @return $this - */ - public function setInlineImageActivation($inline_image_activation) - { - $this->container['inline_image_activation'] = $inline_image_activation; - - return $this; - } - - /** - * Gets mirror_active - * @return bool - */ - public function getMirrorActive() - { - return $this->container['mirror_active']; - } - - /** - * Sets mirror_active - * @param bool $mirror_active Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign - * @return $this - */ - public function setMirrorActive($mirror_active) - { - $this->container['mirror_active'] = $mirror_active; - - return $this; - } - - /** - * Gets recurring - * @return bool - */ - public function getRecurring() - { - return $this->container['recurring']; - } - - /** - * Sets recurring - * @param bool $recurring 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 - * @return $this - */ - public function setRecurring($recurring) - { - $this->container['recurring'] = $recurring; - - return $this; - } - - /** - * Gets recipients - * @return \Swagger\Client\Model\InlineResponse2008Recipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\InlineResponse2008Recipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets statistics - * @return \Swagger\Client\Model\InlineResponse2008Statistics - */ - public function getStatistics() - { - return $this->container['statistics']; - } - - /** - * Sets statistics - * @param \Swagger\Client\Model\InlineResponse2008Statistics $statistics - * @return $this - */ - public function setStatistics($statistics) - { - $this->container['statistics'] = $statistics; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2008Recipients.php b/lib/Model/InlineResponse2008Recipients.php deleted file mode 100755 index 8669bee7..00000000 --- a/lib/Model/InlineResponse2008Recipients.php +++ /dev/null @@ -1,281 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2008RecipientsLists[]', - 'exclusion_lists' => '\Swagger\Client\Model\InlineResponse2008RecipientsExclusionLists[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'lists' => null, - 'exclusion_lists' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'lists' => 'lists', - 'exclusion_lists' => 'exclusionLists' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'lists' => 'setLists', - 'exclusion_lists' => 'setExclusionLists' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'lists' => 'getLists', - 'exclusion_lists' => 'getExclusionLists' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['lists'] = isset($data['lists']) ? $data['lists'] : null; - $this->container['exclusion_lists'] = isset($data['exclusion_lists']) ? $data['exclusion_lists'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['lists'] === null) { - $invalid_properties[] = "'lists' can't be null"; - } - if ($this->container['exclusion_lists'] === null) { - $invalid_properties[] = "'exclusion_lists' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['lists'] === null) { - return false; - } - if ($this->container['exclusion_lists'] === null) { - return false; - } - return true; - } - - - /** - * Gets lists - * @return \Swagger\Client\Model\InlineResponse2008RecipientsLists[] - */ - public function getLists() - { - return $this->container['lists']; - } - - /** - * Sets lists - * @param \Swagger\Client\Model\InlineResponse2008RecipientsLists[] $lists Lists included in the campaign - * @return $this - */ - public function setLists($lists) - { - $this->container['lists'] = $lists; - - return $this; - } - - /** - * Gets exclusion_lists - * @return \Swagger\Client\Model\InlineResponse2008RecipientsExclusionLists[] - */ - public function getExclusionLists() - { - return $this->container['exclusion_lists']; - } - - /** - * Sets exclusion_lists - * @param \Swagger\Client\Model\InlineResponse2008RecipientsExclusionLists[] $exclusion_lists Lists excluded of the campaign - * @return $this - */ - public function setExclusionLists($exclusion_lists) - { - $this->container['exclusion_lists'] = $exclusion_lists; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2008Statistics.php b/lib/Model/InlineResponse2008Statistics.php deleted file mode 100755 index 2b57d2ba..00000000 --- a/lib/Model/InlineResponse2008Statistics.php +++ /dev/null @@ -1,380 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats[]', - 'mirror_click' => 'int', - 'remaining' => 'int', - 'links_stats' => 'map[string,\Swagger\Client\Model\InlineResponse2008StatisticsLinksStats]', - 'stats_by_domain' => 'map[string,\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaign_stats' => null, - 'mirror_click' => 'int32', - 'remaining' => 'int32', - 'links_stats' => null, - 'stats_by_domain' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'campaign_stats' => 'campaignStats', - 'mirror_click' => 'mirrorClick', - 'remaining' => 'remaining', - 'links_stats' => 'linksStats', - 'stats_by_domain' => 'statsByDomain' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'campaign_stats' => 'setCampaignStats', - 'mirror_click' => 'setMirrorClick', - 'remaining' => 'setRemaining', - 'links_stats' => 'setLinksStats', - 'stats_by_domain' => 'setStatsByDomain' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'campaign_stats' => 'getCampaignStats', - 'mirror_click' => 'getMirrorClick', - 'remaining' => 'getRemaining', - 'links_stats' => 'getLinksStats', - 'stats_by_domain' => 'getStatsByDomain' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['campaign_stats'] = isset($data['campaign_stats']) ? $data['campaign_stats'] : null; - $this->container['mirror_click'] = isset($data['mirror_click']) ? $data['mirror_click'] : null; - $this->container['remaining'] = isset($data['remaining']) ? $data['remaining'] : null; - $this->container['links_stats'] = isset($data['links_stats']) ? $data['links_stats'] : null; - $this->container['stats_by_domain'] = isset($data['stats_by_domain']) ? $data['stats_by_domain'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['campaign_stats'] === null) { - $invalid_properties[] = "'campaign_stats' can't be null"; - } - if ($this->container['mirror_click'] === null) { - $invalid_properties[] = "'mirror_click' can't be null"; - } - if ($this->container['remaining'] === null) { - $invalid_properties[] = "'remaining' can't be null"; - } - if ($this->container['links_stats'] === null) { - $invalid_properties[] = "'links_stats' can't be null"; - } - if ($this->container['stats_by_domain'] === null) { - $invalid_properties[] = "'stats_by_domain' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['campaign_stats'] === null) { - return false; - } - if ($this->container['mirror_click'] === null) { - return false; - } - if ($this->container['remaining'] === null) { - return false; - } - if ($this->container['links_stats'] === null) { - return false; - } - if ($this->container['stats_by_domain'] === null) { - return false; - } - return true; - } - - - /** - * Gets campaign_stats - * @return \Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats[] - */ - public function getCampaignStats() - { - return $this->container['campaign_stats']; - } - - /** - * Sets campaign_stats - * @param \Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats[] $campaign_stats - * @return $this - */ - public function setCampaignStats($campaign_stats) - { - $this->container['campaign_stats'] = $campaign_stats; - - return $this; - } - - /** - * Gets mirror_click - * @return int - */ - public function getMirrorClick() - { - return $this->container['mirror_click']; - } - - /** - * Sets mirror_click - * @param int $mirror_click Number of clicks on mirror link - * @return $this - */ - public function setMirrorClick($mirror_click) - { - $this->container['mirror_click'] = $mirror_click; - - return $this; - } - - /** - * Gets remaining - * @return int - */ - public function getRemaining() - { - return $this->container['remaining']; - } - - /** - * Sets remaining - * @param int $remaining Number of remaning emails to send - * @return $this - */ - public function setRemaining($remaining) - { - $this->container['remaining'] = $remaining; - - return $this; - } - - /** - * Gets links_stats - * @return map[string,\Swagger\Client\Model\InlineResponse2008StatisticsLinksStats] - */ - public function getLinksStats() - { - return $this->container['links_stats']; - } - - /** - * Sets links_stats - * @param map[string,\Swagger\Client\Model\InlineResponse2008StatisticsLinksStats] $links_stats - * @return $this - */ - public function setLinksStats($links_stats) - { - $this->container['links_stats'] = $links_stats; - - return $this; - } - - /** - * Gets stats_by_domain - * @return map[string,\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats] - */ - public function getStatsByDomain() - { - return $this->container['stats_by_domain']; - } - - /** - * Sets stats_by_domain - * @param map[string,\Swagger\Client\Model\InlineResponse2008StatisticsCampaignStats] $stats_by_domain - * @return $this - */ - public function setStatsByDomain($stats_by_domain) - { - $this->container['stats_by_domain'] = $stats_by_domain; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2008StatisticsCampaignStats.php b/lib/Model/InlineResponse2008StatisticsCampaignStats.php deleted file mode 100755 index 446f678f..00000000 --- a/lib/Model/InlineResponse2008StatisticsCampaignStats.php +++ /dev/null @@ -1,611 +0,0 @@ - 'int', - 'unique_clicks' => 'int', - 'clickers' => 'int', - 'complaints' => 'int', - 'delivered' => 'int', - 'sent' => 'int', - 'soft_bounces' => 'int', - 'hard_bounces' => 'int', - 'unique_views' => 'int', - 'unsubscriptions' => 'int', - 'viewed' => 'int', - 'deferred' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'list_id' => 'int32', - 'unique_clicks' => 'int32', - 'clickers' => 'int32', - 'complaints' => 'int32', - 'delivered' => 'int32', - 'sent' => 'int32', - 'soft_bounces' => 'int32', - 'hard_bounces' => 'int32', - 'unique_views' => 'int32', - 'unsubscriptions' => 'int32', - 'viewed' => 'int32', - 'deferred' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'list_id' => 'listId', - 'unique_clicks' => 'uniqueClicks', - 'clickers' => 'clickers', - 'complaints' => 'complaints', - 'delivered' => 'delivered', - 'sent' => 'sent', - 'soft_bounces' => 'softBounces', - 'hard_bounces' => 'hardBounces', - 'unique_views' => 'uniqueViews', - 'unsubscriptions' => 'unsubscriptions', - 'viewed' => 'viewed', - 'deferred' => 'deferred' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'list_id' => 'setListId', - 'unique_clicks' => 'setUniqueClicks', - 'clickers' => 'setClickers', - 'complaints' => 'setComplaints', - 'delivered' => 'setDelivered', - 'sent' => 'setSent', - 'soft_bounces' => 'setSoftBounces', - 'hard_bounces' => 'setHardBounces', - 'unique_views' => 'setUniqueViews', - 'unsubscriptions' => 'setUnsubscriptions', - 'viewed' => 'setViewed', - 'deferred' => 'setDeferred' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'list_id' => 'getListId', - 'unique_clicks' => 'getUniqueClicks', - 'clickers' => 'getClickers', - 'complaints' => 'getComplaints', - 'delivered' => 'getDelivered', - 'sent' => 'getSent', - 'soft_bounces' => 'getSoftBounces', - 'hard_bounces' => 'getHardBounces', - 'unique_views' => 'getUniqueViews', - 'unsubscriptions' => 'getUnsubscriptions', - 'viewed' => 'getViewed', - 'deferred' => 'getDeferred' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['list_id'] = isset($data['list_id']) ? $data['list_id'] : null; - $this->container['unique_clicks'] = isset($data['unique_clicks']) ? $data['unique_clicks'] : null; - $this->container['clickers'] = isset($data['clickers']) ? $data['clickers'] : null; - $this->container['complaints'] = isset($data['complaints']) ? $data['complaints'] : null; - $this->container['delivered'] = isset($data['delivered']) ? $data['delivered'] : null; - $this->container['sent'] = isset($data['sent']) ? $data['sent'] : null; - $this->container['soft_bounces'] = isset($data['soft_bounces']) ? $data['soft_bounces'] : null; - $this->container['hard_bounces'] = isset($data['hard_bounces']) ? $data['hard_bounces'] : null; - $this->container['unique_views'] = isset($data['unique_views']) ? $data['unique_views'] : null; - $this->container['unsubscriptions'] = isset($data['unsubscriptions']) ? $data['unsubscriptions'] : null; - $this->container['viewed'] = isset($data['viewed']) ? $data['viewed'] : null; - $this->container['deferred'] = isset($data['deferred']) ? $data['deferred'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['list_id'] === null) { - $invalid_properties[] = "'list_id' can't be null"; - } - if ($this->container['unique_clicks'] === null) { - $invalid_properties[] = "'unique_clicks' can't be null"; - } - if ($this->container['clickers'] === null) { - $invalid_properties[] = "'clickers' can't be null"; - } - if ($this->container['complaints'] === null) { - $invalid_properties[] = "'complaints' can't be null"; - } - if ($this->container['delivered'] === null) { - $invalid_properties[] = "'delivered' can't be null"; - } - if ($this->container['sent'] === null) { - $invalid_properties[] = "'sent' can't be null"; - } - if ($this->container['soft_bounces'] === null) { - $invalid_properties[] = "'soft_bounces' can't be null"; - } - if ($this->container['hard_bounces'] === null) { - $invalid_properties[] = "'hard_bounces' can't be null"; - } - if ($this->container['unique_views'] === null) { - $invalid_properties[] = "'unique_views' can't be null"; - } - if ($this->container['unsubscriptions'] === null) { - $invalid_properties[] = "'unsubscriptions' can't be null"; - } - if ($this->container['viewed'] === null) { - $invalid_properties[] = "'viewed' can't be null"; - } - if ($this->container['deferred'] === null) { - $invalid_properties[] = "'deferred' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['list_id'] === null) { - return false; - } - if ($this->container['unique_clicks'] === null) { - return false; - } - if ($this->container['clickers'] === null) { - return false; - } - if ($this->container['complaints'] === null) { - return false; - } - if ($this->container['delivered'] === null) { - return false; - } - if ($this->container['sent'] === null) { - return false; - } - if ($this->container['soft_bounces'] === null) { - return false; - } - if ($this->container['hard_bounces'] === null) { - return false; - } - if ($this->container['unique_views'] === null) { - return false; - } - if ($this->container['unsubscriptions'] === null) { - return false; - } - if ($this->container['viewed'] === null) { - return false; - } - if ($this->container['deferred'] === null) { - return false; - } - return true; - } - - - /** - * Gets list_id - * @return int - */ - public function getListId() - { - return $this->container['list_id']; - } - - /** - * Sets list_id - * @param int $list_id List Id of email campaign (only in case of get email campaign(s)) - * @return $this - */ - public function setListId($list_id) - { - $this->container['list_id'] = $list_id; - - return $this; - } - - /** - * Gets unique_clicks - * @return int - */ - public function getUniqueClicks() - { - return $this->container['unique_clicks']; - } - - /** - * Sets unique_clicks - * @param int $unique_clicks Number of unique clicks for the campaign - * @return $this - */ - public function setUniqueClicks($unique_clicks) - { - $this->container['unique_clicks'] = $unique_clicks; - - return $this; - } - - /** - * Gets clickers - * @return int - */ - public function getClickers() - { - return $this->container['clickers']; - } - - /** - * Sets clickers - * @param int $clickers Number of clicks for the campaign - * @return $this - */ - public function setClickers($clickers) - { - $this->container['clickers'] = $clickers; - - return $this; - } - - /** - * Gets complaints - * @return int - */ - public function getComplaints() - { - return $this->container['complaints']; - } - - /** - * Sets complaints - * @param int $complaints Number of complaints (Spam reports) for the campaign - * @return $this - */ - public function setComplaints($complaints) - { - $this->container['complaints'] = $complaints; - - return $this; - } - - /** - * Gets delivered - * @return int - */ - public function getDelivered() - { - return $this->container['delivered']; - } - - /** - * Sets delivered - * @param int $delivered Number of delivered emails for the campaign - * @return $this - */ - public function setDelivered($delivered) - { - $this->container['delivered'] = $delivered; - - return $this; - } - - /** - * Gets sent - * @return int - */ - public function getSent() - { - return $this->container['sent']; - } - - /** - * Sets sent - * @param int $sent Number of sent emails for the campaign - * @return $this - */ - public function setSent($sent) - { - $this->container['sent'] = $sent; - - return $this; - } - - /** - * Gets soft_bounces - * @return int - */ - public function getSoftBounces() - { - return $this->container['soft_bounces']; - } - - /** - * Sets soft_bounces - * @param int $soft_bounces Number of softbounce for the campaign - * @return $this - */ - public function setSoftBounces($soft_bounces) - { - $this->container['soft_bounces'] = $soft_bounces; - - return $this; - } - - /** - * Gets hard_bounces - * @return int - */ - public function getHardBounces() - { - return $this->container['hard_bounces']; - } - - /** - * Sets hard_bounces - * @param int $hard_bounces Number of harbounce for the campaign - * @return $this - */ - public function setHardBounces($hard_bounces) - { - $this->container['hard_bounces'] = $hard_bounces; - - return $this; - } - - /** - * Gets unique_views - * @return int - */ - public function getUniqueViews() - { - return $this->container['unique_views']; - } - - /** - * Sets unique_views - * @param int $unique_views Number of unique openings for the campaign - * @return $this - */ - public function setUniqueViews($unique_views) - { - $this->container['unique_views'] = $unique_views; - - return $this; - } - - /** - * Gets unsubscriptions - * @return int - */ - public function getUnsubscriptions() - { - return $this->container['unsubscriptions']; - } - - /** - * Sets unsubscriptions - * @param int $unsubscriptions Number of unsubscription for the campaign - * @return $this - */ - public function setUnsubscriptions($unsubscriptions) - { - $this->container['unsubscriptions'] = $unsubscriptions; - - return $this; - } - - /** - * Gets viewed - * @return int - */ - public function getViewed() - { - return $this->container['viewed']; - } - - /** - * Sets viewed - * @param int $viewed Number of openings for the campaign - * @return $this - */ - public function setViewed($viewed) - { - $this->container['viewed'] = $viewed; - - return $this; - } - - /** - * Gets deferred - * @return int - */ - public function getDeferred() - { - return $this->container['deferred']; - } - - /** - * Sets deferred - * @param int $deferred Number of deferred emails for the campaign - * @return $this - */ - public function setDeferred($deferred) - { - $this->container['deferred'] = $deferred; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2009.php b/lib/Model/InlineResponse2009.php deleted file mode 100755 index 68c1225d..00000000 --- a/lib/Model/InlineResponse2009.php +++ /dev/null @@ -1,242 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2009Reports[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'reports' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'reports' => 'reports' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'reports' => 'setReports' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'reports' => 'getReports' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['reports'] = isset($data['reports']) ? $data['reports'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets reports - * @return \Swagger\Client\Model\InlineResponse2009Reports[] - */ - public function getReports() - { - return $this->container['reports']; - } - - /** - * Sets reports - * @param \Swagger\Client\Model\InlineResponse2009Reports[] $reports - * @return $this - */ - public function setReports($reports) - { - $this->container['reports'] = $reports; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse200Plan.php b/lib/Model/InlineResponse200Plan.php deleted file mode 100755 index cba56e6a..00000000 --- a/lib/Model/InlineResponse200Plan.php +++ /dev/null @@ -1,392 +0,0 @@ - 'string', - 'credits_type' => 'string', - 'credits' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'type' => null, - 'credits_type' => null, - 'credits' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'type' => 'type', - 'credits_type' => 'creditsType', - 'credits' => 'credits' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'credits_type' => 'setCreditsType', - 'credits' => 'setCredits' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'credits_type' => 'getCreditsType', - 'credits' => 'getCredits' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const TYPE_PAY_AS_YOU_GO = 'payAsYouGo'; - const TYPE_UNLIMITED = 'unlimited'; - const TYPE_FREE = 'free'; - const TYPE_SUBSCRIPTION = 'subscription'; - const TYPE_SMS = 'sms'; - const TYPE_RESELLER = 'reseller'; - const CREDITS_TYPE_USER_LIMIT = 'userLimit'; - const CREDITS_TYPE_SEND_LIMIT = 'sendLimit'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_PAY_AS_YOU_GO, - self::TYPE_UNLIMITED, - self::TYPE_FREE, - self::TYPE_SUBSCRIPTION, - self::TYPE_SMS, - self::TYPE_RESELLER, - ]; - } - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getCreditsTypeAllowableValues() - { - return [ - self::CREDITS_TYPE_USER_LIMIT, - self::CREDITS_TYPE_SEND_LIMIT, - ]; - } - - - /** - * 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['type'] = isset($data['type']) ? $data['type'] : null; - $this->container['credits_type'] = isset($data['credits_type']) ? $data['credits_type'] : null; - $this->container['credits'] = isset($data['credits']) ? $data['credits'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['type'] === null) { - $invalid_properties[] = "'type' can't be null"; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['credits_type'] === null) { - $invalid_properties[] = "'credits_type' can't be null"; - } - $allowed_values = $this->getCreditsTypeAllowableValues(); - if (!in_array($this->container['credits_type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'credits_type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['credits'] === null) { - $invalid_properties[] = "'credits' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['type'] === null) { - return false; - } - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowed_values)) { - return false; - } - if ($this->container['credits_type'] === null) { - return false; - } - $allowed_values = $this->getCreditsTypeAllowableValues(); - if (!in_array($this->container['credits_type'], $allowed_values)) { - return false; - } - if ($this->container['credits'] === null) { - return false; - } - return true; - } - - - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * @param string $type Displays the plan type of the user - * @return $this - */ - public function setType($type) - { - $allowed_values = $this->getTypeAllowableValues(); - if (!in_array($type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets credits_type - * @return string - */ - public function getCreditsType() - { - return $this->container['credits_type']; - } - - /** - * Sets credits_type - * @param string $credits_type This is the type of the credit, \"User Limit\" or \"Send Limit\" are two possible types of credit of a user. \"User Limit\" implies the total number of subscribers you can add to your account, and \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. - * @return $this - */ - public function setCreditsType($credits_type) - { - $allowed_values = $this->getCreditsTypeAllowableValues(); - if (!in_array($credits_type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'credits_type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['credits_type'] = $credits_type; - - return $this; - } - - /** - * Gets credits - * @return int - */ - public function getCredits() - { - return $this->container['credits']; - } - - /** - * Sets credits - * @param int $credits Remaining credits of the user. This can either be \"User Limit\" or \"Send Limit\" depending on the plan. - * @return $this - */ - public function setCredits($credits) - { - $this->container['credits'] = $credits; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse201.php b/lib/Model/InlineResponse201.php deleted file mode 100755 index 6c671a2d..00000000 --- a/lib/Model/InlineResponse201.php +++ /dev/null @@ -1,248 +0,0 @@ - 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the object 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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2011.php b/lib/Model/InlineResponse2011.php deleted file mode 100755 index 23b21792..00000000 --- a/lib/Model/InlineResponse2011.php +++ /dev/null @@ -1,302 +0,0 @@ - 'int', - 'spf_error' => 'bool', - 'dkim_error' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int32', - 'spf_error' => null, - 'dkim_error' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'spf_error' => 'spfError', - 'dkim_error' => 'dkimError' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'spf_error' => 'setSpfError', - 'dkim_error' => 'setDkimError' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'spf_error' => 'getSpfError', - 'dkim_error' => 'getDkimError' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['spf_error'] = isset($data['spf_error']) ? $data['spf_error'] : null; - $this->container['dkim_error'] = isset($data['dkim_error']) ? $data['dkim_error'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['id'] === null) { - $invalid_properties[] = "'id' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['id'] === null) { - return false; - } - return true; - } - - - /** - * Gets id - * @return int - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param int $id ID of the Sender created - * @return $this - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets spf_error - * @return bool - */ - public function getSpfError() - { - return $this->container['spf_error']; - } - - /** - * Sets spf_error - * @param bool $spf_error Status of SPF configuration for the sender (true = SPF not well configured, false = SPF well configured) - * @return $this - */ - public function setSpfError($spf_error) - { - $this->container['spf_error'] = $spf_error; - - return $this; - } - - /** - * Gets dkim_error - * @return bool - */ - public function getDkimError() - { - return $this->container['dkim_error']; - } - - /** - * Sets dkim_error - * @param bool $dkim_error Status of DKIM configuration for the sender (true = DKIM not well configured, false = DKIM well configured) - * @return $this - */ - public function setDkimError($dkim_error) - { - $this->container['dkim_error'] = $dkim_error; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2012.php b/lib/Model/InlineResponse2012.php deleted file mode 100755 index 9273ea2c..00000000 --- a/lib/Model/InlineResponse2012.php +++ /dev/null @@ -1,248 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'message_id' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'message_id' => 'messageId' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'message_id' => 'setMessageId' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'message_id' => 'getMessageId' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['message_id'] = isset($data['message_id']) ? $data['message_id'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['message_id'] === null) { - $invalid_properties[] = "'message_id' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['message_id'] === null) { - return false; - } - return true; - } - - - /** - * Gets message_id - * @return string - */ - public function getMessageId() - { - return $this->container['message_id']; - } - - /** - * Sets message_id - * @param string $message_id Message ID of the template Email sent - * @return $this - */ - public function setMessageId($message_id) - { - $this->container['message_id'] = $message_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2013.php b/lib/Model/InlineResponse2013.php deleted file mode 100755 index 0eced07a..00000000 --- a/lib/Model/InlineResponse2013.php +++ /dev/null @@ -1,248 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'message_id' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'message_id' => 'messageId' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'message_id' => 'setMessageId' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'message_id' => 'getMessageId' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['message_id'] = isset($data['message_id']) ? $data['message_id'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['message_id'] === null) { - $invalid_properties[] = "'message_id' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['message_id'] === null) { - return false; - } - return true; - } - - - /** - * Gets message_id - * @return string - */ - public function getMessageId() - { - return $this->container['message_id']; - } - - /** - * Sets message_id - * @param string $message_id Message ID of the SMTP Email sent - * @return $this - */ - public function setMessageId($message_id) - { - $this->container['message_id'] = $message_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2014.php b/lib/Model/InlineResponse2014.php deleted file mode 100755 index 1249c3f9..00000000 --- a/lib/Model/InlineResponse2014.php +++ /dev/null @@ -1,242 +0,0 @@ - '\Swagger\Client\Model\InlineResponse2014Contacts' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'contacts' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'contacts' => 'contacts' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'contacts' => 'setContacts' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'contacts' => 'getContacts' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['contacts'] = isset($data['contacts']) ? $data['contacts'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets contacts - * @return \Swagger\Client\Model\InlineResponse2014Contacts - */ - public function getContacts() - { - return $this->container['contacts']; - } - - /** - * Sets contacts - * @param \Swagger\Client\Model\InlineResponse2014Contacts $contacts - * @return $this - */ - public function setContacts($contacts) - { - $this->container['contacts'] = $contacts; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse2015.php b/lib/Model/InlineResponse2015.php deleted file mode 100755 index 0e33137c..00000000 --- a/lib/Model/InlineResponse2015.php +++ /dev/null @@ -1,248 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'reference' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'reference' => 'reference' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'reference' => 'setReference' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'reference' => 'getReference' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['reference'] = isset($data['reference']) ? $data['reference'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['reference'] === null) { - $invalid_properties[] = "'reference' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['reference'] === null) { - return false; - } - return true; - } - - - /** - * Gets reference - * @return string - */ - public function getReference() - { - return $this->container['reference']; - } - - /** - * Sets reference - * @param string $reference - * @return $this - */ - public function setReference($reference) - { - $this->container['reference'] = $reference; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse202.php b/lib/Model/InlineResponse202.php deleted file mode 100755 index 89d1c234..00000000 --- a/lib/Model/InlineResponse202.php +++ /dev/null @@ -1,248 +0,0 @@ - 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'process_id' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'process_id' => 'processId' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'process_id' => 'setProcessId' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'process_id' => 'getProcessId' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['process_id'] = isset($data['process_id']) ? $data['process_id'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['process_id'] === null) { - $invalid_properties[] = "'process_id' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['process_id'] === null) { - return false; - } - return true; - } - - - /** - * Gets process_id - * @return int - */ - public function getProcessId() - { - return $this->container['process_id']; - } - - /** - * Sets process_id - * @param int $process_id Id of the process created - * @return $this - */ - public function setProcessId($process_id) - { - $this->container['process_id'] = $process_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse400.php b/lib/Model/InlineResponse400.php deleted file mode 100755 index 86b53728..00000000 --- a/lib/Model/InlineResponse400.php +++ /dev/null @@ -1,362 +0,0 @@ - 'int', - 'message' => 'string', - 'unexisting_emails' => 'string[]', - 'without_list_emails' => 'string[]', - 'black_listed_emails' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => 'int32', - 'message' => null, - 'unexisting_emails' => 'email', - 'without_list_emails' => 'email', - 'black_listed_emails' => 'email' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'code' => 'code', - 'message' => 'message', - 'unexisting_emails' => 'unexistingEmails', - 'without_list_emails' => 'withoutListEmails', - 'black_listed_emails' => 'blackListedEmails' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'unexisting_emails' => 'setUnexistingEmails', - 'without_list_emails' => 'setWithoutListEmails', - 'black_listed_emails' => 'setBlackListedEmails' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'unexisting_emails' => 'getUnexistingEmails', - 'without_list_emails' => 'getWithoutListEmails', - 'black_listed_emails' => 'getBlackListedEmails' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; - $this->container['unexisting_emails'] = isset($data['unexisting_emails']) ? $data['unexisting_emails'] : null; - $this->container['without_list_emails'] = isset($data['without_list_emails']) ? $data['without_list_emails'] : null; - $this->container['black_listed_emails'] = isset($data['black_listed_emails']) ? $data['black_listed_emails'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['code'] === null) { - $invalid_properties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalid_properties[] = "'message' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['code'] === null) { - return false; - } - if ($this->container['message'] === null) { - return false; - } - return true; - } - - - /** - * Gets code - * @return int - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * @param int $code Response code - * @return $this - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets message - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * @param string $message Response message - * @return $this - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets unexisting_emails - * @return string[] - */ - public function getUnexistingEmails() - { - return $this->container['unexisting_emails']; - } - - /** - * Sets unexisting_emails - * @param string[] $unexisting_emails - * @return $this - */ - public function setUnexistingEmails($unexisting_emails) - { - $this->container['unexisting_emails'] = $unexisting_emails; - - return $this; - } - - /** - * Gets without_list_emails - * @return string[] - */ - public function getWithoutListEmails() - { - return $this->container['without_list_emails']; - } - - /** - * Sets without_list_emails - * @param string[] $without_list_emails - * @return $this - */ - public function setWithoutListEmails($without_list_emails) - { - $this->container['without_list_emails'] = $without_list_emails; - - return $this; - } - - /** - * Gets black_listed_emails - * @return string[] - */ - public function getBlackListedEmails() - { - return $this->container['black_listed_emails']; - } - - /** - * Sets black_listed_emails - * @param string[] $black_listed_emails - * @return $this - */ - public function setBlackListedEmails($black_listed_emails) - { - $this->container['black_listed_emails'] = $black_listed_emails; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse4001.php b/lib/Model/InlineResponse4001.php deleted file mode 100755 index e235729b..00000000 --- a/lib/Model/InlineResponse4001.php +++ /dev/null @@ -1,335 +0,0 @@ - 'int', - 'message' => 'string', - 'unexisting_sms' => 'string[]', - 'without_list_sms' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => 'int32', - 'message' => null, - 'unexisting_sms' => 'email', - 'without_list_sms' => 'email' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'code' => 'code', - 'message' => 'message', - 'unexisting_sms' => 'unexistingSms', - 'without_list_sms' => 'withoutListSms' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'unexisting_sms' => 'setUnexistingSms', - 'without_list_sms' => 'setWithoutListSms' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'unexisting_sms' => 'getUnexistingSms', - 'without_list_sms' => 'getWithoutListSms' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; - $this->container['unexisting_sms'] = isset($data['unexisting_sms']) ? $data['unexisting_sms'] : null; - $this->container['without_list_sms'] = isset($data['without_list_sms']) ? $data['without_list_sms'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['code'] === null) { - $invalid_properties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalid_properties[] = "'message' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['code'] === null) { - return false; - } - if ($this->container['message'] === null) { - return false; - } - return true; - } - - - /** - * Gets code - * @return int - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * @param int $code Response code - * @return $this - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets message - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * @param string $message Response message - * @return $this - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets unexisting_sms - * @return string[] - */ - public function getUnexistingSms() - { - return $this->container['unexisting_sms']; - } - - /** - * Sets unexisting_sms - * @param string[] $unexisting_sms - * @return $this - */ - public function setUnexistingSms($unexisting_sms) - { - $this->container['unexisting_sms'] = $unexisting_sms; - - return $this; - } - - /** - * Gets without_list_sms - * @return string[] - */ - public function getWithoutListSms() - { - return $this->container['without_list_sms']; - } - - /** - * Sets without_list_sms - * @param string[] $without_list_sms - * @return $this - */ - public function setWithoutListSms($without_list_sms) - { - $this->container['without_list_sms'] = $without_list_sms; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/InlineResponse403.php b/lib/Model/InlineResponse403.php deleted file mode 100755 index cec36176..00000000 --- a/lib/Model/InlineResponse403.php +++ /dev/null @@ -1,336 +0,0 @@ - 'string', - 'message' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => null, - 'message' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'code' => 'code', - 'message' => 'message' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const CODE_INVALID_PARAMETER = 'invalid_parameter'; - const CODE_MISSING_PARAMETER = 'missing_parameter'; - const CODE_OUT_OF_RANGE = 'out_of_range'; - const CODE_CAMPAIGN_PROCESSING = 'campaign_processing'; - const CODE_CAMPAIGN_SENT = 'campaign_sent'; - const CODE_DOCUMENT_NOT_FOUND = 'document_not_found'; - const CODE_RESELLER_PERMISSION = 'reseller_permission'; - const CODE_NOT_ENOUGH_CREDITS = 'not_enough_credits'; - const CODE_PERMISSION_DENIED = 'permission_denied'; - const CODE_DUPLICATE_PARAMETER = 'duplicate_parameter'; - const CODE_METHOD_NOT_ALLOWED = 'method_not_allowed'; - const CODE_UNAUTHORIZED = 'unauthorized'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getCodeAllowableValues() - { - return [ - self::CODE_INVALID_PARAMETER, - self::CODE_MISSING_PARAMETER, - self::CODE_OUT_OF_RANGE, - self::CODE_CAMPAIGN_PROCESSING, - self::CODE_CAMPAIGN_SENT, - self::CODE_DOCUMENT_NOT_FOUND, - self::CODE_RESELLER_PERMISSION, - self::CODE_NOT_ENOUGH_CREDITS, - self::CODE_PERMISSION_DENIED, - self::CODE_DUPLICATE_PARAMETER, - self::CODE_METHOD_NOT_ALLOWED, - self::CODE_UNAUTHORIZED, - ]; - } - - - /** - * 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['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['message'] = isset($data['message']) ? $data['message'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['code'] === null) { - $invalid_properties[] = "'code' can't be null"; - } - $allowed_values = $this->getCodeAllowableValues(); - if (!in_array($this->container['code'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'code', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - if ($this->container['message'] === null) { - $invalid_properties[] = "'message' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['code'] === null) { - return false; - } - $allowed_values = $this->getCodeAllowableValues(); - if (!in_array($this->container['code'], $allowed_values)) { - return false; - } - if ($this->container['message'] === null) { - return false; - } - return true; - } - - - /** - * Gets code - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * @param string $code Error code displayed in case of a failure - * @return $this - */ - public function setCode($code) - { - $allowed_values = $this->getCodeAllowableValues(); - if (!in_array($code, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'code', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets message - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * @param string $message Readable message associated to the failure - * @return $this - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/IpId1.php b/lib/Model/IpId1.php deleted file mode 100755 index 3aa38960..00000000 --- a/lib/Model/IpId1.php +++ /dev/null @@ -1,242 +0,0 @@ - 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'ip_id' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'ip_id' => 'ipId' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'ip_id' => 'setIpId' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'ip_id' => 'getIpId' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['ip_id'] = isset($data['ip_id']) ? $data['ip_id'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets ip_id - * @return int - */ - public function getIpId() - { - return $this->container['ip_id']; - } - - /** - * Sets ip_id - * @param int $ip_id ID of the IP - * @return $this - */ - public function setIpId($ip_id) - { - $this->container['ip_id'] = $ip_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ManageIp.php b/lib/Model/ManageIp.php old mode 100755 new mode 100644 index a5957d8b..b09d018d --- a/lib/Model/ManageIp.php +++ b/lib/Model/ManageIp.php @@ -54,7 +54,7 @@ class ManageIp implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'ip_id' => 'int' + 'ipId' => 'int' ]; /** @@ -62,7 +62,7 @@ class ManageIp implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'ip_id' => 'int32' + 'ipId' => 'int32' ]; public static function swaggerTypes() @@ -80,7 +80,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'ip_id' => 'ipId' + 'ipId' => 'ipId' ]; @@ -89,7 +89,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'ip_id' => 'setIpId' + 'ipId' => 'setIpId' ]; @@ -98,7 +98,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'ip_id' => 'getIpId' + 'ipId' => 'getIpId' ]; public static function attributeMap() @@ -132,7 +132,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['ip_id'] = isset($data['ip_id']) ? $data['ip_id'] : null; + $this->container['ipId'] = isset($data['ipId']) ? $data['ipId'] : null; } /** @@ -161,22 +161,22 @@ public function valid() /** - * Gets ip_id + * Gets ipId * @return int */ public function getIpId() { - return $this->container['ip_id']; + return $this->container['ipId']; } /** - * Sets ip_id - * @param int $ip_id ID of the IP + * Sets ipId + * @param int $ipId ID of the IP * @return $this */ - public function setIpId($ip_id) + public function setIpId($ipId) { - $this->container['ip_id'] = $ip_id; + $this->container['ipId'] = $ipId; return $this; } diff --git a/lib/Model/Name.php b/lib/Model/Name.php deleted file mode 100755 index 4c5b366c..00000000 --- a/lib/Model/Name.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the folder - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/Name1.php b/lib/Model/Name1.php deleted file mode 100755 index 2ef7a47d..00000000 --- a/lib/Model/Name1.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the folder - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/PostContactInfo.php b/lib/Model/PostContactInfo.php old mode 100755 new mode 100644 index 3397bf29..73d8c15c --- a/lib/Model/PostContactInfo.php +++ b/lib/Model/PostContactInfo.php @@ -54,7 +54,7 @@ class PostContactInfo implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'contacts' => '\Swagger\Client\Model\InlineResponse2014Contacts' + 'contacts' => '\Swagger\Client\Model\PostContactInfoContacts' ]; /** @@ -162,7 +162,7 @@ public function valid() /** * Gets contacts - * @return \Swagger\Client\Model\InlineResponse2014Contacts + * @return \Swagger\Client\Model\PostContactInfoContacts */ public function getContacts() { @@ -171,7 +171,7 @@ public function getContacts() /** * Sets contacts - * @param \Swagger\Client\Model\InlineResponse2014Contacts $contacts + * @param \Swagger\Client\Model\PostContactInfoContacts $contacts * @return $this */ public function setContacts($contacts) diff --git a/lib/Model/InlineResponse2014Contacts.php b/lib/Model/PostContactInfoContacts.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/InlineResponse2014Contacts.php rename to lib/Model/PostContactInfoContacts.php index cce8176c..05377885 --- a/lib/Model/InlineResponse2014Contacts.php +++ b/lib/Model/PostContactInfoContacts.php @@ -1,6 +1,6 @@ 'int', 'message' => 'string', - 'unexisting_emails' => 'string[]', - 'without_list_emails' => 'string[]', - 'black_listed_emails' => 'string[]' + 'unexistingEmails' => 'string[]', + 'withoutListEmails' => 'string[]', + 'blackListedEmails' => 'string[]' ]; /** @@ -68,9 +68,9 @@ class PostSendFailed implements ArrayAccess protected static $swaggerFormats = [ 'code' => 'int32', 'message' => null, - 'unexisting_emails' => 'email', - 'without_list_emails' => 'email', - 'black_listed_emails' => 'email' + 'unexistingEmails' => 'email', + 'withoutListEmails' => 'email', + 'blackListedEmails' => 'email' ]; public static function swaggerTypes() @@ -90,9 +90,9 @@ public static function swaggerFormats() protected static $attributeMap = [ 'code' => 'code', 'message' => 'message', - 'unexisting_emails' => 'unexistingEmails', - 'without_list_emails' => 'withoutListEmails', - 'black_listed_emails' => 'blackListedEmails' + 'unexistingEmails' => 'unexistingEmails', + 'withoutListEmails' => 'withoutListEmails', + 'blackListedEmails' => 'blackListedEmails' ]; @@ -103,9 +103,9 @@ public static function swaggerFormats() protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', - 'unexisting_emails' => 'setUnexistingEmails', - 'without_list_emails' => 'setWithoutListEmails', - 'black_listed_emails' => 'setBlackListedEmails' + 'unexistingEmails' => 'setUnexistingEmails', + 'withoutListEmails' => 'setWithoutListEmails', + 'blackListedEmails' => 'setBlackListedEmails' ]; @@ -116,9 +116,9 @@ public static function swaggerFormats() protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', - 'unexisting_emails' => 'getUnexistingEmails', - 'without_list_emails' => 'getWithoutListEmails', - 'black_listed_emails' => 'getBlackListedEmails' + 'unexistingEmails' => 'getUnexistingEmails', + 'withoutListEmails' => 'getWithoutListEmails', + 'blackListedEmails' => 'getBlackListedEmails' ]; public static function attributeMap() @@ -154,9 +154,9 @@ public function __construct(array $data = null) { $this->container['code'] = isset($data['code']) ? $data['code'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; - $this->container['unexisting_emails'] = isset($data['unexisting_emails']) ? $data['unexisting_emails'] : null; - $this->container['without_list_emails'] = isset($data['without_list_emails']) ? $data['without_list_emails'] : null; - $this->container['black_listed_emails'] = isset($data['black_listed_emails']) ? $data['black_listed_emails'] : null; + $this->container['unexistingEmails'] = isset($data['unexistingEmails']) ? $data['unexistingEmails'] : null; + $this->container['withoutListEmails'] = isset($data['withoutListEmails']) ? $data['withoutListEmails'] : null; + $this->container['blackListedEmails'] = isset($data['blackListedEmails']) ? $data['blackListedEmails'] : null; } /** @@ -239,64 +239,64 @@ public function setMessage($message) } /** - * Gets unexisting_emails + * Gets unexistingEmails * @return string[] */ public function getUnexistingEmails() { - return $this->container['unexisting_emails']; + return $this->container['unexistingEmails']; } /** - * Sets unexisting_emails - * @param string[] $unexisting_emails + * Sets unexistingEmails + * @param string[] $unexistingEmails * @return $this */ - public function setUnexistingEmails($unexisting_emails) + public function setUnexistingEmails($unexistingEmails) { - $this->container['unexisting_emails'] = $unexisting_emails; + $this->container['unexistingEmails'] = $unexistingEmails; return $this; } /** - * Gets without_list_emails + * Gets withoutListEmails * @return string[] */ public function getWithoutListEmails() { - return $this->container['without_list_emails']; + return $this->container['withoutListEmails']; } /** - * Sets without_list_emails - * @param string[] $without_list_emails + * Sets withoutListEmails + * @param string[] $withoutListEmails * @return $this */ - public function setWithoutListEmails($without_list_emails) + public function setWithoutListEmails($withoutListEmails) { - $this->container['without_list_emails'] = $without_list_emails; + $this->container['withoutListEmails'] = $withoutListEmails; return $this; } /** - * Gets black_listed_emails + * Gets blackListedEmails * @return string[] */ public function getBlackListedEmails() { - return $this->container['black_listed_emails']; + return $this->container['blackListedEmails']; } /** - * Sets black_listed_emails - * @param string[] $black_listed_emails + * Sets blackListedEmails + * @param string[] $blackListedEmails * @return $this */ - public function setBlackListedEmails($black_listed_emails) + public function setBlackListedEmails($blackListedEmails) { - $this->container['black_listed_emails'] = $black_listed_emails; + $this->container['blackListedEmails'] = $blackListedEmails; return $this; } diff --git a/lib/Model/PostSendSmsTestFailed.php b/lib/Model/PostSendSmsTestFailed.php old mode 100755 new mode 100644 index ef968cac..8f5713d5 --- a/lib/Model/PostSendSmsTestFailed.php +++ b/lib/Model/PostSendSmsTestFailed.php @@ -56,8 +56,8 @@ class PostSendSmsTestFailed implements ArrayAccess protected static $swaggerTypes = [ 'code' => 'int', 'message' => 'string', - 'unexisting_sms' => 'string[]', - 'without_list_sms' => 'string[]' + 'unexistingSms' => 'string[]', + 'withoutListSms' => 'string[]' ]; /** @@ -67,8 +67,8 @@ class PostSendSmsTestFailed implements ArrayAccess protected static $swaggerFormats = [ 'code' => 'int32', 'message' => null, - 'unexisting_sms' => 'email', - 'without_list_sms' => 'email' + 'unexistingSms' => 'email', + 'withoutListSms' => 'email' ]; public static function swaggerTypes() @@ -88,8 +88,8 @@ public static function swaggerFormats() protected static $attributeMap = [ 'code' => 'code', 'message' => 'message', - 'unexisting_sms' => 'unexistingSms', - 'without_list_sms' => 'withoutListSms' + 'unexistingSms' => 'unexistingSms', + 'withoutListSms' => 'withoutListSms' ]; @@ -100,8 +100,8 @@ public static function swaggerFormats() protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', - 'unexisting_sms' => 'setUnexistingSms', - 'without_list_sms' => 'setWithoutListSms' + 'unexistingSms' => 'setUnexistingSms', + 'withoutListSms' => 'setWithoutListSms' ]; @@ -112,8 +112,8 @@ public static function swaggerFormats() protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', - 'unexisting_sms' => 'getUnexistingSms', - 'without_list_sms' => 'getWithoutListSms' + 'unexistingSms' => 'getUnexistingSms', + 'withoutListSms' => 'getWithoutListSms' ]; public static function attributeMap() @@ -149,8 +149,8 @@ public function __construct(array $data = null) { $this->container['code'] = isset($data['code']) ? $data['code'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; - $this->container['unexisting_sms'] = isset($data['unexisting_sms']) ? $data['unexisting_sms'] : null; - $this->container['without_list_sms'] = isset($data['without_list_sms']) ? $data['without_list_sms'] : null; + $this->container['unexistingSms'] = isset($data['unexistingSms']) ? $data['unexistingSms'] : null; + $this->container['withoutListSms'] = isset($data['withoutListSms']) ? $data['withoutListSms'] : null; } /** @@ -233,43 +233,43 @@ public function setMessage($message) } /** - * Gets unexisting_sms + * Gets unexistingSms * @return string[] */ public function getUnexistingSms() { - return $this->container['unexisting_sms']; + return $this->container['unexistingSms']; } /** - * Sets unexisting_sms - * @param string[] $unexisting_sms + * Sets unexistingSms + * @param string[] $unexistingSms * @return $this */ - public function setUnexistingSms($unexisting_sms) + public function setUnexistingSms($unexistingSms) { - $this->container['unexisting_sms'] = $unexisting_sms; + $this->container['unexistingSms'] = $unexistingSms; return $this; } /** - * Gets without_list_sms + * Gets withoutListSms * @return string[] */ public function getWithoutListSms() { - return $this->container['without_list_sms']; + return $this->container['withoutListSms']; } /** - * Sets without_list_sms - * @param string[] $without_list_sms + * Sets withoutListSms + * @param string[] $withoutListSms * @return $this */ - public function setWithoutListSms($without_list_sms) + public function setWithoutListSms($withoutListSms) { - $this->container['without_list_sms'] = $without_list_sms; + $this->container['withoutListSms'] = $withoutListSms; return $this; } diff --git a/lib/Model/RecipientExport.php b/lib/Model/RecipientExport.php deleted file mode 100755 index 5d3636a7..00000000 --- a/lib/Model/RecipientExport.php +++ /dev/null @@ -1,322 +0,0 @@ - 'string', - 'recipients_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'notify_url' => 'url', - 'recipients_type' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'notify_url' => 'notifyURL', - 'recipients_type' => 'recipientsType' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'notify_url' => 'setNotifyUrl', - 'recipients_type' => 'setRecipientsType' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'notify_url' => 'getNotifyUrl', - 'recipients_type' => 'getRecipientsType' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const RECIPIENTS_TYPE_ALL = 'all'; - const RECIPIENTS_TYPE_NON_CLICKERS = 'nonClickers'; - const RECIPIENTS_TYPE_NON_OPENERS = 'nonOpeners'; - const RECIPIENTS_TYPE_CLICKERS = 'clickers'; - const RECIPIENTS_TYPE_OPENERS = 'openers'; - const RECIPIENTS_TYPE_SOFT_BOUNCES = 'softBounces'; - const RECIPIENTS_TYPE_HARD_BOUNCES = 'hardBounces'; - const RECIPIENTS_TYPE_UNSUBSCRIBED = 'unsubscribed'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getRecipientsTypeAllowableValues() - { - return [ - self::RECIPIENTS_TYPE_ALL, - self::RECIPIENTS_TYPE_NON_CLICKERS, - self::RECIPIENTS_TYPE_NON_OPENERS, - self::RECIPIENTS_TYPE_CLICKERS, - self::RECIPIENTS_TYPE_OPENERS, - self::RECIPIENTS_TYPE_SOFT_BOUNCES, - self::RECIPIENTS_TYPE_HARD_BOUNCES, - self::RECIPIENTS_TYPE_UNSUBSCRIBED, - ]; - } - - - /** - * 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['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null; - $this->container['recipients_type'] = isset($data['recipients_type']) ? $data['recipients_type'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['recipients_type'] === null) { - $invalid_properties[] = "'recipients_type' can't be null"; - } - $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($this->container['recipients_type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'recipients_type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['recipients_type'] === null) { - return false; - } - $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($this->container['recipients_type'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets notify_url - * @return string - */ - public function getNotifyUrl() - { - return $this->container['notify_url']; - } - - /** - * Sets notify_url - * @param string $notify_url Webhook called once the export process is finished - * @return $this - */ - public function setNotifyUrl($notify_url) - { - $this->container['notify_url'] = $notify_url; - - return $this; - } - - /** - * Gets recipients_type - * @return string - */ - public function getRecipientsType() - { - return $this->container['recipients_type']; - } - - /** - * Sets recipients_type - * @param string $recipients_type Type of recipients to export for a campaign - * @return $this - */ - public function setRecipientsType($recipients_type) - { - $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($recipients_type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'recipients_type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['recipients_type'] = $recipients_type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/RecipientExport1.php b/lib/Model/RecipientExport1.php deleted file mode 100755 index 3d4d74d8..00000000 --- a/lib/Model/RecipientExport1.php +++ /dev/null @@ -1,318 +0,0 @@ - 'string', - 'recipients_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'notify_url' => 'url', - 'recipients_type' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'notify_url' => 'notifyURL', - 'recipients_type' => 'recipientsType' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'notify_url' => 'setNotifyUrl', - 'recipients_type' => 'setRecipientsType' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'notify_url' => 'getNotifyUrl', - 'recipients_type' => 'getRecipientsType' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const RECIPIENTS_TYPE_ALL = 'all'; - const RECIPIENTS_TYPE_DELIVERED = 'delivered'; - const RECIPIENTS_TYPE_ANSWERED = 'answered'; - const RECIPIENTS_TYPE_SOFT_BOUNCES = 'softBounces'; - const RECIPIENTS_TYPE_HARD_BOUNCES = 'hardBounces'; - const RECIPIENTS_TYPE_UNSUBSCRIBED = 'unsubscribed'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getRecipientsTypeAllowableValues() - { - return [ - self::RECIPIENTS_TYPE_ALL, - self::RECIPIENTS_TYPE_DELIVERED, - self::RECIPIENTS_TYPE_ANSWERED, - self::RECIPIENTS_TYPE_SOFT_BOUNCES, - self::RECIPIENTS_TYPE_HARD_BOUNCES, - self::RECIPIENTS_TYPE_UNSUBSCRIBED, - ]; - } - - - /** - * 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['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null; - $this->container['recipients_type'] = isset($data['recipients_type']) ? $data['recipients_type'] : 'all'; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['recipients_type'] === null) { - $invalid_properties[] = "'recipients_type' can't be null"; - } - $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($this->container['recipients_type'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'recipients_type', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['recipients_type'] === null) { - return false; - } - $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($this->container['recipients_type'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets notify_url - * @return string - */ - public function getNotifyUrl() - { - return $this->container['notify_url']; - } - - /** - * Sets notify_url - * @param string $notify_url URL that will be called once the export process is finished - * @return $this - */ - public function setNotifyUrl($notify_url) - { - $this->container['notify_url'] = $notify_url; - - return $this; - } - - /** - * Gets recipients_type - * @return string - */ - public function getRecipientsType() - { - return $this->container['recipients_type']; - } - - /** - * Sets recipients_type - * @param string $recipients_type Filter the recipients based on how they interacted with the campaign - * @return $this - */ - public function setRecipientsType($recipients_type) - { - $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($recipients_type, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'recipients_type', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['recipients_type'] = $recipients_type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/RemainingCreditModel.php b/lib/Model/RemainingCreditModel.php old mode 100755 new mode 100644 index 3867d6d9..f80f1842 --- a/lib/Model/RemainingCreditModel.php +++ b/lib/Model/RemainingCreditModel.php @@ -54,8 +54,8 @@ class RemainingCreditModel implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'child' => '\Swagger\Client\Model\InlineResponse2003Child', - 'reseller' => '\Swagger\Client\Model\InlineResponse2003Reseller' + 'child' => '\Swagger\Client\Model\RemainingCreditModelChild', + 'reseller' => '\Swagger\Client\Model\RemainingCreditModelReseller' ]; /** @@ -168,7 +168,7 @@ public function valid() /** * Gets child - * @return \Swagger\Client\Model\InlineResponse2003Child + * @return \Swagger\Client\Model\RemainingCreditModelChild */ public function getChild() { @@ -177,7 +177,7 @@ public function getChild() /** * Sets child - * @param \Swagger\Client\Model\InlineResponse2003Child $child + * @param \Swagger\Client\Model\RemainingCreditModelChild $child * @return $this */ public function setChild($child) @@ -189,7 +189,7 @@ public function setChild($child) /** * Gets reseller - * @return \Swagger\Client\Model\InlineResponse2003Reseller + * @return \Swagger\Client\Model\RemainingCreditModelReseller */ public function getReseller() { @@ -198,7 +198,7 @@ public function getReseller() /** * Sets reseller - * @param \Swagger\Client\Model\InlineResponse2003Reseller $reseller + * @param \Swagger\Client\Model\RemainingCreditModelReseller $reseller * @return $this */ public function setReseller($reseller) diff --git a/lib/Model/InlineResponse2003Child.php b/lib/Model/RemainingCreditModelChild.php old mode 100755 new mode 100644 similarity index 97% rename from lib/Model/InlineResponse2003Child.php rename to lib/Model/RemainingCreditModelChild.php index ef06b519..08396a63 --- a/lib/Model/InlineResponse2003Child.php +++ b/lib/Model/RemainingCreditModelChild.php @@ -1,6 +1,6 @@ 'int', - 'email' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'sms' => 'int32', - 'email' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'sms' => 'sms', - 'email' => 'email' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'sms' => 'setSms', - 'email' => 'setEmail' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'sms' => 'getSms', - 'email' => 'getEmail' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['sms'] = isset($data['sms']) ? $data['sms'] : null; - $this->container['email'] = isset($data['email']) ? $data['email'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets sms - * @return int - */ - public function getSms() - { - return $this->container['sms']; - } - - /** - * Sets sms - * @param int $sms SMS credits to be removed from the child account - * @return $this - */ - public function setSms($sms) - { - $this->container['sms'] = $sms; - - return $this; - } - - /** - * Gets email - * @return int - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param int $email Email credits to be removed from the child account - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/RequestContactExport.php b/lib/Model/RequestContactExport.php old mode 100755 new mode 100644 index 8e31f08e..69019440 --- a/lib/Model/RequestContactExport.php +++ b/lib/Model/RequestContactExport.php @@ -54,9 +54,9 @@ class RequestContactExport implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'export_attributes' => 'string[]', - 'contact_filter' => 'object', - 'notify_url' => 'string' + 'exportAttributes' => 'string[]', + 'contactFilter' => 'object', + 'notifyUrl' => 'string' ]; /** @@ -64,9 +64,9 @@ class RequestContactExport implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'export_attributes' => null, - 'contact_filter' => null, - 'notify_url' => 'url' + 'exportAttributes' => null, + 'contactFilter' => null, + 'notifyUrl' => 'url' ]; public static function swaggerTypes() @@ -84,9 +84,9 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'export_attributes' => 'exportAttributes', - 'contact_filter' => 'contactFilter', - 'notify_url' => 'notifyUrl' + 'exportAttributes' => 'exportAttributes', + 'contactFilter' => 'contactFilter', + 'notifyUrl' => 'notifyUrl' ]; @@ -95,9 +95,9 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'export_attributes' => 'setExportAttributes', - 'contact_filter' => 'setContactFilter', - 'notify_url' => 'setNotifyUrl' + 'exportAttributes' => 'setExportAttributes', + 'contactFilter' => 'setContactFilter', + 'notifyUrl' => 'setNotifyUrl' ]; @@ -106,9 +106,9 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'export_attributes' => 'getExportAttributes', - 'contact_filter' => 'getContactFilter', - 'notify_url' => 'getNotifyUrl' + 'exportAttributes' => 'getExportAttributes', + 'contactFilter' => 'getContactFilter', + 'notifyUrl' => 'getNotifyUrl' ]; public static function attributeMap() @@ -142,9 +142,9 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['export_attributes'] = isset($data['export_attributes']) ? $data['export_attributes'] : null; - $this->container['contact_filter'] = isset($data['contact_filter']) ? $data['contact_filter'] : null; - $this->container['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null; + $this->container['exportAttributes'] = isset($data['exportAttributes']) ? $data['exportAttributes'] : null; + $this->container['contactFilter'] = isset($data['contactFilter']) ? $data['contactFilter'] : null; + $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; } /** @@ -156,8 +156,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['contact_filter'] === null) { - $invalid_properties[] = "'contact_filter' can't be null"; + if ($this->container['contactFilter'] === null) { + $invalid_properties[] = "'contactFilter' can't be null"; } return $invalid_properties; } @@ -171,7 +171,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['contact_filter'] === null) { + if ($this->container['contactFilter'] === null) { return false; } return true; @@ -179,64 +179,64 @@ public function valid() /** - * Gets export_attributes + * Gets exportAttributes * @return string[] */ public function getExportAttributes() { - return $this->container['export_attributes']; + return $this->container['exportAttributes']; } /** - * Sets export_attributes - * @param string[] $export_attributes Name of attributes to export. These attributes must be in your contact database + * Sets exportAttributes + * @param string[] $exportAttributes Name of attributes to export. These attributes must be in your contact database * @return $this */ - public function setExportAttributes($export_attributes) + public function setExportAttributes($exportAttributes) { - $this->container['export_attributes'] = $export_attributes; + $this->container['exportAttributes'] = $exportAttributes; return $this; } /** - * Gets contact_filter + * Gets contactFilter * @return object */ public function getContactFilter() { - return $this->container['contact_filter']; + return $this->container['contactFilter']; } /** - * Sets contact_filter - * @param object $contact_filter Filter to apply to the export + * Sets contactFilter + * @param object $contactFilter Filter to apply to the export * @return $this */ - public function setContactFilter($contact_filter) + public function setContactFilter($contactFilter) { - $this->container['contact_filter'] = $contact_filter; + $this->container['contactFilter'] = $contactFilter; return $this; } /** - * Gets notify_url + * Gets notifyUrl * @return string */ public function getNotifyUrl() { - return $this->container['notify_url']; + return $this->container['notifyUrl']; } /** - * Sets notify_url - * @param string $notify_url Webhook that will be called once the export process is finished + * Sets notifyUrl + * @param string $notifyUrl Webhook that will be called once the export process is finished * @return $this */ - public function setNotifyUrl($notify_url) + public function setNotifyUrl($notifyUrl) { - $this->container['notify_url'] = $notify_url; + $this->container['notifyUrl'] = $notifyUrl; return $this; } diff --git a/lib/Model/RequestContactExport1.php b/lib/Model/RequestContactExport1.php deleted file mode 100755 index 94d17924..00000000 --- a/lib/Model/RequestContactExport1.php +++ /dev/null @@ -1,302 +0,0 @@ - 'string[]', - 'contact_filter' => 'object', - 'notify_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'export_attributes' => null, - 'contact_filter' => null, - 'notify_url' => 'url' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'export_attributes' => 'exportAttributes', - 'contact_filter' => 'contactFilter', - 'notify_url' => 'notifyUrl' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'export_attributes' => 'setExportAttributes', - 'contact_filter' => 'setContactFilter', - 'notify_url' => 'setNotifyUrl' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'export_attributes' => 'getExportAttributes', - 'contact_filter' => 'getContactFilter', - 'notify_url' => 'getNotifyUrl' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['export_attributes'] = isset($data['export_attributes']) ? $data['export_attributes'] : null; - $this->container['contact_filter'] = isset($data['contact_filter']) ? $data['contact_filter'] : null; - $this->container['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['contact_filter'] === null) { - $invalid_properties[] = "'contact_filter' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['contact_filter'] === null) { - return false; - } - return true; - } - - - /** - * Gets export_attributes - * @return string[] - */ - public function getExportAttributes() - { - return $this->container['export_attributes']; - } - - /** - * Sets export_attributes - * @param string[] $export_attributes Name of attributes to export. These attributes must be in your contact database - * @return $this - */ - public function setExportAttributes($export_attributes) - { - $this->container['export_attributes'] = $export_attributes; - - return $this; - } - - /** - * Gets contact_filter - * @return object - */ - public function getContactFilter() - { - return $this->container['contact_filter']; - } - - /** - * Sets contact_filter - * @param object $contact_filter Filter to apply to the export - * @return $this - */ - public function setContactFilter($contact_filter) - { - $this->container['contact_filter'] = $contact_filter; - - return $this; - } - - /** - * Gets notify_url - * @return string - */ - public function getNotifyUrl() - { - return $this->container['notify_url']; - } - - /** - * Sets notify_url - * @param string $notify_url Webhook that will be called once the export process is finished - * @return $this - */ - public function setNotifyUrl($notify_url) - { - $this->container['notify_url'] = $notify_url; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/RequestContactImport.php b/lib/Model/RequestContactImport.php old mode 100755 new mode 100644 index 67cc36e3..4d458ca1 --- a/lib/Model/RequestContactImport.php +++ b/lib/Model/RequestContactImport.php @@ -54,11 +54,11 @@ class RequestContactImport implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'file_url' => 'string', - 'file_body' => 'string', - 'list_ids' => 'int[]', - 'notify_url' => 'string', - 'new_list' => '\Swagger\Client\Model\ContactsimportNewList' + 'fileUrl' => 'string', + 'fileBody' => 'string', + 'listIds' => 'int[]', + 'notifyUrl' => 'string', + 'newList' => '\Swagger\Client\Model\RequestContactImportNewList' ]; /** @@ -66,11 +66,11 @@ class RequestContactImport implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'file_url' => 'url', - 'file_body' => null, - 'list_ids' => 'int32', - 'notify_url' => 'url', - 'new_list' => null + 'fileUrl' => 'url', + 'fileBody' => null, + 'listIds' => 'int32', + 'notifyUrl' => 'url', + 'newList' => null ]; public static function swaggerTypes() @@ -88,11 +88,11 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'file_url' => 'fileUrl', - 'file_body' => 'fileBody', - 'list_ids' => 'listIds', - 'notify_url' => 'notifyUrl', - 'new_list' => 'newList' + 'fileUrl' => 'fileUrl', + 'fileBody' => 'fileBody', + 'listIds' => 'listIds', + 'notifyUrl' => 'notifyUrl', + 'newList' => 'newList' ]; @@ -101,11 +101,11 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'file_url' => 'setFileUrl', - 'file_body' => 'setFileBody', - 'list_ids' => 'setListIds', - 'notify_url' => 'setNotifyUrl', - 'new_list' => 'setNewList' + 'fileUrl' => 'setFileUrl', + 'fileBody' => 'setFileBody', + 'listIds' => 'setListIds', + 'notifyUrl' => 'setNotifyUrl', + 'newList' => 'setNewList' ]; @@ -114,11 +114,11 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'file_url' => 'getFileUrl', - 'file_body' => 'getFileBody', - 'list_ids' => 'getListIds', - 'notify_url' => 'getNotifyUrl', - 'new_list' => 'getNewList' + 'fileUrl' => 'getFileUrl', + 'fileBody' => 'getFileBody', + 'listIds' => 'getListIds', + 'notifyUrl' => 'getNotifyUrl', + 'newList' => 'getNewList' ]; public static function attributeMap() @@ -152,11 +152,11 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['file_url'] = isset($data['file_url']) ? $data['file_url'] : null; - $this->container['file_body'] = isset($data['file_body']) ? $data['file_body'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - $this->container['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null; - $this->container['new_list'] = isset($data['new_list']) ? $data['new_list'] : null; + $this->container['fileUrl'] = isset($data['fileUrl']) ? $data['fileUrl'] : null; + $this->container['fileBody'] = isset($data['fileBody']) ? $data['fileBody'] : null; + $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; + $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; + $this->container['newList'] = isset($data['newList']) ? $data['newList'] : null; } /** @@ -185,106 +185,106 @@ public function valid() /** - * Gets file_url + * Gets fileUrl * @return string */ public function getFileUrl() { - return $this->container['file_url']; + return $this->container['fileUrl']; } /** - * Sets file_url - * @param string $file_url Mandatory if fileBody not defined. URL of the file to be imported (no local file). Possible file types: .txt, .csv + * Sets fileUrl + * @param string $fileUrl Mandatory if fileBody not defined. URL of the file to be imported (no local file). Possible file types: .txt, .csv * @return $this */ - public function setFileUrl($file_url) + public function setFileUrl($fileUrl) { - $this->container['file_url'] = $file_url; + $this->container['fileUrl'] = $fileUrl; return $this; } /** - * Gets file_body + * Gets fileBody * @return string */ public function getFileBody() { - return $this->container['file_body']; + return $this->container['fileBody']; } /** - * Sets file_body - * @param string $file_body Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes + * Sets fileBody + * @param string $fileBody Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes * @return $this */ - public function setFileBody($file_body) + public function setFileBody($fileBody) { - $this->container['file_body'] = $file_body; + $this->container['fileBody'] = $fileBody; return $this; } /** - * Gets list_ids + * Gets listIds * @return int[] */ public function getListIds() { - return $this->container['list_ids']; + return $this->container['listIds']; } /** - * Sets list_ids - * @param int[] $list_ids Manadatory if newList is not defined. Ids of the lists in which to add the contacts + * Sets listIds + * @param int[] $listIds Manadatory if newList is not defined. Ids of the lists in which to add the contacts * @return $this */ - public function setListIds($list_ids) + public function setListIds($listIds) { - $this->container['list_ids'] = $list_ids; + $this->container['listIds'] = $listIds; return $this; } /** - * Gets notify_url + * Gets notifyUrl * @return string */ public function getNotifyUrl() { - return $this->container['notify_url']; + return $this->container['notifyUrl']; } /** - * Sets notify_url - * @param string $notify_url URL that will be called once the export process is finished + * Sets notifyUrl + * @param string $notifyUrl URL that will be called once the export process is finished * @return $this */ - public function setNotifyUrl($notify_url) + public function setNotifyUrl($notifyUrl) { - $this->container['notify_url'] = $notify_url; + $this->container['notifyUrl'] = $notifyUrl; return $this; } /** - * Gets new_list - * @return \Swagger\Client\Model\ContactsimportNewList + * Gets newList + * @return \Swagger\Client\Model\RequestContactImportNewList */ public function getNewList() { - return $this->container['new_list']; + return $this->container['newList']; } /** - * Sets new_list - * @param \Swagger\Client\Model\ContactsimportNewList $new_list + * Sets newList + * @param \Swagger\Client\Model\RequestContactImportNewList $newList * @return $this */ - public function setNewList($new_list) + public function setNewList($newList) { - $this->container['new_list'] = $new_list; + $this->container['newList'] = $newList; return $this; } diff --git a/lib/Model/RequestContactImport1.php b/lib/Model/RequestContactImport1.php deleted file mode 100755 index cffb3960..00000000 --- a/lib/Model/RequestContactImport1.php +++ /dev/null @@ -1,350 +0,0 @@ - 'string', - 'file_body' => 'string', - 'list_ids' => 'int[]', - 'notify_url' => 'string', - 'new_list' => '\Swagger\Client\Model\ContactsimportNewList' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'file_url' => 'url', - 'file_body' => null, - 'list_ids' => 'int32', - 'notify_url' => 'url', - 'new_list' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'file_url' => 'fileUrl', - 'file_body' => 'fileBody', - 'list_ids' => 'listIds', - 'notify_url' => 'notifyUrl', - 'new_list' => 'newList' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'file_url' => 'setFileUrl', - 'file_body' => 'setFileBody', - 'list_ids' => 'setListIds', - 'notify_url' => 'setNotifyUrl', - 'new_list' => 'setNewList' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'file_url' => 'getFileUrl', - 'file_body' => 'getFileBody', - 'list_ids' => 'getListIds', - 'notify_url' => 'getNotifyUrl', - 'new_list' => 'getNewList' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['file_url'] = isset($data['file_url']) ? $data['file_url'] : null; - $this->container['file_body'] = isset($data['file_body']) ? $data['file_body'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - $this->container['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null; - $this->container['new_list'] = isset($data['new_list']) ? $data['new_list'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets file_url - * @return string - */ - public function getFileUrl() - { - return $this->container['file_url']; - } - - /** - * Sets file_url - * @param string $file_url Mandatory if fileBody not defined. URL of the file to be imported (no local file). Possible file types: .txt, .csv - * @return $this - */ - public function setFileUrl($file_url) - { - $this->container['file_url'] = $file_url; - - return $this; - } - - /** - * Gets file_body - * @return string - */ - public function getFileBody() - { - return $this->container['file_body']; - } - - /** - * Sets file_body - * @param string $file_body Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes - * @return $this - */ - public function setFileBody($file_body) - { - $this->container['file_body'] = $file_body; - - return $this; - } - - /** - * Gets list_ids - * @return int[] - */ - public function getListIds() - { - return $this->container['list_ids']; - } - - /** - * Sets list_ids - * @param int[] $list_ids Manadatory if newList is not defined. Ids of the lists in which to add the contacts - * @return $this - */ - public function setListIds($list_ids) - { - $this->container['list_ids'] = $list_ids; - - return $this; - } - - /** - * Gets notify_url - * @return string - */ - public function getNotifyUrl() - { - return $this->container['notify_url']; - } - - /** - * Sets notify_url - * @param string $notify_url URL that will be called once the export process is finished - * @return $this - */ - public function setNotifyUrl($notify_url) - { - $this->container['notify_url'] = $notify_url; - - return $this; - } - - /** - * Gets new_list - * @return \Swagger\Client\Model\ContactsimportNewList - */ - public function getNewList() - { - return $this->container['new_list']; - } - - /** - * Sets new_list - * @param \Swagger\Client\Model\ContactsimportNewList $new_list - * @return $this - */ - public function setNewList($new_list) - { - $this->container['new_list'] = $new_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ContactsimportNewList.php b/lib/Model/RequestContactImportNewList.php old mode 100755 new mode 100644 similarity index 79% rename from lib/Model/ContactsimportNewList.php rename to lib/Model/RequestContactImportNewList.php index c86e433e..59ed19c4 --- a/lib/Model/ContactsimportNewList.php +++ b/lib/Model/RequestContactImportNewList.php @@ -1,6 +1,6 @@ 'string', - 'folder_id' => 'int' + 'listName' => 'string', + 'folderId' => 'int' ]; /** @@ -63,8 +63,8 @@ class ContactsimportNewList implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'list_name' => null, - 'folder_id' => 'int32' + 'listName' => null, + 'folderId' => 'int32' ]; public static function swaggerTypes() @@ -82,8 +82,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'list_name' => 'listName', - 'folder_id' => 'folderId' + 'listName' => 'listName', + 'folderId' => 'folderId' ]; @@ -92,8 +92,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'list_name' => 'setListName', - 'folder_id' => 'setFolderId' + 'listName' => 'setListName', + 'folderId' => 'setFolderId' ]; @@ -102,8 +102,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'list_name' => 'getListName', - 'folder_id' => 'getFolderId' + 'listName' => 'getListName', + 'folderId' => 'getFolderId' ]; public static function attributeMap() @@ -137,8 +137,8 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['list_name'] = isset($data['list_name']) ? $data['list_name'] : null; - $this->container['folder_id'] = isset($data['folder_id']) ? $data['folder_id'] : null; + $this->container['listName'] = isset($data['listName']) ? $data['listName'] : null; + $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; } /** @@ -167,43 +167,43 @@ public function valid() /** - * Gets list_name + * Gets listName * @return string */ public function getListName() { - return $this->container['list_name']; + return $this->container['listName']; } /** - * Sets list_name - * @param string $list_name List with listName will be created first and users will be imported in it (Mandatory if listIds is empty). + * Sets listName + * @param string $listName List with listName will be created first and users will be imported in it (Mandatory if listIds is empty). * @return $this */ - public function setListName($list_name) + public function setListName($listName) { - $this->container['list_name'] = $list_name; + $this->container['listName'] = $listName; return $this; } /** - * Gets folder_id + * Gets folderId * @return int */ public function getFolderId() { - return $this->container['folder_id']; + return $this->container['folderId']; } /** - * Sets folder_id - * @param int $folder_id Folder id will be used with listName to make newly created list’s desired parent (Mandatory if listName is not empty). + * Sets folderId + * @param int $folderId Folder id will be used with listName to make newly created list’s desired parent (Mandatory if listName is not empty). * @return $this */ - public function setFolderId($folder_id) + public function setFolderId($folderId) { - $this->container['folder_id'] = $folder_id; + $this->container['folderId'] = $folderId; return $this; } diff --git a/lib/Model/RequestSMSRecipientExport.php b/lib/Model/RequestSMSRecipientExport.php old mode 100755 new mode 100644 index 65e5fd5d..24322303 --- a/lib/Model/RequestSMSRecipientExport.php +++ b/lib/Model/RequestSMSRecipientExport.php @@ -54,8 +54,8 @@ class RequestSMSRecipientExport implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'notify_url' => 'string', - 'recipients_type' => 'string' + 'notifyURL' => 'string', + 'recipientsType' => 'string' ]; /** @@ -63,8 +63,8 @@ class RequestSMSRecipientExport implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'notify_url' => 'url', - 'recipients_type' => null + 'notifyURL' => 'url', + 'recipientsType' => null ]; public static function swaggerTypes() @@ -82,8 +82,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'notify_url' => 'notifyURL', - 'recipients_type' => 'recipientsType' + 'notifyURL' => 'notifyURL', + 'recipientsType' => 'recipientsType' ]; @@ -92,8 +92,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'notify_url' => 'setNotifyUrl', - 'recipients_type' => 'setRecipientsType' + 'notifyURL' => 'setNotifyURL', + 'recipientsType' => 'setRecipientsType' ]; @@ -102,8 +102,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'notify_url' => 'getNotifyUrl', - 'recipients_type' => 'getRecipientsType' + 'notifyURL' => 'getNotifyURL', + 'recipientsType' => 'getRecipientsType' ]; public static function attributeMap() @@ -159,8 +159,8 @@ public function getRecipientsTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null; - $this->container['recipients_type'] = isset($data['recipients_type']) ? $data['recipients_type'] : 'all'; + $this->container['notifyURL'] = isset($data['notifyURL']) ? $data['notifyURL'] : null; + $this->container['recipientsType'] = isset($data['recipientsType']) ? $data['recipientsType'] : 'all'; } /** @@ -172,13 +172,13 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['recipients_type'] === null) { - $invalid_properties[] = "'recipients_type' can't be null"; + if ($this->container['recipientsType'] === null) { + $invalid_properties[] = "'recipientsType' can't be null"; } $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($this->container['recipients_type'], $allowed_values)) { + if (!in_array($this->container['recipientsType'], $allowed_values)) { $invalid_properties[] = sprintf( - "invalid value for 'recipients_type', must be one of '%s'", + "invalid value for 'recipientsType', must be one of '%s'", implode("', '", $allowed_values) ); } @@ -195,11 +195,11 @@ public function listInvalidProperties() public function valid() { - if ($this->container['recipients_type'] === null) { + if ($this->container['recipientsType'] === null) { return false; } $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($this->container['recipients_type'], $allowed_values)) { + if (!in_array($this->container['recipientsType'], $allowed_values)) { return false; } return true; @@ -207,52 +207,52 @@ public function valid() /** - * Gets notify_url + * Gets notifyURL * @return string */ - public function getNotifyUrl() + public function getNotifyURL() { - return $this->container['notify_url']; + return $this->container['notifyURL']; } /** - * Sets notify_url - * @param string $notify_url URL that will be called once the export process is finished + * Sets notifyURL + * @param string $notifyURL URL that will be called once the export process is finished * @return $this */ - public function setNotifyUrl($notify_url) + public function setNotifyURL($notifyURL) { - $this->container['notify_url'] = $notify_url; + $this->container['notifyURL'] = $notifyURL; return $this; } /** - * Gets recipients_type + * Gets recipientsType * @return string */ public function getRecipientsType() { - return $this->container['recipients_type']; + return $this->container['recipientsType']; } /** - * Sets recipients_type - * @param string $recipients_type Filter the recipients based on how they interacted with the campaign + * Sets recipientsType + * @param string $recipientsType Filter the recipients based on how they interacted with the campaign * @return $this */ - public function setRecipientsType($recipients_type) + public function setRecipientsType($recipientsType) { $allowed_values = $this->getRecipientsTypeAllowableValues(); - if (!in_array($recipients_type, $allowed_values)) { + if (!in_array($recipientsType, $allowed_values)) { throw new \InvalidArgumentException( sprintf( - "Invalid value for 'recipients_type', must be one of '%s'", + "Invalid value for 'recipientsType', must be one of '%s'", implode("', '", $allowed_values) ) ); } - $this->container['recipients_type'] = $recipients_type; + $this->container['recipientsType'] = $recipientsType; return $this; } diff --git a/lib/Model/ResellerChild.php b/lib/Model/ResellerChild.php deleted file mode 100755 index 9e97a27e..00000000 --- a/lib/Model/ResellerChild.php +++ /dev/null @@ -1,380 +0,0 @@ - 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', - 'password' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, - 'password' => 'password' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', - 'password' => 'password' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', - 'password' => 'setPassword' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', - 'password' => 'getPassword' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; - $this->container['password'] = isset($data['password']) ? $data['password'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['email'] === null) { - $invalid_properties[] = "'email' can't be null"; - } - if ($this->container['first_name'] === null) { - $invalid_properties[] = "'first_name' can't be null"; - } - if ($this->container['last_name'] === null) { - $invalid_properties[] = "'last_name' can't be null"; - } - if ($this->container['company_name'] === null) { - $invalid_properties[] = "'company_name' can't be null"; - } - if ($this->container['password'] === null) { - $invalid_properties[] = "'password' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['email'] === null) { - return false; - } - if ($this->container['first_name'] === null) { - return false; - } - if ($this->container['last_name'] === null) { - return false; - } - if ($this->container['company_name'] === null) { - return false; - } - if ($this->container['password'] === null) { - return false; - } - return true; - } - - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email Email address to create the child account - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets first_name - * @return string - */ - public function getFirstName() - { - return $this->container['first_name']; - } - - /** - * Sets first_name - * @param string $first_name First name to use to create the child account - * @return $this - */ - public function setFirstName($first_name) - { - $this->container['first_name'] = $first_name; - - return $this; - } - - /** - * Gets last_name - * @return string - */ - public function getLastName() - { - return $this->container['last_name']; - } - - /** - * Sets last_name - * @param string $last_name Last name to use to create the child account - * @return $this - */ - public function setLastName($last_name) - { - $this->container['last_name'] = $last_name; - - return $this; - } - - /** - * Gets company_name - * @return string - */ - public function getCompanyName() - { - return $this->container['company_name']; - } - - /** - * Sets company_name - * @param string $company_name Company name to use to create the child account - * @return $this - */ - public function setCompanyName($company_name) - { - $this->container['company_name'] = $company_name; - - return $this; - } - - /** - * Gets password - * @return string - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * @param string $password Password for the child account to login - * @return $this - */ - public function setPassword($password) - { - $this->container['password'] = $password; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ResellerChild1.php b/lib/Model/ResellerChild1.php deleted file mode 100755 index c638c489..00000000 --- a/lib/Model/ResellerChild1.php +++ /dev/null @@ -1,377 +0,0 @@ - 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', - 'password' => 'string', - 'ips' => 'int[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, - 'password' => 'password', - 'ips' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', - 'password' => 'password', - 'ips' => 'ips' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', - 'password' => 'setPassword', - 'ips' => 'setIps' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', - 'password' => 'getPassword', - 'ips' => 'getIps' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; - $this->container['password'] = isset($data['password']) ? $data['password'] : null; - $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email New Email address to update the child account - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets first_name - * @return string - */ - public function getFirstName() - { - return $this->container['first_name']; - } - - /** - * Sets first_name - * @param string $first_name New First name to use to update the child account - * @return $this - */ - public function setFirstName($first_name) - { - $this->container['first_name'] = $first_name; - - return $this; - } - - /** - * Gets last_name - * @return string - */ - public function getLastName() - { - return $this->container['last_name']; - } - - /** - * Sets last_name - * @param string $last_name New Last name to use to update the child account - * @return $this - */ - public function setLastName($last_name) - { - $this->container['last_name'] = $last_name; - - return $this; - } - - /** - * Gets company_name - * @return string - */ - public function getCompanyName() - { - return $this->container['company_name']; - } - - /** - * Sets company_name - * @param string $company_name New Company name to use to update the child account - * @return $this - */ - public function setCompanyName($company_name) - { - $this->container['company_name'] = $company_name; - - return $this; - } - - /** - * Gets password - * @return string - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * @param string $password New password for the child account to login - * @return $this - */ - public function setPassword($password) - { - $this->container['password'] = $password; - - return $this; - } - - /** - * Gets ips - * @return int[] - */ - public function getIps() - { - return $this->container['ips']; - } - - /** - * Sets ips - * @param int[] $ips - * @return $this - */ - public function setIps($ips) - { - $this->container['ips'] = $ips; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SendEmail.php b/lib/Model/SendEmail.php old mode 100755 new mode 100644 index 2f5f8648..ab9c0c43 --- a/lib/Model/SendEmail.php +++ b/lib/Model/SendEmail.php @@ -54,12 +54,12 @@ class SendEmail implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'email_to' => 'string[]', - 'email_bcc' => 'string[]', - 'email_cc' => 'string[]', - 'reply_to' => 'string', - 'attachment_url' => 'string', - 'attachment' => '\Swagger\Client\Model\SmtptemplatestemplateIdsendAttachment[]', + 'emailTo' => 'string[]', + 'emailBcc' => 'string[]', + 'emailCc' => 'string[]', + 'replyTo' => 'string', + 'attachmentUrl' => 'string', + 'attachment' => '\Swagger\Client\Model\SendEmailAttachment[]', 'headers' => 'map[string,string]', 'attributes' => 'map[string,string]' ]; @@ -69,11 +69,11 @@ class SendEmail implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'email_to' => 'email', - 'email_bcc' => 'email', - 'email_cc' => 'email', - 'reply_to' => 'email', - 'attachment_url' => 'url', + 'emailTo' => 'email', + 'emailBcc' => 'email', + 'emailCc' => 'email', + 'replyTo' => 'email', + 'attachmentUrl' => 'url', 'attachment' => null, 'headers' => null, 'attributes' => null @@ -94,11 +94,11 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'email_to' => 'emailTo', - 'email_bcc' => 'emailBcc', - 'email_cc' => 'emailCc', - 'reply_to' => 'replyTo', - 'attachment_url' => 'attachmentUrl', + 'emailTo' => 'emailTo', + 'emailBcc' => 'emailBcc', + 'emailCc' => 'emailCc', + 'replyTo' => 'replyTo', + 'attachmentUrl' => 'attachmentUrl', 'attachment' => 'attachment', 'headers' => 'headers', 'attributes' => 'attributes' @@ -110,11 +110,11 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'email_to' => 'setEmailTo', - 'email_bcc' => 'setEmailBcc', - 'email_cc' => 'setEmailCc', - 'reply_to' => 'setReplyTo', - 'attachment_url' => 'setAttachmentUrl', + 'emailTo' => 'setEmailTo', + 'emailBcc' => 'setEmailBcc', + 'emailCc' => 'setEmailCc', + 'replyTo' => 'setReplyTo', + 'attachmentUrl' => 'setAttachmentUrl', 'attachment' => 'setAttachment', 'headers' => 'setHeaders', 'attributes' => 'setAttributes' @@ -126,11 +126,11 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'email_to' => 'getEmailTo', - 'email_bcc' => 'getEmailBcc', - 'email_cc' => 'getEmailCc', - 'reply_to' => 'getReplyTo', - 'attachment_url' => 'getAttachmentUrl', + 'emailTo' => 'getEmailTo', + 'emailBcc' => 'getEmailBcc', + 'emailCc' => 'getEmailCc', + 'replyTo' => 'getReplyTo', + 'attachmentUrl' => 'getAttachmentUrl', 'attachment' => 'getAttachment', 'headers' => 'getHeaders', 'attributes' => 'getAttributes' @@ -167,11 +167,11 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['email_to'] = isset($data['email_to']) ? $data['email_to'] : null; - $this->container['email_bcc'] = isset($data['email_bcc']) ? $data['email_bcc'] : null; - $this->container['email_cc'] = isset($data['email_cc']) ? $data['email_cc'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; + $this->container['emailTo'] = isset($data['emailTo']) ? $data['emailTo'] : null; + $this->container['emailBcc'] = isset($data['emailBcc']) ? $data['emailBcc'] : null; + $this->container['emailCc'] = isset($data['emailCc']) ? $data['emailCc'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; + $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; $this->container['attachment'] = isset($data['attachment']) ? $data['attachment'] : null; $this->container['headers'] = isset($data['headers']) ? $data['headers'] : null; $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; @@ -186,8 +186,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['email_to'] === null) { - $invalid_properties[] = "'email_to' can't be null"; + if ($this->container['emailTo'] === null) { + $invalid_properties[] = "'emailTo' can't be null"; } return $invalid_properties; } @@ -201,7 +201,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['email_to'] === null) { + if ($this->container['emailTo'] === null) { return false; } return true; @@ -209,113 +209,113 @@ public function valid() /** - * Gets email_to + * Gets emailTo * @return string[] */ public function getEmailTo() { - return $this->container['email_to']; + return $this->container['emailTo']; } /** - * Sets email_to - * @param string[] $email_to Email addresses of the recipients + * Sets emailTo + * @param string[] $emailTo Email addresses of the recipients * @return $this */ - public function setEmailTo($email_to) + public function setEmailTo($emailTo) { - $this->container['email_to'] = $email_to; + $this->container['emailTo'] = $emailTo; return $this; } /** - * Gets email_bcc + * Gets emailBcc * @return string[] */ public function getEmailBcc() { - return $this->container['email_bcc']; + return $this->container['emailBcc']; } /** - * Sets email_bcc - * @param string[] $email_bcc Email addresses of the recipients in bcc + * Sets emailBcc + * @param string[] $emailBcc Email addresses of the recipients in bcc * @return $this */ - public function setEmailBcc($email_bcc) + public function setEmailBcc($emailBcc) { - $this->container['email_bcc'] = $email_bcc; + $this->container['emailBcc'] = $emailBcc; return $this; } /** - * Gets email_cc + * Gets emailCc * @return string[] */ public function getEmailCc() { - return $this->container['email_cc']; + return $this->container['emailCc']; } /** - * Sets email_cc - * @param string[] $email_cc Email addresses of the recipients in cc + * Sets emailCc + * @param string[] $emailCc Email addresses of the recipients in cc * @return $this */ - public function setEmailCc($email_cc) + public function setEmailCc($emailCc) { - $this->container['email_cc'] = $email_cc; + $this->container['emailCc'] = $emailCc; return $this; } /** - * Gets reply_to + * Gets replyTo * @return string */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param string $reply_to Email on which campaign recipients will be able to reply to + * Sets replyTo + * @param string $replyTo Email on which campaign recipients will be able to reply to * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** - * Gets attachment_url + * Gets attachmentUrl * @return string */ public function getAttachmentUrl() { - return $this->container['attachment_url']; + return $this->container['attachmentUrl']; } /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment (no local file). Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez + * Sets attachmentUrl + * @param string $attachmentUrl Absolute url of the attachment (no local file). Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez * @return $this */ - public function setAttachmentUrl($attachment_url) + public function setAttachmentUrl($attachmentUrl) { - $this->container['attachment_url'] = $attachment_url; + $this->container['attachmentUrl'] = $attachmentUrl; return $this; } /** * Gets attachment - * @return \Swagger\Client\Model\SmtptemplatestemplateIdsendAttachment[] + * @return \Swagger\Client\Model\SendEmailAttachment[] */ public function getAttachment() { @@ -324,7 +324,7 @@ public function getAttachment() /** * Sets attachment - * @param \Swagger\Client\Model\SmtptemplatestemplateIdsendAttachment[] $attachment Pass the base64 content of the attachment. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez + * @param \Swagger\Client\Model\SendEmailAttachment[] $attachment Pass the base64 content of the attachment. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez * @return $this */ public function setAttachment($attachment) diff --git a/lib/Model/SendEmail1.php b/lib/Model/SendEmail1.php deleted file mode 100755 index 0e6271b2..00000000 --- a/lib/Model/SendEmail1.php +++ /dev/null @@ -1,437 +0,0 @@ - 'string[]', - 'email_bcc' => 'string[]', - 'email_cc' => 'string[]', - 'reply_to' => 'string', - 'attachment_url' => 'string', - 'attachment' => '\Swagger\Client\Model\SmtptemplatestemplateIdsendAttachment[]', - 'headers' => 'map[string,string]', - 'attributes' => 'map[string,string]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email_to' => 'email', - 'email_bcc' => 'email', - 'email_cc' => 'email', - 'reply_to' => 'email', - 'attachment_url' => 'url', - 'attachment' => null, - 'headers' => null, - 'attributes' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email_to' => 'emailTo', - 'email_bcc' => 'emailBcc', - 'email_cc' => 'emailCc', - 'reply_to' => 'replyTo', - 'attachment_url' => 'attachmentUrl', - 'attachment' => 'attachment', - 'headers' => 'headers', - 'attributes' => 'attributes' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email_to' => 'setEmailTo', - 'email_bcc' => 'setEmailBcc', - 'email_cc' => 'setEmailCc', - 'reply_to' => 'setReplyTo', - 'attachment_url' => 'setAttachmentUrl', - 'attachment' => 'setAttachment', - 'headers' => 'setHeaders', - 'attributes' => 'setAttributes' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email_to' => 'getEmailTo', - 'email_bcc' => 'getEmailBcc', - 'email_cc' => 'getEmailCc', - 'reply_to' => 'getReplyTo', - 'attachment_url' => 'getAttachmentUrl', - 'attachment' => 'getAttachment', - 'headers' => 'getHeaders', - 'attributes' => 'getAttributes' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email_to'] = isset($data['email_to']) ? $data['email_to'] : null; - $this->container['email_bcc'] = isset($data['email_bcc']) ? $data['email_bcc'] : null; - $this->container['email_cc'] = isset($data['email_cc']) ? $data['email_cc'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['attachment'] = isset($data['attachment']) ? $data['attachment'] : null; - $this->container['headers'] = isset($data['headers']) ? $data['headers'] : 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() - { - $invalid_properties = []; - - if ($this->container['email_to'] === null) { - $invalid_properties[] = "'email_to' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['email_to'] === null) { - return false; - } - return true; - } - - - /** - * Gets email_to - * @return string[] - */ - public function getEmailTo() - { - return $this->container['email_to']; - } - - /** - * Sets email_to - * @param string[] $email_to Email addresses of the recipients - * @return $this - */ - public function setEmailTo($email_to) - { - $this->container['email_to'] = $email_to; - - return $this; - } - - /** - * Gets email_bcc - * @return string[] - */ - public function getEmailBcc() - { - return $this->container['email_bcc']; - } - - /** - * Sets email_bcc - * @param string[] $email_bcc Email addresses of the recipients in bcc - * @return $this - */ - public function setEmailBcc($email_bcc) - { - $this->container['email_bcc'] = $email_bcc; - - return $this; - } - - /** - * Gets email_cc - * @return string[] - */ - public function getEmailCc() - { - return $this->container['email_cc']; - } - - /** - * Sets email_cc - * @param string[] $email_cc Email addresses of the recipients in cc - * @return $this - */ - public function setEmailCc($email_cc) - { - $this->container['email_cc'] = $email_cc; - - return $this; - } - - /** - * Gets reply_to - * @return string - */ - public function getReplyTo() - { - return $this->container['reply_to']; - } - - /** - * Sets reply_to - * @param string $reply_to Email on which campaign recipients will be able to reply to - * @return $this - */ - public function setReplyTo($reply_to) - { - $this->container['reply_to'] = $reply_to; - - return $this; - } - - /** - * Gets attachment_url - * @return string - */ - public function getAttachmentUrl() - { - return $this->container['attachment_url']; - } - - /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment (no local file). Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez - * @return $this - */ - public function setAttachmentUrl($attachment_url) - { - $this->container['attachment_url'] = $attachment_url; - - return $this; - } - - /** - * Gets attachment - * @return \Swagger\Client\Model\SmtptemplatestemplateIdsendAttachment[] - */ - public function getAttachment() - { - return $this->container['attachment']; - } - - /** - * Sets attachment - * @param \Swagger\Client\Model\SmtptemplatestemplateIdsendAttachment[] $attachment Pass the base64 content of the attachment. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez - * @return $this - */ - public function setAttachment($attachment) - { - $this->container['attachment'] = $attachment; - - return $this; - } - - /** - * Gets headers - * @return map[string,string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * @param map[string,string] $headers - * @return $this - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - - /** - * Gets attributes - * @return map[string,string] - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * @param map[string,string] $attributes - * @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 - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SmtptemplatestemplateIdsendAttachment.php b/lib/Model/SendEmailAttachment.php old mode 100755 new mode 100644 similarity index 94% rename from lib/Model/SmtptemplatestemplateIdsendAttachment.php rename to lib/Model/SendEmailAttachment.php index 85097c09..5e9a76e4 --- a/lib/Model/SmtptemplatestemplateIdsendAttachment.php +++ b/lib/Model/SendEmailAttachment.php @@ -1,6 +1,6 @@ container['content'] = $content; diff --git a/lib/Model/SendReport.php b/lib/Model/SendReport.php old mode 100755 new mode 100644 index 9062f904..d2d50f44 --- a/lib/Model/SendReport.php +++ b/lib/Model/SendReport.php @@ -55,7 +55,7 @@ class SendReport implements ArrayAccess */ protected static $swaggerTypes = [ 'language' => 'string', - 'email' => '\Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail' + 'email' => '\Swagger\Client\Model\SendReportEmail' ]; /** @@ -232,7 +232,7 @@ public function setLanguage($language) /** * Gets email - * @return \Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail + * @return \Swagger\Client\Model\SendReportEmail */ public function getEmail() { @@ -241,7 +241,7 @@ public function getEmail() /** * Sets email - * @param \Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail $email + * @param \Swagger\Client\Model\SendReportEmail $email * @return $this */ public function setEmail($email) diff --git a/lib/Model/SendReport1.php b/lib/Model/SendReport1.php deleted file mode 100755 index ba826f83..00000000 --- a/lib/Model/SendReport1.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'email' => '\Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'language' => null, - 'email' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'language' => 'language', - 'email' => 'email' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'language' => 'setLanguage', - 'email' => 'setEmail' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'language' => 'getLanguage', - 'email' => 'getEmail' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const LANGUAGE_FR = 'fr'; - const LANGUAGE_ES = 'es'; - const LANGUAGE_PT = 'pt'; - const LANGUAGE_IT = 'it'; - const LANGUAGE_DE = 'de'; - const LANGUAGE_EN = 'en'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getLanguageAllowableValues() - { - return [ - self::LANGUAGE_FR, - self::LANGUAGE_ES, - self::LANGUAGE_PT, - self::LANGUAGE_IT, - self::LANGUAGE_DE, - self::LANGUAGE_EN, - ]; - } - - - /** - * 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['language'] = isset($data['language']) ? $data['language'] : 'fr'; - $this->container['email'] = isset($data['email']) ? $data['email'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - $allowed_values = $this->getLanguageAllowableValues(); - if (!in_array($this->container['language'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'language', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - $allowed_values = $this->getLanguageAllowableValues(); - if (!in_array($this->container['language'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets language - * @return string - */ - public function getLanguage() - { - return $this->container['language']; - } - - /** - * Sets language - * @param string $language Language of email content for campaign report sending. - * @return $this - */ - public function setLanguage($language) - { - $allowed_values = $this->getLanguageAllowableValues(); - if (!is_null($language) && !in_array($language, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'language', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['language'] = $language; - - return $this; - } - - /** - * Gets email - * @return \Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param \Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail $email - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SendReport2.php b/lib/Model/SendReport2.php deleted file mode 100755 index 84e7649e..00000000 --- a/lib/Model/SendReport2.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'email' => '\Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'language' => null, - 'email' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'language' => 'language', - 'email' => 'email' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'language' => 'setLanguage', - 'email' => 'setEmail' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'language' => 'getLanguage', - 'email' => 'getEmail' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const LANGUAGE_FR = 'fr'; - const LANGUAGE_ES = 'es'; - const LANGUAGE_PT = 'pt'; - const LANGUAGE_IT = 'it'; - const LANGUAGE_DE = 'de'; - const LANGUAGE_EN = 'en'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getLanguageAllowableValues() - { - return [ - self::LANGUAGE_FR, - self::LANGUAGE_ES, - self::LANGUAGE_PT, - self::LANGUAGE_IT, - self::LANGUAGE_DE, - self::LANGUAGE_EN, - ]; - } - - - /** - * 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['language'] = isset($data['language']) ? $data['language'] : 'fr'; - $this->container['email'] = isset($data['email']) ? $data['email'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - $allowed_values = $this->getLanguageAllowableValues(); - if (!in_array($this->container['language'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'language', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - $allowed_values = $this->getLanguageAllowableValues(); - if (!in_array($this->container['language'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets language - * @return string - */ - public function getLanguage() - { - return $this->container['language']; - } - - /** - * Sets language - * @param string $language Language of email content for campaign report sending. - * @return $this - */ - public function setLanguage($language) - { - $allowed_values = $this->getLanguageAllowableValues(); - if (!is_null($language) && !in_array($language, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'language', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['language'] = $language; - - return $this; - } - - /** - * Gets email - * @return \Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param \Swagger\Client\Model\EmailCampaignscampaignIdsendReportEmail $email - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/EmailCampaignscampaignIdsendReportEmail.php b/lib/Model/SendReportEmail.php old mode 100755 new mode 100644 similarity index 88% rename from lib/Model/EmailCampaignscampaignIdsendReportEmail.php rename to lib/Model/SendReportEmail.php index 76a19114..495165a5 --- a/lib/Model/EmailCampaignscampaignIdsendReportEmail.php +++ b/lib/Model/SendReportEmail.php @@ -1,6 +1,6 @@ 'string', 'to' => 'string[]', - 'content_type' => 'string', + 'contentType' => 'string', 'bcc' => 'string[]', 'cc' => 'string[]', 'body' => 'string' @@ -69,7 +69,7 @@ class EmailCampaignscampaignIdsendReportEmail implements ArrayAccess protected static $swaggerFormats = [ 'subject' => null, 'to' => 'email', - 'content_type' => null, + 'contentType' => null, 'bcc' => 'email', 'cc' => 'email', 'body' => null @@ -92,7 +92,7 @@ public static function swaggerFormats() protected static $attributeMap = [ 'subject' => 'subject', 'to' => 'to', - 'content_type' => 'contentType', + 'contentType' => 'contentType', 'bcc' => 'bcc', 'cc' => 'cc', 'body' => 'body' @@ -106,7 +106,7 @@ public static function swaggerFormats() protected static $setters = [ 'subject' => 'setSubject', 'to' => 'setTo', - 'content_type' => 'setContentType', + 'contentType' => 'setContentType', 'bcc' => 'setBcc', 'cc' => 'setCc', 'body' => 'setBody' @@ -120,7 +120,7 @@ public static function swaggerFormats() protected static $getters = [ 'subject' => 'getSubject', 'to' => 'getTo', - 'content_type' => 'getContentType', + 'contentType' => 'getContentType', 'bcc' => 'getBcc', 'cc' => 'getCc', 'body' => 'getBody' @@ -173,7 +173,7 @@ public function __construct(array $data = null) { $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; $this->container['to'] = isset($data['to']) ? $data['to'] : null; - $this->container['content_type'] = isset($data['content_type']) ? $data['content_type'] : null; + $this->container['contentType'] = isset($data['contentType']) ? $data['contentType'] : null; $this->container['bcc'] = isset($data['bcc']) ? $data['bcc'] : null; $this->container['cc'] = isset($data['cc']) ? $data['cc'] : null; $this->container['body'] = isset($data['body']) ? $data['body'] : null; @@ -189,9 +189,9 @@ public function listInvalidProperties() $invalid_properties = []; $allowed_values = $this->getContentTypeAllowableValues(); - if (!in_array($this->container['content_type'], $allowed_values)) { + if (!in_array($this->container['contentType'], $allowed_values)) { $invalid_properties[] = sprintf( - "invalid value for 'content_type', must be one of '%s'", + "invalid value for 'contentType', must be one of '%s'", implode("', '", $allowed_values) ); } @@ -209,7 +209,7 @@ public function valid() { $allowed_values = $this->getContentTypeAllowableValues(); - if (!in_array($this->container['content_type'], $allowed_values)) { + if (!in_array($this->container['contentType'], $allowed_values)) { return false; } return true; @@ -259,31 +259,31 @@ public function setTo($to) } /** - * Gets content_type + * Gets contentType * @return string */ public function getContentType() { - return $this->container['content_type']; + return $this->container['contentType']; } /** - * Sets content_type - * @param string $content_type Type of the message body + * Sets contentType + * @param string $contentType Type of the message body * @return $this */ - public function setContentType($content_type) + public function setContentType($contentType) { $allowed_values = $this->getContentTypeAllowableValues(); - if (!is_null($content_type) && !in_array($content_type, $allowed_values)) { + if (!is_null($contentType) && !in_array($contentType, $allowed_values)) { throw new \InvalidArgumentException( sprintf( - "Invalid value for 'content_type', must be one of '%s'", + "Invalid value for 'contentType', must be one of '%s'", implode("', '", $allowed_values) ) ); } - $this->container['content_type'] = $content_type; + $this->container['contentType'] = $contentType; return $this; } diff --git a/lib/Model/SendSmtpEmail.php b/lib/Model/SendSmtpEmail.php old mode 100755 new mode 100644 index 684592e5..cb1fd202 --- a/lib/Model/SendSmtpEmail.php +++ b/lib/Model/SendSmtpEmail.php @@ -54,15 +54,15 @@ class SendSmtpEmail implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'sender' => '\Swagger\Client\Model\SmtpemailSender', - 'to' => '\Swagger\Client\Model\SmtpemailTo[]', - 'bcc' => '\Swagger\Client\Model\SmtpemailBcc[]', - 'cc' => '\Swagger\Client\Model\SmtpemailCc[]', - 'html_content' => 'string', - 'text_content' => 'string', + 'sender' => '\Swagger\Client\Model\SendSmtpEmailSender', + 'to' => '\Swagger\Client\Model\SendSmtpEmailTo[]', + 'bcc' => '\Swagger\Client\Model\SendSmtpEmailBcc[]', + 'cc' => '\Swagger\Client\Model\SendSmtpEmailCc[]', + 'htmlContent' => 'string', + 'textContent' => 'string', 'subject' => 'string', - 'reply_to' => '\Swagger\Client\Model\SmtpemailReplyTo', - 'attachment' => '\Swagger\Client\Model\SmtpemailAttachment[]', + 'replyTo' => '\Swagger\Client\Model\SendSmtpEmailReplyTo', + 'attachment' => '\Swagger\Client\Model\SendSmtpEmailAttachment[]', 'headers' => 'map[string,string]' ]; @@ -75,10 +75,10 @@ class SendSmtpEmail implements ArrayAccess 'to' => null, 'bcc' => null, 'cc' => null, - 'html_content' => null, - 'text_content' => null, + 'htmlContent' => null, + 'textContent' => null, 'subject' => null, - 'reply_to' => null, + 'replyTo' => null, 'attachment' => null, 'headers' => null ]; @@ -102,10 +102,10 @@ public static function swaggerFormats() 'to' => 'to', 'bcc' => 'bcc', 'cc' => 'cc', - 'html_content' => 'htmlContent', - 'text_content' => 'textContent', + 'htmlContent' => 'htmlContent', + 'textContent' => 'textContent', 'subject' => 'subject', - 'reply_to' => 'replyTo', + 'replyTo' => 'replyTo', 'attachment' => 'attachment', 'headers' => 'headers' ]; @@ -120,10 +120,10 @@ public static function swaggerFormats() 'to' => 'setTo', 'bcc' => 'setBcc', 'cc' => 'setCc', - 'html_content' => 'setHtmlContent', - 'text_content' => 'setTextContent', + 'htmlContent' => 'setHtmlContent', + 'textContent' => 'setTextContent', 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', + 'replyTo' => 'setReplyTo', 'attachment' => 'setAttachment', 'headers' => 'setHeaders' ]; @@ -138,10 +138,10 @@ public static function swaggerFormats() 'to' => 'getTo', 'bcc' => 'getBcc', 'cc' => 'getCc', - 'html_content' => 'getHtmlContent', - 'text_content' => 'getTextContent', + 'htmlContent' => 'getHtmlContent', + 'textContent' => 'getTextContent', 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', + 'replyTo' => 'getReplyTo', 'attachment' => 'getAttachment', 'headers' => 'getHeaders' ]; @@ -181,10 +181,10 @@ public function __construct(array $data = null) $this->container['to'] = isset($data['to']) ? $data['to'] : null; $this->container['bcc'] = isset($data['bcc']) ? $data['bcc'] : null; $this->container['cc'] = isset($data['cc']) ? $data['cc'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['text_content'] = isset($data['text_content']) ? $data['text_content'] : null; + $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; + $this->container['textContent'] = isset($data['textContent']) ? $data['textContent'] : null; $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; $this->container['attachment'] = isset($data['attachment']) ? $data['attachment'] : null; $this->container['headers'] = isset($data['headers']) ? $data['headers'] : null; } @@ -201,8 +201,8 @@ public function listInvalidProperties() if ($this->container['to'] === null) { $invalid_properties[] = "'to' can't be null"; } - if ($this->container['html_content'] === null) { - $invalid_properties[] = "'html_content' can't be null"; + if ($this->container['htmlContent'] === null) { + $invalid_properties[] = "'htmlContent' can't be null"; } if ($this->container['subject'] === null) { $invalid_properties[] = "'subject' can't be null"; @@ -222,7 +222,7 @@ public function valid() if ($this->container['to'] === null) { return false; } - if ($this->container['html_content'] === null) { + if ($this->container['htmlContent'] === null) { return false; } if ($this->container['subject'] === null) { @@ -234,7 +234,7 @@ public function valid() /** * Gets sender - * @return \Swagger\Client\Model\SmtpemailSender + * @return \Swagger\Client\Model\SendSmtpEmailSender */ public function getSender() { @@ -243,7 +243,7 @@ public function getSender() /** * Sets sender - * @param \Swagger\Client\Model\SmtpemailSender $sender + * @param \Swagger\Client\Model\SendSmtpEmailSender $sender * @return $this */ public function setSender($sender) @@ -255,7 +255,7 @@ public function setSender($sender) /** * Gets to - * @return \Swagger\Client\Model\SmtpemailTo[] + * @return \Swagger\Client\Model\SendSmtpEmailTo[] */ public function getTo() { @@ -264,7 +264,7 @@ public function getTo() /** * Sets to - * @param \Swagger\Client\Model\SmtpemailTo[] $to Email addresses and names of the recipients + * @param \Swagger\Client\Model\SendSmtpEmailTo[] $to Email addresses and names of the recipients * @return $this */ public function setTo($to) @@ -276,7 +276,7 @@ public function setTo($to) /** * Gets bcc - * @return \Swagger\Client\Model\SmtpemailBcc[] + * @return \Swagger\Client\Model\SendSmtpEmailBcc[] */ public function getBcc() { @@ -285,7 +285,7 @@ public function getBcc() /** * Sets bcc - * @param \Swagger\Client\Model\SmtpemailBcc[] $bcc Email addresses and names of the recipients in bcc + * @param \Swagger\Client\Model\SendSmtpEmailBcc[] $bcc Email addresses and names of the recipients in bcc * @return $this */ public function setBcc($bcc) @@ -297,7 +297,7 @@ public function setBcc($bcc) /** * Gets cc - * @return \Swagger\Client\Model\SmtpemailCc[] + * @return \Swagger\Client\Model\SendSmtpEmailCc[] */ public function getCc() { @@ -306,7 +306,7 @@ public function getCc() /** * Sets cc - * @param \Swagger\Client\Model\SmtpemailCc[] $cc Email addresses and names of the recipients in cc + * @param \Swagger\Client\Model\SendSmtpEmailCc[] $cc Email addresses and names of the recipients in cc * @return $this */ public function setCc($cc) @@ -317,43 +317,43 @@ public function setCc($cc) } /** - * Gets html_content + * Gets htmlContent * @return string */ public function getHtmlContent() { - return $this->container['html_content']; + return $this->container['htmlContent']; } /** - * Sets html_content - * @param string $html_content HTML body of the message + * Sets htmlContent + * @param string $htmlContent HTML body of the message * @return $this */ - public function setHtmlContent($html_content) + public function setHtmlContent($htmlContent) { - $this->container['html_content'] = $html_content; + $this->container['htmlContent'] = $htmlContent; return $this; } /** - * Gets text_content + * Gets textContent * @return string */ public function getTextContent() { - return $this->container['text_content']; + return $this->container['textContent']; } /** - * Sets text_content - * @param string $text_content Plain Text body of the message + * Sets textContent + * @param string $textContent Plain Text body of the message * @return $this */ - public function setTextContent($text_content) + public function setTextContent($textContent) { - $this->container['text_content'] = $text_content; + $this->container['textContent'] = $textContent; return $this; } @@ -380,29 +380,29 @@ public function setSubject($subject) } /** - * Gets reply_to - * @return \Swagger\Client\Model\SmtpemailReplyTo + * Gets replyTo + * @return \Swagger\Client\Model\SendSmtpEmailReplyTo */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param \Swagger\Client\Model\SmtpemailReplyTo $reply_to + * Sets replyTo + * @param \Swagger\Client\Model\SendSmtpEmailReplyTo $replyTo * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** * Gets attachment - * @return \Swagger\Client\Model\SmtpemailAttachment[] + * @return \Swagger\Client\Model\SendSmtpEmailAttachment[] */ public function getAttachment() { @@ -411,7 +411,7 @@ public function getAttachment() /** * Sets attachment - * @param \Swagger\Client\Model\SmtpemailAttachment[] $attachment Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez + * @param \Swagger\Client\Model\SendSmtpEmailAttachment[] $attachment Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez * @return $this */ public function setAttachment($attachment) diff --git a/lib/Model/SendSmtpEmail1.php b/lib/Model/SendSmtpEmail1.php deleted file mode 100755 index 5593c1bc..00000000 --- a/lib/Model/SendSmtpEmail1.php +++ /dev/null @@ -1,503 +0,0 @@ - '\Swagger\Client\Model\SmtpemailSender', - 'to' => '\Swagger\Client\Model\SmtpemailTo[]', - 'bcc' => '\Swagger\Client\Model\SmtpemailBcc[]', - 'cc' => '\Swagger\Client\Model\SmtpemailCc[]', - 'html_content' => 'string', - 'text_content' => 'string', - 'subject' => 'string', - 'reply_to' => '\Swagger\Client\Model\SmtpemailReplyTo', - 'attachment' => '\Swagger\Client\Model\SmtpemailAttachment[]', - 'headers' => 'map[string,string]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'sender' => null, - 'to' => null, - 'bcc' => null, - 'cc' => null, - 'html_content' => null, - 'text_content' => null, - 'subject' => null, - 'reply_to' => null, - 'attachment' => null, - 'headers' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'sender' => 'sender', - 'to' => 'to', - 'bcc' => 'bcc', - 'cc' => 'cc', - 'html_content' => 'htmlContent', - 'text_content' => 'textContent', - 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'attachment' => 'attachment', - 'headers' => 'headers' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'sender' => 'setSender', - 'to' => 'setTo', - 'bcc' => 'setBcc', - 'cc' => 'setCc', - 'html_content' => 'setHtmlContent', - 'text_content' => 'setTextContent', - 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'attachment' => 'setAttachment', - 'headers' => 'setHeaders' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'sender' => 'getSender', - 'to' => 'getTo', - 'bcc' => 'getBcc', - 'cc' => 'getCc', - 'html_content' => 'getHtmlContent', - 'text_content' => 'getTextContent', - 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'attachment' => 'getAttachment', - 'headers' => 'getHeaders' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['to'] = isset($data['to']) ? $data['to'] : null; - $this->container['bcc'] = isset($data['bcc']) ? $data['bcc'] : null; - $this->container['cc'] = isset($data['cc']) ? $data['cc'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['text_content'] = isset($data['text_content']) ? $data['text_content'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['attachment'] = isset($data['attachment']) ? $data['attachment'] : null; - $this->container['headers'] = isset($data['headers']) ? $data['headers'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['to'] === null) { - $invalid_properties[] = "'to' can't be null"; - } - if ($this->container['html_content'] === null) { - $invalid_properties[] = "'html_content' can't be null"; - } - if ($this->container['subject'] === null) { - $invalid_properties[] = "'subject' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['to'] === null) { - return false; - } - if ($this->container['html_content'] === null) { - return false; - } - if ($this->container['subject'] === null) { - return false; - } - return true; - } - - - /** - * Gets sender - * @return \Swagger\Client\Model\SmtpemailSender - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param \Swagger\Client\Model\SmtpemailSender $sender - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets to - * @return \Swagger\Client\Model\SmtpemailTo[] - */ - public function getTo() - { - return $this->container['to']; - } - - /** - * Sets to - * @param \Swagger\Client\Model\SmtpemailTo[] $to Email addresses and names of the recipients - * @return $this - */ - public function setTo($to) - { - $this->container['to'] = $to; - - return $this; - } - - /** - * Gets bcc - * @return \Swagger\Client\Model\SmtpemailBcc[] - */ - public function getBcc() - { - return $this->container['bcc']; - } - - /** - * Sets bcc - * @param \Swagger\Client\Model\SmtpemailBcc[] $bcc Email addresses and names of the recipients in bcc - * @return $this - */ - public function setBcc($bcc) - { - $this->container['bcc'] = $bcc; - - return $this; - } - - /** - * Gets cc - * @return \Swagger\Client\Model\SmtpemailCc[] - */ - public function getCc() - { - return $this->container['cc']; - } - - /** - * Sets cc - * @param \Swagger\Client\Model\SmtpemailCc[] $cc Email addresses and names of the recipients in cc - * @return $this - */ - public function setCc($cc) - { - $this->container['cc'] = $cc; - - return $this; - } - - /** - * Gets html_content - * @return string - */ - public function getHtmlContent() - { - return $this->container['html_content']; - } - - /** - * Sets html_content - * @param string $html_content HTML body of the message - * @return $this - */ - public function setHtmlContent($html_content) - { - $this->container['html_content'] = $html_content; - - return $this; - } - - /** - * Gets text_content - * @return string - */ - public function getTextContent() - { - return $this->container['text_content']; - } - - /** - * Sets text_content - * @param string $text_content Plain Text body of the message - * @return $this - */ - public function setTextContent($text_content) - { - $this->container['text_content'] = $text_content; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject of the message - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - - /** - * Gets reply_to - * @return \Swagger\Client\Model\SmtpemailReplyTo - */ - public function getReplyTo() - { - return $this->container['reply_to']; - } - - /** - * Sets reply_to - * @param \Swagger\Client\Model\SmtpemailReplyTo $reply_to - * @return $this - */ - public function setReplyTo($reply_to) - { - $this->container['reply_to'] = $reply_to; - - return $this; - } - - /** - * Gets attachment - * @return \Swagger\Client\Model\SmtpemailAttachment[] - */ - public function getAttachment() - { - return $this->container['attachment']; - } - - /** - * Sets attachment - * @param \Swagger\Client\Model\SmtpemailAttachment[] $attachment Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: gif, png, bmp, cgm, jpg, jpeg, tif, tiff, rtf, txt, css, shtml, html, htm, csv, zip, pdf, xml, ods, doc, docx, docm, ics, xls, xlsx, ppt, tar, and ez - * @return $this - */ - public function setAttachment($attachment) - { - $this->container['attachment'] = $attachment; - - return $this; - } - - /** - * Gets headers - * @return map[string,string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * @param map[string,string] $headers - * @return $this - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SmtpemailAttachment.php b/lib/Model/SendSmtpEmailAttachment.php old mode 100755 new mode 100644 similarity index 95% rename from lib/Model/SmtpemailAttachment.php rename to lib/Model/SendSmtpEmailAttachment.php index 1643704a..1e8cc27a --- a/lib/Model/SmtpemailAttachment.php +++ b/lib/Model/SendSmtpEmailAttachment.php @@ -1,6 +1,6 @@ container['content'] = $content; diff --git a/lib/Model/SmtpemailBcc.php b/lib/Model/SendSmtpEmailBcc.php old mode 100755 new mode 100644 similarity index 97% rename from lib/Model/SmtpemailBcc.php rename to lib/Model/SendSmtpEmailBcc.php index 7f15c425..81815e55 --- a/lib/Model/SmtpemailBcc.php +++ b/lib/Model/SendSmtpEmailBcc.php @@ -1,6 +1,6 @@ 'string' + 'messageId' => 'string' ]; /** @@ -62,7 +62,7 @@ class SendTemplateEmail implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'message_id' => null + 'messageId' => null ]; public static function swaggerTypes() @@ -80,7 +80,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'message_id' => 'messageId' + 'messageId' => 'messageId' ]; @@ -89,7 +89,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'message_id' => 'setMessageId' + 'messageId' => 'setMessageId' ]; @@ -98,7 +98,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'message_id' => 'getMessageId' + 'messageId' => 'getMessageId' ]; public static function attributeMap() @@ -132,7 +132,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['message_id'] = isset($data['message_id']) ? $data['message_id'] : null; + $this->container['messageId'] = isset($data['messageId']) ? $data['messageId'] : null; } /** @@ -144,8 +144,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if ($this->container['message_id'] === null) { - $invalid_properties[] = "'message_id' can't be null"; + if ($this->container['messageId'] === null) { + $invalid_properties[] = "'messageId' can't be null"; } return $invalid_properties; } @@ -159,7 +159,7 @@ public function listInvalidProperties() public function valid() { - if ($this->container['message_id'] === null) { + if ($this->container['messageId'] === null) { return false; } return true; @@ -167,22 +167,22 @@ public function valid() /** - * Gets message_id + * Gets messageId * @return string */ public function getMessageId() { - return $this->container['message_id']; + return $this->container['messageId']; } /** - * Sets message_id - * @param string $message_id Message ID of the template Email sent + * Sets messageId + * @param string $messageId Message ID of the template Email sent * @return $this */ - public function setMessageId($message_id) + public function setMessageId($messageId) { - $this->container['message_id'] = $message_id; + $this->container['messageId'] = $messageId; return $this; } diff --git a/lib/Model/SendTestEmail.php b/lib/Model/SendTestEmail.php old mode 100755 new mode 100644 index 3f8246ca..fef686ed --- a/lib/Model/SendTestEmail.php +++ b/lib/Model/SendTestEmail.php @@ -54,7 +54,7 @@ class SendTestEmail implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'email_to' => 'string[]' + 'emailTo' => 'string[]' ]; /** @@ -62,7 +62,7 @@ class SendTestEmail implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'email_to' => 'email' + 'emailTo' => 'email' ]; public static function swaggerTypes() @@ -80,7 +80,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'email_to' => 'emailTo' + 'emailTo' => 'emailTo' ]; @@ -89,7 +89,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'email_to' => 'setEmailTo' + 'emailTo' => 'setEmailTo' ]; @@ -98,7 +98,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'email_to' => 'getEmailTo' + 'emailTo' => 'getEmailTo' ]; public static function attributeMap() @@ -132,7 +132,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['email_to'] = isset($data['email_to']) ? $data['email_to'] : null; + $this->container['emailTo'] = isset($data['emailTo']) ? $data['emailTo'] : null; } /** @@ -161,22 +161,22 @@ public function valid() /** - * Gets email_to + * Gets emailTo * @return string[] */ public function getEmailTo() { - return $this->container['email_to']; + return $this->container['emailTo']; } /** - * Sets email_to - * @param string[] $email_to If empty the test email will be sent to your entire test list. Use this field to send it to specific addresses in your list. + * Sets emailTo + * @param string[] $emailTo If empty the test email will be sent to your entire test list. Use this field to send it to specific addresses in your list. * @return $this */ - public function setEmailTo($email_to) + public function setEmailTo($emailTo) { - $this->container['email_to'] = $email_to; + $this->container['emailTo'] = $emailTo; return $this; } diff --git a/lib/Model/SendTestEmail1.php b/lib/Model/SendTestEmail1.php deleted file mode 100755 index 45c73c08..00000000 --- a/lib/Model/SendTestEmail1.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'email_to' => 'email' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'email_to' => 'emailTo' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'email_to' => 'setEmailTo' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'email_to' => 'getEmailTo' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email_to'] = isset($data['email_to']) ? $data['email_to'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets email_to - * @return string[] - */ - public function getEmailTo() - { - return $this->container['email_to']; - } - - /** - * Sets email_to - * @param string[] $email_to If empty the test email will be sent to your entire test list. Use this field to send it to specific addresses in your list. - * @return $this - */ - public function setEmailTo($email_to) - { - $this->container['email_to'] = $email_to; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SendTestSms.php b/lib/Model/SendTestSms.php old mode 100755 new mode 100644 index 8e67cc72..78a1ae8d --- a/lib/Model/SendTestSms.php +++ b/lib/Model/SendTestSms.php @@ -54,7 +54,7 @@ class SendTestSms implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'phone_numbers' => 'string[]' + 'phoneNumbers' => 'string[]' ]; /** @@ -62,7 +62,7 @@ class SendTestSms implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'phone_numbers' => null + 'phoneNumbers' => null ]; public static function swaggerTypes() @@ -80,7 +80,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'phone_numbers' => 'phoneNumbers' + 'phoneNumbers' => 'phoneNumbers' ]; @@ -89,7 +89,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'phone_numbers' => 'setPhoneNumbers' + 'phoneNumbers' => 'setPhoneNumbers' ]; @@ -98,7 +98,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'phone_numbers' => 'getPhoneNumbers' + 'phoneNumbers' => 'getPhoneNumbers' ]; public static function attributeMap() @@ -132,7 +132,7 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['phone_numbers'] = isset($data['phone_numbers']) ? $data['phone_numbers'] : null; + $this->container['phoneNumbers'] = isset($data['phoneNumbers']) ? $data['phoneNumbers'] : null; } /** @@ -161,22 +161,22 @@ public function valid() /** - * Gets phone_numbers + * Gets phoneNumbers * @return string[] */ public function getPhoneNumbers() { - return $this->container['phone_numbers']; + return $this->container['phoneNumbers']; } /** - * Sets phone_numbers - * @param string[] $phone_numbers Mobile number with the country code to send test SMS. The mobile number defined here must belong to one of your contacts in SendinBlue account and must not be blacklisted + * Sets phoneNumbers + * @param string[] $phoneNumbers Mobile number with the country code to send test SMS. The mobile number defined here must belong to one of your contacts in SendinBlue account and must not be blacklisted * @return $this */ - public function setPhoneNumbers($phone_numbers) + public function setPhoneNumbers($phoneNumbers) { - $this->container['phone_numbers'] = $phone_numbers; + $this->container['phoneNumbers'] = $phoneNumbers; return $this; } diff --git a/lib/Model/SendTestSms1.php b/lib/Model/SendTestSms1.php deleted file mode 100755 index a3578114..00000000 --- a/lib/Model/SendTestSms1.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'phone_numbers' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'phone_numbers' => 'phoneNumbers' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'phone_numbers' => 'setPhoneNumbers' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'phone_numbers' => 'getPhoneNumbers' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['phone_numbers'] = isset($data['phone_numbers']) ? $data['phone_numbers'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets phone_numbers - * @return string[] - */ - public function getPhoneNumbers() - { - return $this->container['phone_numbers']; - } - - /** - * Sets phone_numbers - * @param string[] $phone_numbers Mobile number with the country code to send test SMS. The mobile number defined here must belong to one of your contacts in SendinBlue account and must not be blacklisted - * @return $this - */ - public function setPhoneNumbers($phone_numbers) - { - $this->container['phone_numbers'] = $phone_numbers; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SendTransacSms.php b/lib/Model/SendTransacSms.php old mode 100755 new mode 100644 index 716e480c..83a04063 --- a/lib/Model/SendTransacSms.php +++ b/lib/Model/SendTransacSms.php @@ -58,7 +58,7 @@ class SendTransacSms implements ArrayAccess 'recipient' => 'string', 'content' => 'string', 'tag' => 'string', - 'web_url' => 'string' + 'webUrl' => 'string' ]; /** @@ -70,7 +70,7 @@ class SendTransacSms implements ArrayAccess 'recipient' => null, 'content' => null, 'tag' => null, - 'web_url' => 'url' + 'webUrl' => 'url' ]; public static function swaggerTypes() @@ -92,7 +92,7 @@ public static function swaggerFormats() 'recipient' => 'recipient', 'content' => 'content', 'tag' => 'tag', - 'web_url' => 'webUrl' + 'webUrl' => 'webUrl' ]; @@ -105,7 +105,7 @@ public static function swaggerFormats() 'recipient' => 'setRecipient', 'content' => 'setContent', 'tag' => 'setTag', - 'web_url' => 'setWebUrl' + 'webUrl' => 'setWebUrl' ]; @@ -118,7 +118,7 @@ public static function swaggerFormats() 'recipient' => 'getRecipient', 'content' => 'getContent', 'tag' => 'getTag', - 'web_url' => 'getWebUrl' + 'webUrl' => 'getWebUrl' ]; public static function attributeMap() @@ -156,7 +156,7 @@ public function __construct(array $data = null) $this->container['recipient'] = isset($data['recipient']) ? $data['recipient'] : null; $this->container['content'] = isset($data['content']) ? $data['content'] : null; $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['web_url'] = isset($data['web_url']) ? $data['web_url'] : null; + $this->container['webUrl'] = isset($data['webUrl']) ? $data['webUrl'] : null; } /** @@ -309,22 +309,22 @@ public function setTag($tag) } /** - * Gets web_url + * Gets webUrl * @return string */ public function getWebUrl() { - return $this->container['web_url']; + return $this->container['webUrl']; } /** - * Sets web_url - * @param string $web_url Webhook to call for each event triggered by the message (delivered etc.) + * Sets webUrl + * @param string $webUrl Webhook to call for each event triggered by the message (delivered etc.) * @return $this */ - public function setWebUrl($web_url) + public function setWebUrl($webUrl) { - $this->container['web_url'] = $web_url; + $this->container['webUrl'] = $webUrl; return $this; } diff --git a/lib/Model/SendTransacSms1.php b/lib/Model/SendTransacSms1.php deleted file mode 100755 index 06241480..00000000 --- a/lib/Model/SendTransacSms1.php +++ /dev/null @@ -1,390 +0,0 @@ - 'string', - 'recipient' => 'string', - 'content' => 'string', - 'tag' => 'string', - 'web_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'sender' => null, - 'recipient' => null, - 'content' => null, - 'tag' => null, - 'web_url' => 'url' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'sender' => 'sender', - 'recipient' => 'recipient', - 'content' => 'content', - 'tag' => 'tag', - 'web_url' => 'webUrl' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'sender' => 'setSender', - 'recipient' => 'setRecipient', - 'content' => 'setContent', - 'tag' => 'setTag', - 'web_url' => 'setWebUrl' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'sender' => 'getSender', - 'recipient' => 'getRecipient', - 'content' => 'getContent', - 'tag' => 'getTag', - 'web_url' => 'getWebUrl' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['recipient'] = isset($data['recipient']) ? $data['recipient'] : null; - $this->container['content'] = isset($data['content']) ? $data['content'] : null; - $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['web_url'] = isset($data['web_url']) ? $data['web_url'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['sender'] === null) { - $invalid_properties[] = "'sender' can't be null"; - } - if ((strlen($this->container['sender']) > 11)) { - $invalid_properties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; - } - - if ($this->container['recipient'] === null) { - $invalid_properties[] = "'recipient' can't be null"; - } - if ($this->container['content'] === null) { - $invalid_properties[] = "'content' can't be null"; - } - if ((strlen($this->container['content']) > 160)) { - $invalid_properties[] = "invalid value for 'content', the character length must be smaller than or equal to 160."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['sender'] === null) { - return false; - } - if (strlen($this->container['sender']) > 11) { - return false; - } - if ($this->container['recipient'] === null) { - return false; - } - if ($this->container['content'] === null) { - return false; - } - if (strlen($this->container['content']) > 160) { - return false; - } - return true; - } - - - /** - * Gets sender - * @return string - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param string $sender Name of the sender. Only alphanumeric characters. No more than 11 characters - * @return $this - */ - public function setSender($sender) - { - if ((strlen($sender) > 11)) { - throw new \InvalidArgumentException('invalid length for $sender when calling SendTransacSms1., must be smaller than or equal to 11.'); - } - - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets recipient - * @return string - */ - public function getRecipient() - { - return $this->container['recipient']; - } - - /** - * Sets recipient - * @param string $recipient Mobile number to send SMS with the country code - * @return $this - */ - public function setRecipient($recipient) - { - $this->container['recipient'] = $recipient; - - return $this; - } - - /** - * Gets content - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * @param string $content Content of the message. If more than 160 characters long, multiple text messages will be sent - * @return $this - */ - public function setContent($content) - { - if ((strlen($content) > 160)) { - throw new \InvalidArgumentException('invalid length for $content when calling SendTransacSms1., must be smaller than or equal to 160.'); - } - - $this->container['content'] = $content; - - return $this; - } - - /** - * Gets tag - * @return string - */ - public function getTag() - { - return $this->container['tag']; - } - - /** - * Sets tag - * @param string $tag Tag of the message - * @return $this - */ - public function setTag($tag) - { - $this->container['tag'] = $tag; - - return $this; - } - - /** - * Gets web_url - * @return string - */ - public function getWebUrl() - { - return $this->container['web_url']; - } - - /** - * Sets web_url - * @param string $web_url Webhook to call for each event triggered by the message (delivered etc.) - * @return $this - */ - public function setWebUrl($web_url) - { - $this->container['web_url'] = $web_url; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/Sender.php b/lib/Model/Sender.php deleted file mode 100755 index fd5c1aa7..00000000 --- a/lib/Model/Sender.php +++ /dev/null @@ -1,308 +0,0 @@ - 'string', - 'email' => 'string', - 'ips' => '\Swagger\Client\Model\SendersIps[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'ips' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'email' => 'email', - 'ips' => 'ips' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'ips' => 'setIps' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'ips' => 'getIps' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['name'] === null) { - $invalid_properties[] = "'name' can't be null"; - } - if ($this->container['email'] === null) { - $invalid_properties[] = "'email' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['name'] === null) { - return false; - } - if ($this->container['email'] === null) { - return false; - } - return true; - } - - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name From Name to use for the sender - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email From Email to use for the sender - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets ips - * @return \Swagger\Client\Model\SendersIps[] - */ - public function getIps() - { - return $this->container['ips']; - } - - /** - * Sets ips - * @param \Swagger\Client\Model\SendersIps[] $ips Mandatory in case of dedicated IP, IPs to associate to the sender - * @return $this - */ - public function setIps($ips) - { - $this->container['ips'] = $ips; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/Sender1.php b/lib/Model/Sender1.php deleted file mode 100755 index e55860f8..00000000 --- a/lib/Model/Sender1.php +++ /dev/null @@ -1,296 +0,0 @@ - 'string', - 'email' => 'string', - 'ips' => '\Swagger\Client\Model\SendersIps[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'ips' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'email' => 'email', - 'ips' => 'ips' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'ips' => 'setIps' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'ips' => 'getIps' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name From Name to update the sender - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email From Email to update the sender - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets ips - * @return \Swagger\Client\Model\SendersIps[] - */ - public function getIps() - { - return $this->container['ips']; - } - - /** - * Sets ips - * @param \Swagger\Client\Model\SendersIps[] $ips Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. - * @return $this - */ - public function setIps($ips) - { - $this->container['ips'] = $ips; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SmtpTemplate.php b/lib/Model/SmtpTemplate.php deleted file mode 100755 index a794d883..00000000 --- a/lib/Model/SmtpTemplate.php +++ /dev/null @@ -1,497 +0,0 @@ - 'string', - 'sender' => '\Swagger\Client\Model\SmtptemplatesSender', - 'template_name' => 'string', - 'html_content' => 'string', - 'html_url' => 'string', - 'subject' => 'string', - 'reply_to' => 'string', - 'to_field' => 'string', - 'attachment_url' => 'string', - 'is_active' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'tag' => null, - 'sender' => null, - 'template_name' => null, - 'html_content' => null, - 'html_url' => 'url', - 'subject' => null, - 'reply_to' => 'email', - 'to_field' => null, - 'attachment_url' => 'url', - 'is_active' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'tag' => 'tag', - 'sender' => 'sender', - 'template_name' => 'templateName', - 'html_content' => 'htmlContent', - 'html_url' => 'htmlUrl', - 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'attachment_url' => 'attachmentUrl', - 'is_active' => 'isActive' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'tag' => 'setTag', - 'sender' => 'setSender', - 'template_name' => 'setTemplateName', - 'html_content' => 'setHtmlContent', - 'html_url' => 'setHtmlUrl', - 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'attachment_url' => 'setAttachmentUrl', - 'is_active' => 'setIsActive' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'tag' => 'getTag', - 'sender' => 'getSender', - 'template_name' => 'getTemplateName', - 'html_content' => 'getHtmlContent', - 'html_url' => 'getHtmlUrl', - 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'attachment_url' => 'getAttachmentUrl', - 'is_active' => 'getIsActive' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['template_name'] = isset($data['template_name']) ? $data['template_name'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['html_url'] = isset($data['html_url']) ? $data['html_url'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['is_active'] = isset($data['is_active']) ? $data['is_active'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['template_name'] === null) { - $invalid_properties[] = "'template_name' can't be null"; - } - if ($this->container['subject'] === null) { - $invalid_properties[] = "'subject' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['template_name'] === null) { - return false; - } - if ($this->container['subject'] === null) { - return false; - } - return true; - } - - - /** - * Gets tag - * @return string - */ - public function getTag() - { - return $this->container['tag']; - } - - /** - * Sets tag - * @param string $tag Tag of the template - * @return $this - */ - public function setTag($tag) - { - $this->container['tag'] = $tag; - - return $this; - } - - /** - * Gets sender - * @return \Swagger\Client\Model\SmtptemplatesSender - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param \Swagger\Client\Model\SmtptemplatesSender $sender - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets template_name - * @return string - */ - public function getTemplateName() - { - return $this->container['template_name']; - } - - /** - * Sets template_name - * @param string $template_name Name of the template - * @return $this - */ - public function setTemplateName($template_name) - { - $this->container['template_name'] = $template_name; - - return $this; - } - - /** - * Gets html_content - * @return string - */ - public function getHtmlContent() - { - return $this->container['html_content']; - } - - /** - * Sets html_content - * @param string $html_content Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty - * @return $this - */ - public function setHtmlContent($html_content) - { - $this->container['html_content'] = $html_content; - - return $this; - } - - /** - * Gets html_url - * @return string - */ - public function getHtmlUrl() - { - return $this->container['html_url']; - } - - /** - * Sets html_url - * @param string $html_url Url which contents the body of the email message. REQUIRED if htmlContent is empty - * @return $this - */ - public function setHtmlUrl($html_url) - { - $this->container['html_url'] = $html_url; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject of the template - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - - /** - * Gets reply_to - * @return string - */ - public function getReplyTo() - { - return $this->container['reply_to']; - } - - /** - * Sets reply_to - * @param string $reply_to Email on which campaign recipients will be able to reply to - * @return $this - */ - public function setReplyTo($reply_to) - { - $this->container['reply_to'] = $reply_to; - - return $this; - } - - /** - * Gets to_field - * @return string - */ - public function getToField() - { - return $this->container['to_field']; - } - - /** - * Sets to_field - * @param string $to_field This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account - * @return $this - */ - public function setToField($to_field) - { - $this->container['to_field'] = $to_field; - - return $this; - } - - /** - * Gets attachment_url - * @return string - */ - public function getAttachmentUrl() - { - return $this->container['attachment_url']; - } - - /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment (no local file). Extensions allowed xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf - * @return $this - */ - public function setAttachmentUrl($attachment_url) - { - $this->container['attachment_url'] = $attachment_url; - - return $this; - } - - /** - * Gets is_active - * @return bool - */ - public function getIsActive() - { - return $this->container['is_active']; - } - - /** - * Sets is_active - * @param bool $is_active Status of template. isActive = true means template is active and isActive = false means template is inactive - * @return $this - */ - public function setIsActive($is_active) - { - $this->container['is_active'] = $is_active; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/SmtpTemplate1.php b/lib/Model/SmtpTemplate1.php deleted file mode 100755 index b2255564..00000000 --- a/lib/Model/SmtpTemplate1.php +++ /dev/null @@ -1,485 +0,0 @@ - 'string', - 'sender' => '\Swagger\Client\Model\SmtptemplatestemplateIdSender', - 'template_name' => 'string', - 'html_content' => 'string', - 'html_url' => 'string', - 'subject' => 'string', - 'reply_to' => 'string', - 'to_field' => 'string', - 'attachment_url' => 'string', - 'is_active' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'tag' => null, - 'sender' => null, - 'template_name' => null, - 'html_content' => null, - 'html_url' => 'url', - 'subject' => null, - 'reply_to' => 'email', - 'to_field' => null, - 'attachment_url' => 'url', - 'is_active' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'tag' => 'tag', - 'sender' => 'sender', - 'template_name' => 'templateName', - 'html_content' => 'htmlContent', - 'html_url' => 'htmlUrl', - 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'attachment_url' => 'attachmentUrl', - 'is_active' => 'isActive' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'tag' => 'setTag', - 'sender' => 'setSender', - 'template_name' => 'setTemplateName', - 'html_content' => 'setHtmlContent', - 'html_url' => 'setHtmlUrl', - 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'attachment_url' => 'setAttachmentUrl', - 'is_active' => 'setIsActive' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'tag' => 'getTag', - 'sender' => 'getSender', - 'template_name' => 'getTemplateName', - 'html_content' => 'getHtmlContent', - 'html_url' => 'getHtmlUrl', - 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'attachment_url' => 'getAttachmentUrl', - 'is_active' => 'getIsActive' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['tag'] = isset($data['tag']) ? $data['tag'] : null; - $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['template_name'] = isset($data['template_name']) ? $data['template_name'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['html_url'] = isset($data['html_url']) ? $data['html_url'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['is_active'] = isset($data['is_active']) ? $data['is_active'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets tag - * @return string - */ - public function getTag() - { - return $this->container['tag']; - } - - /** - * Sets tag - * @param string $tag Tag of the template - * @return $this - */ - public function setTag($tag) - { - $this->container['tag'] = $tag; - - return $this; - } - - /** - * Gets sender - * @return \Swagger\Client\Model\SmtptemplatestemplateIdSender - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param \Swagger\Client\Model\SmtptemplatestemplateIdSender $sender - * @return $this - */ - public function setSender($sender) - { - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets template_name - * @return string - */ - public function getTemplateName() - { - return $this->container['template_name']; - } - - /** - * Sets template_name - * @param string $template_name Name of the template - * @return $this - */ - public function setTemplateName($template_name) - { - $this->container['template_name'] = $template_name; - - return $this; - } - - /** - * Gets html_content - * @return string - */ - public function getHtmlContent() - { - return $this->container['html_content']; - } - - /** - * Sets html_content - * @param string $html_content Required if htmlUrl is empty. Body of the message (HTML must have more than 10 characters) - * @return $this - */ - public function setHtmlContent($html_content) - { - $this->container['html_content'] = $html_content; - - return $this; - } - - /** - * Gets html_url - * @return string - */ - public function getHtmlUrl() - { - return $this->container['html_url']; - } - - /** - * Sets html_url - * @param string $html_url Required if htmlContent is empty. URL to the body of the email (HTML) - * @return $this - */ - public function setHtmlUrl($html_url) - { - $this->container['html_url'] = $html_url; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject of the email - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - - /** - * Gets reply_to - * @return string - */ - public function getReplyTo() - { - return $this->container['reply_to']; - } - - /** - * Sets reply_to - * @param string $reply_to Email on which campaign recipients will be able to reply to - * @return $this - */ - public function setReplyTo($reply_to) - { - $this->container['reply_to'] = $reply_to; - - return $this; - } - - /** - * Gets to_field - * @return string - */ - public function getToField() - { - return $this->container['to_field']; - } - - /** - * Sets to_field - * @param string $to_field To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. These attributes must already exist in contacts database - * @return $this - */ - public function setToField($to_field) - { - $this->container['to_field'] = $to_field; - - return $this; - } - - /** - * Gets attachment_url - * @return string - */ - public function getAttachmentUrl() - { - return $this->container['attachment_url']; - } - - /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf - * @return $this - */ - public function setAttachmentUrl($attachment_url) - { - $this->container['attachment_url'] = $attachment_url; - - return $this; - } - - /** - * Gets is_active - * @return bool - */ - public function getIsActive() - { - return $this->container['is_active']; - } - - /** - * Sets is_active - * @param bool $is_active Status of the template. isActive = false means template is inactive, isActive = true means template is active - * @return $this - */ - public function setIsActive($is_active) - { - $this->container['is_active'] = $is_active; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/Status.php b/lib/Model/Status.php deleted file mode 100755 index 89d81f94..00000000 --- a/lib/Model/Status.php +++ /dev/null @@ -1,290 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'status' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'status' => 'status' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const STATUS_SUSPENDED = 'suspended'; - const STATUS_ARCHIVE = 'archive'; - const STATUS_DARCHIVE = 'darchive'; - const STATUS_SENT = 'sent'; - const STATUS_QUEUED = 'queued'; - const STATUS_REPLICATE = 'replicate'; - const STATUS_REPLICATE_TEMPLATE = 'replicateTemplate'; - const STATUS_DRAFT = 'draft'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getStatusAllowableValues() - { - return [ - self::STATUS_SUSPENDED, - self::STATUS_ARCHIVE, - self::STATUS_DARCHIVE, - self::STATUS_SENT, - self::STATUS_QUEUED, - self::STATUS_REPLICATE, - self::STATUS_REPLICATE_TEMPLATE, - self::STATUS_DRAFT, - ]; - } - - - /** - * 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['status'] = isset($data['status']) ? $data['status'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * @param string $status - * @return $this - */ - public function setStatus($status) - { - $allowed_values = $this->getStatusAllowableValues(); - if (!is_null($status) && !in_array($status, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/Status1.php b/lib/Model/Status1.php deleted file mode 100755 index fdfde0a0..00000000 --- a/lib/Model/Status1.php +++ /dev/null @@ -1,290 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'status' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'status' => 'status' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - const STATUS_SUSPENDED = 'suspended'; - const STATUS_ARCHIVE = 'archive'; - const STATUS_DARCHIVE = 'darchive'; - const STATUS_SENT = 'sent'; - const STATUS_QUEUED = 'queued'; - const STATUS_REPLICATE = 'replicate'; - const STATUS_REPLICATE_TEMPLATE = 'replicateTemplate'; - const STATUS_DRAFT = 'draft'; - - - - /** - * Gets allowable values of the enum - * @return string[] - */ - public function getStatusAllowableValues() - { - return [ - self::STATUS_SUSPENDED, - self::STATUS_ARCHIVE, - self::STATUS_DARCHIVE, - self::STATUS_SENT, - self::STATUS_QUEUED, - self::STATUS_REPLICATE, - self::STATUS_REPLICATE_TEMPLATE, - self::STATUS_DRAFT, - ]; - } - - - /** - * 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['status'] = isset($data['status']) ? $data['status'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - $invalid_properties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ); - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - $allowed_values = $this->getStatusAllowableValues(); - if (!in_array($this->container['status'], $allowed_values)) { - return false; - } - return true; - } - - - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * @param string $status - * @return $this - */ - public function setStatus($status) - { - $allowed_values = $this->getStatusAllowableValues(); - if (!is_null($status) && !in_array($status, $allowed_values)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowed_values) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/UpdateChild.php b/lib/Model/UpdateChild.php old mode 100755 new mode 100644 index 6f550b8a..7b918de5 --- a/lib/Model/UpdateChild.php +++ b/lib/Model/UpdateChild.php @@ -55,9 +55,9 @@ class UpdateChild implements ArrayAccess */ protected static $swaggerTypes = [ 'email' => 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'company_name' => 'string', + 'firstName' => 'string', + 'lastName' => 'string', + 'companyName' => 'string', 'password' => 'string', 'ips' => 'int[]' ]; @@ -68,9 +68,9 @@ class UpdateChild implements ArrayAccess */ protected static $swaggerFormats = [ 'email' => 'email', - 'first_name' => null, - 'last_name' => null, - 'company_name' => null, + 'firstName' => null, + 'lastName' => null, + 'companyName' => null, 'password' => 'password', 'ips' => 'int32' ]; @@ -91,9 +91,9 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'email' => 'email', - 'first_name' => 'firstName', - 'last_name' => 'lastName', - 'company_name' => 'companyName', + 'firstName' => 'firstName', + 'lastName' => 'lastName', + 'companyName' => 'companyName', 'password' => 'password', 'ips' => 'ips' ]; @@ -105,9 +105,9 @@ public static function swaggerFormats() */ protected static $setters = [ 'email' => 'setEmail', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'company_name' => 'setCompanyName', + 'firstName' => 'setFirstName', + 'lastName' => 'setLastName', + 'companyName' => 'setCompanyName', 'password' => 'setPassword', 'ips' => 'setIps' ]; @@ -119,9 +119,9 @@ public static function swaggerFormats() */ protected static $getters = [ 'email' => 'getEmail', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'company_name' => 'getCompanyName', + 'firstName' => 'getFirstName', + 'lastName' => 'getLastName', + 'companyName' => 'getCompanyName', 'password' => 'getPassword', 'ips' => 'getIps' ]; @@ -158,9 +158,9 @@ public static function getters() public function __construct(array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; - $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; - $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; + $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null; + $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null; + $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; $this->container['password'] = isset($data['password']) ? $data['password'] : null; $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; } @@ -212,64 +212,64 @@ public function setEmail($email) } /** - * Gets first_name + * Gets firstName * @return string */ public function getFirstName() { - return $this->container['first_name']; + return $this->container['firstName']; } /** - * Sets first_name - * @param string $first_name New First name to use to update the child account + * Sets firstName + * @param string $firstName New First name to use to update the child account * @return $this */ - public function setFirstName($first_name) + public function setFirstName($firstName) { - $this->container['first_name'] = $first_name; + $this->container['firstName'] = $firstName; return $this; } /** - * Gets last_name + * Gets lastName * @return string */ public function getLastName() { - return $this->container['last_name']; + return $this->container['lastName']; } /** - * Sets last_name - * @param string $last_name New Last name to use to update the child account + * Sets lastName + * @param string $lastName New Last name to use to update the child account * @return $this */ - public function setLastName($last_name) + public function setLastName($lastName) { - $this->container['last_name'] = $last_name; + $this->container['lastName'] = $lastName; return $this; } /** - * Gets company_name + * Gets companyName * @return string */ public function getCompanyName() { - return $this->container['company_name']; + return $this->container['companyName']; } /** - * Sets company_name - * @param string $company_name New Company name to use to update the child account + * Sets companyName + * @param string $companyName New Company name to use to update the child account * @return $this */ - public function setCompanyName($company_name) + public function setCompanyName($companyName) { - $this->container['company_name'] = $company_name; + $this->container['companyName'] = $companyName; return $this; } diff --git a/lib/Model/UpdateContact.php b/lib/Model/UpdateContact.php old mode 100755 new mode 100644 index 9556780e..28acd5bc --- a/lib/Model/UpdateContact.php +++ b/lib/Model/UpdateContact.php @@ -55,10 +55,10 @@ class UpdateContact implements ArrayAccess */ protected static $swaggerTypes = [ 'attributes' => 'map[string,string]', - 'email_blacklisted' => 'bool', - 'sms_blacklisted' => 'bool', - 'list_ids' => 'int[]', - 'unlink_list_ids' => 'int[]' + 'emailBlacklisted' => 'bool', + 'smsBlacklisted' => 'bool', + 'listIds' => 'int[]', + 'unlinkListIds' => 'int[]' ]; /** @@ -67,10 +67,10 @@ class UpdateContact implements ArrayAccess */ protected static $swaggerFormats = [ 'attributes' => null, - 'email_blacklisted' => null, - 'sms_blacklisted' => null, - 'list_ids' => 'int32', - 'unlink_list_ids' => 'int32' + 'emailBlacklisted' => null, + 'smsBlacklisted' => null, + 'listIds' => 'int32', + 'unlinkListIds' => 'int32' ]; public static function swaggerTypes() @@ -89,10 +89,10 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'attributes' => 'attributes', - 'email_blacklisted' => 'emailBlacklisted', - 'sms_blacklisted' => 'smsBlacklisted', - 'list_ids' => 'listIds', - 'unlink_list_ids' => 'unlinkListIds' + 'emailBlacklisted' => 'emailBlacklisted', + 'smsBlacklisted' => 'smsBlacklisted', + 'listIds' => 'listIds', + 'unlinkListIds' => 'unlinkListIds' ]; @@ -102,10 +102,10 @@ public static function swaggerFormats() */ protected static $setters = [ 'attributes' => 'setAttributes', - 'email_blacklisted' => 'setEmailBlacklisted', - 'sms_blacklisted' => 'setSmsBlacklisted', - 'list_ids' => 'setListIds', - 'unlink_list_ids' => 'setUnlinkListIds' + 'emailBlacklisted' => 'setEmailBlacklisted', + 'smsBlacklisted' => 'setSmsBlacklisted', + 'listIds' => 'setListIds', + 'unlinkListIds' => 'setUnlinkListIds' ]; @@ -115,10 +115,10 @@ public static function swaggerFormats() */ protected static $getters = [ 'attributes' => 'getAttributes', - 'email_blacklisted' => 'getEmailBlacklisted', - 'sms_blacklisted' => 'getSmsBlacklisted', - 'list_ids' => 'getListIds', - 'unlink_list_ids' => 'getUnlinkListIds' + 'emailBlacklisted' => 'getEmailBlacklisted', + 'smsBlacklisted' => 'getSmsBlacklisted', + 'listIds' => 'getListIds', + 'unlinkListIds' => 'getUnlinkListIds' ]; public static function attributeMap() @@ -153,10 +153,10 @@ public static function getters() public function __construct(array $data = null) { $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; - $this->container['email_blacklisted'] = isset($data['email_blacklisted']) ? $data['email_blacklisted'] : null; - $this->container['sms_blacklisted'] = isset($data['sms_blacklisted']) ? $data['sms_blacklisted'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - $this->container['unlink_list_ids'] = isset($data['unlink_list_ids']) ? $data['unlink_list_ids'] : null; + $this->container['emailBlacklisted'] = isset($data['emailBlacklisted']) ? $data['emailBlacklisted'] : null; + $this->container['smsBlacklisted'] = isset($data['smsBlacklisted']) ? $data['smsBlacklisted'] : null; + $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; + $this->container['unlinkListIds'] = isset($data['unlinkListIds']) ? $data['unlinkListIds'] : null; } /** @@ -206,85 +206,85 @@ public function setAttributes($attributes) } /** - * Gets email_blacklisted + * Gets emailBlacklisted * @return bool */ public function getEmailBlacklisted() { - return $this->container['email_blacklisted']; + return $this->container['emailBlacklisted']; } /** - * Sets email_blacklisted - * @param bool $email_blacklisted Blacklist the contact for emails (emailBlacklisted = true) + * Sets emailBlacklisted + * @param bool $emailBlacklisted Blacklist the contact for emails (emailBlacklisted = true) * @return $this */ - public function setEmailBlacklisted($email_blacklisted) + public function setEmailBlacklisted($emailBlacklisted) { - $this->container['email_blacklisted'] = $email_blacklisted; + $this->container['emailBlacklisted'] = $emailBlacklisted; return $this; } /** - * Gets sms_blacklisted + * Gets smsBlacklisted * @return bool */ public function getSmsBlacklisted() { - return $this->container['sms_blacklisted']; + return $this->container['smsBlacklisted']; } /** - * Sets sms_blacklisted - * @param bool $sms_blacklisted Blacklist the contact for SMS (smsBlacklisted = true) + * Sets smsBlacklisted + * @param bool $smsBlacklisted Blacklist the contact for SMS (smsBlacklisted = true) * @return $this */ - public function setSmsBlacklisted($sms_blacklisted) + public function setSmsBlacklisted($smsBlacklisted) { - $this->container['sms_blacklisted'] = $sms_blacklisted; + $this->container['smsBlacklisted'] = $smsBlacklisted; return $this; } /** - * Gets list_ids + * Gets listIds * @return int[] */ public function getListIds() { - return $this->container['list_ids']; + return $this->container['listIds']; } /** - * Sets list_ids - * @param int[] $list_ids Ids of the lists to add the contact to + * Sets listIds + * @param int[] $listIds Ids of the lists to add the contact to * @return $this */ - public function setListIds($list_ids) + public function setListIds($listIds) { - $this->container['list_ids'] = $list_ids; + $this->container['listIds'] = $listIds; return $this; } /** - * Gets unlink_list_ids + * Gets unlinkListIds * @return int[] */ public function getUnlinkListIds() { - return $this->container['unlink_list_ids']; + return $this->container['unlinkListIds']; } /** - * Sets unlink_list_ids - * @param int[] $unlink_list_ids Ids of the lists to remove the contact from + * Sets unlinkListIds + * @param int[] $unlinkListIds Ids of the lists to remove the contact from * @return $this */ - public function setUnlinkListIds($unlink_list_ids) + public function setUnlinkListIds($unlinkListIds) { - $this->container['unlink_list_ids'] = $unlink_list_ids; + $this->container['unlinkListIds'] = $unlinkListIds; return $this; } diff --git a/lib/Model/UpdateContact1.php b/lib/Model/UpdateContact1.php deleted file mode 100755 index ea7bb984..00000000 --- a/lib/Model/UpdateContact1.php +++ /dev/null @@ -1,350 +0,0 @@ - 'map[string,string]', - 'email_blacklisted' => 'bool', - 'sms_blacklisted' => 'bool', - 'list_ids' => 'int[]', - 'unlink_list_ids' => 'int[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'attributes' => null, - 'email_blacklisted' => null, - 'sms_blacklisted' => null, - 'list_ids' => 'int32', - 'unlink_list_ids' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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 = [ - 'attributes' => 'attributes', - 'email_blacklisted' => 'emailBlacklisted', - 'sms_blacklisted' => 'smsBlacklisted', - 'list_ids' => 'listIds', - 'unlink_list_ids' => 'unlinkListIds' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'attributes' => 'setAttributes', - 'email_blacklisted' => 'setEmailBlacklisted', - 'sms_blacklisted' => 'setSmsBlacklisted', - 'list_ids' => 'setListIds', - 'unlink_list_ids' => 'setUnlinkListIds' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'attributes' => 'getAttributes', - 'email_blacklisted' => 'getEmailBlacklisted', - 'sms_blacklisted' => 'getSmsBlacklisted', - 'list_ids' => 'getListIds', - 'unlink_list_ids' => 'getUnlinkListIds' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; - $this->container['email_blacklisted'] = isset($data['email_blacklisted']) ? $data['email_blacklisted'] : null; - $this->container['sms_blacklisted'] = isset($data['sms_blacklisted']) ? $data['sms_blacklisted'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; - $this->container['unlink_list_ids'] = isset($data['unlink_list_ids']) ? $data['unlink_list_ids'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets attributes - * @return map[string,string] - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * @param map[string,string] $attributes - * @return $this - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } - - /** - * Gets email_blacklisted - * @return bool - */ - public function getEmailBlacklisted() - { - return $this->container['email_blacklisted']; - } - - /** - * Sets email_blacklisted - * @param bool $email_blacklisted Blacklist the contact for emails (emailBlacklisted = true) - * @return $this - */ - public function setEmailBlacklisted($email_blacklisted) - { - $this->container['email_blacklisted'] = $email_blacklisted; - - return $this; - } - - /** - * Gets sms_blacklisted - * @return bool - */ - public function getSmsBlacklisted() - { - return $this->container['sms_blacklisted']; - } - - /** - * Sets sms_blacklisted - * @param bool $sms_blacklisted Blacklist the contact for SMS (smsBlacklisted = true) - * @return $this - */ - public function setSmsBlacklisted($sms_blacklisted) - { - $this->container['sms_blacklisted'] = $sms_blacklisted; - - return $this; - } - - /** - * Gets list_ids - * @return int[] - */ - public function getListIds() - { - return $this->container['list_ids']; - } - - /** - * Sets list_ids - * @param int[] $list_ids Ids of the lists to add the contact to - * @return $this - */ - public function setListIds($list_ids) - { - $this->container['list_ids'] = $list_ids; - - return $this; - } - - /** - * Gets unlink_list_ids - * @return int[] - */ - public function getUnlinkListIds() - { - return $this->container['unlink_list_ids']; - } - - /** - * Sets unlink_list_ids - * @param int[] $unlink_list_ids Ids of the lists to remove the contact from - * @return $this - */ - public function setUnlinkListIds($unlink_list_ids) - { - $this->container['unlink_list_ids'] = $unlink_list_ids; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/UpdateEmailCampaign.php b/lib/Model/UpdateEmailCampaign.php old mode 100755 new mode 100644 index d2b2c855..baf854bb --- a/lib/Model/UpdateEmailCampaign.php +++ b/lib/Model/UpdateEmailCampaign.php @@ -55,22 +55,22 @@ class UpdateEmailCampaign implements ArrayAccess */ protected static $swaggerTypes = [ 'tag' => 'string', - 'sender' => '\Swagger\Client\Model\EmailCampaignscampaignIdSender', + 'sender' => '\Swagger\Client\Model\UpdateEmailCampaignSender', 'name' => 'string', - 'html_content' => 'string', - 'html_url' => 'string', - 'scheduled_at' => 'string', + 'htmlContent' => 'string', + 'htmlUrl' => 'string', + 'scheduledAt' => 'string', 'subject' => 'string', - 'reply_to' => 'string', - 'to_field' => 'string', - 'recipients' => '\Swagger\Client\Model\EmailCampaignscampaignIdRecipients', - 'attachment_url' => 'string', - 'inline_image_activation' => 'bool', - 'mirror_active' => 'bool', + 'replyTo' => 'string', + 'toField' => 'string', + 'recipients' => '\Swagger\Client\Model\UpdateEmailCampaignRecipients', + 'attachmentUrl' => 'string', + 'inlineImageActivation' => 'bool', + 'mirrorActive' => 'bool', 'recurring' => 'bool', 'footer' => 'string', 'header' => 'string', - 'utm_campaign' => 'string' + 'utmCampaign' => 'string' ]; /** @@ -81,20 +81,20 @@ class UpdateEmailCampaign implements ArrayAccess 'tag' => null, 'sender' => null, 'name' => null, - 'html_content' => null, - 'html_url' => 'url', - 'scheduled_at' => null, + 'htmlContent' => null, + 'htmlUrl' => 'url', + 'scheduledAt' => null, 'subject' => null, - 'reply_to' => 'email', - 'to_field' => null, + 'replyTo' => 'email', + 'toField' => null, 'recipients' => null, - 'attachment_url' => 'url', - 'inline_image_activation' => null, - 'mirror_active' => null, + 'attachmentUrl' => 'url', + 'inlineImageActivation' => null, + 'mirrorActive' => null, 'recurring' => null, 'footer' => null, 'header' => null, - 'utm_campaign' => null + 'utmCampaign' => null ]; public static function swaggerTypes() @@ -115,20 +115,20 @@ public static function swaggerFormats() 'tag' => 'tag', 'sender' => 'sender', 'name' => 'name', - 'html_content' => 'htmlContent', - 'html_url' => 'htmlUrl', - 'scheduled_at' => 'scheduledAt', + 'htmlContent' => 'htmlContent', + 'htmlUrl' => 'htmlUrl', + 'scheduledAt' => 'scheduledAt', 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', + 'replyTo' => 'replyTo', + 'toField' => 'toField', 'recipients' => 'recipients', - 'attachment_url' => 'attachmentUrl', - 'inline_image_activation' => 'inlineImageActivation', - 'mirror_active' => 'mirrorActive', + 'attachmentUrl' => 'attachmentUrl', + 'inlineImageActivation' => 'inlineImageActivation', + 'mirrorActive' => 'mirrorActive', 'recurring' => 'recurring', 'footer' => 'footer', 'header' => 'header', - 'utm_campaign' => 'utmCampaign' + 'utmCampaign' => 'utmCampaign' ]; @@ -140,20 +140,20 @@ public static function swaggerFormats() 'tag' => 'setTag', 'sender' => 'setSender', 'name' => 'setName', - 'html_content' => 'setHtmlContent', - 'html_url' => 'setHtmlUrl', - 'scheduled_at' => 'setScheduledAt', + 'htmlContent' => 'setHtmlContent', + 'htmlUrl' => 'setHtmlUrl', + 'scheduledAt' => 'setScheduledAt', 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', + 'replyTo' => 'setReplyTo', + 'toField' => 'setToField', 'recipients' => 'setRecipients', - 'attachment_url' => 'setAttachmentUrl', - 'inline_image_activation' => 'setInlineImageActivation', - 'mirror_active' => 'setMirrorActive', + 'attachmentUrl' => 'setAttachmentUrl', + 'inlineImageActivation' => 'setInlineImageActivation', + 'mirrorActive' => 'setMirrorActive', 'recurring' => 'setRecurring', 'footer' => 'setFooter', 'header' => 'setHeader', - 'utm_campaign' => 'setUtmCampaign' + 'utmCampaign' => 'setUtmCampaign' ]; @@ -165,20 +165,20 @@ public static function swaggerFormats() 'tag' => 'getTag', 'sender' => 'getSender', 'name' => 'getName', - 'html_content' => 'getHtmlContent', - 'html_url' => 'getHtmlUrl', - 'scheduled_at' => 'getScheduledAt', + 'htmlContent' => 'getHtmlContent', + 'htmlUrl' => 'getHtmlUrl', + 'scheduledAt' => 'getScheduledAt', 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', + 'replyTo' => 'getReplyTo', + 'toField' => 'getToField', 'recipients' => 'getRecipients', - 'attachment_url' => 'getAttachmentUrl', - 'inline_image_activation' => 'getInlineImageActivation', - 'mirror_active' => 'getMirrorActive', + 'attachmentUrl' => 'getAttachmentUrl', + 'inlineImageActivation' => 'getInlineImageActivation', + 'mirrorActive' => 'getMirrorActive', 'recurring' => 'getRecurring', 'footer' => 'getFooter', 'header' => 'getHeader', - 'utm_campaign' => 'getUtmCampaign' + 'utmCampaign' => 'getUtmCampaign' ]; public static function attributeMap() @@ -215,20 +215,20 @@ public function __construct(array $data = null) $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['html_url'] = isset($data['html_url']) ? $data['html_url'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; + $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; + $this->container['htmlUrl'] = isset($data['htmlUrl']) ? $data['htmlUrl'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; + $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['inline_image_activation'] = isset($data['inline_image_activation']) ? $data['inline_image_activation'] : false; - $this->container['mirror_active'] = isset($data['mirror_active']) ? $data['mirror_active'] : null; + $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; + $this->container['inlineImageActivation'] = isset($data['inlineImageActivation']) ? $data['inlineImageActivation'] : false; + $this->container['mirrorActive'] = isset($data['mirrorActive']) ? $data['mirrorActive'] : null; $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : false; $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; $this->container['header'] = isset($data['header']) ? $data['header'] : null; - $this->container['utm_campaign'] = isset($data['utm_campaign']) ? $data['utm_campaign'] : null; + $this->container['utmCampaign'] = isset($data['utmCampaign']) ? $data['utmCampaign'] : null; } /** @@ -240,8 +240,8 @@ public function listInvalidProperties() { $invalid_properties = []; - if (!is_null($this->container['scheduled_at']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!is_null($this->container['scheduledAt']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -256,7 +256,7 @@ public function listInvalidProperties() public function valid() { - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } return true; @@ -286,7 +286,7 @@ public function setTag($tag) /** * Gets sender - * @return \Swagger\Client\Model\EmailCampaignscampaignIdSender + * @return \Swagger\Client\Model\UpdateEmailCampaignSender */ public function getSender() { @@ -295,7 +295,7 @@ public function getSender() /** * Sets sender - * @param \Swagger\Client\Model\EmailCampaignscampaignIdSender $sender + * @param \Swagger\Client\Model\UpdateEmailCampaignSender $sender * @return $this */ public function setSender($sender) @@ -327,69 +327,69 @@ public function setName($name) } /** - * Gets html_content + * Gets htmlContent * @return string */ public function getHtmlContent() { - return $this->container['html_content']; + return $this->container['htmlContent']; } /** - * Sets html_content - * @param string $html_content Body of the message (HTML version). REQUIRED if htmlUrl is empty + * Sets htmlContent + * @param string $htmlContent Body of the message (HTML version). REQUIRED if htmlUrl is empty * @return $this */ - public function setHtmlContent($html_content) + public function setHtmlContent($htmlContent) { - $this->container['html_content'] = $html_content; + $this->container['htmlContent'] = $htmlContent; return $this; } /** - * Gets html_url + * Gets htmlUrl * @return string */ public function getHtmlUrl() { - return $this->container['html_url']; + return $this->container['htmlUrl']; } /** - * Sets html_url - * @param string $html_url Url which contents the body of the email message. REQUIRED if htmlContent is empty + * Sets htmlUrl + * @param string $htmlUrl Url which contents the body of the email message. REQUIRED if htmlContent is empty * @return $this */ - public function setHtmlUrl($html_url) + public function setHtmlUrl($htmlUrl) { - $this->container['html_url'] = $html_url; + $this->container['htmlUrl'] = $htmlUrl; return $this; } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Date and time on which the campaign has to run + * Sets scheduledAt + * @param string $scheduledAt Date and time on which the campaign has to run * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if (!is_null($scheduled_at) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling UpdateEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if (!is_null($scheduledAt) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling UpdateEmailCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } @@ -416,50 +416,50 @@ public function setSubject($subject) } /** - * Gets reply_to + * Gets replyTo * @return string */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param string $reply_to Email on which campaign recipients will be able to reply to + * Sets replyTo + * @param string $replyTo Email on which campaign recipients will be able to reply to * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** - * Gets to_field + * Gets toField * @return string */ public function getToField() { - return $this->container['to_field']; + return $this->container['toField']; } /** - * Sets to_field - * @param string $to_field This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account + * Sets toField + * @param string $toField This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account * @return $this */ - public function setToField($to_field) + public function setToField($toField) { - $this->container['to_field'] = $to_field; + $this->container['toField'] = $toField; return $this; } /** * Gets recipients - * @return \Swagger\Client\Model\EmailCampaignscampaignIdRecipients + * @return \Swagger\Client\Model\UpdateEmailCampaignRecipients */ public function getRecipients() { @@ -468,7 +468,7 @@ public function getRecipients() /** * Sets recipients - * @param \Swagger\Client\Model\EmailCampaignscampaignIdRecipients $recipients + * @param \Swagger\Client\Model\UpdateEmailCampaignRecipients $recipients * @return $this */ public function setRecipients($recipients) @@ -479,64 +479,64 @@ public function setRecipients($recipients) } /** - * Gets attachment_url + * Gets attachmentUrl * @return string */ public function getAttachmentUrl() { - return $this->container['attachment_url']; + return $this->container['attachmentUrl']; } /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment. Url not allowed from local machine. File must be hosted somewhere.Possilbe extension values are xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf + * Sets attachmentUrl + * @param string $attachmentUrl Absolute url of the attachment. Url not allowed from local machine. File must be hosted somewhere.Possilbe extension values are xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf * @return $this */ - public function setAttachmentUrl($attachment_url) + public function setAttachmentUrl($attachmentUrl) { - $this->container['attachment_url'] = $attachment_url; + $this->container['attachmentUrl'] = $attachmentUrl; return $this; } /** - * Gets inline_image_activation + * Gets inlineImageActivation * @return bool */ public function getInlineImageActivation() { - return $this->container['inline_image_activation']; + return $this->container['inlineImageActivation']; } /** - * Sets inline_image_activation - * @param bool $inline_image_activation Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. You cannot send a campaign of more than 4MB with images embedded in the email. Campaigns with the images embedded in the email must be sent to less than 5000 contacts. + * Sets inlineImageActivation + * @param bool $inlineImageActivation Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. You cannot send a campaign of more than 4MB with images embedded in the email. Campaigns with the images embedded in the email must be sent to less than 5000 contacts. * @return $this */ - public function setInlineImageActivation($inline_image_activation) + public function setInlineImageActivation($inlineImageActivation) { - $this->container['inline_image_activation'] = $inline_image_activation; + $this->container['inlineImageActivation'] = $inlineImageActivation; return $this; } /** - * Gets mirror_active + * Gets mirrorActive * @return bool */ public function getMirrorActive() { - return $this->container['mirror_active']; + return $this->container['mirrorActive']; } /** - * Sets mirror_active - * @param bool $mirror_active Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign + * Sets mirrorActive + * @param bool $mirrorActive Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign * @return $this */ - public function setMirrorActive($mirror_active) + public function setMirrorActive($mirrorActive) { - $this->container['mirror_active'] = $mirror_active; + $this->container['mirrorActive'] = $mirrorActive; return $this; } @@ -605,22 +605,22 @@ public function setHeader($header) } /** - * Gets utm_campaign + * Gets utmCampaign * @return string */ public function getUtmCampaign() { - return $this->container['utm_campaign']; + return $this->container['utmCampaign']; } /** - * Sets utm_campaign - * @param string $utm_campaign Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed + * Sets utmCampaign + * @param string $utmCampaign Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed * @return $this */ - public function setUtmCampaign($utm_campaign) + public function setUtmCampaign($utmCampaign) { - $this->container['utm_campaign'] = $utm_campaign; + $this->container['utmCampaign'] = $utmCampaign; return $this; } diff --git a/lib/Model/EmailCampaignscampaignIdRecipients.php b/lib/Model/UpdateEmailCampaignRecipients.php old mode 100755 new mode 100644 similarity index 78% rename from lib/Model/EmailCampaignscampaignIdRecipients.php rename to lib/Model/UpdateEmailCampaignRecipients.php index 58f38454..5c3c76cc --- a/lib/Model/EmailCampaignscampaignIdRecipients.php +++ b/lib/Model/UpdateEmailCampaignRecipients.php @@ -1,6 +1,6 @@ 'int[]', - 'list_ids' => 'int[]' + 'exclusionListIds' => 'int[]', + 'listIds' => 'int[]' ]; /** @@ -63,8 +63,8 @@ class EmailCampaignscampaignIdRecipients implements ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'exclusion_list_ids' => 'int32', - 'list_ids' => 'int32' + 'exclusionListIds' => 'int32', + 'listIds' => 'int32' ]; public static function swaggerTypes() @@ -82,8 +82,8 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'exclusion_list_ids' => 'exclusionListIds', - 'list_ids' => 'listIds' + 'exclusionListIds' => 'exclusionListIds', + 'listIds' => 'listIds' ]; @@ -92,8 +92,8 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'exclusion_list_ids' => 'setExclusionListIds', - 'list_ids' => 'setListIds' + 'exclusionListIds' => 'setExclusionListIds', + 'listIds' => 'setListIds' ]; @@ -102,8 +102,8 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'exclusion_list_ids' => 'getExclusionListIds', - 'list_ids' => 'getListIds' + 'exclusionListIds' => 'getExclusionListIds', + 'listIds' => 'getListIds' ]; public static function attributeMap() @@ -137,8 +137,8 @@ public static function getters() */ public function __construct(array $data = null) { - $this->container['exclusion_list_ids'] = isset($data['exclusion_list_ids']) ? $data['exclusion_list_ids'] : null; - $this->container['list_ids'] = isset($data['list_ids']) ? $data['list_ids'] : null; + $this->container['exclusionListIds'] = isset($data['exclusionListIds']) ? $data['exclusionListIds'] : null; + $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; } /** @@ -167,43 +167,43 @@ public function valid() /** - * Gets exclusion_list_ids + * Gets exclusionListIds * @return int[] */ public function getExclusionListIds() { - return $this->container['exclusion_list_ids']; + return $this->container['exclusionListIds']; } /** - * Sets exclusion_list_ids - * @param int[] $exclusion_list_ids List ids which have to be excluded from a campaign + * Sets exclusionListIds + * @param int[] $exclusionListIds List ids which have to be excluded from a campaign * @return $this */ - public function setExclusionListIds($exclusion_list_ids) + public function setExclusionListIds($exclusionListIds) { - $this->container['exclusion_list_ids'] = $exclusion_list_ids; + $this->container['exclusionListIds'] = $exclusionListIds; return $this; } /** - * Gets list_ids + * Gets listIds * @return int[] */ public function getListIds() { - return $this->container['list_ids']; + return $this->container['listIds']; } /** - * Sets list_ids - * @param int[] $list_ids Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty + * Sets listIds + * @param int[] $listIds Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty * @return $this */ - public function setListIds($list_ids) + public function setListIds($listIds) { - $this->container['list_ids'] = $list_ids; + $this->container['listIds'] = $listIds; return $this; } diff --git a/lib/Model/EmailCampaignscampaignIdSender.php b/lib/Model/UpdateEmailCampaignSender.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/EmailCampaignscampaignIdSender.php rename to lib/Model/UpdateEmailCampaignSender.php index e1e8385d..d566637c --- a/lib/Model/EmailCampaignscampaignIdSender.php +++ b/lib/Model/UpdateEmailCampaignSender.php @@ -1,6 +1,6 @@ 'string', - 'folder_id' => 'int' + 'folderId' => 'int' ]; /** @@ -64,7 +64,7 @@ class UpdateList implements ArrayAccess */ protected static $swaggerFormats = [ 'name' => null, - 'folder_id' => 'int32' + 'folderId' => 'int32' ]; public static function swaggerTypes() @@ -83,7 +83,7 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'name' => 'name', - 'folder_id' => 'folderId' + 'folderId' => 'folderId' ]; @@ -93,7 +93,7 @@ public static function swaggerFormats() */ protected static $setters = [ 'name' => 'setName', - 'folder_id' => 'setFolderId' + 'folderId' => 'setFolderId' ]; @@ -103,7 +103,7 @@ public static function swaggerFormats() */ protected static $getters = [ 'name' => 'getName', - 'folder_id' => 'getFolderId' + 'folderId' => 'getFolderId' ]; public static function attributeMap() @@ -138,7 +138,7 @@ public static function getters() public function __construct(array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['folder_id'] = isset($data['folder_id']) ? $data['folder_id'] : null; + $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; } /** @@ -188,22 +188,22 @@ public function setName($name) } /** - * Gets folder_id + * Gets folderId * @return int */ public function getFolderId() { - return $this->container['folder_id']; + return $this->container['folderId']; } /** - * Sets folder_id - * @param int $folder_id Id of the folder in which to move the list. Only one parameter can updated at once + * Sets folderId + * @param int $folderId Id of the folder in which to move the list. Only one parameter can updated at once * @return $this */ - public function setFolderId($folder_id) + public function setFolderId($folderId) { - $this->container['folder_id'] = $folder_id; + $this->container['folderId'] = $folderId; return $this; } diff --git a/lib/Model/UpdateList1.php b/lib/Model/UpdateList1.php deleted file mode 100755 index b4410398..00000000 --- a/lib/Model/UpdateList1.php +++ /dev/null @@ -1,269 +0,0 @@ - 'string', - 'folder_id' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'folder_id' => 'int32' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'folder_id' => 'folderId' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'folder_id' => 'setFolderId' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'folder_id' => 'getFolderId' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['folder_id'] = isset($data['folder_id']) ? $data['folder_id'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the list. Only one parameter can be update at once - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets folder_id - * @return int - */ - public function getFolderId() - { - return $this->container['folder_id']; - } - - /** - * Sets folder_id - * @param int $folder_id Id of the folder in which to move the list. Only one parameter can updated at once - * @return $this - */ - public function setFolderId($folder_id) - { - $this->container['folder_id'] = $folder_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/UpdateSender.php b/lib/Model/UpdateSender.php old mode 100755 new mode 100644 index f96c886d..f2549435 --- a/lib/Model/UpdateSender.php +++ b/lib/Model/UpdateSender.php @@ -56,7 +56,7 @@ class UpdateSender implements ArrayAccess protected static $swaggerTypes = [ 'name' => 'string', 'email' => 'string', - 'ips' => '\Swagger\Client\Model\SendersIps[]' + 'ips' => '\Swagger\Client\Model\CreateSenderIps[]' ]; /** @@ -216,7 +216,7 @@ public function setEmail($email) /** * Gets ips - * @return \Swagger\Client\Model\SendersIps[] + * @return \Swagger\Client\Model\CreateSenderIps[] */ public function getIps() { @@ -225,7 +225,7 @@ public function getIps() /** * Sets ips - * @param \Swagger\Client\Model\SendersIps[] $ips Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. + * @param \Swagger\Client\Model\CreateSenderIps[] $ips Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. * @return $this */ public function setIps($ips) diff --git a/lib/Model/UpdateSmsCampaign.php b/lib/Model/UpdateSmsCampaign.php old mode 100755 new mode 100644 index c26d2262..4b2e6ab3 --- a/lib/Model/UpdateSmsCampaign.php +++ b/lib/Model/UpdateSmsCampaign.php @@ -57,8 +57,8 @@ class UpdateSmsCampaign implements ArrayAccess 'name' => 'string', 'sender' => 'string', 'content' => 'string', - 'recipients' => '\Swagger\Client\Model\SmsCampaignsRecipients', - 'scheduled_at' => 'string' + 'recipients' => '\Swagger\Client\Model\CreateSmsCampaignRecipients', + 'scheduledAt' => 'string' ]; /** @@ -70,7 +70,7 @@ class UpdateSmsCampaign implements ArrayAccess 'sender' => null, 'content' => null, 'recipients' => null, - 'scheduled_at' => null + 'scheduledAt' => null ]; public static function swaggerTypes() @@ -92,7 +92,7 @@ public static function swaggerFormats() 'sender' => 'sender', 'content' => 'content', 'recipients' => 'recipients', - 'scheduled_at' => 'scheduledAt' + 'scheduledAt' => 'scheduledAt' ]; @@ -105,7 +105,7 @@ public static function swaggerFormats() 'sender' => 'setSender', 'content' => 'setContent', 'recipients' => 'setRecipients', - 'scheduled_at' => 'setScheduledAt' + 'scheduledAt' => 'setScheduledAt' ]; @@ -118,7 +118,7 @@ public static function swaggerFormats() 'sender' => 'getSender', 'content' => 'getContent', 'recipients' => 'getRecipients', - 'scheduled_at' => 'getScheduledAt' + 'scheduledAt' => 'getScheduledAt' ]; public static function attributeMap() @@ -156,7 +156,7 @@ public function __construct(array $data = null) $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; $this->container['content'] = isset($data['content']) ? $data['content'] : null; $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; + $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; } /** @@ -172,8 +172,8 @@ public function listInvalidProperties() $invalid_properties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; } - if (!is_null($this->container['scheduled_at']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; + if (!is_null($this->container['scheduledAt']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { + $invalid_properties[] = "invalid value for 'scheduledAt', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; } return $invalid_properties; @@ -191,7 +191,7 @@ public function valid() if (strlen($this->container['sender']) > 11) { return false; } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { + if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduledAt'])) { return false; } return true; @@ -267,7 +267,7 @@ public function setContent($content) /** * Gets recipients - * @return \Swagger\Client\Model\SmsCampaignsRecipients + * @return \Swagger\Client\Model\CreateSmsCampaignRecipients */ public function getRecipients() { @@ -276,7 +276,7 @@ public function getRecipients() /** * Sets recipients - * @param \Swagger\Client\Model\SmsCampaignsRecipients $recipients + * @param \Swagger\Client\Model\CreateSmsCampaignRecipients $recipients * @return $this */ public function setRecipients($recipients) @@ -287,27 +287,27 @@ public function setRecipients($recipients) } /** - * Gets scheduled_at + * Gets scheduledAt * @return string */ public function getScheduledAt() { - return $this->container['scheduled_at']; + return $this->container['scheduledAt']; } /** - * Sets scheduled_at - * @param string $scheduled_at Date and time on which the campaign has to run + * Sets scheduledAt + * @param string $scheduledAt Date and time on which the campaign has to run * @return $this */ - public function setScheduledAt($scheduled_at) + public function setScheduledAt($scheduledAt) { - if (!is_null($scheduled_at) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling UpdateSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); + if (!is_null($scheduledAt) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduledAt))) { + throw new \InvalidArgumentException("invalid value for $scheduledAt when calling UpdateSmsCampaign., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); } - $this->container['scheduled_at'] = $scheduled_at; + $this->container['scheduledAt'] = $scheduledAt; return $this; } diff --git a/lib/Model/UpdateSmsCampaign1.php b/lib/Model/UpdateSmsCampaign1.php deleted file mode 100755 index 99eecbae..00000000 --- a/lib/Model/UpdateSmsCampaign1.php +++ /dev/null @@ -1,373 +0,0 @@ - 'string', - 'sender' => 'string', - 'content' => 'string', - 'recipients' => '\Swagger\Client\Model\SmsCampaignsRecipients', - 'scheduled_at' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'sender' => null, - 'content' => null, - 'recipients' => null, - 'scheduled_at' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'sender' => 'sender', - 'content' => 'content', - 'recipients' => 'recipients', - 'scheduled_at' => 'scheduledAt' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'sender' => 'setSender', - 'content' => 'setContent', - 'recipients' => 'setRecipients', - 'scheduled_at' => 'setScheduledAt' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'sender' => 'getSender', - 'content' => 'getContent', - 'recipients' => 'getRecipients', - 'scheduled_at' => 'getScheduledAt' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['content'] = isset($data['content']) ? $data['content'] : null; - $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; - $this->container['scheduled_at'] = isset($data['scheduled_at']) ? $data['scheduled_at'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if (!is_null($this->container['sender']) && (strlen($this->container['sender']) > 11)) { - $invalid_properties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; - } - - if (!is_null($this->container['scheduled_at']) && !preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - $invalid_properties[] = "invalid value for 'scheduled_at', must be conform to the pattern /YYYY-MM-DD HH:mm:ss/."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if (strlen($this->container['sender']) > 11) { - return false; - } - if (!preg_match("/YYYY-MM-DD HH:mm:ss/", $this->container['scheduled_at'])) { - return false; - } - return true; - } - - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name Name of the campaign - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets sender - * @return string - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * @param string $sender Name of the sender. The number of characters is limited to 11 - * @return $this - */ - public function setSender($sender) - { - if (!is_null($sender) && (strlen($sender) > 11)) { - throw new \InvalidArgumentException('invalid length for $sender when calling UpdateSmsCampaign1., must be smaller than or equal to 11.'); - } - - $this->container['sender'] = $sender; - - return $this; - } - - /** - * Gets content - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * @param string $content Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS - * @return $this - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } - - /** - * Gets recipients - * @return \Swagger\Client\Model\SmsCampaignsRecipients - */ - public function getRecipients() - { - return $this->container['recipients']; - } - - /** - * Sets recipients - * @param \Swagger\Client\Model\SmsCampaignsRecipients $recipients - * @return $this - */ - public function setRecipients($recipients) - { - $this->container['recipients'] = $recipients; - - return $this; - } - - /** - * Gets scheduled_at - * @return string - */ - public function getScheduledAt() - { - return $this->container['scheduled_at']; - } - - /** - * Sets scheduled_at - * @param string $scheduled_at Date and time on which the campaign has to run - * @return $this - */ - public function setScheduledAt($scheduled_at) - { - - if (!is_null($scheduled_at) && (!preg_match("/YYYY-MM-DD HH:mm:ss/", $scheduled_at))) { - throw new \InvalidArgumentException("invalid value for $scheduled_at when calling UpdateSmsCampaign1., must conform to the pattern /YYYY-MM-DD HH:mm:ss/."); - } - - $this->container['scheduled_at'] = $scheduled_at; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/UpdateSmtpTemplate.php b/lib/Model/UpdateSmtpTemplate.php old mode 100755 new mode 100644 index b32fb94e..aedd7736 --- a/lib/Model/UpdateSmtpTemplate.php +++ b/lib/Model/UpdateSmtpTemplate.php @@ -55,15 +55,15 @@ class UpdateSmtpTemplate implements ArrayAccess */ protected static $swaggerTypes = [ 'tag' => 'string', - 'sender' => '\Swagger\Client\Model\SmtptemplatestemplateIdSender', - 'template_name' => 'string', - 'html_content' => 'string', - 'html_url' => 'string', + 'sender' => '\Swagger\Client\Model\UpdateSmtpTemplateSender', + 'templateName' => 'string', + 'htmlContent' => 'string', + 'htmlUrl' => 'string', 'subject' => 'string', - 'reply_to' => 'string', - 'to_field' => 'string', - 'attachment_url' => 'string', - 'is_active' => 'bool' + 'replyTo' => 'string', + 'toField' => 'string', + 'attachmentUrl' => 'string', + 'isActive' => 'bool' ]; /** @@ -73,14 +73,14 @@ class UpdateSmtpTemplate implements ArrayAccess protected static $swaggerFormats = [ 'tag' => null, 'sender' => null, - 'template_name' => null, - 'html_content' => null, - 'html_url' => 'url', + 'templateName' => null, + 'htmlContent' => null, + 'htmlUrl' => 'url', 'subject' => null, - 'reply_to' => 'email', - 'to_field' => null, - 'attachment_url' => 'url', - 'is_active' => null + 'replyTo' => 'email', + 'toField' => null, + 'attachmentUrl' => 'url', + 'isActive' => null ]; public static function swaggerTypes() @@ -100,14 +100,14 @@ public static function swaggerFormats() protected static $attributeMap = [ 'tag' => 'tag', 'sender' => 'sender', - 'template_name' => 'templateName', - 'html_content' => 'htmlContent', - 'html_url' => 'htmlUrl', + 'templateName' => 'templateName', + 'htmlContent' => 'htmlContent', + 'htmlUrl' => 'htmlUrl', 'subject' => 'subject', - 'reply_to' => 'replyTo', - 'to_field' => 'toField', - 'attachment_url' => 'attachmentUrl', - 'is_active' => 'isActive' + 'replyTo' => 'replyTo', + 'toField' => 'toField', + 'attachmentUrl' => 'attachmentUrl', + 'isActive' => 'isActive' ]; @@ -118,14 +118,14 @@ public static function swaggerFormats() protected static $setters = [ 'tag' => 'setTag', 'sender' => 'setSender', - 'template_name' => 'setTemplateName', - 'html_content' => 'setHtmlContent', - 'html_url' => 'setHtmlUrl', + 'templateName' => 'setTemplateName', + 'htmlContent' => 'setHtmlContent', + 'htmlUrl' => 'setHtmlUrl', 'subject' => 'setSubject', - 'reply_to' => 'setReplyTo', - 'to_field' => 'setToField', - 'attachment_url' => 'setAttachmentUrl', - 'is_active' => 'setIsActive' + 'replyTo' => 'setReplyTo', + 'toField' => 'setToField', + 'attachmentUrl' => 'setAttachmentUrl', + 'isActive' => 'setIsActive' ]; @@ -136,14 +136,14 @@ public static function swaggerFormats() protected static $getters = [ 'tag' => 'getTag', 'sender' => 'getSender', - 'template_name' => 'getTemplateName', - 'html_content' => 'getHtmlContent', - 'html_url' => 'getHtmlUrl', + 'templateName' => 'getTemplateName', + 'htmlContent' => 'getHtmlContent', + 'htmlUrl' => 'getHtmlUrl', 'subject' => 'getSubject', - 'reply_to' => 'getReplyTo', - 'to_field' => 'getToField', - 'attachment_url' => 'getAttachmentUrl', - 'is_active' => 'getIsActive' + 'replyTo' => 'getReplyTo', + 'toField' => 'getToField', + 'attachmentUrl' => 'getAttachmentUrl', + 'isActive' => 'getIsActive' ]; public static function attributeMap() @@ -179,14 +179,14 @@ public function __construct(array $data = null) { $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; $this->container['sender'] = isset($data['sender']) ? $data['sender'] : null; - $this->container['template_name'] = isset($data['template_name']) ? $data['template_name'] : null; - $this->container['html_content'] = isset($data['html_content']) ? $data['html_content'] : null; - $this->container['html_url'] = isset($data['html_url']) ? $data['html_url'] : null; + $this->container['templateName'] = isset($data['templateName']) ? $data['templateName'] : null; + $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; + $this->container['htmlUrl'] = isset($data['htmlUrl']) ? $data['htmlUrl'] : null; $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - $this->container['reply_to'] = isset($data['reply_to']) ? $data['reply_to'] : null; - $this->container['to_field'] = isset($data['to_field']) ? $data['to_field'] : null; - $this->container['attachment_url'] = isset($data['attachment_url']) ? $data['attachment_url'] : null; - $this->container['is_active'] = isset($data['is_active']) ? $data['is_active'] : null; + $this->container['replyTo'] = isset($data['replyTo']) ? $data['replyTo'] : null; + $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; + $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; + $this->container['isActive'] = isset($data['isActive']) ? $data['isActive'] : null; } /** @@ -237,7 +237,7 @@ public function setTag($tag) /** * Gets sender - * @return \Swagger\Client\Model\SmtptemplatestemplateIdSender + * @return \Swagger\Client\Model\UpdateSmtpTemplateSender */ public function getSender() { @@ -246,7 +246,7 @@ public function getSender() /** * Sets sender - * @param \Swagger\Client\Model\SmtptemplatestemplateIdSender $sender + * @param \Swagger\Client\Model\UpdateSmtpTemplateSender $sender * @return $this */ public function setSender($sender) @@ -257,64 +257,64 @@ public function setSender($sender) } /** - * Gets template_name + * Gets templateName * @return string */ public function getTemplateName() { - return $this->container['template_name']; + return $this->container['templateName']; } /** - * Sets template_name - * @param string $template_name Name of the template + * Sets templateName + * @param string $templateName Name of the template * @return $this */ - public function setTemplateName($template_name) + public function setTemplateName($templateName) { - $this->container['template_name'] = $template_name; + $this->container['templateName'] = $templateName; return $this; } /** - * Gets html_content + * Gets htmlContent * @return string */ public function getHtmlContent() { - return $this->container['html_content']; + return $this->container['htmlContent']; } /** - * Sets html_content - * @param string $html_content Required if htmlUrl is empty. Body of the message (HTML must have more than 10 characters) + * Sets htmlContent + * @param string $htmlContent Required if htmlUrl is empty. Body of the message (HTML must have more than 10 characters) * @return $this */ - public function setHtmlContent($html_content) + public function setHtmlContent($htmlContent) { - $this->container['html_content'] = $html_content; + $this->container['htmlContent'] = $htmlContent; return $this; } /** - * Gets html_url + * Gets htmlUrl * @return string */ public function getHtmlUrl() { - return $this->container['html_url']; + return $this->container['htmlUrl']; } /** - * Sets html_url - * @param string $html_url Required if htmlContent is empty. URL to the body of the email (HTML) + * Sets htmlUrl + * @param string $htmlUrl Required if htmlContent is empty. URL to the body of the email (HTML) * @return $this */ - public function setHtmlUrl($html_url) + public function setHtmlUrl($htmlUrl) { - $this->container['html_url'] = $html_url; + $this->container['htmlUrl'] = $htmlUrl; return $this; } @@ -341,85 +341,85 @@ public function setSubject($subject) } /** - * Gets reply_to + * Gets replyTo * @return string */ public function getReplyTo() { - return $this->container['reply_to']; + return $this->container['replyTo']; } /** - * Sets reply_to - * @param string $reply_to Email on which campaign recipients will be able to reply to + * Sets replyTo + * @param string $replyTo Email on which campaign recipients will be able to reply to * @return $this */ - public function setReplyTo($reply_to) + public function setReplyTo($replyTo) { - $this->container['reply_to'] = $reply_to; + $this->container['replyTo'] = $replyTo; return $this; } /** - * Gets to_field + * Gets toField * @return string */ public function getToField() { - return $this->container['to_field']; + return $this->container['toField']; } /** - * Sets to_field - * @param string $to_field To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. These attributes must already exist in contacts database + * Sets toField + * @param string $toField To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. These attributes must already exist in contacts database * @return $this */ - public function setToField($to_field) + public function setToField($toField) { - $this->container['to_field'] = $to_field; + $this->container['toField'] = $toField; return $this; } /** - * Gets attachment_url + * Gets attachmentUrl * @return string */ public function getAttachmentUrl() { - return $this->container['attachment_url']; + return $this->container['attachmentUrl']; } /** - * Sets attachment_url - * @param string $attachment_url Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf + * Sets attachmentUrl + * @param string $attachmentUrl Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff and rtf * @return $this */ - public function setAttachmentUrl($attachment_url) + public function setAttachmentUrl($attachmentUrl) { - $this->container['attachment_url'] = $attachment_url; + $this->container['attachmentUrl'] = $attachmentUrl; return $this; } /** - * Gets is_active + * Gets isActive * @return bool */ public function getIsActive() { - return $this->container['is_active']; + return $this->container['isActive']; } /** - * Sets is_active - * @param bool $is_active Status of the template. isActive = false means template is inactive, isActive = true means template is active + * Sets isActive + * @param bool $isActive Status of the template. isActive = false means template is inactive, isActive = true means template is active * @return $this */ - public function setIsActive($is_active) + public function setIsActive($isActive) { - $this->container['is_active'] = $is_active; + $this->container['isActive'] = $isActive; return $this; } diff --git a/lib/Model/SmtptemplatestemplateIdSender.php b/lib/Model/UpdateSmtpTemplateSender.php old mode 100755 new mode 100644 similarity index 96% rename from lib/Model/SmtptemplatestemplateIdSender.php rename to lib/Model/UpdateSmtpTemplateSender.php index 0356ecca..647543ec --- a/lib/Model/SmtptemplatestemplateIdSender.php +++ b/lib/Model/UpdateSmtpTemplateSender.php @@ -1,6 +1,6 @@ 'string', - 'description' => 'string', - 'events' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'url' => 'url', - 'description' => null, - 'events' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - 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', - 'description' => 'description', - 'events' => 'events' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'url' => 'setUrl', - 'description' => 'setDescription', - 'events' => 'setEvents' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'url' => 'getUrl', - 'description' => 'getDescription', - 'events' => 'getEvents' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * 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; - $this->container['description'] = isset($data['description']) ? $data['description'] : null; - $this->container['events'] = isset($data['events']) ? $data['events'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets url - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * @param string $url URL of the webhook - * @return $this - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * @param string $description Description of the webhook - * @return $this - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - - /** - * Gets events - * @return string[] - */ - public function getEvents() - { - return $this->container['events']; - } - - /** - * Sets events - * @param string[] $events Events triggering the webhook. Possible values for Transactional type webhook – request, delivered, hardBounce, softBounce, blocked, spam, invalid, deferred, click, opened, uniqueOpened and unsubscribed and possible values for Marketing type webhook – spam, opened, click, hardBounce, softBounce, unsubscribed, listAddition and delivered - * @return $this - */ - public function setEvents($events) - { - $this->container['events'] = $events; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - 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 - */ - 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 - */ - 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(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php old mode 100755 new mode 100644 diff --git a/test/Model/AddCredits1Test.php b/test/Model/AddCredits1Test.php deleted file mode 100755 index 7079486e..00000000 --- a/test/Model/AddCredits1Test.php +++ /dev/null @@ -1,93 +0,0 @@ -