diff --git a/packages/Types/lib/Generated/Model/ClicksElementGoal.php b/packages/Types/lib/Generated/Model/ClicksElementGoal.php index 925aca8..7de6f49 100644 --- a/packages/Types/lib/Generated/Model/ClicksElementGoal.php +++ b/packages/Types/lib/Generated/Model/ClicksElementGoal.php @@ -89,7 +89,7 @@ class ClicksElementGoal implements ModelInterface, ArrayAccess, \JsonSerializabl protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true, 'settings' => false @@ -420,7 +420,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ClicksLinkGoal.php b/packages/Types/lib/Generated/Model/ClicksLinkGoal.php index 74a9a94..854b1a4 100644 --- a/packages/Types/lib/Generated/Model/ClicksLinkGoal.php +++ b/packages/Types/lib/Generated/Model/ClicksLinkGoal.php @@ -89,7 +89,7 @@ class ClicksLinkGoal implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true, 'settings' => false @@ -420,7 +420,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ConfigAudience.php b/packages/Types/lib/Generated/Model/ConfigAudience.php index 5b8ef13..f065616 100644 --- a/packages/Types/lib/Generated/Model/ConfigAudience.php +++ b/packages/Types/lib/Generated/Model/ConfigAudience.php @@ -87,7 +87,7 @@ class ConfigAudience implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'id' => false, - 'key' => false, + 'key' => true, 'name' => false, 'type' => false, 'rules' => true @@ -365,7 +365,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ConfigExperience.php b/packages/Types/lib/Generated/Model/ConfigExperience.php index 9630dd0..15c203b 100644 --- a/packages/Types/lib/Generated/Model/ConfigExperience.php +++ b/packages/Types/lib/Generated/Model/ConfigExperience.php @@ -113,7 +113,7 @@ class ConfigExperience implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'locations' => true, 'site_area' => true, 'audiences' => true, @@ -482,7 +482,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ConfigFeature.php b/packages/Types/lib/Generated/Model/ConfigFeature.php index 7d457d9..a05fba1 100644 --- a/packages/Types/lib/Generated/Model/ConfigFeature.php +++ b/packages/Types/lib/Generated/Model/ConfigFeature.php @@ -86,7 +86,7 @@ class ConfigFeature implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'variables' => false ]; @@ -385,7 +385,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ConfigGoal.php b/packages/Types/lib/Generated/Model/ConfigGoal.php index 797e212..92e9104 100644 --- a/packages/Types/lib/Generated/Model/ConfigGoal.php +++ b/packages/Types/lib/Generated/Model/ConfigGoal.php @@ -89,7 +89,7 @@ class ConfigGoal implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true, 'settings' => false @@ -438,7 +438,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ConfigGoalBase.php b/packages/Types/lib/Generated/Model/ConfigGoalBase.php index 58f81cd..ff4e541 100644 --- a/packages/Types/lib/Generated/Model/ConfigGoalBase.php +++ b/packages/Types/lib/Generated/Model/ConfigGoalBase.php @@ -88,7 +88,7 @@ class ConfigGoalBase implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true ]; @@ -392,7 +392,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ConfigLocation.php b/packages/Types/lib/Generated/Model/ConfigLocation.php index fbcb9bb..bccf0cf 100644 --- a/packages/Types/lib/Generated/Model/ConfigLocation.php +++ b/packages/Types/lib/Generated/Model/ConfigLocation.php @@ -87,7 +87,7 @@ class ConfigLocation implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'id' => false, - 'key' => false, + 'key' => true, 'name' => false, 'trigger' => false, 'rules' => true @@ -365,7 +365,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ConfigSegment.php b/packages/Types/lib/Generated/Model/ConfigSegment.php index 183d845..54fe495 100644 --- a/packages/Types/lib/Generated/Model/ConfigSegment.php +++ b/packages/Types/lib/Generated/Model/ConfigSegment.php @@ -85,7 +85,7 @@ class ConfigSegment implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'id' => false, - 'key' => false, + 'key' => true, 'name' => false, 'rules' => true ]; @@ -358,7 +358,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/DomInteractionGoal.php b/packages/Types/lib/Generated/Model/DomInteractionGoal.php index 47a9b39..5b0644f 100644 --- a/packages/Types/lib/Generated/Model/DomInteractionGoal.php +++ b/packages/Types/lib/Generated/Model/DomInteractionGoal.php @@ -89,7 +89,7 @@ class DomInteractionGoal implements ModelInterface, ArrayAccess, \JsonSerializab protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true, 'settings' => false @@ -420,7 +420,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ExperienceVariationConfig.php b/packages/Types/lib/Generated/Model/ExperienceVariationConfig.php index 6bc1d4b..618b291 100644 --- a/packages/Types/lib/Generated/Model/ExperienceVariationConfig.php +++ b/packages/Types/lib/Generated/Model/ExperienceVariationConfig.php @@ -90,7 +90,7 @@ class ExperienceVariationConfig implements ModelInterface, ArrayAccess, \JsonSer protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'traffic_allocation' => false, 'status' => false, 'changes' => false @@ -407,7 +407,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/GaGoal.php b/packages/Types/lib/Generated/Model/GaGoal.php index 0f1332e..4cf96a4 100644 --- a/packages/Types/lib/Generated/Model/GaGoal.php +++ b/packages/Types/lib/Generated/Model/GaGoal.php @@ -89,7 +89,7 @@ class GaGoal implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true, 'settings' => false @@ -420,7 +420,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/NoSettingsGoal.php b/packages/Types/lib/Generated/Model/NoSettingsGoal.php index 3fefa7f..d71f656 100644 --- a/packages/Types/lib/Generated/Model/NoSettingsGoal.php +++ b/packages/Types/lib/Generated/Model/NoSettingsGoal.php @@ -87,7 +87,7 @@ class NoSettingsGoal implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true ]; @@ -417,7 +417,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/RevenueGoal.php b/packages/Types/lib/Generated/Model/RevenueGoal.php index af6cfe6..9cba0b3 100644 --- a/packages/Types/lib/Generated/Model/RevenueGoal.php +++ b/packages/Types/lib/Generated/Model/RevenueGoal.php @@ -89,7 +89,7 @@ class RevenueGoal implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true, 'settings' => false @@ -420,7 +420,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/ScrollPercentageGoal.php b/packages/Types/lib/Generated/Model/ScrollPercentageGoal.php index 69af5ac..d20d16d 100644 --- a/packages/Types/lib/Generated/Model/ScrollPercentageGoal.php +++ b/packages/Types/lib/Generated/Model/ScrollPercentageGoal.php @@ -89,7 +89,7 @@ class ScrollPercentageGoal implements ModelInterface, ArrayAccess, \JsonSerializ protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true, 'settings' => false @@ -420,7 +420,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/SubmitsFormGoal.php b/packages/Types/lib/Generated/Model/SubmitsFormGoal.php index c8ae870..41609c0 100644 --- a/packages/Types/lib/Generated/Model/SubmitsFormGoal.php +++ b/packages/Types/lib/Generated/Model/SubmitsFormGoal.php @@ -89,7 +89,7 @@ class SubmitsFormGoal implements ModelInterface, ArrayAccess, \JsonSerializable protected static array $openAPINullables = [ 'id' => false, 'name' => false, - 'key' => false, + 'key' => true, 'type' => false, 'rules' => true, 'settings' => false @@ -420,7 +420,14 @@ public function getKey() public function setKey($key) { if (is_null($key)) { - throw new \InvalidArgumentException('non-nullable key cannot be null'); + array_push($this->openAPINullablesSetToNull, 'key'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('key', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['key'] = $key; diff --git a/packages/Types/lib/Generated/Model/VisitorInsightsBase.php b/packages/Types/lib/Generated/Model/VisitorInsightsBase.php index 8b04519..499d7db 100644 --- a/packages/Types/lib/Generated/Model/VisitorInsightsBase.php +++ b/packages/Types/lib/Generated/Model/VisitorInsightsBase.php @@ -305,9 +305,9 @@ public function getHeatmapVisitsLimitAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('enabled', $data ?? [], null); - $this->setIfExists('obfuscate_text', $data ?? [], true); + $this->setIfExists('obfuscate_text', $data ?? [], false); $this->setIfExists('sampling_rate', $data ?? [], self::SAMPLING_RATE_NUMBER_5); - $this->setIfExists('heatmap_visits_limit', $data ?? [], self::HEATMAP_VISITS_LIMIT_NUMBER_5000); + $this->setIfExists('heatmap_visits_limit', $data ?? [], self::HEATMAP_VISITS_LIMIT_NUMBER_2500); } /** diff --git a/packages/Types/lib/Generated/Model/VisitorInsightsData.php b/packages/Types/lib/Generated/Model/VisitorInsightsData.php index 0432d60..b9c5b17 100644 --- a/packages/Types/lib/Generated/Model/VisitorInsightsData.php +++ b/packages/Types/lib/Generated/Model/VisitorInsightsData.php @@ -288,9 +288,9 @@ public function getHeatmapVisitsLimitAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('enabled', $data ?? [], null); - $this->setIfExists('obfuscate_text', $data ?? [], true); + $this->setIfExists('obfuscate_text', $data ?? [], false); $this->setIfExists('sampling_rate', $data ?? [], 5); - $this->setIfExists('heatmap_visits_limit', $data ?? [], self::HEATMAP_VISITS_LIMIT_NUMBER_5000); + $this->setIfExists('heatmap_visits_limit', $data ?? [], self::HEATMAP_VISITS_LIMIT_NUMBER_2500); $this->setIfExists('tracking_id', $data ?? [], null); } diff --git a/packages/Types/lib/Generated/Model/VisitorSegments.php b/packages/Types/lib/Generated/Model/VisitorSegments.php index 3108ff0..02080d4 100644 --- a/packages/Types/lib/Generated/Model/VisitorSegments.php +++ b/packages/Types/lib/Generated/Model/VisitorSegments.php @@ -62,6 +62,7 @@ class VisitorSegments implements ModelInterface, ArrayAccess, \JsonSerializable 'devices' => 'string[]', 'source' => 'string', 'campaign' => 'string', + 'content' => 'string', 'visitorType' => 'string', 'country' => 'string', 'customSegments' => 'string[]' @@ -79,6 +80,7 @@ class VisitorSegments implements ModelInterface, ArrayAccess, \JsonSerializable 'devices' => null, 'source' => null, 'campaign' => null, + 'content' => null, 'visitorType' => null, 'country' => null, 'customSegments' => null @@ -94,6 +96,7 @@ class VisitorSegments implements ModelInterface, ArrayAccess, \JsonSerializable 'devices' => false, 'source' => false, 'campaign' => false, + 'content' => false, 'visitorType' => false, 'country' => false, 'customSegments' => false @@ -189,6 +192,7 @@ public function isNullableSetToNull(string $property): bool 'devices' => 'devices', 'source' => 'source', 'campaign' => 'campaign', + 'content' => 'content', 'visitorType' => 'visitorType', 'country' => 'country', 'customSegments' => 'customSegments' @@ -204,6 +208,7 @@ public function isNullableSetToNull(string $property): bool 'devices' => 'setDevices', 'source' => 'setSource', 'campaign' => 'setCampaign', + 'content' => 'setContent', 'visitorType' => 'setVisitorType', 'country' => 'setCountry', 'customSegments' => 'setCustomSegments' @@ -219,6 +224,7 @@ public function isNullableSetToNull(string $property): bool 'devices' => 'getDevices', 'source' => 'getSource', 'campaign' => 'getCampaign', + 'content' => 'getContent', 'visitorType' => 'getVisitorType', 'country' => 'getCountry', 'customSegments' => 'getCustomSegments' @@ -371,6 +377,7 @@ public function __construct(?array $data = null) $this->setIfExists('devices', $data ?? [], null); $this->setIfExists('source', $data ?? [], null); $this->setIfExists('campaign', $data ?? [], null); + $this->setIfExists('content', $data ?? [], null); $this->setIfExists('visitorType', $data ?? [], null); $this->setIfExists('country', $data ?? [], null); $this->setIfExists('customSegments', $data ?? [], null); @@ -590,6 +597,33 @@ public function setCampaign($campaign) return $this; } + /** + * Gets content + * + * @return string|null + */ + public function getContent() + { + return $this->container['content']; + } + + /** + * Sets content + * + * @param string|null $content Content string (ad-creative identifier from utm_content) + * + * @return self + */ + public function setContent($content) + { + if (is_null($content)) { + throw new \InvalidArgumentException('non-nullable content cannot be null'); + } + $this->container['content'] = $content; + + return $this; + } + /** * Gets visitor_type *