Skip to content

Commit c3aa913

Browse files
committed
Add reason to order reject
1 parent b753ab7 commit c3aa913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WoltService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public static function acceptOrder($orderId): Response
3232
->put();
3333
}
3434

35-
public static function rejectOrder($orderId): Response
35+
public static function rejectOrder($orderId, string $reason): Response
3636
{
3737
return WoltClient::create()
3838
->setEndpoint('/orders/{orderId}/reject')
3939
->setRouteParameters(['orderId' => $orderId])
40-
->put();
40+
->put(['reason' => $reason]);
4141
}
4242

4343
public static function markReadyOrder($orderId): Response

0 commit comments

Comments
 (0)