From 1bd0c60649670e5bf6eebb05488d29fe87bce6ae Mon Sep 17 00:00:00 2001 From: richboo111 Date: Fri, 5 Aug 2022 16:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=94=AE=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/ebaiapi/order.go | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/platformapi/ebaiapi/order.go b/platformapi/ebaiapi/order.go index c2b77e18..4f024552 100644 --- a/platformapi/ebaiapi/order.go +++ b/platformapi/ebaiapi/order.go @@ -560,13 +560,38 @@ func (a *API) OrderDisagreeRefund(orderID, refuseReason string) (err error) { } func (a *API) OrderPartRefund(orderID string, removeSkuList []*RefundSku) (err error) { - _, err = a.AccessAPI("order.partrefund", map[string]interface{}{ + _, err = a.AccessAPI("order.manyTimesPartrefund", map[string]interface{}{ "order_id": orderID, "products": removeSkuList, }) return err } +//售后 同意用户多次部分取消 +func (a *API) OrderAgreePartRefund(orderID string) (err error) { + _, err = a.AccessAPI("order.agreepartrefund", map[string]interface{}{ + "order_id": orderID, + }) + return err +} + +//售后 同意退货退款 +func (a *API) OrderAgreeReturnGoods(orderID string) (err error) { + _, err = a.AccessAPI("order.agreereturngoods", map[string]interface{}{ + "order_id": orderID, + }) + return err +} + +//售后 拒绝退货退款 +func (a *API) OrderDisagreeReturnGoods(orderID string, reason string) (err error) { + _, err = a.AccessAPI("order.disagreereturngoods", map[string]interface{}{ + "order_id": orderID, + "reason": reason, + }) + return err +} + func (a *API) OrderCheckout(orderID, pickUpCode string) (err error) { _, err = a.AccessAPI("order.checkout", map[string]interface{}{ "order_id": orderID,