Skip to content

Commit 41d2b46

Browse files
klaviyo-sdkklaviyo-sdk
andauthored
version 7.1.1 (#49)
Co-authored-by: klaviyo-sdk <[email protected]>
1 parent 9fe8192 commit 41d2b46

7 files changed

Lines changed: 134 additions & 56 deletions

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ NOTE: For more granular API-specific changes, please see our [API Changelog](htt
99

1010

1111

12+
## [7.1.1] - revision 2024-02-15
13+
14+
### Fixed:
15+
16+
- Patched a bug due to colliding enum variable names
17+
1218
## [7.1.0] - revision 2024-02-15
1319

1420
### Added:
@@ -239,4 +245,4 @@ For EmailMarketing:
239245
- client name: `Client``KlaviyoAPI`
240246
- Client variable name in readme examples: `$client``$klaviyo`
241247
- Some functions have changed name
242-
- Parameter ordering: The order of params has changed; you will need to update these for your existing implementation to work
248+
- Parameter ordering: The order of params has changed; you will need to update these for your existing implementation to work

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Klaviyo PHP SDK
22

3-
- SDK version: 7.1.0
3+
- SDK version: 7.1.1
44
- API Revision: 2024-02-15
55

66
## Helpful Resources

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "klaviyo/api",
3-
"version": "7.1.0",
3+
"version": "7.1.1",
44
"description": "PHP SDK for Klaviyo's API.",
55
"keywords": [
66
"openapitools",

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Configuration
101101
*
102102
* @var string
103103
*/
104-
protected $userAgent = 'klaviyo-api-php/7.1.0';
104+
protected $userAgent = 'klaviyo-api-php/7.1.1';
105105

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

440440
return $report;

lib/Model/EventCreateQueryV2ResourceObjectAttributes.php

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class EventCreateQueryV2ResourceObjectAttributes implements ModelInterface, Arra
6161
'properties' => 'object',
6262
'time' => '\DateTime',
6363
'value' => 'float',
64+
'value_currency' => 'string',
6465
'unique_id' => 'string',
6566
'metric' => '\KlaviyoAPI\Model\EventCreateQueryV2ResourceObjectAttributesMetric',
6667
'profile' => '\KlaviyoAPI\Model\EventCreateQueryV2ResourceObjectAttributesProfile'
@@ -77,6 +78,7 @@ class EventCreateQueryV2ResourceObjectAttributes implements ModelInterface, Arra
7778
'properties' => null,
7879
'time' => 'date-time',
7980
'value' => null,
81+
'value_currency' => null,
8082
'unique_id' => null,
8183
'metric' => null,
8284
'profile' => null
@@ -91,6 +93,7 @@ class EventCreateQueryV2ResourceObjectAttributes implements ModelInterface, Arra
9193
'properties' => false,
9294
'time' => false,
9395
'value' => false,
96+
'value_currency' => false,
9497
'unique_id' => false,
9598
'metric' => false,
9699
'profile' => false
@@ -175,6 +178,7 @@ public function isNullableSetToNull(string $property): bool
175178
'properties' => 'properties',
176179
'time' => 'time',
177180
'value' => 'value',
181+
'value_currency' => 'value_currency',
178182
'unique_id' => 'unique_id',
179183
'metric' => 'metric',
180184
'profile' => 'profile'
@@ -189,6 +193,7 @@ public function isNullableSetToNull(string $property): bool
189193
'properties' => 'setProperties',
190194
'time' => 'setTime',
191195
'value' => 'setValue',
196+
'value_currency' => 'setValueCurrency',
192197
'unique_id' => 'setUniqueId',
193198
'metric' => 'setMetric',
194199
'profile' => 'setProfile'
@@ -203,6 +208,7 @@ public function isNullableSetToNull(string $property): bool
203208
'properties' => 'getProperties',
204209
'time' => 'getTime',
205210
'value' => 'getValue',
211+
'value_currency' => 'getValueCurrency',
206212
'unique_id' => 'getUniqueId',
207213
'metric' => 'getMetric',
208214
'profile' => 'getProfile'
@@ -268,6 +274,7 @@ public function __construct(array $data = null)
268274
$this->setIfExists('properties', $data ?? [], null);
269275
$this->setIfExists('time', $data ?? [], null);
270276
$this->setIfExists('value', $data ?? [], null);
277+
$this->setIfExists('value_currency', $data ?? [], null);
271278
$this->setIfExists('unique_id', $data ?? [], null);
272279
$this->setIfExists('metric', $data ?? [], null);
273280
$this->setIfExists('profile', $data ?? [], null);
@@ -395,7 +402,7 @@ public function getValue()
395402
/**
396403
* Sets value
397404
*
398-
* @param float|null $value A numeric value to associate with this event. For example, the dollar amount of a purchase.
405+
* @param float|null $value A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase.
399406
*
400407
* @return self
401408
*/
@@ -411,6 +418,35 @@ public function setValue($value)
411418
return $this;
412419
}
413420

421+
/**
422+
* Gets value_currency
423+
*
424+
* @return string|null
425+
*/
426+
public function getValueCurrency()
427+
{
428+
return $this->container['value_currency'];
429+
}
430+
431+
/**
432+
* Sets value_currency
433+
*
434+
* @param string|null $value_currency The ISO 4217 currency code of the value associated with the event.
435+
*
436+
* @return self
437+
*/
438+
public function setValueCurrency($value_currency)
439+
{
440+
441+
if (is_null($value_currency)) {
442+
throw new \InvalidArgumentException('non-nullable value_currency cannot be null');
443+
}
444+
445+
$this->container['value_currency'] = $value_currency;
446+
447+
return $this;
448+
}
449+
414450
/**
415451
* Gets unique_id
416452
*

lib/Model/MetricAggregateQueryResourceObjectAttributes.php

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -333,49 +333,49 @@ public function getModelName()
333333
public const SORT__VARIATION_SEND_COHORT = '$variation_send_cohort';
334334
public const SORT___VARIATION_SEND_COHORT = '-$variation_send_cohort';
335335
public const SORT_BOUNCE_TYPE = 'Bounce Type';
336-
public const SORT_BOUNCE_TYPE = '-Bounce Type';
336+
public const SORT_BOUNCE_TYPE_DESC = '-Bounce Type';
337337
public const SORT_CAMPAIGN_NAME = 'Campaign Name';
338-
public const SORT_CAMPAIGN_NAME = '-Campaign Name';
338+
public const SORT_CAMPAIGN_NAME_DESC = '-Campaign Name';
339339
public const SORT_CLIENT_CANONICAL = 'Client Canonical';
340-
public const SORT_CLIENT_CANONICAL = '-Client Canonical';
340+
public const SORT_CLIENT_CANONICAL_DESC = '-Client Canonical';
341341
public const SORT_CLIENT_NAME = 'Client Name';
342-
public const SORT_CLIENT_NAME = '-Client Name';
342+
public const SORT_CLIENT_NAME_DESC = '-Client Name';
343343
public const SORT_CLIENT_TYPE = 'Client Type';
344-
public const SORT_CLIENT_TYPE = '-Client Type';
344+
public const SORT_CLIENT_TYPE_DESC = '-Client Type';
345345
public const SORT_EMAIL_DOMAIN = 'Email Domain';
346-
public const SORT_EMAIL_DOMAIN = '-Email Domain';
346+
public const SORT_EMAIL_DOMAIN_DESC = '-Email Domain';
347347
public const SORT_FAILURE_SOURCE = 'Failure Source';
348-
public const SORT_FAILURE_SOURCE = '-Failure Source';
348+
public const SORT_FAILURE_SOURCE_DESC = '-Failure Source';
349349
public const SORT_FAILURE_TYPE = 'Failure Type';
350-
public const SORT_FAILURE_TYPE = '-Failure Type';
350+
public const SORT_FAILURE_TYPE_DESC = '-Failure Type';
351351
public const SORT_FROM_NUMBER = 'From Number';
352-
public const SORT_FROM_NUMBER = '-From Number';
352+
public const SORT_FROM_NUMBER_DESC = '-From Number';
353353
public const SORT_FROM_PHONE_REGION = 'From Phone Region';
354-
public const SORT_FROM_PHONE_REGION = '-From Phone Region';
354+
public const SORT_FROM_PHONE_REGION_DESC = '-From Phone Region';
355355
public const SORT__LIST = 'List';
356-
public const SORT__LIST = '-List';
356+
public const SORT__LIST_DESC = '-List';
357357
public const SORT_MESSAGE_NAME = 'Message Name';
358-
public const SORT_MESSAGE_NAME = '-Message Name';
358+
public const SORT_MESSAGE_NAME_DESC = '-Message Name';
359359
public const SORT_MESSAGE_TYPE = 'Message Type';
360-
public const SORT_MESSAGE_TYPE = '-Message Type';
360+
public const SORT_MESSAGE_TYPE_DESC = '-Message Type';
361361
public const SORT_METHOD = 'Method';
362-
public const SORT_METHOD = '-Method';
362+
public const SORT_METHOD_DESC = '-Method';
363363
public const SORT_SUBJECT = 'Subject';
364-
public const SORT_SUBJECT = '-Subject';
364+
public const SORT_SUBJECT_DESC = '-Subject';
365365
public const SORT_TO_NUMBER = 'To Number';
366-
public const SORT_TO_NUMBER = '-To Number';
366+
public const SORT_TO_NUMBER_DESC = '-To Number';
367367
public const SORT_TO_PHONE_REGION = 'To Phone Region';
368-
public const SORT_TO_PHONE_REGION = '-To Phone Region';
368+
public const SORT_TO_PHONE_REGION_DESC = '-To Phone Region';
369369
public const SORT_URL = 'URL';
370-
public const SORT_URL = '-URL';
370+
public const SORT_URL_DESC = '-URL';
371371
public const SORT_COUNT = 'count';
372-
public const SORT_COUNT = '-count';
372+
public const SORT_COUNT_DESC = '-count';
373373
public const SORT_FORM_ID = 'form_id';
374-
public const SORT_FORM_ID = '-form_id';
374+
public const SORT_FORM_ID_DESC = '-form_id';
375375
public const SORT_SUM_VALUE = 'sum_value';
376-
public const SORT_SUM_VALUE = '-sum_value';
376+
public const SORT_SUM_VALUE_DESC = '-sum_value';
377377
public const SORT_UNIQUE = 'unique';
378-
public const SORT_UNIQUE = '-unique';
378+
public const SORT_UNIQUE_DESC = '-unique';
379379

380380
/**
381381
* Gets allowable values of the enum
@@ -478,49 +478,49 @@ public function getSortAllowableValues()
478478
self::SORT__VARIATION_SEND_COHORT,
479479
self::SORT___VARIATION_SEND_COHORT,
480480
self::SORT_BOUNCE_TYPE,
481-
self::SORT_BOUNCE_TYPE,
482-
self::SORT_CAMPAIGN_NAME,
481+
self::SORT_BOUNCE_TYPE_DESC,
483482
self::SORT_CAMPAIGN_NAME,
483+
self::SORT_CAMPAIGN_NAME_DESC,
484484
self::SORT_CLIENT_CANONICAL,
485-
self::SORT_CLIENT_CANONICAL,
485+
self::SORT_CLIENT_CANONICAL_DESC,
486486
self::SORT_CLIENT_NAME,
487-
self::SORT_CLIENT_NAME,
488-
self::SORT_CLIENT_TYPE,
487+
self::SORT_CLIENT_NAME_DESC,
489488
self::SORT_CLIENT_TYPE,
489+
self::SORT_CLIENT_TYPE_DESC,
490490
self::SORT_EMAIL_DOMAIN,
491-
self::SORT_EMAIL_DOMAIN,
491+
self::SORT_EMAIL_DOMAIN_DESC,
492492
self::SORT_FAILURE_SOURCE,
493-
self::SORT_FAILURE_SOURCE,
494-
self::SORT_FAILURE_TYPE,
493+
self::SORT_FAILURE_SOURCE_DESC,
495494
self::SORT_FAILURE_TYPE,
495+
self::SORT_FAILURE_TYPE_DESC,
496496
self::SORT_FROM_NUMBER,
497-
self::SORT_FROM_NUMBER,
497+
self::SORT_FROM_NUMBER_DESC,
498498
self::SORT_FROM_PHONE_REGION,
499-
self::SORT_FROM_PHONE_REGION,
500-
self::SORT__LIST,
499+
self::SORT_FROM_PHONE_REGION_DESC,
501500
self::SORT__LIST,
501+
self::SORT__LIST_DESC,
502502
self::SORT_MESSAGE_NAME,
503-
self::SORT_MESSAGE_NAME,
504-
self::SORT_MESSAGE_TYPE,
503+
self::SORT_MESSAGE_NAME_DESC,
505504
self::SORT_MESSAGE_TYPE,
505+
self::SORT_MESSAGE_TYPE_DESC,
506506
self::SORT_METHOD,
507-
self::SORT_METHOD,
507+
self::SORT_METHOD_DESC,
508508
self::SORT_SUBJECT,
509-
self::SORT_SUBJECT,
510-
self::SORT_TO_NUMBER,
509+
self::SORT_SUBJECT_DESC,
511510
self::SORT_TO_NUMBER,
511+
self::SORT_TO_NUMBER_DESC,
512512
self::SORT_TO_PHONE_REGION,
513-
self::SORT_TO_PHONE_REGION,
513+
self::SORT_TO_PHONE_REGION_DESC,
514514
self::SORT_URL,
515-
self::SORT_URL,
516-
self::SORT_COUNT,
515+
self::SORT_URL_DESC,
517516
self::SORT_COUNT,
517+
self::SORT_COUNT_DESC,
518518
self::SORT_FORM_ID,
519-
self::SORT_FORM_ID,
519+
self::SORT_FORM_ID_DESC,
520520
self::SORT_SUM_VALUE,
521-
self::SORT_SUM_VALUE,
522-
self::SORT_UNIQUE,
521+
self::SORT_SUM_VALUE_DESC,
523522
self::SORT_UNIQUE,
523+
self::SORT_UNIQUE_DESC,
524524
];
525525
}
526526

0 commit comments

Comments
 (0)