Skip to content

Commit

Permalink
version 7.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
klaviyo-sdk committed Apr 9, 2024
1 parent 41d2b46 commit faf76ab
Show file tree
Hide file tree
Showing 86 changed files with 7,758 additions and 556 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ NOTE: For more granular API-specific changes, please see our [API Changelog](htt



## [7.1.2] - revision 2024-02-15

### Fixed:

- Patched a bug due to incorrect handling of page_cursor

## [7.1.1] - revision 2024-02-15

### Fixed:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Klaviyo PHP SDK

- SDK version: 7.1.1
- SDK version: 7.1.2
- API Revision: 2024-02-15

## Helpful Resources
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "klaviyo/api",
"version": "7.1.1",
"version": "7.1.2",
"description": "PHP SDK for Klaviyo's API.",
"keywords": [
"openapitools",
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'klaviyo-api-php/7.1.1';
protected $userAgent = 'klaviyo-api-php/7.1.2';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -434,7 +434,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 2024-02-15' . PHP_EOL;
$report .= ' SDK Package Version: 7.1.1' . PHP_EOL;
$report .= ' SDK Package Version: 7.1.2' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
22 changes: 18 additions & 4 deletions lib/Model/AudiencesSubObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class AudiencesSubObject implements ModelInterface, ArrayAccess, \JsonSerializab
* @var boolean[]
*/
protected static array $openAPINullables = [
'included' => false,
'excluded' => false
'included' => true,
'excluded' => true
];

/**
Expand Down Expand Up @@ -308,7 +308,14 @@ public function setIncluded($included)
{

if (is_null($included)) {
throw new \InvalidArgumentException('non-nullable included cannot be null');
array_push($this->openAPINullablesSetToNull, 'included');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('included', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['included'] = $included;
Expand Down Expand Up @@ -337,7 +344,14 @@ public function setExcluded($excluded)
{

if (is_null($excluded)) {
throw new \InvalidArgumentException('non-nullable excluded cannot be null');
array_push($this->openAPINullablesSetToNull, 'excluded');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('excluded', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['excluded'] = $excluded;
Expand Down
11 changes: 9 additions & 2 deletions lib/Model/CampaignCloneQueryResourceObjectAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CampaignCloneQueryResourceObjectAttributes implements ModelInterface, Arra
* @var boolean[]
*/
protected static array $openAPINullables = [
'new_name' => false
'new_name' => true
];

/**
Expand Down Expand Up @@ -301,7 +301,14 @@ public function setNewName($new_name)
{

if (is_null($new_name)) {
throw new \InvalidArgumentException('non-nullable new_name cannot be null');
array_push($this->openAPINullablesSetToNull, 'new_name');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('new_name', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['new_name'] = $new_name;
Expand Down
22 changes: 18 additions & 4 deletions lib/Model/CampaignCreateQueryResourceObjectAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class CampaignCreateQueryResourceObjectAttributes implements ModelInterface, Arr
'name' => false,
'audiences' => false,
'send_strategy' => false,
'send_options' => false,
'tracking_options' => false,
'send_options' => true,
'tracking_options' => true,
'campaign_messages' => false
];

Expand Down Expand Up @@ -432,7 +432,14 @@ public function setSendOptions($send_options)
{

if (is_null($send_options)) {
throw new \InvalidArgumentException('non-nullable send_options cannot be null');
array_push($this->openAPINullablesSetToNull, 'send_options');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('send_options', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['send_options'] = $send_options;
Expand Down Expand Up @@ -461,7 +468,14 @@ public function setTrackingOptions($tracking_options)
{

if (is_null($tracking_options)) {
throw new \InvalidArgumentException('non-nullable tracking_options cannot be null');
array_push($this->openAPINullablesSetToNull, 'tracking_options');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('tracking_options', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['tracking_options'] = $tracking_options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class CampaignCreateQueryResourceObjectAttributesSendOptions implements ModelInt
* @var boolean[]
*/
protected static array $openAPINullables = [
'use_smart_sending' => false
'use_smart_sending' => true
];

/**
Expand Down Expand Up @@ -302,7 +302,14 @@ public function setUseSmartSending($use_smart_sending)
{

if (is_null($use_smart_sending)) {
throw new \InvalidArgumentException('non-nullable use_smart_sending cannot be null');
array_push($this->openAPINullablesSetToNull, 'use_smart_sending');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('use_smart_sending', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['use_smart_sending'] = $use_smart_sending;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ class CampaignCreateQueryResourceObjectAttributesTrackingOptions implements Mode
* @var boolean[]
*/
protected static array $openAPINullables = [
'is_add_utm' => false,
'utm_params' => false,
'is_tracking_clicks' => false,
'is_tracking_opens' => false
'is_add_utm' => true,
'utm_params' => true,
'is_tracking_clicks' => true,
'is_tracking_opens' => true
];

/**
Expand Down Expand Up @@ -323,7 +323,14 @@ public function setIsAddUtm($is_add_utm)
{

if (is_null($is_add_utm)) {
throw new \InvalidArgumentException('non-nullable is_add_utm cannot be null');
array_push($this->openAPINullablesSetToNull, 'is_add_utm');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('is_add_utm', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['is_add_utm'] = $is_add_utm;
Expand Down Expand Up @@ -352,7 +359,14 @@ public function setUtmParams($utm_params)
{

if (is_null($utm_params)) {
throw new \InvalidArgumentException('non-nullable utm_params cannot be null');
array_push($this->openAPINullablesSetToNull, 'utm_params');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('utm_params', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['utm_params'] = $utm_params;
Expand Down Expand Up @@ -381,7 +395,14 @@ public function setIsTrackingClicks($is_tracking_clicks)
{

if (is_null($is_tracking_clicks)) {
throw new \InvalidArgumentException('non-nullable is_tracking_clicks cannot be null');
array_push($this->openAPINullablesSetToNull, 'is_tracking_clicks');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('is_tracking_clicks', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['is_tracking_clicks'] = $is_tracking_clicks;
Expand Down Expand Up @@ -410,7 +431,14 @@ public function setIsTrackingOpens($is_tracking_opens)
{

if (is_null($is_tracking_opens)) {
throw new \InvalidArgumentException('non-nullable is_tracking_opens cannot be null');
array_push($this->openAPINullablesSetToNull, 'is_tracking_opens');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('is_tracking_opens', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['is_tracking_opens'] = $is_tracking_opens;
Expand Down
22 changes: 18 additions & 4 deletions lib/Model/CampaignMessageCreateQueryResourceObjectAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class CampaignMessageCreateQueryResourceObjectAttributes implements ModelInterfa
*/
protected static array $openAPINullables = [
'channel' => false,
'label' => false,
'content' => false,
'label' => true,
'content' => true,
'render_options' => false
];

Expand Down Expand Up @@ -354,7 +354,14 @@ public function setLabel($label)
{

if (is_null($label)) {
throw new \InvalidArgumentException('non-nullable label cannot be null');
array_push($this->openAPINullablesSetToNull, 'label');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('label', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['label'] = $label;
Expand Down Expand Up @@ -383,7 +390,14 @@ public function setContent($content)
{

if (is_null($content)) {
throw new \InvalidArgumentException('non-nullable content cannot be null');
array_push($this->openAPINullablesSetToNull, 'content');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('content', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['content'] = $content;
Expand Down
Loading

0 comments on commit faf76ab

Please sign in to comment.