diff --git a/README.md b/README.md index 76b4280..2d2acce 100644 --- a/README.md +++ b/README.md @@ -79,10 +79,11 @@ Send a message to your user: ```php use Braze\Braze; +use Braze\Model\MessagesSendPostBody; $braze = new Braze('YOUR_API_URL', 'YOUR_API_KEY'); -$braze->client->postMessagesSend((object) [ +$braze->client->postMessagesSend(new MessagesSendPostBody([ 'external_user_ids' => ['your_external_user_id'], 'messages' => [ 'email' => [ @@ -91,7 +92,7 @@ $braze->client->postMessagesSend((object) [ 'email_template_id' => 'your_email_template_id', ], ], -]); +])); ``` Handle an API error: diff --git a/braze-specification b/braze-specification index c2edc38..29a5300 160000 --- a/braze-specification +++ b/braze-specification @@ -1 +1 @@ -Subproject commit c2edc3860f9d7efd58711acf2d87fed74d31d33c +Subproject commit 29a53002cec0f6d4070a3ec93f6a804557da49f3 diff --git a/lib/Client.php b/lib/Client.php index d1c9f78..cf67fa9 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -67,7 +67,7 @@ class Client extends \Braze\Runtime\Client\Client * @throws \Braze\Exception\PostTemplatesEmailUpdateTooManyRequestsException * @throws \Braze\Exception\PostTemplatesEmailUpdateInternalServerErrorException */ - public function postTemplatesEmailUpdate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postTemplatesEmailUpdate(Model\TemplatesEmailUpdatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostTemplatesEmailUpdate($requestBody, $headerParameters), $fetch); } @@ -204,7 +204,7 @@ public function postTemplatesEmailUpdate(\stdClass $requestBody = null, array $h * @throws \Braze\Exception\PostUsersTrackTooManyRequestsException * @throws \Braze\Exception\PostUsersTrackInternalServerErrorException */ - public function postUsersTrack(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersTrack(Model\UsersTrackPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersTrack($requestBody, $headerParameters), $fetch); } @@ -599,7 +599,7 @@ public function getCatalog(array $headerParameters = [], string $fetch = self::F * @throws \Braze\Exception\PostCatalogTooManyRequestsException * @throws \Braze\Exception\PostCatalogInternalServerErrorException */ - public function postCatalog(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCatalog(Model\CatalogsPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCatalog($requestBody, $headerParameters), $fetch); } @@ -967,7 +967,7 @@ public function getCatalogsByCatalogNameItem(string $catalogName, array $headerP * @throws \Braze\Exception\PatchCatalogsByCatalogNameItemTooManyRequestsException * @throws \Braze\Exception\PatchCatalogsByCatalogNameItemInternalServerErrorException */ - public function patchCatalogsByCatalogNameItem(string $catalogName, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function patchCatalogsByCatalogNameItem(string $catalogName, Model\CatalogsCatalogNameItemsPatchBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PatchCatalogsByCatalogNameItem($catalogName, $requestBody, $headerParameters), $fetch); } @@ -1110,7 +1110,7 @@ public function patchCatalogsByCatalogNameItem(string $catalogName, \stdClass $r * @throws \Braze\Exception\PostCatalogsByCatalogNameItemTooManyRequestsException * @throws \Braze\Exception\PostCatalogsByCatalogNameItemInternalServerErrorException */ - public function postCatalogsByCatalogNameItem(string $catalogName, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCatalogsByCatalogNameItem(string $catalogName, Model\CatalogsCatalogNameItemsPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCatalogsByCatalogNameItem($catalogName, $requestBody, $headerParameters), $fetch); } @@ -1218,7 +1218,7 @@ public function postCatalogsByCatalogNameItem(string $catalogName, \stdClass $re * @throws \Braze\Exception\PutCatalogsByCatalogNameItemTooManyRequestsException * @throws \Braze\Exception\PutCatalogsByCatalogNameItemInternalServerErrorException */ - public function putCatalogsByCatalogNameItem(string $catalogName, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function putCatalogsByCatalogNameItem(string $catalogName, Model\CatalogsCatalogNameItemsPutBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PutCatalogsByCatalogNameItem($catalogName, $requestBody, $headerParameters), $fetch); } @@ -1547,7 +1547,7 @@ public function getCatalogsByCatalogNameItemByItemId(string $catalogName, string * @throws \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdTooManyRequestsException * @throws \Braze\Exception\PatchCatalogsByCatalogNameItemByItemIdInternalServerErrorException */ - public function patchCatalogsByCatalogNameItemByItemId(string $catalogName, string $itemId, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function patchCatalogsByCatalogNameItemByItemId(string $catalogName, string $itemId, Model\CatalogsCatalogNameItemsItemIdPatchBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PatchCatalogsByCatalogNameItemByItemId($catalogName, $itemId, $requestBody, $headerParameters), $fetch); } @@ -1673,7 +1673,7 @@ public function patchCatalogsByCatalogNameItemByItemId(string $catalogName, stri * @throws \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdTooManyRequestsException * @throws \Braze\Exception\PostCatalogsByCatalogNameItemByItemIdInternalServerErrorException */ - public function postCatalogsByCatalogNameItemByItemId(string $catalogName, string $itemId, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCatalogsByCatalogNameItemByItemId(string $catalogName, string $itemId, Model\CatalogsCatalogNameItemsItemIdPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCatalogsByCatalogNameItemByItemId($catalogName, $itemId, $requestBody, $headerParameters), $fetch); } @@ -1802,7 +1802,7 @@ public function postCatalogsByCatalogNameItemByItemId(string $catalogName, strin * @throws \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdTooManyRequestsException * @throws \Braze\Exception\PutCatalogsByCatalogNameItemByItemIdInternalServerErrorException */ - public function putCatalogsByCatalogNameItemByItemId(string $catalogName, string $itemId, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function putCatalogsByCatalogNameItemByItemId(string $catalogName, string $itemId, Model\CatalogsCatalogNameItemsItemIdPutBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PutCatalogsByCatalogNameItemByItemId($catalogName, $itemId, $requestBody, $headerParameters), $fetch); } @@ -2029,7 +2029,7 @@ public function getEmailUnsubscribe(array $queryParameters = [], array $headerPa * @throws \Braze\Exception\PostEmailStatusTooManyRequestsException * @throws \Braze\Exception\PostEmailStatusInternalServerErrorException */ - public function postEmailStatus(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postEmailStatus(Model\EmailStatusPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostEmailStatus($requestBody, $headerParameters), $fetch); } @@ -2068,7 +2068,7 @@ public function postEmailStatus(\stdClass $requestBody = null, array $headerPara * @throws \Braze\Exception\PostEmailBounceRemoveTooManyRequestsException * @throws \Braze\Exception\PostEmailBounceRemoveInternalServerErrorException */ - public function postEmailBounceRemove(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postEmailBounceRemove(Model\EmailBounceRemovePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostEmailBounceRemove($requestBody, $headerParameters), $fetch); } @@ -2107,7 +2107,7 @@ public function postEmailBounceRemove(\stdClass $requestBody = null, array $head * @throws \Braze\Exception\PostEmailSpamRemoveTooManyRequestsException * @throws \Braze\Exception\PostEmailSpamRemoveInternalServerErrorException */ - public function postEmailSpamRemove(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postEmailSpamRemove(Model\EmailSpamRemovePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostEmailSpamRemove($requestBody, $headerParameters), $fetch); } @@ -2144,7 +2144,7 @@ public function postEmailSpamRemove(\stdClass $requestBody = null, array $header * @throws \Braze\Exception\PostEmailBlocklistTooManyRequestsException * @throws \Braze\Exception\PostEmailBlocklistInternalServerErrorException */ - public function postEmailBlocklist(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postEmailBlocklist(Model\EmailBlocklistPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostEmailBlocklist($requestBody, $headerParameters), $fetch); } @@ -2181,7 +2181,7 @@ public function postEmailBlocklist(\stdClass $requestBody = null, array $headerP * @throws \Braze\Exception\PostEmailBlacklistTooManyRequestsException * @throws \Braze\Exception\PostEmailBlacklistInternalServerErrorException */ - public function postEmailBlacklist(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postEmailBlacklist(Model\EmailBlacklistPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostEmailBlacklist($requestBody, $headerParameters), $fetch); } @@ -4667,7 +4667,7 @@ public function getSessionsDataSeries(array $queryParameters = [], array $header * @throws \Braze\Exception\PostUsersExportIdTooManyRequestsException * @throws \Braze\Exception\PostUsersExportIdInternalServerErrorException */ - public function postUsersExportId(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersExportId(Model\UsersExportIdsPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersExportId($requestBody, $headerParameters), $fetch); } @@ -5065,7 +5065,7 @@ public function postUsersExportId(\stdClass $requestBody = null, array $headerPa * @throws \Braze\Exception\PostUsersExportSegmentTooManyRequestsException * @throws \Braze\Exception\PostUsersExportSegmentInternalServerErrorException */ - public function postUsersExportSegment(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersExportSegment(Model\UsersExportSegmentPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersExportSegment($requestBody, $headerParameters), $fetch); } @@ -5319,7 +5319,7 @@ public function postUsersExportSegment(\stdClass $requestBody = null, array $hea * @throws \Braze\Exception\PostUsersExportGlobalControlGroupTooManyRequestsException * @throws \Braze\Exception\PostUsersExportGlobalControlGroupInternalServerErrorException */ - public function postUsersExportGlobalControlGroup(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersExportGlobalControlGroup(Model\UsersExportGlobalControlGroupPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersExportGlobalControlGroup($requestBody, $headerParameters), $fetch); } @@ -5397,7 +5397,7 @@ public function postUsersExportGlobalControlGroup(\stdClass $requestBody = null, * @throws \Braze\Exception\PostMessagesLiveActivityUpdateTooManyRequestsException * @throws \Braze\Exception\PostMessagesLiveActivityUpdateInternalServerErrorException */ - public function postMessagesLiveActivityUpdate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postMessagesLiveActivityUpdate(Model\MessagesLiveActivityUpdatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostMessagesLiveActivityUpdate($requestBody, $headerParameters), $fetch); } @@ -5493,7 +5493,7 @@ public function getMessagesScheduledBroadcast(array $queryParameters = [], array * @throws \Braze\Exception\PostMessagesScheduleDeleteTooManyRequestsException * @throws \Braze\Exception\PostMessagesScheduleDeleteInternalServerErrorException */ - public function postMessagesScheduleDelete(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postMessagesScheduleDelete(Model\MessagesScheduleDeletePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostMessagesScheduleDelete($requestBody, $headerParameters), $fetch); } @@ -5531,7 +5531,7 @@ public function postMessagesScheduleDelete(\stdClass $requestBody = null, array * @throws \Braze\Exception\PostCanvasTriggerScheduleDeleteTooManyRequestsException * @throws \Braze\Exception\PostCanvasTriggerScheduleDeleteInternalServerErrorException */ - public function postCanvasTriggerScheduleDelete(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCanvasTriggerScheduleDelete(Model\CanvasTriggerScheduleDeletePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCanvasTriggerScheduleDelete($requestBody, $headerParameters), $fetch); } @@ -5571,7 +5571,7 @@ public function postCanvasTriggerScheduleDelete(\stdClass $requestBody = null, a * @throws \Braze\Exception\PostCampaignsTriggerScheduleDeleteTooManyRequestsException * @throws \Braze\Exception\PostCampaignsTriggerScheduleDeleteInternalServerErrorException */ - public function postCampaignsTriggerScheduleDelete(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCampaignsTriggerScheduleDelete(Model\CampaignsTriggerScheduleDeletePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCampaignsTriggerScheduleDelete($requestBody, $headerParameters), $fetch); } @@ -5635,7 +5635,7 @@ public function postCampaignsTriggerScheduleDelete(\stdClass $requestBody = null * @throws \Braze\Exception\PostMessagesScheduleCreateTooManyRequestsException * @throws \Braze\Exception\PostMessagesScheduleCreateInternalServerErrorException */ - public function postMessagesScheduleCreate(\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postMessagesScheduleCreate(Model\MessagesScheduleCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostMessagesScheduleCreate($requestBody), $fetch); } @@ -5705,7 +5705,7 @@ public function postMessagesScheduleCreate(\stdClass $requestBody = null, string * @throws \Braze\Exception\PostCampaignsTriggerScheduleCreateTooManyRequestsException * @throws \Braze\Exception\PostCampaignsTriggerScheduleCreateInternalServerErrorException */ - public function postCampaignsTriggerScheduleCreate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCampaignsTriggerScheduleCreate(Model\CampaignsTriggerScheduleCreatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCampaignsTriggerScheduleCreate($requestBody, $headerParameters), $fetch); } @@ -5759,7 +5759,7 @@ public function postCampaignsTriggerScheduleCreate(\stdClass $requestBody = null * @throws \Braze\Exception\PostCanvasTriggerScheduleCreateTooManyRequestsException * @throws \Braze\Exception\PostCanvasTriggerScheduleCreateInternalServerErrorException */ - public function postCanvasTriggerScheduleCreate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCanvasTriggerScheduleCreate(Model\CanvasTriggerScheduleCreatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCanvasTriggerScheduleCreate($requestBody, $headerParameters), $fetch); } @@ -5800,7 +5800,7 @@ public function postCanvasTriggerScheduleCreate(\stdClass $requestBody = null, a * @throws \Braze\Exception\PostMessagesScheduleUpdateTooManyRequestsException * @throws \Braze\Exception\PostMessagesScheduleUpdateInternalServerErrorException */ - public function postMessagesScheduleUpdate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postMessagesScheduleUpdate(Model\MessagesScheduleUpdatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostMessagesScheduleUpdate($requestBody, $headerParameters), $fetch); } @@ -5845,7 +5845,7 @@ public function postMessagesScheduleUpdate(\stdClass $requestBody = null, array * @throws \Braze\Exception\PostCampaignsTriggerScheduleUpdateTooManyRequestsException * @throws \Braze\Exception\PostCampaignsTriggerScheduleUpdateInternalServerErrorException */ - public function postCampaignsTriggerScheduleUpdate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCampaignsTriggerScheduleUpdate(Model\CampaignsTriggerScheduleUpdatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCampaignsTriggerScheduleUpdate($requestBody, $headerParameters), $fetch); } @@ -5890,7 +5890,7 @@ public function postCampaignsTriggerScheduleUpdate(\stdClass $requestBody = null * @throws \Braze\Exception\PostCanvasTriggerScheduleUpdateTooManyRequestsException * @throws \Braze\Exception\PostCanvasTriggerScheduleUpdateInternalServerErrorException */ - public function postCanvasTriggerScheduleUpdate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCanvasTriggerScheduleUpdate(Model\CanvasTriggerScheduleUpdatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCanvasTriggerScheduleUpdate($requestBody, $headerParameters), $fetch); } @@ -5944,7 +5944,7 @@ public function postCanvasTriggerScheduleUpdate(\stdClass $requestBody = null, a * @throws \Braze\Exception\PostSendsIdCreateTooManyRequestsException * @throws \Braze\Exception\PostSendsIdCreateInternalServerErrorException */ - public function postSendsIdCreate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postSendsIdCreate(Model\SendsIdCreatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostSendsIdCreate($requestBody, $headerParameters), $fetch); } @@ -6005,7 +6005,7 @@ public function postSendsIdCreate(\stdClass $requestBody = null, array $headerPa * @throws \Braze\Exception\PostMessagesSendTooManyRequestsException * @throws \Braze\Exception\PostMessagesSendInternalServerErrorException */ - public function postMessagesSend(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postMessagesSend(Model\MessagesSendPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostMessagesSend($requestBody, $headerParameters), $fetch); } @@ -6232,7 +6232,7 @@ public function postMessagesSend(\stdClass $requestBody = null, array $headerPar * @throws \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendTooManyRequestsException * @throws \Braze\Exception\PostTransactionalV1CampaignsByCampaignIdSendInternalServerErrorException */ - public function postTransactionalV1CampaignsByCampaignIdSend(string $campaignId, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postTransactionalV1CampaignsByCampaignIdSend(string $campaignId, Model\TransactionalV1CampaignsCampaignIdSendPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostTransactionalV1CampaignsByCampaignIdSend($campaignId, $requestBody, $headerParameters), $fetch); } @@ -6304,7 +6304,7 @@ public function postTransactionalV1CampaignsByCampaignIdSend(string $campaignId, * @throws \Braze\Exception\PostCampaignsTriggerSendTooManyRequestsException * @throws \Braze\Exception\PostCampaignsTriggerSendInternalServerErrorException */ - public function postCampaignsTriggerSend(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCampaignsTriggerSend(Model\CampaignsTriggerSendPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCampaignsTriggerSend($requestBody, $headerParameters), $fetch); } @@ -6373,7 +6373,7 @@ public function postCampaignsTriggerSend(\stdClass $requestBody = null, array $h * @throws \Braze\Exception\PostCanvasTriggerSendTooManyRequestsException * @throws \Braze\Exception\PostCanvasTriggerSendInternalServerErrorException */ - public function postCanvasTriggerSend(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postCanvasTriggerSend(Model\CanvasTriggerSendPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostCanvasTriggerSend($requestBody, $headerParameters), $fetch); } @@ -6655,7 +6655,7 @@ public function getPreferenceCenterV1ByPreferenceCenterExternalID(string $prefer * @throws \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDTooManyRequestsException * @throws \Braze\Exception\PutPreferenceCenterV1ByPreferenceCenterExternalIDInternalServerErrorException */ - public function putPreferenceCenterV1ByPreferenceCenterExternalID(string $preferenceCenterExternalID, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function putPreferenceCenterV1ByPreferenceCenterExternalID(string $preferenceCenterExternalID, Model\PreferenceCenterV1PreferenceCenterExternalIDPutBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PutPreferenceCenterV1ByPreferenceCenterExternalID($preferenceCenterExternalID, $requestBody, $headerParameters), $fetch); } @@ -6733,7 +6733,7 @@ public function putPreferenceCenterV1ByPreferenceCenterExternalID(string $prefer * @throws \Braze\Exception\PostPreferenceCenterV1TooManyRequestsException * @throws \Braze\Exception\PostPreferenceCenterV1InternalServerErrorException */ - public function postPreferenceCenterV1(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postPreferenceCenterV1(Model\PreferenceCenterV1PostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostPreferenceCenterV1($requestBody, $headerParameters), $fetch); } @@ -6967,7 +6967,7 @@ public function getScimV2UserById(string $id, array $headerParameters = [], stri * @throws \Braze\Exception\PutScimV2UserByIdTooManyRequestsException * @throws \Braze\Exception\PutScimV2UserByIdInternalServerErrorException */ - public function putScimV2UserById(string $id, \stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function putScimV2UserById(string $id, Model\ScimV2UsersIdPutBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PutScimV2UserById($id, $requestBody, $headerParameters), $fetch); } @@ -7152,7 +7152,7 @@ public function getScimV2User(array $queryParameters = [], array $headerParamete * @throws \Braze\Exception\PostScimV2UserTooManyRequestsException * @throws \Braze\Exception\PostScimV2UserInternalServerErrorException */ - public function postScimV2User(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postScimV2User(Model\ScimV2UsersPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostScimV2User($requestBody, $headerParameters), $fetch); } @@ -7267,7 +7267,7 @@ public function getSmsInvalidPhoneNumber(array $queryParameters = [], array $hea * @throws \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveTooManyRequestsException * @throws \Braze\Exception\PostSmsInvalidPhoneNumbersRemoveInternalServerErrorException */ - public function postSmsInvalidPhoneNumbersRemove(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postSmsInvalidPhoneNumbersRemove(Model\SmsInvalidPhoneNumbersRemovePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostSmsInvalidPhoneNumbersRemove($requestBody, $headerParameters), $fetch); } @@ -7440,7 +7440,7 @@ public function getSubscriptionUserStatus(array $queryParameters = [], array $he * @throws \Braze\Exception\PostSubscriptionStatusSetTooManyRequestsException * @throws \Braze\Exception\PostSubscriptionStatusSetInternalServerErrorException */ - public function postSubscriptionStatusSet(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postSubscriptionStatusSet(Model\SubscriptionStatusSetPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostSubscriptionStatusSet($requestBody, $headerParameters), $fetch); } @@ -7493,7 +7493,7 @@ public function postSubscriptionStatusSet(\stdClass $requestBody = null, array $ * @throws \Braze\Exception\PostV2SubscriptionStatusSetTooManyRequestsException * @throws \Braze\Exception\PostV2SubscriptionStatusSetInternalServerErrorException */ - public function postV2SubscriptionStatusSet(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postV2SubscriptionStatusSet(Model\V2SubscriptionStatusSetPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostV2SubscriptionStatusSet($requestBody, $headerParameters), $fetch); } @@ -7730,7 +7730,7 @@ public function getContentBlocksInfo(array $queryParameters = [], array $headerP * @throws \Braze\Exception\PostContentBlocksCreateTooManyRequestsException * @throws \Braze\Exception\PostContentBlocksCreateInternalServerErrorException */ - public function postContentBlocksCreate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postContentBlocksCreate(Model\ContentBlocksCreatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostContentBlocksCreate($requestBody, $headerParameters), $fetch); } @@ -7811,7 +7811,7 @@ public function postContentBlocksCreate(\stdClass $requestBody = null, array $he * @throws \Braze\Exception\PostContentBlocksUpdateTooManyRequestsException * @throws \Braze\Exception\PostContentBlocksUpdateInternalServerErrorException */ - public function postContentBlocksUpdate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postContentBlocksUpdate(Model\ContentBlocksUpdatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostContentBlocksUpdate($requestBody, $headerParameters), $fetch); } @@ -7998,7 +7998,7 @@ public function getTemplatesEmailInfo(array $queryParameters = [], array $header * @throws \Braze\Exception\PostTemplatesEmailCreateTooManyRequestsException * @throws \Braze\Exception\PostTemplatesEmailCreateInternalServerErrorException */ - public function postTemplatesEmailCreate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postTemplatesEmailCreate(Model\TemplatesEmailCreatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostTemplatesEmailCreate($requestBody, $headerParameters), $fetch); } @@ -8087,7 +8087,7 @@ public function postTemplatesEmailCreate(\stdClass $requestBody = null, array $h * @throws \Braze\Exception\PostUsersExternalIdsRenameTooManyRequestsException * @throws \Braze\Exception\PostUsersExternalIdsRenameInternalServerErrorException */ - public function postUsersExternalIdsRename(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersExternalIdsRename(Model\UsersExternalIdsRenamePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersExternalIdsRename($requestBody, $headerParameters), $fetch); } @@ -8152,7 +8152,7 @@ public function postUsersExternalIdsRename(\stdClass $requestBody = null, array * @throws \Braze\Exception\PostUsersExternalIdsRemoveTooManyRequestsException * @throws \Braze\Exception\PostUsersExternalIdsRemoveInternalServerErrorException */ - public function postUsersExternalIdsRemove(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersExternalIdsRemove(Model\UsersExternalIdsRemovePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersExternalIdsRemove($requestBody, $headerParameters), $fetch); } @@ -8206,7 +8206,7 @@ public function postUsersExternalIdsRemove(\stdClass $requestBody = null, array * @throws \Braze\Exception\PostUsersAliasUpdateTooManyRequestsException * @throws \Braze\Exception\PostUsersAliasUpdateInternalServerErrorException */ - public function postUsersAliasUpdate(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersAliasUpdate(Model\UsersAliasUpdatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersAliasUpdate($requestBody, $headerParameters), $fetch); } @@ -8249,7 +8249,7 @@ public function postUsersAliasUpdate(\stdClass $requestBody = null, array $heade * @throws \Braze\Exception\PostUsersAliasNewTooManyRequestsException * @throws \Braze\Exception\PostUsersAliasNewInternalServerErrorException */ - public function postUsersAliasNew(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersAliasNew(Model\UsersAliasNewPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersAliasNew($requestBody, $headerParameters), $fetch); } @@ -8293,7 +8293,7 @@ public function postUsersAliasNew(\stdClass $requestBody = null, array $headerPa * @throws \Braze\Exception\PostUsersDeleteTooManyRequestsException * @throws \Braze\Exception\PostUsersDeleteInternalServerErrorException */ - public function postUsersDelete(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersDelete(Model\UsersDeletePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersDelete($requestBody, $headerParameters), $fetch); } @@ -8403,7 +8403,7 @@ public function postUsersDelete(\stdClass $requestBody = null, array $headerPara * @throws \Braze\Exception\PostUsersIdentifyTooManyRequestsException * @throws \Braze\Exception\PostUsersIdentifyInternalServerErrorException */ - public function postUsersIdentify(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersIdentify(Model\UsersIdentifyPostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersIdentify($requestBody, $headerParameters), $fetch); } @@ -8558,7 +8558,7 @@ public function postUsersIdentify(\stdClass $requestBody = null, array $headerPa * @throws \Braze\Exception\PostUsersMergeTooManyRequestsException * @throws \Braze\Exception\PostUsersMergeInternalServerErrorException */ - public function postUsersMerge(\stdClass $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function postUsersMerge(Model\UsersMergePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Braze\Endpoint\PostUsersMerge($requestBody, $headerParameters), $fetch); } diff --git a/lib/Endpoint/PatchCatalogsByCatalogNameItem.php b/lib/Endpoint/PatchCatalogsByCatalogNameItem.php index dd378b6..cca34f5 100644 --- a/lib/Endpoint/PatchCatalogsByCatalogNameItem.php +++ b/lib/Endpoint/PatchCatalogsByCatalogNameItem.php @@ -108,7 +108,7 @@ class PatchCatalogsByCatalogNameItem extends \Braze\Runtime\Client\BaseEndpoint * @var string $Authorization * } */ - public function __construct(string $catalogName, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $catalogName, \Braze\Model\CatalogsCatalogNameItemsPatchBody $requestBody = null, array $headerParameters = []) { $this->catalog_name = $catalogName; $this->body = $requestBody; @@ -127,8 +127,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CatalogsCatalogNameItemsPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PatchCatalogsByCatalogNameItemByItemId.php b/lib/Endpoint/PatchCatalogsByCatalogNameItemByItemId.php index 4af0396..0dc608a 100644 --- a/lib/Endpoint/PatchCatalogsByCatalogNameItemByItemId.php +++ b/lib/Endpoint/PatchCatalogsByCatalogNameItemByItemId.php @@ -121,7 +121,7 @@ class PatchCatalogsByCatalogNameItemByItemId extends \Braze\Runtime\Client\BaseE * @var string $Authorization * } */ - public function __construct(string $catalogName, string $itemId, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $catalogName, string $itemId, \Braze\Model\CatalogsCatalogNameItemsItemIdPatchBody $requestBody = null, array $headerParameters = []) { $this->catalog_name = $catalogName; $this->item_id = $itemId; @@ -141,8 +141,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CatalogsCatalogNameItemsItemIdPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCampaignsTriggerScheduleCreate.php b/lib/Endpoint/PostCampaignsTriggerScheduleCreate.php index a4e03aa..f98f3b8 100644 --- a/lib/Endpoint/PostCampaignsTriggerScheduleCreate.php +++ b/lib/Endpoint/PostCampaignsTriggerScheduleCreate.php @@ -68,7 +68,7 @@ class PostCampaignsTriggerScheduleCreate extends \Braze\Runtime\Client\BaseEndpo * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CampaignsTriggerScheduleCreatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -86,8 +86,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CampaignsTriggerScheduleCreatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCampaignsTriggerScheduleDelete.php b/lib/Endpoint/PostCampaignsTriggerScheduleDelete.php index b29c01c..2bc86ff 100644 --- a/lib/Endpoint/PostCampaignsTriggerScheduleDelete.php +++ b/lib/Endpoint/PostCampaignsTriggerScheduleDelete.php @@ -38,7 +38,7 @@ class PostCampaignsTriggerScheduleDelete extends \Braze\Runtime\Client\BaseEndpo * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CampaignsTriggerScheduleDeletePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -56,8 +56,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CampaignsTriggerScheduleDeletePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php b/lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php index 53c8b3f..7e777e8 100644 --- a/lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php +++ b/lib/Endpoint/PostCampaignsTriggerScheduleUpdate.php @@ -43,7 +43,7 @@ class PostCampaignsTriggerScheduleUpdate extends \Braze\Runtime\Client\BaseEndpo * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CampaignsTriggerScheduleUpdatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -61,8 +61,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CampaignsTriggerScheduleUpdatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCampaignsTriggerSend.php b/lib/Endpoint/PostCampaignsTriggerSend.php index ea2f891..e04a8e0 100644 --- a/lib/Endpoint/PostCampaignsTriggerSend.php +++ b/lib/Endpoint/PostCampaignsTriggerSend.php @@ -70,7 +70,7 @@ class PostCampaignsTriggerSend extends \Braze\Runtime\Client\BaseEndpoint implem * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CampaignsTriggerSendPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -88,8 +88,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CampaignsTriggerSendPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCanvasTriggerScheduleCreate.php b/lib/Endpoint/PostCanvasTriggerScheduleCreate.php index 73542ff..0394b27 100644 --- a/lib/Endpoint/PostCanvasTriggerScheduleCreate.php +++ b/lib/Endpoint/PostCanvasTriggerScheduleCreate.php @@ -52,7 +52,7 @@ class PostCanvasTriggerScheduleCreate extends \Braze\Runtime\Client\BaseEndpoint * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CanvasTriggerScheduleCreatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -70,8 +70,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CanvasTriggerScheduleCreatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCanvasTriggerScheduleDelete.php b/lib/Endpoint/PostCanvasTriggerScheduleDelete.php index be721c4..f5ac107 100644 --- a/lib/Endpoint/PostCanvasTriggerScheduleDelete.php +++ b/lib/Endpoint/PostCanvasTriggerScheduleDelete.php @@ -36,7 +36,7 @@ class PostCanvasTriggerScheduleDelete extends \Braze\Runtime\Client\BaseEndpoint * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CanvasTriggerScheduleDeletePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -54,8 +54,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CanvasTriggerScheduleDeletePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCanvasTriggerScheduleUpdate.php b/lib/Endpoint/PostCanvasTriggerScheduleUpdate.php index effdd68..f315121 100644 --- a/lib/Endpoint/PostCanvasTriggerScheduleUpdate.php +++ b/lib/Endpoint/PostCanvasTriggerScheduleUpdate.php @@ -43,7 +43,7 @@ class PostCanvasTriggerScheduleUpdate extends \Braze\Runtime\Client\BaseEndpoint * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CanvasTriggerScheduleUpdatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -61,8 +61,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CanvasTriggerScheduleUpdatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCanvasTriggerSend.php b/lib/Endpoint/PostCanvasTriggerSend.php index d0e19f0..af7a668 100644 --- a/lib/Endpoint/PostCanvasTriggerSend.php +++ b/lib/Endpoint/PostCanvasTriggerSend.php @@ -67,7 +67,7 @@ class PostCanvasTriggerSend extends \Braze\Runtime\Client\BaseEndpoint implement * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CanvasTriggerSendPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -85,8 +85,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CanvasTriggerSendPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCatalog.php b/lib/Endpoint/PostCatalog.php index cc16e23..30da0cb 100644 --- a/lib/Endpoint/PostCatalog.php +++ b/lib/Endpoint/PostCatalog.php @@ -187,7 +187,7 @@ class PostCatalog extends \Braze\Runtime\Client\BaseEndpoint implements \Braze\R * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\CatalogsPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -205,8 +205,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CatalogsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCatalogsByCatalogNameItem.php b/lib/Endpoint/PostCatalogsByCatalogNameItem.php index 2e9a16f..965df04 100644 --- a/lib/Endpoint/PostCatalogsByCatalogNameItem.php +++ b/lib/Endpoint/PostCatalogsByCatalogNameItem.php @@ -142,7 +142,7 @@ class PostCatalogsByCatalogNameItem extends \Braze\Runtime\Client\BaseEndpoint i * @var string $Authorization * } */ - public function __construct(string $catalogName, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $catalogName, \Braze\Model\CatalogsCatalogNameItemsPostBody $requestBody = null, array $headerParameters = []) { $this->catalog_name = $catalogName; $this->body = $requestBody; @@ -161,8 +161,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CatalogsCatalogNameItemsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php b/lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php index 39db0da..3bf5dc1 100644 --- a/lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php +++ b/lib/Endpoint/PostCatalogsByCatalogNameItemByItemId.php @@ -126,7 +126,7 @@ class PostCatalogsByCatalogNameItemByItemId extends \Braze\Runtime\Client\BaseEn * @var string $Authorization * } */ - public function __construct(string $catalogName, string $itemId, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $catalogName, string $itemId, \Braze\Model\CatalogsCatalogNameItemsItemIdPostBody $requestBody = null, array $headerParameters = []) { $this->catalog_name = $catalogName; $this->item_id = $itemId; @@ -146,8 +146,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CatalogsCatalogNameItemsItemIdPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostContentBlocksCreate.php b/lib/Endpoint/PostContentBlocksCreate.php index e1c8682..d52a04e 100644 --- a/lib/Endpoint/PostContentBlocksCreate.php +++ b/lib/Endpoint/PostContentBlocksCreate.php @@ -76,7 +76,7 @@ class PostContentBlocksCreate extends \Braze\Runtime\Client\BaseEndpoint impleme * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\ContentBlocksCreatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -94,8 +94,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\ContentBlocksCreatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostContentBlocksUpdate.php b/lib/Endpoint/PostContentBlocksUpdate.php index b84c669..e7de2cd 100644 --- a/lib/Endpoint/PostContentBlocksUpdate.php +++ b/lib/Endpoint/PostContentBlocksUpdate.php @@ -79,7 +79,7 @@ class PostContentBlocksUpdate extends \Braze\Runtime\Client\BaseEndpoint impleme * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\ContentBlocksUpdatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -97,8 +97,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\ContentBlocksUpdatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostEmailBlacklist.php b/lib/Endpoint/PostEmailBlacklist.php index c21866f..7236069 100644 --- a/lib/Endpoint/PostEmailBlacklist.php +++ b/lib/Endpoint/PostEmailBlacklist.php @@ -35,7 +35,7 @@ class PostEmailBlacklist extends \Braze\Runtime\Client\BaseEndpoint implements \ * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\EmailBlacklistPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -53,8 +53,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\EmailBlacklistPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostEmailBlocklist.php b/lib/Endpoint/PostEmailBlocklist.php index c699cbe..c965979 100644 --- a/lib/Endpoint/PostEmailBlocklist.php +++ b/lib/Endpoint/PostEmailBlocklist.php @@ -35,7 +35,7 @@ class PostEmailBlocklist extends \Braze\Runtime\Client\BaseEndpoint implements \ * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\EmailBlocklistPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -53,8 +53,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\EmailBlocklistPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostEmailBounceRemove.php b/lib/Endpoint/PostEmailBounceRemove.php index ce004ab..ac38321 100644 --- a/lib/Endpoint/PostEmailBounceRemove.php +++ b/lib/Endpoint/PostEmailBounceRemove.php @@ -37,7 +37,7 @@ class PostEmailBounceRemove extends \Braze\Runtime\Client\BaseEndpoint implement * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\EmailBounceRemovePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -55,8 +55,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\EmailBounceRemovePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostEmailSpamRemove.php b/lib/Endpoint/PostEmailSpamRemove.php index 4307477..3c73bef 100644 --- a/lib/Endpoint/PostEmailSpamRemove.php +++ b/lib/Endpoint/PostEmailSpamRemove.php @@ -37,7 +37,7 @@ class PostEmailSpamRemove extends \Braze\Runtime\Client\BaseEndpoint implements * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\EmailSpamRemovePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -55,8 +55,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\EmailSpamRemovePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostEmailStatus.php b/lib/Endpoint/PostEmailStatus.php index 3eb2f16..1654a39 100644 --- a/lib/Endpoint/PostEmailStatus.php +++ b/lib/Endpoint/PostEmailStatus.php @@ -38,7 +38,7 @@ class PostEmailStatus extends \Braze\Runtime\Client\BaseEndpoint implements \Bra * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\EmailStatusPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -56,8 +56,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\EmailStatusPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostMessagesLiveActivityUpdate.php b/lib/Endpoint/PostMessagesLiveActivityUpdate.php index 7b6a5ec..e1a2d69 100644 --- a/lib/Endpoint/PostMessagesLiveActivityUpdate.php +++ b/lib/Endpoint/PostMessagesLiveActivityUpdate.php @@ -76,7 +76,7 @@ class PostMessagesLiveActivityUpdate extends \Braze\Runtime\Client\BaseEndpoint * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\MessagesLiveActivityUpdatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -94,8 +94,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\MessagesLiveActivityUpdatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostMessagesScheduleCreate.php b/lib/Endpoint/PostMessagesScheduleCreate.php index bd234fa..16e6d71 100644 --- a/lib/Endpoint/PostMessagesScheduleCreate.php +++ b/lib/Endpoint/PostMessagesScheduleCreate.php @@ -62,7 +62,7 @@ class PostMessagesScheduleCreate extends \Braze\Runtime\Client\BaseEndpoint impl * * ``` */ - public function __construct(\stdClass $requestBody = null) + public function __construct(\Braze\Model\MessagesScheduleCreatePostBody $requestBody = null) { $this->body = $requestBody; } @@ -79,8 +79,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\MessagesScheduleCreatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostMessagesScheduleDelete.php b/lib/Endpoint/PostMessagesScheduleDelete.php index 3bf10d2..433f09c 100644 --- a/lib/Endpoint/PostMessagesScheduleDelete.php +++ b/lib/Endpoint/PostMessagesScheduleDelete.php @@ -35,7 +35,7 @@ class PostMessagesScheduleDelete extends \Braze\Runtime\Client\BaseEndpoint impl * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\MessagesScheduleDeletePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -53,8 +53,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\MessagesScheduleDeletePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostMessagesScheduleUpdate.php b/lib/Endpoint/PostMessagesScheduleUpdate.php index 877c31a..b985f24 100644 --- a/lib/Endpoint/PostMessagesScheduleUpdate.php +++ b/lib/Endpoint/PostMessagesScheduleUpdate.php @@ -39,7 +39,7 @@ class PostMessagesScheduleUpdate extends \Braze\Runtime\Client\BaseEndpoint impl * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\MessagesScheduleUpdatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -57,8 +57,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\MessagesScheduleUpdatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostMessagesSend.php b/lib/Endpoint/PostMessagesSend.php index 466a56e..354f166 100644 --- a/lib/Endpoint/PostMessagesSend.php +++ b/lib/Endpoint/PostMessagesSend.php @@ -59,7 +59,7 @@ class PostMessagesSend extends \Braze\Runtime\Client\BaseEndpoint implements \Br * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\MessagesSendPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -77,8 +77,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\MessagesSendPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostPreferenceCenterV1.php b/lib/Endpoint/PostPreferenceCenterV1.php index 24fffc5..33ede7e 100644 --- a/lib/Endpoint/PostPreferenceCenterV1.php +++ b/lib/Endpoint/PostPreferenceCenterV1.php @@ -76,7 +76,7 @@ class PostPreferenceCenterV1 extends \Braze\Runtime\Client\BaseEndpoint implemen * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\PreferenceCenterV1PostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -94,8 +94,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\PreferenceCenterV1PostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostScimV2User.php b/lib/Endpoint/PostScimV2User.php index 1660603..11ab252 100644 --- a/lib/Endpoint/PostScimV2User.php +++ b/lib/Endpoint/PostScimV2User.php @@ -90,7 +90,7 @@ class PostScimV2User extends \Braze\Runtime\Client\BaseEndpoint implements \Braz * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\ScimV2UsersPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -108,8 +108,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\ScimV2UsersPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostSendsIdCreate.php b/lib/Endpoint/PostSendsIdCreate.php index 97ff061..cd0a4bc 100644 --- a/lib/Endpoint/PostSendsIdCreate.php +++ b/lib/Endpoint/PostSendsIdCreate.php @@ -52,7 +52,7 @@ class PostSendsIdCreate extends \Braze\Runtime\Client\BaseEndpoint implements \B * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\SendsIdCreatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -70,8 +70,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\SendsIdCreatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php b/lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php index d18ae83..711c0ab 100644 --- a/lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php +++ b/lib/Endpoint/PostSmsInvalidPhoneNumbersRemove.php @@ -37,7 +37,7 @@ class PostSmsInvalidPhoneNumbersRemove extends \Braze\Runtime\Client\BaseEndpoin * @var string $Content-Type * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\SmsInvalidPhoneNumbersRemovePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -55,8 +55,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\SmsInvalidPhoneNumbersRemovePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostSubscriptionStatusSet.php b/lib/Endpoint/PostSubscriptionStatusSet.php index d601ae4..88e8383 100644 --- a/lib/Endpoint/PostSubscriptionStatusSet.php +++ b/lib/Endpoint/PostSubscriptionStatusSet.php @@ -57,7 +57,7 @@ class PostSubscriptionStatusSet extends \Braze\Runtime\Client\BaseEndpoint imple * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\SubscriptionStatusSetPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -75,8 +75,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\SubscriptionStatusSetPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostTemplatesEmailCreate.php b/lib/Endpoint/PostTemplatesEmailCreate.php index 659490e..c7bbd0c 100644 --- a/lib/Endpoint/PostTemplatesEmailCreate.php +++ b/lib/Endpoint/PostTemplatesEmailCreate.php @@ -58,7 +58,7 @@ class PostTemplatesEmailCreate extends \Braze\Runtime\Client\BaseEndpoint implem * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\TemplatesEmailCreatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -76,8 +76,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\TemplatesEmailCreatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostTemplatesEmailUpdate.php b/lib/Endpoint/PostTemplatesEmailUpdate.php index e2e4f63..212ace5 100644 --- a/lib/Endpoint/PostTemplatesEmailUpdate.php +++ b/lib/Endpoint/PostTemplatesEmailUpdate.php @@ -58,7 +58,7 @@ class PostTemplatesEmailUpdate extends \Braze\Runtime\Client\BaseEndpoint implem * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\TemplatesEmailUpdatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -76,8 +76,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\TemplatesEmailUpdatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostTransactionalV1CampaignsByCampaignIdSend.php b/lib/Endpoint/PostTransactionalV1CampaignsByCampaignIdSend.php index b09e3c6..e4f7182 100644 --- a/lib/Endpoint/PostTransactionalV1CampaignsByCampaignIdSend.php +++ b/lib/Endpoint/PostTransactionalV1CampaignsByCampaignIdSend.php @@ -226,7 +226,7 @@ class PostTransactionalV1CampaignsByCampaignIdSend extends \Braze\Runtime\Client * @var string $Authorization * } */ - public function __construct(string $campaignId, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $campaignId, \Braze\Model\TransactionalV1CampaignsCampaignIdSendPostBody $requestBody = null, array $headerParameters = []) { $this->campaign_id = $campaignId; $this->body = $requestBody; @@ -245,8 +245,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\TransactionalV1CampaignsCampaignIdSendPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersAliasNew.php b/lib/Endpoint/PostUsersAliasNew.php index e0e3652..dc00368 100644 --- a/lib/Endpoint/PostUsersAliasNew.php +++ b/lib/Endpoint/PostUsersAliasNew.php @@ -41,7 +41,7 @@ class PostUsersAliasNew extends \Braze\Runtime\Client\BaseEndpoint implements \B * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersAliasNewPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -59,8 +59,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersAliasNewPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersAliasUpdate.php b/lib/Endpoint/PostUsersAliasUpdate.php index c8aa0d8..77666ad 100644 --- a/lib/Endpoint/PostUsersAliasUpdate.php +++ b/lib/Endpoint/PostUsersAliasUpdate.php @@ -52,7 +52,7 @@ class PostUsersAliasUpdate extends \Braze\Runtime\Client\BaseEndpoint implements * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersAliasUpdatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -70,8 +70,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersAliasUpdatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersDelete.php b/lib/Endpoint/PostUsersDelete.php index a5b9c10..a1b2527 100644 --- a/lib/Endpoint/PostUsersDelete.php +++ b/lib/Endpoint/PostUsersDelete.php @@ -42,7 +42,7 @@ class PostUsersDelete extends \Braze\Runtime\Client\BaseEndpoint implements \Bra * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersDeletePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -60,8 +60,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersDeletePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersExportGlobalControlGroup.php b/lib/Endpoint/PostUsersExportGlobalControlGroup.php index d5c05fd..be5bd9c 100644 --- a/lib/Endpoint/PostUsersExportGlobalControlGroup.php +++ b/lib/Endpoint/PostUsersExportGlobalControlGroup.php @@ -252,7 +252,7 @@ class PostUsersExportGlobalControlGroup extends \Braze\Runtime\Client\BaseEndpoi * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersExportGlobalControlGroupPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -270,8 +270,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersExportGlobalControlGroupPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersExportId.php b/lib/Endpoint/PostUsersExportId.php index 9a132cd..9423858 100644 --- a/lib/Endpoint/PostUsersExportId.php +++ b/lib/Endpoint/PostUsersExportId.php @@ -374,7 +374,7 @@ class PostUsersExportId extends \Braze\Runtime\Client\BaseEndpoint implements \B * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersExportIdsPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -392,8 +392,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersExportIdsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersExportSegment.php b/lib/Endpoint/PostUsersExportSegment.php index d2b5c35..470bd9f 100644 --- a/lib/Endpoint/PostUsersExportSegment.php +++ b/lib/Endpoint/PostUsersExportSegment.php @@ -396,7 +396,7 @@ class PostUsersExportSegment extends \Braze\Runtime\Client\BaseEndpoint implemen * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersExportSegmentPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -414,8 +414,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersExportSegmentPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersExternalIdsRemove.php b/lib/Endpoint/PostUsersExternalIdsRemove.php index dd73326..53f2ff9 100644 --- a/lib/Endpoint/PostUsersExternalIdsRemove.php +++ b/lib/Endpoint/PostUsersExternalIdsRemove.php @@ -63,7 +63,7 @@ class PostUsersExternalIdsRemove extends \Braze\Runtime\Client\BaseEndpoint impl * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersExternalIdsRemovePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -81,8 +81,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersExternalIdsRemovePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersExternalIdsRename.php b/lib/Endpoint/PostUsersExternalIdsRename.php index 2f66756..2475d35 100644 --- a/lib/Endpoint/PostUsersExternalIdsRename.php +++ b/lib/Endpoint/PostUsersExternalIdsRename.php @@ -87,7 +87,7 @@ class PostUsersExternalIdsRename extends \Braze\Runtime\Client\BaseEndpoint impl * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersExternalIdsRenamePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -105,8 +105,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersExternalIdsRenamePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersIdentify.php b/lib/Endpoint/PostUsersIdentify.php index 7b89949..a6f540e 100644 --- a/lib/Endpoint/PostUsersIdentify.php +++ b/lib/Endpoint/PostUsersIdentify.php @@ -108,7 +108,7 @@ class PostUsersIdentify extends \Braze\Runtime\Client\BaseEndpoint implements \B * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersIdentifyPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -126,8 +126,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersIdentifyPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersMerge.php b/lib/Endpoint/PostUsersMerge.php index 35af048..14a79f8 100644 --- a/lib/Endpoint/PostUsersMerge.php +++ b/lib/Endpoint/PostUsersMerge.php @@ -153,7 +153,7 @@ class PostUsersMerge extends \Braze\Runtime\Client\BaseEndpoint implements \Braz * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersMergePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -171,8 +171,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersMergePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostUsersTrack.php b/lib/Endpoint/PostUsersTrack.php index 4cadbd8..b246def 100644 --- a/lib/Endpoint/PostUsersTrack.php +++ b/lib/Endpoint/PostUsersTrack.php @@ -135,7 +135,7 @@ class PostUsersTrack extends \Braze\Runtime\Client\BaseEndpoint implements \Braz * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\UsersTrackPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -153,8 +153,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\UsersTrackPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PostV2SubscriptionStatusSet.php b/lib/Endpoint/PostV2SubscriptionStatusSet.php index d7ee00e..d9b104b 100644 --- a/lib/Endpoint/PostV2SubscriptionStatusSet.php +++ b/lib/Endpoint/PostV2SubscriptionStatusSet.php @@ -51,7 +51,7 @@ class PostV2SubscriptionStatusSet extends \Braze\Runtime\Client\BaseEndpoint imp * @var string $Authorization * } */ - public function __construct(\stdClass $requestBody = null, array $headerParameters = []) + public function __construct(\Braze\Model\V2SubscriptionStatusSetPostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -69,8 +69,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\V2SubscriptionStatusSetPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PutCatalogsByCatalogNameItem.php b/lib/Endpoint/PutCatalogsByCatalogNameItem.php index 03d7863..5a2cb51 100644 --- a/lib/Endpoint/PutCatalogsByCatalogNameItem.php +++ b/lib/Endpoint/PutCatalogsByCatalogNameItem.php @@ -107,7 +107,7 @@ class PutCatalogsByCatalogNameItem extends \Braze\Runtime\Client\BaseEndpoint im * @var string $Authorization * } */ - public function __construct(string $catalogName, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $catalogName, \Braze\Model\CatalogsCatalogNameItemsPutBody $requestBody = null, array $headerParameters = []) { $this->catalog_name = $catalogName; $this->body = $requestBody; @@ -126,8 +126,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CatalogsCatalogNameItemsPutBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PutCatalogsByCatalogNameItemByItemId.php b/lib/Endpoint/PutCatalogsByCatalogNameItemByItemId.php index bae8748..242f76c 100644 --- a/lib/Endpoint/PutCatalogsByCatalogNameItemByItemId.php +++ b/lib/Endpoint/PutCatalogsByCatalogNameItemByItemId.php @@ -129,7 +129,7 @@ class PutCatalogsByCatalogNameItemByItemId extends \Braze\Runtime\Client\BaseEnd * @var string $Authorization * } */ - public function __construct(string $catalogName, string $itemId, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $catalogName, string $itemId, \Braze\Model\CatalogsCatalogNameItemsItemIdPutBody $requestBody = null, array $headerParameters = []) { $this->catalog_name = $catalogName; $this->item_id = $itemId; @@ -149,8 +149,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\CatalogsCatalogNameItemsItemIdPutBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PutPreferenceCenterV1ByPreferenceCenterExternalID.php b/lib/Endpoint/PutPreferenceCenterV1ByPreferenceCenterExternalID.php index 9f27339..1caca67 100644 --- a/lib/Endpoint/PutPreferenceCenterV1ByPreferenceCenterExternalID.php +++ b/lib/Endpoint/PutPreferenceCenterV1ByPreferenceCenterExternalID.php @@ -75,7 +75,7 @@ class PutPreferenceCenterV1ByPreferenceCenterExternalID extends \Braze\Runtime\C * @var string * } */ - public function __construct(string $preferenceCenterExternalID, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $preferenceCenterExternalID, \Braze\Model\PreferenceCenterV1PreferenceCenterExternalIDPutBody $requestBody = null, array $headerParameters = []) { $this->PreferenceCenterExternalID = $preferenceCenterExternalID; $this->body = $requestBody; @@ -94,8 +94,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\PreferenceCenterV1PreferenceCenterExternalIDPutBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Endpoint/PutScimV2UserById.php b/lib/Endpoint/PutScimV2UserById.php index b6cae27..d4c9470 100644 --- a/lib/Endpoint/PutScimV2UserById.php +++ b/lib/Endpoint/PutScimV2UserById.php @@ -97,7 +97,7 @@ class PutScimV2UserById extends \Braze\Runtime\Client\BaseEndpoint implements \B * @var string $Authorization * } */ - public function __construct(string $id, \stdClass $requestBody = null, array $headerParameters = []) + public function __construct(string $id, \Braze\Model\ScimV2UsersIdPutBody $requestBody = null, array $headerParameters = []) { $this->id = $id; $this->body = $requestBody; @@ -116,8 +116,8 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof \Braze\Model\ScimV2UsersIdPutBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; diff --git a/lib/Model/CampaignsTriggerScheduleCreatePostBody.php b/lib/Model/CampaignsTriggerScheduleCreatePostBody.php new file mode 100644 index 0000000..cd3f5d4 --- /dev/null +++ b/lib/Model/CampaignsTriggerScheduleCreatePostBody.php @@ -0,0 +1,155 @@ +initialized); + } + /** + * @var string + */ + protected $campaignId; + /** + * @var string + */ + protected $sendId; + /** + * @var CampaignsTriggerScheduleCreatePostBodyRecipientsItem[] + */ + protected $recipients; + /** + * @var CampaignsTriggerScheduleCreatePostBodyAudience + */ + protected $audience; + /** + * @var bool + */ + protected $broadcast; + /** + * @var array + */ + protected $triggerProperties; + /** + * @var CampaignsTriggerScheduleCreatePostBodySchedule + */ + protected $schedule; + + public function getCampaignId(): string + { + return $this->campaignId; + } + + public function setCampaignId(string $campaignId): self + { + $this->initialized['campaignId'] = true; + $this->campaignId = $campaignId; + + return $this; + } + + public function getSendId(): string + { + return $this->sendId; + } + + public function setSendId(string $sendId): self + { + $this->initialized['sendId'] = true; + $this->sendId = $sendId; + + return $this; + } + + /** + * @return CampaignsTriggerScheduleCreatePostBodyRecipientsItem[] + */ + public function getRecipients(): array + { + return $this->recipients; + } + + /** + * @param CampaignsTriggerScheduleCreatePostBodyRecipientsItem[] $recipients + */ + public function setRecipients(array $recipients): self + { + $this->initialized['recipients'] = true; + $this->recipients = $recipients; + + return $this; + } + + public function getAudience(): CampaignsTriggerScheduleCreatePostBodyAudience + { + return $this->audience; + } + + public function setAudience(CampaignsTriggerScheduleCreatePostBodyAudience $audience): self + { + $this->initialized['audience'] = true; + $this->audience = $audience; + + return $this; + } + + public function getBroadcast(): bool + { + return $this->broadcast; + } + + public function setBroadcast(bool $broadcast): self + { + $this->initialized['broadcast'] = true; + $this->broadcast = $broadcast; + + return $this; + } + + /** + * @return array + */ + public function getTriggerProperties(): iterable + { + return $this->triggerProperties; + } + + /** + * @param array $triggerProperties + */ + public function setTriggerProperties(iterable $triggerProperties): self + { + $this->initialized['triggerProperties'] = true; + $this->triggerProperties = $triggerProperties; + + return $this; + } + + public function getSchedule(): CampaignsTriggerScheduleCreatePostBodySchedule + { + return $this->schedule; + } + + public function setSchedule(CampaignsTriggerScheduleCreatePostBodySchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerScheduleCreatePostBodyAudience.php b/lib/Model/CampaignsTriggerScheduleCreatePostBodyAudience.php new file mode 100644 index 0000000..2cecc06 --- /dev/null +++ b/lib/Model/CampaignsTriggerScheduleCreatePostBodyAudience.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var mixed[] + */ + protected $aND; + + /** + * @return mixed[] + */ + public function getAND(): array + { + return $this->aND; + } + + /** + * @param mixed[] $aND + */ + public function setAND(array $aND): self + { + $this->initialized['aND'] = true; + $this->aND = $aND; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerScheduleCreatePostBodyRecipientsItem.php b/lib/Model/CampaignsTriggerScheduleCreatePostBodyRecipientsItem.php new file mode 100644 index 0000000..d9a5189 --- /dev/null +++ b/lib/Model/CampaignsTriggerScheduleCreatePostBodyRecipientsItem.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $userAlias; + /** + * @var string + */ + protected $externalUserId; + /** + * @var array + */ + protected $triggerProperties; + + public function getUserAlias(): string + { + return $this->userAlias; + } + + public function setUserAlias(string $userAlias): self + { + $this->initialized['userAlias'] = true; + $this->userAlias = $userAlias; + + return $this; + } + + public function getExternalUserId(): string + { + return $this->externalUserId; + } + + public function setExternalUserId(string $externalUserId): self + { + $this->initialized['externalUserId'] = true; + $this->externalUserId = $externalUserId; + + return $this; + } + + /** + * @return array + */ + public function getTriggerProperties(): iterable + { + return $this->triggerProperties; + } + + /** + * @param array $triggerProperties + */ + public function setTriggerProperties(iterable $triggerProperties): self + { + $this->initialized['triggerProperties'] = true; + $this->triggerProperties = $triggerProperties; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerScheduleCreatePostBodySchedule.php b/lib/Model/CampaignsTriggerScheduleCreatePostBodySchedule.php new file mode 100644 index 0000000..9099473 --- /dev/null +++ b/lib/Model/CampaignsTriggerScheduleCreatePostBodySchedule.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $time; + /** + * @var bool + */ + protected $inLocalTime; + /** + * @var bool + */ + protected $atOptimalTime; + + public function getTime(): string + { + return $this->time; + } + + public function setTime(string $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } + + public function getInLocalTime(): bool + { + return $this->inLocalTime; + } + + public function setInLocalTime(bool $inLocalTime): self + { + $this->initialized['inLocalTime'] = true; + $this->inLocalTime = $inLocalTime; + + return $this; + } + + public function getAtOptimalTime(): bool + { + return $this->atOptimalTime; + } + + public function setAtOptimalTime(bool $atOptimalTime): self + { + $this->initialized['atOptimalTime'] = true; + $this->atOptimalTime = $atOptimalTime; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerScheduleDeletePostBody.php b/lib/Model/CampaignsTriggerScheduleDeletePostBody.php new file mode 100644 index 0000000..387ac0b --- /dev/null +++ b/lib/Model/CampaignsTriggerScheduleDeletePostBody.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $campaignId; + /** + * @var string + */ + protected $scheduleId; + + public function getCampaignId(): string + { + return $this->campaignId; + } + + public function setCampaignId(string $campaignId): self + { + $this->initialized['campaignId'] = true; + $this->campaignId = $campaignId; + + return $this; + } + + public function getScheduleId(): string + { + return $this->scheduleId; + } + + public function setScheduleId(string $scheduleId): self + { + $this->initialized['scheduleId'] = true; + $this->scheduleId = $scheduleId; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerScheduleUpdatePostBody.php b/lib/Model/CampaignsTriggerScheduleUpdatePostBody.php new file mode 100644 index 0000000..9a92c3a --- /dev/null +++ b/lib/Model/CampaignsTriggerScheduleUpdatePostBody.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $campaignId; + /** + * @var string + */ + protected $scheduleId; + /** + * @var CampaignsTriggerScheduleUpdatePostBodySchedule + */ + protected $schedule; + + public function getCampaignId(): string + { + return $this->campaignId; + } + + public function setCampaignId(string $campaignId): self + { + $this->initialized['campaignId'] = true; + $this->campaignId = $campaignId; + + return $this; + } + + public function getScheduleId(): string + { + return $this->scheduleId; + } + + public function setScheduleId(string $scheduleId): self + { + $this->initialized['scheduleId'] = true; + $this->scheduleId = $scheduleId; + + return $this; + } + + public function getSchedule(): CampaignsTriggerScheduleUpdatePostBodySchedule + { + return $this->schedule; + } + + public function setSchedule(CampaignsTriggerScheduleUpdatePostBodySchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerScheduleUpdatePostBodySchedule.php b/lib/Model/CampaignsTriggerScheduleUpdatePostBodySchedule.php new file mode 100644 index 0000000..8a5af54 --- /dev/null +++ b/lib/Model/CampaignsTriggerScheduleUpdatePostBodySchedule.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $time; + /** + * @var bool + */ + protected $inLocalTime; + + public function getTime(): string + { + return $this->time; + } + + public function setTime(string $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } + + public function getInLocalTime(): bool + { + return $this->inLocalTime; + } + + public function setInLocalTime(bool $inLocalTime): self + { + $this->initialized['inLocalTime'] = true; + $this->inLocalTime = $inLocalTime; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerSendPostBody.php b/lib/Model/CampaignsTriggerSendPostBody.php new file mode 100644 index 0000000..e9b1837 --- /dev/null +++ b/lib/Model/CampaignsTriggerSendPostBody.php @@ -0,0 +1,132 @@ +initialized); + } + /** + * @var string + */ + protected $campaignId; + /** + * @var string + */ + protected $sendId; + /** + * @var string + */ + protected $triggerProperties; + /** + * @var bool + */ + protected $broadcast; + /** + * @var CampaignsTriggerSendPostBodyAudience + */ + protected $audience; + /** + * @var CampaignsTriggerSendPostBodyRecipientsItem[] + */ + protected $recipients; + + public function getCampaignId(): string + { + return $this->campaignId; + } + + public function setCampaignId(string $campaignId): self + { + $this->initialized['campaignId'] = true; + $this->campaignId = $campaignId; + + return $this; + } + + public function getSendId(): string + { + return $this->sendId; + } + + public function setSendId(string $sendId): self + { + $this->initialized['sendId'] = true; + $this->sendId = $sendId; + + return $this; + } + + public function getTriggerProperties(): string + { + return $this->triggerProperties; + } + + public function setTriggerProperties(string $triggerProperties): self + { + $this->initialized['triggerProperties'] = true; + $this->triggerProperties = $triggerProperties; + + return $this; + } + + public function getBroadcast(): bool + { + return $this->broadcast; + } + + public function setBroadcast(bool $broadcast): self + { + $this->initialized['broadcast'] = true; + $this->broadcast = $broadcast; + + return $this; + } + + public function getAudience(): CampaignsTriggerSendPostBodyAudience + { + return $this->audience; + } + + public function setAudience(CampaignsTriggerSendPostBodyAudience $audience): self + { + $this->initialized['audience'] = true; + $this->audience = $audience; + + return $this; + } + + /** + * @return CampaignsTriggerSendPostBodyRecipientsItem[] + */ + public function getRecipients(): array + { + return $this->recipients; + } + + /** + * @param CampaignsTriggerSendPostBodyRecipientsItem[] $recipients + */ + public function setRecipients(array $recipients): self + { + $this->initialized['recipients'] = true; + $this->recipients = $recipients; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerSendPostBodyAudience.php b/lib/Model/CampaignsTriggerSendPostBodyAudience.php new file mode 100644 index 0000000..fd9138e --- /dev/null +++ b/lib/Model/CampaignsTriggerSendPostBodyAudience.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var mixed[] + */ + protected $aND; + + /** + * @return mixed[] + */ + public function getAND(): array + { + return $this->aND; + } + + /** + * @param mixed[] $aND + */ + public function setAND(array $aND): self + { + $this->initialized['aND'] = true; + $this->aND = $aND; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerSendPostBodyRecipientsItem.php b/lib/Model/CampaignsTriggerSendPostBodyRecipientsItem.php new file mode 100644 index 0000000..b7a1b55 --- /dev/null +++ b/lib/Model/CampaignsTriggerSendPostBodyRecipientsItem.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var CampaignsTriggerSendPostBodyRecipientsItemUserAlias + */ + protected $userAlias; + /** + * @var string + */ + protected $externalUserId; + /** + * @var string + */ + protected $triggerProperties; + /** + * @var bool + */ + protected $sendToExistingOnly; + /** + * @var CampaignsTriggerSendPostBodyRecipientsItemAttributes + */ + protected $attributes; + + public function getUserAlias(): CampaignsTriggerSendPostBodyRecipientsItemUserAlias + { + return $this->userAlias; + } + + public function setUserAlias(CampaignsTriggerSendPostBodyRecipientsItemUserAlias $userAlias): self + { + $this->initialized['userAlias'] = true; + $this->userAlias = $userAlias; + + return $this; + } + + public function getExternalUserId(): string + { + return $this->externalUserId; + } + + public function setExternalUserId(string $externalUserId): self + { + $this->initialized['externalUserId'] = true; + $this->externalUserId = $externalUserId; + + return $this; + } + + public function getTriggerProperties(): string + { + return $this->triggerProperties; + } + + public function setTriggerProperties(string $triggerProperties): self + { + $this->initialized['triggerProperties'] = true; + $this->triggerProperties = $triggerProperties; + + return $this; + } + + public function getSendToExistingOnly(): bool + { + return $this->sendToExistingOnly; + } + + public function setSendToExistingOnly(bool $sendToExistingOnly): self + { + $this->initialized['sendToExistingOnly'] = true; + $this->sendToExistingOnly = $sendToExistingOnly; + + return $this; + } + + public function getAttributes(): CampaignsTriggerSendPostBodyRecipientsItemAttributes + { + return $this->attributes; + } + + public function setAttributes(CampaignsTriggerSendPostBodyRecipientsItemAttributes $attributes): self + { + $this->initialized['attributes'] = true; + $this->attributes = $attributes; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerSendPostBodyRecipientsItemAttributes.php b/lib/Model/CampaignsTriggerSendPostBodyRecipientsItemAttributes.php new file mode 100644 index 0000000..82b185c --- /dev/null +++ b/lib/Model/CampaignsTriggerSendPostBodyRecipientsItemAttributes.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $firstName; + + public function getFirstName(): string + { + return $this->firstName; + } + + public function setFirstName(string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } +} diff --git a/lib/Model/CampaignsTriggerSendPostBodyRecipientsItemUserAlias.php b/lib/Model/CampaignsTriggerSendPostBodyRecipientsItemUserAlias.php new file mode 100644 index 0000000..3a67c3e --- /dev/null +++ b/lib/Model/CampaignsTriggerSendPostBodyRecipientsItemUserAlias.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $aliasName; + /** + * @var string + */ + protected $aliasLabel; + + public function getAliasName(): string + { + return $this->aliasName; + } + + public function setAliasName(string $aliasName): self + { + $this->initialized['aliasName'] = true; + $this->aliasName = $aliasName; + + return $this; + } + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerScheduleCreatePostBody.php b/lib/Model/CanvasTriggerScheduleCreatePostBody.php new file mode 100644 index 0000000..ae069ab --- /dev/null +++ b/lib/Model/CanvasTriggerScheduleCreatePostBody.php @@ -0,0 +1,138 @@ +initialized); + } + /** + * @var string + */ + protected $canvasId; + /** + * @var CanvasTriggerScheduleCreatePostBodyRecipientsItem[] + */ + protected $recipients; + /** + * @var CanvasTriggerScheduleCreatePostBodyAudience + */ + protected $audience; + /** + * @var bool + */ + protected $broadcast; + /** + * @var array + */ + protected $canvasEntryProperties; + /** + * @var CanvasTriggerScheduleCreatePostBodySchedule + */ + protected $schedule; + + public function getCanvasId(): string + { + return $this->canvasId; + } + + public function setCanvasId(string $canvasId): self + { + $this->initialized['canvasId'] = true; + $this->canvasId = $canvasId; + + return $this; + } + + /** + * @return CanvasTriggerScheduleCreatePostBodyRecipientsItem[] + */ + public function getRecipients(): array + { + return $this->recipients; + } + + /** + * @param CanvasTriggerScheduleCreatePostBodyRecipientsItem[] $recipients + */ + public function setRecipients(array $recipients): self + { + $this->initialized['recipients'] = true; + $this->recipients = $recipients; + + return $this; + } + + public function getAudience(): CanvasTriggerScheduleCreatePostBodyAudience + { + return $this->audience; + } + + public function setAudience(CanvasTriggerScheduleCreatePostBodyAudience $audience): self + { + $this->initialized['audience'] = true; + $this->audience = $audience; + + return $this; + } + + public function getBroadcast(): bool + { + return $this->broadcast; + } + + public function setBroadcast(bool $broadcast): self + { + $this->initialized['broadcast'] = true; + $this->broadcast = $broadcast; + + return $this; + } + + /** + * @return array + */ + public function getCanvasEntryProperties(): iterable + { + return $this->canvasEntryProperties; + } + + /** + * @param array $canvasEntryProperties + */ + public function setCanvasEntryProperties(iterable $canvasEntryProperties): self + { + $this->initialized['canvasEntryProperties'] = true; + $this->canvasEntryProperties = $canvasEntryProperties; + + return $this; + } + + public function getSchedule(): CanvasTriggerScheduleCreatePostBodySchedule + { + return $this->schedule; + } + + public function setSchedule(CanvasTriggerScheduleCreatePostBodySchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerScheduleCreatePostBodyAudience.php b/lib/Model/CanvasTriggerScheduleCreatePostBodyAudience.php new file mode 100644 index 0000000..f61d36f --- /dev/null +++ b/lib/Model/CanvasTriggerScheduleCreatePostBodyAudience.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var mixed[] + */ + protected $aND; + + /** + * @return mixed[] + */ + public function getAND(): array + { + return $this->aND; + } + + /** + * @param mixed[] $aND + */ + public function setAND(array $aND): self + { + $this->initialized['aND'] = true; + $this->aND = $aND; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerScheduleCreatePostBodyRecipientsItem.php b/lib/Model/CanvasTriggerScheduleCreatePostBodyRecipientsItem.php new file mode 100644 index 0000000..3246c7e --- /dev/null +++ b/lib/Model/CanvasTriggerScheduleCreatePostBodyRecipientsItem.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $userAlias; + /** + * @var string + */ + protected $externalUserId; + /** + * @var string + */ + protected $triggerProperties; + /** + * @var array + */ + protected $canvasEntryProperties; + + public function getUserAlias(): string + { + return $this->userAlias; + } + + public function setUserAlias(string $userAlias): self + { + $this->initialized['userAlias'] = true; + $this->userAlias = $userAlias; + + return $this; + } + + public function getExternalUserId(): string + { + return $this->externalUserId; + } + + public function setExternalUserId(string $externalUserId): self + { + $this->initialized['externalUserId'] = true; + $this->externalUserId = $externalUserId; + + return $this; + } + + public function getTriggerProperties(): string + { + return $this->triggerProperties; + } + + public function setTriggerProperties(string $triggerProperties): self + { + $this->initialized['triggerProperties'] = true; + $this->triggerProperties = $triggerProperties; + + return $this; + } + + /** + * @return array + */ + public function getCanvasEntryProperties(): iterable + { + return $this->canvasEntryProperties; + } + + /** + * @param array $canvasEntryProperties + */ + public function setCanvasEntryProperties(iterable $canvasEntryProperties): self + { + $this->initialized['canvasEntryProperties'] = true; + $this->canvasEntryProperties = $canvasEntryProperties; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerScheduleCreatePostBodySchedule.php b/lib/Model/CanvasTriggerScheduleCreatePostBodySchedule.php new file mode 100644 index 0000000..2fd8564 --- /dev/null +++ b/lib/Model/CanvasTriggerScheduleCreatePostBodySchedule.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $time; + /** + * @var bool + */ + protected $inLocalTime; + /** + * @var bool + */ + protected $atOptimalTime; + + public function getTime(): string + { + return $this->time; + } + + public function setTime(string $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } + + public function getInLocalTime(): bool + { + return $this->inLocalTime; + } + + public function setInLocalTime(bool $inLocalTime): self + { + $this->initialized['inLocalTime'] = true; + $this->inLocalTime = $inLocalTime; + + return $this; + } + + public function getAtOptimalTime(): bool + { + return $this->atOptimalTime; + } + + public function setAtOptimalTime(bool $atOptimalTime): self + { + $this->initialized['atOptimalTime'] = true; + $this->atOptimalTime = $atOptimalTime; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerScheduleDeletePostBody.php b/lib/Model/CanvasTriggerScheduleDeletePostBody.php new file mode 100644 index 0000000..afda06a --- /dev/null +++ b/lib/Model/CanvasTriggerScheduleDeletePostBody.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $canvasId; + /** + * @var string + */ + protected $scheduleId; + + public function getCanvasId(): string + { + return $this->canvasId; + } + + public function setCanvasId(string $canvasId): self + { + $this->initialized['canvasId'] = true; + $this->canvasId = $canvasId; + + return $this; + } + + public function getScheduleId(): string + { + return $this->scheduleId; + } + + public function setScheduleId(string $scheduleId): self + { + $this->initialized['scheduleId'] = true; + $this->scheduleId = $scheduleId; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerScheduleUpdatePostBody.php b/lib/Model/CanvasTriggerScheduleUpdatePostBody.php new file mode 100644 index 0000000..77e179d --- /dev/null +++ b/lib/Model/CanvasTriggerScheduleUpdatePostBody.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $canvasId; + /** + * @var string + */ + protected $scheduleId; + /** + * @var CanvasTriggerScheduleUpdatePostBodySchedule + */ + protected $schedule; + + public function getCanvasId(): string + { + return $this->canvasId; + } + + public function setCanvasId(string $canvasId): self + { + $this->initialized['canvasId'] = true; + $this->canvasId = $canvasId; + + return $this; + } + + public function getScheduleId(): string + { + return $this->scheduleId; + } + + public function setScheduleId(string $scheduleId): self + { + $this->initialized['scheduleId'] = true; + $this->scheduleId = $scheduleId; + + return $this; + } + + public function getSchedule(): CanvasTriggerScheduleUpdatePostBodySchedule + { + return $this->schedule; + } + + public function setSchedule(CanvasTriggerScheduleUpdatePostBodySchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerScheduleUpdatePostBodySchedule.php b/lib/Model/CanvasTriggerScheduleUpdatePostBodySchedule.php new file mode 100644 index 0000000..fe13320 --- /dev/null +++ b/lib/Model/CanvasTriggerScheduleUpdatePostBodySchedule.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $time; + /** + * @var bool + */ + protected $inLocalTime; + + public function getTime(): string + { + return $this->time; + } + + public function setTime(string $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } + + public function getInLocalTime(): bool + { + return $this->inLocalTime; + } + + public function setInLocalTime(bool $inLocalTime): self + { + $this->initialized['inLocalTime'] = true; + $this->inLocalTime = $inLocalTime; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerSendPostBody.php b/lib/Model/CanvasTriggerSendPostBody.php new file mode 100644 index 0000000..99a30d1 --- /dev/null +++ b/lib/Model/CanvasTriggerSendPostBody.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string + */ + protected $canvasId; + /** + * @var CanvasTriggerSendPostBodyCanvasEntryProperties + */ + protected $canvasEntryProperties; + /** + * @var bool + */ + protected $broadcast; + /** + * @var CanvasTriggerSendPostBodyAudience + */ + protected $audience; + /** + * @var CanvasTriggerSendPostBodyRecipientsItem[] + */ + protected $recipients; + + public function getCanvasId(): string + { + return $this->canvasId; + } + + public function setCanvasId(string $canvasId): self + { + $this->initialized['canvasId'] = true; + $this->canvasId = $canvasId; + + return $this; + } + + public function getCanvasEntryProperties(): CanvasTriggerSendPostBodyCanvasEntryProperties + { + return $this->canvasEntryProperties; + } + + public function setCanvasEntryProperties(CanvasTriggerSendPostBodyCanvasEntryProperties $canvasEntryProperties): self + { + $this->initialized['canvasEntryProperties'] = true; + $this->canvasEntryProperties = $canvasEntryProperties; + + return $this; + } + + public function getBroadcast(): bool + { + return $this->broadcast; + } + + public function setBroadcast(bool $broadcast): self + { + $this->initialized['broadcast'] = true; + $this->broadcast = $broadcast; + + return $this; + } + + public function getAudience(): CanvasTriggerSendPostBodyAudience + { + return $this->audience; + } + + public function setAudience(CanvasTriggerSendPostBodyAudience $audience): self + { + $this->initialized['audience'] = true; + $this->audience = $audience; + + return $this; + } + + /** + * @return CanvasTriggerSendPostBodyRecipientsItem[] + */ + public function getRecipients(): array + { + return $this->recipients; + } + + /** + * @param CanvasTriggerSendPostBodyRecipientsItem[] $recipients + */ + public function setRecipients(array $recipients): self + { + $this->initialized['recipients'] = true; + $this->recipients = $recipients; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerSendPostBodyAudience.php b/lib/Model/CanvasTriggerSendPostBodyAudience.php new file mode 100644 index 0000000..36949ba --- /dev/null +++ b/lib/Model/CanvasTriggerSendPostBodyAudience.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var mixed[] + */ + protected $aND; + + /** + * @return mixed[] + */ + public function getAND(): array + { + return $this->aND; + } + + /** + * @param mixed[] $aND + */ + public function setAND(array $aND): self + { + $this->initialized['aND'] = true; + $this->aND = $aND; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerSendPostBodyCanvasEntryProperties.php b/lib/Model/CanvasTriggerSendPostBodyCanvasEntryProperties.php new file mode 100644 index 0000000..300fb69 --- /dev/null +++ b/lib/Model/CanvasTriggerSendPostBodyCanvasEntryProperties.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $productName; + /** + * @var float + */ + protected $productPrice; + + public function getProductName(): string + { + return $this->productName; + } + + public function setProductName(string $productName): self + { + $this->initialized['productName'] = true; + $this->productName = $productName; + + return $this; + } + + public function getProductPrice(): float + { + return $this->productPrice; + } + + public function setProductPrice(float $productPrice): self + { + $this->initialized['productPrice'] = true; + $this->productPrice = $productPrice; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerSendPostBodyRecipientsItem.php b/lib/Model/CanvasTriggerSendPostBodyRecipientsItem.php new file mode 100644 index 0000000..e084c4e --- /dev/null +++ b/lib/Model/CanvasTriggerSendPostBodyRecipientsItem.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var CanvasTriggerSendPostBodyRecipientsItemUserAlias + */ + protected $userAlias; + /** + * @var string + */ + protected $externalUserId; + /** + * @var string + */ + protected $triggerProperties; + /** + * @var string + */ + protected $canvasEntryProperties; + /** + * @var bool + */ + protected $sendToExistingOnly; + /** + * @var CanvasTriggerSendPostBodyRecipientsItemAttributes + */ + protected $attributes; + + public function getUserAlias(): CanvasTriggerSendPostBodyRecipientsItemUserAlias + { + return $this->userAlias; + } + + public function setUserAlias(CanvasTriggerSendPostBodyRecipientsItemUserAlias $userAlias): self + { + $this->initialized['userAlias'] = true; + $this->userAlias = $userAlias; + + return $this; + } + + public function getExternalUserId(): string + { + return $this->externalUserId; + } + + public function setExternalUserId(string $externalUserId): self + { + $this->initialized['externalUserId'] = true; + $this->externalUserId = $externalUserId; + + return $this; + } + + public function getTriggerProperties(): string + { + return $this->triggerProperties; + } + + public function setTriggerProperties(string $triggerProperties): self + { + $this->initialized['triggerProperties'] = true; + $this->triggerProperties = $triggerProperties; + + return $this; + } + + public function getCanvasEntryProperties(): string + { + return $this->canvasEntryProperties; + } + + public function setCanvasEntryProperties(string $canvasEntryProperties): self + { + $this->initialized['canvasEntryProperties'] = true; + $this->canvasEntryProperties = $canvasEntryProperties; + + return $this; + } + + public function getSendToExistingOnly(): bool + { + return $this->sendToExistingOnly; + } + + public function setSendToExistingOnly(bool $sendToExistingOnly): self + { + $this->initialized['sendToExistingOnly'] = true; + $this->sendToExistingOnly = $sendToExistingOnly; + + return $this; + } + + public function getAttributes(): CanvasTriggerSendPostBodyRecipientsItemAttributes + { + return $this->attributes; + } + + public function setAttributes(CanvasTriggerSendPostBodyRecipientsItemAttributes $attributes): self + { + $this->initialized['attributes'] = true; + $this->attributes = $attributes; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerSendPostBodyRecipientsItemAttributes.php b/lib/Model/CanvasTriggerSendPostBodyRecipientsItemAttributes.php new file mode 100644 index 0000000..0452465 --- /dev/null +++ b/lib/Model/CanvasTriggerSendPostBodyRecipientsItemAttributes.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $firstName; + + public function getFirstName(): string + { + return $this->firstName; + } + + public function setFirstName(string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } +} diff --git a/lib/Model/CanvasTriggerSendPostBodyRecipientsItemUserAlias.php b/lib/Model/CanvasTriggerSendPostBodyRecipientsItemUserAlias.php new file mode 100644 index 0000000..1c0b687 --- /dev/null +++ b/lib/Model/CanvasTriggerSendPostBodyRecipientsItemUserAlias.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $aliasName; + /** + * @var string + */ + protected $aliasLabel; + + public function getAliasName(): string + { + return $this->aliasName; + } + + public function setAliasName(string $aliasName): self + { + $this->initialized['aliasName'] = true; + $this->aliasName = $aliasName; + + return $this; + } + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } +} diff --git a/lib/Model/CatalogsCatalogNameItemsItemIdPatchBody.php b/lib/Model/CatalogsCatalogNameItemsItemIdPatchBody.php new file mode 100644 index 0000000..673ff10 --- /dev/null +++ b/lib/Model/CatalogsCatalogNameItemsItemIdPatchBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var array[] + */ + protected $items; + + /** + * @return array[] + */ + public function getItems(): array + { + return $this->items; + } + + /** + * @param array[] $items + */ + public function setItems(array $items): self + { + $this->initialized['items'] = true; + $this->items = $items; + + return $this; + } +} diff --git a/lib/Model/CatalogsCatalogNameItemsItemIdPostBody.php b/lib/Model/CatalogsCatalogNameItemsItemIdPostBody.php new file mode 100644 index 0000000..6ea95dd --- /dev/null +++ b/lib/Model/CatalogsCatalogNameItemsItemIdPostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var array[] + */ + protected $items; + + /** + * @return array[] + */ + public function getItems(): array + { + return $this->items; + } + + /** + * @param array[] $items + */ + public function setItems(array $items): self + { + $this->initialized['items'] = true; + $this->items = $items; + + return $this; + } +} diff --git a/lib/Model/CatalogsCatalogNameItemsItemIdPutBody.php b/lib/Model/CatalogsCatalogNameItemsItemIdPutBody.php new file mode 100644 index 0000000..83dd92b --- /dev/null +++ b/lib/Model/CatalogsCatalogNameItemsItemIdPutBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var array[] + */ + protected $items; + + /** + * @return array[] + */ + public function getItems(): array + { + return $this->items; + } + + /** + * @param array[] $items + */ + public function setItems(array $items): self + { + $this->initialized['items'] = true; + $this->items = $items; + + return $this; + } +} diff --git a/lib/Model/CatalogsCatalogNameItemsPatchBody.php b/lib/Model/CatalogsCatalogNameItemsPatchBody.php new file mode 100644 index 0000000..985a162 --- /dev/null +++ b/lib/Model/CatalogsCatalogNameItemsPatchBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var CatalogsCatalogNameItemsPatchBodyItemsItem[] + */ + protected $items; + + /** + * @return CatalogsCatalogNameItemsPatchBodyItemsItem[] + */ + public function getItems(): array + { + return $this->items; + } + + /** + * @param CatalogsCatalogNameItemsPatchBodyItemsItem[] $items + */ + public function setItems(array $items): self + { + $this->initialized['items'] = true; + $this->items = $items; + + return $this; + } +} diff --git a/lib/Model/CatalogsCatalogNameItemsPatchBodyItemsItem.php b/lib/Model/CatalogsCatalogNameItemsPatchBodyItemsItem.php new file mode 100644 index 0000000..1a68342 --- /dev/null +++ b/lib/Model/CatalogsCatalogNameItemsPatchBodyItemsItem.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/lib/Model/CatalogsCatalogNameItemsPostBody.php b/lib/Model/CatalogsCatalogNameItemsPostBody.php new file mode 100644 index 0000000..6709bd1 --- /dev/null +++ b/lib/Model/CatalogsCatalogNameItemsPostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var array[] + */ + protected $items; + + /** + * @return array[] + */ + public function getItems(): array + { + return $this->items; + } + + /** + * @param array[] $items + */ + public function setItems(array $items): self + { + $this->initialized['items'] = true; + $this->items = $items; + + return $this; + } +} diff --git a/lib/Model/CatalogsCatalogNameItemsPutBody.php b/lib/Model/CatalogsCatalogNameItemsPutBody.php new file mode 100644 index 0000000..39ed26c --- /dev/null +++ b/lib/Model/CatalogsCatalogNameItemsPutBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var array[] + */ + protected $items; + + /** + * @return array[] + */ + public function getItems(): array + { + return $this->items; + } + + /** + * @param array[] $items + */ + public function setItems(array $items): self + { + $this->initialized['items'] = true; + $this->items = $items; + + return $this; + } +} diff --git a/lib/Model/CatalogsPostBody.php b/lib/Model/CatalogsPostBody.php new file mode 100644 index 0000000..a4300e4 --- /dev/null +++ b/lib/Model/CatalogsPostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var CatalogsPostBodyCatalogsItem[] + */ + protected $catalogs; + + /** + * @return CatalogsPostBodyCatalogsItem[] + */ + public function getCatalogs(): array + { + return $this->catalogs; + } + + /** + * @param CatalogsPostBodyCatalogsItem[] $catalogs + */ + public function setCatalogs(array $catalogs): self + { + $this->initialized['catalogs'] = true; + $this->catalogs = $catalogs; + + return $this; + } +} diff --git a/lib/Model/CatalogsPostBodyCatalogsItem.php b/lib/Model/CatalogsPostBodyCatalogsItem.php new file mode 100644 index 0000000..0262b7c --- /dev/null +++ b/lib/Model/CatalogsPostBodyCatalogsItem.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $description; + /** + * @var CatalogsPostBodyCatalogsItemFieldsItem[] + */ + protected $fields; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return CatalogsPostBodyCatalogsItemFieldsItem[] + */ + public function getFields(): array + { + return $this->fields; + } + + /** + * @param CatalogsPostBodyCatalogsItemFieldsItem[] $fields + */ + public function setFields(array $fields): self + { + $this->initialized['fields'] = true; + $this->fields = $fields; + + return $this; + } +} diff --git a/lib/Model/CatalogsPostBodyCatalogsItemFieldsItem.php b/lib/Model/CatalogsPostBodyCatalogsItemFieldsItem.php new file mode 100644 index 0000000..e1d1516 --- /dev/null +++ b/lib/Model/CatalogsPostBodyCatalogsItemFieldsItem.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $type; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/lib/Model/ContentBlocksCreatePostBody.php b/lib/Model/ContentBlocksCreatePostBody.php new file mode 100644 index 0000000..a9021c5 --- /dev/null +++ b/lib/Model/ContentBlocksCreatePostBody.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $description; + /** + * @var string + */ + protected $content; + /** + * @var string + */ + protected $state; + /** + * @var string[] + */ + protected $tags; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getContent(): string + { + return $this->content; + } + + public function setContent(string $content): self + { + $this->initialized['content'] = true; + $this->content = $content; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return string[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param string[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } +} diff --git a/lib/Model/ContentBlocksUpdatePostBody.php b/lib/Model/ContentBlocksUpdatePostBody.php new file mode 100644 index 0000000..5edcaa6 --- /dev/null +++ b/lib/Model/ContentBlocksUpdatePostBody.php @@ -0,0 +1,132 @@ +initialized); + } + /** + * @var string + */ + protected $contentBlockId; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $description; + /** + * @var string + */ + protected $content; + /** + * @var string + */ + protected $state; + /** + * @var string[] + */ + protected $tags; + + public function getContentBlockId(): string + { + return $this->contentBlockId; + } + + public function setContentBlockId(string $contentBlockId): self + { + $this->initialized['contentBlockId'] = true; + $this->contentBlockId = $contentBlockId; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getContent(): string + { + return $this->content; + } + + public function setContent(string $content): self + { + $this->initialized['content'] = true; + $this->content = $content; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return string[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param string[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } +} diff --git a/lib/Model/EmailBlacklistPostBody.php b/lib/Model/EmailBlacklistPostBody.php new file mode 100644 index 0000000..5c98380 --- /dev/null +++ b/lib/Model/EmailBlacklistPostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $email; + + /** + * @return string[] + */ + public function getEmail(): array + { + return $this->email; + } + + /** + * @param string[] $email + */ + public function setEmail(array $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } +} diff --git a/lib/Model/EmailBlocklistPostBody.php b/lib/Model/EmailBlocklistPostBody.php new file mode 100644 index 0000000..44f8f72 --- /dev/null +++ b/lib/Model/EmailBlocklistPostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $email; + + /** + * @return string[] + */ + public function getEmail(): array + { + return $this->email; + } + + /** + * @param string[] $email + */ + public function setEmail(array $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } +} diff --git a/lib/Model/EmailBounceRemovePostBody.php b/lib/Model/EmailBounceRemovePostBody.php new file mode 100644 index 0000000..a3048f3 --- /dev/null +++ b/lib/Model/EmailBounceRemovePostBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $email; + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } +} diff --git a/lib/Model/EmailSpamRemovePostBody.php b/lib/Model/EmailSpamRemovePostBody.php new file mode 100644 index 0000000..f9005f5 --- /dev/null +++ b/lib/Model/EmailSpamRemovePostBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $email; + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } +} diff --git a/lib/Model/EmailStatusPostBody.php b/lib/Model/EmailStatusPostBody.php new file mode 100644 index 0000000..a8618af --- /dev/null +++ b/lib/Model/EmailStatusPostBody.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $email; + /** + * @var string + */ + protected $subscriptionState; + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } + + public function getSubscriptionState(): string + { + return $this->subscriptionState; + } + + public function setSubscriptionState(string $subscriptionState): self + { + $this->initialized['subscriptionState'] = true; + $this->subscriptionState = $subscriptionState; + + return $this; + } +} diff --git a/lib/Model/MessagesLiveActivityUpdatePostBody.php b/lib/Model/MessagesLiveActivityUpdatePostBody.php new file mode 100644 index 0000000..a8a6a78 --- /dev/null +++ b/lib/Model/MessagesLiveActivityUpdatePostBody.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $appId; + /** + * @var string + */ + protected $activityId; + /** + * @var MessagesLiveActivityUpdatePostBodyContentState + */ + protected $contentState; + /** + * @var bool + */ + protected $endActivity; + /** + * @var string + */ + protected $dismissalDate; + /** + * @var string + */ + protected $staleDate; + /** + * @var MessagesLiveActivityUpdatePostBodyNotification + */ + protected $notification; + + public function getAppId(): string + { + return $this->appId; + } + + public function setAppId(string $appId): self + { + $this->initialized['appId'] = true; + $this->appId = $appId; + + return $this; + } + + public function getActivityId(): string + { + return $this->activityId; + } + + public function setActivityId(string $activityId): self + { + $this->initialized['activityId'] = true; + $this->activityId = $activityId; + + return $this; + } + + public function getContentState(): MessagesLiveActivityUpdatePostBodyContentState + { + return $this->contentState; + } + + public function setContentState(MessagesLiveActivityUpdatePostBodyContentState $contentState): self + { + $this->initialized['contentState'] = true; + $this->contentState = $contentState; + + return $this; + } + + public function getEndActivity(): bool + { + return $this->endActivity; + } + + public function setEndActivity(bool $endActivity): self + { + $this->initialized['endActivity'] = true; + $this->endActivity = $endActivity; + + return $this; + } + + public function getDismissalDate(): string + { + return $this->dismissalDate; + } + + public function setDismissalDate(string $dismissalDate): self + { + $this->initialized['dismissalDate'] = true; + $this->dismissalDate = $dismissalDate; + + return $this; + } + + public function getStaleDate(): string + { + return $this->staleDate; + } + + public function setStaleDate(string $staleDate): self + { + $this->initialized['staleDate'] = true; + $this->staleDate = $staleDate; + + return $this; + } + + public function getNotification(): MessagesLiveActivityUpdatePostBodyNotification + { + return $this->notification; + } + + public function setNotification(MessagesLiveActivityUpdatePostBodyNotification $notification): self + { + $this->initialized['notification'] = true; + $this->notification = $notification; + + return $this; + } +} diff --git a/lib/Model/MessagesLiveActivityUpdatePostBodyContentState.php b/lib/Model/MessagesLiveActivityUpdatePostBodyContentState.php new file mode 100644 index 0000000..2f89079 --- /dev/null +++ b/lib/Model/MessagesLiveActivityUpdatePostBodyContentState.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var int + */ + protected $teamOneScore; + /** + * @var int + */ + protected $teamTwoScore; + + public function getTeamOneScore(): int + { + return $this->teamOneScore; + } + + public function setTeamOneScore(int $teamOneScore): self + { + $this->initialized['teamOneScore'] = true; + $this->teamOneScore = $teamOneScore; + + return $this; + } + + public function getTeamTwoScore(): int + { + return $this->teamTwoScore; + } + + public function setTeamTwoScore(int $teamTwoScore): self + { + $this->initialized['teamTwoScore'] = true; + $this->teamTwoScore = $teamTwoScore; + + return $this; + } +} diff --git a/lib/Model/MessagesLiveActivityUpdatePostBodyNotification.php b/lib/Model/MessagesLiveActivityUpdatePostBodyNotification.php new file mode 100644 index 0000000..5957740 --- /dev/null +++ b/lib/Model/MessagesLiveActivityUpdatePostBodyNotification.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var MessagesLiveActivityUpdatePostBodyNotificationAlert + */ + protected $alert; + + public function getAlert(): MessagesLiveActivityUpdatePostBodyNotificationAlert + { + return $this->alert; + } + + public function setAlert(MessagesLiveActivityUpdatePostBodyNotificationAlert $alert): self + { + $this->initialized['alert'] = true; + $this->alert = $alert; + + return $this; + } +} diff --git a/lib/Model/MessagesLiveActivityUpdatePostBodyNotificationAlert.php b/lib/Model/MessagesLiveActivityUpdatePostBodyNotificationAlert.php new file mode 100644 index 0000000..5ea77d7 --- /dev/null +++ b/lib/Model/MessagesLiveActivityUpdatePostBodyNotificationAlert.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $body; + /** + * @var string + */ + protected $title; + + public function getBody(): string + { + return $this->body; + } + + public function setBody(string $body): self + { + $this->initialized['body'] = true; + $this->body = $body; + + return $this; + } + + public function getTitle(): string + { + return $this->title; + } + + public function setTitle(string $title): self + { + $this->initialized['title'] = true; + $this->title = $title; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleCreatePostBody.php b/lib/Model/MessagesScheduleCreatePostBody.php new file mode 100644 index 0000000..d02c9c8 --- /dev/null +++ b/lib/Model/MessagesScheduleCreatePostBody.php @@ -0,0 +1,211 @@ +initialized); + } + /** + * @var bool + */ + protected $broadcast; + /** + * @var string + */ + protected $externalUserIds; + /** + * @var MessagesScheduleCreatePostBodyUserAliases + */ + protected $userAliases; + /** + * @var string + */ + protected $segmentId; + /** + * @var MessagesScheduleCreatePostBodyAudience + */ + protected $audience; + /** + * @var string + */ + protected $campaignId; + /** + * @var string + */ + protected $sendId; + /** + * @var bool + */ + protected $overrideMessagingLimits; + /** + * @var string + */ + protected $recipientSubscriptionState; + /** + * @var MessagesScheduleCreatePostBodySchedule + */ + protected $schedule; + /** + * @var MessagesScheduleCreatePostBodyMessages + */ + protected $messages; + + public function getBroadcast(): bool + { + return $this->broadcast; + } + + public function setBroadcast(bool $broadcast): self + { + $this->initialized['broadcast'] = true; + $this->broadcast = $broadcast; + + return $this; + } + + public function getExternalUserIds(): string + { + return $this->externalUserIds; + } + + public function setExternalUserIds(string $externalUserIds): self + { + $this->initialized['externalUserIds'] = true; + $this->externalUserIds = $externalUserIds; + + return $this; + } + + public function getUserAliases(): MessagesScheduleCreatePostBodyUserAliases + { + return $this->userAliases; + } + + public function setUserAliases(MessagesScheduleCreatePostBodyUserAliases $userAliases): self + { + $this->initialized['userAliases'] = true; + $this->userAliases = $userAliases; + + return $this; + } + + public function getSegmentId(): string + { + return $this->segmentId; + } + + public function setSegmentId(string $segmentId): self + { + $this->initialized['segmentId'] = true; + $this->segmentId = $segmentId; + + return $this; + } + + public function getAudience(): MessagesScheduleCreatePostBodyAudience + { + return $this->audience; + } + + public function setAudience(MessagesScheduleCreatePostBodyAudience $audience): self + { + $this->initialized['audience'] = true; + $this->audience = $audience; + + return $this; + } + + public function getCampaignId(): string + { + return $this->campaignId; + } + + public function setCampaignId(string $campaignId): self + { + $this->initialized['campaignId'] = true; + $this->campaignId = $campaignId; + + return $this; + } + + public function getSendId(): string + { + return $this->sendId; + } + + public function setSendId(string $sendId): self + { + $this->initialized['sendId'] = true; + $this->sendId = $sendId; + + return $this; + } + + public function getOverrideMessagingLimits(): bool + { + return $this->overrideMessagingLimits; + } + + public function setOverrideMessagingLimits(bool $overrideMessagingLimits): self + { + $this->initialized['overrideMessagingLimits'] = true; + $this->overrideMessagingLimits = $overrideMessagingLimits; + + return $this; + } + + public function getRecipientSubscriptionState(): string + { + return $this->recipientSubscriptionState; + } + + public function setRecipientSubscriptionState(string $recipientSubscriptionState): self + { + $this->initialized['recipientSubscriptionState'] = true; + $this->recipientSubscriptionState = $recipientSubscriptionState; + + return $this; + } + + public function getSchedule(): MessagesScheduleCreatePostBodySchedule + { + return $this->schedule; + } + + public function setSchedule(MessagesScheduleCreatePostBodySchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } + + public function getMessages(): MessagesScheduleCreatePostBodyMessages + { + return $this->messages; + } + + public function setMessages(MessagesScheduleCreatePostBodyMessages $messages): self + { + $this->initialized['messages'] = true; + $this->messages = $messages; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleCreatePostBodyAudience.php b/lib/Model/MessagesScheduleCreatePostBodyAudience.php new file mode 100644 index 0000000..1e42087 --- /dev/null +++ b/lib/Model/MessagesScheduleCreatePostBodyAudience.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var mixed[] + */ + protected $aND; + + /** + * @return mixed[] + */ + public function getAND(): array + { + return $this->aND; + } + + /** + * @param mixed[] $aND + */ + public function setAND(array $aND): self + { + $this->initialized['aND'] = true; + $this->aND = $aND; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleCreatePostBodyMessages.php b/lib/Model/MessagesScheduleCreatePostBodyMessages.php new file mode 100644 index 0000000..7cd548a --- /dev/null +++ b/lib/Model/MessagesScheduleCreatePostBodyMessages.php @@ -0,0 +1,231 @@ +initialized); + } + /** + * @var array + */ + protected $applePush; + /** + * @var array + */ + protected $androidPush; + /** + * @var array + */ + protected $windowsPush; + /** + * @var array + */ + protected $windows8Push; + /** + * @var array + */ + protected $kindlePush; + /** + * @var array + */ + protected $webPush; + /** + * @var array + */ + protected $email; + /** + * @var array + */ + protected $webhook; + /** + * @var array + */ + protected $contentCard; + + /** + * @return array + */ + public function getApplePush(): iterable + { + return $this->applePush; + } + + /** + * @param array $applePush + */ + public function setApplePush(iterable $applePush): self + { + $this->initialized['applePush'] = true; + $this->applePush = $applePush; + + return $this; + } + + /** + * @return array + */ + public function getAndroidPush(): iterable + { + return $this->androidPush; + } + + /** + * @param array $androidPush + */ + public function setAndroidPush(iterable $androidPush): self + { + $this->initialized['androidPush'] = true; + $this->androidPush = $androidPush; + + return $this; + } + + /** + * @return array + */ + public function getWindowsPush(): iterable + { + return $this->windowsPush; + } + + /** + * @param array $windowsPush + */ + public function setWindowsPush(iterable $windowsPush): self + { + $this->initialized['windowsPush'] = true; + $this->windowsPush = $windowsPush; + + return $this; + } + + /** + * @return array + */ + public function getWindows8Push(): iterable + { + return $this->windows8Push; + } + + /** + * @param array $windows8Push + */ + public function setWindows8Push(iterable $windows8Push): self + { + $this->initialized['windows8Push'] = true; + $this->windows8Push = $windows8Push; + + return $this; + } + + /** + * @return array + */ + public function getKindlePush(): iterable + { + return $this->kindlePush; + } + + /** + * @param array $kindlePush + */ + public function setKindlePush(iterable $kindlePush): self + { + $this->initialized['kindlePush'] = true; + $this->kindlePush = $kindlePush; + + return $this; + } + + /** + * @return array + */ + public function getWebPush(): iterable + { + return $this->webPush; + } + + /** + * @param array $webPush + */ + public function setWebPush(iterable $webPush): self + { + $this->initialized['webPush'] = true; + $this->webPush = $webPush; + + return $this; + } + + /** + * @return array + */ + public function getEmail(): iterable + { + return $this->email; + } + + /** + * @param array $email + */ + public function setEmail(iterable $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } + + /** + * @return array + */ + public function getWebhook(): iterable + { + return $this->webhook; + } + + /** + * @param array $webhook + */ + public function setWebhook(iterable $webhook): self + { + $this->initialized['webhook'] = true; + $this->webhook = $webhook; + + return $this; + } + + /** + * @return array + */ + public function getContentCard(): iterable + { + return $this->contentCard; + } + + /** + * @param array $contentCard + */ + public function setContentCard(iterable $contentCard): self + { + $this->initialized['contentCard'] = true; + $this->contentCard = $contentCard; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleCreatePostBodySchedule.php b/lib/Model/MessagesScheduleCreatePostBodySchedule.php new file mode 100644 index 0000000..828c7de --- /dev/null +++ b/lib/Model/MessagesScheduleCreatePostBodySchedule.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $time; + /** + * @var bool + */ + protected $inLocalTime; + /** + * @var bool + */ + protected $atOptimalTime; + + public function getTime(): string + { + return $this->time; + } + + public function setTime(string $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } + + public function getInLocalTime(): bool + { + return $this->inLocalTime; + } + + public function setInLocalTime(bool $inLocalTime): self + { + $this->initialized['inLocalTime'] = true; + $this->inLocalTime = $inLocalTime; + + return $this; + } + + public function getAtOptimalTime(): bool + { + return $this->atOptimalTime; + } + + public function setAtOptimalTime(bool $atOptimalTime): self + { + $this->initialized['atOptimalTime'] = true; + $this->atOptimalTime = $atOptimalTime; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleCreatePostBodyUserAliases.php b/lib/Model/MessagesScheduleCreatePostBodyUserAliases.php new file mode 100644 index 0000000..cd70e74 --- /dev/null +++ b/lib/Model/MessagesScheduleCreatePostBodyUserAliases.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $aliasName; + /** + * @var string + */ + protected $aliasLabel; + + public function getAliasName(): string + { + return $this->aliasName; + } + + public function setAliasName(string $aliasName): self + { + $this->initialized['aliasName'] = true; + $this->aliasName = $aliasName; + + return $this; + } + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleDeletePostBody.php b/lib/Model/MessagesScheduleDeletePostBody.php new file mode 100644 index 0000000..92b9e72 --- /dev/null +++ b/lib/Model/MessagesScheduleDeletePostBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $scheduleId; + + public function getScheduleId(): string + { + return $this->scheduleId; + } + + public function setScheduleId(string $scheduleId): self + { + $this->initialized['scheduleId'] = true; + $this->scheduleId = $scheduleId; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleUpdatePostBody.php b/lib/Model/MessagesScheduleUpdatePostBody.php new file mode 100644 index 0000000..d46d4ff --- /dev/null +++ b/lib/Model/MessagesScheduleUpdatePostBody.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $scheduleId; + /** + * @var MessagesScheduleUpdatePostBodySchedule + */ + protected $schedule; + /** + * @var MessagesScheduleUpdatePostBodyMessages + */ + protected $messages; + + public function getScheduleId(): string + { + return $this->scheduleId; + } + + public function setScheduleId(string $scheduleId): self + { + $this->initialized['scheduleId'] = true; + $this->scheduleId = $scheduleId; + + return $this; + } + + public function getSchedule(): MessagesScheduleUpdatePostBodySchedule + { + return $this->schedule; + } + + public function setSchedule(MessagesScheduleUpdatePostBodySchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } + + public function getMessages(): MessagesScheduleUpdatePostBodyMessages + { + return $this->messages; + } + + public function setMessages(MessagesScheduleUpdatePostBodyMessages $messages): self + { + $this->initialized['messages'] = true; + $this->messages = $messages; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleUpdatePostBodyMessages.php b/lib/Model/MessagesScheduleUpdatePostBodyMessages.php new file mode 100644 index 0000000..56f3952 --- /dev/null +++ b/lib/Model/MessagesScheduleUpdatePostBodyMessages.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var MessagesScheduleUpdatePostBodyMessagesApplePush + */ + protected $applePush; + /** + * @var MessagesScheduleUpdatePostBodyMessagesAndroidPush + */ + protected $androidPush; + /** + * @var MessagesScheduleUpdatePostBodyMessagesSms + */ + protected $sms; + + public function getApplePush(): MessagesScheduleUpdatePostBodyMessagesApplePush + { + return $this->applePush; + } + + public function setApplePush(MessagesScheduleUpdatePostBodyMessagesApplePush $applePush): self + { + $this->initialized['applePush'] = true; + $this->applePush = $applePush; + + return $this; + } + + public function getAndroidPush(): MessagesScheduleUpdatePostBodyMessagesAndroidPush + { + return $this->androidPush; + } + + public function setAndroidPush(MessagesScheduleUpdatePostBodyMessagesAndroidPush $androidPush): self + { + $this->initialized['androidPush'] = true; + $this->androidPush = $androidPush; + + return $this; + } + + public function getSms(): MessagesScheduleUpdatePostBodyMessagesSms + { + return $this->sms; + } + + public function setSms(MessagesScheduleUpdatePostBodyMessagesSms $sms): self + { + $this->initialized['sms'] = true; + $this->sms = $sms; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleUpdatePostBodyMessagesAndroidPush.php b/lib/Model/MessagesScheduleUpdatePostBodyMessagesAndroidPush.php new file mode 100644 index 0000000..caabbbb --- /dev/null +++ b/lib/Model/MessagesScheduleUpdatePostBodyMessagesAndroidPush.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $title; + /** + * @var string + */ + protected $alert; + + public function getTitle(): string + { + return $this->title; + } + + public function setTitle(string $title): self + { + $this->initialized['title'] = true; + $this->title = $title; + + return $this; + } + + public function getAlert(): string + { + return $this->alert; + } + + public function setAlert(string $alert): self + { + $this->initialized['alert'] = true; + $this->alert = $alert; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleUpdatePostBodyMessagesApplePush.php b/lib/Model/MessagesScheduleUpdatePostBodyMessagesApplePush.php new file mode 100644 index 0000000..15b14ba --- /dev/null +++ b/lib/Model/MessagesScheduleUpdatePostBodyMessagesApplePush.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $alert; + /** + * @var int + */ + protected $badge; + + public function getAlert(): string + { + return $this->alert; + } + + public function setAlert(string $alert): self + { + $this->initialized['alert'] = true; + $this->alert = $alert; + + return $this; + } + + public function getBadge(): int + { + return $this->badge; + } + + public function setBadge(int $badge): self + { + $this->initialized['badge'] = true; + $this->badge = $badge; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleUpdatePostBodyMessagesSms.php b/lib/Model/MessagesScheduleUpdatePostBodyMessagesSms.php new file mode 100644 index 0000000..f55c466 --- /dev/null +++ b/lib/Model/MessagesScheduleUpdatePostBodyMessagesSms.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $subscriptionGroupId; + /** + * @var string + */ + protected $messageVariationId; + /** + * @var string + */ + protected $body; + /** + * @var string + */ + protected $appId; + + public function getSubscriptionGroupId(): string + { + return $this->subscriptionGroupId; + } + + public function setSubscriptionGroupId(string $subscriptionGroupId): self + { + $this->initialized['subscriptionGroupId'] = true; + $this->subscriptionGroupId = $subscriptionGroupId; + + return $this; + } + + public function getMessageVariationId(): string + { + return $this->messageVariationId; + } + + public function setMessageVariationId(string $messageVariationId): self + { + $this->initialized['messageVariationId'] = true; + $this->messageVariationId = $messageVariationId; + + return $this; + } + + public function getBody(): string + { + return $this->body; + } + + public function setBody(string $body): self + { + $this->initialized['body'] = true; + $this->body = $body; + + return $this; + } + + public function getAppId(): string + { + return $this->appId; + } + + public function setAppId(string $appId): self + { + $this->initialized['appId'] = true; + $this->appId = $appId; + + return $this; + } +} diff --git a/lib/Model/MessagesScheduleUpdatePostBodySchedule.php b/lib/Model/MessagesScheduleUpdatePostBodySchedule.php new file mode 100644 index 0000000..50d45bb --- /dev/null +++ b/lib/Model/MessagesScheduleUpdatePostBodySchedule.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $time; + + public function getTime(): string + { + return $this->time; + } + + public function setTime(string $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } +} diff --git a/lib/Model/MessagesSendPostBody.php b/lib/Model/MessagesSendPostBody.php new file mode 100644 index 0000000..7e47815 --- /dev/null +++ b/lib/Model/MessagesSendPostBody.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $broadcast; + /** + * @var string + */ + protected $externalUserIds; + /** + * @var MessagesSendPostBodyUserAliases + */ + protected $userAliases; + /** + * @var string + */ + protected $segmentId; + /** + * @var MessagesSendPostBodyAudience + */ + protected $audience; + /** + * @var string + */ + protected $campaignId; + /** + * @var string + */ + protected $sendId; + /** + * @var string + */ + protected $overrideFrequencyCapping; + /** + * @var string + */ + protected $recipientSubscriptionState; + /** + * @var MessagesSendPostBodyMessages + */ + protected $messages; + + public function getBroadcast(): string + { + return $this->broadcast; + } + + public function setBroadcast(string $broadcast): self + { + $this->initialized['broadcast'] = true; + $this->broadcast = $broadcast; + + return $this; + } + + public function getExternalUserIds(): string + { + return $this->externalUserIds; + } + + public function setExternalUserIds(string $externalUserIds): self + { + $this->initialized['externalUserIds'] = true; + $this->externalUserIds = $externalUserIds; + + return $this; + } + + public function getUserAliases(): MessagesSendPostBodyUserAliases + { + return $this->userAliases; + } + + public function setUserAliases(MessagesSendPostBodyUserAliases $userAliases): self + { + $this->initialized['userAliases'] = true; + $this->userAliases = $userAliases; + + return $this; + } + + public function getSegmentId(): string + { + return $this->segmentId; + } + + public function setSegmentId(string $segmentId): self + { + $this->initialized['segmentId'] = true; + $this->segmentId = $segmentId; + + return $this; + } + + public function getAudience(): MessagesSendPostBodyAudience + { + return $this->audience; + } + + public function setAudience(MessagesSendPostBodyAudience $audience): self + { + $this->initialized['audience'] = true; + $this->audience = $audience; + + return $this; + } + + public function getCampaignId(): string + { + return $this->campaignId; + } + + public function setCampaignId(string $campaignId): self + { + $this->initialized['campaignId'] = true; + $this->campaignId = $campaignId; + + return $this; + } + + public function getSendId(): string + { + return $this->sendId; + } + + public function setSendId(string $sendId): self + { + $this->initialized['sendId'] = true; + $this->sendId = $sendId; + + return $this; + } + + public function getOverrideFrequencyCapping(): string + { + return $this->overrideFrequencyCapping; + } + + public function setOverrideFrequencyCapping(string $overrideFrequencyCapping): self + { + $this->initialized['overrideFrequencyCapping'] = true; + $this->overrideFrequencyCapping = $overrideFrequencyCapping; + + return $this; + } + + public function getRecipientSubscriptionState(): string + { + return $this->recipientSubscriptionState; + } + + public function setRecipientSubscriptionState(string $recipientSubscriptionState): self + { + $this->initialized['recipientSubscriptionState'] = true; + $this->recipientSubscriptionState = $recipientSubscriptionState; + + return $this; + } + + public function getMessages(): MessagesSendPostBodyMessages + { + return $this->messages; + } + + public function setMessages(MessagesSendPostBodyMessages $messages): self + { + $this->initialized['messages'] = true; + $this->messages = $messages; + + return $this; + } +} diff --git a/lib/Model/MessagesSendPostBodyAudience.php b/lib/Model/MessagesSendPostBodyAudience.php new file mode 100644 index 0000000..96d943d --- /dev/null +++ b/lib/Model/MessagesSendPostBodyAudience.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var mixed[] + */ + protected $aND; + + /** + * @return mixed[] + */ + public function getAND(): array + { + return $this->aND; + } + + /** + * @param mixed[] $aND + */ + public function setAND(array $aND): self + { + $this->initialized['aND'] = true; + $this->aND = $aND; + + return $this; + } +} diff --git a/lib/Model/MessagesSendPostBodyMessages.php b/lib/Model/MessagesSendPostBodyMessages.php new file mode 100644 index 0000000..ede877a --- /dev/null +++ b/lib/Model/MessagesSendPostBodyMessages.php @@ -0,0 +1,160 @@ +initialized); + } + /** + * @var string + */ + protected $androidPush; + /** + * @var string + */ + protected $applePush; + /** + * @var string + */ + protected $contentCard; + /** + * @var string + */ + protected $email; + /** + * @var string + */ + protected $kindlePush; + /** + * @var string + */ + protected $webPush; + /** + * @var string + */ + protected $windowsPhone8Push; + /** + * @var string + */ + protected $windowsUniversalPush; + + public function getAndroidPush(): string + { + return $this->androidPush; + } + + public function setAndroidPush(string $androidPush): self + { + $this->initialized['androidPush'] = true; + $this->androidPush = $androidPush; + + return $this; + } + + public function getApplePush(): string + { + return $this->applePush; + } + + public function setApplePush(string $applePush): self + { + $this->initialized['applePush'] = true; + $this->applePush = $applePush; + + return $this; + } + + public function getContentCard(): string + { + return $this->contentCard; + } + + public function setContentCard(string $contentCard): self + { + $this->initialized['contentCard'] = true; + $this->contentCard = $contentCard; + + return $this; + } + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } + + public function getKindlePush(): string + { + return $this->kindlePush; + } + + public function setKindlePush(string $kindlePush): self + { + $this->initialized['kindlePush'] = true; + $this->kindlePush = $kindlePush; + + return $this; + } + + public function getWebPush(): string + { + return $this->webPush; + } + + public function setWebPush(string $webPush): self + { + $this->initialized['webPush'] = true; + $this->webPush = $webPush; + + return $this; + } + + public function getWindowsPhone8Push(): string + { + return $this->windowsPhone8Push; + } + + public function setWindowsPhone8Push(string $windowsPhone8Push): self + { + $this->initialized['windowsPhone8Push'] = true; + $this->windowsPhone8Push = $windowsPhone8Push; + + return $this; + } + + public function getWindowsUniversalPush(): string + { + return $this->windowsUniversalPush; + } + + public function setWindowsUniversalPush(string $windowsUniversalPush): self + { + $this->initialized['windowsUniversalPush'] = true; + $this->windowsUniversalPush = $windowsUniversalPush; + + return $this; + } +} diff --git a/lib/Model/MessagesSendPostBodyUserAliases.php b/lib/Model/MessagesSendPostBodyUserAliases.php new file mode 100644 index 0000000..18d75af --- /dev/null +++ b/lib/Model/MessagesSendPostBodyUserAliases.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $aliasName; + /** + * @var string + */ + protected $aliasLabel; + + public function getAliasName(): string + { + return $this->aliasName; + } + + public function setAliasName(string $aliasName): self + { + $this->initialized['aliasName'] = true; + $this->aliasName = $aliasName; + + return $this; + } + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } +} diff --git a/lib/Model/PreferenceCenterV1PostBody.php b/lib/Model/PreferenceCenterV1PostBody.php new file mode 100644 index 0000000..cc0071c --- /dev/null +++ b/lib/Model/PreferenceCenterV1PostBody.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $preferenceCenterTitle; + /** + * @var string + */ + protected $preferenceCenterPageHtml; + /** + * @var string + */ + protected $confirmationPageHtml; + /** + * @var string + */ + protected $state; + /** + * @var PreferenceCenterV1PostBodyOptions + */ + protected $options; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPreferenceCenterTitle(): string + { + return $this->preferenceCenterTitle; + } + + public function setPreferenceCenterTitle(string $preferenceCenterTitle): self + { + $this->initialized['preferenceCenterTitle'] = true; + $this->preferenceCenterTitle = $preferenceCenterTitle; + + return $this; + } + + public function getPreferenceCenterPageHtml(): string + { + return $this->preferenceCenterPageHtml; + } + + public function setPreferenceCenterPageHtml(string $preferenceCenterPageHtml): self + { + $this->initialized['preferenceCenterPageHtml'] = true; + $this->preferenceCenterPageHtml = $preferenceCenterPageHtml; + + return $this; + } + + public function getConfirmationPageHtml(): string + { + return $this->confirmationPageHtml; + } + + public function setConfirmationPageHtml(string $confirmationPageHtml): self + { + $this->initialized['confirmationPageHtml'] = true; + $this->confirmationPageHtml = $confirmationPageHtml; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getOptions(): PreferenceCenterV1PostBodyOptions + { + return $this->options; + } + + public function setOptions(PreferenceCenterV1PostBodyOptions $options): self + { + $this->initialized['options'] = true; + $this->options = $options; + + return $this; + } +} diff --git a/lib/Model/PreferenceCenterV1PostBodyOptions.php b/lib/Model/PreferenceCenterV1PostBodyOptions.php new file mode 100644 index 0000000..921eaa8 --- /dev/null +++ b/lib/Model/PreferenceCenterV1PostBodyOptions.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $metaViewportContent; + + public function getMetaViewportContent(): string + { + return $this->metaViewportContent; + } + + public function setMetaViewportContent(string $metaViewportContent): self + { + $this->initialized['metaViewportContent'] = true; + $this->metaViewportContent = $metaViewportContent; + + return $this; + } +} diff --git a/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBody.php b/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBody.php new file mode 100644 index 0000000..a287769 --- /dev/null +++ b/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBody.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $externalSendId; + /** + * @var PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties + */ + protected $triggerProperties; + /** + * @var PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem[] + */ + protected $recipient; + + public function getExternalSendId(): string + { + return $this->externalSendId; + } + + public function setExternalSendId(string $externalSendId): self + { + $this->initialized['externalSendId'] = true; + $this->externalSendId = $externalSendId; + + return $this; + } + + public function getTriggerProperties(): PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties + { + return $this->triggerProperties; + } + + public function setTriggerProperties(PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties $triggerProperties): self + { + $this->initialized['triggerProperties'] = true; + $this->triggerProperties = $triggerProperties; + + return $this; + } + + /** + * @return PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem[] + */ + public function getRecipient(): array + { + return $this->recipient; + } + + /** + * @param PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem[] $recipient + */ + public function setRecipient(array $recipient): self + { + $this->initialized['recipient'] = true; + $this->recipient = $recipient; + + return $this; + } +} diff --git a/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem.php b/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem.php new file mode 100644 index 0000000..22d973a --- /dev/null +++ b/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $externalUserId; + + public function getExternalUserId(): string + { + return $this->externalUserId; + } + + public function setExternalUserId(string $externalUserId): self + { + $this->initialized['externalUserId'] = true; + $this->externalUserId = $externalUserId; + + return $this; + } +} diff --git a/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties.php b/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties.php new file mode 100644 index 0000000..3cee56f --- /dev/null +++ b/lib/Model/PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $exampleStringProperty; + /** + * @var string + */ + protected $exampleIntegerProperty; + + public function getExampleStringProperty(): string + { + return $this->exampleStringProperty; + } + + public function setExampleStringProperty(string $exampleStringProperty): self + { + $this->initialized['exampleStringProperty'] = true; + $this->exampleStringProperty = $exampleStringProperty; + + return $this; + } + + public function getExampleIntegerProperty(): string + { + return $this->exampleIntegerProperty; + } + + public function setExampleIntegerProperty(string $exampleIntegerProperty): self + { + $this->initialized['exampleIntegerProperty'] = true; + $this->exampleIntegerProperty = $exampleIntegerProperty; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersIdPutBody.php b/lib/Model/ScimV2UsersIdPutBody.php new file mode 100644 index 0000000..8c4e624 --- /dev/null +++ b/lib/Model/ScimV2UsersIdPutBody.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string[] + */ + protected $schemas; + /** + * @var ScimV2UsersIdPutBodyName + */ + protected $name; + /** + * @var string + */ + protected $department; + /** + * @var ScimV2UsersIdPutBodyPermissions + */ + protected $permissions; + + /** + * @return string[] + */ + public function getSchemas(): array + { + return $this->schemas; + } + + /** + * @param string[] $schemas + */ + public function setSchemas(array $schemas): self + { + $this->initialized['schemas'] = true; + $this->schemas = $schemas; + + return $this; + } + + public function getName(): ScimV2UsersIdPutBodyName + { + return $this->name; + } + + public function setName(ScimV2UsersIdPutBodyName $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDepartment(): string + { + return $this->department; + } + + public function setDepartment(string $department): self + { + $this->initialized['department'] = true; + $this->department = $department; + + return $this; + } + + public function getPermissions(): ScimV2UsersIdPutBodyPermissions + { + return $this->permissions; + } + + public function setPermissions(ScimV2UsersIdPutBodyPermissions $permissions): self + { + $this->initialized['permissions'] = true; + $this->permissions = $permissions; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersIdPutBodyName.php b/lib/Model/ScimV2UsersIdPutBodyName.php new file mode 100644 index 0000000..5435351 --- /dev/null +++ b/lib/Model/ScimV2UsersIdPutBodyName.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $givenName; + /** + * @var string + */ + protected $familyName; + + public function getGivenName(): string + { + return $this->givenName; + } + + public function setGivenName(string $givenName): self + { + $this->initialized['givenName'] = true; + $this->givenName = $givenName; + + return $this; + } + + public function getFamilyName(): string + { + return $this->familyName; + } + + public function setFamilyName(string $familyName): self + { + $this->initialized['familyName'] = true; + $this->familyName = $familyName; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersIdPutBodyPermissions.php b/lib/Model/ScimV2UsersIdPutBodyPermissions.php new file mode 100644 index 0000000..5a0bb01 --- /dev/null +++ b/lib/Model/ScimV2UsersIdPutBodyPermissions.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var string[] + */ + protected $companyPermissions; + /** + * @var ScimV2UsersIdPutBodyPermissionsAppGroupItem[] + */ + protected $appGroup; + + /** + * @return string[] + */ + public function getCompanyPermissions(): array + { + return $this->companyPermissions; + } + + /** + * @param string[] $companyPermissions + */ + public function setCompanyPermissions(array $companyPermissions): self + { + $this->initialized['companyPermissions'] = true; + $this->companyPermissions = $companyPermissions; + + return $this; + } + + /** + * @return ScimV2UsersIdPutBodyPermissionsAppGroupItem[] + */ + public function getAppGroup(): array + { + return $this->appGroup; + } + + /** + * @param ScimV2UsersIdPutBodyPermissionsAppGroupItem[] $appGroup + */ + public function setAppGroup(array $appGroup): self + { + $this->initialized['appGroup'] = true; + $this->appGroup = $appGroup; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersIdPutBodyPermissionsAppGroupItem.php b/lib/Model/ScimV2UsersIdPutBodyPermissionsAppGroupItem.php new file mode 100644 index 0000000..5b90236 --- /dev/null +++ b/lib/Model/ScimV2UsersIdPutBodyPermissionsAppGroupItem.php @@ -0,0 +1,87 @@ +initialized); + } + /** + * @var string + */ + protected $appGroupName; + /** + * @var string[] + */ + protected $appGroupPermissions; + /** + * @var ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem[] + */ + protected $team; + + public function getAppGroupName(): string + { + return $this->appGroupName; + } + + public function setAppGroupName(string $appGroupName): self + { + $this->initialized['appGroupName'] = true; + $this->appGroupName = $appGroupName; + + return $this; + } + + /** + * @return string[] + */ + public function getAppGroupPermissions(): array + { + return $this->appGroupPermissions; + } + + /** + * @param string[] $appGroupPermissions + */ + public function setAppGroupPermissions(array $appGroupPermissions): self + { + $this->initialized['appGroupPermissions'] = true; + $this->appGroupPermissions = $appGroupPermissions; + + return $this; + } + + /** + * @return ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem[] + */ + public function getTeam(): array + { + return $this->team; + } + + /** + * @param ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem[] $team + */ + public function setTeam(array $team): self + { + $this->initialized['team'] = true; + $this->team = $team; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem.php b/lib/Model/ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem.php new file mode 100644 index 0000000..02dd58e --- /dev/null +++ b/lib/Model/ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var string + */ + protected $teamName; + /** + * @var string[] + */ + protected $teamPermissions; + + public function getTeamName(): string + { + return $this->teamName; + } + + public function setTeamName(string $teamName): self + { + $this->initialized['teamName'] = true; + $this->teamName = $teamName; + + return $this; + } + + /** + * @return string[] + */ + public function getTeamPermissions(): array + { + return $this->teamPermissions; + } + + /** + * @param string[] $teamPermissions + */ + public function setTeamPermissions(array $teamPermissions): self + { + $this->initialized['teamPermissions'] = true; + $this->teamPermissions = $teamPermissions; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersPostBody.php b/lib/Model/ScimV2UsersPostBody.php new file mode 100644 index 0000000..6e41be3 --- /dev/null +++ b/lib/Model/ScimV2UsersPostBody.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string[] + */ + protected $schemas; + /** + * @var string + */ + protected $userName; + /** + * @var ScimV2UsersPostBodyName + */ + protected $name; + /** + * @var string + */ + protected $department; + /** + * @var ScimV2UsersPostBodyPermissions + */ + protected $permissions; + + /** + * @return string[] + */ + public function getSchemas(): array + { + return $this->schemas; + } + + /** + * @param string[] $schemas + */ + public function setSchemas(array $schemas): self + { + $this->initialized['schemas'] = true; + $this->schemas = $schemas; + + return $this; + } + + public function getUserName(): string + { + return $this->userName; + } + + public function setUserName(string $userName): self + { + $this->initialized['userName'] = true; + $this->userName = $userName; + + return $this; + } + + public function getName(): ScimV2UsersPostBodyName + { + return $this->name; + } + + public function setName(ScimV2UsersPostBodyName $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDepartment(): string + { + return $this->department; + } + + public function setDepartment(string $department): self + { + $this->initialized['department'] = true; + $this->department = $department; + + return $this; + } + + public function getPermissions(): ScimV2UsersPostBodyPermissions + { + return $this->permissions; + } + + public function setPermissions(ScimV2UsersPostBodyPermissions $permissions): self + { + $this->initialized['permissions'] = true; + $this->permissions = $permissions; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersPostBodyName.php b/lib/Model/ScimV2UsersPostBodyName.php new file mode 100644 index 0000000..e1a47e1 --- /dev/null +++ b/lib/Model/ScimV2UsersPostBodyName.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $givenName; + /** + * @var string + */ + protected $familyName; + + public function getGivenName(): string + { + return $this->givenName; + } + + public function setGivenName(string $givenName): self + { + $this->initialized['givenName'] = true; + $this->givenName = $givenName; + + return $this; + } + + public function getFamilyName(): string + { + return $this->familyName; + } + + public function setFamilyName(string $familyName): self + { + $this->initialized['familyName'] = true; + $this->familyName = $familyName; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersPostBodyPermissions.php b/lib/Model/ScimV2UsersPostBodyPermissions.php new file mode 100644 index 0000000..1a7dbb3 --- /dev/null +++ b/lib/Model/ScimV2UsersPostBodyPermissions.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var string[] + */ + protected $companyPermissions; + /** + * @var ScimV2UsersPostBodyPermissionsAppGroupItem[] + */ + protected $appGroup; + + /** + * @return string[] + */ + public function getCompanyPermissions(): array + { + return $this->companyPermissions; + } + + /** + * @param string[] $companyPermissions + */ + public function setCompanyPermissions(array $companyPermissions): self + { + $this->initialized['companyPermissions'] = true; + $this->companyPermissions = $companyPermissions; + + return $this; + } + + /** + * @return ScimV2UsersPostBodyPermissionsAppGroupItem[] + */ + public function getAppGroup(): array + { + return $this->appGroup; + } + + /** + * @param ScimV2UsersPostBodyPermissionsAppGroupItem[] $appGroup + */ + public function setAppGroup(array $appGroup): self + { + $this->initialized['appGroup'] = true; + $this->appGroup = $appGroup; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersPostBodyPermissionsAppGroupItem.php b/lib/Model/ScimV2UsersPostBodyPermissionsAppGroupItem.php new file mode 100644 index 0000000..bb6c7d5 --- /dev/null +++ b/lib/Model/ScimV2UsersPostBodyPermissionsAppGroupItem.php @@ -0,0 +1,87 @@ +initialized); + } + /** + * @var string + */ + protected $appGroupName; + /** + * @var string[] + */ + protected $appGroupPermissions; + /** + * @var ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem[] + */ + protected $team; + + public function getAppGroupName(): string + { + return $this->appGroupName; + } + + public function setAppGroupName(string $appGroupName): self + { + $this->initialized['appGroupName'] = true; + $this->appGroupName = $appGroupName; + + return $this; + } + + /** + * @return string[] + */ + public function getAppGroupPermissions(): array + { + return $this->appGroupPermissions; + } + + /** + * @param string[] $appGroupPermissions + */ + public function setAppGroupPermissions(array $appGroupPermissions): self + { + $this->initialized['appGroupPermissions'] = true; + $this->appGroupPermissions = $appGroupPermissions; + + return $this; + } + + /** + * @return ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem[] + */ + public function getTeam(): array + { + return $this->team; + } + + /** + * @param ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem[] $team + */ + public function setTeam(array $team): self + { + $this->initialized['team'] = true; + $this->team = $team; + + return $this; + } +} diff --git a/lib/Model/ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem.php b/lib/Model/ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem.php new file mode 100644 index 0000000..bab3015 --- /dev/null +++ b/lib/Model/ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var string + */ + protected $teamName; + /** + * @var string[] + */ + protected $teamPermissions; + + public function getTeamName(): string + { + return $this->teamName; + } + + public function setTeamName(string $teamName): self + { + $this->initialized['teamName'] = true; + $this->teamName = $teamName; + + return $this; + } + + /** + * @return string[] + */ + public function getTeamPermissions(): array + { + return $this->teamPermissions; + } + + /** + * @param string[] $teamPermissions + */ + public function setTeamPermissions(array $teamPermissions): self + { + $this->initialized['teamPermissions'] = true; + $this->teamPermissions = $teamPermissions; + + return $this; + } +} diff --git a/lib/Model/SendsIdCreatePostBody.php b/lib/Model/SendsIdCreatePostBody.php new file mode 100644 index 0000000..20046a0 --- /dev/null +++ b/lib/Model/SendsIdCreatePostBody.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $campaignId; + /** + * @var string + */ + protected $sendId; + + public function getCampaignId(): string + { + return $this->campaignId; + } + + public function setCampaignId(string $campaignId): self + { + $this->initialized['campaignId'] = true; + $this->campaignId = $campaignId; + + return $this; + } + + public function getSendId(): string + { + return $this->sendId; + } + + public function setSendId(string $sendId): self + { + $this->initialized['sendId'] = true; + $this->sendId = $sendId; + + return $this; + } +} diff --git a/lib/Model/SmsInvalidPhoneNumbersRemovePostBody.php b/lib/Model/SmsInvalidPhoneNumbersRemovePostBody.php new file mode 100644 index 0000000..c669b2d --- /dev/null +++ b/lib/Model/SmsInvalidPhoneNumbersRemovePostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $phoneNumbers; + + /** + * @return string[] + */ + public function getPhoneNumbers(): array + { + return $this->phoneNumbers; + } + + /** + * @param string[] $phoneNumbers + */ + public function setPhoneNumbers(array $phoneNumbers): self + { + $this->initialized['phoneNumbers'] = true; + $this->phoneNumbers = $phoneNumbers; + + return $this; + } +} diff --git a/lib/Model/SubscriptionStatusSetPostBody.php b/lib/Model/SubscriptionStatusSetPostBody.php new file mode 100644 index 0000000..d8a7899 --- /dev/null +++ b/lib/Model/SubscriptionStatusSetPostBody.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $subscriptionGroupId; + /** + * @var string + */ + protected $subscriptionState; + /** + * @var string + */ + protected $externalId; + /** + * @var string[] + */ + protected $phone; + + public function getSubscriptionGroupId(): string + { + return $this->subscriptionGroupId; + } + + public function setSubscriptionGroupId(string $subscriptionGroupId): self + { + $this->initialized['subscriptionGroupId'] = true; + $this->subscriptionGroupId = $subscriptionGroupId; + + return $this; + } + + public function getSubscriptionState(): string + { + return $this->subscriptionState; + } + + public function setSubscriptionState(string $subscriptionState): self + { + $this->initialized['subscriptionState'] = true; + $this->subscriptionState = $subscriptionState; + + return $this; + } + + public function getExternalId(): string + { + return $this->externalId; + } + + public function setExternalId(string $externalId): self + { + $this->initialized['externalId'] = true; + $this->externalId = $externalId; + + return $this; + } + + /** + * @return string[] + */ + public function getPhone(): array + { + return $this->phone; + } + + /** + * @param string[] $phone + */ + public function setPhone(array $phone): self + { + $this->initialized['phone'] = true; + $this->phone = $phone; + + return $this; + } +} diff --git a/lib/Model/TemplatesEmailCreatePostBody.php b/lib/Model/TemplatesEmailCreatePostBody.php new file mode 100644 index 0000000..294845c --- /dev/null +++ b/lib/Model/TemplatesEmailCreatePostBody.php @@ -0,0 +1,132 @@ +initialized); + } + /** + * @var string + */ + protected $templateName; + /** + * @var string + */ + protected $subject; + /** + * @var string + */ + protected $body; + /** + * @var string + */ + protected $plaintextBody; + /** + * @var string + */ + protected $preheader; + /** + * @var string[] + */ + protected $tags; + + public function getTemplateName(): string + { + return $this->templateName; + } + + public function setTemplateName(string $templateName): self + { + $this->initialized['templateName'] = true; + $this->templateName = $templateName; + + return $this; + } + + public function getSubject(): string + { + return $this->subject; + } + + public function setSubject(string $subject): self + { + $this->initialized['subject'] = true; + $this->subject = $subject; + + return $this; + } + + public function getBody(): string + { + return $this->body; + } + + public function setBody(string $body): self + { + $this->initialized['body'] = true; + $this->body = $body; + + return $this; + } + + public function getPlaintextBody(): string + { + return $this->plaintextBody; + } + + public function setPlaintextBody(string $plaintextBody): self + { + $this->initialized['plaintextBody'] = true; + $this->plaintextBody = $plaintextBody; + + return $this; + } + + public function getPreheader(): string + { + return $this->preheader; + } + + public function setPreheader(string $preheader): self + { + $this->initialized['preheader'] = true; + $this->preheader = $preheader; + + return $this; + } + + /** + * @return string[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param string[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } +} diff --git a/lib/Model/TemplatesEmailUpdatePostBody.php b/lib/Model/TemplatesEmailUpdatePostBody.php new file mode 100644 index 0000000..4286e05 --- /dev/null +++ b/lib/Model/TemplatesEmailUpdatePostBody.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $emailTemplateId; + /** + * @var string + */ + protected $templateName; + /** + * @var string + */ + protected $subject; + /** + * @var string + */ + protected $body; + /** + * @var string + */ + protected $plaintextBody; + /** + * @var string + */ + protected $preheader; + /** + * @var string[] + */ + protected $tags; + + public function getEmailTemplateId(): string + { + return $this->emailTemplateId; + } + + public function setEmailTemplateId(string $emailTemplateId): self + { + $this->initialized['emailTemplateId'] = true; + $this->emailTemplateId = $emailTemplateId; + + return $this; + } + + public function getTemplateName(): string + { + return $this->templateName; + } + + public function setTemplateName(string $templateName): self + { + $this->initialized['templateName'] = true; + $this->templateName = $templateName; + + return $this; + } + + public function getSubject(): string + { + return $this->subject; + } + + public function setSubject(string $subject): self + { + $this->initialized['subject'] = true; + $this->subject = $subject; + + return $this; + } + + public function getBody(): string + { + return $this->body; + } + + public function setBody(string $body): self + { + $this->initialized['body'] = true; + $this->body = $body; + + return $this; + } + + public function getPlaintextBody(): string + { + return $this->plaintextBody; + } + + public function setPlaintextBody(string $plaintextBody): self + { + $this->initialized['plaintextBody'] = true; + $this->plaintextBody = $plaintextBody; + + return $this; + } + + public function getPreheader(): string + { + return $this->preheader; + } + + public function setPreheader(string $preheader): self + { + $this->initialized['preheader'] = true; + $this->preheader = $preheader; + + return $this; + } + + /** + * @return string[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param string[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } +} diff --git a/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBody.php b/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBody.php new file mode 100644 index 0000000..b70a7b7 --- /dev/null +++ b/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBody.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $externalSendId; + /** + * @var TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties + */ + protected $triggerProperties; + /** + * @var TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem[] + */ + protected $recipient; + + public function getExternalSendId(): string + { + return $this->externalSendId; + } + + public function setExternalSendId(string $externalSendId): self + { + $this->initialized['externalSendId'] = true; + $this->externalSendId = $externalSendId; + + return $this; + } + + public function getTriggerProperties(): TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties + { + return $this->triggerProperties; + } + + public function setTriggerProperties(TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties $triggerProperties): self + { + $this->initialized['triggerProperties'] = true; + $this->triggerProperties = $triggerProperties; + + return $this; + } + + /** + * @return TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem[] + */ + public function getRecipient(): array + { + return $this->recipient; + } + + /** + * @param TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem[] $recipient + */ + public function setRecipient(array $recipient): self + { + $this->initialized['recipient'] = true; + $this->recipient = $recipient; + + return $this; + } +} diff --git a/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem.php b/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem.php new file mode 100644 index 0000000..46b4fed --- /dev/null +++ b/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $externalUserId; + + public function getExternalUserId(): string + { + return $this->externalUserId; + } + + public function setExternalUserId(string $externalUserId): self + { + $this->initialized['externalUserId'] = true; + $this->externalUserId = $externalUserId; + + return $this; + } +} diff --git a/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties.php b/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties.php new file mode 100644 index 0000000..0d37c2b --- /dev/null +++ b/lib/Model/TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $exampleStringProperty; + /** + * @var string + */ + protected $exampleIntegerProperty; + + public function getExampleStringProperty(): string + { + return $this->exampleStringProperty; + } + + public function setExampleStringProperty(string $exampleStringProperty): self + { + $this->initialized['exampleStringProperty'] = true; + $this->exampleStringProperty = $exampleStringProperty; + + return $this; + } + + public function getExampleIntegerProperty(): string + { + return $this->exampleIntegerProperty; + } + + public function setExampleIntegerProperty(string $exampleIntegerProperty): self + { + $this->initialized['exampleIntegerProperty'] = true; + $this->exampleIntegerProperty = $exampleIntegerProperty; + + return $this; + } +} diff --git a/lib/Model/UsersAliasNewPostBody.php b/lib/Model/UsersAliasNewPostBody.php new file mode 100644 index 0000000..59a7fff --- /dev/null +++ b/lib/Model/UsersAliasNewPostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var UsersAliasNewPostBodyUserAliasesItem[] + */ + protected $userAliases; + + /** + * @return UsersAliasNewPostBodyUserAliasesItem[] + */ + public function getUserAliases(): array + { + return $this->userAliases; + } + + /** + * @param UsersAliasNewPostBodyUserAliasesItem[] $userAliases + */ + public function setUserAliases(array $userAliases): self + { + $this->initialized['userAliases'] = true; + $this->userAliases = $userAliases; + + return $this; + } +} diff --git a/lib/Model/UsersAliasNewPostBodyUserAliasesItem.php b/lib/Model/UsersAliasNewPostBodyUserAliasesItem.php new file mode 100644 index 0000000..f171d42 --- /dev/null +++ b/lib/Model/UsersAliasNewPostBodyUserAliasesItem.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $externalId; + /** + * @var string + */ + protected $aliasName; + /** + * @var string + */ + protected $aliasLabel; + + public function getExternalId(): string + { + return $this->externalId; + } + + public function setExternalId(string $externalId): self + { + $this->initialized['externalId'] = true; + $this->externalId = $externalId; + + return $this; + } + + public function getAliasName(): string + { + return $this->aliasName; + } + + public function setAliasName(string $aliasName): self + { + $this->initialized['aliasName'] = true; + $this->aliasName = $aliasName; + + return $this; + } + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } +} diff --git a/lib/Model/UsersAliasUpdatePostBody.php b/lib/Model/UsersAliasUpdatePostBody.php new file mode 100644 index 0000000..8b34b34 --- /dev/null +++ b/lib/Model/UsersAliasUpdatePostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var UsersAliasUpdatePostBodyAliasUpdatesItem[] + */ + protected $aliasUpdates; + + /** + * @return UsersAliasUpdatePostBodyAliasUpdatesItem[] + */ + public function getAliasUpdates(): array + { + return $this->aliasUpdates; + } + + /** + * @param UsersAliasUpdatePostBodyAliasUpdatesItem[] $aliasUpdates + */ + public function setAliasUpdates(array $aliasUpdates): self + { + $this->initialized['aliasUpdates'] = true; + $this->aliasUpdates = $aliasUpdates; + + return $this; + } +} diff --git a/lib/Model/UsersAliasUpdatePostBodyAliasUpdatesItem.php b/lib/Model/UsersAliasUpdatePostBodyAliasUpdatesItem.php new file mode 100644 index 0000000..2da9acb --- /dev/null +++ b/lib/Model/UsersAliasUpdatePostBodyAliasUpdatesItem.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $aliasLabel; + /** + * @var string + */ + protected $oldAliasName; + /** + * @var string + */ + protected $newAliasName; + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } + + public function getOldAliasName(): string + { + return $this->oldAliasName; + } + + public function setOldAliasName(string $oldAliasName): self + { + $this->initialized['oldAliasName'] = true; + $this->oldAliasName = $oldAliasName; + + return $this; + } + + public function getNewAliasName(): string + { + return $this->newAliasName; + } + + public function setNewAliasName(string $newAliasName): self + { + $this->initialized['newAliasName'] = true; + $this->newAliasName = $newAliasName; + + return $this; + } +} diff --git a/lib/Model/UsersDeletePostBody.php b/lib/Model/UsersDeletePostBody.php new file mode 100644 index 0000000..b559180 --- /dev/null +++ b/lib/Model/UsersDeletePostBody.php @@ -0,0 +1,93 @@ +initialized); + } + /** + * @var string[] + */ + protected $externalIds; + /** + * @var string[] + */ + protected $brazeIds; + /** + * @var UsersDeletePostBodyUserAliasesItem[] + */ + protected $userAliases; + + /** + * @return string[] + */ + public function getExternalIds(): array + { + return $this->externalIds; + } + + /** + * @param string[] $externalIds + */ + public function setExternalIds(array $externalIds): self + { + $this->initialized['externalIds'] = true; + $this->externalIds = $externalIds; + + return $this; + } + + /** + * @return string[] + */ + public function getBrazeIds(): array + { + return $this->brazeIds; + } + + /** + * @param string[] $brazeIds + */ + public function setBrazeIds(array $brazeIds): self + { + $this->initialized['brazeIds'] = true; + $this->brazeIds = $brazeIds; + + return $this; + } + + /** + * @return UsersDeletePostBodyUserAliasesItem[] + */ + public function getUserAliases(): array + { + return $this->userAliases; + } + + /** + * @param UsersDeletePostBodyUserAliasesItem[] $userAliases + */ + public function setUserAliases(array $userAliases): self + { + $this->initialized['userAliases'] = true; + $this->userAliases = $userAliases; + + return $this; + } +} diff --git a/lib/Model/UsersDeletePostBodyUserAliasesItem.php b/lib/Model/UsersDeletePostBodyUserAliasesItem.php new file mode 100644 index 0000000..f5e4185 --- /dev/null +++ b/lib/Model/UsersDeletePostBodyUserAliasesItem.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $aliasName; + /** + * @var string + */ + protected $aliasLabel; + + public function getAliasName(): string + { + return $this->aliasName; + } + + public function setAliasName(string $aliasName): self + { + $this->initialized['aliasName'] = true; + $this->aliasName = $aliasName; + + return $this; + } + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } +} diff --git a/lib/Model/UsersExportGlobalControlGroupPostBody.php b/lib/Model/UsersExportGlobalControlGroupPostBody.php new file mode 100644 index 0000000..2b49e66 --- /dev/null +++ b/lib/Model/UsersExportGlobalControlGroupPostBody.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $callbackEndpoint; + /** + * @var string[] + */ + protected $fieldsToExport; + /** + * @var string + */ + protected $outputFormat; + + public function getCallbackEndpoint(): string + { + return $this->callbackEndpoint; + } + + public function setCallbackEndpoint(string $callbackEndpoint): self + { + $this->initialized['callbackEndpoint'] = true; + $this->callbackEndpoint = $callbackEndpoint; + + return $this; + } + + /** + * @return string[] + */ + public function getFieldsToExport(): array + { + return $this->fieldsToExport; + } + + /** + * @param string[] $fieldsToExport + */ + public function setFieldsToExport(array $fieldsToExport): self + { + $this->initialized['fieldsToExport'] = true; + $this->fieldsToExport = $fieldsToExport; + + return $this; + } + + public function getOutputFormat(): string + { + return $this->outputFormat; + } + + public function setOutputFormat(string $outputFormat): self + { + $this->initialized['outputFormat'] = true; + $this->outputFormat = $outputFormat; + + return $this; + } +} diff --git a/lib/Model/UsersExportIdsPostBody.php b/lib/Model/UsersExportIdsPostBody.php new file mode 100644 index 0000000..044cb37 --- /dev/null +++ b/lib/Model/UsersExportIdsPostBody.php @@ -0,0 +1,161 @@ +initialized); + } + /** + * @var string[] + */ + protected $externalIds; + /** + * @var UsersExportIdsPostBodyUserAliasesItem[] + */ + protected $userAliases; + /** + * @var string + */ + protected $deviceId; + /** + * @var string + */ + protected $brazeId; + /** + * @var string + */ + protected $emailAddress; + /** + * @var string + */ + protected $phone; + /** + * @var string[] + */ + protected $fieldsToExport; + + /** + * @return string[] + */ + public function getExternalIds(): array + { + return $this->externalIds; + } + + /** + * @param string[] $externalIds + */ + public function setExternalIds(array $externalIds): self + { + $this->initialized['externalIds'] = true; + $this->externalIds = $externalIds; + + return $this; + } + + /** + * @return UsersExportIdsPostBodyUserAliasesItem[] + */ + public function getUserAliases(): array + { + return $this->userAliases; + } + + /** + * @param UsersExportIdsPostBodyUserAliasesItem[] $userAliases + */ + public function setUserAliases(array $userAliases): self + { + $this->initialized['userAliases'] = true; + $this->userAliases = $userAliases; + + return $this; + } + + public function getDeviceId(): string + { + return $this->deviceId; + } + + public function setDeviceId(string $deviceId): self + { + $this->initialized['deviceId'] = true; + $this->deviceId = $deviceId; + + return $this; + } + + public function getBrazeId(): string + { + return $this->brazeId; + } + + public function setBrazeId(string $brazeId): self + { + $this->initialized['brazeId'] = true; + $this->brazeId = $brazeId; + + return $this; + } + + public function getEmailAddress(): string + { + return $this->emailAddress; + } + + public function setEmailAddress(string $emailAddress): self + { + $this->initialized['emailAddress'] = true; + $this->emailAddress = $emailAddress; + + return $this; + } + + public function getPhone(): string + { + return $this->phone; + } + + public function setPhone(string $phone): self + { + $this->initialized['phone'] = true; + $this->phone = $phone; + + return $this; + } + + /** + * @return string[] + */ + public function getFieldsToExport(): array + { + return $this->fieldsToExport; + } + + /** + * @param string[] $fieldsToExport + */ + public function setFieldsToExport(array $fieldsToExport): self + { + $this->initialized['fieldsToExport'] = true; + $this->fieldsToExport = $fieldsToExport; + + return $this; + } +} diff --git a/lib/Model/UsersExportIdsPostBodyUserAliasesItem.php b/lib/Model/UsersExportIdsPostBodyUserAliasesItem.php new file mode 100644 index 0000000..55eec4a --- /dev/null +++ b/lib/Model/UsersExportIdsPostBodyUserAliasesItem.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $aliasName; + /** + * @var string + */ + protected $aliasLabel; + + public function getAliasName(): string + { + return $this->aliasName; + } + + public function setAliasName(string $aliasName): self + { + $this->initialized['aliasName'] = true; + $this->aliasName = $aliasName; + + return $this; + } + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } +} diff --git a/lib/Model/UsersExportSegmentPostBody.php b/lib/Model/UsersExportSegmentPostBody.php new file mode 100644 index 0000000..e396a2b --- /dev/null +++ b/lib/Model/UsersExportSegmentPostBody.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $segmentId; + /** + * @var string + */ + protected $callbackEndpoint; + /** + * @var string[] + */ + protected $fieldsToExport; + /** + * @var string + */ + protected $outputFormat; + + public function getSegmentId(): string + { + return $this->segmentId; + } + + public function setSegmentId(string $segmentId): self + { + $this->initialized['segmentId'] = true; + $this->segmentId = $segmentId; + + return $this; + } + + public function getCallbackEndpoint(): string + { + return $this->callbackEndpoint; + } + + public function setCallbackEndpoint(string $callbackEndpoint): self + { + $this->initialized['callbackEndpoint'] = true; + $this->callbackEndpoint = $callbackEndpoint; + + return $this; + } + + /** + * @return string[] + */ + public function getFieldsToExport(): array + { + return $this->fieldsToExport; + } + + /** + * @param string[] $fieldsToExport + */ + public function setFieldsToExport(array $fieldsToExport): self + { + $this->initialized['fieldsToExport'] = true; + $this->fieldsToExport = $fieldsToExport; + + return $this; + } + + public function getOutputFormat(): string + { + return $this->outputFormat; + } + + public function setOutputFormat(string $outputFormat): self + { + $this->initialized['outputFormat'] = true; + $this->outputFormat = $outputFormat; + + return $this; + } +} diff --git a/lib/Model/UsersExternalIdsRemovePostBody.php b/lib/Model/UsersExternalIdsRemovePostBody.php new file mode 100644 index 0000000..10738cb --- /dev/null +++ b/lib/Model/UsersExternalIdsRemovePostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $externalIds; + + /** + * @return string[] + */ + public function getExternalIds(): array + { + return $this->externalIds; + } + + /** + * @param string[] $externalIds + */ + public function setExternalIds(array $externalIds): self + { + $this->initialized['externalIds'] = true; + $this->externalIds = $externalIds; + + return $this; + } +} diff --git a/lib/Model/UsersExternalIdsRenamePostBody.php b/lib/Model/UsersExternalIdsRenamePostBody.php new file mode 100644 index 0000000..dd734a6 --- /dev/null +++ b/lib/Model/UsersExternalIdsRenamePostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var UsersExternalIdsRenamePostBodyExternalIdRenamesItem[] + */ + protected $externalIdRenames; + + /** + * @return UsersExternalIdsRenamePostBodyExternalIdRenamesItem[] + */ + public function getExternalIdRenames(): array + { + return $this->externalIdRenames; + } + + /** + * @param UsersExternalIdsRenamePostBodyExternalIdRenamesItem[] $externalIdRenames + */ + public function setExternalIdRenames(array $externalIdRenames): self + { + $this->initialized['externalIdRenames'] = true; + $this->externalIdRenames = $externalIdRenames; + + return $this; + } +} diff --git a/lib/Model/UsersExternalIdsRenamePostBodyExternalIdRenamesItem.php b/lib/Model/UsersExternalIdsRenamePostBodyExternalIdRenamesItem.php new file mode 100644 index 0000000..af7e240 --- /dev/null +++ b/lib/Model/UsersExternalIdsRenamePostBodyExternalIdRenamesItem.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $currentExternalId; + /** + * @var string + */ + protected $newExternalId; + + public function getCurrentExternalId(): string + { + return $this->currentExternalId; + } + + public function setCurrentExternalId(string $currentExternalId): self + { + $this->initialized['currentExternalId'] = true; + $this->currentExternalId = $currentExternalId; + + return $this; + } + + public function getNewExternalId(): string + { + return $this->newExternalId; + } + + public function setNewExternalId(string $newExternalId): self + { + $this->initialized['newExternalId'] = true; + $this->newExternalId = $newExternalId; + + return $this; + } +} diff --git a/lib/Model/UsersIdentifyPostBody.php b/lib/Model/UsersIdentifyPostBody.php new file mode 100644 index 0000000..a56eedb --- /dev/null +++ b/lib/Model/UsersIdentifyPostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var UsersIdentifyPostBodyAliasesToIdentifyItem[] + */ + protected $aliasesToIdentify; + + /** + * @return UsersIdentifyPostBodyAliasesToIdentifyItem[] + */ + public function getAliasesToIdentify(): array + { + return $this->aliasesToIdentify; + } + + /** + * @param UsersIdentifyPostBodyAliasesToIdentifyItem[] $aliasesToIdentify + */ + public function setAliasesToIdentify(array $aliasesToIdentify): self + { + $this->initialized['aliasesToIdentify'] = true; + $this->aliasesToIdentify = $aliasesToIdentify; + + return $this; + } +} diff --git a/lib/Model/UsersIdentifyPostBodyAliasesToIdentifyItem.php b/lib/Model/UsersIdentifyPostBodyAliasesToIdentifyItem.php new file mode 100644 index 0000000..6e27197 --- /dev/null +++ b/lib/Model/UsersIdentifyPostBodyAliasesToIdentifyItem.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $externalId; + /** + * @var UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias + */ + protected $userAlias; + + public function getExternalId(): string + { + return $this->externalId; + } + + public function setExternalId(string $externalId): self + { + $this->initialized['externalId'] = true; + $this->externalId = $externalId; + + return $this; + } + + public function getUserAlias(): UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias + { + return $this->userAlias; + } + + public function setUserAlias(UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias $userAlias): self + { + $this->initialized['userAlias'] = true; + $this->userAlias = $userAlias; + + return $this; + } +} diff --git a/lib/Model/UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias.php b/lib/Model/UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias.php new file mode 100644 index 0000000..8225bd6 --- /dev/null +++ b/lib/Model/UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $aliasName; + /** + * @var string + */ + protected $aliasLabel; + + public function getAliasName(): string + { + return $this->aliasName; + } + + public function setAliasName(string $aliasName): self + { + $this->initialized['aliasName'] = true; + $this->aliasName = $aliasName; + + return $this; + } + + public function getAliasLabel(): string + { + return $this->aliasLabel; + } + + public function setAliasLabel(string $aliasLabel): self + { + $this->initialized['aliasLabel'] = true; + $this->aliasLabel = $aliasLabel; + + return $this; + } +} diff --git a/lib/Model/UsersMergePostBody.php b/lib/Model/UsersMergePostBody.php new file mode 100644 index 0000000..15d2b21 --- /dev/null +++ b/lib/Model/UsersMergePostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var mixed[] + */ + protected $mergeUpdates; + + /** + * @return mixed[] + */ + public function getMergeUpdates(): array + { + return $this->mergeUpdates; + } + + /** + * @param mixed[] $mergeUpdates + */ + public function setMergeUpdates(array $mergeUpdates): self + { + $this->initialized['mergeUpdates'] = true; + $this->mergeUpdates = $mergeUpdates; + + return $this; + } +} diff --git a/lib/Model/UsersTrackPostBody.php b/lib/Model/UsersTrackPostBody.php new file mode 100644 index 0000000..71b2780 --- /dev/null +++ b/lib/Model/UsersTrackPostBody.php @@ -0,0 +1,93 @@ +initialized); + } + /** + * @var UsersTrackPostBodyAttributesItem[] + */ + protected $attributes; + /** + * @var mixed[] + */ + protected $events; + /** + * @var UsersTrackPostBodyPurchasesItem[] + */ + protected $purchases; + + /** + * @return UsersTrackPostBodyAttributesItem[] + */ + public function getAttributes(): array + { + return $this->attributes; + } + + /** + * @param UsersTrackPostBodyAttributesItem[] $attributes + */ + public function setAttributes(array $attributes): self + { + $this->initialized['attributes'] = true; + $this->attributes = $attributes; + + return $this; + } + + /** + * @return mixed[] + */ + public function getEvents(): array + { + return $this->events; + } + + /** + * @param mixed[] $events + */ + public function setEvents(array $events): self + { + $this->initialized['events'] = true; + $this->events = $events; + + return $this; + } + + /** + * @return UsersTrackPostBodyPurchasesItem[] + */ + public function getPurchases(): array + { + return $this->purchases; + } + + /** + * @param UsersTrackPostBodyPurchasesItem[] $purchases + */ + public function setPurchases(array $purchases): self + { + $this->initialized['purchases'] = true; + $this->purchases = $purchases; + + return $this; + } +} diff --git a/lib/Model/UsersTrackPostBodyAttributesItem.php b/lib/Model/UsersTrackPostBodyAttributesItem.php new file mode 100644 index 0000000..0ab54c9 --- /dev/null +++ b/lib/Model/UsersTrackPostBodyAttributesItem.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string + */ + protected $externalId; + /** + * @var string + */ + protected $stringAttribute; + /** + * @var bool + */ + protected $booleanAttribute1; + /** + * @var int + */ + protected $integerAttribute; + /** + * @var string[] + */ + protected $arrayAttribute; + + public function getExternalId(): string + { + return $this->externalId; + } + + public function setExternalId(string $externalId): self + { + $this->initialized['externalId'] = true; + $this->externalId = $externalId; + + return $this; + } + + public function getStringAttribute(): string + { + return $this->stringAttribute; + } + + public function setStringAttribute(string $stringAttribute): self + { + $this->initialized['stringAttribute'] = true; + $this->stringAttribute = $stringAttribute; + + return $this; + } + + public function getBooleanAttribute1(): bool + { + return $this->booleanAttribute1; + } + + public function setBooleanAttribute1(bool $booleanAttribute1): self + { + $this->initialized['booleanAttribute1'] = true; + $this->booleanAttribute1 = $booleanAttribute1; + + return $this; + } + + public function getIntegerAttribute(): int + { + return $this->integerAttribute; + } + + public function setIntegerAttribute(int $integerAttribute): self + { + $this->initialized['integerAttribute'] = true; + $this->integerAttribute = $integerAttribute; + + return $this; + } + + /** + * @return string[] + */ + public function getArrayAttribute(): array + { + return $this->arrayAttribute; + } + + /** + * @param string[] $arrayAttribute + */ + public function setArrayAttribute(array $arrayAttribute): self + { + $this->initialized['arrayAttribute'] = true; + $this->arrayAttribute = $arrayAttribute; + + return $this; + } +} diff --git a/lib/Model/UsersTrackPostBodyPurchasesItem.php b/lib/Model/UsersTrackPostBodyPurchasesItem.php new file mode 100644 index 0000000..8ed5fb6 --- /dev/null +++ b/lib/Model/UsersTrackPostBodyPurchasesItem.php @@ -0,0 +1,160 @@ +initialized); + } + /** + * @var string + */ + protected $externalId; + /** + * @var string + */ + protected $appId; + /** + * @var string + */ + protected $productId; + /** + * @var string + */ + protected $currency; + /** + * @var float + */ + protected $price; + /** + * @var int + */ + protected $quantity; + /** + * @var string + */ + protected $time; + /** + * @var UsersTrackPostBodyPurchasesItemProperties + */ + protected $properties; + + public function getExternalId(): string + { + return $this->externalId; + } + + public function setExternalId(string $externalId): self + { + $this->initialized['externalId'] = true; + $this->externalId = $externalId; + + return $this; + } + + public function getAppId(): string + { + return $this->appId; + } + + public function setAppId(string $appId): self + { + $this->initialized['appId'] = true; + $this->appId = $appId; + + return $this; + } + + public function getProductId(): string + { + return $this->productId; + } + + public function setProductId(string $productId): self + { + $this->initialized['productId'] = true; + $this->productId = $productId; + + return $this; + } + + public function getCurrency(): string + { + return $this->currency; + } + + public function setCurrency(string $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } + + public function getPrice(): float + { + return $this->price; + } + + public function setPrice(float $price): self + { + $this->initialized['price'] = true; + $this->price = $price; + + return $this; + } + + public function getQuantity(): int + { + return $this->quantity; + } + + public function setQuantity(int $quantity): self + { + $this->initialized['quantity'] = true; + $this->quantity = $quantity; + + return $this; + } + + public function getTime(): string + { + return $this->time; + } + + public function setTime(string $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } + + public function getProperties(): UsersTrackPostBodyPurchasesItemProperties + { + return $this->properties; + } + + public function setProperties(UsersTrackPostBodyPurchasesItemProperties $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/lib/Model/UsersTrackPostBodyPurchasesItemProperties.php b/lib/Model/UsersTrackPostBodyPurchasesItemProperties.php new file mode 100644 index 0000000..a5186d6 --- /dev/null +++ b/lib/Model/UsersTrackPostBodyPurchasesItemProperties.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $color; + /** + * @var string + */ + protected $monogram; + /** + * @var int + */ + protected $checkoutDuration; + /** + * @var string + */ + protected $size; + /** + * @var string + */ + protected $brand; + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getMonogram(): string + { + return $this->monogram; + } + + public function setMonogram(string $monogram): self + { + $this->initialized['monogram'] = true; + $this->monogram = $monogram; + + return $this; + } + + public function getCheckoutDuration(): int + { + return $this->checkoutDuration; + } + + public function setCheckoutDuration(int $checkoutDuration): self + { + $this->initialized['checkoutDuration'] = true; + $this->checkoutDuration = $checkoutDuration; + + return $this; + } + + public function getSize(): string + { + return $this->size; + } + + public function setSize(string $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } + + public function getBrand(): string + { + return $this->brand; + } + + public function setBrand(string $brand): self + { + $this->initialized['brand'] = true; + $this->brand = $brand; + + return $this; + } +} diff --git a/lib/Model/V2SubscriptionStatusSetPostBody.php b/lib/Model/V2SubscriptionStatusSetPostBody.php new file mode 100644 index 0000000..c3cc773 --- /dev/null +++ b/lib/Model/V2SubscriptionStatusSetPostBody.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var V2SubscriptionStatusSetPostBodySubscriptionGroupsItem[] + */ + protected $subscriptionGroups; + + /** + * @return V2SubscriptionStatusSetPostBodySubscriptionGroupsItem[] + */ + public function getSubscriptionGroups(): array + { + return $this->subscriptionGroups; + } + + /** + * @param V2SubscriptionStatusSetPostBodySubscriptionGroupsItem[] $subscriptionGroups + */ + public function setSubscriptionGroups(array $subscriptionGroups): self + { + $this->initialized['subscriptionGroups'] = true; + $this->subscriptionGroups = $subscriptionGroups; + + return $this; + } +} diff --git a/lib/Model/V2SubscriptionStatusSetPostBodySubscriptionGroupsItem.php b/lib/Model/V2SubscriptionStatusSetPostBodySubscriptionGroupsItem.php new file mode 100644 index 0000000..c05b5ed --- /dev/null +++ b/lib/Model/V2SubscriptionStatusSetPostBodySubscriptionGroupsItem.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $subscriptionGroupId; + /** + * @var string + */ + protected $subscriptionState; + /** + * @var string[] + */ + protected $emails; + + public function getSubscriptionGroupId(): string + { + return $this->subscriptionGroupId; + } + + public function setSubscriptionGroupId(string $subscriptionGroupId): self + { + $this->initialized['subscriptionGroupId'] = true; + $this->subscriptionGroupId = $subscriptionGroupId; + + return $this; + } + + public function getSubscriptionState(): string + { + return $this->subscriptionState; + } + + public function setSubscriptionState(string $subscriptionState): self + { + $this->initialized['subscriptionState'] = true; + $this->subscriptionState = $subscriptionState; + + return $this; + } + + /** + * @return string[] + */ + public function getEmails(): array + { + return $this->emails; + } + + /** + * @param string[] $emails + */ + public function setEmails(array $emails): self + { + $this->initialized['emails'] = true; + $this->emails = $emails; + + return $this; + } +} diff --git a/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php b/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php new file mode 100644 index 0000000..e6640c7 --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer.php @@ -0,0 +1,98 @@ +setAND($values); + unset($data['AND']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aND') && null !== $object->getAND()) { + $values = []; + foreach ($object->getAND() as $value) { + $values[] = $value; + } + $data['AND'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php b/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php new file mode 100644 index 0000000..7266c24 --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyNormalizer.php @@ -0,0 +1,148 @@ +setCampaignId($data['campaign_id']); + unset($data['campaign_id']); + } + if (\array_key_exists('send_id', $data)) { + $object->setSendId($data['send_id']); + unset($data['send_id']); + } + if (\array_key_exists('recipients', $data)) { + $values = []; + foreach ($data['recipients'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem', 'json', $context); + } + $object->setRecipients($values); + unset($data['recipients']); + } + if (\array_key_exists('audience', $data)) { + $object->setAudience($this->denormalizer->denormalize($data['audience'], 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience', 'json', $context)); + unset($data['audience']); + } + if (\array_key_exists('broadcast', $data)) { + $object->setBroadcast($data['broadcast']); + unset($data['broadcast']); + } + if (\array_key_exists('trigger_properties', $data)) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['trigger_properties'] as $key => $value_1) { + $values_1[$key] = $value_1; + } + $object->setTriggerProperties($values_1); + unset($data['trigger_properties']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule', 'json', $context)); + unset($data['schedule']); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('campaignId') && null !== $object->getCampaignId()) { + $data['campaign_id'] = $object->getCampaignId(); + } + if ($object->isInitialized('sendId') && null !== $object->getSendId()) { + $data['send_id'] = $object->getSendId(); + } + if ($object->isInitialized('recipients') && null !== $object->getRecipients()) { + $values = []; + foreach ($object->getRecipients() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['recipients'] = $values; + } + if ($object->isInitialized('audience') && null !== $object->getAudience()) { + $data['audience'] = $this->normalizer->normalize($object->getAudience(), 'json', $context); + } + if ($object->isInitialized('broadcast') && null !== $object->getBroadcast()) { + $data['broadcast'] = $object->getBroadcast(); + } + if ($object->isInitialized('triggerProperties') && null !== $object->getTriggerProperties()) { + $values_1 = []; + foreach ($object->getTriggerProperties() as $key => $value_1) { + $values_1[$key] = $value_1; + } + $data['trigger_properties'] = $values_1; + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBody' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php b/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php new file mode 100644 index 0000000..1777374 --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php @@ -0,0 +1,112 @@ +setUserAlias($data['user_alias']); + unset($data['user_alias']); + } + if (\array_key_exists('external_user_id', $data)) { + $object->setExternalUserId($data['external_user_id']); + unset($data['external_user_id']); + } + if (\array_key_exists('trigger_properties', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['trigger_properties'] as $key => $value) { + $values[$key] = $value; + } + $object->setTriggerProperties($values); + unset($data['trigger_properties']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('userAlias') && null !== $object->getUserAlias()) { + $data['user_alias'] = $object->getUserAlias(); + } + if ($object->isInitialized('externalUserId') && null !== $object->getExternalUserId()) { + $data['external_user_id'] = $object->getExternalUserId(); + } + if ($object->isInitialized('triggerProperties') && null !== $object->getTriggerProperties()) { + $values = []; + foreach ($object->getTriggerProperties() as $key => $value) { + $values[$key] = $value; + } + $data['trigger_properties'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php b/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php new file mode 100644 index 0000000..d118eb5 --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer.php @@ -0,0 +1,104 @@ +setTime($data['time']); + unset($data['time']); + } + if (\array_key_exists('in_local_time', $data)) { + $object->setInLocalTime($data['in_local_time']); + unset($data['in_local_time']); + } + if (\array_key_exists('at_optimal_time', $data)) { + $object->setAtOptimalTime($data['at_optimal_time']); + unset($data['at_optimal_time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { + $data['in_local_time'] = $object->getInLocalTime(); + } + if ($object->isInitialized('atOptimalTime') && null !== $object->getAtOptimalTime()) { + $data['at_optimal_time'] = $object->getAtOptimalTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php b/lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php new file mode 100644 index 0000000..f8aa4eb --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerScheduleDeletePostBodyNormalizer.php @@ -0,0 +1,97 @@ +setCampaignId($data['campaign_id']); + unset($data['campaign_id']); + } + if (\array_key_exists('schedule_id', $data)) { + $object->setScheduleId($data['schedule_id']); + unset($data['schedule_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('campaignId') && null !== $object->getCampaignId()) { + $data['campaign_id'] = $object->getCampaignId(); + } + if ($object->isInitialized('scheduleId') && null !== $object->getScheduleId()) { + $data['schedule_id'] = $object->getScheduleId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerScheduleDeletePostBody' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyNormalizer.php b/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyNormalizer.php new file mode 100644 index 0000000..f6f5800 --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyNormalizer.php @@ -0,0 +1,104 @@ +setCampaignId($data['campaign_id']); + unset($data['campaign_id']); + } + if (\array_key_exists('schedule_id', $data)) { + $object->setScheduleId($data['schedule_id']); + unset($data['schedule_id']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Braze\\Model\\CampaignsTriggerScheduleUpdatePostBodySchedule', 'json', $context)); + unset($data['schedule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('campaignId') && null !== $object->getCampaignId()) { + $data['campaign_id'] = $object->getCampaignId(); + } + if ($object->isInitialized('scheduleId') && null !== $object->getScheduleId()) { + $data['schedule_id'] = $object->getScheduleId(); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerScheduleUpdatePostBody' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyScheduleNormalizer.php b/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyScheduleNormalizer.php new file mode 100644 index 0000000..3751cae --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerScheduleUpdatePostBodyScheduleNormalizer.php @@ -0,0 +1,97 @@ +setTime($data['time']); + unset($data['time']); + } + if (\array_key_exists('in_local_time', $data)) { + $object->setInLocalTime($data['in_local_time']); + unset($data['in_local_time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { + $data['in_local_time'] = $object->getInLocalTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerScheduleUpdatePostBodySchedule' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerSendPostBodyAudienceNormalizer.php b/lib/Normalizer/CampaignsTriggerSendPostBodyAudienceNormalizer.php new file mode 100644 index 0000000..e0925ab --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerSendPostBodyAudienceNormalizer.php @@ -0,0 +1,98 @@ +setAND($values); + unset($data['AND']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aND') && null !== $object->getAND()) { + $values = []; + foreach ($object->getAND() as $value) { + $values[] = $value; + } + $data['AND'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerSendPostBodyAudience' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerSendPostBodyNormalizer.php b/lib/Normalizer/CampaignsTriggerSendPostBodyNormalizer.php new file mode 100644 index 0000000..42bee4a --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerSendPostBodyNormalizer.php @@ -0,0 +1,133 @@ +setCampaignId($data['campaign_id']); + unset($data['campaign_id']); + } + if (\array_key_exists('send_id', $data)) { + $object->setSendId($data['send_id']); + unset($data['send_id']); + } + if (\array_key_exists('trigger_properties', $data)) { + $object->setTriggerProperties($data['trigger_properties']); + unset($data['trigger_properties']); + } + if (\array_key_exists('broadcast', $data)) { + $object->setBroadcast($data['broadcast']); + unset($data['broadcast']); + } + if (\array_key_exists('audience', $data)) { + $object->setAudience($this->denormalizer->denormalize($data['audience'], 'Braze\\Model\\CampaignsTriggerSendPostBodyAudience', 'json', $context)); + unset($data['audience']); + } + if (\array_key_exists('recipients', $data)) { + $values = []; + foreach ($data['recipients'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItem', 'json', $context); + } + $object->setRecipients($values); + unset($data['recipients']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('campaignId') && null !== $object->getCampaignId()) { + $data['campaign_id'] = $object->getCampaignId(); + } + if ($object->isInitialized('sendId') && null !== $object->getSendId()) { + $data['send_id'] = $object->getSendId(); + } + if ($object->isInitialized('triggerProperties') && null !== $object->getTriggerProperties()) { + $data['trigger_properties'] = $object->getTriggerProperties(); + } + if ($object->isInitialized('broadcast') && null !== $object->getBroadcast()) { + $data['broadcast'] = $object->getBroadcast(); + } + if ($object->isInitialized('audience') && null !== $object->getAudience()) { + $data['audience'] = $this->normalizer->normalize($object->getAudience(), 'json', $context); + } + if ($object->isInitialized('recipients') && null !== $object->getRecipients()) { + $values = []; + foreach ($object->getRecipients() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['recipients'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerSendPostBody' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemAttributesNormalizer.php b/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemAttributesNormalizer.php new file mode 100644 index 0000000..e4a1586 --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemAttributesNormalizer.php @@ -0,0 +1,90 @@ +setFirstName($data['first_name']); + unset($data['first_name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('firstName') && null !== $object->getFirstName()) { + $data['first_name'] = $object->getFirstName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItemAttributes' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemNormalizer.php b/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemNormalizer.php new file mode 100644 index 0000000..6f198f3 --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemNormalizer.php @@ -0,0 +1,118 @@ +setUserAlias($this->denormalizer->denormalize($data['user_alias'], 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItemUserAlias', 'json', $context)); + unset($data['user_alias']); + } + if (\array_key_exists('external_user_id', $data)) { + $object->setExternalUserId($data['external_user_id']); + unset($data['external_user_id']); + } + if (\array_key_exists('trigger_properties', $data)) { + $object->setTriggerProperties($data['trigger_properties']); + unset($data['trigger_properties']); + } + if (\array_key_exists('send_to_existing_only', $data)) { + $object->setSendToExistingOnly($data['send_to_existing_only']); + unset($data['send_to_existing_only']); + } + if (\array_key_exists('attributes', $data)) { + $object->setAttributes($this->denormalizer->denormalize($data['attributes'], 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItemAttributes', 'json', $context)); + unset($data['attributes']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('userAlias') && null !== $object->getUserAlias()) { + $data['user_alias'] = $this->normalizer->normalize($object->getUserAlias(), 'json', $context); + } + if ($object->isInitialized('externalUserId') && null !== $object->getExternalUserId()) { + $data['external_user_id'] = $object->getExternalUserId(); + } + if ($object->isInitialized('triggerProperties') && null !== $object->getTriggerProperties()) { + $data['trigger_properties'] = $object->getTriggerProperties(); + } + if ($object->isInitialized('sendToExistingOnly') && null !== $object->getSendToExistingOnly()) { + $data['send_to_existing_only'] = $object->getSendToExistingOnly(); + } + if ($object->isInitialized('attributes') && null !== $object->getAttributes()) { + $data['attributes'] = $this->normalizer->normalize($object->getAttributes(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItem' => false]; + } +} diff --git a/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemUserAliasNormalizer.php b/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemUserAliasNormalizer.php new file mode 100644 index 0000000..26a13ca --- /dev/null +++ b/lib/Normalizer/CampaignsTriggerSendPostBodyRecipientsItemUserAliasNormalizer.php @@ -0,0 +1,97 @@ +setAliasName($data['alias_name']); + unset($data['alias_name']); + } + if (\array_key_exists('alias_label', $data)) { + $object->setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasName') && null !== $object->getAliasName()) { + $data['alias_name'] = $object->getAliasName(); + } + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItemUserAlias' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyAudienceNormalizer.php b/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyAudienceNormalizer.php new file mode 100644 index 0000000..c873b20 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyAudienceNormalizer.php @@ -0,0 +1,98 @@ +setAND($values); + unset($data['AND']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aND') && null !== $object->getAND()) { + $values = []; + foreach ($object->getAND() as $value) { + $values[] = $value; + } + $data['AND'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerScheduleCreatePostBodyAudience' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyNormalizer.php b/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyNormalizer.php new file mode 100644 index 0000000..f04bb01 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyNormalizer.php @@ -0,0 +1,141 @@ +setCanvasId($data['canvas_id']); + unset($data['canvas_id']); + } + if (\array_key_exists('recipients', $data)) { + $values = []; + foreach ($data['recipients'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodyRecipientsItem', 'json', $context); + } + $object->setRecipients($values); + unset($data['recipients']); + } + if (\array_key_exists('audience', $data)) { + $object->setAudience($this->denormalizer->denormalize($data['audience'], 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodyAudience', 'json', $context)); + unset($data['audience']); + } + if (\array_key_exists('broadcast', $data)) { + $object->setBroadcast($data['broadcast']); + unset($data['broadcast']); + } + if (\array_key_exists('canvas_entry_properties', $data)) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['canvas_entry_properties'] as $key => $value_1) { + $values_1[$key] = $value_1; + } + $object->setCanvasEntryProperties($values_1); + unset($data['canvas_entry_properties']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodySchedule', 'json', $context)); + unset($data['schedule']); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('canvasId') && null !== $object->getCanvasId()) { + $data['canvas_id'] = $object->getCanvasId(); + } + if ($object->isInitialized('recipients') && null !== $object->getRecipients()) { + $values = []; + foreach ($object->getRecipients() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['recipients'] = $values; + } + if ($object->isInitialized('audience') && null !== $object->getAudience()) { + $data['audience'] = $this->normalizer->normalize($object->getAudience(), 'json', $context); + } + if ($object->isInitialized('broadcast') && null !== $object->getBroadcast()) { + $data['broadcast'] = $object->getBroadcast(); + } + if ($object->isInitialized('canvasEntryProperties') && null !== $object->getCanvasEntryProperties()) { + $values_1 = []; + foreach ($object->getCanvasEntryProperties() as $key => $value_1) { + $values_1[$key] = $value_1; + } + $data['canvas_entry_properties'] = $values_1; + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerScheduleCreatePostBody' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php b/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php new file mode 100644 index 0000000..e03af21 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyRecipientsItemNormalizer.php @@ -0,0 +1,119 @@ +setUserAlias($data['user_alias']); + unset($data['user_alias']); + } + if (\array_key_exists('external_user_id', $data)) { + $object->setExternalUserId($data['external_user_id']); + unset($data['external_user_id']); + } + if (\array_key_exists('trigger_properties', $data)) { + $object->setTriggerProperties($data['trigger_properties']); + unset($data['trigger_properties']); + } + if (\array_key_exists('canvas_entry_properties', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['canvas_entry_properties'] as $key => $value) { + $values[$key] = $value; + } + $object->setCanvasEntryProperties($values); + unset($data['canvas_entry_properties']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('userAlias') && null !== $object->getUserAlias()) { + $data['user_alias'] = $object->getUserAlias(); + } + if ($object->isInitialized('externalUserId') && null !== $object->getExternalUserId()) { + $data['external_user_id'] = $object->getExternalUserId(); + } + if ($object->isInitialized('triggerProperties') && null !== $object->getTriggerProperties()) { + $data['trigger_properties'] = $object->getTriggerProperties(); + } + if ($object->isInitialized('canvasEntryProperties') && null !== $object->getCanvasEntryProperties()) { + $values = []; + foreach ($object->getCanvasEntryProperties() as $key => $value) { + $values[$key] = $value; + } + $data['canvas_entry_properties'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerScheduleCreatePostBodyRecipientsItem' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyScheduleNormalizer.php b/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyScheduleNormalizer.php new file mode 100644 index 0000000..276d2e3 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerScheduleCreatePostBodyScheduleNormalizer.php @@ -0,0 +1,104 @@ +setTime($data['time']); + unset($data['time']); + } + if (\array_key_exists('in_local_time', $data)) { + $object->setInLocalTime($data['in_local_time']); + unset($data['in_local_time']); + } + if (\array_key_exists('at_optimal_time', $data)) { + $object->setAtOptimalTime($data['at_optimal_time']); + unset($data['at_optimal_time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { + $data['in_local_time'] = $object->getInLocalTime(); + } + if ($object->isInitialized('atOptimalTime') && null !== $object->getAtOptimalTime()) { + $data['at_optimal_time'] = $object->getAtOptimalTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerScheduleCreatePostBodySchedule' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerScheduleDeletePostBodyNormalizer.php b/lib/Normalizer/CanvasTriggerScheduleDeletePostBodyNormalizer.php new file mode 100644 index 0000000..5f1eb02 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerScheduleDeletePostBodyNormalizer.php @@ -0,0 +1,97 @@ +setCanvasId($data['canvas_id']); + unset($data['canvas_id']); + } + if (\array_key_exists('schedule_id', $data)) { + $object->setScheduleId($data['schedule_id']); + unset($data['schedule_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('canvasId') && null !== $object->getCanvasId()) { + $data['canvas_id'] = $object->getCanvasId(); + } + if ($object->isInitialized('scheduleId') && null !== $object->getScheduleId()) { + $data['schedule_id'] = $object->getScheduleId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerScheduleDeletePostBody' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyNormalizer.php b/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyNormalizer.php new file mode 100644 index 0000000..3687c38 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyNormalizer.php @@ -0,0 +1,104 @@ +setCanvasId($data['canvas_id']); + unset($data['canvas_id']); + } + if (\array_key_exists('schedule_id', $data)) { + $object->setScheduleId($data['schedule_id']); + unset($data['schedule_id']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Braze\\Model\\CanvasTriggerScheduleUpdatePostBodySchedule', 'json', $context)); + unset($data['schedule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('canvasId') && null !== $object->getCanvasId()) { + $data['canvas_id'] = $object->getCanvasId(); + } + if ($object->isInitialized('scheduleId') && null !== $object->getScheduleId()) { + $data['schedule_id'] = $object->getScheduleId(); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerScheduleUpdatePostBody' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyScheduleNormalizer.php b/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyScheduleNormalizer.php new file mode 100644 index 0000000..a56a6d1 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerScheduleUpdatePostBodyScheduleNormalizer.php @@ -0,0 +1,97 @@ +setTime($data['time']); + unset($data['time']); + } + if (\array_key_exists('in_local_time', $data)) { + $object->setInLocalTime($data['in_local_time']); + unset($data['in_local_time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { + $data['in_local_time'] = $object->getInLocalTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerScheduleUpdatePostBodySchedule' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerSendPostBodyAudienceNormalizer.php b/lib/Normalizer/CanvasTriggerSendPostBodyAudienceNormalizer.php new file mode 100644 index 0000000..c745950 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerSendPostBodyAudienceNormalizer.php @@ -0,0 +1,98 @@ +setAND($values); + unset($data['AND']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aND') && null !== $object->getAND()) { + $values = []; + foreach ($object->getAND() as $value) { + $values[] = $value; + } + $data['AND'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerSendPostBodyAudience' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerSendPostBodyCanvasEntryPropertiesNormalizer.php b/lib/Normalizer/CanvasTriggerSendPostBodyCanvasEntryPropertiesNormalizer.php new file mode 100644 index 0000000..7ce4d20 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerSendPostBodyCanvasEntryPropertiesNormalizer.php @@ -0,0 +1,100 @@ +setProductName($data['product_name']); + unset($data['product_name']); + } + if (\array_key_exists('product_price', $data)) { + $object->setProductPrice($data['product_price']); + unset($data['product_price']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('productName') && null !== $object->getProductName()) { + $data['product_name'] = $object->getProductName(); + } + if ($object->isInitialized('productPrice') && null !== $object->getProductPrice()) { + $data['product_price'] = $object->getProductPrice(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerSendPostBodyCanvasEntryProperties' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerSendPostBodyNormalizer.php b/lib/Normalizer/CanvasTriggerSendPostBodyNormalizer.php new file mode 100644 index 0000000..828e906 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerSendPostBodyNormalizer.php @@ -0,0 +1,126 @@ +setCanvasId($data['canvas_id']); + unset($data['canvas_id']); + } + if (\array_key_exists('canvas_entry_properties', $data)) { + $object->setCanvasEntryProperties($this->denormalizer->denormalize($data['canvas_entry_properties'], 'Braze\\Model\\CanvasTriggerSendPostBodyCanvasEntryProperties', 'json', $context)); + unset($data['canvas_entry_properties']); + } + if (\array_key_exists('broadcast', $data)) { + $object->setBroadcast($data['broadcast']); + unset($data['broadcast']); + } + if (\array_key_exists('audience', $data)) { + $object->setAudience($this->denormalizer->denormalize($data['audience'], 'Braze\\Model\\CanvasTriggerSendPostBodyAudience', 'json', $context)); + unset($data['audience']); + } + if (\array_key_exists('recipients', $data)) { + $values = []; + foreach ($data['recipients'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItem', 'json', $context); + } + $object->setRecipients($values); + unset($data['recipients']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('canvasId') && null !== $object->getCanvasId()) { + $data['canvas_id'] = $object->getCanvasId(); + } + if ($object->isInitialized('canvasEntryProperties') && null !== $object->getCanvasEntryProperties()) { + $data['canvas_entry_properties'] = $this->normalizer->normalize($object->getCanvasEntryProperties(), 'json', $context); + } + if ($object->isInitialized('broadcast') && null !== $object->getBroadcast()) { + $data['broadcast'] = $object->getBroadcast(); + } + if ($object->isInitialized('audience') && null !== $object->getAudience()) { + $data['audience'] = $this->normalizer->normalize($object->getAudience(), 'json', $context); + } + if ($object->isInitialized('recipients') && null !== $object->getRecipients()) { + $values = []; + foreach ($object->getRecipients() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['recipients'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerSendPostBody' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemAttributesNormalizer.php b/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemAttributesNormalizer.php new file mode 100644 index 0000000..4bf83f1 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemAttributesNormalizer.php @@ -0,0 +1,90 @@ +setFirstName($data['first_name']); + unset($data['first_name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('firstName') && null !== $object->getFirstName()) { + $data['first_name'] = $object->getFirstName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItemAttributes' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemNormalizer.php b/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemNormalizer.php new file mode 100644 index 0000000..85673ec --- /dev/null +++ b/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemNormalizer.php @@ -0,0 +1,125 @@ +setUserAlias($this->denormalizer->denormalize($data['user_alias'], 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItemUserAlias', 'json', $context)); + unset($data['user_alias']); + } + if (\array_key_exists('external_user_id', $data)) { + $object->setExternalUserId($data['external_user_id']); + unset($data['external_user_id']); + } + if (\array_key_exists('trigger_properties', $data)) { + $object->setTriggerProperties($data['trigger_properties']); + unset($data['trigger_properties']); + } + if (\array_key_exists('canvas_entry_properties', $data)) { + $object->setCanvasEntryProperties($data['canvas_entry_properties']); + unset($data['canvas_entry_properties']); + } + if (\array_key_exists('send_to_existing_only', $data)) { + $object->setSendToExistingOnly($data['send_to_existing_only']); + unset($data['send_to_existing_only']); + } + if (\array_key_exists('attributes', $data)) { + $object->setAttributes($this->denormalizer->denormalize($data['attributes'], 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItemAttributes', 'json', $context)); + unset($data['attributes']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('userAlias') && null !== $object->getUserAlias()) { + $data['user_alias'] = $this->normalizer->normalize($object->getUserAlias(), 'json', $context); + } + if ($object->isInitialized('externalUserId') && null !== $object->getExternalUserId()) { + $data['external_user_id'] = $object->getExternalUserId(); + } + if ($object->isInitialized('triggerProperties') && null !== $object->getTriggerProperties()) { + $data['trigger_properties'] = $object->getTriggerProperties(); + } + if ($object->isInitialized('canvasEntryProperties') && null !== $object->getCanvasEntryProperties()) { + $data['canvas_entry_properties'] = $object->getCanvasEntryProperties(); + } + if ($object->isInitialized('sendToExistingOnly') && null !== $object->getSendToExistingOnly()) { + $data['send_to_existing_only'] = $object->getSendToExistingOnly(); + } + if ($object->isInitialized('attributes') && null !== $object->getAttributes()) { + $data['attributes'] = $this->normalizer->normalize($object->getAttributes(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItem' => false]; + } +} diff --git a/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemUserAliasNormalizer.php b/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemUserAliasNormalizer.php new file mode 100644 index 0000000..d068dd6 --- /dev/null +++ b/lib/Normalizer/CanvasTriggerSendPostBodyRecipientsItemUserAliasNormalizer.php @@ -0,0 +1,97 @@ +setAliasName($data['alias_name']); + unset($data['alias_name']); + } + if (\array_key_exists('alias_label', $data)) { + $object->setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasName') && null !== $object->getAliasName()) { + $data['alias_name'] = $object->getAliasName(); + } + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItemUserAlias' => false]; + } +} diff --git a/lib/Normalizer/CatalogsCatalogNameItemsItemIdPatchBodyNormalizer.php b/lib/Normalizer/CatalogsCatalogNameItemsItemIdPatchBodyNormalizer.php new file mode 100644 index 0000000..616b725 --- /dev/null +++ b/lib/Normalizer/CatalogsCatalogNameItemsItemIdPatchBodyNormalizer.php @@ -0,0 +1,106 @@ + $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setItems($values); + unset($data['items']); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('items') && null !== $object->getItems()) { + $values = []; + foreach ($object->getItems() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['items'] = $values; + } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsCatalogNameItemsItemIdPatchBody' => false]; + } +} diff --git a/lib/Normalizer/CatalogsCatalogNameItemsItemIdPostBodyNormalizer.php b/lib/Normalizer/CatalogsCatalogNameItemsItemIdPostBodyNormalizer.php new file mode 100644 index 0000000..97e48a8 --- /dev/null +++ b/lib/Normalizer/CatalogsCatalogNameItemsItemIdPostBodyNormalizer.php @@ -0,0 +1,106 @@ + $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setItems($values); + unset($data['items']); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('items') && null !== $object->getItems()) { + $values = []; + foreach ($object->getItems() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['items'] = $values; + } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsCatalogNameItemsItemIdPostBody' => false]; + } +} diff --git a/lib/Normalizer/CatalogsCatalogNameItemsItemIdPutBodyNormalizer.php b/lib/Normalizer/CatalogsCatalogNameItemsItemIdPutBodyNormalizer.php new file mode 100644 index 0000000..ba6a52b --- /dev/null +++ b/lib/Normalizer/CatalogsCatalogNameItemsItemIdPutBodyNormalizer.php @@ -0,0 +1,106 @@ + $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setItems($values); + unset($data['items']); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('items') && null !== $object->getItems()) { + $values = []; + foreach ($object->getItems() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['items'] = $values; + } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsCatalogNameItemsItemIdPutBody' => false]; + } +} diff --git a/lib/Normalizer/CatalogsCatalogNameItemsPatchBodyItemsItemNormalizer.php b/lib/Normalizer/CatalogsCatalogNameItemsPatchBodyItemsItemNormalizer.php new file mode 100644 index 0000000..82a4d66 --- /dev/null +++ b/lib/Normalizer/CatalogsCatalogNameItemsPatchBodyItemsItemNormalizer.php @@ -0,0 +1,90 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsCatalogNameItemsPatchBodyItemsItem' => false]; + } +} diff --git a/lib/Normalizer/CatalogsCatalogNameItemsPatchBodyNormalizer.php b/lib/Normalizer/CatalogsCatalogNameItemsPatchBodyNormalizer.php new file mode 100644 index 0000000..63d6bb5 --- /dev/null +++ b/lib/Normalizer/CatalogsCatalogNameItemsPatchBodyNormalizer.php @@ -0,0 +1,98 @@ +denormalizer->denormalize($value, 'Braze\\Model\\CatalogsCatalogNameItemsPatchBodyItemsItem', 'json', $context); + } + $object->setItems($values); + unset($data['items']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('items') && null !== $object->getItems()) { + $values = []; + foreach ($object->getItems() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['items'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsCatalogNameItemsPatchBody' => false]; + } +} diff --git a/lib/Normalizer/CatalogsCatalogNameItemsPostBodyNormalizer.php b/lib/Normalizer/CatalogsCatalogNameItemsPostBodyNormalizer.php new file mode 100644 index 0000000..a2fac17 --- /dev/null +++ b/lib/Normalizer/CatalogsCatalogNameItemsPostBodyNormalizer.php @@ -0,0 +1,106 @@ + $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setItems($values); + unset($data['items']); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('items') && null !== $object->getItems()) { + $values = []; + foreach ($object->getItems() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['items'] = $values; + } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsCatalogNameItemsPostBody' => false]; + } +} diff --git a/lib/Normalizer/CatalogsCatalogNameItemsPutBodyNormalizer.php b/lib/Normalizer/CatalogsCatalogNameItemsPutBodyNormalizer.php new file mode 100644 index 0000000..b008b0a --- /dev/null +++ b/lib/Normalizer/CatalogsCatalogNameItemsPutBodyNormalizer.php @@ -0,0 +1,106 @@ + $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setItems($values); + unset($data['items']); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('items') && null !== $object->getItems()) { + $values = []; + foreach ($object->getItems() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['items'] = $values; + } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsCatalogNameItemsPutBody' => false]; + } +} diff --git a/lib/Normalizer/CatalogsPostBodyCatalogsItemFieldsItemNormalizer.php b/lib/Normalizer/CatalogsPostBodyCatalogsItemFieldsItemNormalizer.php new file mode 100644 index 0000000..27ea4cd --- /dev/null +++ b/lib/Normalizer/CatalogsPostBodyCatalogsItemFieldsItemNormalizer.php @@ -0,0 +1,97 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('type', $data)) { + $object->setType($data['type']); + unset($data['type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $object->getType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsPostBodyCatalogsItemFieldsItem' => false]; + } +} diff --git a/lib/Normalizer/CatalogsPostBodyCatalogsItemNormalizer.php b/lib/Normalizer/CatalogsPostBodyCatalogsItemNormalizer.php new file mode 100644 index 0000000..2f23004 --- /dev/null +++ b/lib/Normalizer/CatalogsPostBodyCatalogsItemNormalizer.php @@ -0,0 +1,112 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('fields', $data)) { + $values = []; + foreach ($data['fields'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\CatalogsPostBodyCatalogsItemFieldsItem', 'json', $context); + } + $object->setFields($values); + unset($data['fields']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('fields') && null !== $object->getFields()) { + $values = []; + foreach ($object->getFields() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['fields'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsPostBodyCatalogsItem' => false]; + } +} diff --git a/lib/Normalizer/CatalogsPostBodyNormalizer.php b/lib/Normalizer/CatalogsPostBodyNormalizer.php new file mode 100644 index 0000000..a6f2341 --- /dev/null +++ b/lib/Normalizer/CatalogsPostBodyNormalizer.php @@ -0,0 +1,98 @@ +denormalizer->denormalize($value, 'Braze\\Model\\CatalogsPostBodyCatalogsItem', 'json', $context); + } + $object->setCatalogs($values); + unset($data['catalogs']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('catalogs') && null !== $object->getCatalogs()) { + $values = []; + foreach ($object->getCatalogs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['catalogs'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\CatalogsPostBody' => false]; + } +} diff --git a/lib/Normalizer/ContentBlocksCreatePostBodyNormalizer.php b/lib/Normalizer/ContentBlocksCreatePostBodyNormalizer.php new file mode 100644 index 0000000..7ebb71e --- /dev/null +++ b/lib/Normalizer/ContentBlocksCreatePostBodyNormalizer.php @@ -0,0 +1,126 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('content', $data)) { + $object->setContent($data['content']); + unset($data['content']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('tags', $data)) { + $values = []; + foreach ($data['tags'] as $value) { + $values[] = $value; + } + $object->setTags($values); + unset($data['tags']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('content') && null !== $object->getContent()) { + $data['content'] = $object->getContent(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values = []; + foreach ($object->getTags() as $value) { + $values[] = $value; + } + $data['tags'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ContentBlocksCreatePostBody' => false]; + } +} diff --git a/lib/Normalizer/ContentBlocksUpdatePostBodyNormalizer.php b/lib/Normalizer/ContentBlocksUpdatePostBodyNormalizer.php new file mode 100644 index 0000000..0f09d90 --- /dev/null +++ b/lib/Normalizer/ContentBlocksUpdatePostBodyNormalizer.php @@ -0,0 +1,133 @@ +setContentBlockId($data['content_block_id']); + unset($data['content_block_id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('content', $data)) { + $object->setContent($data['content']); + unset($data['content']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('tags', $data)) { + $values = []; + foreach ($data['tags'] as $value) { + $values[] = $value; + } + $object->setTags($values); + unset($data['tags']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('contentBlockId') && null !== $object->getContentBlockId()) { + $data['content_block_id'] = $object->getContentBlockId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('content') && null !== $object->getContent()) { + $data['content'] = $object->getContent(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values = []; + foreach ($object->getTags() as $value) { + $values[] = $value; + } + $data['tags'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ContentBlocksUpdatePostBody' => false]; + } +} diff --git a/lib/Normalizer/EmailBlacklistPostBodyNormalizer.php b/lib/Normalizer/EmailBlacklistPostBodyNormalizer.php new file mode 100644 index 0000000..fa044e1 --- /dev/null +++ b/lib/Normalizer/EmailBlacklistPostBodyNormalizer.php @@ -0,0 +1,98 @@ +setEmail($values); + unset($data['email']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $values = []; + foreach ($object->getEmail() as $value) { + $values[] = $value; + } + $data['email'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\EmailBlacklistPostBody' => false]; + } +} diff --git a/lib/Normalizer/EmailBlocklistPostBodyNormalizer.php b/lib/Normalizer/EmailBlocklistPostBodyNormalizer.php new file mode 100644 index 0000000..a689f7d --- /dev/null +++ b/lib/Normalizer/EmailBlocklistPostBodyNormalizer.php @@ -0,0 +1,98 @@ +setEmail($values); + unset($data['email']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $values = []; + foreach ($object->getEmail() as $value) { + $values[] = $value; + } + $data['email'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\EmailBlocklistPostBody' => false]; + } +} diff --git a/lib/Normalizer/EmailBounceRemovePostBodyNormalizer.php b/lib/Normalizer/EmailBounceRemovePostBodyNormalizer.php new file mode 100644 index 0000000..53639df --- /dev/null +++ b/lib/Normalizer/EmailBounceRemovePostBodyNormalizer.php @@ -0,0 +1,90 @@ +setEmail($data['email']); + unset($data['email']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $data['email'] = $object->getEmail(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\EmailBounceRemovePostBody' => false]; + } +} diff --git a/lib/Normalizer/EmailSpamRemovePostBodyNormalizer.php b/lib/Normalizer/EmailSpamRemovePostBodyNormalizer.php new file mode 100644 index 0000000..ce7f106 --- /dev/null +++ b/lib/Normalizer/EmailSpamRemovePostBodyNormalizer.php @@ -0,0 +1,90 @@ +setEmail($data['email']); + unset($data['email']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $data['email'] = $object->getEmail(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\EmailSpamRemovePostBody' => false]; + } +} diff --git a/lib/Normalizer/EmailStatusPostBodyNormalizer.php b/lib/Normalizer/EmailStatusPostBodyNormalizer.php new file mode 100644 index 0000000..b47d9fb --- /dev/null +++ b/lib/Normalizer/EmailStatusPostBodyNormalizer.php @@ -0,0 +1,97 @@ +setEmail($data['email']); + unset($data['email']); + } + if (\array_key_exists('subscription_state', $data)) { + $object->setSubscriptionState($data['subscription_state']); + unset($data['subscription_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $data['email'] = $object->getEmail(); + } + if ($object->isInitialized('subscriptionState') && null !== $object->getSubscriptionState()) { + $data['subscription_state'] = $object->getSubscriptionState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\EmailStatusPostBody' => false]; + } +} diff --git a/lib/Normalizer/JaneObjectNormalizer.php b/lib/Normalizer/JaneObjectNormalizer.php index de85d8a..81f6a33 100644 --- a/lib/Normalizer/JaneObjectNormalizer.php +++ b/lib/Normalizer/JaneObjectNormalizer.php @@ -25,7 +25,7 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = ['Braze\\Model\\Error' => 'Braze\\Normalizer\\ErrorNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\Braze\\Runtime\\Normalizer\\ReferenceNormalizer']; + protected $normalizers = ['Braze\\Model\\Error' => 'Braze\\Normalizer\\ErrorNormalizer', 'Braze\\Model\\TemplatesEmailUpdatePostBody' => 'Braze\\Normalizer\\TemplatesEmailUpdatePostBodyNormalizer', 'Braze\\Model\\UsersTrackPostBody' => 'Braze\\Normalizer\\UsersTrackPostBodyNormalizer', 'Braze\\Model\\UsersTrackPostBodyAttributesItem' => 'Braze\\Normalizer\\UsersTrackPostBodyAttributesItemNormalizer', 'Braze\\Model\\UsersTrackPostBodyPurchasesItem' => 'Braze\\Normalizer\\UsersTrackPostBodyPurchasesItemNormalizer', 'Braze\\Model\\UsersTrackPostBodyPurchasesItemProperties' => 'Braze\\Normalizer\\UsersTrackPostBodyPurchasesItemPropertiesNormalizer', 'Braze\\Model\\CatalogsPostBody' => 'Braze\\Normalizer\\CatalogsPostBodyNormalizer', 'Braze\\Model\\CatalogsPostBodyCatalogsItem' => 'Braze\\Normalizer\\CatalogsPostBodyCatalogsItemNormalizer', 'Braze\\Model\\CatalogsPostBodyCatalogsItemFieldsItem' => 'Braze\\Normalizer\\CatalogsPostBodyCatalogsItemFieldsItemNormalizer', 'Braze\\Model\\CatalogsCatalogNameItemsPatchBody' => 'Braze\\Normalizer\\CatalogsCatalogNameItemsPatchBodyNormalizer', 'Braze\\Model\\CatalogsCatalogNameItemsPatchBodyItemsItem' => 'Braze\\Normalizer\\CatalogsCatalogNameItemsPatchBodyItemsItemNormalizer', 'Braze\\Model\\CatalogsCatalogNameItemsPostBody' => 'Braze\\Normalizer\\CatalogsCatalogNameItemsPostBodyNormalizer', 'Braze\\Model\\CatalogsCatalogNameItemsPutBody' => 'Braze\\Normalizer\\CatalogsCatalogNameItemsPutBodyNormalizer', 'Braze\\Model\\CatalogsCatalogNameItemsItemIdPatchBody' => 'Braze\\Normalizer\\CatalogsCatalogNameItemsItemIdPatchBodyNormalizer', 'Braze\\Model\\CatalogsCatalogNameItemsItemIdPostBody' => 'Braze\\Normalizer\\CatalogsCatalogNameItemsItemIdPostBodyNormalizer', 'Braze\\Model\\CatalogsCatalogNameItemsItemIdPutBody' => 'Braze\\Normalizer\\CatalogsCatalogNameItemsItemIdPutBodyNormalizer', 'Braze\\Model\\EmailStatusPostBody' => 'Braze\\Normalizer\\EmailStatusPostBodyNormalizer', 'Braze\\Model\\EmailBounceRemovePostBody' => 'Braze\\Normalizer\\EmailBounceRemovePostBodyNormalizer', 'Braze\\Model\\EmailSpamRemovePostBody' => 'Braze\\Normalizer\\EmailSpamRemovePostBodyNormalizer', 'Braze\\Model\\EmailBlocklistPostBody' => 'Braze\\Normalizer\\EmailBlocklistPostBodyNormalizer', 'Braze\\Model\\EmailBlacklistPostBody' => 'Braze\\Normalizer\\EmailBlacklistPostBodyNormalizer', 'Braze\\Model\\UsersExportIdsPostBody' => 'Braze\\Normalizer\\UsersExportIdsPostBodyNormalizer', 'Braze\\Model\\UsersExportIdsPostBodyUserAliasesItem' => 'Braze\\Normalizer\\UsersExportIdsPostBodyUserAliasesItemNormalizer', 'Braze\\Model\\UsersExportSegmentPostBody' => 'Braze\\Normalizer\\UsersExportSegmentPostBodyNormalizer', 'Braze\\Model\\UsersExportGlobalControlGroupPostBody' => 'Braze\\Normalizer\\UsersExportGlobalControlGroupPostBodyNormalizer', 'Braze\\Model\\MessagesLiveActivityUpdatePostBody' => 'Braze\\Normalizer\\MessagesLiveActivityUpdatePostBodyNormalizer', 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyContentState' => 'Braze\\Normalizer\\MessagesLiveActivityUpdatePostBodyContentStateNormalizer', 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyNotification' => 'Braze\\Normalizer\\MessagesLiveActivityUpdatePostBodyNotificationNormalizer', 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyNotificationAlert' => 'Braze\\Normalizer\\MessagesLiveActivityUpdatePostBodyNotificationAlertNormalizer', 'Braze\\Model\\MessagesScheduleDeletePostBody' => 'Braze\\Normalizer\\MessagesScheduleDeletePostBodyNormalizer', 'Braze\\Model\\CanvasTriggerScheduleDeletePostBody' => 'Braze\\Normalizer\\CanvasTriggerScheduleDeletePostBodyNormalizer', 'Braze\\Model\\CampaignsTriggerScheduleDeletePostBody' => 'Braze\\Normalizer\\CampaignsTriggerScheduleDeletePostBodyNormalizer', 'Braze\\Model\\MessagesScheduleCreatePostBody' => 'Braze\\Normalizer\\MessagesScheduleCreatePostBodyNormalizer', 'Braze\\Model\\MessagesScheduleCreatePostBodyUserAliases' => 'Braze\\Normalizer\\MessagesScheduleCreatePostBodyUserAliasesNormalizer', 'Braze\\Model\\MessagesScheduleCreatePostBodyAudience' => 'Braze\\Normalizer\\MessagesScheduleCreatePostBodyAudienceNormalizer', 'Braze\\Model\\MessagesScheduleCreatePostBodySchedule' => 'Braze\\Normalizer\\MessagesScheduleCreatePostBodyScheduleNormalizer', 'Braze\\Model\\MessagesScheduleCreatePostBodyMessages' => 'Braze\\Normalizer\\MessagesScheduleCreatePostBodyMessagesNormalizer', 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBody' => 'Braze\\Normalizer\\CampaignsTriggerScheduleCreatePostBodyNormalizer', 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem' => 'Braze\\Normalizer\\CampaignsTriggerScheduleCreatePostBodyRecipientsItemNormalizer', 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience' => 'Braze\\Normalizer\\CampaignsTriggerScheduleCreatePostBodyAudienceNormalizer', 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule' => 'Braze\\Normalizer\\CampaignsTriggerScheduleCreatePostBodyScheduleNormalizer', 'Braze\\Model\\CanvasTriggerScheduleCreatePostBody' => 'Braze\\Normalizer\\CanvasTriggerScheduleCreatePostBodyNormalizer', 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodyRecipientsItem' => 'Braze\\Normalizer\\CanvasTriggerScheduleCreatePostBodyRecipientsItemNormalizer', 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodyAudience' => 'Braze\\Normalizer\\CanvasTriggerScheduleCreatePostBodyAudienceNormalizer', 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodySchedule' => 'Braze\\Normalizer\\CanvasTriggerScheduleCreatePostBodyScheduleNormalizer', 'Braze\\Model\\MessagesScheduleUpdatePostBody' => 'Braze\\Normalizer\\MessagesScheduleUpdatePostBodyNormalizer', 'Braze\\Model\\MessagesScheduleUpdatePostBodySchedule' => 'Braze\\Normalizer\\MessagesScheduleUpdatePostBodyScheduleNormalizer', 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessages' => 'Braze\\Normalizer\\MessagesScheduleUpdatePostBodyMessagesNormalizer', 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesApplePush' => 'Braze\\Normalizer\\MessagesScheduleUpdatePostBodyMessagesApplePushNormalizer', 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesAndroidPush' => 'Braze\\Normalizer\\MessagesScheduleUpdatePostBodyMessagesAndroidPushNormalizer', 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesSms' => 'Braze\\Normalizer\\MessagesScheduleUpdatePostBodyMessagesSmsNormalizer', 'Braze\\Model\\CampaignsTriggerScheduleUpdatePostBody' => 'Braze\\Normalizer\\CampaignsTriggerScheduleUpdatePostBodyNormalizer', 'Braze\\Model\\CampaignsTriggerScheduleUpdatePostBodySchedule' => 'Braze\\Normalizer\\CampaignsTriggerScheduleUpdatePostBodyScheduleNormalizer', 'Braze\\Model\\CanvasTriggerScheduleUpdatePostBody' => 'Braze\\Normalizer\\CanvasTriggerScheduleUpdatePostBodyNormalizer', 'Braze\\Model\\CanvasTriggerScheduleUpdatePostBodySchedule' => 'Braze\\Normalizer\\CanvasTriggerScheduleUpdatePostBodyScheduleNormalizer', 'Braze\\Model\\SendsIdCreatePostBody' => 'Braze\\Normalizer\\SendsIdCreatePostBodyNormalizer', 'Braze\\Model\\MessagesSendPostBody' => 'Braze\\Normalizer\\MessagesSendPostBodyNormalizer', 'Braze\\Model\\MessagesSendPostBodyUserAliases' => 'Braze\\Normalizer\\MessagesSendPostBodyUserAliasesNormalizer', 'Braze\\Model\\MessagesSendPostBodyAudience' => 'Braze\\Normalizer\\MessagesSendPostBodyAudienceNormalizer', 'Braze\\Model\\MessagesSendPostBodyMessages' => 'Braze\\Normalizer\\MessagesSendPostBodyMessagesNormalizer', 'Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBody' => 'Braze\\Normalizer\\TransactionalV1CampaignsCampaignIdSendPostBodyNormalizer', 'Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties' => 'Braze\\Normalizer\\TransactionalV1CampaignsCampaignIdSendPostBodyTriggerPropertiesNormalizer', 'Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem' => 'Braze\\Normalizer\\TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItemNormalizer', 'Braze\\Model\\CampaignsTriggerSendPostBody' => 'Braze\\Normalizer\\CampaignsTriggerSendPostBodyNormalizer', 'Braze\\Model\\CampaignsTriggerSendPostBodyAudience' => 'Braze\\Normalizer\\CampaignsTriggerSendPostBodyAudienceNormalizer', 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItem' => 'Braze\\Normalizer\\CampaignsTriggerSendPostBodyRecipientsItemNormalizer', 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItemUserAlias' => 'Braze\\Normalizer\\CampaignsTriggerSendPostBodyRecipientsItemUserAliasNormalizer', 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItemAttributes' => 'Braze\\Normalizer\\CampaignsTriggerSendPostBodyRecipientsItemAttributesNormalizer', 'Braze\\Model\\CanvasTriggerSendPostBody' => 'Braze\\Normalizer\\CanvasTriggerSendPostBodyNormalizer', 'Braze\\Model\\CanvasTriggerSendPostBodyCanvasEntryProperties' => 'Braze\\Normalizer\\CanvasTriggerSendPostBodyCanvasEntryPropertiesNormalizer', 'Braze\\Model\\CanvasTriggerSendPostBodyAudience' => 'Braze\\Normalizer\\CanvasTriggerSendPostBodyAudienceNormalizer', 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItem' => 'Braze\\Normalizer\\CanvasTriggerSendPostBodyRecipientsItemNormalizer', 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItemUserAlias' => 'Braze\\Normalizer\\CanvasTriggerSendPostBodyRecipientsItemUserAliasNormalizer', 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItemAttributes' => 'Braze\\Normalizer\\CanvasTriggerSendPostBodyRecipientsItemAttributesNormalizer', 'Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBody' => 'Braze\\Normalizer\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyNormalizer', 'Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties' => 'Braze\\Normalizer\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerPropertiesNormalizer', 'Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem' => 'Braze\\Normalizer\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItemNormalizer', 'Braze\\Model\\PreferenceCenterV1PostBody' => 'Braze\\Normalizer\\PreferenceCenterV1PostBodyNormalizer', 'Braze\\Model\\PreferenceCenterV1PostBodyOptions' => 'Braze\\Normalizer\\PreferenceCenterV1PostBodyOptionsNormalizer', 'Braze\\Model\\ScimV2UsersIdPutBody' => 'Braze\\Normalizer\\ScimV2UsersIdPutBodyNormalizer', 'Braze\\Model\\ScimV2UsersIdPutBodyName' => 'Braze\\Normalizer\\ScimV2UsersIdPutBodyNameNormalizer', 'Braze\\Model\\ScimV2UsersIdPutBodyPermissions' => 'Braze\\Normalizer\\ScimV2UsersIdPutBodyPermissionsNormalizer', 'Braze\\Model\\ScimV2UsersIdPutBodyPermissionsAppGroupItem' => 'Braze\\Normalizer\\ScimV2UsersIdPutBodyPermissionsAppGroupItemNormalizer', 'Braze\\Model\\ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem' => 'Braze\\Normalizer\\ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItemNormalizer', 'Braze\\Model\\ScimV2UsersPostBody' => 'Braze\\Normalizer\\ScimV2UsersPostBodyNormalizer', 'Braze\\Model\\ScimV2UsersPostBodyName' => 'Braze\\Normalizer\\ScimV2UsersPostBodyNameNormalizer', 'Braze\\Model\\ScimV2UsersPostBodyPermissions' => 'Braze\\Normalizer\\ScimV2UsersPostBodyPermissionsNormalizer', 'Braze\\Model\\ScimV2UsersPostBodyPermissionsAppGroupItem' => 'Braze\\Normalizer\\ScimV2UsersPostBodyPermissionsAppGroupItemNormalizer', 'Braze\\Model\\ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem' => 'Braze\\Normalizer\\ScimV2UsersPostBodyPermissionsAppGroupItemTeamItemNormalizer', 'Braze\\Model\\SmsInvalidPhoneNumbersRemovePostBody' => 'Braze\\Normalizer\\SmsInvalidPhoneNumbersRemovePostBodyNormalizer', 'Braze\\Model\\SubscriptionStatusSetPostBody' => 'Braze\\Normalizer\\SubscriptionStatusSetPostBodyNormalizer', 'Braze\\Model\\V2SubscriptionStatusSetPostBody' => 'Braze\\Normalizer\\V2SubscriptionStatusSetPostBodyNormalizer', 'Braze\\Model\\V2SubscriptionStatusSetPostBodySubscriptionGroupsItem' => 'Braze\\Normalizer\\V2SubscriptionStatusSetPostBodySubscriptionGroupsItemNormalizer', 'Braze\\Model\\ContentBlocksCreatePostBody' => 'Braze\\Normalizer\\ContentBlocksCreatePostBodyNormalizer', 'Braze\\Model\\ContentBlocksUpdatePostBody' => 'Braze\\Normalizer\\ContentBlocksUpdatePostBodyNormalizer', 'Braze\\Model\\TemplatesEmailCreatePostBody' => 'Braze\\Normalizer\\TemplatesEmailCreatePostBodyNormalizer', 'Braze\\Model\\UsersExternalIdsRenamePostBody' => 'Braze\\Normalizer\\UsersExternalIdsRenamePostBodyNormalizer', 'Braze\\Model\\UsersExternalIdsRenamePostBodyExternalIdRenamesItem' => 'Braze\\Normalizer\\UsersExternalIdsRenamePostBodyExternalIdRenamesItemNormalizer', 'Braze\\Model\\UsersExternalIdsRemovePostBody' => 'Braze\\Normalizer\\UsersExternalIdsRemovePostBodyNormalizer', 'Braze\\Model\\UsersAliasUpdatePostBody' => 'Braze\\Normalizer\\UsersAliasUpdatePostBodyNormalizer', 'Braze\\Model\\UsersAliasUpdatePostBodyAliasUpdatesItem' => 'Braze\\Normalizer\\UsersAliasUpdatePostBodyAliasUpdatesItemNormalizer', 'Braze\\Model\\UsersAliasNewPostBody' => 'Braze\\Normalizer\\UsersAliasNewPostBodyNormalizer', 'Braze\\Model\\UsersAliasNewPostBodyUserAliasesItem' => 'Braze\\Normalizer\\UsersAliasNewPostBodyUserAliasesItemNormalizer', 'Braze\\Model\\UsersDeletePostBody' => 'Braze\\Normalizer\\UsersDeletePostBodyNormalizer', 'Braze\\Model\\UsersDeletePostBodyUserAliasesItem' => 'Braze\\Normalizer\\UsersDeletePostBodyUserAliasesItemNormalizer', 'Braze\\Model\\UsersIdentifyPostBody' => 'Braze\\Normalizer\\UsersIdentifyPostBodyNormalizer', 'Braze\\Model\\UsersIdentifyPostBodyAliasesToIdentifyItem' => 'Braze\\Normalizer\\UsersIdentifyPostBodyAliasesToIdentifyItemNormalizer', 'Braze\\Model\\UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias' => 'Braze\\Normalizer\\UsersIdentifyPostBodyAliasesToIdentifyItemUserAliasNormalizer', 'Braze\\Model\\UsersMergePostBody' => 'Braze\\Normalizer\\UsersMergePostBodyNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\Braze\\Runtime\\Normalizer\\ReferenceNormalizer']; protected $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool @@ -77,6 +77,6 @@ private function initNormalizer(string $normalizerClass) public function getSupportedTypes(string $format = null): array { - return ['Braze\\Model\\Error' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false]; + return ['Braze\\Model\\Error' => false, 'Braze\\Model\\TemplatesEmailUpdatePostBody' => false, 'Braze\\Model\\UsersTrackPostBody' => false, 'Braze\\Model\\UsersTrackPostBodyAttributesItem' => false, 'Braze\\Model\\UsersTrackPostBodyPurchasesItem' => false, 'Braze\\Model\\UsersTrackPostBodyPurchasesItemProperties' => false, 'Braze\\Model\\CatalogsPostBody' => false, 'Braze\\Model\\CatalogsPostBodyCatalogsItem' => false, 'Braze\\Model\\CatalogsPostBodyCatalogsItemFieldsItem' => false, 'Braze\\Model\\CatalogsCatalogNameItemsPatchBody' => false, 'Braze\\Model\\CatalogsCatalogNameItemsPatchBodyItemsItem' => false, 'Braze\\Model\\CatalogsCatalogNameItemsPostBody' => false, 'Braze\\Model\\CatalogsCatalogNameItemsPutBody' => false, 'Braze\\Model\\CatalogsCatalogNameItemsItemIdPatchBody' => false, 'Braze\\Model\\CatalogsCatalogNameItemsItemIdPostBody' => false, 'Braze\\Model\\CatalogsCatalogNameItemsItemIdPutBody' => false, 'Braze\\Model\\EmailStatusPostBody' => false, 'Braze\\Model\\EmailBounceRemovePostBody' => false, 'Braze\\Model\\EmailSpamRemovePostBody' => false, 'Braze\\Model\\EmailBlocklistPostBody' => false, 'Braze\\Model\\EmailBlacklistPostBody' => false, 'Braze\\Model\\UsersExportIdsPostBody' => false, 'Braze\\Model\\UsersExportIdsPostBodyUserAliasesItem' => false, 'Braze\\Model\\UsersExportSegmentPostBody' => false, 'Braze\\Model\\UsersExportGlobalControlGroupPostBody' => false, 'Braze\\Model\\MessagesLiveActivityUpdatePostBody' => false, 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyContentState' => false, 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyNotification' => false, 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyNotificationAlert' => false, 'Braze\\Model\\MessagesScheduleDeletePostBody' => false, 'Braze\\Model\\CanvasTriggerScheduleDeletePostBody' => false, 'Braze\\Model\\CampaignsTriggerScheduleDeletePostBody' => false, 'Braze\\Model\\MessagesScheduleCreatePostBody' => false, 'Braze\\Model\\MessagesScheduleCreatePostBodyUserAliases' => false, 'Braze\\Model\\MessagesScheduleCreatePostBodyAudience' => false, 'Braze\\Model\\MessagesScheduleCreatePostBodySchedule' => false, 'Braze\\Model\\MessagesScheduleCreatePostBodyMessages' => false, 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBody' => false, 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyRecipientsItem' => false, 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodyAudience' => false, 'Braze\\Model\\CampaignsTriggerScheduleCreatePostBodySchedule' => false, 'Braze\\Model\\CanvasTriggerScheduleCreatePostBody' => false, 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodyRecipientsItem' => false, 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodyAudience' => false, 'Braze\\Model\\CanvasTriggerScheduleCreatePostBodySchedule' => false, 'Braze\\Model\\MessagesScheduleUpdatePostBody' => false, 'Braze\\Model\\MessagesScheduleUpdatePostBodySchedule' => false, 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessages' => false, 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesApplePush' => false, 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesAndroidPush' => false, 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesSms' => false, 'Braze\\Model\\CampaignsTriggerScheduleUpdatePostBody' => false, 'Braze\\Model\\CampaignsTriggerScheduleUpdatePostBodySchedule' => false, 'Braze\\Model\\CanvasTriggerScheduleUpdatePostBody' => false, 'Braze\\Model\\CanvasTriggerScheduleUpdatePostBodySchedule' => false, 'Braze\\Model\\SendsIdCreatePostBody' => false, 'Braze\\Model\\MessagesSendPostBody' => false, 'Braze\\Model\\MessagesSendPostBodyUserAliases' => false, 'Braze\\Model\\MessagesSendPostBodyAudience' => false, 'Braze\\Model\\MessagesSendPostBodyMessages' => false, 'Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBody' => false, 'Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties' => false, 'Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem' => false, 'Braze\\Model\\CampaignsTriggerSendPostBody' => false, 'Braze\\Model\\CampaignsTriggerSendPostBodyAudience' => false, 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItem' => false, 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItemUserAlias' => false, 'Braze\\Model\\CampaignsTriggerSendPostBodyRecipientsItemAttributes' => false, 'Braze\\Model\\CanvasTriggerSendPostBody' => false, 'Braze\\Model\\CanvasTriggerSendPostBodyCanvasEntryProperties' => false, 'Braze\\Model\\CanvasTriggerSendPostBodyAudience' => false, 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItem' => false, 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItemUserAlias' => false, 'Braze\\Model\\CanvasTriggerSendPostBodyRecipientsItemAttributes' => false, 'Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBody' => false, 'Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties' => false, 'Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem' => false, 'Braze\\Model\\PreferenceCenterV1PostBody' => false, 'Braze\\Model\\PreferenceCenterV1PostBodyOptions' => false, 'Braze\\Model\\ScimV2UsersIdPutBody' => false, 'Braze\\Model\\ScimV2UsersIdPutBodyName' => false, 'Braze\\Model\\ScimV2UsersIdPutBodyPermissions' => false, 'Braze\\Model\\ScimV2UsersIdPutBodyPermissionsAppGroupItem' => false, 'Braze\\Model\\ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem' => false, 'Braze\\Model\\ScimV2UsersPostBody' => false, 'Braze\\Model\\ScimV2UsersPostBodyName' => false, 'Braze\\Model\\ScimV2UsersPostBodyPermissions' => false, 'Braze\\Model\\ScimV2UsersPostBodyPermissionsAppGroupItem' => false, 'Braze\\Model\\ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem' => false, 'Braze\\Model\\SmsInvalidPhoneNumbersRemovePostBody' => false, 'Braze\\Model\\SubscriptionStatusSetPostBody' => false, 'Braze\\Model\\V2SubscriptionStatusSetPostBody' => false, 'Braze\\Model\\V2SubscriptionStatusSetPostBodySubscriptionGroupsItem' => false, 'Braze\\Model\\ContentBlocksCreatePostBody' => false, 'Braze\\Model\\ContentBlocksUpdatePostBody' => false, 'Braze\\Model\\TemplatesEmailCreatePostBody' => false, 'Braze\\Model\\UsersExternalIdsRenamePostBody' => false, 'Braze\\Model\\UsersExternalIdsRenamePostBodyExternalIdRenamesItem' => false, 'Braze\\Model\\UsersExternalIdsRemovePostBody' => false, 'Braze\\Model\\UsersAliasUpdatePostBody' => false, 'Braze\\Model\\UsersAliasUpdatePostBodyAliasUpdatesItem' => false, 'Braze\\Model\\UsersAliasNewPostBody' => false, 'Braze\\Model\\UsersAliasNewPostBodyUserAliasesItem' => false, 'Braze\\Model\\UsersDeletePostBody' => false, 'Braze\\Model\\UsersDeletePostBodyUserAliasesItem' => false, 'Braze\\Model\\UsersIdentifyPostBody' => false, 'Braze\\Model\\UsersIdentifyPostBodyAliasesToIdentifyItem' => false, 'Braze\\Model\\UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias' => false, 'Braze\\Model\\UsersMergePostBody' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false]; } } diff --git a/lib/Normalizer/MessagesLiveActivityUpdatePostBodyContentStateNormalizer.php b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyContentStateNormalizer.php new file mode 100644 index 0000000..0733fc9 --- /dev/null +++ b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyContentStateNormalizer.php @@ -0,0 +1,97 @@ +setTeamOneScore($data['teamOneScore']); + unset($data['teamOneScore']); + } + if (\array_key_exists('teamTwoScore', $data)) { + $object->setTeamTwoScore($data['teamTwoScore']); + unset($data['teamTwoScore']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('teamOneScore') && null !== $object->getTeamOneScore()) { + $data['teamOneScore'] = $object->getTeamOneScore(); + } + if ($object->isInitialized('teamTwoScore') && null !== $object->getTeamTwoScore()) { + $data['teamTwoScore'] = $object->getTeamTwoScore(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesLiveActivityUpdatePostBodyContentState' => false]; + } +} diff --git a/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNormalizer.php b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNormalizer.php new file mode 100644 index 0000000..d08db04 --- /dev/null +++ b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNormalizer.php @@ -0,0 +1,132 @@ +setAppId($data['app_id']); + unset($data['app_id']); + } + if (\array_key_exists('activity_id', $data)) { + $object->setActivityId($data['activity_id']); + unset($data['activity_id']); + } + if (\array_key_exists('content_state', $data)) { + $object->setContentState($this->denormalizer->denormalize($data['content_state'], 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyContentState', 'json', $context)); + unset($data['content_state']); + } + if (\array_key_exists('end_activity', $data)) { + $object->setEndActivity($data['end_activity']); + unset($data['end_activity']); + } + if (\array_key_exists('dismissal_date', $data)) { + $object->setDismissalDate($data['dismissal_date']); + unset($data['dismissal_date']); + } + if (\array_key_exists('stale_date', $data)) { + $object->setStaleDate($data['stale_date']); + unset($data['stale_date']); + } + if (\array_key_exists('notification', $data)) { + $object->setNotification($this->denormalizer->denormalize($data['notification'], 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyNotification', 'json', $context)); + unset($data['notification']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('appId') && null !== $object->getAppId()) { + $data['app_id'] = $object->getAppId(); + } + if ($object->isInitialized('activityId') && null !== $object->getActivityId()) { + $data['activity_id'] = $object->getActivityId(); + } + if ($object->isInitialized('contentState') && null !== $object->getContentState()) { + $data['content_state'] = $this->normalizer->normalize($object->getContentState(), 'json', $context); + } + if ($object->isInitialized('endActivity') && null !== $object->getEndActivity()) { + $data['end_activity'] = $object->getEndActivity(); + } + if ($object->isInitialized('dismissalDate') && null !== $object->getDismissalDate()) { + $data['dismissal_date'] = $object->getDismissalDate(); + } + if ($object->isInitialized('staleDate') && null !== $object->getStaleDate()) { + $data['stale_date'] = $object->getStaleDate(); + } + if ($object->isInitialized('notification') && null !== $object->getNotification()) { + $data['notification'] = $this->normalizer->normalize($object->getNotification(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesLiveActivityUpdatePostBody' => false]; + } +} diff --git a/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNotificationAlertNormalizer.php b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNotificationAlertNormalizer.php new file mode 100644 index 0000000..30190de --- /dev/null +++ b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNotificationAlertNormalizer.php @@ -0,0 +1,97 @@ +setBody($data['body']); + unset($data['body']); + } + if (\array_key_exists('title', $data)) { + $object->setTitle($data['title']); + unset($data['title']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('body') && null !== $object->getBody()) { + $data['body'] = $object->getBody(); + } + if ($object->isInitialized('title') && null !== $object->getTitle()) { + $data['title'] = $object->getTitle(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesLiveActivityUpdatePostBodyNotificationAlert' => false]; + } +} diff --git a/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNotificationNormalizer.php b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNotificationNormalizer.php new file mode 100644 index 0000000..19feb98 --- /dev/null +++ b/lib/Normalizer/MessagesLiveActivityUpdatePostBodyNotificationNormalizer.php @@ -0,0 +1,90 @@ +setAlert($this->denormalizer->denormalize($data['alert'], 'Braze\\Model\\MessagesLiveActivityUpdatePostBodyNotificationAlert', 'json', $context)); + unset($data['alert']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('alert') && null !== $object->getAlert()) { + $data['alert'] = $this->normalizer->normalize($object->getAlert(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesLiveActivityUpdatePostBodyNotification' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleCreatePostBodyAudienceNormalizer.php b/lib/Normalizer/MessagesScheduleCreatePostBodyAudienceNormalizer.php new file mode 100644 index 0000000..7d337e1 --- /dev/null +++ b/lib/Normalizer/MessagesScheduleCreatePostBodyAudienceNormalizer.php @@ -0,0 +1,98 @@ +setAND($values); + unset($data['AND']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aND') && null !== $object->getAND()) { + $values = []; + foreach ($object->getAND() as $value) { + $values[] = $value; + } + $data['AND'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleCreatePostBodyAudience' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleCreatePostBodyMessagesNormalizer.php b/lib/Normalizer/MessagesScheduleCreatePostBodyMessagesNormalizer.php new file mode 100644 index 0000000..9c0d96f --- /dev/null +++ b/lib/Normalizer/MessagesScheduleCreatePostBodyMessagesNormalizer.php @@ -0,0 +1,218 @@ + $value) { + $values[$key] = $value; + } + $object->setApplePush($values); + unset($data['apple_push']); + } + if (\array_key_exists('android_push', $data)) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['android_push'] as $key_1 => $value_1) { + $values_1[$key_1] = $value_1; + } + $object->setAndroidPush($values_1); + unset($data['android_push']); + } + if (\array_key_exists('windows_push', $data)) { + $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['windows_push'] as $key_2 => $value_2) { + $values_2[$key_2] = $value_2; + } + $object->setWindowsPush($values_2); + unset($data['windows_push']); + } + if (\array_key_exists('windows8_push', $data)) { + $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['windows8_push'] as $key_3 => $value_3) { + $values_3[$key_3] = $value_3; + } + $object->setWindows8Push($values_3); + unset($data['windows8_push']); + } + if (\array_key_exists('kindle_push', $data)) { + $values_4 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['kindle_push'] as $key_4 => $value_4) { + $values_4[$key_4] = $value_4; + } + $object->setKindlePush($values_4); + unset($data['kindle_push']); + } + if (\array_key_exists('web_push', $data)) { + $values_5 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['web_push'] as $key_5 => $value_5) { + $values_5[$key_5] = $value_5; + } + $object->setWebPush($values_5); + unset($data['web_push']); + } + if (\array_key_exists('email', $data)) { + $values_6 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['email'] as $key_6 => $value_6) { + $values_6[$key_6] = $value_6; + } + $object->setEmail($values_6); + unset($data['email']); + } + if (\array_key_exists('webhook', $data)) { + $values_7 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['webhook'] as $key_7 => $value_7) { + $values_7[$key_7] = $value_7; + } + $object->setWebhook($values_7); + unset($data['webhook']); + } + if (\array_key_exists('content_card', $data)) { + $values_8 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['content_card'] as $key_8 => $value_8) { + $values_8[$key_8] = $value_8; + } + $object->setContentCard($values_8); + unset($data['content_card']); + } + foreach ($data as $key_9 => $value_9) { + if (preg_match('/.*/', (string) $key_9)) { + $object[$key_9] = $value_9; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('applePush') && null !== $object->getApplePush()) { + $values = []; + foreach ($object->getApplePush() as $key => $value) { + $values[$key] = $value; + } + $data['apple_push'] = $values; + } + if ($object->isInitialized('androidPush') && null !== $object->getAndroidPush()) { + $values_1 = []; + foreach ($object->getAndroidPush() as $key_1 => $value_1) { + $values_1[$key_1] = $value_1; + } + $data['android_push'] = $values_1; + } + if ($object->isInitialized('windowsPush') && null !== $object->getWindowsPush()) { + $values_2 = []; + foreach ($object->getWindowsPush() as $key_2 => $value_2) { + $values_2[$key_2] = $value_2; + } + $data['windows_push'] = $values_2; + } + if ($object->isInitialized('windows8Push') && null !== $object->getWindows8Push()) { + $values_3 = []; + foreach ($object->getWindows8Push() as $key_3 => $value_3) { + $values_3[$key_3] = $value_3; + } + $data['windows8_push'] = $values_3; + } + if ($object->isInitialized('kindlePush') && null !== $object->getKindlePush()) { + $values_4 = []; + foreach ($object->getKindlePush() as $key_4 => $value_4) { + $values_4[$key_4] = $value_4; + } + $data['kindle_push'] = $values_4; + } + if ($object->isInitialized('webPush') && null !== $object->getWebPush()) { + $values_5 = []; + foreach ($object->getWebPush() as $key_5 => $value_5) { + $values_5[$key_5] = $value_5; + } + $data['web_push'] = $values_5; + } + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $values_6 = []; + foreach ($object->getEmail() as $key_6 => $value_6) { + $values_6[$key_6] = $value_6; + } + $data['email'] = $values_6; + } + if ($object->isInitialized('webhook') && null !== $object->getWebhook()) { + $values_7 = []; + foreach ($object->getWebhook() as $key_7 => $value_7) { + $values_7[$key_7] = $value_7; + } + $data['webhook'] = $values_7; + } + if ($object->isInitialized('contentCard') && null !== $object->getContentCard()) { + $values_8 = []; + foreach ($object->getContentCard() as $key_8 => $value_8) { + $values_8[$key_8] = $value_8; + } + $data['content_card'] = $values_8; + } + foreach ($object as $key_9 => $value_9) { + if (preg_match('/.*/', (string) $key_9)) { + $data[$key_9] = $value_9; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleCreatePostBodyMessages' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleCreatePostBodyNormalizer.php b/lib/Normalizer/MessagesScheduleCreatePostBodyNormalizer.php new file mode 100644 index 0000000..000b941 --- /dev/null +++ b/lib/Normalizer/MessagesScheduleCreatePostBodyNormalizer.php @@ -0,0 +1,160 @@ +setBroadcast($data['broadcast']); + unset($data['broadcast']); + } + if (\array_key_exists('external_user_ids', $data)) { + $object->setExternalUserIds($data['external_user_ids']); + unset($data['external_user_ids']); + } + if (\array_key_exists('user_aliases', $data)) { + $object->setUserAliases($this->denormalizer->denormalize($data['user_aliases'], 'Braze\\Model\\MessagesScheduleCreatePostBodyUserAliases', 'json', $context)); + unset($data['user_aliases']); + } + if (\array_key_exists('segment_id', $data)) { + $object->setSegmentId($data['segment_id']); + unset($data['segment_id']); + } + if (\array_key_exists('audience', $data)) { + $object->setAudience($this->denormalizer->denormalize($data['audience'], 'Braze\\Model\\MessagesScheduleCreatePostBodyAudience', 'json', $context)); + unset($data['audience']); + } + if (\array_key_exists('campaign_id', $data)) { + $object->setCampaignId($data['campaign_id']); + unset($data['campaign_id']); + } + if (\array_key_exists('send_id', $data)) { + $object->setSendId($data['send_id']); + unset($data['send_id']); + } + if (\array_key_exists('override_messaging_limits', $data)) { + $object->setOverrideMessagingLimits($data['override_messaging_limits']); + unset($data['override_messaging_limits']); + } + if (\array_key_exists('recipient_subscription_state', $data)) { + $object->setRecipientSubscriptionState($data['recipient_subscription_state']); + unset($data['recipient_subscription_state']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Braze\\Model\\MessagesScheduleCreatePostBodySchedule', 'json', $context)); + unset($data['schedule']); + } + if (\array_key_exists('messages', $data)) { + $object->setMessages($this->denormalizer->denormalize($data['messages'], 'Braze\\Model\\MessagesScheduleCreatePostBodyMessages', 'json', $context)); + unset($data['messages']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('broadcast') && null !== $object->getBroadcast()) { + $data['broadcast'] = $object->getBroadcast(); + } + if ($object->isInitialized('externalUserIds') && null !== $object->getExternalUserIds()) { + $data['external_user_ids'] = $object->getExternalUserIds(); + } + if ($object->isInitialized('userAliases') && null !== $object->getUserAliases()) { + $data['user_aliases'] = $this->normalizer->normalize($object->getUserAliases(), 'json', $context); + } + if ($object->isInitialized('segmentId') && null !== $object->getSegmentId()) { + $data['segment_id'] = $object->getSegmentId(); + } + if ($object->isInitialized('audience') && null !== $object->getAudience()) { + $data['audience'] = $this->normalizer->normalize($object->getAudience(), 'json', $context); + } + if ($object->isInitialized('campaignId') && null !== $object->getCampaignId()) { + $data['campaign_id'] = $object->getCampaignId(); + } + if ($object->isInitialized('sendId') && null !== $object->getSendId()) { + $data['send_id'] = $object->getSendId(); + } + if ($object->isInitialized('overrideMessagingLimits') && null !== $object->getOverrideMessagingLimits()) { + $data['override_messaging_limits'] = $object->getOverrideMessagingLimits(); + } + if ($object->isInitialized('recipientSubscriptionState') && null !== $object->getRecipientSubscriptionState()) { + $data['recipient_subscription_state'] = $object->getRecipientSubscriptionState(); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + if ($object->isInitialized('messages') && null !== $object->getMessages()) { + $data['messages'] = $this->normalizer->normalize($object->getMessages(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleCreatePostBody' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleCreatePostBodyScheduleNormalizer.php b/lib/Normalizer/MessagesScheduleCreatePostBodyScheduleNormalizer.php new file mode 100644 index 0000000..cb28bdd --- /dev/null +++ b/lib/Normalizer/MessagesScheduleCreatePostBodyScheduleNormalizer.php @@ -0,0 +1,104 @@ +setTime($data['time']); + unset($data['time']); + } + if (\array_key_exists('in_local_time', $data)) { + $object->setInLocalTime($data['in_local_time']); + unset($data['in_local_time']); + } + if (\array_key_exists('at_optimal_time', $data)) { + $object->setAtOptimalTime($data['at_optimal_time']); + unset($data['at_optimal_time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + if ($object->isInitialized('inLocalTime') && null !== $object->getInLocalTime()) { + $data['in_local_time'] = $object->getInLocalTime(); + } + if ($object->isInitialized('atOptimalTime') && null !== $object->getAtOptimalTime()) { + $data['at_optimal_time'] = $object->getAtOptimalTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleCreatePostBodySchedule' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleCreatePostBodyUserAliasesNormalizer.php b/lib/Normalizer/MessagesScheduleCreatePostBodyUserAliasesNormalizer.php new file mode 100644 index 0000000..b30f190 --- /dev/null +++ b/lib/Normalizer/MessagesScheduleCreatePostBodyUserAliasesNormalizer.php @@ -0,0 +1,97 @@ +setAliasName($data['alias_name']); + unset($data['alias_name']); + } + if (\array_key_exists('alias_label', $data)) { + $object->setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasName') && null !== $object->getAliasName()) { + $data['alias_name'] = $object->getAliasName(); + } + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleCreatePostBodyUserAliases' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleDeletePostBodyNormalizer.php b/lib/Normalizer/MessagesScheduleDeletePostBodyNormalizer.php new file mode 100644 index 0000000..d01c46d --- /dev/null +++ b/lib/Normalizer/MessagesScheduleDeletePostBodyNormalizer.php @@ -0,0 +1,90 @@ +setScheduleId($data['schedule_id']); + unset($data['schedule_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('scheduleId') && null !== $object->getScheduleId()) { + $data['schedule_id'] = $object->getScheduleId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleDeletePostBody' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesAndroidPushNormalizer.php b/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesAndroidPushNormalizer.php new file mode 100644 index 0000000..e41e88f --- /dev/null +++ b/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesAndroidPushNormalizer.php @@ -0,0 +1,97 @@ +setTitle($data['title']); + unset($data['title']); + } + if (\array_key_exists('alert', $data)) { + $object->setAlert($data['alert']); + unset($data['alert']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('title') && null !== $object->getTitle()) { + $data['title'] = $object->getTitle(); + } + if ($object->isInitialized('alert') && null !== $object->getAlert()) { + $data['alert'] = $object->getAlert(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesAndroidPush' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesApplePushNormalizer.php b/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesApplePushNormalizer.php new file mode 100644 index 0000000..a3792e0 --- /dev/null +++ b/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesApplePushNormalizer.php @@ -0,0 +1,97 @@ +setAlert($data['alert']); + unset($data['alert']); + } + if (\array_key_exists('badge', $data)) { + $object->setBadge($data['badge']); + unset($data['badge']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('alert') && null !== $object->getAlert()) { + $data['alert'] = $object->getAlert(); + } + if ($object->isInitialized('badge') && null !== $object->getBadge()) { + $data['badge'] = $object->getBadge(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesApplePush' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesNormalizer.php b/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesNormalizer.php new file mode 100644 index 0000000..40fd428 --- /dev/null +++ b/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesNormalizer.php @@ -0,0 +1,104 @@ +setApplePush($this->denormalizer->denormalize($data['apple_push'], 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesApplePush', 'json', $context)); + unset($data['apple_push']); + } + if (\array_key_exists('android_push', $data)) { + $object->setAndroidPush($this->denormalizer->denormalize($data['android_push'], 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesAndroidPush', 'json', $context)); + unset($data['android_push']); + } + if (\array_key_exists('sms', $data)) { + $object->setSms($this->denormalizer->denormalize($data['sms'], 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesSms', 'json', $context)); + unset($data['sms']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('applePush') && null !== $object->getApplePush()) { + $data['apple_push'] = $this->normalizer->normalize($object->getApplePush(), 'json', $context); + } + if ($object->isInitialized('androidPush') && null !== $object->getAndroidPush()) { + $data['android_push'] = $this->normalizer->normalize($object->getAndroidPush(), 'json', $context); + } + if ($object->isInitialized('sms') && null !== $object->getSms()) { + $data['sms'] = $this->normalizer->normalize($object->getSms(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleUpdatePostBodyMessages' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesSmsNormalizer.php b/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesSmsNormalizer.php new file mode 100644 index 0000000..216c88c --- /dev/null +++ b/lib/Normalizer/MessagesScheduleUpdatePostBodyMessagesSmsNormalizer.php @@ -0,0 +1,111 @@ +setSubscriptionGroupId($data['subscription_group_id']); + unset($data['subscription_group_id']); + } + if (\array_key_exists('message_variation_id', $data)) { + $object->setMessageVariationId($data['message_variation_id']); + unset($data['message_variation_id']); + } + if (\array_key_exists('body', $data)) { + $object->setBody($data['body']); + unset($data['body']); + } + if (\array_key_exists('app_id', $data)) { + $object->setAppId($data['app_id']); + unset($data['app_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('subscriptionGroupId') && null !== $object->getSubscriptionGroupId()) { + $data['subscription_group_id'] = $object->getSubscriptionGroupId(); + } + if ($object->isInitialized('messageVariationId') && null !== $object->getMessageVariationId()) { + $data['message_variation_id'] = $object->getMessageVariationId(); + } + if ($object->isInitialized('body') && null !== $object->getBody()) { + $data['body'] = $object->getBody(); + } + if ($object->isInitialized('appId') && null !== $object->getAppId()) { + $data['app_id'] = $object->getAppId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleUpdatePostBodyMessagesSms' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleUpdatePostBodyNormalizer.php b/lib/Normalizer/MessagesScheduleUpdatePostBodyNormalizer.php new file mode 100644 index 0000000..6429b7b --- /dev/null +++ b/lib/Normalizer/MessagesScheduleUpdatePostBodyNormalizer.php @@ -0,0 +1,104 @@ +setScheduleId($data['schedule_id']); + unset($data['schedule_id']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Braze\\Model\\MessagesScheduleUpdatePostBodySchedule', 'json', $context)); + unset($data['schedule']); + } + if (\array_key_exists('messages', $data)) { + $object->setMessages($this->denormalizer->denormalize($data['messages'], 'Braze\\Model\\MessagesScheduleUpdatePostBodyMessages', 'json', $context)); + unset($data['messages']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('scheduleId') && null !== $object->getScheduleId()) { + $data['schedule_id'] = $object->getScheduleId(); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + if ($object->isInitialized('messages') && null !== $object->getMessages()) { + $data['messages'] = $this->normalizer->normalize($object->getMessages(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleUpdatePostBody' => false]; + } +} diff --git a/lib/Normalizer/MessagesScheduleUpdatePostBodyScheduleNormalizer.php b/lib/Normalizer/MessagesScheduleUpdatePostBodyScheduleNormalizer.php new file mode 100644 index 0000000..9ef7468 --- /dev/null +++ b/lib/Normalizer/MessagesScheduleUpdatePostBodyScheduleNormalizer.php @@ -0,0 +1,90 @@ +setTime($data['time']); + unset($data['time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesScheduleUpdatePostBodySchedule' => false]; + } +} diff --git a/lib/Normalizer/MessagesSendPostBodyAudienceNormalizer.php b/lib/Normalizer/MessagesSendPostBodyAudienceNormalizer.php new file mode 100644 index 0000000..07093c2 --- /dev/null +++ b/lib/Normalizer/MessagesSendPostBodyAudienceNormalizer.php @@ -0,0 +1,98 @@ +setAND($values); + unset($data['AND']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aND') && null !== $object->getAND()) { + $values = []; + foreach ($object->getAND() as $value) { + $values[] = $value; + } + $data['AND'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesSendPostBodyAudience' => false]; + } +} diff --git a/lib/Normalizer/MessagesSendPostBodyMessagesNormalizer.php b/lib/Normalizer/MessagesSendPostBodyMessagesNormalizer.php new file mode 100644 index 0000000..f30c250 --- /dev/null +++ b/lib/Normalizer/MessagesSendPostBodyMessagesNormalizer.php @@ -0,0 +1,139 @@ +setAndroidPush($data['android_push']); + unset($data['android_push']); + } + if (\array_key_exists('apple_push', $data)) { + $object->setApplePush($data['apple_push']); + unset($data['apple_push']); + } + if (\array_key_exists('content_card', $data)) { + $object->setContentCard($data['content_card']); + unset($data['content_card']); + } + if (\array_key_exists('email', $data)) { + $object->setEmail($data['email']); + unset($data['email']); + } + if (\array_key_exists('kindle_push', $data)) { + $object->setKindlePush($data['kindle_push']); + unset($data['kindle_push']); + } + if (\array_key_exists('web_push', $data)) { + $object->setWebPush($data['web_push']); + unset($data['web_push']); + } + if (\array_key_exists('windows_phone8_push', $data)) { + $object->setWindowsPhone8Push($data['windows_phone8_push']); + unset($data['windows_phone8_push']); + } + if (\array_key_exists('windows_universal_push', $data)) { + $object->setWindowsUniversalPush($data['windows_universal_push']); + unset($data['windows_universal_push']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('androidPush') && null !== $object->getAndroidPush()) { + $data['android_push'] = $object->getAndroidPush(); + } + if ($object->isInitialized('applePush') && null !== $object->getApplePush()) { + $data['apple_push'] = $object->getApplePush(); + } + if ($object->isInitialized('contentCard') && null !== $object->getContentCard()) { + $data['content_card'] = $object->getContentCard(); + } + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $data['email'] = $object->getEmail(); + } + if ($object->isInitialized('kindlePush') && null !== $object->getKindlePush()) { + $data['kindle_push'] = $object->getKindlePush(); + } + if ($object->isInitialized('webPush') && null !== $object->getWebPush()) { + $data['web_push'] = $object->getWebPush(); + } + if ($object->isInitialized('windowsPhone8Push') && null !== $object->getWindowsPhone8Push()) { + $data['windows_phone8_push'] = $object->getWindowsPhone8Push(); + } + if ($object->isInitialized('windowsUniversalPush') && null !== $object->getWindowsUniversalPush()) { + $data['windows_universal_push'] = $object->getWindowsUniversalPush(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesSendPostBodyMessages' => false]; + } +} diff --git a/lib/Normalizer/MessagesSendPostBodyNormalizer.php b/lib/Normalizer/MessagesSendPostBodyNormalizer.php new file mode 100644 index 0000000..3a6cbcb --- /dev/null +++ b/lib/Normalizer/MessagesSendPostBodyNormalizer.php @@ -0,0 +1,153 @@ +setBroadcast($data['broadcast']); + unset($data['broadcast']); + } + if (\array_key_exists('external_user_ids', $data)) { + $object->setExternalUserIds($data['external_user_ids']); + unset($data['external_user_ids']); + } + if (\array_key_exists('user_aliases', $data)) { + $object->setUserAliases($this->denormalizer->denormalize($data['user_aliases'], 'Braze\\Model\\MessagesSendPostBodyUserAliases', 'json', $context)); + unset($data['user_aliases']); + } + if (\array_key_exists('segment_id', $data)) { + $object->setSegmentId($data['segment_id']); + unset($data['segment_id']); + } + if (\array_key_exists('audience', $data)) { + $object->setAudience($this->denormalizer->denormalize($data['audience'], 'Braze\\Model\\MessagesSendPostBodyAudience', 'json', $context)); + unset($data['audience']); + } + if (\array_key_exists('campaign_id', $data)) { + $object->setCampaignId($data['campaign_id']); + unset($data['campaign_id']); + } + if (\array_key_exists('send_id', $data)) { + $object->setSendId($data['send_id']); + unset($data['send_id']); + } + if (\array_key_exists('override_frequency_capping', $data)) { + $object->setOverrideFrequencyCapping($data['override_frequency_capping']); + unset($data['override_frequency_capping']); + } + if (\array_key_exists('recipient_subscription_state', $data)) { + $object->setRecipientSubscriptionState($data['recipient_subscription_state']); + unset($data['recipient_subscription_state']); + } + if (\array_key_exists('messages', $data)) { + $object->setMessages($this->denormalizer->denormalize($data['messages'], 'Braze\\Model\\MessagesSendPostBodyMessages', 'json', $context)); + unset($data['messages']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('broadcast') && null !== $object->getBroadcast()) { + $data['broadcast'] = $object->getBroadcast(); + } + if ($object->isInitialized('externalUserIds') && null !== $object->getExternalUserIds()) { + $data['external_user_ids'] = $object->getExternalUserIds(); + } + if ($object->isInitialized('userAliases') && null !== $object->getUserAliases()) { + $data['user_aliases'] = $this->normalizer->normalize($object->getUserAliases(), 'json', $context); + } + if ($object->isInitialized('segmentId') && null !== $object->getSegmentId()) { + $data['segment_id'] = $object->getSegmentId(); + } + if ($object->isInitialized('audience') && null !== $object->getAudience()) { + $data['audience'] = $this->normalizer->normalize($object->getAudience(), 'json', $context); + } + if ($object->isInitialized('campaignId') && null !== $object->getCampaignId()) { + $data['campaign_id'] = $object->getCampaignId(); + } + if ($object->isInitialized('sendId') && null !== $object->getSendId()) { + $data['send_id'] = $object->getSendId(); + } + if ($object->isInitialized('overrideFrequencyCapping') && null !== $object->getOverrideFrequencyCapping()) { + $data['override_frequency_capping'] = $object->getOverrideFrequencyCapping(); + } + if ($object->isInitialized('recipientSubscriptionState') && null !== $object->getRecipientSubscriptionState()) { + $data['recipient_subscription_state'] = $object->getRecipientSubscriptionState(); + } + if ($object->isInitialized('messages') && null !== $object->getMessages()) { + $data['messages'] = $this->normalizer->normalize($object->getMessages(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesSendPostBody' => false]; + } +} diff --git a/lib/Normalizer/MessagesSendPostBodyUserAliasesNormalizer.php b/lib/Normalizer/MessagesSendPostBodyUserAliasesNormalizer.php new file mode 100644 index 0000000..cb3a1f4 --- /dev/null +++ b/lib/Normalizer/MessagesSendPostBodyUserAliasesNormalizer.php @@ -0,0 +1,97 @@ +setAliasName($data['alias_name']); + unset($data['alias_name']); + } + if (\array_key_exists('alias_label', $data)) { + $object->setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasName') && null !== $object->getAliasName()) { + $data['alias_name'] = $object->getAliasName(); + } + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\MessagesSendPostBodyUserAliases' => false]; + } +} diff --git a/lib/Normalizer/PreferenceCenterV1PostBodyNormalizer.php b/lib/Normalizer/PreferenceCenterV1PostBodyNormalizer.php new file mode 100644 index 0000000..53853dd --- /dev/null +++ b/lib/Normalizer/PreferenceCenterV1PostBodyNormalizer.php @@ -0,0 +1,125 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('preference_center_title', $data)) { + $object->setPreferenceCenterTitle($data['preference_center_title']); + unset($data['preference_center_title']); + } + if (\array_key_exists('preference_center_page_html', $data)) { + $object->setPreferenceCenterPageHtml($data['preference_center_page_html']); + unset($data['preference_center_page_html']); + } + if (\array_key_exists('confirmation_page_html', $data)) { + $object->setConfirmationPageHtml($data['confirmation_page_html']); + unset($data['confirmation_page_html']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('options', $data)) { + $object->setOptions($this->denormalizer->denormalize($data['options'], 'Braze\\Model\\PreferenceCenterV1PostBodyOptions', 'json', $context)); + unset($data['options']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('preferenceCenterTitle') && null !== $object->getPreferenceCenterTitle()) { + $data['preference_center_title'] = $object->getPreferenceCenterTitle(); + } + if ($object->isInitialized('preferenceCenterPageHtml') && null !== $object->getPreferenceCenterPageHtml()) { + $data['preference_center_page_html'] = $object->getPreferenceCenterPageHtml(); + } + if ($object->isInitialized('confirmationPageHtml') && null !== $object->getConfirmationPageHtml()) { + $data['confirmation_page_html'] = $object->getConfirmationPageHtml(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('options') && null !== $object->getOptions()) { + $data['options'] = $this->normalizer->normalize($object->getOptions(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\PreferenceCenterV1PostBody' => false]; + } +} diff --git a/lib/Normalizer/PreferenceCenterV1PostBodyOptionsNormalizer.php b/lib/Normalizer/PreferenceCenterV1PostBodyOptionsNormalizer.php new file mode 100644 index 0000000..20fe4f3 --- /dev/null +++ b/lib/Normalizer/PreferenceCenterV1PostBodyOptionsNormalizer.php @@ -0,0 +1,90 @@ +setMetaViewportContent($data['meta-viewport-content']); + unset($data['meta-viewport-content']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('metaViewportContent') && null !== $object->getMetaViewportContent()) { + $data['meta-viewport-content'] = $object->getMetaViewportContent(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\PreferenceCenterV1PostBodyOptions' => false]; + } +} diff --git a/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyNormalizer.php b/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyNormalizer.php new file mode 100644 index 0000000..9366bab --- /dev/null +++ b/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyNormalizer.php @@ -0,0 +1,112 @@ +setExternalSendId($data['external_send_id']); + unset($data['external_send_id']); + } + if (\array_key_exists('trigger_properties', $data)) { + $object->setTriggerProperties($this->denormalizer->denormalize($data['trigger_properties'], 'Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties', 'json', $context)); + unset($data['trigger_properties']); + } + if (\array_key_exists('recipient', $data)) { + $values = []; + foreach ($data['recipient'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem', 'json', $context); + } + $object->setRecipient($values); + unset($data['recipient']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalSendId') && null !== $object->getExternalSendId()) { + $data['external_send_id'] = $object->getExternalSendId(); + } + if ($object->isInitialized('triggerProperties') && null !== $object->getTriggerProperties()) { + $data['trigger_properties'] = $this->normalizer->normalize($object->getTriggerProperties(), 'json', $context); + } + if ($object->isInitialized('recipient') && null !== $object->getRecipient()) { + $values = []; + foreach ($object->getRecipient() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['recipient'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBody' => false]; + } +} diff --git a/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItemNormalizer.php b/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItemNormalizer.php new file mode 100644 index 0000000..8457270 --- /dev/null +++ b/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItemNormalizer.php @@ -0,0 +1,90 @@ +setExternalUserId($data['external_user_id']); + unset($data['external_user_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalUserId') && null !== $object->getExternalUserId()) { + $data['external_user_id'] = $object->getExternalUserId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyRecipientItem' => false]; + } +} diff --git a/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerPropertiesNormalizer.php b/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerPropertiesNormalizer.php new file mode 100644 index 0000000..143f275 --- /dev/null +++ b/lib/Normalizer/PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerPropertiesNormalizer.php @@ -0,0 +1,97 @@ +setExampleStringProperty($data['example_string_property']); + unset($data['example_string_property']); + } + if (\array_key_exists('example_integer_property', $data)) { + $object->setExampleIntegerProperty($data['example_integer_property']); + unset($data['example_integer_property']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('exampleStringProperty') && null !== $object->getExampleStringProperty()) { + $data['example_string_property'] = $object->getExampleStringProperty(); + } + if ($object->isInitialized('exampleIntegerProperty') && null !== $object->getExampleIntegerProperty()) { + $data['example_integer_property'] = $object->getExampleIntegerProperty(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\PreferenceCenterV1PreferenceCenterExternalIDPutBodyTriggerProperties' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersIdPutBodyNameNormalizer.php b/lib/Normalizer/ScimV2UsersIdPutBodyNameNormalizer.php new file mode 100644 index 0000000..20910f6 --- /dev/null +++ b/lib/Normalizer/ScimV2UsersIdPutBodyNameNormalizer.php @@ -0,0 +1,97 @@ +setGivenName($data['givenName']); + unset($data['givenName']); + } + if (\array_key_exists('familyName', $data)) { + $object->setFamilyName($data['familyName']); + unset($data['familyName']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('givenName') && null !== $object->getGivenName()) { + $data['givenName'] = $object->getGivenName(); + } + if ($object->isInitialized('familyName') && null !== $object->getFamilyName()) { + $data['familyName'] = $object->getFamilyName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersIdPutBodyName' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersIdPutBodyNormalizer.php b/lib/Normalizer/ScimV2UsersIdPutBodyNormalizer.php new file mode 100644 index 0000000..0650201 --- /dev/null +++ b/lib/Normalizer/ScimV2UsersIdPutBodyNormalizer.php @@ -0,0 +1,119 @@ +setSchemas($values); + unset($data['schemas']); + } + if (\array_key_exists('name', $data)) { + $object->setName($this->denormalizer->denormalize($data['name'], 'Braze\\Model\\ScimV2UsersIdPutBodyName', 'json', $context)); + unset($data['name']); + } + if (\array_key_exists('department', $data)) { + $object->setDepartment($data['department']); + unset($data['department']); + } + if (\array_key_exists('permissions', $data)) { + $object->setPermissions($this->denormalizer->denormalize($data['permissions'], 'Braze\\Model\\ScimV2UsersIdPutBodyPermissions', 'json', $context)); + unset($data['permissions']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('schemas') && null !== $object->getSchemas()) { + $values = []; + foreach ($object->getSchemas() as $value) { + $values[] = $value; + } + $data['schemas'] = $values; + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $this->normalizer->normalize($object->getName(), 'json', $context); + } + if ($object->isInitialized('department') && null !== $object->getDepartment()) { + $data['department'] = $object->getDepartment(); + } + if ($object->isInitialized('permissions') && null !== $object->getPermissions()) { + $data['permissions'] = $this->normalizer->normalize($object->getPermissions(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersIdPutBody' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsAppGroupItemNormalizer.php b/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsAppGroupItemNormalizer.php new file mode 100644 index 0000000..772a117 --- /dev/null +++ b/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsAppGroupItemNormalizer.php @@ -0,0 +1,120 @@ +setAppGroupName($data['appGroupName']); + unset($data['appGroupName']); + } + if (\array_key_exists('appGroupPermissions', $data)) { + $values = []; + foreach ($data['appGroupPermissions'] as $value) { + $values[] = $value; + } + $object->setAppGroupPermissions($values); + unset($data['appGroupPermissions']); + } + if (\array_key_exists('team', $data)) { + $values_1 = []; + foreach ($data['team'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Braze\\Model\\ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem', 'json', $context); + } + $object->setTeam($values_1); + unset($data['team']); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('appGroupName') && null !== $object->getAppGroupName()) { + $data['appGroupName'] = $object->getAppGroupName(); + } + if ($object->isInitialized('appGroupPermissions') && null !== $object->getAppGroupPermissions()) { + $values = []; + foreach ($object->getAppGroupPermissions() as $value) { + $values[] = $value; + } + $data['appGroupPermissions'] = $values; + } + if ($object->isInitialized('team') && null !== $object->getTeam()) { + $values_1 = []; + foreach ($object->getTeam() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['team'] = $values_1; + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersIdPutBodyPermissionsAppGroupItem' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItemNormalizer.php b/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItemNormalizer.php new file mode 100644 index 0000000..495aedf --- /dev/null +++ b/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItemNormalizer.php @@ -0,0 +1,105 @@ +setTeamName($data['teamName']); + unset($data['teamName']); + } + if (\array_key_exists('teamPermissions', $data)) { + $values = []; + foreach ($data['teamPermissions'] as $value) { + $values[] = $value; + } + $object->setTeamPermissions($values); + unset($data['teamPermissions']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('teamName') && null !== $object->getTeamName()) { + $data['teamName'] = $object->getTeamName(); + } + if ($object->isInitialized('teamPermissions') && null !== $object->getTeamPermissions()) { + $values = []; + foreach ($object->getTeamPermissions() as $value) { + $values[] = $value; + } + $data['teamPermissions'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersIdPutBodyPermissionsAppGroupItemTeamItem' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsNormalizer.php b/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsNormalizer.php new file mode 100644 index 0000000..4936b01 --- /dev/null +++ b/lib/Normalizer/ScimV2UsersIdPutBodyPermissionsNormalizer.php @@ -0,0 +1,113 @@ +setCompanyPermissions($values); + unset($data['companyPermissions']); + } + if (\array_key_exists('appGroup', $data)) { + $values_1 = []; + foreach ($data['appGroup'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Braze\\Model\\ScimV2UsersIdPutBodyPermissionsAppGroupItem', 'json', $context); + } + $object->setAppGroup($values_1); + unset($data['appGroup']); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('companyPermissions') && null !== $object->getCompanyPermissions()) { + $values = []; + foreach ($object->getCompanyPermissions() as $value) { + $values[] = $value; + } + $data['companyPermissions'] = $values; + } + if ($object->isInitialized('appGroup') && null !== $object->getAppGroup()) { + $values_1 = []; + foreach ($object->getAppGroup() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['appGroup'] = $values_1; + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersIdPutBodyPermissions' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersPostBodyNameNormalizer.php b/lib/Normalizer/ScimV2UsersPostBodyNameNormalizer.php new file mode 100644 index 0000000..125abe6 --- /dev/null +++ b/lib/Normalizer/ScimV2UsersPostBodyNameNormalizer.php @@ -0,0 +1,97 @@ +setGivenName($data['givenName']); + unset($data['givenName']); + } + if (\array_key_exists('familyName', $data)) { + $object->setFamilyName($data['familyName']); + unset($data['familyName']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('givenName') && null !== $object->getGivenName()) { + $data['givenName'] = $object->getGivenName(); + } + if ($object->isInitialized('familyName') && null !== $object->getFamilyName()) { + $data['familyName'] = $object->getFamilyName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersPostBodyName' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersPostBodyNormalizer.php b/lib/Normalizer/ScimV2UsersPostBodyNormalizer.php new file mode 100644 index 0000000..c309821 --- /dev/null +++ b/lib/Normalizer/ScimV2UsersPostBodyNormalizer.php @@ -0,0 +1,126 @@ +setSchemas($values); + unset($data['schemas']); + } + if (\array_key_exists('userName', $data)) { + $object->setUserName($data['userName']); + unset($data['userName']); + } + if (\array_key_exists('name', $data)) { + $object->setName($this->denormalizer->denormalize($data['name'], 'Braze\\Model\\ScimV2UsersPostBodyName', 'json', $context)); + unset($data['name']); + } + if (\array_key_exists('department', $data)) { + $object->setDepartment($data['department']); + unset($data['department']); + } + if (\array_key_exists('permissions', $data)) { + $object->setPermissions($this->denormalizer->denormalize($data['permissions'], 'Braze\\Model\\ScimV2UsersPostBodyPermissions', 'json', $context)); + unset($data['permissions']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('schemas') && null !== $object->getSchemas()) { + $values = []; + foreach ($object->getSchemas() as $value) { + $values[] = $value; + } + $data['schemas'] = $values; + } + if ($object->isInitialized('userName') && null !== $object->getUserName()) { + $data['userName'] = $object->getUserName(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $this->normalizer->normalize($object->getName(), 'json', $context); + } + if ($object->isInitialized('department') && null !== $object->getDepartment()) { + $data['department'] = $object->getDepartment(); + } + if ($object->isInitialized('permissions') && null !== $object->getPermissions()) { + $data['permissions'] = $this->normalizer->normalize($object->getPermissions(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersPostBody' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersPostBodyPermissionsAppGroupItemNormalizer.php b/lib/Normalizer/ScimV2UsersPostBodyPermissionsAppGroupItemNormalizer.php new file mode 100644 index 0000000..cbb633e --- /dev/null +++ b/lib/Normalizer/ScimV2UsersPostBodyPermissionsAppGroupItemNormalizer.php @@ -0,0 +1,120 @@ +setAppGroupName($data['appGroupName']); + unset($data['appGroupName']); + } + if (\array_key_exists('appGroupPermissions', $data)) { + $values = []; + foreach ($data['appGroupPermissions'] as $value) { + $values[] = $value; + } + $object->setAppGroupPermissions($values); + unset($data['appGroupPermissions']); + } + if (\array_key_exists('team', $data)) { + $values_1 = []; + foreach ($data['team'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Braze\\Model\\ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem', 'json', $context); + } + $object->setTeam($values_1); + unset($data['team']); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('appGroupName') && null !== $object->getAppGroupName()) { + $data['appGroupName'] = $object->getAppGroupName(); + } + if ($object->isInitialized('appGroupPermissions') && null !== $object->getAppGroupPermissions()) { + $values = []; + foreach ($object->getAppGroupPermissions() as $value) { + $values[] = $value; + } + $data['appGroupPermissions'] = $values; + } + if ($object->isInitialized('team') && null !== $object->getTeam()) { + $values_1 = []; + foreach ($object->getTeam() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['team'] = $values_1; + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersPostBodyPermissionsAppGroupItem' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersPostBodyPermissionsAppGroupItemTeamItemNormalizer.php b/lib/Normalizer/ScimV2UsersPostBodyPermissionsAppGroupItemTeamItemNormalizer.php new file mode 100644 index 0000000..5daa11e --- /dev/null +++ b/lib/Normalizer/ScimV2UsersPostBodyPermissionsAppGroupItemTeamItemNormalizer.php @@ -0,0 +1,105 @@ +setTeamName($data['teamName']); + unset($data['teamName']); + } + if (\array_key_exists('teamPermissions', $data)) { + $values = []; + foreach ($data['teamPermissions'] as $value) { + $values[] = $value; + } + $object->setTeamPermissions($values); + unset($data['teamPermissions']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('teamName') && null !== $object->getTeamName()) { + $data['teamName'] = $object->getTeamName(); + } + if ($object->isInitialized('teamPermissions') && null !== $object->getTeamPermissions()) { + $values = []; + foreach ($object->getTeamPermissions() as $value) { + $values[] = $value; + } + $data['teamPermissions'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersPostBodyPermissionsAppGroupItemTeamItem' => false]; + } +} diff --git a/lib/Normalizer/ScimV2UsersPostBodyPermissionsNormalizer.php b/lib/Normalizer/ScimV2UsersPostBodyPermissionsNormalizer.php new file mode 100644 index 0000000..65af1e4 --- /dev/null +++ b/lib/Normalizer/ScimV2UsersPostBodyPermissionsNormalizer.php @@ -0,0 +1,113 @@ +setCompanyPermissions($values); + unset($data['companyPermissions']); + } + if (\array_key_exists('appGroup', $data)) { + $values_1 = []; + foreach ($data['appGroup'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Braze\\Model\\ScimV2UsersPostBodyPermissionsAppGroupItem', 'json', $context); + } + $object->setAppGroup($values_1); + unset($data['appGroup']); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('companyPermissions') && null !== $object->getCompanyPermissions()) { + $values = []; + foreach ($object->getCompanyPermissions() as $value) { + $values[] = $value; + } + $data['companyPermissions'] = $values; + } + if ($object->isInitialized('appGroup') && null !== $object->getAppGroup()) { + $values_1 = []; + foreach ($object->getAppGroup() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['appGroup'] = $values_1; + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\ScimV2UsersPostBodyPermissions' => false]; + } +} diff --git a/lib/Normalizer/SendsIdCreatePostBodyNormalizer.php b/lib/Normalizer/SendsIdCreatePostBodyNormalizer.php new file mode 100644 index 0000000..4c5178e --- /dev/null +++ b/lib/Normalizer/SendsIdCreatePostBodyNormalizer.php @@ -0,0 +1,97 @@ +setCampaignId($data['campaign_id']); + unset($data['campaign_id']); + } + if (\array_key_exists('send_id', $data)) { + $object->setSendId($data['send_id']); + unset($data['send_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('campaignId') && null !== $object->getCampaignId()) { + $data['campaign_id'] = $object->getCampaignId(); + } + if ($object->isInitialized('sendId') && null !== $object->getSendId()) { + $data['send_id'] = $object->getSendId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\SendsIdCreatePostBody' => false]; + } +} diff --git a/lib/Normalizer/SmsInvalidPhoneNumbersRemovePostBodyNormalizer.php b/lib/Normalizer/SmsInvalidPhoneNumbersRemovePostBodyNormalizer.php new file mode 100644 index 0000000..9e345c7 --- /dev/null +++ b/lib/Normalizer/SmsInvalidPhoneNumbersRemovePostBodyNormalizer.php @@ -0,0 +1,98 @@ +setPhoneNumbers($values); + unset($data['phone_numbers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('phoneNumbers') && null !== $object->getPhoneNumbers()) { + $values = []; + foreach ($object->getPhoneNumbers() as $value) { + $values[] = $value; + } + $data['phone_numbers'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\SmsInvalidPhoneNumbersRemovePostBody' => false]; + } +} diff --git a/lib/Normalizer/SubscriptionStatusSetPostBodyNormalizer.php b/lib/Normalizer/SubscriptionStatusSetPostBodyNormalizer.php new file mode 100644 index 0000000..bbe8b38 --- /dev/null +++ b/lib/Normalizer/SubscriptionStatusSetPostBodyNormalizer.php @@ -0,0 +1,119 @@ +setSubscriptionGroupId($data['subscription_group_id']); + unset($data['subscription_group_id']); + } + if (\array_key_exists('subscription_state', $data)) { + $object->setSubscriptionState($data['subscription_state']); + unset($data['subscription_state']); + } + if (\array_key_exists('external_id', $data)) { + $object->setExternalId($data['external_id']); + unset($data['external_id']); + } + if (\array_key_exists('phone', $data)) { + $values = []; + foreach ($data['phone'] as $value) { + $values[] = $value; + } + $object->setPhone($values); + unset($data['phone']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('subscriptionGroupId') && null !== $object->getSubscriptionGroupId()) { + $data['subscription_group_id'] = $object->getSubscriptionGroupId(); + } + if ($object->isInitialized('subscriptionState') && null !== $object->getSubscriptionState()) { + $data['subscription_state'] = $object->getSubscriptionState(); + } + if ($object->isInitialized('externalId') && null !== $object->getExternalId()) { + $data['external_id'] = $object->getExternalId(); + } + if ($object->isInitialized('phone') && null !== $object->getPhone()) { + $values = []; + foreach ($object->getPhone() as $value) { + $values[] = $value; + } + $data['phone'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\SubscriptionStatusSetPostBody' => false]; + } +} diff --git a/lib/Normalizer/TemplatesEmailCreatePostBodyNormalizer.php b/lib/Normalizer/TemplatesEmailCreatePostBodyNormalizer.php new file mode 100644 index 0000000..64f159a --- /dev/null +++ b/lib/Normalizer/TemplatesEmailCreatePostBodyNormalizer.php @@ -0,0 +1,133 @@ +setTemplateName($data['template_name']); + unset($data['template_name']); + } + if (\array_key_exists('subject', $data)) { + $object->setSubject($data['subject']); + unset($data['subject']); + } + if (\array_key_exists('body', $data)) { + $object->setBody($data['body']); + unset($data['body']); + } + if (\array_key_exists('plaintext_body', $data)) { + $object->setPlaintextBody($data['plaintext_body']); + unset($data['plaintext_body']); + } + if (\array_key_exists('preheader', $data)) { + $object->setPreheader($data['preheader']); + unset($data['preheader']); + } + if (\array_key_exists('tags', $data)) { + $values = []; + foreach ($data['tags'] as $value) { + $values[] = $value; + } + $object->setTags($values); + unset($data['tags']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('templateName') && null !== $object->getTemplateName()) { + $data['template_name'] = $object->getTemplateName(); + } + if ($object->isInitialized('subject') && null !== $object->getSubject()) { + $data['subject'] = $object->getSubject(); + } + if ($object->isInitialized('body') && null !== $object->getBody()) { + $data['body'] = $object->getBody(); + } + if ($object->isInitialized('plaintextBody') && null !== $object->getPlaintextBody()) { + $data['plaintext_body'] = $object->getPlaintextBody(); + } + if ($object->isInitialized('preheader') && null !== $object->getPreheader()) { + $data['preheader'] = $object->getPreheader(); + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values = []; + foreach ($object->getTags() as $value) { + $values[] = $value; + } + $data['tags'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\TemplatesEmailCreatePostBody' => false]; + } +} diff --git a/lib/Normalizer/TemplatesEmailUpdatePostBodyNormalizer.php b/lib/Normalizer/TemplatesEmailUpdatePostBodyNormalizer.php new file mode 100644 index 0000000..ba6cb3d --- /dev/null +++ b/lib/Normalizer/TemplatesEmailUpdatePostBodyNormalizer.php @@ -0,0 +1,140 @@ +setEmailTemplateId($data['email_template_id']); + unset($data['email_template_id']); + } + if (\array_key_exists('template_name', $data)) { + $object->setTemplateName($data['template_name']); + unset($data['template_name']); + } + if (\array_key_exists('subject', $data)) { + $object->setSubject($data['subject']); + unset($data['subject']); + } + if (\array_key_exists('body', $data)) { + $object->setBody($data['body']); + unset($data['body']); + } + if (\array_key_exists('plaintext_body', $data)) { + $object->setPlaintextBody($data['plaintext_body']); + unset($data['plaintext_body']); + } + if (\array_key_exists('preheader', $data)) { + $object->setPreheader($data['preheader']); + unset($data['preheader']); + } + if (\array_key_exists('tags', $data)) { + $values = []; + foreach ($data['tags'] as $value) { + $values[] = $value; + } + $object->setTags($values); + unset($data['tags']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('emailTemplateId') && null !== $object->getEmailTemplateId()) { + $data['email_template_id'] = $object->getEmailTemplateId(); + } + if ($object->isInitialized('templateName') && null !== $object->getTemplateName()) { + $data['template_name'] = $object->getTemplateName(); + } + if ($object->isInitialized('subject') && null !== $object->getSubject()) { + $data['subject'] = $object->getSubject(); + } + if ($object->isInitialized('body') && null !== $object->getBody()) { + $data['body'] = $object->getBody(); + } + if ($object->isInitialized('plaintextBody') && null !== $object->getPlaintextBody()) { + $data['plaintext_body'] = $object->getPlaintextBody(); + } + if ($object->isInitialized('preheader') && null !== $object->getPreheader()) { + $data['preheader'] = $object->getPreheader(); + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values = []; + foreach ($object->getTags() as $value) { + $values[] = $value; + } + $data['tags'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\TemplatesEmailUpdatePostBody' => false]; + } +} diff --git a/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyNormalizer.php b/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyNormalizer.php new file mode 100644 index 0000000..161a5d1 --- /dev/null +++ b/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyNormalizer.php @@ -0,0 +1,112 @@ +setExternalSendId($data['external_send_id']); + unset($data['external_send_id']); + } + if (\array_key_exists('trigger_properties', $data)) { + $object->setTriggerProperties($this->denormalizer->denormalize($data['trigger_properties'], 'Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties', 'json', $context)); + unset($data['trigger_properties']); + } + if (\array_key_exists('recipient', $data)) { + $values = []; + foreach ($data['recipient'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem', 'json', $context); + } + $object->setRecipient($values); + unset($data['recipient']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalSendId') && null !== $object->getExternalSendId()) { + $data['external_send_id'] = $object->getExternalSendId(); + } + if ($object->isInitialized('triggerProperties') && null !== $object->getTriggerProperties()) { + $data['trigger_properties'] = $this->normalizer->normalize($object->getTriggerProperties(), 'json', $context); + } + if ($object->isInitialized('recipient') && null !== $object->getRecipient()) { + $values = []; + foreach ($object->getRecipient() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['recipient'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBody' => false]; + } +} diff --git a/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItemNormalizer.php b/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItemNormalizer.php new file mode 100644 index 0000000..a052266 --- /dev/null +++ b/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItemNormalizer.php @@ -0,0 +1,90 @@ +setExternalUserId($data['external_user_id']); + unset($data['external_user_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalUserId') && null !== $object->getExternalUserId()) { + $data['external_user_id'] = $object->getExternalUserId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBodyRecipientItem' => false]; + } +} diff --git a/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyTriggerPropertiesNormalizer.php b/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyTriggerPropertiesNormalizer.php new file mode 100644 index 0000000..e8b3119 --- /dev/null +++ b/lib/Normalizer/TransactionalV1CampaignsCampaignIdSendPostBodyTriggerPropertiesNormalizer.php @@ -0,0 +1,97 @@ +setExampleStringProperty($data['example_string_property']); + unset($data['example_string_property']); + } + if (\array_key_exists('example_integer_property', $data)) { + $object->setExampleIntegerProperty($data['example_integer_property']); + unset($data['example_integer_property']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('exampleStringProperty') && null !== $object->getExampleStringProperty()) { + $data['example_string_property'] = $object->getExampleStringProperty(); + } + if ($object->isInitialized('exampleIntegerProperty') && null !== $object->getExampleIntegerProperty()) { + $data['example_integer_property'] = $object->getExampleIntegerProperty(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\TransactionalV1CampaignsCampaignIdSendPostBodyTriggerProperties' => false]; + } +} diff --git a/lib/Normalizer/UsersAliasNewPostBodyNormalizer.php b/lib/Normalizer/UsersAliasNewPostBodyNormalizer.php new file mode 100644 index 0000000..3352bb0 --- /dev/null +++ b/lib/Normalizer/UsersAliasNewPostBodyNormalizer.php @@ -0,0 +1,98 @@ +denormalizer->denormalize($value, 'Braze\\Model\\UsersAliasNewPostBodyUserAliasesItem', 'json', $context); + } + $object->setUserAliases($values); + unset($data['user_aliases']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('userAliases') && null !== $object->getUserAliases()) { + $values = []; + foreach ($object->getUserAliases() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['user_aliases'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersAliasNewPostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersAliasNewPostBodyUserAliasesItemNormalizer.php b/lib/Normalizer/UsersAliasNewPostBodyUserAliasesItemNormalizer.php new file mode 100644 index 0000000..8274a69 --- /dev/null +++ b/lib/Normalizer/UsersAliasNewPostBodyUserAliasesItemNormalizer.php @@ -0,0 +1,104 @@ +setExternalId($data['external_id']); + unset($data['external_id']); + } + if (\array_key_exists('alias_name', $data)) { + $object->setAliasName($data['alias_name']); + unset($data['alias_name']); + } + if (\array_key_exists('alias_label', $data)) { + $object->setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalId') && null !== $object->getExternalId()) { + $data['external_id'] = $object->getExternalId(); + } + if ($object->isInitialized('aliasName') && null !== $object->getAliasName()) { + $data['alias_name'] = $object->getAliasName(); + } + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersAliasNewPostBodyUserAliasesItem' => false]; + } +} diff --git a/lib/Normalizer/UsersAliasUpdatePostBodyAliasUpdatesItemNormalizer.php b/lib/Normalizer/UsersAliasUpdatePostBodyAliasUpdatesItemNormalizer.php new file mode 100644 index 0000000..3f1815f --- /dev/null +++ b/lib/Normalizer/UsersAliasUpdatePostBodyAliasUpdatesItemNormalizer.php @@ -0,0 +1,104 @@ +setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + if (\array_key_exists('old_alias_name', $data)) { + $object->setOldAliasName($data['old_alias_name']); + unset($data['old_alias_name']); + } + if (\array_key_exists('new_alias_name', $data)) { + $object->setNewAliasName($data['new_alias_name']); + unset($data['new_alias_name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + if ($object->isInitialized('oldAliasName') && null !== $object->getOldAliasName()) { + $data['old_alias_name'] = $object->getOldAliasName(); + } + if ($object->isInitialized('newAliasName') && null !== $object->getNewAliasName()) { + $data['new_alias_name'] = $object->getNewAliasName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersAliasUpdatePostBodyAliasUpdatesItem' => false]; + } +} diff --git a/lib/Normalizer/UsersAliasUpdatePostBodyNormalizer.php b/lib/Normalizer/UsersAliasUpdatePostBodyNormalizer.php new file mode 100644 index 0000000..dd715dc --- /dev/null +++ b/lib/Normalizer/UsersAliasUpdatePostBodyNormalizer.php @@ -0,0 +1,98 @@ +denormalizer->denormalize($value, 'Braze\\Model\\UsersAliasUpdatePostBodyAliasUpdatesItem', 'json', $context); + } + $object->setAliasUpdates($values); + unset($data['alias_updates']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasUpdates') && null !== $object->getAliasUpdates()) { + $values = []; + foreach ($object->getAliasUpdates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['alias_updates'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersAliasUpdatePostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersDeletePostBodyNormalizer.php b/lib/Normalizer/UsersDeletePostBodyNormalizer.php new file mode 100644 index 0000000..776aa5b --- /dev/null +++ b/lib/Normalizer/UsersDeletePostBodyNormalizer.php @@ -0,0 +1,128 @@ +setExternalIds($values); + unset($data['external_ids']); + } + if (\array_key_exists('braze_ids', $data)) { + $values_1 = []; + foreach ($data['braze_ids'] as $value_1) { + $values_1[] = $value_1; + } + $object->setBrazeIds($values_1); + unset($data['braze_ids']); + } + if (\array_key_exists('user_aliases', $data)) { + $values_2 = []; + foreach ($data['user_aliases'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Braze\\Model\\UsersDeletePostBodyUserAliasesItem', 'json', $context); + } + $object->setUserAliases($values_2); + unset($data['user_aliases']); + } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalIds') && null !== $object->getExternalIds()) { + $values = []; + foreach ($object->getExternalIds() as $value) { + $values[] = $value; + } + $data['external_ids'] = $values; + } + if ($object->isInitialized('brazeIds') && null !== $object->getBrazeIds()) { + $values_1 = []; + foreach ($object->getBrazeIds() as $value_1) { + $values_1[] = $value_1; + } + $data['braze_ids'] = $values_1; + } + if ($object->isInitialized('userAliases') && null !== $object->getUserAliases()) { + $values_2 = []; + foreach ($object->getUserAliases() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['user_aliases'] = $values_2; + } + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersDeletePostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersDeletePostBodyUserAliasesItemNormalizer.php b/lib/Normalizer/UsersDeletePostBodyUserAliasesItemNormalizer.php new file mode 100644 index 0000000..e068913 --- /dev/null +++ b/lib/Normalizer/UsersDeletePostBodyUserAliasesItemNormalizer.php @@ -0,0 +1,97 @@ +setAliasName($data['alias_name']); + unset($data['alias_name']); + } + if (\array_key_exists('alias_label', $data)) { + $object->setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasName') && null !== $object->getAliasName()) { + $data['alias_name'] = $object->getAliasName(); + } + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersDeletePostBodyUserAliasesItem' => false]; + } +} diff --git a/lib/Normalizer/UsersExportGlobalControlGroupPostBodyNormalizer.php b/lib/Normalizer/UsersExportGlobalControlGroupPostBodyNormalizer.php new file mode 100644 index 0000000..86d333a --- /dev/null +++ b/lib/Normalizer/UsersExportGlobalControlGroupPostBodyNormalizer.php @@ -0,0 +1,112 @@ +setCallbackEndpoint($data['callback_endpoint']); + unset($data['callback_endpoint']); + } + if (\array_key_exists('fields_to_export', $data)) { + $values = []; + foreach ($data['fields_to_export'] as $value) { + $values[] = $value; + } + $object->setFieldsToExport($values); + unset($data['fields_to_export']); + } + if (\array_key_exists('output_format', $data)) { + $object->setOutputFormat($data['output_format']); + unset($data['output_format']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('callbackEndpoint') && null !== $object->getCallbackEndpoint()) { + $data['callback_endpoint'] = $object->getCallbackEndpoint(); + } + if ($object->isInitialized('fieldsToExport') && null !== $object->getFieldsToExport()) { + $values = []; + foreach ($object->getFieldsToExport() as $value) { + $values[] = $value; + } + $data['fields_to_export'] = $values; + } + if ($object->isInitialized('outputFormat') && null !== $object->getOutputFormat()) { + $data['output_format'] = $object->getOutputFormat(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersExportGlobalControlGroupPostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersExportIdsPostBodyNormalizer.php b/lib/Normalizer/UsersExportIdsPostBodyNormalizer.php new file mode 100644 index 0000000..9c09bce --- /dev/null +++ b/lib/Normalizer/UsersExportIdsPostBodyNormalizer.php @@ -0,0 +1,156 @@ +setExternalIds($values); + unset($data['external_ids']); + } + if (\array_key_exists('user_aliases', $data)) { + $values_1 = []; + foreach ($data['user_aliases'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Braze\\Model\\UsersExportIdsPostBodyUserAliasesItem', 'json', $context); + } + $object->setUserAliases($values_1); + unset($data['user_aliases']); + } + if (\array_key_exists('device_id', $data)) { + $object->setDeviceId($data['device_id']); + unset($data['device_id']); + } + if (\array_key_exists('braze_id', $data)) { + $object->setBrazeId($data['braze_id']); + unset($data['braze_id']); + } + if (\array_key_exists('email_address', $data)) { + $object->setEmailAddress($data['email_address']); + unset($data['email_address']); + } + if (\array_key_exists('phone', $data)) { + $object->setPhone($data['phone']); + unset($data['phone']); + } + if (\array_key_exists('fields_to_export', $data)) { + $values_2 = []; + foreach ($data['fields_to_export'] as $value_2) { + $values_2[] = $value_2; + } + $object->setFieldsToExport($values_2); + unset($data['fields_to_export']); + } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalIds') && null !== $object->getExternalIds()) { + $values = []; + foreach ($object->getExternalIds() as $value) { + $values[] = $value; + } + $data['external_ids'] = $values; + } + if ($object->isInitialized('userAliases') && null !== $object->getUserAliases()) { + $values_1 = []; + foreach ($object->getUserAliases() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['user_aliases'] = $values_1; + } + if ($object->isInitialized('deviceId') && null !== $object->getDeviceId()) { + $data['device_id'] = $object->getDeviceId(); + } + if ($object->isInitialized('brazeId') && null !== $object->getBrazeId()) { + $data['braze_id'] = $object->getBrazeId(); + } + if ($object->isInitialized('emailAddress') && null !== $object->getEmailAddress()) { + $data['email_address'] = $object->getEmailAddress(); + } + if ($object->isInitialized('phone') && null !== $object->getPhone()) { + $data['phone'] = $object->getPhone(); + } + if ($object->isInitialized('fieldsToExport') && null !== $object->getFieldsToExport()) { + $values_2 = []; + foreach ($object->getFieldsToExport() as $value_2) { + $values_2[] = $value_2; + } + $data['fields_to_export'] = $values_2; + } + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersExportIdsPostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersExportIdsPostBodyUserAliasesItemNormalizer.php b/lib/Normalizer/UsersExportIdsPostBodyUserAliasesItemNormalizer.php new file mode 100644 index 0000000..48066c2 --- /dev/null +++ b/lib/Normalizer/UsersExportIdsPostBodyUserAliasesItemNormalizer.php @@ -0,0 +1,97 @@ +setAliasName($data['alias_name']); + unset($data['alias_name']); + } + if (\array_key_exists('alias_label', $data)) { + $object->setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasName') && null !== $object->getAliasName()) { + $data['alias_name'] = $object->getAliasName(); + } + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersExportIdsPostBodyUserAliasesItem' => false]; + } +} diff --git a/lib/Normalizer/UsersExportSegmentPostBodyNormalizer.php b/lib/Normalizer/UsersExportSegmentPostBodyNormalizer.php new file mode 100644 index 0000000..338aebf --- /dev/null +++ b/lib/Normalizer/UsersExportSegmentPostBodyNormalizer.php @@ -0,0 +1,119 @@ +setSegmentId($data['segment_id']); + unset($data['segment_id']); + } + if (\array_key_exists('callback_endpoint', $data)) { + $object->setCallbackEndpoint($data['callback_endpoint']); + unset($data['callback_endpoint']); + } + if (\array_key_exists('fields_to_export', $data)) { + $values = []; + foreach ($data['fields_to_export'] as $value) { + $values[] = $value; + } + $object->setFieldsToExport($values); + unset($data['fields_to_export']); + } + if (\array_key_exists('output_format', $data)) { + $object->setOutputFormat($data['output_format']); + unset($data['output_format']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('segmentId') && null !== $object->getSegmentId()) { + $data['segment_id'] = $object->getSegmentId(); + } + if ($object->isInitialized('callbackEndpoint') && null !== $object->getCallbackEndpoint()) { + $data['callback_endpoint'] = $object->getCallbackEndpoint(); + } + if ($object->isInitialized('fieldsToExport') && null !== $object->getFieldsToExport()) { + $values = []; + foreach ($object->getFieldsToExport() as $value) { + $values[] = $value; + } + $data['fields_to_export'] = $values; + } + if ($object->isInitialized('outputFormat') && null !== $object->getOutputFormat()) { + $data['output_format'] = $object->getOutputFormat(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersExportSegmentPostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersExternalIdsRemovePostBodyNormalizer.php b/lib/Normalizer/UsersExternalIdsRemovePostBodyNormalizer.php new file mode 100644 index 0000000..5449b68 --- /dev/null +++ b/lib/Normalizer/UsersExternalIdsRemovePostBodyNormalizer.php @@ -0,0 +1,98 @@ +setExternalIds($values); + unset($data['external_ids']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalIds') && null !== $object->getExternalIds()) { + $values = []; + foreach ($object->getExternalIds() as $value) { + $values[] = $value; + } + $data['external_ids'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersExternalIdsRemovePostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersExternalIdsRenamePostBodyExternalIdRenamesItemNormalizer.php b/lib/Normalizer/UsersExternalIdsRenamePostBodyExternalIdRenamesItemNormalizer.php new file mode 100644 index 0000000..c633da6 --- /dev/null +++ b/lib/Normalizer/UsersExternalIdsRenamePostBodyExternalIdRenamesItemNormalizer.php @@ -0,0 +1,97 @@ +setCurrentExternalId($data['current_external_id']); + unset($data['current_external_id']); + } + if (\array_key_exists('new_external_id', $data)) { + $object->setNewExternalId($data['new_external_id']); + unset($data['new_external_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentExternalId') && null !== $object->getCurrentExternalId()) { + $data['current_external_id'] = $object->getCurrentExternalId(); + } + if ($object->isInitialized('newExternalId') && null !== $object->getNewExternalId()) { + $data['new_external_id'] = $object->getNewExternalId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersExternalIdsRenamePostBodyExternalIdRenamesItem' => false]; + } +} diff --git a/lib/Normalizer/UsersExternalIdsRenamePostBodyNormalizer.php b/lib/Normalizer/UsersExternalIdsRenamePostBodyNormalizer.php new file mode 100644 index 0000000..ff35617 --- /dev/null +++ b/lib/Normalizer/UsersExternalIdsRenamePostBodyNormalizer.php @@ -0,0 +1,98 @@ +denormalizer->denormalize($value, 'Braze\\Model\\UsersExternalIdsRenamePostBodyExternalIdRenamesItem', 'json', $context); + } + $object->setExternalIdRenames($values); + unset($data['external_id_renames']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalIdRenames') && null !== $object->getExternalIdRenames()) { + $values = []; + foreach ($object->getExternalIdRenames() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['external_id_renames'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersExternalIdsRenamePostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersIdentifyPostBodyAliasesToIdentifyItemNormalizer.php b/lib/Normalizer/UsersIdentifyPostBodyAliasesToIdentifyItemNormalizer.php new file mode 100644 index 0000000..fdcbe42 --- /dev/null +++ b/lib/Normalizer/UsersIdentifyPostBodyAliasesToIdentifyItemNormalizer.php @@ -0,0 +1,97 @@ +setExternalId($data['external_id']); + unset($data['external_id']); + } + if (\array_key_exists('user_alias', $data)) { + $object->setUserAlias($this->denormalizer->denormalize($data['user_alias'], 'Braze\\Model\\UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias', 'json', $context)); + unset($data['user_alias']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalId') && null !== $object->getExternalId()) { + $data['external_id'] = $object->getExternalId(); + } + if ($object->isInitialized('userAlias') && null !== $object->getUserAlias()) { + $data['user_alias'] = $this->normalizer->normalize($object->getUserAlias(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersIdentifyPostBodyAliasesToIdentifyItem' => false]; + } +} diff --git a/lib/Normalizer/UsersIdentifyPostBodyAliasesToIdentifyItemUserAliasNormalizer.php b/lib/Normalizer/UsersIdentifyPostBodyAliasesToIdentifyItemUserAliasNormalizer.php new file mode 100644 index 0000000..8a561c6 --- /dev/null +++ b/lib/Normalizer/UsersIdentifyPostBodyAliasesToIdentifyItemUserAliasNormalizer.php @@ -0,0 +1,97 @@ +setAliasName($data['alias_name']); + unset($data['alias_name']); + } + if (\array_key_exists('alias_label', $data)) { + $object->setAliasLabel($data['alias_label']); + unset($data['alias_label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasName') && null !== $object->getAliasName()) { + $data['alias_name'] = $object->getAliasName(); + } + if ($object->isInitialized('aliasLabel') && null !== $object->getAliasLabel()) { + $data['alias_label'] = $object->getAliasLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersIdentifyPostBodyAliasesToIdentifyItemUserAlias' => false]; + } +} diff --git a/lib/Normalizer/UsersIdentifyPostBodyNormalizer.php b/lib/Normalizer/UsersIdentifyPostBodyNormalizer.php new file mode 100644 index 0000000..ac3d664 --- /dev/null +++ b/lib/Normalizer/UsersIdentifyPostBodyNormalizer.php @@ -0,0 +1,98 @@ +denormalizer->denormalize($value, 'Braze\\Model\\UsersIdentifyPostBodyAliasesToIdentifyItem', 'json', $context); + } + $object->setAliasesToIdentify($values); + unset($data['aliases_to_identify']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('aliasesToIdentify') && null !== $object->getAliasesToIdentify()) { + $values = []; + foreach ($object->getAliasesToIdentify() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['aliases_to_identify'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersIdentifyPostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersMergePostBodyNormalizer.php b/lib/Normalizer/UsersMergePostBodyNormalizer.php new file mode 100644 index 0000000..5044bd5 --- /dev/null +++ b/lib/Normalizer/UsersMergePostBodyNormalizer.php @@ -0,0 +1,98 @@ +setMergeUpdates($values); + unset($data['merge_updates']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('mergeUpdates') && null !== $object->getMergeUpdates()) { + $values = []; + foreach ($object->getMergeUpdates() as $value) { + $values[] = $value; + } + $data['merge_updates'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersMergePostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersTrackPostBodyAttributesItemNormalizer.php b/lib/Normalizer/UsersTrackPostBodyAttributesItemNormalizer.php new file mode 100644 index 0000000..c589aa0 --- /dev/null +++ b/lib/Normalizer/UsersTrackPostBodyAttributesItemNormalizer.php @@ -0,0 +1,126 @@ +setExternalId($data['external_id']); + unset($data['external_id']); + } + if (\array_key_exists('string_attribute', $data)) { + $object->setStringAttribute($data['string_attribute']); + unset($data['string_attribute']); + } + if (\array_key_exists('boolean_attribute_1', $data)) { + $object->setBooleanAttribute1($data['boolean_attribute_1']); + unset($data['boolean_attribute_1']); + } + if (\array_key_exists('integer_attribute', $data)) { + $object->setIntegerAttribute($data['integer_attribute']); + unset($data['integer_attribute']); + } + if (\array_key_exists('array_attribute', $data)) { + $values = []; + foreach ($data['array_attribute'] as $value) { + $values[] = $value; + } + $object->setArrayAttribute($values); + unset($data['array_attribute']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalId') && null !== $object->getExternalId()) { + $data['external_id'] = $object->getExternalId(); + } + if ($object->isInitialized('stringAttribute') && null !== $object->getStringAttribute()) { + $data['string_attribute'] = $object->getStringAttribute(); + } + if ($object->isInitialized('booleanAttribute1') && null !== $object->getBooleanAttribute1()) { + $data['boolean_attribute_1'] = $object->getBooleanAttribute1(); + } + if ($object->isInitialized('integerAttribute') && null !== $object->getIntegerAttribute()) { + $data['integer_attribute'] = $object->getIntegerAttribute(); + } + if ($object->isInitialized('arrayAttribute') && null !== $object->getArrayAttribute()) { + $values = []; + foreach ($object->getArrayAttribute() as $value) { + $values[] = $value; + } + $data['array_attribute'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersTrackPostBodyAttributesItem' => false]; + } +} diff --git a/lib/Normalizer/UsersTrackPostBodyNormalizer.php b/lib/Normalizer/UsersTrackPostBodyNormalizer.php new file mode 100644 index 0000000..0fd49fd --- /dev/null +++ b/lib/Normalizer/UsersTrackPostBodyNormalizer.php @@ -0,0 +1,128 @@ +denormalizer->denormalize($value, 'Braze\\Model\\UsersTrackPostBodyAttributesItem', 'json', $context); + } + $object->setAttributes($values); + unset($data['attributes']); + } + if (\array_key_exists('events', $data)) { + $values_1 = []; + foreach ($data['events'] as $value_1) { + $values_1[] = $value_1; + } + $object->setEvents($values_1); + unset($data['events']); + } + if (\array_key_exists('purchases', $data)) { + $values_2 = []; + foreach ($data['purchases'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Braze\\Model\\UsersTrackPostBodyPurchasesItem', 'json', $context); + } + $object->setPurchases($values_2); + unset($data['purchases']); + } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('attributes') && null !== $object->getAttributes()) { + $values = []; + foreach ($object->getAttributes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['attributes'] = $values; + } + if ($object->isInitialized('events') && null !== $object->getEvents()) { + $values_1 = []; + foreach ($object->getEvents() as $value_1) { + $values_1[] = $value_1; + } + $data['events'] = $values_1; + } + if ($object->isInitialized('purchases') && null !== $object->getPurchases()) { + $values_2 = []; + foreach ($object->getPurchases() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['purchases'] = $values_2; + } + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersTrackPostBody' => false]; + } +} diff --git a/lib/Normalizer/UsersTrackPostBodyPurchasesItemNormalizer.php b/lib/Normalizer/UsersTrackPostBodyPurchasesItemNormalizer.php new file mode 100644 index 0000000..18b197b --- /dev/null +++ b/lib/Normalizer/UsersTrackPostBodyPurchasesItemNormalizer.php @@ -0,0 +1,142 @@ +setExternalId($data['external_id']); + unset($data['external_id']); + } + if (\array_key_exists('app_id', $data)) { + $object->setAppId($data['app_id']); + unset($data['app_id']); + } + if (\array_key_exists('product_id', $data)) { + $object->setProductId($data['product_id']); + unset($data['product_id']); + } + if (\array_key_exists('currency', $data)) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + if (\array_key_exists('price', $data)) { + $object->setPrice($data['price']); + unset($data['price']); + } + if (\array_key_exists('quantity', $data)) { + $object->setQuantity($data['quantity']); + unset($data['quantity']); + } + if (\array_key_exists('time', $data)) { + $object->setTime($data['time']); + unset($data['time']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Braze\\Model\\UsersTrackPostBodyPurchasesItemProperties', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalId') && null !== $object->getExternalId()) { + $data['external_id'] = $object->getExternalId(); + } + if ($object->isInitialized('appId') && null !== $object->getAppId()) { + $data['app_id'] = $object->getAppId(); + } + if ($object->isInitialized('productId') && null !== $object->getProductId()) { + $data['product_id'] = $object->getProductId(); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $object->getCurrency(); + } + if ($object->isInitialized('price') && null !== $object->getPrice()) { + $data['price'] = $object->getPrice(); + } + if ($object->isInitialized('quantity') && null !== $object->getQuantity()) { + $data['quantity'] = $object->getQuantity(); + } + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + if ($object->isInitialized('properties') && null !== $object->getProperties()) { + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersTrackPostBodyPurchasesItem' => false]; + } +} diff --git a/lib/Normalizer/UsersTrackPostBodyPurchasesItemPropertiesNormalizer.php b/lib/Normalizer/UsersTrackPostBodyPurchasesItemPropertiesNormalizer.php new file mode 100644 index 0000000..813e993 --- /dev/null +++ b/lib/Normalizer/UsersTrackPostBodyPurchasesItemPropertiesNormalizer.php @@ -0,0 +1,118 @@ +setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('monogram', $data)) { + $object->setMonogram($data['monogram']); + unset($data['monogram']); + } + if (\array_key_exists('checkout_duration', $data)) { + $object->setCheckoutDuration($data['checkout_duration']); + unset($data['checkout_duration']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + if (\array_key_exists('brand', $data)) { + $object->setBrand($data['brand']); + unset($data['brand']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('monogram') && null !== $object->getMonogram()) { + $data['monogram'] = $object->getMonogram(); + } + if ($object->isInitialized('checkoutDuration') && null !== $object->getCheckoutDuration()) { + $data['checkout_duration'] = $object->getCheckoutDuration(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + if ($object->isInitialized('brand') && null !== $object->getBrand()) { + $data['brand'] = $object->getBrand(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\UsersTrackPostBodyPurchasesItemProperties' => false]; + } +} diff --git a/lib/Normalizer/V2SubscriptionStatusSetPostBodyNormalizer.php b/lib/Normalizer/V2SubscriptionStatusSetPostBodyNormalizer.php new file mode 100644 index 0000000..33d3fba --- /dev/null +++ b/lib/Normalizer/V2SubscriptionStatusSetPostBodyNormalizer.php @@ -0,0 +1,98 @@ +denormalizer->denormalize($value, 'Braze\\Model\\V2SubscriptionStatusSetPostBodySubscriptionGroupsItem', 'json', $context); + } + $object->setSubscriptionGroups($values); + unset($data['subscription_groups']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('subscriptionGroups') && null !== $object->getSubscriptionGroups()) { + $values = []; + foreach ($object->getSubscriptionGroups() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['subscription_groups'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\V2SubscriptionStatusSetPostBody' => false]; + } +} diff --git a/lib/Normalizer/V2SubscriptionStatusSetPostBodySubscriptionGroupsItemNormalizer.php b/lib/Normalizer/V2SubscriptionStatusSetPostBodySubscriptionGroupsItemNormalizer.php new file mode 100644 index 0000000..d93f98f --- /dev/null +++ b/lib/Normalizer/V2SubscriptionStatusSetPostBodySubscriptionGroupsItemNormalizer.php @@ -0,0 +1,112 @@ +setSubscriptionGroupId($data['subscription_group_id']); + unset($data['subscription_group_id']); + } + if (\array_key_exists('subscription_state', $data)) { + $object->setSubscriptionState($data['subscription_state']); + unset($data['subscription_state']); + } + if (\array_key_exists('emails', $data)) { + $values = []; + foreach ($data['emails'] as $value) { + $values[] = $value; + } + $object->setEmails($values); + unset($data['emails']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('subscriptionGroupId') && null !== $object->getSubscriptionGroupId()) { + $data['subscription_group_id'] = $object->getSubscriptionGroupId(); + } + if ($object->isInitialized('subscriptionState') && null !== $object->getSubscriptionState()) { + $data['subscription_state'] = $object->getSubscriptionState(); + } + if ($object->isInitialized('emails') && null !== $object->getEmails()) { + $values = []; + foreach ($object->getEmails() as $value) { + $values[] = $value; + } + $data['emails'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Braze\\Model\\V2SubscriptionStatusSetPostBodySubscriptionGroupsItem' => false]; + } +} diff --git a/tests/BrazeTest.php b/tests/BrazeTest.php index c1a5cc9..6af1c4a 100644 --- a/tests/BrazeTest.php +++ b/tests/BrazeTest.php @@ -6,6 +6,7 @@ use Braze\Client; use Braze\Exception\ApiException; use Braze\Exception\UnauthorizedException; +use Braze\Model\MessagesSendPostBody; it('gets client from Braze class', function (): void { $braze = new Braze('https://rest.iad-01.braze.com', 'API_KEY'); @@ -23,7 +24,17 @@ it('throws error for invalid API key', function (): void { try { $braze = new Braze('https://rest.iad-02.braze.com', 'API_KEY'); - $braze->client->getContentBlocksInfo()->getBody(); + $messagesSendPostBody = new MessagesSendPostBody([ + 'external_user_ids' => ['your_external_user_id'], + 'messages' => [ + 'email' => [ + 'app_id' => 'your_app_id', + 'from' => 'Company ', + 'email_template_id' => 'your_email_template_id', + ], + ], + ]); + $braze->client->postMessagesSend($messagesSendPostBody)->getBody(); } catch (Throwable $throwable) { expect($throwable)->toBeInstanceOf(UnauthorizedException::class); expect($throwable)->toBeInstanceOf(ApiException::class);