Skip to content

Commit 9d544f3

Browse files
committed
Fix datetime formattering boekenverkoop
1 parent 8c55cd1 commit 9d544f3

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/ToolboxClient/Directories/Boekenverkoop/BoekenverkoopDirectory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Koba\ToolboxClient\Directories\Boekenverkoop;
44

5-
use Koba\ToolboxClien\Directories\Boekenverkoop\StoreStandaardBoekhandalArtikelbestandBatch\StoreStandaardBoekhandalArtikelbestandBatchCall;
5+
use Koba\ToolboxClient\Directories\Boekenverkoop\StoreStandaardBoekhandalArtikelbestandBatch\StoreStandaardBoekhandalArtikelbestandBatchCall;
66
use Koba\ToolboxClient\Directory\Directory;
77

88
/**

src/ToolboxClient/Directories/Boekenverkoop/StoreStandaardBoekhandalArtikelbestandBatch/StoreStandaardBoekhandalArtikelbestandBatchCall.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Koba\ToolboxClien\Directories\Boekenverkoop\StoreStandaardBoekhandalArtikelbestandBatch;
3+
namespace Koba\ToolboxClient\Directories\Boekenverkoop\StoreStandaardBoekhandalArtikelbestandBatch;
44

55
use DateTimeInterface;
66
use Koba\ToolboxClient\Call\AbstractCall;
@@ -69,7 +69,14 @@ protected function getEndpoint(): string
6969
*/
7070
protected function getBody(): array
7171
{
72-
return $this->artikels;
72+
return array_map(
73+
fn ($entry) => [
74+
...$entry,
75+
'vermoedelijkeverschijningsdatum' => $entry['vermoedelijkeverschijningsdatum']?->format('c'),
76+
'laatsteUpdate' => $entry['laatsteUpdate']->format('c'),
77+
],
78+
$this->artikels
79+
);
7380
}
7481

7582
public function send(): ResponseInterface

0 commit comments

Comments
 (0)