Skip to content

Commit

Permalink
SUPPORT-55993 added two new endpoints for API configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor.zolotar authored and pelanis committed Nov 10, 2022
1 parent 25587ce commit 0d72af5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions src/Paysera/WalletApi/Client/WalletClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 0d72af5

Please sign in to comment.