diff --git a/CHANGELOG.md b/CHANGELOG.md index 3879325..8073192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 2.3.1 +- Added two new endpoints for creating and deleting API configs + ## 2.3.0 - Added politically exposed person model - Added new endpoint to client to get politically exposed person data diff --git a/src/Paysera/WalletApi/Client/WalletClient.php b/src/Paysera/WalletApi/Client/WalletClient.php index 29aaedc..e814fd2 100644 --- a/src/Paysera/WalletApi/Client/WalletClient.php +++ b/src/Paysera/WalletApi/Client/WalletClient.php @@ -977,4 +977,26 @@ public function getPes($userId) return $this->mapper->decodePes($responseData); } + + /** + * @param array $data ['clientId', 'appClientId', 'walletId'] + * @return Paysera_WalletApi_Entity_Client + */ + public function makeTransferConfiguration($data) + { + $responseData = $this->post('client/configuration/transfer', $data); + + return $this->mapper->decodeClient($responseData); + } + + /** + * @param int $clientId + * @return Paysera_WalletApi_Entity_Client + */ + public function deleteTransferConfiguration($clientId) + { + $responseData = $this->delete('/client/' . $clientId . '/configuration/transfer'); + + return $this->mapper->decodeClient($responseData); + } }