Skip to content

Commit

Permalink
SUPPORT-75731 add main_account_iban field to account
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladlen Mikhalov authored and pelanis committed Jul 21, 2023
1 parent 871bdef commit 11661d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Paysera/WalletApi/Entity/Wallet/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ class Paysera_WalletApi_Entity_Wallet_Account
*/
protected $ibans;

/**
* @var string
* @readonly
*/
protected $mainAccountIban;

/**
* Creates object, used for fluent interface
*
Expand Down Expand Up @@ -128,4 +134,12 @@ public function getIbans()
{
return $this->ibans;
}

/**
* @return string
*/
public function getMainAccountIban()
{
return $this->mainAccountIban;
}
}
4 changes: 4 additions & 0 deletions src/Paysera/WalletApi/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,10 @@ protected function decodeAccount($data)
$this->setProperty($account, 'ibans', $this->decodeIbans($data['ibans']));
}

if (isset($data['main_account_iban'])) {
$this->setProperty($account, 'mainAccountIban', $data['main_account_iban']);
}

return $account;
}

Expand Down

0 comments on commit 11661d9

Please sign in to comment.