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)