对接售后
This commit is contained in:
@@ -560,13 +560,38 @@ func (a *API) OrderDisagreeRefund(orderID, refuseReason string) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *API) OrderPartRefund(orderID string, removeSkuList []*RefundSku) (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,
|
"order_id": orderID,
|
||||||
"products": removeSkuList,
|
"products": removeSkuList,
|
||||||
})
|
})
|
||||||
return err
|
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) {
|
func (a *API) OrderCheckout(orderID, pickUpCode string) (err error) {
|
||||||
_, err = a.AccessAPI("order.checkout", map[string]interface{}{
|
_, err = a.AccessAPI("order.checkout", map[string]interface{}{
|
||||||
"order_id": orderID,
|
"order_id": orderID,
|
||||||
|
|||||||
Reference in New Issue
Block a user