├── .gitignore ├── tests ├── bootstrap.php └── Unit │ └── Environment │ └── GetResponseTest.php ├── src ├── Version.php ├── Operation │ ├── Model │ │ ├── AutoresponderSendSignupSettings.php │ │ ├── AutoresponderSendImmediatelySettings.php │ │ ├── RssNewsletterSendAsapSettings.php │ │ ├── AutoresponderSendCustomSettings.php │ │ ├── AutoresponderSendDelaySettings.php │ │ ├── SectionTodaySubscriptionDate.php │ │ ├── SectionAllTimeSubscriptionDate.php │ │ ├── SectionLastMonthSubscriptionDate.php │ │ ├── SectionLastWeekSubscriptionDate.php │ │ ├── SectionThisMonthSubscriptionDate.php │ │ ├── SectionThisWeekSubscriptionDate.php │ │ ├── SectionYesterdaySubscriptionDate.php │ │ ├── SectionLast30DaysSubscriptionDate.php │ │ ├── SectionLast7DaysSubscriptionDate.php │ │ ├── SectionLast2MonthsSubscriptionDate.php │ │ ├── NewTag.php │ │ ├── NewFolder.php │ │ ├── UpdateTag.php │ │ ├── NewContactTag.php │ │ ├── UpdateBlacklist.php │ │ ├── UpdateWorkflow.php │ │ ├── Blacklist.php │ │ ├── UpdateAccountBadge.php │ │ ├── UpdatePredefinedField.php │ │ ├── CreateMultimedia.php │ │ ├── FolderShort.php │ │ ├── ResourceTag.php │ │ ├── NewTransactionalEmailTag.php │ │ ├── UpsertContactTags.php │ │ ├── WorkflowStatus.php │ │ ├── AccountBadgeStatus.php │ │ ├── CampaignReference.php │ │ ├── FromFieldReference.php │ │ ├── UpsertSingleMetaField.php │ │ ├── ConditionType.php │ │ ├── ResourceCampaign.php │ │ ├── UpdateContactCampaign.php │ │ ├── UpsertMetaField.php │ │ ├── IndustryTagId.php │ │ ├── UpsertProductCategory.php │ │ ├── AccountDetailsIndustryTag.php │ │ ├── NewTax.php │ │ ├── CustomDateRange.php │ │ ├── RssNewsletterSendDailySettings.php │ │ ├── UpsertContactCustomFields.php │ │ ├── NewFromField.php │ │ ├── StringBooleanEnum.php │ │ ├── StatusEnum.php │ │ ├── UpdateSuppression.php │ │ ├── NewProductVariantImage.php │ │ ├── TriggerCustomEventAttribute.php │ │ ├── NewProductImage.php │ │ ├── MessageFlags.php │ │ ├── UpdateCustomField.php │ │ ├── MessageFlagsArray.php │ │ ├── NewContactCustomFieldValue.php │ │ ├── CrmCondition.php │ │ ├── UpdateTax.php │ │ ├── ContactCustomField.php │ │ ├── NewSuppression.php │ │ ├── WebformListElementStatistics.php │ │ ├── MessageContent.php │ │ ├── UpdateContactCustomFieldValue.php │ │ ├── TransactionalEmailRecipient.php │ │ ├── UpsertSingleContactCustomField.php │ │ ├── CustomEventAttributeDetails.php │ │ ├── AccountDetailsTimeZone.php │ │ ├── TransactionalEmailContent.php │ │ ├── UpdateCallbacks.php │ │ ├── NewShop.php │ │ ├── MessageTypeOperator.php │ │ ├── SectionCustomSubscriptionDate.php │ │ ├── UpsertSingleProductCategory.php │ │ ├── WorkflowSubscriberStatistics.php │ │ ├── RssNewsletterSendWeeklySettings.php │ │ ├── MessageEditorEnum.php │ │ ├── RssNewsletterSendMonthlySettings.php │ │ ├── NewCustomEvent.php │ │ ├── UpdateCustomEvent.php │ │ ├── AccountBillingCreditCard.php │ │ ├── NewPredefinedField.php │ │ ├── TransactionalEmailAttachment.php │ │ ├── AccountDetailsCountryCode.php │ │ ├── TagCondition.php │ │ ├── CampaignSubscriptionNotifications.php │ │ ├── MessageSentCondition.php │ │ ├── MessageNotSentCondition.php │ │ ├── LastClickDateCondition.php │ │ ├── LastOpenDateCondition.php │ │ ├── SubscriptionDateCondition.php │ │ ├── LastNewsletterDateCondition.php │ │ ├── TemplateCategoryShort.php │ │ └── LastAutoresponderDateCondition.php │ ├── Tags │ │ ├── GetTags │ │ │ ├── GetTagsSortParams.php │ │ │ ├── GetTagsFields.php │ │ │ └── GetTagsSearchQuery.php │ │ └── GetTag │ │ │ └── GetTagFields.php │ ├── Accounts │ │ ├── Badge │ │ │ └── GetBadge │ │ │ │ ├── GetBadgeFields.php │ │ │ │ └── GetBadge.php │ │ ├── Blacklists │ │ │ └── GetBlacklists │ │ │ │ ├── GetBlacklistsFields.php │ │ │ │ ├── GetBlacklistsSearchQuery.php │ │ │ │ └── GetBlacklists.php │ │ ├── Industries │ │ │ └── GetIndustries │ │ │ │ └── GetIndustriesFields.php │ │ ├── Timezones │ │ │ └── GetTimezones │ │ │ │ └── GetTimezonesFields.php │ │ ├── LoginHistory │ │ │ └── GetLoginHistory │ │ │ │ └── GetLoginHistoryFields.php │ │ ├── Billing │ │ │ └── GetBilling │ │ │ │ └── GetBillingFields.php │ │ ├── Callbacks │ │ │ └── GetCallbacks │ │ │ │ └── GetCallbacks.php │ │ └── GetAccounts │ │ │ └── GetAccountsFields.php │ ├── Shops │ │ ├── Carts │ │ │ ├── GetCarts │ │ │ │ ├── GetCartsSortParams.php │ │ │ │ ├── GetCartsFields.php │ │ │ │ └── GetCartsSearchQuery.php │ │ │ └── GetCart │ │ │ │ └── GetCartFields.php │ │ ├── Taxes │ │ │ ├── GetTaxes │ │ │ │ ├── GetTaxesSortParams.php │ │ │ │ ├── GetTaxesFields.php │ │ │ │ └── GetTaxesSearchQuery.php │ │ │ └── GetTax │ │ │ │ └── GetTaxFields.php │ │ ├── Orders │ │ │ ├── GetOrders │ │ │ │ ├── GetOrdersSortParams.php │ │ │ │ └── GetOrdersFields.php │ │ │ ├── CreateOrder │ │ │ │ └── CreateOrderAdditionalFlags.php │ │ │ ├── UpdateOrder │ │ │ │ └── UpdateOrderAdditionalFlags.php │ │ │ └── GetOrder │ │ │ │ └── GetOrderFields.php │ │ ├── GetShops │ │ │ ├── GetShopsSortParams.php │ │ │ ├── GetShopsFields.php │ │ │ └── GetShopsSearchQuery.php │ │ ├── MetaFields │ │ │ ├── GetMetaFields │ │ │ │ ├── GetMetaFieldsSortParams.php │ │ │ │ └── GetMetaFieldsFields.php │ │ │ └── GetMetaField │ │ │ │ └── GetMetaFieldFields.php │ │ ├── Products │ │ │ ├── Variants │ │ │ │ ├── GetVariants │ │ │ │ │ ├── GetVariantsSortParams.php │ │ │ │ │ └── GetVariantsFields.php │ │ │ │ └── GetVariant │ │ │ │ │ └── GetVariantFields.php │ │ │ ├── GetProducts │ │ │ │ ├── GetProductsSortParams.php │ │ │ │ └── GetProductsFields.php │ │ │ └── GetProduct │ │ │ │ └── GetProductFields.php │ │ ├── Categories │ │ │ ├── GetCategories │ │ │ │ ├── GetCategoriesSortParams.php │ │ │ │ └── GetCategoriesFields.php │ │ │ └── GetCategory │ │ │ │ └── GetCategoryFields.php │ │ └── GetShop │ │ │ └── GetShopFields.php │ ├── Pipelines │ │ ├── GetPipelines │ │ │ ├── GetPipelinesSortParams.php │ │ │ └── GetPipelinesFields.php │ │ ├── GetPipeline │ │ │ └── GetPipelineFields.php │ │ └── Stages │ │ │ ├── GetStage │ │ │ └── GetStageFields.php │ │ │ └── GetStages │ │ │ └── GetStagesFields.php │ ├── Webforms │ │ ├── GetWebforms │ │ │ ├── GetWebformsSortParams.php │ │ │ └── GetWebformsFields.php │ │ └── GetWebform │ │ │ └── GetWebformFields.php │ ├── Addresses │ │ ├── GetAddresses │ │ │ ├── GetAddressesSortParams.php │ │ │ └── GetAddressesFields.php │ │ └── GetAddress │ │ │ └── GetAddressFields.php │ ├── Contacts │ │ ├── GetContacts │ │ │ ├── GetContactsAdditionalFlags.php │ │ │ ├── GetContactsSortParams.php │ │ │ └── GetContactsFields.php │ │ ├── Activities │ │ │ └── GetActivities │ │ │ │ ├── GetActivitiesFields.php │ │ │ │ └── GetActivitiesSearchQuery.php │ │ ├── GetContact │ │ │ └── GetContactFields.php │ │ └── DeleteContact │ │ │ └── DeleteContactUrlQueryParameters.php │ ├── FromFields │ │ ├── GetFromFields │ │ │ ├── GetFromFieldsSortParams.php │ │ │ └── GetFromFieldsFields.php │ │ ├── GetFromField │ │ │ └── GetFromFieldFields.php │ │ └── DeleteFromField │ │ │ └── DeleteFromFieldUrlQueryParameters.php │ ├── Campaigns │ │ ├── Blacklists │ │ │ └── GetBlacklists │ │ │ │ ├── GetBlacklistsFields.php │ │ │ │ └── GetBlacklistsSearchQuery.php │ │ ├── GetCampaigns │ │ │ ├── GetCampaignsSortParams.php │ │ │ ├── GetCampaignsFields.php │ │ │ └── GetCampaignsSearchQuery.php │ │ ├── Contacts │ │ │ └── GetContacts │ │ │ │ ├── GetContactsSortParams.php │ │ │ │ └── GetContactsFields.php │ │ ├── GetCampaign │ │ │ └── GetCampaignFields.php │ │ └── Statistics │ │ │ └── Summary │ │ │ └── GetCampaignStatisticsSummary │ │ │ └── GetCampaignStatisticsSummarySearchQuery.php │ ├── ClickTracks │ │ ├── GetClickTracks │ │ │ ├── GetClickTracksSortParams.php │ │ │ ├── GetClickTracksFields.php │ │ │ └── GetClickTracksSearchQuery.php │ │ └── GetClickTrack │ │ │ └── GetClickTrackFields.php │ ├── CustomEvents │ │ ├── GetCustomEvents │ │ │ ├── GetCustomEventsSortParams.php │ │ │ └── GetCustomEventsFields.php │ │ └── GetCustomEvent │ │ │ └── GetCustomEventFields.php │ ├── CustomFields │ │ ├── GetCustomFields │ │ │ ├── GetCustomFieldsSortParams.php │ │ │ ├── GetCustomFieldsFields.php │ │ │ └── GetCustomFieldsSearchQuery.php │ │ └── GetCustomField │ │ │ └── GetCustomFieldFields.php │ ├── Newsletters │ │ ├── GetNewsletters │ │ │ ├── GetNewslettersSortParams.php │ │ │ └── GetNewslettersFields.php │ │ ├── Activities │ │ │ └── GetActivities │ │ │ │ └── GetActivitiesSortParams.php │ │ ├── Statistics │ │ │ ├── GetStatistics │ │ │ │ └── GetStatisticsFields.php │ │ │ └── GetNewsletterStatistics │ │ │ │ └── GetNewsletterStatisticsFields.php │ │ ├── GetNewsletter │ │ │ └── GetNewsletterFields.php │ │ └── Thumbnail │ │ │ └── GetNewsletterThumbnail │ │ │ └── GetNewsletterThumbnailUrlQueryParameters.php │ ├── Imports │ │ ├── GetImports │ │ │ ├── GetImportsSortParams.php │ │ │ ├── GetImportsFields.php │ │ │ └── GetImportsSearchQuery.php │ │ └── GetImport │ │ │ └── GetImportFields.php │ ├── GdprFields │ │ ├── GetGdprFields │ │ │ ├── GetGdprFieldsSortParams.php │ │ │ └── GetGdprFieldsFields.php │ │ └── GetGdprField │ │ │ └── GetGdprFieldFields.php │ ├── RssNewsletters │ │ ├── GetRssNewsletters │ │ │ ├── GetRssNewslettersSortParams.php │ │ │ └── GetRssNewslettersFields.php │ │ ├── GetRssNewsletter │ │ │ └── GetRssNewsletterFields.php │ │ └── Statistics │ │ │ ├── GetRssNewsletterStatistics │ │ │ └── GetRssNewsletterStatisticsFields.php │ │ │ └── GetRssNewslettersStatistics │ │ │ └── GetRssNewslettersStatisticsFields.php │ ├── Splittests │ │ ├── GetSplittests │ │ │ ├── GetSplittestsSortParams.php │ │ │ └── GetSplittestsFields.php │ │ └── GetSplittest │ │ │ └── GetSplittestFields.php │ ├── Workflow │ │ ├── GetWorkflows │ │ │ ├── GetWorkflowsSearchQuery.php │ │ │ └── GetWorkflowsFields.php │ │ └── GetWorkflow │ │ │ └── GetWorkflowFields.php │ ├── Forms │ │ ├── Variants │ │ │ └── GetVariants │ │ │ │ ├── GetVariantsSearchQuery.php │ │ │ │ └── GetVariantsFields.php │ │ ├── GetForms │ │ │ ├── GetFormsSortParams.php │ │ │ └── GetFormsFields.php │ │ └── GetForm │ │ │ └── GetFormFields.php │ ├── PredefinedFields │ │ ├── GetPredefinedFields │ │ │ ├── GetPredefinedFieldsSortParams.php │ │ │ ├── GetPredefinedFieldsFields.php │ │ │ └── GetPredefinedFieldsSearchQuery.php │ │ └── GetPredefinedField │ │ │ └── GetPredefinedFieldFields.php │ ├── FileLibrary │ │ ├── Files │ │ │ ├── GetFiles │ │ │ │ ├── GetFilesSortParams.php │ │ │ │ └── GetFilesFields.php │ │ │ └── GetFile │ │ │ │ └── GetFileFields.php │ │ ├── Folders │ │ │ └── GetFolders │ │ │ │ ├── GetFoldersSortParams.php │ │ │ │ ├── GetFoldersFields.php │ │ │ │ └── GetFoldersSearchQuery.php │ │ └── Quota │ │ │ └── GetQuota │ │ │ └── GetQuota.php │ ├── Suppressions │ │ ├── GetSuppressions │ │ │ ├── GetSuppressionsSortParams.php │ │ │ ├── GetSuppressionsFields.php │ │ │ └── GetSuppressionsSearchQuery.php │ │ └── GetSuppression │ │ │ └── GetSuppressionFields.php │ ├── Webinars │ │ ├── GetWebinars │ │ │ ├── GetWebinarsSortParams.php │ │ │ └── GetWebinarsFields.php │ │ └── GetWebinar │ │ │ └── GetWebinarFields.php │ ├── SearchContacts │ │ ├── GetSearchContacts │ │ │ ├── GetSearchContactsSortParams.php │ │ │ ├── GetSearchContactsFields.php │ │ │ └── GetSearchContactsSearchQuery.php │ │ ├── GetSearchContact │ │ │ └── GetSearchContactFields.php │ │ └── Contacts │ │ │ └── GetContacts │ │ │ └── GetContactsFields.php │ ├── SubscriptionConfirmations │ │ ├── Body │ │ │ └── GetBody │ │ │ │ ├── GetBodySearchQuery.php │ │ │ │ └── GetBodyFields.php │ │ └── Subject │ │ │ └── GetSubject │ │ │ ├── GetSubjectSearchQuery.php │ │ │ └── GetSubjectFields.php │ ├── LandingPages │ │ ├── GetLandingPages │ │ │ ├── GetLandingPagesSortParams.php │ │ │ └── GetLandingPagesFields.php │ │ └── GetLandingPage │ │ │ └── GetLandingPageFields.php │ ├── TemplateCategories │ │ ├── GetTemplateCategories │ │ │ ├── GetTemplateCategoriesFields.php │ │ │ └── GetTemplateCategoriesSearchQuery.php │ │ └── Templates │ │ │ ├── GetTemplate │ │ │ └── GetTemplateFields.php │ │ │ ├── GetTemplates │ │ │ └── GetTemplatesFields.php │ │ │ └── Colors │ │ │ └── GetColor │ │ │ └── GetColorFields.php │ ├── TransactionalEmails │ │ ├── Statistics │ │ │ └── GetStatistics │ │ │ │ └── GetStatisticsFields.php │ │ ├── GetTransactionalEmails │ │ │ └── GetTransactionalEmailsFields.php │ │ └── GetTransactionalEmail │ │ │ └── GetTransactionalEmailFields.php │ ├── Multimedia │ │ └── GetMultimedia │ │ │ └── GetMultimediaFields.php │ ├── Autoresponders │ │ ├── GetAutoresponders │ │ │ ├── GetAutorespondersSortParams.php │ │ │ └── GetAutorespondersFields.php │ │ ├── Statistics │ │ │ ├── GetAutoresponderStatistics │ │ │ │ └── GetAutoresponderStatisticsFields.php │ │ │ └── GetAutorespondersStatistics │ │ │ │ └── GetAutorespondersStatisticsFields.php │ │ ├── GetAutoresponder │ │ │ └── GetAutoresponderFields.php │ │ └── Thumbnail │ │ │ └── GetAutoresponderThumbnail │ │ │ └── GetAutoresponderThumbnailUrlQueryParameters.php │ └── Tracking │ │ └── GetTracking │ │ └── GetTracking.php ├── OperationVersionTrait.php ├── Environment │ ├── GetResponseEnterprisePL.php │ ├── GetResponseEnterpriseUS.php │ └── GetResponse.php └── Authentication │ ├── ApiKey.php │ └── OAuth.php ├── composer.json ├── phpunit.xml ├── CHANGELOG.md ├── docs └── lib │ ├── create_resource.md │ └── delete_resource.md └── examples ├── contactsGetWithDebugger.php └── contactsGetWithQuery.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | composer.lock 3 | -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | setSendAtHour($sendAtHour); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Operation/Accounts/Badge/GetBadge/GetBadgeFields.php: -------------------------------------------------------------------------------- 1 | setDelayInHours($delayInHours); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/OperationVersionTrait.php: -------------------------------------------------------------------------------- 1 | name = $name; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'name' => $this->name, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/NewFolder.php: -------------------------------------------------------------------------------- 1 | name = $name; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'name' => $this->name, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdateTag.php: -------------------------------------------------------------------------------- 1 | name = $name; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'name' => $this->name, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/TransactionalEmails/GetTransactionalEmails/GetTransactionalEmailsFields.php: -------------------------------------------------------------------------------- 1 | tagId = $tagId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'tagId' => $this->tagId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdateBlacklist.php: -------------------------------------------------------------------------------- 1 | masks = $masks; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'masks' => $this->masks, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/CustomFields/GetCustomField/GetCustomFieldFields.php: -------------------------------------------------------------------------------- 1 | status = $status; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'status' => $this->status, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/TransactionalEmails/GetTransactionalEmail/GetTransactionalEmailFields.php: -------------------------------------------------------------------------------- 1 | masks = $masks; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'masks' => $this->masks, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdateAccountBadge.php: -------------------------------------------------------------------------------- 1 | status = $status; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'status' => $this->status, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdatePredefinedField.php: -------------------------------------------------------------------------------- 1 | value = $value; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'value' => $this->value, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Shops/Categories/GetCategory/GetCategoryFields.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Operation/Model/CreateMultimedia.php: -------------------------------------------------------------------------------- 1 | file = $file; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'file' => $this->file, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/FolderShort.php: -------------------------------------------------------------------------------- 1 | folderId = $folderId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'folderId' => $this->folderId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/ResourceTag.php: -------------------------------------------------------------------------------- 1 | tagId = $tagId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'tagId' => $this->tagId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Shops/Categories/GetCategories/GetCategoriesFields.php: -------------------------------------------------------------------------------- 1 | tagId = $tagId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'tagId' => $this->tagId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/UpsertContactTags.php: -------------------------------------------------------------------------------- 1 | tags = $tags; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'tags' => $this->tags, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/SearchContacts/Contacts/GetContacts/GetContactsFields.php: -------------------------------------------------------------------------------- 1 | status = $status; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'status' => $this->status, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Webinars/GetWebinar/GetWebinarFields.php: -------------------------------------------------------------------------------- 1 | status = $status; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'status' => $this->status, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/CampaignReference.php: -------------------------------------------------------------------------------- 1 | campaignId = $campaignId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'campaignId' => $this->campaignId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/FileLibrary/Files/GetFile/GetFileFields.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Operation/CustomFields/GetCustomFields/GetCustomFieldsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Operation/Model/FromFieldReference.php: -------------------------------------------------------------------------------- 1 | fromFieldId = $fromFieldId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'fromFieldId' => $this->fromFieldId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Accounts/Blacklists/GetBlacklists/GetBlacklistsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('mask', $mask); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Operation/Model/UpsertSingleMetaField.php: -------------------------------------------------------------------------------- 1 | metaFieldId = $metaFieldId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'metaFieldId' => $this->metaFieldId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Campaigns/Blacklists/GetBlacklists/GetBlacklistsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('mask', $mask); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Operation/Forms/GetForm/GetFormFields.php: -------------------------------------------------------------------------------- 1 | conditionType = $conditionType; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'conditionType' => $this->conditionType, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/ResourceCampaign.php: -------------------------------------------------------------------------------- 1 | campaignId = $campaignId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'campaignId' => $this->campaignId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Shops/Carts/GetCart/GetCartFields.php: -------------------------------------------------------------------------------- 1 | buildUrlFromTemplate(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Accounts/Badge/GetBadge/GetBadge.php: -------------------------------------------------------------------------------- 1 | buildUrlFromTemplate(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Accounts/Billing/GetBilling/GetBillingFields.php: -------------------------------------------------------------------------------- 1 | campaignId = $campaignId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'campaignId' => $this->campaignId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/FileLibrary/Quota/GetQuota/GetQuota.php: -------------------------------------------------------------------------------- 1 | buildUrlFromTemplate(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/UpsertMetaField.php: -------------------------------------------------------------------------------- 1 | metaFields = $metaFields; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'metaFields' => $this->metaFields, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Campaigns/GetCampaign/GetCampaignFields.php: -------------------------------------------------------------------------------- 1 | industryTagId = $industryTagId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'industryTagId' => $this->industryTagId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Shops/Products/GetProduct/GetProductFields.php: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | src/ 16 | 17 | 18 | 19 | 20 | tests/Unit 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/Operation/Accounts/Callbacks/GetCallbacks/GetCallbacks.php: -------------------------------------------------------------------------------- 1 | buildUrlFromTemplate(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/UpsertProductCategory.php: -------------------------------------------------------------------------------- 1 | categories = $categories; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'categories' => $this->categories, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Forms/Variants/GetVariants/GetVariantsFields.php: -------------------------------------------------------------------------------- 1 | industryTagId = $industryTagId; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'industryTagId' => $this->industryTagId, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/NewTax.php: -------------------------------------------------------------------------------- 1 | name = $name; 22 | $this->rate = $rate; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'name' => $this->name, 30 | 'rate' => $this->rate, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Newsletters/Statistics/GetStatistics/GetStatisticsFields.php: -------------------------------------------------------------------------------- 1 | from = $from; 22 | $this->to = $to; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'from' => $this->from, 30 | 'to' => $this->to, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Model/RssNewsletterSendDailySettings.php: -------------------------------------------------------------------------------- 1 | sendAtHour = $sendAtHour; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'sendAtHour' => $this->sendAtHour, 25 | ]; 26 | 27 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Environment/GetResponse.php: -------------------------------------------------------------------------------- 1 | customFieldValues = $customFieldValues; 18 | } 19 | 20 | 21 | public function jsonSerialize(): array 22 | { 23 | $data = [ 24 | 'customFieldValues' => $this->customFieldValues, 25 | ]; 26 | 27 | return $this->filterUnsetFields($data); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/NewFromField.php: -------------------------------------------------------------------------------- 1 | email = $email; 22 | $this->name = $name; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'email' => $this->email, 30 | 'name' => $this->name, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Model/StringBooleanEnum.php: -------------------------------------------------------------------------------- 1 | value; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/Operation/Campaigns/Statistics/Summary/GetCampaignStatisticsSummary/GetCampaignStatisticsSummarySearchQuery.php: -------------------------------------------------------------------------------- 1 | set('campaignId', $campaignId); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Operation/ClickTracks/GetClickTracks/GetClickTracksSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('createdOn', $createdOn->toArray()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Contacts/GetContacts/GetContactsFields.php: -------------------------------------------------------------------------------- 1 | value; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/Operation/FromFields/DeleteFromField/DeleteFromFieldUrlQueryParameters.php: -------------------------------------------------------------------------------- 1 | set('fromFieldIdToReplaceWith', $fromFieldIdToReplaceWith); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Operation/RssNewsletters/GetRssNewsletter/GetRssNewsletterFields.php: -------------------------------------------------------------------------------- 1 | = 8.0 and <= 8.2 5 | * PHP versions < 7.3 unsupported 6 | * phpunit version upgrade to 9.5 7 | 8 | ## 2.0.0 - 2020-03-02 9 | 10 | * Add operations for: 11 | * Click Tracks 12 | * File Library 13 | * Newsletter Activities 14 | * Transactional Emails 15 | * Remove unused classes and methods 16 | * Code clean-up 17 | 18 | Read more in [Upgrade Guide](UPGRADING.md) 19 | 20 | ## 1.2.1 - 2019-06-07 21 | 22 | * Improve documentation 23 | 24 | ## 1.2.0 - 2019-04-30 25 | 26 | * Add origin 'webinar' to contact search 27 | 28 | ## 1.1.1 - 2019-04-10 29 | 30 | * Fix example composer.json and version 31 | 32 | ## 1.1.0 - 2019-04-10 33 | 34 | * Added A/B tests 35 | * Added Imports 36 | * Added Webinars 37 | 38 | ## 1.0.0 - 2019-03-15 39 | 40 | Initial release 41 | -------------------------------------------------------------------------------- /src/Operation/Contacts/Activities/GetActivities/GetActivitiesSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('createdOn', $createdOn->toArray()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdateSuppression.php: -------------------------------------------------------------------------------- 1 | name = $name; 22 | $this->masks = $masks; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'name' => $this->name, 30 | 'masks' => $this->masks, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Newsletters/Statistics/GetNewsletterStatistics/GetNewsletterStatisticsFields.php: -------------------------------------------------------------------------------- 1 | src = $src; 22 | $this->position = $position; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'src' => $this->src, 30 | 'position' => $this->position, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Model/TriggerCustomEventAttribute.php: -------------------------------------------------------------------------------- 1 | name = $name; 22 | $this->value = $value; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'name' => $this->name, 30 | 'value' => $this->value, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Autoresponders/Statistics/GetAutoresponderStatistics/GetAutoresponderStatisticsFields.php: -------------------------------------------------------------------------------- 1 | call($createContactOperation); 21 | 22 | if ($response->isSuccess()) { 23 | print 'OK'; 24 | } 25 | ``` 26 | 27 | Output: 28 | 29 | ```plain 30 | OK 31 | ``` 32 | 33 | ___ 34 | 35 | [Back](../../README.md) 36 | -------------------------------------------------------------------------------- /src/Operation/Accounts/GetAccounts/GetAccountsFields.php: -------------------------------------------------------------------------------- 1 | src = $src; 22 | $this->position = $position; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'src' => $this->src, 30 | 'position' => $this->position, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Model/MessageFlags.php: -------------------------------------------------------------------------------- 1 | value; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/Operation/Autoresponders/GetAutoresponder/GetAutoresponderFields.php: -------------------------------------------------------------------------------- 1 | hidden = $hidden; 22 | $this->values = $values; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'hidden' => $this->hidden, 30 | 'values' => $this->values, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Newsletters/GetNewsletters/GetNewslettersFields.php: -------------------------------------------------------------------------------- 1 | value; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/Operation/Contacts/GetContact/GetContactFields.php: -------------------------------------------------------------------------------- 1 | customFieldId = $customFieldId; 22 | $this->value = $value; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'customFieldId' => $this->customFieldId, 30 | 'value' => $this->value, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Newsletters/GetNewsletter/GetNewsletterFields.php: -------------------------------------------------------------------------------- 1 | pipelineScope = $pipelineScope; 21 | $this->stageScope = $stageScope; 22 | } 23 | 24 | 25 | public function jsonSerialize(): array 26 | { 27 | $data = [ 28 | 'pipelineScope' => $this->pipelineScope, 29 | 'stageScope' => $this->stageScope, 30 | ]; 31 | 32 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdateTax.php: -------------------------------------------------------------------------------- 1 | name = $name; 21 | } 22 | 23 | 24 | /** 25 | * @param float $rate 26 | */ 27 | public function setRate($rate) 28 | { 29 | $this->rate = $rate; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'name' => $this->name, 37 | 'rate' => $this->rate, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/ContactCustomField.php: -------------------------------------------------------------------------------- 1 | customFieldId = $customFieldId; 22 | $this->values = $values; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'customFieldId' => $this->customFieldId, 30 | 'values' => $this->values, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Model/NewSuppression.php: -------------------------------------------------------------------------------- 1 | name = $name; 21 | } 22 | 23 | 24 | /** 25 | * @param array $masks 26 | */ 27 | public function setMasks(array $masks) 28 | { 29 | $this->masks = $masks; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'name' => $this->name, 37 | 'masks' => $this->masks, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/WebformListElementStatistics.php: -------------------------------------------------------------------------------- 1 | opened = $opened; 22 | $this->subscribed = $subscribed; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'opened' => $this->opened, 30 | 'subscribed' => $this->subscribed, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/TemplateCategories/GetTemplateCategories/GetTemplateCategoriesSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('type', 'predesigned'); 26 | } 27 | 28 | 29 | /** 30 | * @return $this 31 | * @throws \InvalidArgumentException 32 | */ 33 | public function whereTypeIsLayouts() 34 | { 35 | return $this->set('type', 'layouts'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/Operation/Model/MessageContent.php: -------------------------------------------------------------------------------- 1 | html = $html; 21 | } 22 | 23 | 24 | /** 25 | * @param string $plain 26 | */ 27 | public function setPlain($plain) 28 | { 29 | $this->plain = $plain; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'html' => $this->html, 37 | 'plain' => $this->plain, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdateContactCustomFieldValue.php: -------------------------------------------------------------------------------- 1 | customFieldId = $customFieldId; 22 | $this->value = $value; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'customFieldId' => $this->customFieldId, 30 | 'value' => $this->value, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Newsletters/Thumbnail/GetNewsletterThumbnail/GetNewsletterThumbnailUrlQueryParameters.php: -------------------------------------------------------------------------------- 1 | set('size', 'default'); 26 | } 27 | 28 | 29 | /** 30 | * @return $this 31 | * @throws \InvalidArgumentException 32 | */ 33 | public function whereSizeIsSmall() 34 | { 35 | return $this->set('size', 'small'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/Operation/Model/TransactionalEmailRecipient.php: -------------------------------------------------------------------------------- 1 | email = $email; 21 | } 22 | 23 | 24 | /** 25 | * @param string $name 26 | */ 27 | public function setName($name) 28 | { 29 | $this->name = $name; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'email' => $this->email, 37 | 'name' => $this->name, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/UpsertSingleContactCustomField.php: -------------------------------------------------------------------------------- 1 | customFieldId = $customFieldId; 22 | $this->value = $value; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'customFieldId' => $this->customFieldId, 30 | 'value' => $this->value, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Shops/Products/Variants/GetVariant/GetVariantFields.php: -------------------------------------------------------------------------------- 1 | name = $name; 21 | } 22 | 23 | 24 | /** 25 | * @param string $type 26 | */ 27 | public function setType($type) 28 | { 29 | $this->type = $type; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'name' => $this->name, 37 | 'type' => $this->type, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Autoresponders/Thumbnail/GetAutoresponderThumbnail/GetAutoresponderThumbnailUrlQueryParameters.php: -------------------------------------------------------------------------------- 1 | set('size', 'default'); 26 | } 27 | 28 | 29 | /** 30 | * @return $this 31 | * @throws \InvalidArgumentException 32 | */ 33 | public function whereSizeIsSmall() 34 | { 35 | return $this->set('size', 'small'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/Operation/Model/AccountDetailsTimeZone.php: -------------------------------------------------------------------------------- 1 | name = $name; 21 | } 22 | 23 | 24 | /** 25 | * @param string $offset 26 | */ 27 | public function setOffset($offset) 28 | { 29 | $this->offset = $offset; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'name' => $this->name, 37 | 'offset' => $this->offset, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/TransactionalEmailContent.php: -------------------------------------------------------------------------------- 1 | plain = $plain; 21 | } 22 | 23 | 24 | /** 25 | * @param string $html 26 | */ 27 | public function setHtml($html) 28 | { 29 | $this->html = $html; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'plain' => $this->plain, 37 | 'html' => $this->html, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Authentication/ApiKey.php: -------------------------------------------------------------------------------- 1 | apiKey = $apiKey; 28 | } 29 | 30 | /** 31 | * @param RequestInterface $request 32 | * @return RequestInterface 33 | */ 34 | public function authenticate(RequestInterface $request) 35 | { 36 | return $request->withHeader('X-Auth-Token', self::HEADER_PREFIX . $this->apiKey); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/Operation/Campaigns/GetCampaigns/GetCampaignsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 28 | } 29 | 30 | 31 | /** 32 | * @param string $isDefault 33 | * @return $this 34 | * @throws \InvalidArgumentException 35 | */ 36 | public function whereIsDefault($isDefault) 37 | { 38 | return $this->set('isDefault', $isDefault); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdateCallbacks.php: -------------------------------------------------------------------------------- 1 | url = $url; 21 | } 22 | 23 | 24 | /** 25 | * @param CallbackActions $actions 26 | */ 27 | public function setActions(CallbackActions $actions) 28 | { 29 | $this->actions = $actions; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'url' => $this->url, 37 | 'actions' => $this->actions, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Authentication/OAuth.php: -------------------------------------------------------------------------------- 1 | accessToken = $accessToken; 28 | } 29 | 30 | /** 31 | * @param RequestInterface $request 32 | * @return RequestInterface 33 | */ 34 | public function authenticate(RequestInterface $request) 35 | { 36 | return $request->withHeader('Authorization', self::HEADER_PREFIX . $this->accessToken); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/Operation/Shops/Orders/GetOrder/GetOrderFields.php: -------------------------------------------------------------------------------- 1 | name = $name; 26 | $this->locale = $locale; 27 | $this->currency = $currency; 28 | } 29 | 30 | 31 | public function jsonSerialize(): array 32 | { 33 | $data = [ 34 | 'name' => $this->name, 35 | 'locale' => $this->locale, 36 | 'currency' => $this->currency, 37 | ]; 38 | 39 | return $this->filterUnsetFields($data); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/Shops/Orders/GetOrders/GetOrdersFields.php: -------------------------------------------------------------------------------- 1 | setIpAddress('127.0.0.1'); 19 | $deleteContactOperation->setUrlParameterQuery($deleteContactParams); 20 | 21 | $client = GetresponseClientFactory::createWithApiKey('my_api_key'); 22 | $response = $client->call($deleteContactOperation); 23 | 24 | if ($response->isSuccess()) { 25 | print 'OK'; 26 | } 27 | ``` 28 | ___ 29 | 30 | [Back](../../README.md) 31 | -------------------------------------------------------------------------------- /src/Operation/Model/MessageTypeOperator.php: -------------------------------------------------------------------------------- 1 | value; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/Operation/Model/SectionCustomSubscriptionDate.php: -------------------------------------------------------------------------------- 1 | customDate = $customDate; 20 | } 21 | 22 | 23 | public function jsonSerialize(): array 24 | { 25 | $data = [ 26 | 'customDate' => $this->customDate, 27 | ]; 28 | 29 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/Unit/Environment/GetResponseTest.php: -------------------------------------------------------------------------------- 1 | getUrl()); 23 | } 24 | 25 | /** 26 | * @test 27 | */ 28 | public function shouldNotChangeRequestDuringProcessing() 29 | { 30 | $systemUnderTest = new GetResponse(); 31 | 32 | $request = new Request('GET', 'https://api.getresponse.com/v3/accounts'); 33 | 34 | self::assertSame($request, $systemUnderTest->processRequest($request)); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/Operation/Contacts/DeleteContact/DeleteContactUrlQueryParameters.php: -------------------------------------------------------------------------------- 1 | set('messageId', $messageId); 28 | } 29 | 30 | 31 | /** 32 | * @param string $ipAddress 33 | * @return $this 34 | * @throws \InvalidArgumentException 35 | */ 36 | public function whereIpAddress($ipAddress) 37 | { 38 | return $this->set('ipAddress', $ipAddress); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/UpsertSingleProductCategory.php: -------------------------------------------------------------------------------- 1 | categoryId = $categoryId; 21 | } 22 | 23 | 24 | /** 25 | * @param bool $isDefault 26 | */ 27 | public function setIsDefault($isDefault) 28 | { 29 | $this->isDefault = $isDefault; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'categoryId' => $this->categoryId, 37 | 'isDefault' => $this->isDefault, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/WorkflowSubscriberStatistics.php: -------------------------------------------------------------------------------- 1 | completedCount = $completedCount; 22 | $this->inProgressCount = $inProgressCount; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'completedCount' => $this->completedCount, 30 | 'inProgressCount' => $this->inProgressCount, 31 | ]; 32 | 33 | return $this->filterUnsetFields($data); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Model/RssNewsletterSendWeeklySettings.php: -------------------------------------------------------------------------------- 1 | sendAtHour = $sendAtHour; 22 | $this->sendAtWeekDay = $sendAtWeekDay; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'sendAtHour' => $this->sendAtHour, 30 | 'sendAtWeekDay' => $this->sendAtWeekDay, 31 | ]; 32 | 33 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/Model/MessageEditorEnum.php: -------------------------------------------------------------------------------- 1 | value; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/Operation/Model/RssNewsletterSendMonthlySettings.php: -------------------------------------------------------------------------------- 1 | sendAtHour = $sendAtHour; 22 | $this->sendAtMonthDay = $sendAtMonthDay; 23 | } 24 | 25 | 26 | public function jsonSerialize(): array 27 | { 28 | $data = [ 29 | 'sendAtHour' => $this->sendAtHour, 30 | 'sendAtMonthDay' => $this->sendAtMonthDay, 31 | ]; 32 | 33 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Operation/PredefinedFields/GetPredefinedFields/GetPredefinedFieldsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 28 | } 29 | 30 | 31 | /** 32 | * @param string $campaignId 33 | * @return $this 34 | * @throws \InvalidArgumentException 35 | */ 36 | public function whereCampaignId($campaignId) 37 | { 38 | return $this->set('campaignId', $campaignId); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/NewCustomEvent.php: -------------------------------------------------------------------------------- 1 | name = $name; 21 | } 22 | 23 | 24 | /** 25 | * @param CustomEventAttributeDetails[] $attributes 26 | */ 27 | public function setAttributes(array $attributes) 28 | { 29 | $this->attributes = $attributes; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'name' => $this->name, 37 | 'attributes' => $this->attributes, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/UpdateCustomEvent.php: -------------------------------------------------------------------------------- 1 | name = $name; 21 | } 22 | 23 | 24 | /** 25 | * @param CustomEventAttributeDetails[] $attributes 26 | */ 27 | public function setAttributes(array $attributes) 28 | { 29 | $this->attributes = $attributes; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'name' => $this->name, 37 | 'attributes' => $this->attributes, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Tags/GetTags/GetTagsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 29 | } 30 | 31 | 32 | /** 33 | * @param DateRangeSearch $createdAt 34 | * @return $this 35 | * @throws \InvalidArgumentException 36 | */ 37 | public function whereCreatedAt(DateRangeSearch $createdAt) 38 | { 39 | return $this->set('createdAt', $createdAt->toArray()); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/Model/AccountBillingCreditCard.php: -------------------------------------------------------------------------------- 1 | number = $number; 21 | } 22 | 23 | 24 | /** 25 | * @param string $expirationDate 26 | */ 27 | public function setExpirationDate($expirationDate) 28 | { 29 | $this->expirationDate = $expirationDate; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'number' => $this->number, 37 | 'expirationDate' => $this->expirationDate, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/NewPredefinedField.php: -------------------------------------------------------------------------------- 1 | name = $name; 26 | $this->value = $value; 27 | $this->campaign = $campaign; 28 | } 29 | 30 | 31 | public function jsonSerialize(): array 32 | { 33 | $data = [ 34 | 'name' => $this->name, 35 | 'value' => $this->value, 36 | 'campaign' => $this->campaign, 37 | ]; 38 | 39 | return $this->filterUnsetFields($data); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /examples/contactsGetWithDebugger.php: -------------------------------------------------------------------------------- 1 | setPagination(new Pagination(1, 1)); 19 | 20 | $getContactsOperation2 = new GetContacts(); 21 | $getContactsOperation2->setPagination(new Pagination(2, 1)); 22 | 23 | /** 24 | * we will get much additional info - for development purposes only! 25 | */ 26 | $debugger = GetresponseClientFactory::createDebugger($client); 27 | 28 | $operationCollection = $client->callMany([$getContactsOperation1, $getContactsOperation2]); 29 | 30 | // display dump 31 | $debugger->dump(); -------------------------------------------------------------------------------- /src/Operation/Shops/Taxes/GetTaxes/GetTaxesSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 29 | } 30 | 31 | 32 | /** 33 | * @param DateRangeSearch $createdOn 34 | * @return $this 35 | * @throws \InvalidArgumentException 36 | */ 37 | public function whereCreatedOn(DateRangeSearch $createdOn) 38 | { 39 | return $this->set('createdOn', $createdOn->toArray()); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/LandingPages/GetLandingPage/GetLandingPageFields.php: -------------------------------------------------------------------------------- 1 | fileName = $fileName; 26 | $this->mimeType = $mimeType; 27 | $this->content = $content; 28 | } 29 | 30 | 31 | public function jsonSerialize(): array 32 | { 33 | $data = [ 34 | 'fileName' => $this->fileName, 35 | 'mimeType' => $this->mimeType, 36 | 'content' => $this->content, 37 | ]; 38 | 39 | return $this->filterUnsetFields($data); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/Model/AccountDetailsCountryCode.php: -------------------------------------------------------------------------------- 1 | countryCodeId = $countryCodeId; 21 | } 22 | 23 | 24 | /** 25 | * @param string $countryCode 26 | */ 27 | public function setCountryCode($countryCode) 28 | { 29 | $this->countryCode = $countryCode; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'countryCodeId' => $this->countryCodeId, 37 | 'countryCode' => $this->countryCode, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Operation/Model/TagCondition.php: -------------------------------------------------------------------------------- 1 | operatorType = $operatorType; 25 | $this->operator = $operator; 26 | $this->value = $value; 27 | } 28 | 29 | 30 | public function jsonSerialize(): array 31 | { 32 | $data = [ 33 | 'operatorType' => $this->operatorType, 34 | 'operator' => $this->operator, 35 | 'value' => $this->value, 36 | ]; 37 | 38 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/CampaignSubscriptionNotifications.php: -------------------------------------------------------------------------------- 1 | status = $status; 21 | } 22 | 23 | 24 | /** 25 | * @param FromFieldReference[] $recipients 26 | */ 27 | public function setRecipients(array $recipients) 28 | { 29 | $this->recipients = $recipients; 30 | } 31 | 32 | 33 | public function jsonSerialize(): array 34 | { 35 | $data = [ 36 | 'status' => $this->status, 37 | 'recipients' => $this->recipients, 38 | ]; 39 | 40 | return $this->filterUnsetFields($data); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /examples/contactsGetWithQuery.php: -------------------------------------------------------------------------------- 1 | whereName('example'); 24 | $getContactsOperation->setQuery($searchQuery); 25 | 26 | /** 27 | * some sorting would be useful? 28 | */ 29 | $sort = new GetContactsSortParams(); 30 | $sort->sortAscBy('createdOn'); 31 | 32 | $result = $client->call($getContactsOperation); 33 | 34 | var_dump($result->getData()); -------------------------------------------------------------------------------- /src/Operation/Suppressions/GetSuppressions/GetSuppressionsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 29 | } 30 | 31 | 32 | /** 33 | * @param DateRangeSearch $createdOn 34 | * @return $this 35 | * @throws \InvalidArgumentException 36 | */ 37 | public function whereCreatedOn(DateRangeSearch $createdOn) 38 | { 39 | return $this->set('createdOn', $createdOn->toArray()); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/Imports/GetImports/GetImportsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('campaignId', $campaignId); 29 | } 30 | 31 | 32 | /** 33 | * @param DateRangeSearch $createdOn 34 | * @return $this 35 | * @throws \InvalidArgumentException 36 | */ 37 | public function whereCreatedOn(DateRangeSearch $createdOn) 38 | { 39 | return $this->set('createdOn', $createdOn->toArray()); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/Model/MessageSentCondition.php: -------------------------------------------------------------------------------- 1 | operatorType = $operatorType; 25 | $this->operator = $operator; 26 | $this->value = $value; 27 | } 28 | 29 | 30 | public function jsonSerialize(): array 31 | { 32 | $data = [ 33 | 'operatorType' => $this->operatorType, 34 | 'operator' => $this->operator, 35 | 'value' => $this->value, 36 | ]; 37 | 38 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Shops/Carts/GetCarts/GetCartsSearchQuery.php: -------------------------------------------------------------------------------- 1 | set('externalId', $externalId); 29 | } 30 | 31 | 32 | /** 33 | * @param DateRangeSearch $createdOn 34 | * @return $this 35 | * @throws \InvalidArgumentException 36 | */ 37 | public function whereCreatedOn(DateRangeSearch $createdOn) 38 | { 39 | return $this->set('createdOn', $createdOn->toArray()); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/Splittests/GetSplittest/GetSplittestFields.php: -------------------------------------------------------------------------------- 1 | set('name', $name); 29 | } 30 | 31 | 32 | /** 33 | * @param DateRangeSearch $createdOn 34 | * @return $this 35 | * @throws \InvalidArgumentException 36 | */ 37 | public function whereCreatedOn(DateRangeSearch $createdOn) 38 | { 39 | return $this->set('createdOn', $createdOn->toArray()); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/Splittests/GetSplittests/GetSplittestsFields.php: -------------------------------------------------------------------------------- 1 | operatorType = $operatorType; 25 | $this->operator = $operator; 26 | $this->value = $value; 27 | } 28 | 29 | 30 | public function jsonSerialize(): array 31 | { 32 | $data = [ 33 | 'operatorType' => $this->operatorType, 34 | 'operator' => $this->operator, 35 | 'value' => $this->value, 36 | ]; 37 | 38 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/LastClickDateCondition.php: -------------------------------------------------------------------------------- 1 | operatorType = $operatorType; 25 | $this->operator = $operator; 26 | $this->value = $value; 27 | } 28 | 29 | 30 | public function jsonSerialize(): array 31 | { 32 | $data = [ 33 | 'operatorType' => $this->operatorType, 34 | 'operator' => $this->operator, 35 | 'value' => $this->value, 36 | ]; 37 | 38 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/LastOpenDateCondition.php: -------------------------------------------------------------------------------- 1 | operatorType = $operatorType; 25 | $this->operator = $operator; 26 | $this->value = $value; 27 | } 28 | 29 | 30 | public function jsonSerialize(): array 31 | { 32 | $data = [ 33 | 'operatorType' => $this->operatorType, 34 | 'operator' => $this->operator, 35 | 'value' => $this->value, 36 | ]; 37 | 38 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/SubscriptionDateCondition.php: -------------------------------------------------------------------------------- 1 | operatorType = $operatorType; 25 | $this->operator = $operator; 26 | $this->value = $value; 27 | } 28 | 29 | 30 | public function jsonSerialize(): array 31 | { 32 | $data = [ 33 | 'operatorType' => $this->operatorType, 34 | 'operator' => $this->operator, 35 | 'value' => $this->value, 36 | ]; 37 | 38 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/LastNewsletterDateCondition.php: -------------------------------------------------------------------------------- 1 | operatorType = $operatorType; 25 | $this->operator = $operator; 26 | $this->value = $value; 27 | } 28 | 29 | 30 | public function jsonSerialize(): array 31 | { 32 | $data = [ 33 | 'operatorType' => $this->operatorType, 34 | 'operator' => $this->operator, 35 | 'value' => $this->value, 36 | ]; 37 | 38 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Operation/Model/TemplateCategoryShort.php: -------------------------------------------------------------------------------- 1 | categoryId = $categoryId; 26 | $this->name = $name; 27 | $this->templates = $templates; 28 | } 29 | 30 | 31 | public function jsonSerialize(): array 32 | { 33 | $data = [ 34 | 'categoryId' => $this->categoryId, 35 | 'name' => $this->name, 36 | 'templates' => $this->templates, 37 | ]; 38 | 39 | return $this->filterUnsetFields($data); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Operation/Accounts/Blacklists/GetBlacklists/GetBlacklists.php: -------------------------------------------------------------------------------- 1 | query = $query; 33 | return $this; 34 | } 35 | 36 | 37 | /** 38 | * @return string 39 | */ 40 | public function getUrl() 41 | { 42 | return $this->buildUrlFromTemplate() . $this->buildQueryString($this->query, null, null); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/Operation/Model/LastAutoresponderDateCondition.php: -------------------------------------------------------------------------------- 1 | operatorType = $operatorType; 25 | $this->operator = $operator; 26 | $this->value = $value; 27 | } 28 | 29 | 30 | public function jsonSerialize(): array 31 | { 32 | $data = [ 33 | 'operatorType' => $this->operatorType, 34 | 'operator' => $this->operator, 35 | 'value' => $this->value, 36 | ]; 37 | 38 | return array_merge(parent::jsonSerialize(), $this->filterUnsetFields($data)); 39 | } 40 | } 41 | --------------------------------------------------------------------------------