Skip to content

Commit

Permalink
SUPPORT-90761 Fixed typo for adding ibans for party
Browse files Browse the repository at this point in the history
  • Loading branch information
michalblocinski authored and pelanis committed Jan 12, 2024
1 parent 14cdec8 commit 978e38a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.5.1
### Fixed
- Fixed typo in `Paysera_WalletApi_Mapper::decodeStatementParty`. There was typo for !isset instead of isset when mapping ibans

## 2.5.0
### Added
- Added `Paysera_WalletApi_Entity_Statement::getIbans`
Expand Down
2 changes: 1 addition & 1 deletion src/Paysera/WalletApi/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ public function decodeStatementParty($data)
if (!empty($data['display_name']) && empty($data['name'])) {
$this->setProperty($party, 'name', $data['display_name']);
}
if (!isset($data['ibans'])) {
if (isset($data['ibans'])) {
$this->setProperty($party, 'ibans', $data['ibans']);
}
return $party;
Expand Down

0 comments on commit 978e38a

Please sign in to comment.