From 3ddeb1acf93dba73b9cfd1d216832ca5746c7158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E4=BA=AE?= Date: Wed, 12 Jun 2024 19:08:50 +0800 Subject: [PATCH] add query about getRejectReasons --- src/Resources/ReturnRefund.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Resources/ReturnRefund.php b/src/Resources/ReturnRefund.php index 2e72de4..fd31575 100644 --- a/src/Resources/ReturnRefund.php +++ b/src/Resources/ReturnRefund.php @@ -25,7 +25,6 @@ public function searchCancellations($query = [], $body = null) return $this->call('POST', 'cancellations/search', [ RequestOptions::QUERY => $query, RequestOptions::JSON => $body, - ]); } @@ -84,9 +83,11 @@ public function getAftersaleEligibility($order_id) return $this->call('GET', 'orders/'.$order_id.'/aftersale_eligibility'); } - public function getRejectReasons() + public function getRejectReasons($query = []) { - return $this->call('GET', 'reject_reasons'); + return $this->call('GET', 'reject_reasons', [ + RequestOptions::QUERY => $query + ]); } public function calculateRefund($params)