From a0c795565961d3ef4a128c16f0bd6214831ed2b7 Mon Sep 17 00:00:00 2001 From: ging-dev Date: Fri, 5 Jul 2024 12:10:33 +0700 Subject: [PATCH] wip --- src/Api/AuthenticatedApi.php | 4 +++- src/Entity/Account.php | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Api/AuthenticatedApi.php b/src/Api/AuthenticatedApi.php index 3fa2adb..b6c8a1f 100644 --- a/src/Api/AuthenticatedApi.php +++ b/src/Api/AuthenticatedApi.php @@ -32,12 +32,14 @@ public function accounts(): IterableList } /** + * @param 'Credit'|'Debit'|'' $tranType * @return IterableList */ public function historyTransactions( string $accountNumber, - \DateTimeInterface $startDate, + \DateTimeInterface $startDate = new \DateTime(), \DateTimeInterface $endDate = new \DateTime(), + string $tranType = 'Credit', int $pageNumber = 0, int $maxResult = 999999999, ): IterableList { diff --git a/src/Entity/Account.php b/src/Entity/Account.php index f96e1c8..df3f429 100644 --- a/src/Entity/Account.php +++ b/src/Entity/Account.php @@ -20,6 +20,7 @@ public function __construct( * @internal */ public function __construct( + public string $title, public string $number, public string $currencyCode, public AccountState $accountState,