Skip to content

Commit

Permalink
Release 1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoEigenmannCW committed Apr 11, 2018
1 parent 52bd170 commit f16865f
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: php
sudo: false
php:
- 5.4
- 5.4
- 5.6
- 7.0
- 7.1
before_install: "composer install"
script: "phpunit --bootstrap autoload.php test/"
script: "phpunit --bootstrap autoload.php test/"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This repository contains the open source PHP SDK that allows you to access walle

## Requirements

* [PHP 5.4.0 and later](http://www.php.net/)
* [PHP 5.6.0 and later](http://www.php.net/)

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion lib/Service/HumanUserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public function exportWithHttpInfo($request) {
}
// header params
$headerParams = array();
$headerAccept = $this->apiClient->selectHeaderAccept(array('text/csv'));
$headerAccept = $this->apiClient->selectHeaderAccept(array('application/json;charset=utf-8', 'text/csv'));
if (!is_null($headerAccept)) {
$headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept;
}
Expand Down
103 changes: 102 additions & 1 deletion lib/Service/TransactionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ public function exportWithHttpInfo($spaceId, $request) {
}
// header params
$headerParams = array();
$headerAccept = $this->apiClient->selectHeaderAccept(array('text/csv'));
$headerAccept = $this->apiClient->selectHeaderAccept(array('application/json;charset=utf-8', 'text/csv'));
if (!is_null($headerAccept)) {
$headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept;
}
Expand Down Expand Up @@ -1671,6 +1671,107 @@ public function processOneClickTokenWithCredentialsWithHttpInfo($credentials, $t
}
}

/**
* Operation processWithoutUserInteraction
*
* Process Without User Interaction
*
* @param int $spaceId (required)
* @param int $id The id of the transaction which should be processed. (required)
* @throws \Wallee\Sdk\ApiException
* @throws \Wallee\Sdk\VersioningException
* @throws \Wallee\Sdk\Http\ConnectionException
* @return \Wallee\Sdk\Model\Transaction
*/
public function processWithoutUserInteraction($spaceId, $id) {
return $this->processWithoutUserInteractionWithHttpInfo($spaceId, $id)->getData();
}

/**
* Operation processWithoutUserInteractionWithHttpInfo
*
* Process Without User Interaction
*
* @param int $spaceId (required)
* @param int $id The id of the transaction which should be processed. (required)
* @throws \Wallee\Sdk\ApiException
* @throws \Wallee\Sdk\VersioningException
* @throws \Wallee\Sdk\Http\ConnectionException
* @return ApiResponse
*/
public function processWithoutUserInteractionWithHttpInfo($spaceId, $id) {
// verify the required parameter 'spaceId' is set
if ($spaceId === null) {
throw new \InvalidArgumentException('Missing the required parameter $spaceId when calling processWithoutUserInteraction');
}
// verify the required parameter 'id' is set
if ($id === null) {
throw new \InvalidArgumentException('Missing the required parameter $id when calling processWithoutUserInteraction');
}
// header params
$headerParams = array();
$headerAccept = $this->apiClient->selectHeaderAccept(array());
if (!is_null($headerAccept)) {
$headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept;
}
$headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(array());

// query params
$queryParams = array();
if ($spaceId !== null) {
$queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($spaceId);
}
if ($id !== null) {
$queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id);
}

// path params
$resourcePath = "/transaction/processWithoutUserInteraction";
// default format to json
$resourcePath = str_replace("{format}", "json", $resourcePath);

// form params
$formParams = array();

// for model (json/xml)
$httpBody = '';
if (isset($tempBody)) {
$httpBody = $tempBody; // $tempBody is the method argument, if present
} elseif (count($formParams) > 0) {
$httpBody = $formParams; // for HTTP post (form)
}
// make the API Call
try {
$response = $this->apiClient->callApi(
$resourcePath,
'POST',
$queryParams,
$httpBody,
$headerParams,
'\Wallee\Sdk\Model\Transaction',
'/transaction/processWithoutUserInteraction'
);
return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\Transaction', $response->getHeaders()));
} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
$responseObject = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Wallee\Sdk\Model\Transaction', $e->getResponseHeaders());
$e = new ApiException($e->getLogToken(), $responseObject->getMessage(), $e->getCode(), $e->getResponseHeaders(), $e->getResponseBody(), $responseObject);
break;
case 442:
$responseObject = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Wallee\Sdk\Model\ClientError', $e->getResponseHeaders());
$e = new ApiException($e->getLogToken(), $responseObject->getMessage(), $e->getCode(), $e->getResponseHeaders(), $e->getResponseBody(), $responseObject);
break;
case 542:
$responseObject = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Wallee\Sdk\Model\ServerError', $e->getResponseHeaders());
$e = new ApiException($e->getLogToken(), $responseObject->getMessage(), $e->getCode(), $e->getResponseHeaders(), $e->getResponseBody(), $responseObject);
break;
}

throw $e;
}
}

/**
* Operation read
*
Expand Down

0 comments on commit f16865f

Please sign in to comment.