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,