Skip to content

Commit 2db8943

Browse files
committed
Changed transactions dates filter to datetimes
1 parent 63973f9 commit 2db8943

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/KbClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ public function transactions(string $accessToken, TransactionSelection $selectio
364364
params: array_filter([
365365
'page' => $selection->page,
366366
'size' => $selection->size,
367-
'fromDate' => $selection->fromDate?->format('Y-m-d'),
368-
'toDate' => $selection->toDate?->format('Y-m-d'),
367+
'fromDateTime' => $selection->fromDateTime?->format('Y-m-d\TH:i:s.v\Z'),
368+
'toDateTime' => $selection->toDateTime?->format('Y-m-d\TH:i:s.v\Z'),
369369
], static fn ($value) => isset($value)),
370370
);
371371

src/Selection/TransactionSelection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public function __construct(
1010
public readonly string $accountId,
1111
public readonly int $page = 0,
1212
public readonly int $size = 100,
13-
public readonly ?DateTimeInterface $fromDate = null,
14-
public readonly ?DateTimeInterface $toDate = null,
13+
public readonly ?DateTimeInterface $fromDateTime = null,
14+
public readonly ?DateTimeInterface $toDateTime = null,
1515
) {
1616
}
1717
}

0 commit comments

Comments
 (0)