-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
klaviyo-sdk
committed
Aug 15, 2023
1 parent
0c8cd02
commit bb85d0c
Showing
291 changed files
with
11,168 additions
and
7,443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* | ||
* The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. | ||
* | ||
* The version of the OpenAPI document: 2023-07-15 | ||
* The version of the OpenAPI document: 2023-08-15 | ||
* Contact: [email protected] | ||
* Generated by: https://openapi-generator.tech | ||
* OpenAPI Generator version: 6.1.0 | ||
|
@@ -122,11 +122,11 @@ public function getConfig() | |
* Get Account | ||
* | ||
* @param string $id The ID of the account (required) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \KlaviyoAPI\ApiException on non-2xx response | ||
* @throws \InvalidArgumentException | ||
* @return array<string,mixed>|\KlaviyoAPI\Model\GetCreateVariantsJobs400Response|\KlaviyoAPI\Model\GetCreateVariantsJobs400Response | ||
* @return array<string,mixed>|\KlaviyoAPI\Model\GetAccounts400Response|\KlaviyoAPI\Model\GetAccounts400Response | ||
*/ | ||
public function getAccount($id, $fields_account = null, $apiKey = null) | ||
{ | ||
|
@@ -140,11 +140,11 @@ public function getAccount($id, $fields_account = null, $apiKey = null) | |
* Get Account | ||
* | ||
* @param string $id The ID of the account (required) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \KlaviyoAPI\ApiException on non-2xx response | ||
* @throws \InvalidArgumentException | ||
* @return array of array<string,mixed>|\KlaviyoAPI\Model\GetCreateVariantsJobs400Response|\KlaviyoAPI\Model\GetCreateVariantsJobs400Response, HTTP status code, HTTP response headers (array of strings) | ||
* @return array of array<string,mixed>|\KlaviyoAPI\Model\GetAccounts400Response|\KlaviyoAPI\Model\GetAccounts400Response, HTTP status code, HTTP response headers (array of strings) | ||
*/ | ||
public function getAccountWithHttpInfo($id, $fields_account = null, $apiKey = null) | ||
{ | ||
|
@@ -208,11 +208,11 @@ public function getAccountWithHttpInfo($id, $fields_account = null, $apiKey = nu | |
$response->getHeaders() | ||
]; | ||
case 400: | ||
if ('\KlaviyoAPI\Model\GetCreateVariantsJobs400Response' === '\SplFileObject') { | ||
if ('\KlaviyoAPI\Model\GetAccounts400Response' === '\SplFileObject') { | ||
$content = $response->getBody(); //stream goes to serializer | ||
} else { | ||
$content = (string) $response->getBody(); | ||
if ('\KlaviyoAPI\Model\GetCreateVariantsJobs400Response' !== 'string') { | ||
if ('\KlaviyoAPI\Model\GetAccounts400Response' !== 'string') { | ||
$content = json_decode($content); | ||
} | ||
} | ||
|
@@ -229,11 +229,11 @@ public function getAccountWithHttpInfo($id, $fields_account = null, $apiKey = nu | |
$response->getHeaders() | ||
]; | ||
case 500: | ||
if ('\KlaviyoAPI\Model\GetCreateVariantsJobs400Response' === '\SplFileObject') { | ||
if ('\KlaviyoAPI\Model\GetAccounts400Response' === '\SplFileObject') { | ||
$content = $response->getBody(); //stream goes to serializer | ||
} else { | ||
$content = (string) $response->getBody(); | ||
if ('\KlaviyoAPI\Model\GetCreateVariantsJobs400Response' !== 'string') { | ||
if ('\KlaviyoAPI\Model\GetAccounts400Response' !== 'string') { | ||
$content = json_decode($content); | ||
} | ||
} | ||
|
@@ -285,15 +285,15 @@ public function getAccountWithHttpInfo($id, $fields_account = null, $apiKey = nu | |
case 400: | ||
$data = ObjectSerializer::deserialize( | ||
$e->getResponseBody(), | ||
'\KlaviyoAPI\Model\GetCreateVariantsJobs400Response', | ||
'\KlaviyoAPI\Model\GetAccounts400Response', | ||
$e->getResponseHeaders() | ||
); | ||
$e->setResponseObject($data); | ||
break; | ||
case 500: | ||
$data = ObjectSerializer::deserialize( | ||
$e->getResponseBody(), | ||
'\KlaviyoAPI\Model\GetCreateVariantsJobs400Response', | ||
'\KlaviyoAPI\Model\GetAccounts400Response', | ||
$e->getResponseHeaders() | ||
); | ||
$e->setResponseObject($data); | ||
|
@@ -309,7 +309,7 @@ public function getAccountWithHttpInfo($id, $fields_account = null, $apiKey = nu | |
* Get Account | ||
* | ||
* @param string $id The ID of the account (required) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \InvalidArgumentException | ||
* @return \GuzzleHttp\Promise\PromiseInterface | ||
|
@@ -330,7 +330,7 @@ function ($response) { | |
* Get Account | ||
* | ||
* @param string $id The ID of the account (required) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \InvalidArgumentException | ||
* @return \GuzzleHttp\Promise\PromiseInterface | ||
|
@@ -385,7 +385,7 @@ function ($exception) { | |
* Create request for operation 'getAccount' | ||
* | ||
* @param string $id The ID of the account (required) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \InvalidArgumentException | ||
* @return \GuzzleHttp\Psr7\Request | ||
|
@@ -478,7 +478,7 @@ public function getAccountRequest($id, $fields_account = null, $apiKey = null) | |
$defaultHeaders['User-Agent'] = $this->config->getUserAgent(); | ||
} | ||
|
||
$defaultHeaders['revision'] = ['2023-07-15']; | ||
$defaultHeaders['revision'] = ['2023-08-15']; | ||
|
||
$headers = array_merge( | ||
$defaultHeaders, | ||
|
@@ -500,11 +500,11 @@ public function getAccountRequest($id, $fields_account = null, $apiKey = null) | |
* | ||
* Get Accounts | ||
* | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \KlaviyoAPI\ApiException on non-2xx response | ||
* @throws \InvalidArgumentException | ||
* @return array<string,mixed>|\KlaviyoAPI\Model\GetCreateVariantsJobs400Response|\KlaviyoAPI\Model\GetCreateVariantsJobs400Response | ||
* @return array<string,mixed>|\KlaviyoAPI\Model\GetAccounts400Response|\KlaviyoAPI\Model\GetAccounts400Response | ||
*/ | ||
public function getAccounts($fields_account = null, $apiKey = null) | ||
{ | ||
|
@@ -517,11 +517,11 @@ public function getAccounts($fields_account = null, $apiKey = null) | |
* | ||
* Get Accounts | ||
* | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \KlaviyoAPI\ApiException on non-2xx response | ||
* @throws \InvalidArgumentException | ||
* @return array of array<string,mixed>|\KlaviyoAPI\Model\GetCreateVariantsJobs400Response|\KlaviyoAPI\Model\GetCreateVariantsJobs400Response, HTTP status code, HTTP response headers (array of strings) | ||
* @return array of array<string,mixed>|\KlaviyoAPI\Model\GetAccounts400Response|\KlaviyoAPI\Model\GetAccounts400Response, HTTP status code, HTTP response headers (array of strings) | ||
*/ | ||
public function getAccountsWithHttpInfo($fields_account = null, $apiKey = null) | ||
{ | ||
|
@@ -585,11 +585,11 @@ public function getAccountsWithHttpInfo($fields_account = null, $apiKey = null) | |
$response->getHeaders() | ||
]; | ||
case 400: | ||
if ('\KlaviyoAPI\Model\GetCreateVariantsJobs400Response' === '\SplFileObject') { | ||
if ('\KlaviyoAPI\Model\GetAccounts400Response' === '\SplFileObject') { | ||
$content = $response->getBody(); //stream goes to serializer | ||
} else { | ||
$content = (string) $response->getBody(); | ||
if ('\KlaviyoAPI\Model\GetCreateVariantsJobs400Response' !== 'string') { | ||
if ('\KlaviyoAPI\Model\GetAccounts400Response' !== 'string') { | ||
$content = json_decode($content); | ||
} | ||
} | ||
|
@@ -606,11 +606,11 @@ public function getAccountsWithHttpInfo($fields_account = null, $apiKey = null) | |
$response->getHeaders() | ||
]; | ||
case 500: | ||
if ('\KlaviyoAPI\Model\GetCreateVariantsJobs400Response' === '\SplFileObject') { | ||
if ('\KlaviyoAPI\Model\GetAccounts400Response' === '\SplFileObject') { | ||
$content = $response->getBody(); //stream goes to serializer | ||
} else { | ||
$content = (string) $response->getBody(); | ||
if ('\KlaviyoAPI\Model\GetCreateVariantsJobs400Response' !== 'string') { | ||
if ('\KlaviyoAPI\Model\GetAccounts400Response' !== 'string') { | ||
$content = json_decode($content); | ||
} | ||
} | ||
|
@@ -662,15 +662,15 @@ public function getAccountsWithHttpInfo($fields_account = null, $apiKey = null) | |
case 400: | ||
$data = ObjectSerializer::deserialize( | ||
$e->getResponseBody(), | ||
'\KlaviyoAPI\Model\GetCreateVariantsJobs400Response', | ||
'\KlaviyoAPI\Model\GetAccounts400Response', | ||
$e->getResponseHeaders() | ||
); | ||
$e->setResponseObject($data); | ||
break; | ||
case 500: | ||
$data = ObjectSerializer::deserialize( | ||
$e->getResponseBody(), | ||
'\KlaviyoAPI\Model\GetCreateVariantsJobs400Response', | ||
'\KlaviyoAPI\Model\GetAccounts400Response', | ||
$e->getResponseHeaders() | ||
); | ||
$e->setResponseObject($data); | ||
|
@@ -685,7 +685,7 @@ public function getAccountsWithHttpInfo($fields_account = null, $apiKey = null) | |
* | ||
* Get Accounts | ||
* | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \InvalidArgumentException | ||
* @return \GuzzleHttp\Promise\PromiseInterface | ||
|
@@ -705,7 +705,7 @@ function ($response) { | |
* | ||
* Get Accounts | ||
* | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \InvalidArgumentException | ||
* @return \GuzzleHttp\Promise\PromiseInterface | ||
|
@@ -759,7 +759,7 @@ function ($exception) { | |
/** | ||
* Create request for operation 'getAccounts' | ||
* | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-07-15/reference/api-overview#sparse-fieldsets (optional) | ||
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets (optional) | ||
* | ||
* @throws \InvalidArgumentException | ||
* @return \GuzzleHttp\Psr7\Request | ||
|
@@ -838,7 +838,7 @@ public function getAccountsRequest($fields_account = null, $apiKey = null) | |
$defaultHeaders['User-Agent'] = $this->config->getUserAgent(); | ||
} | ||
|
||
$defaultHeaders['revision'] = ['2023-07-15']; | ||
$defaultHeaders['revision'] = ['2023-08-15']; | ||
|
||
$headers = array_merge( | ||
$defaultHeaders, | ||
|
Oops, something went wrong.