We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b753ab7 commit c3aa913Copy full SHA for c3aa913
src/WoltService.php
@@ -32,12 +32,12 @@ public static function acceptOrder($orderId): Response
32
->put();
33
}
34
35
- public static function rejectOrder($orderId): Response
+ public static function rejectOrder($orderId, string $reason): Response
36
{
37
return WoltClient::create()
38
->setEndpoint('/orders/{orderId}/reject')
39
->setRouteParameters(['orderId' => $orderId])
40
- ->put();
+ ->put(['reason' => $reason]);
41
42
43
public static function markReadyOrder($orderId): Response
0 commit comments