. */ declare(strict_types=1); namespace FireflyIII\Services\Bunq; use bunq\Model\Generated\Endpoint\BunqResponseMonetaryAccountList; use bunq\Model\Generated\Endpoint\MonetaryAccount as BunqMonetaryAccount; use Exception; use FireflyIII\Exceptions\FireflyException; /** * Class MonetaryAccount * @codeCoverageIgnore */ class MonetaryAccount { /** * @param array $params * @param array $customHeaders * * @return BunqResponseMonetaryAccountList * @throws FireflyException */ public function listing(array $params = null, array $customHeaders = null): BunqResponseMonetaryAccountList { $params = $params ?? []; $customHeaders = $customHeaders ?? []; try { $result = BunqMonetaryAccount::listing($params, $customHeaders); } catch (Exception $e) { throw new FireflyException($e->getMessage()); } return $result; } }