Skip to content

Commit

Permalink
add query about getAftersaleEligibility (#47)
Browse files Browse the repository at this point in the history
* support query getAftersaleEligibility

---------

Co-authored-by: 方亮 <[email protected]>
  • Loading branch information
snake-fl and 方亮 authored Sep 18, 2024
1 parent 02780fa commit 4490d41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Resources/ReturnRefund.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ public function rejectReturn($return_id, $params)
]);
}

public function getAftersaleEligibility($order_id)
public function getAftersaleEligibility($order_id, $query = [])
{
return $this->call('GET', 'orders/'.$order_id.'/aftersale_eligibility');
return $this->call('GET', 'orders/'.$order_id.'/aftersale_eligibility', [
RequestOptions::QUERY => $query
]);
}

public function getRejectReasons($query = [])
Expand Down

0 comments on commit 4490d41

Please sign in to comment.