From 47f15d7c9ab5a1969a80e1d931d10d9d0c31291c Mon Sep 17 00:00:00 2001 From: Mateusz Nastalski Date: Sat, 13 Sep 2025 00:10:31 +0200 Subject: [PATCH] Flip arguments for consistency with other methods --- src/Api/Request/CourierShipments.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/Request/CourierShipments.php b/src/Api/Request/CourierShipments.php index 44525b7..e9b1475 100644 --- a/src/Api/Request/CourierShipments.php +++ b/src/Api/Request/CourierShipments.php @@ -49,14 +49,14 @@ public function getCourierFields(string $courierCode): Response ); } - public function getCourierServices(string $courierCode, int $orderId, array $packages, array $fields = [], ?int $accountId = null): Response + public function getCourierServices(int $orderId, string $courierCode, array $packages, array $fields = [], ?int $accountId = null): Response { return new Response( $this->post('getCourierServices', [ - 'courier_code' => $courierCode, 'order_id' => $orderId, - 'fields' => $fields, + 'courier_code' => $courierCode, 'packages' => $packages, + 'fields' => $fields, 'account_id' => $accountId, ]) );