diff --git a/LICENSE b/LICENSE index 8088807..9debc6c 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2022 wallee AG + Copyright 2023 wallee AG Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 65f9b9c..af4d2e2 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,9 @@ $client = new \PostFinanceCheckout\Sdk\ApiClient($userId, $secret); $httpClientType = \PostFinanceCheckout\Sdk\Http\HttpClientFactory::TYPE_CURL; // or \PostFinanceCheckout\Sdk\Http\HttpClientFactory::TYPE_SOCKET $client->setHttpClientType($httpClientType); + +//Setup a custom connection timeout if needed. (Default value is: 25 seconds) +$client->setConnectionTimeout(20); ``` You can also specify the HTTP client via the `PFC_HTTP_CLIENT` environment variable. The possible string values are `curl` or `socket`. diff --git a/composer.json b/composer.json index 067d171..810c85d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "postfinancecheckout/sdk", - "version": "3.1.2", + "version": "3.1.4", "description": "PostFinance Checkout SDK for PHP", "keywords": [ "postfinancecheckout", diff --git a/lib/ApiClient.php b/lib/ApiClient.php index 1e5b926..69ff6dc 100644 --- a/lib/ApiClient.php +++ b/lib/ApiClient.php @@ -48,7 +48,7 @@ final class ApiClient { * @var array */ private $defaultHeaders = [ - 'x-meta-sdk-version' => "3.1.2", + 'x-meta-sdk-version' => "3.1.4", 'x-meta-sdk-language' => 'php', 'x-meta-sdk-provider' => "PostFinance Checkout", ]; @@ -58,7 +58,7 @@ final class ApiClient { * * @var string */ - private $userAgent = 'PHP-Client/3.1.2/php'; + private $userAgent = 'PHP-Client/3.1.4/php'; /** * The path to the certificate authority file. @@ -74,13 +74,19 @@ final class ApiClient { */ private $enableCertificateAuthorityCheck = true; - /** + /** + * the constant for the default connection time out + * + * @var integer + */ + const INITIAL_CONNECTION_TIMEOUT = 25; + + /** * The connection timeout in seconds. * * @var integer */ - private $connectionTimeout = 20; - CONST CONNECTION_TIMEOUT = 20; + private $connectionTimeout; /** * The http client type to use for communication. @@ -138,12 +144,12 @@ public function __construct($userId, $applicationKey) { $this->userId = $userId; $this->applicationKey = $applicationKey; + $this->connectionTimeout = self::INITIAL_CONNECTION_TIMEOUT; $this->certificateAuthority = dirname(__FILE__) . '/ca-bundle.crt'; $this->serializer = new ObjectSerializer(); $this->isDebuggingEnabled() ? $this->serializer->enableDebugging() : $this->serializer->disableDebugging(); $this->serializer->setDebugFile($this->getDebugFile()); $this->addDefaultHeader('x-meta-sdk-language-version', phpversion()); - } /** @@ -254,7 +260,7 @@ public function setConnectionTimeout($connectionTimeout) { * @return ApiClient */ public function resetConnectionTimeout() { - $this->connectionTimeout = self::CONNECTION_TIMEOUT; + $this->connectionTimeout = self::INITIAL_CONNECTION_TIMEOUT; return $this; } @@ -461,8 +467,8 @@ public function selectHeaderContentType($contentType) { * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException * @throws \PostFinanceCheckout\Sdk\VersioningException */ - public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null) { - $request = new HttpRequest($this->getSerializer(), $this->buildRequestUrl($resourcePath, $queryParams), $method, $this->generateUniqueToken()); + public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $timeOut, $responseType = null, $endpointPath = null) { + $request = new HttpRequest($this->getSerializer(), $this->buildRequestUrl($resourcePath, $queryParams), $method, $this->generateUniqueToken(), $timeOut); $request->setUserAgent($this->getUserAgent()); $request->addHeaders(array_merge( (array)$this->defaultHeaders, @@ -576,6 +582,18 @@ public function getAccountService() { return $this->accountService; } + protected $analyticsQueryService; + + /** + * @return \PostFinanceCheckout\Sdk\Service\AnalyticsQueryService + */ + public function getAnalyticsQueryService() { + if(is_null($this->analyticsQueryService)){ + $this->analyticsQueryService = new \PostFinanceCheckout\Sdk\Service\AnalyticsQueryService($this); + } + return $this->analyticsQueryService; + } + protected $applicationUserService; /** diff --git a/lib/Configuration.php b/lib/Configuration.php index 7f34196..5858c5d 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -80,7 +80,7 @@ class Configuration * * @var string */ - protected $userAgent = 'PostFinanceCheckout\Sdk/3.1.2/php'; + protected $userAgent = 'PostFinanceCheckout\Sdk/3.1.4/php'; /** * Debug switch (default set to false) @@ -388,8 +388,8 @@ public static function toDebugReport() $report = 'PHP SDK (PostFinanceCheckout\Sdk) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 3.1.2' . PHP_EOL; - $report .= ' SDK Package Version: 3.1.2' . PHP_EOL; + $report .= ' OpenAPI Spec Version: 3.1.4' . PHP_EOL; + $report .= ' SDK Package Version: 3.1.4' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Http/CurlHttpClient.php b/lib/Http/CurlHttpClient.php index 23fa529..4d1360c 100644 --- a/lib/Http/CurlHttpClient.php +++ b/lib/Http/CurlHttpClient.php @@ -40,8 +40,8 @@ public function isSupported() { public function send(ApiClient $apiClient, HttpRequest $request) { $curl = curl_init(); // set timeout, if needed - if ($apiClient->getConnectionTimeout() !== 0) { - curl_setopt($curl, CURLOPT_TIMEOUT, $apiClient->getConnectionTimeout()); + if ($request->getTimeOut() !== 0) { + curl_setopt($curl, CURLOPT_TIMEOUT, $request->getTimeOut()); } // set life-time for DNS cache entries diff --git a/lib/Http/HttpRequest.php b/lib/Http/HttpRequest.php index 4b0efd9..508b481 100644 --- a/lib/Http/HttpRequest.php +++ b/lib/Http/HttpRequest.php @@ -166,6 +166,13 @@ final class HttpRequest { */ private $logToken; + /** + * The connection time out limit in seconds. + * + * @var integer + */ + private $timeOut; + /** * Constructor. * @@ -174,7 +181,7 @@ final class HttpRequest { * @param string $method the request method (typically GET or POST) * @param string $logToken the request's log token */ - public function __construct(ObjectSerializer $serializer, $url, $method, $logToken) { + public function __construct(ObjectSerializer $serializer, $url, $method, $logToken, $timeOut) { $this->serializer = $serializer; $this->url = $url; $this->method = strtoupper($method); @@ -184,6 +191,7 @@ public function __construct(ObjectSerializer $serializer, $url, $method, $logTok $this->port = parse_url($url, PHP_URL_PORT); $this->query = parse_url($url, PHP_URL_QUERY); $this->logToken = $logToken; + $this->timeOut = $timeOut; $this->addHeader(self::HEADER_KEY_HOST, $this->host); $this->addHeader(self::HEADER_LOG_TOKEN, $this->logToken); @@ -334,6 +342,15 @@ public function getLogToken() { return $this->logToken; } + /** + * Returns the time out. + * + * @return integer + */ + public function getTimeOut() { + return $this->timeOut; + } + /** * Returns the query part of the request as string. * diff --git a/lib/Http/SocketHttpClient.php b/lib/Http/SocketHttpClient.php index 47e20b5..372a218 100644 --- a/lib/Http/SocketHttpClient.php +++ b/lib/Http/SocketHttpClient.php @@ -80,7 +80,7 @@ private function readFromSocket(ApiClient $apiClient, HttpRequest $request, $soc $responseMessage = ''; $chunked = false; $chunkLength = false; - $maxTime = $this->getStartTime() + $apiClient->getConnectionTimeout(); + $maxTime = $this->getStartTime() + $request->getTimeOut(); $contentLength = -1; $endReached = false; while ($maxTime > time() && !feof($socket) && !$endReached) { diff --git a/lib/Model/AnalyticsQuery.php b/lib/Model/AnalyticsQuery.php new file mode 100644 index 0000000..9888eb2 --- /dev/null +++ b/lib/Model/AnalyticsQuery.php @@ -0,0 +1,480 @@ + 'int', + 'external_id' => 'string', + 'max_cache_age' => 'int', + 'query_string' => 'string', + 'scanned_data_limit' => 'float', + 'space_ids' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'account_id' => 'int64', + 'external_id' => null, + 'max_cache_age' => 'int32', + 'query_string' => null, + 'scanned_data_limit' => null, + 'space_ids' => 'int64' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', + 'external_id' => 'externalId', + 'max_cache_age' => 'maxCacheAge', + 'query_string' => 'queryString', + 'scanned_data_limit' => 'scannedDataLimit', + 'space_ids' => 'spaceIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', + 'external_id' => 'setExternalId', + 'max_cache_age' => 'setMaxCacheAge', + 'query_string' => 'setQueryString', + 'scanned_data_limit' => 'setScannedDataLimit', + 'space_ids' => 'setSpaceIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', + 'external_id' => 'getExternalId', + 'max_cache_age' => 'getMaxCacheAge', + 'query_string' => 'getQueryString', + 'scanned_data_limit' => 'getScannedDataLimit', + 'space_ids' => 'getSpaceIds' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + + $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + + $this->container['max_cache_age'] = isset($data['max_cache_age']) ? $data['max_cache_age'] : null; + + $this->container['query_string'] = isset($data['query_string']) ? $data['query_string'] : null; + + $this->container['scanned_data_limit'] = isset($data['scanned_data_limit']) ? $data['scanned_data_limit'] : null; + + $this->container['space_ids'] = isset($data['space_ids']) ? $data['space_ids'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['account_id'] === null) { + $invalidProperties[] = "'account_id' can't be null"; + } + if (!is_null($this->container['query_string']) && (mb_strlen($this->container['query_string']) > 4096)) { + $invalidProperties[] = "invalid value for 'query_string', the character length must be smaller than or equal to 4096."; + } + + if (!is_null($this->container['query_string']) && (mb_strlen($this->container['query_string']) < 1)) { + $invalidProperties[] = "invalid value for 'query_string', the character length must be bigger than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets account_id + * + * @return int + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param int $account_id The mandatory ID of an account in which the query shall be executed. Must be a valid account ID greater than 0. + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id A client generated nonce which uniquely identifies the query to be executed. Subsequent submissions with the same external ID will not re-execute the query but instead return the existing execution with that ID. Either the External ID or a Maximal Cache Age greater than 0 must be specified. If both are specified the External ID will have precedence and the Maximal Cache Age will be ignored. + * + * @return $this + */ + public function setExternalId($external_id) + { + $this->container['external_id'] = $external_id; + + return $this; + } + + + /** + * Gets max_cache_age + * + * @return int + */ + public function getMaxCacheAge() + { + return $this->container['max_cache_age']; + } + + /** + * Sets max_cache_age + * + * @param int $max_cache_age The maximal age in minutes of cached query executions to return. If an equivalent query execution with the same Query String, Account ID and Spaces parameters not older than the specified age is already available that execution will be returned instead of a newly started execution. Set to 0 or null (and set a unique, previously unused External ID) to force a new query execution irrespective of previous executions. Either the External ID or a Cache Duration greater than 0 must be specified. If both are specified, the External ID will be preferred (and the Maximal Cache Age ignored). + * + * @return $this + */ + public function setMaxCacheAge($max_cache_age) + { + $this->container['max_cache_age'] = $max_cache_age; + + return $this; + } + + + /** + * Gets query_string + * + * @return string + */ + public function getQueryString() + { + return $this->container['query_string']; + } + + /** + * Sets query_string + * + * @param string $query_string The SQL statement which is being submitted for execution. Must be a valid PrestoDB/Athena SQL statement. + * + * @return $this + */ + public function setQueryString($query_string) + { + if (!is_null($query_string) && (mb_strlen($query_string) > 4096)) { + throw new \InvalidArgumentException('invalid length for $query_string when calling AnalyticsQuery., must be smaller than or equal to 4096.'); + } + if (!is_null($query_string) && (mb_strlen($query_string) < 1)) { + throw new \InvalidArgumentException('invalid length for $query_string when calling AnalyticsQuery., must be bigger than or equal to 1.'); + } + + $this->container['query_string'] = $query_string; + + return $this; + } + + + /** + * Gets scanned_data_limit + * + * @return float + */ + public function getScannedDataLimit() + { + return $this->container['scanned_data_limit']; + } + + /** + * Sets scanned_data_limit + * + * @param float $scanned_data_limit The maximal amount of scanned data that this query is allowed to scan. After this limit is reached query will be canceled by the system. + * + * @return $this + */ + public function setScannedDataLimit($scanned_data_limit) + { + $this->container['scanned_data_limit'] = $scanned_data_limit; + + return $this; + } + + + /** + * Gets space_ids + * + * @return int[] + */ + public function getSpaceIds() + { + return $this->container['space_ids']; + } + + /** + * Sets space_ids + * + * @param int[] $space_ids The IDs of the spaces in which the query shall be executed. At most 5 space IDs may be specified. All specified spaces must be owned by the account specified by the accountId property. The spaces property may be missing or empty to query all spaces of the specified account. + * + * @return $this + */ + public function setSpaceIds($space_ids) + { + $this->container['space_ids'] = $space_ids; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/AnalyticsQueryExecution.php b/lib/Model/AnalyticsQueryExecution.php new file mode 100644 index 0000000..46dcc41 --- /dev/null +++ b/lib/Model/AnalyticsQueryExecution.php @@ -0,0 +1,622 @@ + 'int', + 'external_id' => 'string', + 'failure_reason' => '\PostFinanceCheckout\Sdk\Model\FailureReason', + 'id' => 'int', + 'processing_end_time' => '\DateTime', + 'processing_start_time' => '\DateTime', + 'query_string' => 'string', + 'scanned_data_in_gb' => 'float', + 'scanned_data_limit' => 'float', + 'spaces' => 'int[]', + 'state' => '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecutionState' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'account' => 'int64', + 'external_id' => null, + 'failure_reason' => null, + 'id' => 'int64', + 'processing_end_time' => 'date-time', + 'processing_start_time' => 'date-time', + 'query_string' => null, + 'scanned_data_in_gb' => null, + 'scanned_data_limit' => null, + 'spaces' => 'int64', + 'state' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account' => 'account', + 'external_id' => 'externalId', + 'failure_reason' => 'failureReason', + 'id' => 'id', + 'processing_end_time' => 'processingEndTime', + 'processing_start_time' => 'processingStartTime', + 'query_string' => 'queryString', + 'scanned_data_in_gb' => 'scannedDataInGb', + 'scanned_data_limit' => 'scannedDataLimit', + 'spaces' => 'spaces', + 'state' => 'state' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account' => 'setAccount', + 'external_id' => 'setExternalId', + 'failure_reason' => 'setFailureReason', + 'id' => 'setId', + 'processing_end_time' => 'setProcessingEndTime', + 'processing_start_time' => 'setProcessingStartTime', + 'query_string' => 'setQueryString', + 'scanned_data_in_gb' => 'setScannedDataInGb', + 'scanned_data_limit' => 'setScannedDataLimit', + 'spaces' => 'setSpaces', + 'state' => 'setState' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account' => 'getAccount', + 'external_id' => 'getExternalId', + 'failure_reason' => 'getFailureReason', + 'id' => 'getId', + 'processing_end_time' => 'getProcessingEndTime', + 'processing_start_time' => 'getProcessingStartTime', + 'query_string' => 'getQueryString', + 'scanned_data_in_gb' => 'getScannedDataInGb', + 'scanned_data_limit' => 'getScannedDataLimit', + 'spaces' => 'getSpaces', + 'state' => 'getState' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['account'] = isset($data['account']) ? $data['account'] : null; + + $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + + $this->container['failure_reason'] = isset($data['failure_reason']) ? $data['failure_reason'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['processing_end_time'] = isset($data['processing_end_time']) ? $data['processing_end_time'] : null; + + $this->container['processing_start_time'] = isset($data['processing_start_time']) ? $data['processing_start_time'] : null; + + $this->container['query_string'] = isset($data['query_string']) ? $data['query_string'] : null; + + $this->container['scanned_data_in_gb'] = isset($data['scanned_data_in_gb']) ? $data['scanned_data_in_gb'] : null; + + $this->container['scanned_data_limit'] = isset($data['scanned_data_limit']) ? $data['scanned_data_limit'] : null; + + $this->container['spaces'] = isset($data['spaces']) ? $data['spaces'] : null; + + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets account + * + * @return int + */ + public function getAccount() + { + return $this->container['account']; + } + + /** + * Sets account + * + * @param int $account The account in which the query has been executed. + * + * @return $this + */ + public function setAccount($account) + { + $this->container['account'] = $account; + + return $this; + } + + + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id The External ID of the query if one had been specified; otherwise null. + * + * @return $this + */ + public function setExternalId($external_id) + { + $this->container['external_id'] = $external_id; + + return $this; + } + + + /** + * Gets failure_reason + * + * @return \PostFinanceCheckout\Sdk\Model\FailureReason + */ + public function getFailureReason() + { + return $this->container['failure_reason']; + } + + /** + * Sets failure_reason + * + * @param \PostFinanceCheckout\Sdk\Model\FailureReason $failure_reason The reason of the failure if and only if the query has failed, otherwise null. + * + * @return $this + */ + public function setFailureReason($failure_reason) + { + $this->container['failure_reason'] = $failure_reason; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets processing_end_time + * + * @return \DateTime + */ + public function getProcessingEndTime() + { + return $this->container['processing_end_time']; + } + + /** + * Sets processing_end_time + * + * @param \DateTime $processing_end_time The time at which processing of the query has finished (either successfully or by failure or by cancelation). Will be null if the query execution has not finished yet. + * + * @return $this + */ + public function setProcessingEndTime($processing_end_time) + { + $this->container['processing_end_time'] = $processing_end_time; + + return $this; + } + + + /** + * Gets processing_start_time + * + * @return \DateTime + */ + public function getProcessingStartTime() + { + return $this->container['processing_start_time']; + } + + /** + * Sets processing_start_time + * + * @param \DateTime $processing_start_time The time at which processing of the query has started (never null). + * + * @return $this + */ + public function setProcessingStartTime($processing_start_time) + { + $this->container['processing_start_time'] = $processing_start_time; + + return $this; + } + + + /** + * Gets query_string + * + * @return string + */ + public function getQueryString() + { + return $this->container['query_string']; + } + + /** + * Sets query_string + * + * @param string $query_string The SQL statement which has been submitted for execution. + * + * @return $this + */ + public function setQueryString($query_string) + { + $this->container['query_string'] = $query_string; + + return $this; + } + + + /** + * Gets scanned_data_in_gb + * + * @return float + */ + public function getScannedDataInGb() + { + return $this->container['scanned_data_in_gb']; + } + + /** + * Sets scanned_data_in_gb + * + * @param float $scanned_data_in_gb The amount of data scanned while processing the query (in GB). (Note that this amount may increase over time while the query is still being processed and not finished yet.) + * + * @return $this + */ + public function setScannedDataInGb($scanned_data_in_gb) + { + $this->container['scanned_data_in_gb'] = $scanned_data_in_gb; + + return $this; + } + + + /** + * Gets scanned_data_limit + * + * @return float + */ + public function getScannedDataLimit() + { + return $this->container['scanned_data_limit']; + } + + /** + * Sets scanned_data_limit + * + * @param float $scanned_data_limit The maximal amount of scanned data that this query is allowed to scan. After this limit is reached query will be canceled by the system. + * + * @return $this + */ + public function setScannedDataLimit($scanned_data_limit) + { + $this->container['scanned_data_limit'] = $scanned_data_limit; + + return $this; + } + + + /** + * Gets spaces + * + * @return int[] + */ + public function getSpaces() + { + return $this->container['spaces']; + } + + /** + * Sets spaces + * + * @param int[] $spaces The spaces in which the query has been executed. May be empty if all spaces of the specified account have been queried. + * + * @return $this + */ + public function setSpaces($spaces) + { + $this->container['spaces'] = $spaces; + + return $this; + } + + + /** + * Gets state + * + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecutionState + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecutionState $state The current state of the query execution. + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/AnalyticsQueryExecutionState.php b/lib/Model/AnalyticsQueryExecutionState.php new file mode 100644 index 0000000..25e755f --- /dev/null +++ b/lib/Model/AnalyticsQueryExecutionState.php @@ -0,0 +1,58 @@ + '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[]', + 'next_token' => 'string', + 'query_execution' => '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + 'rows' => 'string[][]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'columns' => null, + 'next_token' => null, + 'query_execution' => null, + 'rows' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'columns' => 'columns', + 'next_token' => 'nextToken', + 'query_execution' => 'queryExecution', + 'rows' => 'rows' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'columns' => 'setColumns', + 'next_token' => 'setNextToken', + 'query_execution' => 'setQueryExecution', + 'rows' => 'setRows' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'columns' => 'getColumns', + 'next_token' => 'getNextToken', + 'query_execution' => 'getQueryExecution', + 'rows' => 'getRows' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['columns'] = isset($data['columns']) ? $data['columns'] : null; + + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + + $this->container['query_execution'] = isset($data['query_execution']) ? $data['query_execution'] : null; + + $this->container['rows'] = isset($data['rows']) ? $data['rows'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets columns + * + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[] + */ + public function getColumns() + { + return $this->container['columns']; + } + + /** + * Sets columns + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[] $columns The schemas of the columns returned by the query (in order). Will be null if the results of the query are not (yet) available. + * + * @return $this + */ + public function setColumns($columns) + { + $this->container['columns'] = $columns; + + return $this; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token The token to be provided to fetch the next batch of results. May be null if no more result batches are available. + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + + /** + * Gets query_execution + * + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution + */ + public function getQueryExecution() + { + return $this->container['query_execution']; + } + + /** + * Sets query_execution + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution $query_execution The query execution which produced the result. + * + * @return $this + */ + public function setQueryExecution($query_execution) + { + $this->container['query_execution'] = $query_execution; + + return $this; + } + + + /** + * Gets rows + * + * @return string[][] + */ + public function getRows() + { + return $this->container['rows']; + } + + /** + * Sets rows + * + * @param string[][] $rows The rows of the result set contained in this batch where each row is a list of column values (in order of the columns specified in the query). Will be null if the results of the query are not (yet) available. + * + * @return $this + */ + public function setRows($rows) + { + $this->container['rows'] = $rows; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/AnalyticsSchemaColumn.php b/lib/Model/AnalyticsSchemaColumn.php new file mode 100644 index 0000000..edf6e3b --- /dev/null +++ b/lib/Model/AnalyticsSchemaColumn.php @@ -0,0 +1,526 @@ + 'string', + 'column_name' => 'string', + 'description' => 'map[string,string]', + 'precision' => 'int', + 'referenced_table' => 'string', + 'scale' => 'int', + 'table_name' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'alias_name' => null, + 'column_name' => null, + 'description' => null, + 'precision' => 'int32', + 'referenced_table' => null, + 'scale' => 'int32', + 'table_name' => null, + 'type' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'alias_name' => 'aliasName', + 'column_name' => 'columnName', + 'description' => 'description', + 'precision' => 'precision', + 'referenced_table' => 'referencedTable', + 'scale' => 'scale', + 'table_name' => 'tableName', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'alias_name' => 'setAliasName', + 'column_name' => 'setColumnName', + 'description' => 'setDescription', + 'precision' => 'setPrecision', + 'referenced_table' => 'setReferencedTable', + 'scale' => 'setScale', + 'table_name' => 'setTableName', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'alias_name' => 'getAliasName', + 'column_name' => 'getColumnName', + 'description' => 'getDescription', + 'precision' => 'getPrecision', + 'referenced_table' => 'getReferencedTable', + 'scale' => 'getScale', + 'table_name' => 'getTableName', + 'type' => 'getType' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['alias_name'] = isset($data['alias_name']) ? $data['alias_name'] : null; + + $this->container['column_name'] = isset($data['column_name']) ? $data['column_name'] : null; + + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + + $this->container['precision'] = isset($data['precision']) ? $data['precision'] : null; + + $this->container['referenced_table'] = isset($data['referenced_table']) ? $data['referenced_table'] : null; + + $this->container['scale'] = isset($data['scale']) ? $data['scale'] : null; + + $this->container['table_name'] = isset($data['table_name']) ? $data['table_name'] : null; + + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets alias_name + * + * @return string + */ + public function getAliasName() + { + return $this->container['alias_name']; + } + + /** + * Sets alias_name + * + * @param string $alias_name The name of the alias defined for the column in the query or null if none is defined. + * + * @return $this + */ + public function setAliasName($alias_name) + { + $this->container['alias_name'] = $alias_name; + + return $this; + } + + + /** + * Gets column_name + * + * @return string + */ + public function getColumnName() + { + return $this->container['column_name']; + } + + /** + * Sets column_name + * + * @param string $column_name The name of the column in the table or null if this is a synthetic column which is the result of some SQL expression. + * + * @return $this + */ + public function setColumnName($column_name) + { + $this->container['column_name'] = $column_name; + + return $this; + } + + + /** + * Gets description + * + * @return map[string,string] + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param map[string,string] $description A human readable description of the property contained in this column or null if this is a synthetic column which is the result of some SQL expression. + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + + /** + * Gets precision + * + * @return int + */ + public function getPrecision() + { + return $this->container['precision']; + } + + /** + * Sets precision + * + * @param int $precision The precision (maximal number of digits) for decimal data types, otherwise 0. + * + * @return $this + */ + public function setPrecision($precision) + { + $this->container['precision'] = $precision; + + return $this; + } + + + /** + * Gets referenced_table + * + * @return string + */ + public function getReferencedTable() + { + return $this->container['referenced_table']; + } + + /** + * Sets referenced_table + * + * @param string $referenced_table The name of the referenced table if this column represents a foreign-key relation to the IDs of another table, otherwise null. + * + * @return $this + */ + public function setReferencedTable($referenced_table) + { + $this->container['referenced_table'] = $referenced_table; + + return $this; + } + + + /** + * Gets scale + * + * @return int + */ + public function getScale() + { + return $this->container['scale']; + } + + /** + * Sets scale + * + * @param int $scale The scale (maximal number number of digits in the fractional part) in case of a decimal data type, otherwise 0. + * + * @return $this + */ + public function setScale($scale) + { + $this->container['scale'] = $scale; + + return $this; + } + + + /** + * Gets table_name + * + * @return string + */ + public function getTableName() + { + return $this->container['table_name']; + } + + /** + * Sets table_name + * + * @param string $table_name The name of the table which defines this column. + * + * @return $this + */ + public function setTableName($table_name) + { + $this->container['table_name'] = $table_name; + + return $this; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type The ORC data type of the column value. + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/AnalyticsSchemaTable.php b/lib/Model/AnalyticsSchemaTable.php new file mode 100644 index 0000000..4f53822 --- /dev/null +++ b/lib/Model/AnalyticsSchemaTable.php @@ -0,0 +1,366 @@ + '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[]', + 'description' => 'map[string,string]', + 'table_name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'columns' => null, + 'description' => null, + 'table_name' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'columns' => 'columns', + 'description' => 'description', + 'table_name' => 'tableName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'columns' => 'setColumns', + 'description' => 'setDescription', + 'table_name' => 'setTableName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'columns' => 'getColumns', + 'description' => 'getDescription', + 'table_name' => 'getTableName' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['columns'] = isset($data['columns']) ? $data['columns'] : null; + + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + + $this->container['table_name'] = isset($data['table_name']) ? $data['table_name'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets columns + * + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[] + */ + public function getColumns() + { + return $this->container['columns']; + } + + /** + * Sets columns + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[] $columns The schemas of all columns of this table. + * + * @return $this + */ + public function setColumns($columns) + { + $this->container['columns'] = $columns; + + return $this; + } + + + /** + * Gets description + * + * @return map[string,string] + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param map[string,string] $description A human readable description of the entity type contained in this table. + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + + /** + * Gets table_name + * + * @return string + */ + public function getTableName() + { + return $this->container['table_name']; + } + + /** + * Sets table_name + * + * @param string $table_name The name of this table. + * + * @return $this + */ + public function setTableName($table_name) + { + $this->container['table_name'] = $table_name; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/ChargeAttempt.php b/lib/Model/ChargeAttempt.php index 3043466..df71d2f 100644 --- a/lib/Model/ChargeAttempt.php +++ b/lib/Model/ChargeAttempt.php @@ -71,7 +71,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => '\DateTime', 'token_version' => '\PostFinanceCheckout\Sdk\Model\TokenVersion', 'user_failure_message' => 'string', - 'version' => 'int' + 'version' => 'int', + 'wallet_type' => '\PostFinanceCheckout\Sdk\Model\WalletType' ]; /** @@ -104,7 +105,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => 'date-time', 'token_version' => null, 'user_failure_message' => null, - 'version' => 'int32' + 'version' => 'int32', + 'wallet_type' => null ]; /** @@ -138,7 +140,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => 'timeoutOn', 'token_version' => 'tokenVersion', 'user_failure_message' => 'userFailureMessage', - 'version' => 'version' + 'version' => 'version', + 'wallet_type' => 'walletType' ]; /** @@ -171,7 +174,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => 'setTimeoutOn', 'token_version' => 'setTokenVersion', 'user_failure_message' => 'setUserFailureMessage', - 'version' => 'setVersion' + 'version' => 'setVersion', + 'wallet_type' => 'setWalletType' ]; /** @@ -204,7 +208,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => 'getTimeoutOn', 'token_version' => 'getTokenVersion', 'user_failure_message' => 'getUserFailureMessage', - 'version' => 'getVersion' + 'version' => 'getVersion', + 'wallet_type' => 'getWalletType' ]; @@ -271,6 +276,8 @@ public function __construct(array $data = null) $this->container['version'] = isset($data['version']) ? $data['version'] : null; + $this->container['wallet_type'] = isset($data['wallet_type']) ? $data['wallet_type'] : null; + } /** @@ -994,6 +1001,31 @@ public function setVersion($version) return $this; } + + /** + * Gets wallet_type + * + * @return \PostFinanceCheckout\Sdk\Model\WalletType + */ + public function getWalletType() + { + return $this->container['wallet_type']; + } + + /** + * Sets wallet_type + * + * @param \PostFinanceCheckout\Sdk\Model\WalletType $wallet_type + * + * @return $this + */ + public function setWalletType($wallet_type) + { + $this->container['wallet_type'] = $wallet_type; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PaymentInitiationAdviceFile.php b/lib/Model/PaymentInitiationAdviceFile.php index 4aab730..aab93c6 100644 --- a/lib/Model/PaymentInitiationAdviceFile.php +++ b/lib/Model/PaymentInitiationAdviceFile.php @@ -50,11 +50,14 @@ class PaymentInitiationAdviceFile implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'created_on' => '\DateTime', + 'failure_message' => 'string', 'file_generated_on' => '\DateTime', + 'forwarded_on' => '\DateTime', 'id' => 'int', 'linked_space_id' => 'int', 'name' => 'string', 'processed_on' => '\DateTime', + 'processor' => '\PostFinanceCheckout\Sdk\Model\PaymentProcessor', 'state' => '\PostFinanceCheckout\Sdk\Model\PaymentInitiationAdviceFileState' ]; @@ -65,11 +68,14 @@ class PaymentInitiationAdviceFile implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'created_on' => 'date-time', + 'failure_message' => null, 'file_generated_on' => 'date-time', + 'forwarded_on' => 'date-time', 'id' => 'int64', 'linked_space_id' => 'int64', 'name' => null, 'processed_on' => 'date-time', + 'processor' => null, 'state' => null ]; @@ -81,11 +87,14 @@ class PaymentInitiationAdviceFile implements ModelInterface, ArrayAccess */ protected static $attributeMap = [ 'created_on' => 'createdOn', + 'failure_message' => 'failureMessage', 'file_generated_on' => 'fileGeneratedOn', + 'forwarded_on' => 'forwardedOn', 'id' => 'id', 'linked_space_id' => 'linkedSpaceId', 'name' => 'name', 'processed_on' => 'processedOn', + 'processor' => 'processor', 'state' => 'state' ]; @@ -96,11 +105,14 @@ class PaymentInitiationAdviceFile implements ModelInterface, ArrayAccess */ protected static $setters = [ 'created_on' => 'setCreatedOn', + 'failure_message' => 'setFailureMessage', 'file_generated_on' => 'setFileGeneratedOn', + 'forwarded_on' => 'setForwardedOn', 'id' => 'setId', 'linked_space_id' => 'setLinkedSpaceId', 'name' => 'setName', 'processed_on' => 'setProcessedOn', + 'processor' => 'setProcessor', 'state' => 'setState' ]; @@ -111,11 +123,14 @@ class PaymentInitiationAdviceFile implements ModelInterface, ArrayAccess */ protected static $getters = [ 'created_on' => 'getCreatedOn', + 'failure_message' => 'getFailureMessage', 'file_generated_on' => 'getFileGeneratedOn', + 'forwarded_on' => 'getForwardedOn', 'id' => 'getId', 'linked_space_id' => 'getLinkedSpaceId', 'name' => 'getName', 'processed_on' => 'getProcessedOn', + 'processor' => 'getProcessor', 'state' => 'getState' ]; @@ -139,8 +154,12 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['failure_message'] = isset($data['failure_message']) ? $data['failure_message'] : null; + $this->container['file_generated_on'] = isset($data['file_generated_on']) ? $data['file_generated_on'] : null; + $this->container['forwarded_on'] = isset($data['forwarded_on']) ? $data['forwarded_on'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; @@ -149,6 +168,8 @@ public function __construct(array $data = null) $this->container['processed_on'] = isset($data['processed_on']) ? $data['processed_on'] : null; + $this->container['processor'] = isset($data['processor']) ? $data['processor'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; } @@ -267,6 +288,31 @@ public function setCreatedOn($created_on) } + /** + * Gets failure_message + * + * @return string + */ + public function getFailureMessage() + { + return $this->container['failure_message']; + } + + /** + * Sets failure_message + * + * @param string $failure_message + * + * @return $this + */ + public function setFailureMessage($failure_message) + { + $this->container['failure_message'] = $failure_message; + + return $this; + } + + /** * Gets file_generated_on * @@ -292,6 +338,31 @@ public function setFileGeneratedOn($file_generated_on) } + /** + * Gets forwarded_on + * + * @return \DateTime + */ + public function getForwardedOn() + { + return $this->container['forwarded_on']; + } + + /** + * Sets forwarded_on + * + * @param \DateTime $forwarded_on The shipping date indicates the date on which the pain file was transferred to an external processing system. + * + * @return $this + */ + public function setForwardedOn($forwarded_on) + { + $this->container['forwarded_on'] = $forwarded_on; + + return $this; + } + + /** * Gets id * @@ -392,6 +463,31 @@ public function setProcessedOn($processed_on) } + /** + * Gets processor + * + * @return \PostFinanceCheckout\Sdk\Model\PaymentProcessor + */ + public function getProcessor() + { + return $this->container['processor']; + } + + /** + * Sets processor + * + * @param \PostFinanceCheckout\Sdk\Model\PaymentProcessor $processor + * + * @return $this + */ + public function setProcessor($processor) + { + $this->container['processor'] = $processor; + + return $this; + } + + /** * Gets state * diff --git a/lib/Model/PaymentInitiationAdviceFileState.php b/lib/Model/PaymentInitiationAdviceFileState.php index 8f2469d..224ee15 100644 --- a/lib/Model/PaymentInitiationAdviceFileState.php +++ b/lib/Model/PaymentInitiationAdviceFileState.php @@ -35,7 +35,12 @@ class PaymentInitiationAdviceFileState /** * Possible values of this enum */ - const PENDING = 'PENDING'; + const CREATING = 'CREATING'; + const FAILED = 'FAILED'; + const CREATED = 'CREATED'; + const OVERDUE = 'OVERDUE'; + const UPLOADED = 'UPLOADED'; + const DOWNLOADED = 'DOWNLOADED'; const PROCESSED = 'PROCESSED'; /** @@ -45,7 +50,12 @@ class PaymentInitiationAdviceFileState public static function getAllowableEnumValues() { return [ - self::PENDING, + self::CREATING, + self::FAILED, + self::CREATED, + self::OVERDUE, + self::UPLOADED, + self::DOWNLOADED, self::PROCESSED, ]; } diff --git a/lib/Model/PaymentTerminalConfigurationVersionState.php b/lib/Model/PaymentTerminalConfigurationVersionState.php index 8914180..3b861d0 100644 --- a/lib/Model/PaymentTerminalConfigurationVersionState.php +++ b/lib/Model/PaymentTerminalConfigurationVersionState.php @@ -38,6 +38,7 @@ class PaymentTerminalConfigurationVersionState const PENDING = 'PENDING'; const SCHEDULING = 'SCHEDULING'; const ACTIVE = 'ACTIVE'; + const OBSOLETE = 'OBSOLETE'; const DELETING = 'DELETING'; const DELETED = 'DELETED'; @@ -51,6 +52,7 @@ public static function getAllowableEnumValues() self::PENDING, self::SCHEDULING, self::ACTIVE, + self::OBSOLETE, self::DELETING, self::DELETED, ]; diff --git a/lib/Model/TransactionCompletion.php b/lib/Model/TransactionCompletion.php index 62bc02d..0762b93 100644 --- a/lib/Model/TransactionCompletion.php +++ b/lib/Model/TransactionCompletion.php @@ -69,6 +69,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => '\PostFinanceCheckout\Sdk\Model\LineItem[]', 'space_view_id' => 'int', 'state' => '\PostFinanceCheckout\Sdk\Model\TransactionCompletionState', + 'statement_descriptor' => 'string', 'succeeded_on' => '\DateTime', 'tax_amount' => 'float', 'time_zone' => 'string', @@ -104,6 +105,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => null, 'space_view_id' => 'int64', 'state' => null, + 'statement_descriptor' => null, 'succeeded_on' => 'date-time', 'tax_amount' => null, 'time_zone' => null, @@ -140,6 +142,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => 'remainingLineItems', 'space_view_id' => 'spaceViewId', 'state' => 'state', + 'statement_descriptor' => 'statementDescriptor', 'succeeded_on' => 'succeededOn', 'tax_amount' => 'taxAmount', 'time_zone' => 'timeZone', @@ -175,6 +178,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => 'setRemainingLineItems', 'space_view_id' => 'setSpaceViewId', 'state' => 'setState', + 'statement_descriptor' => 'setStatementDescriptor', 'succeeded_on' => 'setSucceededOn', 'tax_amount' => 'setTaxAmount', 'time_zone' => 'setTimeZone', @@ -210,6 +214,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => 'getRemainingLineItems', 'space_view_id' => 'getSpaceViewId', 'state' => 'getState', + 'statement_descriptor' => 'getStatementDescriptor', 'succeeded_on' => 'getSucceededOn', 'tax_amount' => 'getTaxAmount', 'time_zone' => 'getTimeZone', @@ -275,6 +280,8 @@ public function __construct(array $data = null) $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['statement_descriptor'] = isset($data['statement_descriptor']) ? $data['statement_descriptor'] : null; + $this->container['succeeded_on'] = isset($data['succeeded_on']) ? $data['succeeded_on'] : null; $this->container['tax_amount'] = isset($data['tax_amount']) ? $data['tax_amount'] : null; @@ -308,6 +315,10 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'invoice_merchant_reference', the character length must be smaller than or equal to 100."; } + if (!is_null($this->container['statement_descriptor']) && (mb_strlen($this->container['statement_descriptor']) > 80)) { + $invalidProperties[] = "invalid value for 'statement_descriptor', the character length must be smaller than or equal to 80."; + } + return $invalidProperties; } @@ -949,6 +960,35 @@ public function setState($state) } + /** + * Gets statement_descriptor + * + * @return string + */ + public function getStatementDescriptor() + { + return $this->container['statement_descriptor']; + } + + /** + * Sets statement_descriptor + * + * @param string $statement_descriptor The statement descriptor explain charges or payments on bank statements. + * + * @return $this + */ + public function setStatementDescriptor($statement_descriptor) + { + if (!is_null($statement_descriptor) && (mb_strlen($statement_descriptor) > 80)) { + throw new \InvalidArgumentException('invalid length for $statement_descriptor when calling TransactionCompletion., must be smaller than or equal to 80.'); + } + + $this->container['statement_descriptor'] = $statement_descriptor; + + return $this; + } + + /** * Gets succeeded_on * diff --git a/lib/Model/TransactionCompletionRequest.php b/lib/Model/TransactionCompletionRequest.php index fbafc32..50122c5 100644 --- a/lib/Model/TransactionCompletionRequest.php +++ b/lib/Model/TransactionCompletionRequest.php @@ -53,6 +53,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => 'string', 'last_completion' => 'bool', 'line_items' => '\PostFinanceCheckout\Sdk\Model\CompletionLineItemCreate[]', + 'statement_descriptor' => 'string', 'transaction_id' => 'int' ]; @@ -66,6 +67,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => null, 'last_completion' => null, 'line_items' => null, + 'statement_descriptor' => null, 'transaction_id' => 'int64' ]; @@ -80,6 +82,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => 'invoiceMerchantReference', 'last_completion' => 'lastCompletion', 'line_items' => 'lineItems', + 'statement_descriptor' => 'statementDescriptor', 'transaction_id' => 'transactionId' ]; @@ -93,6 +96,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => 'setInvoiceMerchantReference', 'last_completion' => 'setLastCompletion', 'line_items' => 'setLineItems', + 'statement_descriptor' => 'setStatementDescriptor', 'transaction_id' => 'setTransactionId' ]; @@ -106,6 +110,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => 'getInvoiceMerchantReference', 'last_completion' => 'getLastCompletion', 'line_items' => 'getLineItems', + 'statement_descriptor' => 'getStatementDescriptor', 'transaction_id' => 'getTransactionId' ]; @@ -135,6 +140,8 @@ public function __construct(array $data = null) $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + $this->container['statement_descriptor'] = isset($data['statement_descriptor']) ? $data['statement_descriptor'] : null; + $this->container['transaction_id'] = isset($data['transaction_id']) ? $data['transaction_id'] : null; } @@ -166,6 +173,10 @@ public function listInvalidProperties() if ($this->container['last_completion'] === null) { $invalidProperties[] = "'last_completion' can't be null"; } + if (!is_null($this->container['statement_descriptor']) && (mb_strlen($this->container['statement_descriptor']) > 80)) { + $invalidProperties[] = "invalid value for 'statement_descriptor', the character length must be smaller than or equal to 80."; + } + if ($this->container['transaction_id'] === null) { $invalidProperties[] = "'transaction_id' can't be null"; } @@ -360,6 +371,35 @@ public function setLineItems($line_items) } + /** + * Gets statement_descriptor + * + * @return string + */ + public function getStatementDescriptor() + { + return $this->container['statement_descriptor']; + } + + /** + * Sets statement_descriptor + * + * @param string $statement_descriptor The statement descriptor explain charges or payments on bank statements. + * + * @return $this + */ + public function setStatementDescriptor($statement_descriptor) + { + if (!is_null($statement_descriptor) && (mb_strlen($statement_descriptor) > 80)) { + throw new \InvalidArgumentException('invalid length for $statement_descriptor when calling TransactionCompletionRequest., must be smaller than or equal to 80.'); + } + + $this->container['statement_descriptor'] = $statement_descriptor; + + return $this; + } + + /** * Gets transaction_id * diff --git a/lib/Model/WalletType.php b/lib/Model/WalletType.php new file mode 100644 index 0000000..f83b5c8 --- /dev/null +++ b/lib/Model/WalletType.php @@ -0,0 +1,52 @@ +apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/account/count' ); @@ -187,7 +189,8 @@ public function create($entity) { * Operation createWithHttpInfo * * Create - * + + * * @param \PostFinanceCheckout\Sdk\Model\AccountCreate $entity The account object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -232,13 +235,14 @@ public function createWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Account', '/account/create' ); @@ -293,7 +297,8 @@ public function delete($id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -338,13 +343,14 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/account/delete' ); @@ -399,7 +405,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the account which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -442,13 +449,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Account', '/account/read' ); @@ -503,7 +511,8 @@ public function search($query) { * Operation searchWithHttpInfo * * Search - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the accounts which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -548,13 +557,14 @@ public function searchWithHttpInfo($query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Account[]', '/account/search' ); @@ -609,7 +619,8 @@ public function update($entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param \PostFinanceCheckout\Sdk\Model\AccountUpdate $entity The account object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -654,13 +665,14 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Account', '/account/update' ); diff --git a/lib/Service/AnalyticsQueryService.php b/lib/Service/AnalyticsQueryService.php new file mode 100644 index 0000000..40e41ef --- /dev/null +++ b/lib/Service/AnalyticsQueryService.php @@ -0,0 +1,710 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation cancelExecution + * + * Cancel Execution + * + * @param int $id The ID of the query execution to cancel. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function cancelExecution($id) { + return $this->cancelExecutionWithHttpInfo($id)->getData(); + } + + /** + * Operation cancelExecutionWithHttpInfo + * + * Cancel Execution + + * + * @param int $id The ID of the query execution to cancel. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function cancelExecutionWithHttpInfo($id) { + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling cancelExecution'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/analytics-query/cancel-execution'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $timeOut = $this->apiClient->getConnectionTimeout(); + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + $timeOut, + null, + '/analytics-query/cancel-execution' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation fetchResult + * + * Fetch Result + * + * @param int $id The ID of the query execution for which to fetch the result. (required) + * @param int $timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) + * @param int $max_rows The maximum number of rows to return per batch. (Between 1 and 999. The default is 999.) (optional) + * @param string $next_token The next-token of the preceding batch to get the next result batch or null to get the first result batch. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryResultBatch + */ + public function fetchResult($id, $timeout = null, $max_rows = null, $next_token = null) { + return $this->fetchResultWithHttpInfo($id, $timeout, $max_rows, $next_token)->getData(); + } + + /** + * Operation fetchResultWithHttpInfo + * + * Fetch Result + + * + * @param int $id The ID of the query execution for which to fetch the result. (required) + * @param int $timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) + * @param int $max_rows The maximum number of rows to return per batch. (Between 1 and 999. The default is 999.) (optional) + * @param string $next_token The next-token of the preceding batch to get the next result batch or null to get the first result batch. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function fetchResultWithHttpInfo($id, $timeout = null, $max_rows = null, $next_token = null) { + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling fetchResult'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + if (!is_null($timeout)) { + $queryParams['timeout'] = $this->apiClient->getSerializer()->toQueryValue($timeout); + } + if (!is_null($max_rows)) { + $queryParams['maxRows'] = $this->apiClient->getSerializer()->toQueryValue($max_rows); + } + if (!is_null($next_token)) { + $queryParams['nextToken'] = $this->apiClient->getSerializer()->toQueryValue($next_token); + } + + // path params + $resourcePath = '/analytics-query/fetch-result'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $timeOut = $this->apiClient->getConnectionTimeout(); + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + $timeOut, + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryResultBatch', + '/analytics-query/fetch-result' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryResultBatch', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryResultBatch', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation generateDownloadUrl + * + * Generate Download URL + * + * @param int $id The ID of the query execution for which to generate the download URL. (required) + * @param int $timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return string + */ + public function generateDownloadUrl($id, $timeout = null) { + return $this->generateDownloadUrlWithHttpInfo($id, $timeout)->getData(); + } + + /** + * Operation generateDownloadUrlWithHttpInfo + * + * Generate Download URL + + * + * @param int $id The ID of the query execution for which to generate the download URL. (required) + * @param int $timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function generateDownloadUrlWithHttpInfo($id, $timeout = null) { + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling generateDownloadUrl'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['text/plain']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + if (!is_null($timeout)) { + $queryParams['timeout'] = $this->apiClient->getSerializer()->toQueryValue($timeout); + } + + // path params + $resourcePath = '/analytics-query/generate-download-url'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $timeOut = $this->apiClient->getConnectionTimeout(); + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + $timeOut, + 'string', + '/analytics-query/generate-download-url' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation schema + * + * Get Schemas + * + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaTable[] + */ + public function schema() { + return $this->schemaWithHttpInfo()->getData(); + } + + /** + * Operation schemaWithHttpInfo + * + * Get Schemas + + * + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function schemaWithHttpInfo() { + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + + // path params + $resourcePath = '/analytics-query/schema'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $timeOut = $this->apiClient->getConnectionTimeout(); + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + $timeOut, + '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaTable[]', + '/analytics-query/schema' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaTable[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaTable[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation status + * + * Execution Status + * + * @param int $id The ID of the query execution for which to get the status. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution + */ + public function status($id) { + return $this->statusWithHttpInfo($id)->getData(); + } + + /** + * Operation statusWithHttpInfo + * + * Execution Status + + * + * @param int $id The ID of the query execution for which to get the status. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function statusWithHttpInfo($id) { + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling status'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/analytics-query/status'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $timeOut = $this->apiClient->getConnectionTimeout(); + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + $timeOut, + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + '/analytics-query/status' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation submitQuery + * + * Submit Query + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsQuery $query The query to submit. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution + */ + public function submitQuery($query) { + return $this->submitQueryWithHttpInfo($query)->getData(); + } + + /** + * Operation submitQueryWithHttpInfo + * + * Submit Query + + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsQuery $query The query to submit. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function submitQueryWithHttpInfo($query) { + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling submitQuery'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + + // path params + $resourcePath = '/analytics-query/submit-query'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $timeOut = $this->apiClient->getConnectionTimeout(); + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + $timeOut, + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + '/analytics-query/submit-query' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/lib/Service/ApplicationUserService.php b/lib/Service/ApplicationUserService.php index 92e5b8a..fc102ae 100644 --- a/lib/Service/ApplicationUserService.php +++ b/lib/Service/ApplicationUserService.php @@ -85,7 +85,8 @@ public function count($filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -126,13 +127,14 @@ public function countWithHttpInfo($filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/application-user/count' ); @@ -187,7 +189,8 @@ public function create($entity) { * Operation createWithHttpInfo * * Create - * + + * * @param \PostFinanceCheckout\Sdk\Model\ApplicationUserCreate $entity The user object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -232,13 +235,14 @@ public function createWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ApplicationUserCreateWithMacKey', '/application-user/create' ); @@ -293,7 +297,8 @@ public function delete($id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -338,13 +343,14 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/application-user/delete' ); @@ -399,7 +405,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the application user which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -442,13 +449,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ApplicationUser', '/application-user/read' ); @@ -503,7 +511,8 @@ public function search($query) { * Operation searchWithHttpInfo * * Search - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the application users which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -548,13 +557,14 @@ public function searchWithHttpInfo($query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ApplicationUser[]', '/application-user/search' ); @@ -609,7 +619,8 @@ public function update($entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param \PostFinanceCheckout\Sdk\Model\ApplicationUserUpdate $entity The application user entity with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -654,13 +665,14 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ApplicationUser', '/application-user/update' ); diff --git a/lib/Service/BankAccountService.php b/lib/Service/BankAccountService.php index c5e0b0b..0062eff 100644 --- a/lib/Service/BankAccountService.php +++ b/lib/Service/BankAccountService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/bank-account/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the bank account which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\BankAccount', '/bank-account/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the bank accounts which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\BankAccount[]', '/bank-account/search' ); diff --git a/lib/Service/BankTransactionService.php b/lib/Service/BankTransactionService.php index 990db96..edc9eff 100644 --- a/lib/Service/BankTransactionService.php +++ b/lib/Service/BankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/bank-transaction/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\BankTransaction', '/bank-transaction/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\BankTransaction[]', '/bank-transaction/search' ); diff --git a/lib/Service/ChargeAttemptService.php b/lib/Service/ChargeAttemptService.php index 6acebd6..054903d 100644 --- a/lib/Service/ChargeAttemptService.php +++ b/lib/Service/ChargeAttemptService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/charge-attempt/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the charge attempt which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeAttempt', '/charge-attempt/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the charge attempts which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeAttempt[]', '/charge-attempt/search' ); diff --git a/lib/Service/ChargeBankTransactionService.php b/lib/Service/ChargeBankTransactionService.php index ca1236e..15b532f 100644 --- a/lib/Service/ChargeBankTransactionService.php +++ b/lib/Service/ChargeBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/charge-bank-transaction/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the charge bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeBankTransaction', '/charge-bank-transaction/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the charge bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeBankTransaction[]', '/charge-bank-transaction/search' ); diff --git a/lib/Service/ChargeFlowLevelPaymentLinkService.php b/lib/Service/ChargeFlowLevelPaymentLinkService.php index cff564e..e2276fa 100644 --- a/lib/Service/ChargeFlowLevelPaymentLinkService.php +++ b/lib/Service/ChargeFlowLevelPaymentLinkService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/charge-flow-level-payment-link/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the charge flow level payment link which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevelPaymentLink', '/charge-flow-level-payment-link/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the charge flow level payment links which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevelPaymentLink[]', '/charge-flow-level-payment-link/search' ); diff --git a/lib/Service/ChargeFlowLevelService.php b/lib/Service/ChargeFlowLevelService.php index 2a0bb80..0cefac3 100644 --- a/lib/Service/ChargeFlowLevelService.php +++ b/lib/Service/ChargeFlowLevelService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/charge-flow-level/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment flow level which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel', '/charge-flow-level/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment flow levels which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel[]', '/charge-flow-level/search' ); @@ -425,7 +431,8 @@ public function sendMessage($space_id, $id) { * Operation sendMessageWithHttpInfo * * Send Payment Link - * + + * * @param int $space_id (required) * @param int $id The id of the charge flow level whose payment link should be sent. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,13 +483,14 @@ public function sendMessageWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel', '/charge-flow-level/sendMessage' ); diff --git a/lib/Service/ChargeFlowService.php b/lib/Service/ChargeFlowService.php index 02e1753..25f3d9d 100644 --- a/lib/Service/ChargeFlowService.php +++ b/lib/Service/ChargeFlowService.php @@ -86,7 +86,8 @@ public function applyFlow($space_id, $id) { * Operation applyFlowWithHttpInfo * * applyFlow - * + + * * @param int $space_id (required) * @param int $id The transaction id of the transaction which should be process asynchronously. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function applyFlowWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/charge-flow/applyFlow' ); @@ -199,7 +201,8 @@ public function cancelChargeFlow($space_id, $id) { * Operation cancelChargeFlowWithHttpInfo * * Cancel Charge Flow - * + + * * @param int $space_id (required) * @param int $id The ID of the transaction for which the charge flow should be canceled. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function cancelChargeFlowWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/charge-flow/cancel-charge-flow' ); @@ -312,7 +316,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -361,13 +366,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/charge-flow/count' ); @@ -423,7 +429,8 @@ public function fetchChargeFlowPaymentPageUrl($space_id, $id) { * Operation fetchChargeFlowPaymentPageUrlWithHttpInfo * * Fetch Charge Flow Payment Page URL - * + + * * @param int $space_id (required) * @param int $id The transaction id of the transaction for which the URL of the charge flow should be fetched. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -474,13 +481,14 @@ public function fetchChargeFlowPaymentPageUrlWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/charge-flow/fetch-charge-flow-payment-page-url' ); @@ -536,7 +544,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the charge flow which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -587,13 +596,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeFlow', '/charge-flow/read' ); @@ -649,7 +659,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the charge flows which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -702,13 +713,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ChargeFlow[]', '/charge-flow/search' ); @@ -766,7 +778,8 @@ public function updateRecipient($space_id, $transaction_id, $type, $recipient) { * Operation updateRecipientWithHttpInfo * * updateRecipient - * + + * * @param int $space_id (required) * @param int $transaction_id The transaction id of the transaction whose recipient should be updated. (required) * @param int $type The id of the charge flow configuration type to recipient should be updated for. (required) @@ -833,13 +846,14 @@ public function updateRecipientWithHttpInfo($space_id, $transaction_id, $type, $ } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/charge-flow/updateRecipient' ); diff --git a/lib/Service/ConditionTypeService.php b/lib/Service/ConditionTypeService.php index d98fe1e..5dca178 100644 --- a/lib/Service/ConditionTypeService.php +++ b/lib/Service/ConditionTypeService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ConditionType[]', '/condition-type/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the condition type which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ConditionType', '/condition-type/read' ); diff --git a/lib/Service/CountryService.php b/lib/Service/CountryService.php index 32794b4..3332334 100644 --- a/lib/Service/CountryService.php +++ b/lib/Service/CountryService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RestCountry[]', '/country/all' ); diff --git a/lib/Service/CountryStateService.php b/lib/Service/CountryStateService.php index b7bf7ad..2c1d11f 100644 --- a/lib/Service/CountryStateService.php +++ b/lib/Service/CountryStateService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RestCountryState[]', '/country-state/all' ); @@ -180,7 +182,8 @@ public function country($code) { * Operation countryWithHttpInfo * * Find by Country - * + + * * @param string $code The country code in ISO code two letter format for which all states should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function countryWithHttpInfo($code) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RestCountryState[]', '/country-state/country' ); diff --git a/lib/Service/CurrencyBankAccountService.php b/lib/Service/CurrencyBankAccountService.php index 85cd839..5a0d54b 100644 --- a/lib/Service/CurrencyBankAccountService.php +++ b/lib/Service/CurrencyBankAccountService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/currency-bank-account/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the currency bank account which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CurrencyBankAccount', '/currency-bank-account/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the currency bank accounts which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CurrencyBankAccount[]', '/currency-bank-account/search' ); diff --git a/lib/Service/CurrencyService.php b/lib/Service/CurrencyService.php index 36fa83a..f72e7b1 100644 --- a/lib/Service/CurrencyService.php +++ b/lib/Service/CurrencyService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RestCurrency[]', '/currency/all' ); diff --git a/lib/Service/CustomerAddressService.php b/lib/Service/CustomerAddressService.php index adc46ff..8b8c862 100644 --- a/lib/Service/CustomerAddressService.php +++ b/lib/Service/CustomerAddressService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/customer-address/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerAddressCreate $entity The customer object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CustomerAddress', '/customer-address/create' ); @@ -312,7 +316,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/customer-address/delete' ); @@ -427,7 +433,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the customer which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CustomerAddress', '/customer-address/read' ); @@ -540,7 +548,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the customers which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,13 +602,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CustomerAddress[]', '/customer-address/search' ); @@ -655,7 +665,8 @@ public function selectDefaultAddress($space_id, $id) { * Operation selectDefaultAddressWithHttpInfo * * selectDefaultAddress - * + + * * @param int $space_id (required) * @param int $id The id of the customer address to set as default. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -706,13 +717,14 @@ public function selectDefaultAddressWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/customer-address/select-default-address' ); @@ -768,7 +780,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerAddressActive $entity The customer object with the properties which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -821,13 +834,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CustomerAddress', '/customer-address/update' ); diff --git a/lib/Service/CustomerCommentService.php b/lib/Service/CustomerCommentService.php index 248d27c..aecbb71 100644 --- a/lib/Service/CustomerCommentService.php +++ b/lib/Service/CustomerCommentService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/customer-comment/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerCommentCreate $entity The customer object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CustomerComment', '/customer-comment/create' ); @@ -312,7 +316,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/customer-comment/delete' ); @@ -427,7 +433,8 @@ public function pinComment($space_id, $id) { * Operation pinCommentWithHttpInfo * * pinComment - * + + * * @param int $space_id (required) * @param int $id The id of the customer comment to pin to the top. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function pinCommentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/customer-comment/pin-comment' ); @@ -540,7 +548,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the customer which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,13 +600,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CustomerComment', '/customer-comment/read' ); @@ -653,7 +663,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the customers which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -706,13 +717,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CustomerComment[]', '/customer-comment/search' ); @@ -768,7 +780,8 @@ public function unpinComment($space_id, $id) { * Operation unpinCommentWithHttpInfo * * unpinComment - * + + * * @param int $space_id (required) * @param int $id The id of the customer comment to unpin. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,13 +832,14 @@ public function unpinCommentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/customer-comment/unpin-comment' ); @@ -881,7 +895,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerCommentActive $entity The customer object with the properties which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -934,13 +949,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\CustomerComment', '/customer-comment/update' ); diff --git a/lib/Service/CustomerService.php b/lib/Service/CustomerService.php index b84fa7f..23b5bab 100644 --- a/lib/Service/CustomerService.php +++ b/lib/Service/CustomerService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/customer/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerCreate $entity The customer object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Customer', '/customer/create' ); @@ -312,7 +316,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/customer/delete' ); @@ -427,7 +433,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the customer which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Customer', '/customer/read' ); @@ -540,7 +548,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the customers which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,13 +602,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Customer[]', '/customer/search' ); @@ -655,7 +665,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerActive $entity The customer object with the properties which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -708,13 +719,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Customer', '/customer/update' ); diff --git a/lib/Service/DeliveryIndicationService.php b/lib/Service/DeliveryIndicationService.php index 896f5ce..b6b1e05 100644 --- a/lib/Service/DeliveryIndicationService.php +++ b/lib/Service/DeliveryIndicationService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/delivery-indication/count' ); @@ -197,7 +199,8 @@ public function markAsNotSuitable($space_id, $delivery_indication_id) { * Operation markAsNotSuitableWithHttpInfo * * markAsNotSuitable - * + + * * @param int $space_id (required) * @param int $delivery_indication_id The delivery indication id which should be marked as not suitable. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function markAsNotSuitableWithHttpInfo($space_id, $delivery_indication_id } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', '/delivery-indication/markAsNotSuitable' ); @@ -312,7 +316,8 @@ public function markAsSuitable($space_id, $delivery_indication_id) { * Operation markAsSuitableWithHttpInfo * * markAsSuitable - * + + * * @param int $space_id (required) * @param int $delivery_indication_id The delivery indication id which should be marked as suitable. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function markAsSuitableWithHttpInfo($space_id, $delivery_indication_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', '/delivery-indication/markAsSuitable' ); @@ -427,7 +433,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the delivery indication which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', '/delivery-indication/read' ); @@ -540,7 +548,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the delivery indications which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,13 +602,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\DeliveryIndication[]', '/delivery-indication/search' ); diff --git a/lib/Service/DocumentTemplateService.php b/lib/Service/DocumentTemplateService.php index 6608c4d..65fbd29 100644 --- a/lib/Service/DocumentTemplateService.php +++ b/lib/Service/DocumentTemplateService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/document-template/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the document template which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\DocumentTemplate', '/document-template/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the document templates which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\DocumentTemplate[]', '/document-template/search' ); diff --git a/lib/Service/DocumentTemplateTypeService.php b/lib/Service/DocumentTemplateTypeService.php index 8629ac2..a1afa3c 100644 --- a/lib/Service/DocumentTemplateTypeService.php +++ b/lib/Service/DocumentTemplateTypeService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\DocumentTemplateType[]', '/document-template-type/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the document template type which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\DocumentTemplateType', '/document-template-type/read' ); diff --git a/lib/Service/ExternalTransferBankTransactionService.php b/lib/Service/ExternalTransferBankTransactionService.php index c515c8e..023a7eb 100644 --- a/lib/Service/ExternalTransferBankTransactionService.php +++ b/lib/Service/ExternalTransferBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/external-transfer-bank-transaction/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the external transfer bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ExternalTransferBankTransaction', '/external-transfer-bank-transaction/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the external transfer bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ExternalTransferBankTransaction[]', '/external-transfer-bank-transaction/search' ); diff --git a/lib/Service/HumanUserService.php b/lib/Service/HumanUserService.php index 48c114f..b99d020 100644 --- a/lib/Service/HumanUserService.php +++ b/lib/Service/HumanUserService.php @@ -85,7 +85,8 @@ public function count($filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -126,13 +127,14 @@ public function countWithHttpInfo($filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/human-user/count' ); @@ -187,7 +189,8 @@ public function create($entity) { * Operation createWithHttpInfo * * Create - * + + * * @param \PostFinanceCheckout\Sdk\Model\HumanUserCreate $entity The human user object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -232,13 +235,14 @@ public function createWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\HumanUser', '/human-user/create' ); @@ -293,7 +297,8 @@ public function delete($id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -338,13 +343,14 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/human-user/delete' ); @@ -399,7 +405,8 @@ public function export($request) { * Operation exportWithHttpInfo * * Export - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityExportRequest $request The request controls the entries which are exported. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -444,13 +451,14 @@ public function exportWithHttpInfo($request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/human-user/export' ); @@ -505,7 +513,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the human user which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -548,13 +557,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\HumanUser', '/human-user/read' ); @@ -609,7 +619,8 @@ public function search($query) { * Operation searchWithHttpInfo * * Search - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the human users which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -654,13 +665,14 @@ public function searchWithHttpInfo($query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\HumanUser[]', '/human-user/search' ); @@ -715,7 +727,8 @@ public function update($entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param \PostFinanceCheckout\Sdk\Model\HumanUserUpdate $entity The object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -760,13 +773,14 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\HumanUser', '/human-user/update' ); diff --git a/lib/Service/InternalTransferBankTransactionService.php b/lib/Service/InternalTransferBankTransactionService.php index 6c58693..85f9d6f 100644 --- a/lib/Service/InternalTransferBankTransactionService.php +++ b/lib/Service/InternalTransferBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/internal-transfer-bank-transaction/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the internal transfer bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InternalTransferBankTransaction', '/internal-transfer-bank-transaction/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the internal transfer bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InternalTransferBankTransaction[]', '/internal-transfer-bank-transaction/search' ); diff --git a/lib/Service/InvoiceReconciliationRecordInvoiceLinkService.php b/lib/Service/InvoiceReconciliationRecordInvoiceLinkService.php index f438903..8a23eb3 100644 --- a/lib/Service/InvoiceReconciliationRecordInvoiceLinkService.php +++ b/lib/Service/InvoiceReconciliationRecordInvoiceLinkService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/invoice-reconciliation-record-invoice-link-service/count' ); @@ -199,7 +201,8 @@ public function link($space_id, $record_id, $completion_id, $amount = null) { * Operation linkWithHttpInfo * * Link Invoice - * + + * * @param int $space_id (required) * @param int $record_id The ID of the invoice reconciliation record which should be linked. (required) * @param int $completion_id The ID of the completion which should be linked. (required) @@ -262,13 +265,14 @@ public function linkWithHttpInfo($space_id, $record_id, $completion_id, $amount } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink', '/invoice-reconciliation-record-invoice-link-service/link' ); @@ -332,7 +336,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the invoice reconciliation record invoice link which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -383,13 +388,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink', '/invoice-reconciliation-record-invoice-link-service/read' ); @@ -445,7 +451,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reconciliation record invoice link which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -498,13 +505,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink[]', '/invoice-reconciliation-record-invoice-link-service/search' ); @@ -561,7 +569,8 @@ public function unlinkTransaction($space_id, $record_id, $completion_id) { * Operation unlinkTransactionWithHttpInfo * * Unlink Invoice - * + + * * @param int $space_id (required) * @param int $record_id The ID of the invoice reconciliation record which should be unlinked. (required) * @param int $completion_id The ID of the completion which should be unlinked. (required) @@ -620,13 +629,14 @@ public function unlinkTransactionWithHttpInfo($space_id, $record_id, $completion } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/invoice-reconciliation-record-invoice-link-service/unlink-transaction' ); diff --git a/lib/Service/InvoiceReconciliationRecordService.php b/lib/Service/InvoiceReconciliationRecordService.php index 654cf58..552eba2 100644 --- a/lib/Service/InvoiceReconciliationRecordService.php +++ b/lib/Service/InvoiceReconciliationRecordService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/invoice-reconciliation-record-service/count' ); @@ -197,7 +199,8 @@ public function discard($space_id, $id) { * Operation discardWithHttpInfo * * Discard - * + + * * @param int $space_id (required) * @param int $id The ID of the invoice reconciliation record which should be discarded. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function discardWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/invoice-reconciliation-record-service/discard' ); @@ -310,7 +314,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the invoice reconciliation record which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -361,13 +366,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord', '/invoice-reconciliation-record-service/read' ); @@ -423,7 +429,8 @@ public function resolve($space_id, $id) { * Operation resolveWithHttpInfo * * Resolve - * + + * * @param int $space_id (required) * @param int $id The ID of the invoice reconciliation record which should be resolved. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -474,13 +481,14 @@ public function resolveWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/invoice-reconciliation-record-service/resolve' ); @@ -536,7 +544,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reconciliation records which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -589,13 +598,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord[]', '/invoice-reconciliation-record-service/search' ); @@ -651,7 +661,8 @@ public function searchForInvoicesByQuery($space_id, $query) { * Operation searchForInvoicesByQueryWithHttpInfo * * Search for matchable invoices by query - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoices which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,13 +715,14 @@ public function searchForInvoicesByQueryWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice[]', '/invoice-reconciliation-record-service/search-for-invoices-by-query' ); diff --git a/lib/Service/InvoiceReimbursementService.php b/lib/Service/InvoiceReimbursementService.php index 5a42215..31e3a16 100644 --- a/lib/Service/InvoiceReimbursementService.php +++ b/lib/Service/InvoiceReimbursementService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/invoice-reimbursement-service/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the invoice reimbursement which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursement', '/invoice-reimbursement-service/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reimbursements which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursementWithRefundReference[]', '/invoice-reimbursement-service/search' ); @@ -426,7 +432,8 @@ public function updateConnector($space_id, $id, $payment_connector_configuration * Operation updateConnectorWithHttpInfo * * Update payment connector configuration - * + + * * @param int $space_id (required) * @param int $id The ID of the invoice reimbursement of which connector should be updated. (required) * @param int $payment_connector_configuration_id (required) @@ -485,13 +492,14 @@ public function updateConnectorWithHttpInfo($space_id, $id, $payment_connector_c } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/invoice-reimbursement-service/update-connector' ); @@ -549,7 +557,8 @@ public function updateIban($space_id, $id, $recipient_iban = null, $sender_iban * Operation updateIbanWithHttpInfo * * Update IBAN - * + + * * @param int $space_id (required) * @param int $id The ID of the invoice reimbursement of which IBANs should be updated. (required) * @param string $recipient_iban (optional) @@ -608,13 +617,14 @@ public function updateIbanWithHttpInfo($space_id, $id, $recipient_iban = null, $ } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/invoice-reimbursement-service/update-iban' ); diff --git a/lib/Service/LabelDescriptionGroupService.php b/lib/Service/LabelDescriptionGroupService.php index 0860cb8..434a3af 100644 --- a/lib/Service/LabelDescriptionGroupService.php +++ b/lib/Service/LabelDescriptionGroupService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\LabelDescriptorGroup[]', '/label-description-group-service/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the label descriptor group which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\LabelDescriptorGroup', '/label-description-group-service/read' ); diff --git a/lib/Service/LabelDescriptionService.php b/lib/Service/LabelDescriptionService.php index 39b8d74..f881961 100644 --- a/lib/Service/LabelDescriptionService.php +++ b/lib/Service/LabelDescriptionService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\LabelDescriptor[]', '/label-description-service/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the label descriptor which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\LabelDescriptor', '/label-description-service/read' ); diff --git a/lib/Service/LanguageService.php b/lib/Service/LanguageService.php index 7478ddc..8b8f999 100644 --- a/lib/Service/LanguageService.php +++ b/lib/Service/LanguageService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RestLanguage[]', '/language/all' ); diff --git a/lib/Service/LegalOrganizationFormService.php b/lib/Service/LegalOrganizationFormService.php index abc59cf..77ee2e3 100644 --- a/lib/Service/LegalOrganizationFormService.php +++ b/lib/Service/LegalOrganizationFormService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm[]', '/legal-organization-form/all' ); @@ -180,7 +182,8 @@ public function country($code) { * Operation countryWithHttpInfo * * Find by Country - * + + * * @param string $code The country in ISO 3166-1 alpha-2 format, for which all legal organization forms should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function countryWithHttpInfo($code) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm[]', '/legal-organization-form/country' ); @@ -284,7 +288,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the legal organization form which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -327,13 +332,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm', '/legal-organization-form/read' ); diff --git a/lib/Service/ManualTaskService.php b/lib/Service/ManualTaskService.php index 0bd1d72..fffb449 100644 --- a/lib/Service/ManualTaskService.php +++ b/lib/Service/ManualTaskService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/manual-task/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the manual task which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ManualTask', '/manual-task/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the manual tasks which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ManualTask[]', '/manual-task/search' ); diff --git a/lib/Service/PaymentConnectorConfigurationService.php b/lib/Service/PaymentConnectorConfigurationService.php index d451494..207f812 100644 --- a/lib/Service/PaymentConnectorConfigurationService.php +++ b/lib/Service/PaymentConnectorConfigurationService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/payment-connector-configuration/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment connector configuration which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration', '/payment-connector-configuration/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment connector configuration which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration[]', '/payment-connector-configuration/search' ); diff --git a/lib/Service/PaymentConnectorService.php b/lib/Service/PaymentConnectorService.php index 8d3049e..126b58a 100644 --- a/lib/Service/PaymentConnectorService.php +++ b/lib/Service/PaymentConnectorService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentConnector[]', '/payment-connector/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the connector which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentConnector', '/payment-connector/read' ); diff --git a/lib/Service/PaymentLinkService.php b/lib/Service/PaymentLinkService.php index 036da48..78533ad 100644 --- a/lib/Service/PaymentLinkService.php +++ b/lib/Service/PaymentLinkService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/payment-link/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\PaymentLinkCreate $entity The payment link object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentLink', '/payment-link/create' ); @@ -312,7 +316,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/payment-link/delete' ); @@ -427,7 +433,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment links which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentLink', '/payment-link/read' ); @@ -540,7 +548,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment links which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,13 +602,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentLink[]', '/payment-link/search' ); @@ -655,7 +665,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\PaymentLinkUpdate $entity The object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -708,13 +719,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentLink', '/payment-link/update' ); diff --git a/lib/Service/PaymentMethodBrandService.php b/lib/Service/PaymentMethodBrandService.php index aa6905a..d55a24e 100644 --- a/lib/Service/PaymentMethodBrandService.php +++ b/lib/Service/PaymentMethodBrandService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[]', '/payment-method-brand/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the payment method brand which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentMethodBrand', '/payment-method-brand/read' ); diff --git a/lib/Service/PaymentMethodConfigurationService.php b/lib/Service/PaymentMethodConfigurationService.php index c0985e0..a93578c 100644 --- a/lib/Service/PaymentMethodConfigurationService.php +++ b/lib/Service/PaymentMethodConfigurationService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/payment-method-configuration/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment method configuration which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration', '/payment-method-configuration/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment method configuration which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', '/payment-method-configuration/search' ); diff --git a/lib/Service/PaymentMethodService.php b/lib/Service/PaymentMethodService.php index cd09325..751691d 100644 --- a/lib/Service/PaymentMethodService.php +++ b/lib/Service/PaymentMethodService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentMethod[]', '/payment-method/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the payment method which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentMethod', '/payment-method/read' ); diff --git a/lib/Service/PaymentProcessorConfigurationService.php b/lib/Service/PaymentProcessorConfigurationService.php index a4dc958..1fd51b5 100644 --- a/lib/Service/PaymentProcessorConfigurationService.php +++ b/lib/Service/PaymentProcessorConfigurationService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/payment-processor-configuration/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment processor configuration which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentProcessorConfiguration', '/payment-processor-configuration/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment processor configuration which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentProcessorConfiguration[]', '/payment-processor-configuration/search' ); diff --git a/lib/Service/PaymentProcessorService.php b/lib/Service/PaymentProcessorService.php index 8a95056..45bd90d 100644 --- a/lib/Service/PaymentProcessorService.php +++ b/lib/Service/PaymentProcessorService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentProcessor[]', '/payment-processor/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the processor which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentProcessor', '/payment-processor/read' ); diff --git a/lib/Service/PaymentTerminalService.php b/lib/Service/PaymentTerminalService.php index 746b57c..b86fbf4 100644 --- a/lib/Service/PaymentTerminalService.php +++ b/lib/Service/PaymentTerminalService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/payment-terminal/count' ); @@ -198,7 +200,8 @@ public function link($space_id, $terminal_id, $serial_number) { * Operation linkWithHttpInfo * * Link Device With Terminal - * + + * * @param int $space_id (required) * @param int $terminal_id (required) * @param string $serial_number (required) @@ -257,13 +260,14 @@ public function linkWithHttpInfo($space_id, $terminal_id, $serial_number) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/payment-terminal/link' ); @@ -319,7 +323,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment terminal which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -370,13 +375,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentTerminal', '/payment-terminal/read' ); @@ -432,7 +438,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment terminals which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -485,13 +492,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentTerminal[]', '/payment-terminal/search' ); @@ -547,7 +555,8 @@ public function triggerFinalBalance($space_id, $terminal_id) { * Operation triggerFinalBalanceWithHttpInfo * * Remotely Trigger Final Balance - * + + * * @param int $space_id (required) * @param int $terminal_id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -598,13 +607,14 @@ public function triggerFinalBalanceWithHttpInfo($space_id, $terminal_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/payment-terminal/trigger-final-balance' ); @@ -660,7 +670,8 @@ public function triggerFinalBalanceByIdentifier($space_id, $terminal_identifier) * Operation triggerFinalBalanceByIdentifierWithHttpInfo * * Remotely Trigger Final Balance By Identifier - * + + * * @param int $space_id (required) * @param string $terminal_identifier (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -711,13 +722,14 @@ public function triggerFinalBalanceByIdentifierWithHttpInfo($space_id, $terminal } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/payment-terminal/trigger-final-balance-by-identifier' ); @@ -773,7 +785,8 @@ public function unlink($space_id, $terminal_id) { * Operation unlinkWithHttpInfo * * Unlink Device With Terminal - * + + * * @param int $space_id (required) * @param int $terminal_id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -824,13 +837,14 @@ public function unlinkWithHttpInfo($space_id, $terminal_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/payment-terminal/unlink' ); diff --git a/lib/Service/PaymentTerminalTillService.php b/lib/Service/PaymentTerminalTillService.php index 792629d..056a95f 100644 --- a/lib/Service/PaymentTerminalTillService.php +++ b/lib/Service/PaymentTerminalTillService.php @@ -88,7 +88,8 @@ public function performTransaction($space_id, $transaction_id, $terminal_id, $la * Operation performTransactionWithHttpInfo * * Perform Payment Terminal Transaction - * + * (Time out for this request is 90 seconds.) + * * @param int $space_id (required) * @param int $transaction_id The ID of the transaction which is used to process with the terminal. (required) * @param int $terminal_id The ID of the terminal which should be used to process the transaction. (required) @@ -151,13 +152,14 @@ public function performTransactionWithHttpInfo($space_id, $transaction_id, $term } // make the API Call try { - $this->apiClient->setConnectionTimeout(90); + $timeOut = 90; $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/payment-terminal-till/perform-transaction' ); @@ -231,7 +233,8 @@ public function performTransactionByIdentifier($space_id, $transaction_id, $term * Operation performTransactionByIdentifierWithHttpInfo * * Perform Payment Terminal Transaction (using TID) - * + * (Time out for this request is 90 seconds.) + * * @param int $space_id (required) * @param int $transaction_id The ID of the transaction which is used to process with the terminal. (required) * @param string $terminal_identifier The identifier (aka TID) of the terminal which should be used to process the transaction. (required) @@ -294,13 +297,14 @@ public function performTransactionByIdentifierWithHttpInfo($space_id, $transacti } // make the API Call try { - $this->apiClient->setConnectionTimeout(90); + $timeOut = 90; $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/payment-terminal-till/perform-transaction-by-identifier' ); diff --git a/lib/Service/PaymentTerminalTransactionSummaryService.php b/lib/Service/PaymentTerminalTransactionSummaryService.php index 5e92b25..0bef247 100644 --- a/lib/Service/PaymentTerminalTransactionSummaryService.php +++ b/lib/Service/PaymentTerminalTransactionSummaryService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/payment-terminal-transaction-summary/count' ); @@ -197,7 +199,8 @@ public function fetchReceipt($space_id, $request) { * Operation fetchReceiptWithHttpInfo * * Fetch Receipt - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummaryFetchRequest $request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function fetchReceiptWithHttpInfo($space_id, $request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RenderedTerminalTransactionSummary', '/payment-terminal-transaction-summary/fetch-receipt' ); @@ -312,7 +316,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction summary report which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary', '/payment-terminal-transaction-summary/read' ); @@ -425,7 +431,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction summary reports which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary[]', '/payment-terminal-transaction-summary/search' ); diff --git a/lib/Service/PermissionService.php b/lib/Service/PermissionService.php index 026a405..22de392 100644 --- a/lib/Service/PermissionService.php +++ b/lib/Service/PermissionService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Permission[]', '/permission/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the permission which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Permission', '/permission/read' ); diff --git a/lib/Service/RefundBankTransactionService.php b/lib/Service/RefundBankTransactionService.php index c197ed5..a177068 100644 --- a/lib/Service/RefundBankTransactionService.php +++ b/lib/Service/RefundBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/refund-bank-transaction/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the refund bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RefundBankTransaction', '/refund-bank-transaction/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the refund bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RefundBankTransaction[]', '/refund-bank-transaction/search' ); diff --git a/lib/Service/RefundCommentService.php b/lib/Service/RefundCommentService.php index 21a9dc1..1d64d13 100644 --- a/lib/Service/RefundCommentService.php +++ b/lib/Service/RefundCommentService.php @@ -86,7 +86,8 @@ public function all($space_id, $refund_id) { * Operation allWithHttpInfo * * Find by refund - * + + * * @param int $space_id (required) * @param int $refund_id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function allWithHttpInfo($space_id, $refund_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RefundComment[]', '/refund-comment/all' ); @@ -199,7 +201,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\RefundCommentCreate $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -252,13 +255,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RefundComment', '/refund-comment/create' ); @@ -314,7 +318,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/refund-comment/delete' ); @@ -427,7 +433,8 @@ public function pin($space_id, $id) { * Operation pinWithHttpInfo * * Pin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/refund-comment/pin' ); @@ -540,7 +548,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,13 +600,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RefundComment', '/refund-comment/read' ); @@ -653,7 +663,8 @@ public function unpin($space_id, $id) { * Operation unpinWithHttpInfo * * Unpin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,13 +715,14 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/refund-comment/unpin' ); @@ -766,7 +778,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\RefundCommentActive $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,13 +832,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RefundComment', '/refund-comment/update' ); diff --git a/lib/Service/RefundRecoveryBankTransactionService.php b/lib/Service/RefundRecoveryBankTransactionService.php index ffa3dca..c025c5f 100644 --- a/lib/Service/RefundRecoveryBankTransactionService.php +++ b/lib/Service/RefundRecoveryBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/refund-recovery-bank-transaction/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the refund recovery bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RefundRecoveryBankTransaction', '/refund-recovery-bank-transaction/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the refund recovery bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RefundRecoveryBankTransaction[]', '/refund-recovery-bank-transaction/search' ); diff --git a/lib/Service/RefundService.php b/lib/Service/RefundService.php index a356425..8bb3b84 100644 --- a/lib/Service/RefundService.php +++ b/lib/Service/RefundService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/refund/count' ); @@ -197,7 +199,8 @@ public function fail($space_id, $refund_id) { * Operation failWithHttpInfo * * fail - * + + * * @param int $space_id (required) * @param int $refund_id The id of the refund which should be marked as failed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function failWithHttpInfo($space_id, $refund_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Refund', '/refund/fail' ); @@ -310,7 +314,8 @@ public function getRefundDocument($space_id, $id) { * Operation getRefundDocumentWithHttpInfo * * getRefundDocument - * + + * * @param int $space_id (required) * @param int $id The id of the refund to get the document for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -361,13 +366,14 @@ public function getRefundDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/refund/getRefundDocument' ); @@ -424,7 +430,8 @@ public function getRefundDocumentWithTargetMediaType($space_id, $id, $target_med * Operation getRefundDocumentWithTargetMediaTypeWithHttpInfo * * getRefundDocumentWithTargetMediaType - * + + * * @param int $space_id (required) * @param int $id The id of the refund to get the document for. (required) * @param int $target_media_type_id The id of the target media type for which the refund should be generated for. (required) @@ -483,13 +490,14 @@ public function getRefundDocumentWithTargetMediaTypeWithHttpInfo($space_id, $id, } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/refund/getRefundDocumentWithTargetMediaType' ); @@ -545,7 +553,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the refund which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -596,13 +605,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Refund', '/refund/read' ); @@ -658,7 +668,8 @@ public function refund($space_id, $refund) { * Operation refundWithHttpInfo * * create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\RefundCreate $refund The refund object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -711,13 +722,14 @@ public function refundWithHttpInfo($space_id, $refund) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Refund', '/refund/refund' ); @@ -773,7 +785,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the refunds which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -826,13 +839,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Refund[]', '/refund/search' ); @@ -888,7 +902,8 @@ public function succeed($space_id, $refund_id) { * Operation succeedWithHttpInfo * * succeed - * + + * * @param int $space_id (required) * @param int $refund_id The id of the refund which should be marked as successful. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -939,13 +954,14 @@ public function succeedWithHttpInfo($space_id, $refund_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Refund', '/refund/succeed' ); diff --git a/lib/Service/ShopifyRecurringOrderService.php b/lib/Service/ShopifyRecurringOrderService.php index 020913a..84d97be 100644 --- a/lib/Service/ShopifyRecurringOrderService.php +++ b/lib/Service/ShopifyRecurringOrderService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/shopify-recurring-order/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify recurring order which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrder', '/shopify-recurring-order/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify recurring orders which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrder[]', '/shopify-recurring-order/search' ); @@ -425,7 +431,8 @@ public function update($space_id, $update_request) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrderUpdateRequest $update_request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function updateWithHttpInfo($space_id, $update_request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/shopify-recurring-order/update' ); diff --git a/lib/Service/ShopifySubscriberService.php b/lib/Service/ShopifySubscriberService.php index fe62b08..a62251d 100644 --- a/lib/Service/ShopifySubscriberService.php +++ b/lib/Service/ShopifySubscriberService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/shopify-subscriber/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscriber which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber', '/shopify-subscriber/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscribers which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber[]', '/shopify-subscriber/search' ); @@ -425,7 +431,8 @@ public function update($space_id, $query) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriberActive $query The Shopify subscriber object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function updateWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber', '/shopify-subscriber/update' ); diff --git a/lib/Service/ShopifySubscriptionProductService.php b/lib/Service/ShopifySubscriptionProductService.php index dd6765b..5bbf07f 100644 --- a/lib/Service/ShopifySubscriptionProductService.php +++ b/lib/Service/ShopifySubscriptionProductService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/shopify-subscription-product/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProductCreate $entity The Shopify subscription product object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', '/shopify-subscription-product/create' ); @@ -312,7 +316,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscription product which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', '/shopify-subscription-product/read' ); @@ -425,7 +431,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscription products which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct[]', '/shopify-subscription-product/search' ); @@ -540,7 +548,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProductUpdate $entity The Shopify subscription product object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,13 +602,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', '/shopify-subscription-product/update' ); diff --git a/lib/Service/ShopifySubscriptionService.php b/lib/Service/ShopifySubscriptionService.php index 62beb6b..01fb521 100644 --- a/lib/Service/ShopifySubscriptionService.php +++ b/lib/Service/ShopifySubscriptionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/shopify-subscription/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $creation_request) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionCreationRequest $creation_request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $creation_request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', '/shopify-subscription/create' ); @@ -312,7 +316,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscription which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscription', '/shopify-subscription/read' ); @@ -425,7 +431,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscriptions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscription[]', '/shopify-subscription/search' ); @@ -541,7 +549,8 @@ public function terminate($space_id, $subscription_id, $respect_termination_peri * Operation terminateWithHttpInfo * * Terminate - * + + * * @param int $space_id (required) * @param int $subscription_id The ID identifies the Shopify subscription which should be terminated. (required) * @param bool $respect_termination_period The respect termination period controls whether the termination period configured on the product version should be respected or if the operation should take effect immediately. (required) @@ -600,13 +609,14 @@ public function terminateWithHttpInfo($space_id, $subscription_id, $respect_term } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/shopify-subscription/terminate' ); @@ -654,7 +664,8 @@ public function update($space_id, $subscription) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionUpdateRequest $subscription (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -707,13 +718,14 @@ public function updateWithHttpInfo($space_id, $subscription) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', '/shopify-subscription/update' ); @@ -769,7 +781,8 @@ public function updateAddresses($space_id, $update_request) { * Operation updateAddressesWithHttpInfo * * Update Addresses - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionUpdateAddressesRequest $update_request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -822,13 +835,14 @@ public function updateAddressesWithHttpInfo($space_id, $update_request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', '/shopify-subscription/update-addresses' ); diff --git a/lib/Service/ShopifySubscriptionSuspensionService.php b/lib/Service/ShopifySubscriptionSuspensionService.php index ee2c1b0..66956e2 100644 --- a/lib/Service/ShopifySubscriptionSuspensionService.php +++ b/lib/Service/ShopifySubscriptionSuspensionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/shopify-subscription-suspension/count' ); @@ -197,7 +199,8 @@ public function reactivate($space_id, $subscription_id) { * Operation reactivateWithHttpInfo * * Reactivate - * + + * * @param int $space_id (required) * @param int $subscription_id The ID identifies the suspended Shopify subscription which should be reactivated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function reactivateWithHttpInfo($space_id, $subscription_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/shopify-subscription-suspension/reactivate' ); @@ -302,7 +306,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscription suspension which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -353,13 +358,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension', '/shopify-subscription-suspension/read' ); @@ -415,7 +421,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscription suspensions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -468,13 +475,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension[]', '/shopify-subscription-suspension/search' ); @@ -530,7 +538,8 @@ public function suspend($space_id, $suspension) { * Operation suspendWithHttpInfo * * Suspend - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspensionCreate $suspension (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -583,13 +592,14 @@ public function suspendWithHttpInfo($space_id, $suspension) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension', '/shopify-subscription-suspension/suspend' ); diff --git a/lib/Service/ShopifySubscriptionVersionService.php b/lib/Service/ShopifySubscriptionVersionService.php index a291727..df84867 100644 --- a/lib/Service/ShopifySubscriptionVersionService.php +++ b/lib/Service/ShopifySubscriptionVersionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/shopify-subscription-version/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscription version which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', '/shopify-subscription-version/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscription versions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion[]', '/shopify-subscription-version/search' ); diff --git a/lib/Service/ShopifyTransactionService.php b/lib/Service/ShopifyTransactionService.php index 92683ae..cbe948e 100644 --- a/lib/Service/ShopifyTransactionService.php +++ b/lib/Service/ShopifyTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/shopify-transaction/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifyTransaction', '/shopify-transaction/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\ShopifyTransaction[]', '/shopify-transaction/search' ); diff --git a/lib/Service/SpaceService.php b/lib/Service/SpaceService.php index 2481921..9b14645 100644 --- a/lib/Service/SpaceService.php +++ b/lib/Service/SpaceService.php @@ -85,7 +85,8 @@ public function count($filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -126,13 +127,14 @@ public function countWithHttpInfo($filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/space/count' ); @@ -187,7 +189,8 @@ public function create($entity) { * Operation createWithHttpInfo * * Create - * + + * * @param \PostFinanceCheckout\Sdk\Model\SpaceCreate $entity The space object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -232,13 +235,14 @@ public function createWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Space', '/space/create' ); @@ -293,7 +297,8 @@ public function delete($id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -338,13 +343,14 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/space/delete' ); @@ -399,7 +405,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the space which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -442,13 +449,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Space', '/space/read' ); @@ -503,7 +511,8 @@ public function search($query) { * Operation searchWithHttpInfo * * Search - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the spaces which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -548,13 +557,14 @@ public function searchWithHttpInfo($query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Space[]', '/space/search' ); @@ -609,7 +619,8 @@ public function update($entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param \PostFinanceCheckout\Sdk\Model\SpaceUpdate $entity The space object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -654,13 +665,14 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Space', '/space/update' ); diff --git a/lib/Service/StaticValueService.php b/lib/Service/StaticValueService.php index 99d5f4d..390c5af 100644 --- a/lib/Service/StaticValueService.php +++ b/lib/Service/StaticValueService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,13 +120,14 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\StaticValue[]', '/static-value-service/all' ); @@ -180,7 +182,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the static value which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,13 +226,14 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\StaticValue', '/static-value-service/read' ); diff --git a/lib/Service/TokenService.php b/lib/Service/TokenService.php index 5649511..f4bafdd 100644 --- a/lib/Service/TokenService.php +++ b/lib/Service/TokenService.php @@ -86,7 +86,8 @@ public function checkTokenCreationPossible($space_id, $transaction_id) { * Operation checkTokenCreationPossibleWithHttpInfo * * Check If Token Creation Is Possible - * + + * * @param int $space_id (required) * @param int $transaction_id The id of the transaction for which we want to check if the token can be created or not. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function checkTokenCreationPossibleWithHttpInfo($space_id, $transaction_i } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'bool', '/token/check-token-creation-possible' ); @@ -199,7 +201,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/token/count' ); @@ -310,7 +314,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TokenCreate $entity The token object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Token', '/token/create' ); @@ -425,7 +431,8 @@ public function createTokenBasedOnTransaction($space_id, $transaction_id) { * Operation createTokenBasedOnTransactionWithHttpInfo * * Create Token Based On Transaction - * + + * * @param int $space_id (required) * @param int $transaction_id The id of the transaction for which we want to create the token. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,13 +483,14 @@ public function createTokenBasedOnTransactionWithHttpInfo($space_id, $transactio } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TokenVersion', '/token/create-token-based-on-transaction' ); @@ -538,7 +546,8 @@ public function createTransactionForTokenUpdate($space_id, $token_id) { * Operation createTransactionForTokenUpdateWithHttpInfo * * Create Transaction for Token Update - * + + * * @param int $space_id (required) * @param int $token_id The id of the token which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -589,13 +598,14 @@ public function createTransactionForTokenUpdateWithHttpInfo($space_id, $token_id } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/token/createTransactionForTokenUpdate' ); @@ -651,7 +661,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,13 +715,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/token/delete' ); @@ -766,7 +778,8 @@ public function processTransaction($space_id, $transaction_id) { * Operation processTransactionWithHttpInfo * * Process Transaction - * + + * * @param int $space_id (required) * @param int $transaction_id The id of the transaction for which we want to check if the token can be created or not. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -817,13 +830,14 @@ public function processTransactionWithHttpInfo($space_id, $transaction_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Charge', '/token/process-transaction' ); @@ -879,7 +893,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the token which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -930,13 +945,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Token', '/token/read' ); @@ -992,7 +1008,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the tokens which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1045,13 +1062,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Token[]', '/token/search' ); @@ -1107,7 +1125,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TokenUpdate $entity The object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1160,13 +1179,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Token', '/token/update' ); diff --git a/lib/Service/TokenVersionService.php b/lib/Service/TokenVersionService.php index 3541b96..174a022 100644 --- a/lib/Service/TokenVersionService.php +++ b/lib/Service/TokenVersionService.php @@ -86,7 +86,8 @@ public function activeVersion($space_id, $id) { * Operation activeVersionWithHttpInfo * * Active Version - * + + * * @param int $space_id (required) * @param int $id The id of a token for which you want to look up the current active token version. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function activeVersionWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TokenVersion', '/token-version/active-version' ); @@ -199,7 +201,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/token-version/count' ); @@ -310,7 +314,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the token version which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -361,13 +366,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TokenVersion', '/token-version/read' ); @@ -423,7 +429,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the token versions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,13 +483,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TokenVersion[]', '/token-version/search' ); diff --git a/lib/Service/TransactionCommentService.php b/lib/Service/TransactionCommentService.php index 4f9ee70..eacf3e5 100644 --- a/lib/Service/TransactionCommentService.php +++ b/lib/Service/TransactionCommentService.php @@ -86,7 +86,8 @@ public function all($space_id, $transaction_id) { * Operation allWithHttpInfo * * Find by transaction - * + + * * @param int $space_id (required) * @param int $transaction_id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function allWithHttpInfo($space_id, $transaction_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionComment[]', '/transaction-comment/all' ); @@ -199,7 +201,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCommentCreate $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -252,13 +255,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionComment', '/transaction-comment/create' ); @@ -314,7 +318,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/transaction-comment/delete' ); @@ -427,7 +433,8 @@ public function pin($space_id, $id) { * Operation pinWithHttpInfo * * Pin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/transaction-comment/pin' ); @@ -540,7 +548,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,13 +600,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionComment', '/transaction-comment/read' ); @@ -653,7 +663,8 @@ public function unpin($space_id, $id) { * Operation unpinWithHttpInfo * * Unpin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,13 +715,14 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/transaction-comment/unpin' ); @@ -766,7 +778,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCommentActive $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,13 +832,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionComment', '/transaction-comment/update' ); diff --git a/lib/Service/TransactionCompletionService.php b/lib/Service/TransactionCompletionService.php index 3672dbc..f92bbca 100644 --- a/lib/Service/TransactionCompletionService.php +++ b/lib/Service/TransactionCompletionService.php @@ -86,7 +86,8 @@ public function completeOffline($space_id, $id) { * Operation completeOfflineWithHttpInfo * * completeOffline - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be completed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function completeOfflineWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/completeOffline' ); @@ -199,7 +201,8 @@ public function completeOnline($space_id, $id) { * Operation completeOnlineWithHttpInfo * * completeOnline - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be completed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function completeOnlineWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/completeOnline' ); @@ -312,7 +316,8 @@ public function completePartiallyOffline($space_id, $completion) { * Operation completePartiallyOfflineWithHttpInfo * * completePartiallyOffline - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCompletionRequest $completion (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function completePartiallyOfflineWithHttpInfo($space_id, $completion) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/completePartiallyOffline' ); @@ -427,7 +433,8 @@ public function completePartiallyOnline($space_id, $completion) { * Operation completePartiallyOnlineWithHttpInfo * * completePartiallyOnline - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCompletionRequest $completion (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -480,13 +487,14 @@ public function completePartiallyOnlineWithHttpInfo($space_id, $completion) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/completePartiallyOnline' ); @@ -542,7 +550,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,13 +600,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/transaction-completion/count' ); @@ -653,7 +663,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction completions which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,13 +715,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/read' ); @@ -766,7 +778,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction completions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,13 +832,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion[]', '/transaction-completion/search' ); diff --git a/lib/Service/TransactionIframeService.php b/lib/Service/TransactionIframeService.php index 0060c3c..21111a8 100644 --- a/lib/Service/TransactionIframeService.php +++ b/lib/Service/TransactionIframeService.php @@ -86,7 +86,8 @@ public function javascriptUrl($space_id, $id) { * Operation javascriptUrlWithHttpInfo * * Build JavaScript URL - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function javascriptUrlWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/transaction-iframe/javascript-url' ); diff --git a/lib/Service/TransactionInvoiceCommentService.php b/lib/Service/TransactionInvoiceCommentService.php index bfbd846..27fd41f 100644 --- a/lib/Service/TransactionInvoiceCommentService.php +++ b/lib/Service/TransactionInvoiceCommentService.php @@ -86,7 +86,8 @@ public function all($space_id, $invoice_id) { * Operation allWithHttpInfo * * Find by invoice - * + + * * @param int $space_id (required) * @param int $invoice_id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function allWithHttpInfo($space_id, $invoice_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment[]', '/transaction-invoice-comment/all' ); @@ -199,7 +201,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoiceCommentCreate $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -252,13 +255,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', '/transaction-invoice-comment/create' ); @@ -314,7 +318,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/transaction-invoice-comment/delete' ); @@ -427,7 +433,8 @@ public function pin($space_id, $id) { * Operation pinWithHttpInfo * * Pin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/transaction-invoice-comment/pin' ); @@ -540,7 +548,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,13 +600,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', '/transaction-invoice-comment/read' ); @@ -653,7 +663,8 @@ public function unpin($space_id, $id) { * Operation unpinWithHttpInfo * * Unpin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,13 +715,14 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/transaction-invoice-comment/unpin' ); @@ -766,7 +778,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoiceCommentActive $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,13 +832,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', '/transaction-invoice-comment/update' ); diff --git a/lib/Service/TransactionInvoiceService.php b/lib/Service/TransactionInvoiceService.php index 53741d3..fc3f267 100644 --- a/lib/Service/TransactionInvoiceService.php +++ b/lib/Service/TransactionInvoiceService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/transaction-invoice/count' ); @@ -197,7 +199,8 @@ public function getInvoiceDocument($space_id, $id) { * Operation getInvoiceDocumentWithHttpInfo * * getInvoiceDocument - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoice to get the document for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/transaction-invoice/getInvoiceDocument' ); @@ -311,7 +315,8 @@ public function getInvoiceDocumentWithTargetMediaType($space_id, $id, $target_me * Operation getInvoiceDocumentWithTargetMediaTypeWithHttpInfo * * getInvoiceDocumentWithTargetMediaType - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoice to get the document for. (required) * @param int $target_media_type_id The id of the target media type for which the invoice should be generated for. (required) @@ -370,13 +375,14 @@ public function getInvoiceDocumentWithTargetMediaTypeWithHttpInfo($space_id, $id } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/transaction-invoice/getInvoiceDocumentWithTargetMediaType' ); @@ -432,7 +438,8 @@ public function isReplacementPossible($space_id, $id) { * Operation isReplacementPossibleWithHttpInfo * * isReplacementPossible - * + + * * @param int $space_id (required) * @param int $id The invoice which should be checked if a replacement is possible. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -483,13 +490,14 @@ public function isReplacementPossibleWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, 'bool', '/transaction-invoice/isReplacementPossible' ); @@ -545,7 +553,8 @@ public function markAsDerecognized($space_id, $id) { * Operation markAsDerecognizedWithHttpInfo * * Mark as Derecognized - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoice which should be marked as derecognized. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -596,13 +605,14 @@ public function markAsDerecognizedWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', '/transaction-invoice/markAsDerecognized' ); @@ -658,7 +668,8 @@ public function markAsPaid($space_id, $id) { * Operation markAsPaidWithHttpInfo * * Mark as Paid - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoice which should be marked as paid. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -709,13 +720,14 @@ public function markAsPaidWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', '/transaction-invoice/markAsPaid' ); @@ -771,7 +783,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoices which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -822,13 +835,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', '/transaction-invoice/read' ); @@ -885,7 +899,8 @@ public function replace($space_id, $id, $replacement) { * Operation replaceWithHttpInfo * * replace - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoices which should be replaced. (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoiceReplacement $replacement (required) @@ -946,13 +961,14 @@ public function replaceWithHttpInfo($space_id, $id, $replacement) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', '/transaction-invoice/replace' ); @@ -1008,7 +1024,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction invoices which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1061,13 +1078,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice[]', '/transaction-invoice/search' ); diff --git a/lib/Service/TransactionLightboxService.php b/lib/Service/TransactionLightboxService.php index 4abf47b..0348581 100644 --- a/lib/Service/TransactionLightboxService.php +++ b/lib/Service/TransactionLightboxService.php @@ -86,7 +86,8 @@ public function javascriptUrl($space_id, $id) { * Operation javascriptUrlWithHttpInfo * * Build JavaScript URL - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function javascriptUrlWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/transaction-lightbox/javascript-url' ); diff --git a/lib/Service/TransactionLineItemVersionService.php b/lib/Service/TransactionLineItemVersionService.php index 7ff1319..945a542 100644 --- a/lib/Service/TransactionLineItemVersionService.php +++ b/lib/Service/TransactionLineItemVersionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/transaction-line-item-version/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $line_item_version) { * Operation createWithHttpInfo * * create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersionCreate $line_item_version The line item version object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $line_item_version) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', '/transaction-line-item-version/create' ); @@ -312,7 +316,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the line item version which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', '/transaction-line-item-version/read' ); @@ -425,7 +431,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts line item versions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion[]', '/transaction-line-item-version/search' ); diff --git a/lib/Service/TransactionMobileSdkService.php b/lib/Service/TransactionMobileSdkService.php index ec858ed..d332131 100644 --- a/lib/Service/TransactionMobileSdkService.php +++ b/lib/Service/TransactionMobileSdkService.php @@ -85,7 +85,8 @@ public function paymentFormUrl($credentials) { * Operation paymentFormUrlWithHttpInfo * * Build Mobile SDK URL - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -128,13 +129,14 @@ public function paymentFormUrlWithHttpInfo($credentials) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/transaction-mobile-sdk/payment-form-url' ); diff --git a/lib/Service/TransactionPaymentPageService.php b/lib/Service/TransactionPaymentPageService.php index 5cd2b4f..d46eca7 100644 --- a/lib/Service/TransactionPaymentPageService.php +++ b/lib/Service/TransactionPaymentPageService.php @@ -86,7 +86,8 @@ public function paymentPageUrl($space_id, $id) { * Operation paymentPageUrlWithHttpInfo * * Build Payment Page URL - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,13 +138,14 @@ public function paymentPageUrlWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/transaction-payment-page/payment-page-url' ); diff --git a/lib/Service/TransactionService.php b/lib/Service/TransactionService.php index ae31a36..b97b98b 100644 --- a/lib/Service/TransactionService.php +++ b/lib/Service/TransactionService.php @@ -86,7 +86,8 @@ public function confirm($space_id, $transaction_model) { * Operation confirmWithHttpInfo * * Confirm - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionPending $transaction_model The transaction JSON object to update and confirm. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -139,13 +140,14 @@ public function confirmWithHttpInfo($space_id, $transaction_model) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/confirm' ); @@ -209,7 +211,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -258,13 +261,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/transaction/count' ); @@ -320,7 +324,8 @@ public function create($space_id, $transaction) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCreate $transaction The transaction object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -373,13 +378,14 @@ public function createWithHttpInfo($space_id, $transaction) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/create' ); @@ -435,7 +441,8 @@ public function createTransactionCredentials($space_id, $id) { * Operation createTransactionCredentialsWithHttpInfo * * Create Transaction Credentials - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -486,13 +493,14 @@ public function createTransactionCredentialsWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/transaction/createTransactionCredentials' ); @@ -548,7 +556,8 @@ public function deleteOneClickTokenWithCredentials($credentials, $token_id) { * Operation deleteOneClickTokenWithCredentialsWithHttpInfo * * Delete One-Click Token with Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @param int $token_id The token ID will be used to find the token which should be removed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -599,13 +608,14 @@ public function deleteOneClickTokenWithCredentialsWithHttpInfo($credentials, $to } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/transaction/deleteOneClickTokenWithCredentials' ); @@ -653,7 +663,8 @@ public function export($space_id, $request) { * Operation exportWithHttpInfo * * Export - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityExportRequest $request The request controls the entries which are exported. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -706,13 +717,14 @@ public function exportWithHttpInfo($space_id, $request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/transaction/export' ); @@ -767,7 +779,8 @@ public function fetchOneClickTokensWithCredentials($credentials) { * Operation fetchOneClickTokensWithCredentialsWithHttpInfo * * Fetch One Click Tokens with Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -810,13 +823,14 @@ public function fetchOneClickTokensWithCredentialsWithHttpInfo($credentials) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TokenVersion[]', '/transaction/fetchOneClickTokensWithCredentials' ); @@ -873,7 +887,8 @@ public function fetchPaymentMethods($space_id, $id, $integration_mode) { * Operation fetchPaymentMethodsWithHttpInfo * * Fetch Possible Payment Methods - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @param string $integration_mode The integration mode defines the type of integration that is applied on the transaction. (required) @@ -932,13 +947,14 @@ public function fetchPaymentMethodsWithHttpInfo($space_id, $id, $integration_mod } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', '/transaction/fetch-payment-methods' ); @@ -994,7 +1010,8 @@ public function fetchPaymentMethodsWithCredentials($credentials, $integration_mo * Operation fetchPaymentMethodsWithCredentialsWithHttpInfo * * Fetch Possible Payment Methods with Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @param string $integration_mode The integration mode defines the type of integration that is applied on the transaction. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1045,13 +1062,14 @@ public function fetchPaymentMethodsWithCredentialsWithHttpInfo($credentials, $in } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', '/transaction/fetch-payment-methods-with-credentials' ); @@ -1107,7 +1125,8 @@ public function getInvoiceDocument($space_id, $id) { * Operation getInvoiceDocumentWithHttpInfo * * getInvoiceDocument - * + + * * @param int $space_id (required) * @param int $id The id of the transaction to get the invoice document for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1158,13 +1177,14 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/transaction/getInvoiceDocument' ); @@ -1220,7 +1240,8 @@ public function getLatestTransactionLineItemVersion($space_id, $id) { * Operation getLatestTransactionLineItemVersionWithHttpInfo * * getLatestSuccessfulTransactionLineItemVersion - * + + * * @param int $space_id (required) * @param int $id The id of the transaction to get the latest line item version for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1271,13 +1292,14 @@ public function getLatestTransactionLineItemVersionWithHttpInfo($space_id, $id) } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', '/transaction/getLatestTransactionLineItemVersion' ); @@ -1333,7 +1355,8 @@ public function getPackingSlip($space_id, $id) { * Operation getPackingSlipWithHttpInfo * * getPackingSlip - * + + * * @param int $space_id (required) * @param int $id The id of the transaction to get the packing slip for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1384,13 +1407,14 @@ public function getPackingSlipWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/transaction/getPackingSlip' ); @@ -1446,7 +1470,8 @@ public function processOneClickTokenAndRedirectWithCredentials($credentials, $to * Operation processOneClickTokenAndRedirectWithCredentialsWithHttpInfo * * Process One-Click Token with Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @param int $token_id The token ID is used to load the corresponding token and to process the transaction with it. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1497,13 +1522,14 @@ public function processOneClickTokenAndRedirectWithCredentialsWithHttpInfo($cred } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/transaction/processOneClickTokenAndRedirectWithCredentials' ); @@ -1559,7 +1585,8 @@ public function processWithoutUserInteraction($space_id, $id) { * Operation processWithoutUserInteractionWithHttpInfo * * Process Without User Interaction - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be processed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1610,13 +1637,14 @@ public function processWithoutUserInteractionWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/processWithoutUserInteraction' ); @@ -1672,7 +1700,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1723,13 +1752,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/read' ); @@ -1784,7 +1814,8 @@ public function readWithCredentials($credentials) { * Operation readWithCredentialsWithHttpInfo * * Read With Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -1827,13 +1858,14 @@ public function readWithCredentialsWithHttpInfo($credentials) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/readWithCredentials' ); @@ -1889,7 +1921,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1942,13 +1975,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction[]', '/transaction/search' ); @@ -2004,7 +2038,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionPending $entity The transaction object with the properties which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -2057,13 +2092,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/update' ); diff --git a/lib/Service/TransactionTerminalService.php b/lib/Service/TransactionTerminalService.php index b6918ef..88cfb5d 100644 --- a/lib/Service/TransactionTerminalService.php +++ b/lib/Service/TransactionTerminalService.php @@ -86,7 +86,8 @@ public function fetchReceipts($space_id, $request) { * Operation fetchReceiptsWithHttpInfo * * Fetch Receipts - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TerminalReceiptFetchRequest $request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -139,13 +140,14 @@ public function fetchReceiptsWithHttpInfo($space_id, $request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\RenderedTerminalReceipt[]', '/transaction-terminal/fetch-receipts' ); @@ -203,7 +205,8 @@ public function tillConnectionCredentials($space_id, $transaction_id, $terminal_ * Operation tillConnectionCredentialsWithHttpInfo * * Create Till Connection Credentials - * + + * * @param int $space_id (required) * @param int $transaction_id The ID of the transaction which is used to process with the terminal. (required) * @param int $terminal_id The ID of the terminal which should be used to process the transaction. (required) @@ -266,13 +269,14 @@ public function tillConnectionCredentialsWithHttpInfo($space_id, $transaction_id } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'string', '/transaction-terminal/till-connection-credentials' ); diff --git a/lib/Service/TransactionVoidService.php b/lib/Service/TransactionVoidService.php index f2a98f8..8f21de0 100644 --- a/lib/Service/TransactionVoidService.php +++ b/lib/Service/TransactionVoidService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/transaction-void/count' ); @@ -197,7 +199,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction voids which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,13 +251,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionVoid', '/transaction-void/read' ); @@ -310,7 +314,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction voids which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,13 +368,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionVoid[]', '/transaction-void/search' ); @@ -425,7 +431,8 @@ public function voidOffline($space_id, $id) { * Operation voidOfflineWithHttpInfo * * voidOffline - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be voided. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,13 +483,14 @@ public function voidOfflineWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionVoid', '/transaction-void/voidOffline' ); @@ -538,7 +546,8 @@ public function voidOnline($space_id, $id) { * Operation voidOnlineWithHttpInfo * * voidOnline - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be voided. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -589,13 +598,14 @@ public function voidOnlineWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\TransactionVoid', '/transaction-void/voidOnline' ); diff --git a/lib/Service/UserAccountRoleService.php b/lib/Service/UserAccountRoleService.php index 28648e1..ce5c474 100644 --- a/lib/Service/UserAccountRoleService.php +++ b/lib/Service/UserAccountRoleService.php @@ -88,7 +88,8 @@ public function addRole($user_id, $account_id, $role_id, $applies_on_subaccount * Operation addRoleWithHttpInfo * * Add Role - * + + * * @param int $user_id The id of the user to whom the role is assigned. (required) * @param int $account_id The account to which the role is mapped. (required) * @param int $role_id The role which is mapped to the user and account. (required) @@ -151,13 +152,14 @@ public function addRoleWithHttpInfo($user_id, $account_id, $role_id, $applies_on } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\UserAccountRole', '/user-account-role/addRole' ); @@ -213,7 +215,8 @@ public function callList($user_id, $account_id) { * Operation callListWithHttpInfo * * List Roles - * + + * * @param int $user_id The id of the user to whom the role is assigned. (required) * @param int $account_id The account to which the role is mapped. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -264,13 +267,14 @@ public function callListWithHttpInfo($user_id, $account_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\UserAccountRole[]', '/user-account-role/list' ); @@ -325,7 +329,8 @@ public function removeRole($id) { * Operation removeRoleWithHttpInfo * * Remove Role - * + + * * @param int $id The id of user account role which should be removed (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -368,13 +373,14 @@ public function removeRoleWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/user-account-role/removeRole' ); diff --git a/lib/Service/UserSpaceRoleService.php b/lib/Service/UserSpaceRoleService.php index a058f74..0cbb466 100644 --- a/lib/Service/UserSpaceRoleService.php +++ b/lib/Service/UserSpaceRoleService.php @@ -87,7 +87,8 @@ public function addRole($user_id, $space_id, $role_id) { * Operation addRoleWithHttpInfo * * Add Role - * + + * * @param int $user_id The id of the user to whom the role is assigned. (required) * @param int $space_id The space to which the role is mapped. (required) * @param int $role_id The role which is mapped to the user and space. (required) @@ -146,13 +147,14 @@ public function addRoleWithHttpInfo($user_id, $space_id, $role_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\UserSpaceRole', '/user-space-role/addRole' ); @@ -208,7 +210,8 @@ public function callList($user_id, $space_id) { * Operation callListWithHttpInfo * * List Roles - * + + * * @param int $user_id The id of the user to whom the role is assigned. (required) * @param int $space_id The space to which the role is mapped. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -259,13 +262,14 @@ public function callListWithHttpInfo($user_id, $space_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\UserSpaceRole[]', '/user-space-role/list' ); @@ -328,7 +332,8 @@ public function removeRole($id) { * Operation removeRoleWithHttpInfo * * Remove Role - * + + * * @param int $id The id of user space role which should be removed (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -371,13 +376,14 @@ public function removeRoleWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/user-space-role/removeRole' ); diff --git a/lib/Service/WebhookListenerService.php b/lib/Service/WebhookListenerService.php index 3a5a2f0..ebf4fc7 100644 --- a/lib/Service/WebhookListenerService.php +++ b/lib/Service/WebhookListenerService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/webhook-listener/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\WebhookListenerCreate $entity The webhook listener object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\WebhookListener', '/webhook-listener/create' ); @@ -312,7 +316,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/webhook-listener/delete' ); @@ -427,7 +433,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the webhook listener which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\WebhookListener', '/webhook-listener/read' ); @@ -540,7 +548,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the webhook listeners which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,13 +602,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\WebhookListener[]', '/webhook-listener/search' ); @@ -655,7 +665,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\WebhookListenerUpdate $entity The webhook listener object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -708,13 +719,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\WebhookListener', '/webhook-listener/update' ); diff --git a/lib/Service/WebhookUrlService.php b/lib/Service/WebhookUrlService.php index 568e279..6b4a017 100644 --- a/lib/Service/WebhookUrlService.php +++ b/lib/Service/WebhookUrlService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,13 +136,14 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, 'int', '/webhook-url/count' ); @@ -197,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\WebhookUrlCreate $entity The webhook url object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,13 +253,14 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\WebhookUrl', '/webhook-url/create' ); @@ -312,7 +316,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,13 +370,14 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, null, '/webhook-url/delete' ); @@ -427,7 +433,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the webhook url which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,13 +485,14 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'GET', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\WebhookUrl', '/webhook-url/read' ); @@ -540,7 +548,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the webhook urls which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,13 +602,14 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\WebhookUrl[]', '/webhook-url/search' ); @@ -655,7 +665,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\WebhookUrlUpdate $entity The webhook url object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -708,13 +719,14 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $timeOut = $this->apiClient->getConnectionTimeout(); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, + $timeOut, '\PostFinanceCheckout\Sdk\Model\WebhookUrl', '/webhook-url/update' ); diff --git a/test/ApiClientTest.php b/test/ApiClientTest.php index cba61cf..ac8e0e4 100644 --- a/test/ApiClientTest.php +++ b/test/ApiClientTest.php @@ -144,7 +144,7 @@ public function testSdkHeaders() $this->assertGreaterThanOrEqual(4, count($headers)); // Check SDK default header values. - $this->assertEquals($headers['x-meta-sdk-version'], "3.1.2"); + $this->assertEquals($headers['x-meta-sdk-version'], "3.1.4"); $this->assertEquals($headers['x-meta-sdk-language'], 'php'); $this->assertEquals($headers['x-meta-sdk-provider'], "PostFinance Checkout"); $this->assertEquals($headers['x-meta-sdk-language-version'], phpversion());