Skip to content

Commit

Permalink
Release 2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vttn committed Oct 12, 2020
1 parent f191df1 commit f05800b
Show file tree
Hide file tree
Showing 56 changed files with 233 additions and 231 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 customweb GmbH
Copyright 2020 wallee AG

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postfinancecheckout/sdk",
"version": "2.1.3",
"version": "2.1.4",
"description": "PostFinance Checkout SDK for PHP",
"keywords": [
"postfinancecheckout",
Expand All @@ -13,8 +13,8 @@
"license": "Apache-2.0",
"authors": [
{
"name": "customweb GmbH",
"homepage": "https://customweb.com"
"name": "wallee AG",
"homepage": "https://wallee.com"
}
],
"require": {
Expand Down
10 changes: 6 additions & 4 deletions lib/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class ApiClient {
*
* @var string
*/
private $userAgent = 'PHP-Client/2.1.3/php';
private $userAgent = 'PHP-Client/2.1.4/php';

/**
* The path to the certificate authority file.
Expand Down Expand Up @@ -439,9 +439,11 @@ public function selectHeaderContentType($contentType) {
* @param array $headerParams the header parameters
* @param string $responseType the expected response type
* @param string $endpointPath the path to the method endpoint before expanding parameters
* @throws ApiException on a non 2xx response
* @throws VersioningException on a versioning/locking problem
* @return mixed
*
* @return \PostFinanceCheckout\Sdk\ApiResponse
* @throws \PostFinanceCheckout\Sdk\ApiException
* @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());
Expand Down
6 changes: 3 additions & 3 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'PostFinanceCheckout\Sdk/2.1.3/php';
protected $userAgent = 'PostFinanceCheckout\Sdk/2.1.4/php';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -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: 2.1.3' . PHP_EOL;
$report .= ' SDK Package Version: 2.1.3' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 2.1.4' . PHP_EOL;
$report .= ' SDK Package Version: 2.1.4' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
12 changes: 6 additions & 6 deletions lib/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function countWithHttpInfo($filter = null) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -232,7 +232,7 @@ public function createWithHttpInfo($entity) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -338,7 +338,7 @@ public function deleteWithHttpInfo($id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -442,7 +442,7 @@ public function readWithHttpInfo($id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down Expand Up @@ -548,7 +548,7 @@ public function searchWithHttpInfo($query) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -654,7 +654,7 @@ public function updateWithHttpInfo($entity) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down
12 changes: 6 additions & 6 deletions lib/Service/ApplicationUserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function countWithHttpInfo($filter = null) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -232,7 +232,7 @@ public function createWithHttpInfo($entity) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -338,7 +338,7 @@ public function deleteWithHttpInfo($id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -442,7 +442,7 @@ public function readWithHttpInfo($id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down Expand Up @@ -548,7 +548,7 @@ public function searchWithHttpInfo($query) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -654,7 +654,7 @@ public function updateWithHttpInfo($entity) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down
6 changes: 3 additions & 3 deletions lib/Service/ChargeAttemptService.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function countWithHttpInfo($space_id, $filter = null) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -248,7 +248,7 @@ public function readWithHttpInfo($space_id, $id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down Expand Up @@ -363,7 +363,7 @@ public function searchWithHttpInfo($space_id, $query) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down
6 changes: 3 additions & 3 deletions lib/Service/ChargeFlowLevelPaymentLinkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function countWithHttpInfo($space_id, $filter = null) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -248,7 +248,7 @@ public function readWithHttpInfo($space_id, $id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down Expand Up @@ -363,7 +363,7 @@ public function searchWithHttpInfo($space_id, $query) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down
8 changes: 4 additions & 4 deletions lib/Service/ChargeFlowLevelService.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function countWithHttpInfo($space_id, $filter = null) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -248,7 +248,7 @@ public function readWithHttpInfo($space_id, $id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down Expand Up @@ -363,7 +363,7 @@ public function searchWithHttpInfo($space_id, $query) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -476,7 +476,7 @@ public function sendMessageWithHttpInfo($space_id, $id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down
10 changes: 5 additions & 5 deletions lib/Service/ChargeFlowService.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function applyFlowWithHttpInfo($space_id, $id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -248,7 +248,7 @@ public function countWithHttpInfo($space_id, $filter = null) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -361,7 +361,7 @@ public function readWithHttpInfo($space_id, $id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down Expand Up @@ -476,7 +476,7 @@ public function searchWithHttpInfo($space_id, $query) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down Expand Up @@ -607,7 +607,7 @@ public function updateRecipientWithHttpInfo($space_id, $transaction_id, $type, $
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
Expand Down
4 changes: 2 additions & 2 deletions lib/Service/ConditionTypeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function allWithHttpInfo() {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down Expand Up @@ -223,7 +223,7 @@ public function readWithHttpInfo($id) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/CountryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function allWithHttpInfo() {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down
4 changes: 2 additions & 2 deletions lib/Service/CountryStateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function allWithHttpInfo() {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down Expand Up @@ -223,7 +223,7 @@ public function countryWithHttpInfo($code) {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/CurrencyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function allWithHttpInfo() {
}
// make the API Call
try {
$this->apiClient->resetConnectionTimeout();
$this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT);
$response = $this->apiClient->callApi(
$resourcePath,
'GET',
Expand Down
Loading

0 comments on commit f05800b

Please sign in to comment.