Skip to content

Commit

Permalink
version 7.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
klaviyo-sdk committed Mar 4, 2024
1 parent 9fe8192 commit 21de692
Show file tree
Hide file tree
Showing 7 changed files with 134 additions and 56 deletions.
8 changes: 7 additions & 1 deletion 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.1] - revision 2024-02-15

### Fixed:

- Patched a bug due to colliding enum variable names

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

### Added:
Expand Down Expand Up @@ -239,4 +245,4 @@ For EmailMarketing:
- client name: `Client``KlaviyoAPI`
- Client variable name in readme examples: `$client``$klaviyo`
- Some functions have changed name
- Parameter ordering: The order of params has changed; you will need to update these for your existing implementation to work
- Parameter ordering: The order of params has changed; you will need to update these for your existing implementation to work
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.0
- SDK version: 7.1.1
- 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.0",
"version": "7.1.1",
"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.0';
protected $userAgent = 'klaviyo-api-php/7.1.1';

/**
* 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.0' . PHP_EOL;
$report .= ' SDK Package Version: 7.1.1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
38 changes: 37 additions & 1 deletion lib/Model/EventCreateQueryV2ResourceObjectAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class EventCreateQueryV2ResourceObjectAttributes implements ModelInterface, Arra
'properties' => 'object',
'time' => '\DateTime',
'value' => 'float',
'value_currency' => 'string',
'unique_id' => 'string',
'metric' => '\KlaviyoAPI\Model\EventCreateQueryV2ResourceObjectAttributesMetric',
'profile' => '\KlaviyoAPI\Model\EventCreateQueryV2ResourceObjectAttributesProfile'
Expand All @@ -77,6 +78,7 @@ class EventCreateQueryV2ResourceObjectAttributes implements ModelInterface, Arra
'properties' => null,
'time' => 'date-time',
'value' => null,
'value_currency' => null,
'unique_id' => null,
'metric' => null,
'profile' => null
Expand All @@ -91,6 +93,7 @@ class EventCreateQueryV2ResourceObjectAttributes implements ModelInterface, Arra
'properties' => false,
'time' => false,
'value' => false,
'value_currency' => false,
'unique_id' => false,
'metric' => false,
'profile' => false
Expand Down Expand Up @@ -175,6 +178,7 @@ public function isNullableSetToNull(string $property): bool
'properties' => 'properties',
'time' => 'time',
'value' => 'value',
'value_currency' => 'value_currency',
'unique_id' => 'unique_id',
'metric' => 'metric',
'profile' => 'profile'
Expand All @@ -189,6 +193,7 @@ public function isNullableSetToNull(string $property): bool
'properties' => 'setProperties',
'time' => 'setTime',
'value' => 'setValue',
'value_currency' => 'setValueCurrency',
'unique_id' => 'setUniqueId',
'metric' => 'setMetric',
'profile' => 'setProfile'
Expand All @@ -203,6 +208,7 @@ public function isNullableSetToNull(string $property): bool
'properties' => 'getProperties',
'time' => 'getTime',
'value' => 'getValue',
'value_currency' => 'getValueCurrency',
'unique_id' => 'getUniqueId',
'metric' => 'getMetric',
'profile' => 'getProfile'
Expand Down Expand Up @@ -268,6 +274,7 @@ public function __construct(array $data = null)
$this->setIfExists('properties', $data ?? [], null);
$this->setIfExists('time', $data ?? [], null);
$this->setIfExists('value', $data ?? [], null);
$this->setIfExists('value_currency', $data ?? [], null);
$this->setIfExists('unique_id', $data ?? [], null);
$this->setIfExists('metric', $data ?? [], null);
$this->setIfExists('profile', $data ?? [], null);
Expand Down Expand Up @@ -395,7 +402,7 @@ public function getValue()
/**
* Sets value
*
* @param float|null $value A numeric value to associate with this event. For example, the dollar amount of a purchase.
* @param float|null $value A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase.
*
* @return self
*/
Expand All @@ -411,6 +418,35 @@ public function setValue($value)
return $this;
}

/**
* Gets value_currency
*
* @return string|null
*/
public function getValueCurrency()
{
return $this->container['value_currency'];
}

/**
* Sets value_currency
*
* @param string|null $value_currency The ISO 4217 currency code of the value associated with the event.
*
* @return self
*/
public function setValueCurrency($value_currency)
{

if (is_null($value_currency)) {
throw new \InvalidArgumentException('non-nullable value_currency cannot be null');
}

$this->container['value_currency'] = $value_currency;

return $this;
}

/**
* Gets unique_id
*
Expand Down
88 changes: 44 additions & 44 deletions lib/Model/MetricAggregateQueryResourceObjectAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,49 +333,49 @@ public function getModelName()
public const SORT__VARIATION_SEND_COHORT = '$variation_send_cohort';
public const SORT___VARIATION_SEND_COHORT = '-$variation_send_cohort';
public const SORT_BOUNCE_TYPE = 'Bounce Type';
public const SORT_BOUNCE_TYPE = '-Bounce Type';
public const SORT_BOUNCE_TYPE_DESC = '-Bounce Type';
public const SORT_CAMPAIGN_NAME = 'Campaign Name';
public const SORT_CAMPAIGN_NAME = '-Campaign Name';
public const SORT_CAMPAIGN_NAME_DESC = '-Campaign Name';
public const SORT_CLIENT_CANONICAL = 'Client Canonical';
public const SORT_CLIENT_CANONICAL = '-Client Canonical';
public const SORT_CLIENT_CANONICAL_DESC = '-Client Canonical';
public const SORT_CLIENT_NAME = 'Client Name';
public const SORT_CLIENT_NAME = '-Client Name';
public const SORT_CLIENT_NAME_DESC = '-Client Name';
public const SORT_CLIENT_TYPE = 'Client Type';
public const SORT_CLIENT_TYPE = '-Client Type';
public const SORT_CLIENT_TYPE_DESC = '-Client Type';
public const SORT_EMAIL_DOMAIN = 'Email Domain';
public const SORT_EMAIL_DOMAIN = '-Email Domain';
public const SORT_EMAIL_DOMAIN_DESC = '-Email Domain';
public const SORT_FAILURE_SOURCE = 'Failure Source';
public const SORT_FAILURE_SOURCE = '-Failure Source';
public const SORT_FAILURE_SOURCE_DESC = '-Failure Source';
public const SORT_FAILURE_TYPE = 'Failure Type';
public const SORT_FAILURE_TYPE = '-Failure Type';
public const SORT_FAILURE_TYPE_DESC = '-Failure Type';
public const SORT_FROM_NUMBER = 'From Number';
public const SORT_FROM_NUMBER = '-From Number';
public const SORT_FROM_NUMBER_DESC = '-From Number';
public const SORT_FROM_PHONE_REGION = 'From Phone Region';
public const SORT_FROM_PHONE_REGION = '-From Phone Region';
public const SORT_FROM_PHONE_REGION_DESC = '-From Phone Region';
public const SORT__LIST = 'List';
public const SORT__LIST = '-List';
public const SORT__LIST_DESC = '-List';
public const SORT_MESSAGE_NAME = 'Message Name';
public const SORT_MESSAGE_NAME = '-Message Name';
public const SORT_MESSAGE_NAME_DESC = '-Message Name';
public const SORT_MESSAGE_TYPE = 'Message Type';
public const SORT_MESSAGE_TYPE = '-Message Type';
public const SORT_MESSAGE_TYPE_DESC = '-Message Type';
public const SORT_METHOD = 'Method';
public const SORT_METHOD = '-Method';
public const SORT_METHOD_DESC = '-Method';
public const SORT_SUBJECT = 'Subject';
public const SORT_SUBJECT = '-Subject';
public const SORT_SUBJECT_DESC = '-Subject';
public const SORT_TO_NUMBER = 'To Number';
public const SORT_TO_NUMBER = '-To Number';
public const SORT_TO_NUMBER_DESC = '-To Number';
public const SORT_TO_PHONE_REGION = 'To Phone Region';
public const SORT_TO_PHONE_REGION = '-To Phone Region';
public const SORT_TO_PHONE_REGION_DESC = '-To Phone Region';
public const SORT_URL = 'URL';
public const SORT_URL = '-URL';
public const SORT_URL_DESC = '-URL';
public const SORT_COUNT = 'count';
public const SORT_COUNT = '-count';
public const SORT_COUNT_DESC = '-count';
public const SORT_FORM_ID = 'form_id';
public const SORT_FORM_ID = '-form_id';
public const SORT_FORM_ID_DESC = '-form_id';
public const SORT_SUM_VALUE = 'sum_value';
public const SORT_SUM_VALUE = '-sum_value';
public const SORT_SUM_VALUE_DESC = '-sum_value';
public const SORT_UNIQUE = 'unique';
public const SORT_UNIQUE = '-unique';
public const SORT_UNIQUE_DESC = '-unique';

/**
* Gets allowable values of the enum
Expand Down Expand Up @@ -478,49 +478,49 @@ public function getSortAllowableValues()
self::SORT__VARIATION_SEND_COHORT,
self::SORT___VARIATION_SEND_COHORT,
self::SORT_BOUNCE_TYPE,
self::SORT_BOUNCE_TYPE,
self::SORT_CAMPAIGN_NAME,
self::SORT_BOUNCE_TYPE_DESC,
self::SORT_CAMPAIGN_NAME,
self::SORT_CAMPAIGN_NAME_DESC,
self::SORT_CLIENT_CANONICAL,
self::SORT_CLIENT_CANONICAL,
self::SORT_CLIENT_CANONICAL_DESC,
self::SORT_CLIENT_NAME,
self::SORT_CLIENT_NAME,
self::SORT_CLIENT_TYPE,
self::SORT_CLIENT_NAME_DESC,
self::SORT_CLIENT_TYPE,
self::SORT_CLIENT_TYPE_DESC,
self::SORT_EMAIL_DOMAIN,
self::SORT_EMAIL_DOMAIN,
self::SORT_EMAIL_DOMAIN_DESC,
self::SORT_FAILURE_SOURCE,
self::SORT_FAILURE_SOURCE,
self::SORT_FAILURE_TYPE,
self::SORT_FAILURE_SOURCE_DESC,
self::SORT_FAILURE_TYPE,
self::SORT_FAILURE_TYPE_DESC,
self::SORT_FROM_NUMBER,
self::SORT_FROM_NUMBER,
self::SORT_FROM_NUMBER_DESC,
self::SORT_FROM_PHONE_REGION,
self::SORT_FROM_PHONE_REGION,
self::SORT__LIST,
self::SORT_FROM_PHONE_REGION_DESC,
self::SORT__LIST,
self::SORT__LIST_DESC,
self::SORT_MESSAGE_NAME,
self::SORT_MESSAGE_NAME,
self::SORT_MESSAGE_TYPE,
self::SORT_MESSAGE_NAME_DESC,
self::SORT_MESSAGE_TYPE,
self::SORT_MESSAGE_TYPE_DESC,
self::SORT_METHOD,
self::SORT_METHOD,
self::SORT_METHOD_DESC,
self::SORT_SUBJECT,
self::SORT_SUBJECT,
self::SORT_TO_NUMBER,
self::SORT_SUBJECT_DESC,
self::SORT_TO_NUMBER,
self::SORT_TO_NUMBER_DESC,
self::SORT_TO_PHONE_REGION,
self::SORT_TO_PHONE_REGION,
self::SORT_TO_PHONE_REGION_DESC,
self::SORT_URL,
self::SORT_URL,
self::SORT_COUNT,
self::SORT_URL_DESC,
self::SORT_COUNT,
self::SORT_COUNT_DESC,
self::SORT_FORM_ID,
self::SORT_FORM_ID,
self::SORT_FORM_ID_DESC,
self::SORT_SUM_VALUE,
self::SORT_SUM_VALUE,
self::SORT_UNIQUE,
self::SORT_SUM_VALUE_DESC,
self::SORT_UNIQUE,
self::SORT_UNIQUE_DESC,
];
}

Expand Down
Loading

0 comments on commit 21de692

Please sign in to comment.