Skip to content

Commit

Permalink
Merge pull request #3 from guairenshe/add_order_handle_buyer_cancella…
Browse files Browse the repository at this point in the history
…tion_0822

add v2.order.handle_buyer_cancellation
  • Loading branch information
nVuln authored Aug 22, 2024
2 parents b08e017 + f5b3e8c commit b430aea
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/Resources/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Order extends Resource
* API: v2.order.get_order_list
* Use this api to search orders.
*
* @param array $params
* @param array $params
* @return array|mixed
*/
public function getOrderList($params = [])
Expand All @@ -40,7 +40,7 @@ public function getOrderList($params = [])
* API: v2.order.get_shipment_list
* Use this api to get order list which order_status is READY_TO_SHIP.
*
* @param array $params
* @param array $params
* @return array|mixed
*/
public function getShipmentList($params = [])
Expand All @@ -56,7 +56,7 @@ public function getShipmentList($params = [])
* Use this api to get order detail.
*
* @param $ids
* @param array $params
* @param array $params
* @return array|mixed
*/
public function getOrderDetail($ids, $params = [])
Expand Down Expand Up @@ -202,4 +202,18 @@ public function getBuyerInvoiceInfo($order_sn_list)
RequestOptions::JSON => $params,
]);
}

/**
* API: v2.order.handle_buyer_cancellation
* Use this api to handle buyer's cancellation application.
*/
public function handleBuyerCancellation($order_sn, $operation)
{
return $this->call('POST', 'order/handle_buyer_cancellation', [
RequestOptions::JSON => [
'order_sn' => $order_sn,
'operation' => $operation,
],
]);
}
}

0 comments on commit b430aea

Please sign in to comment.