refund
This commit is contained in:
@@ -46,7 +46,7 @@ type API struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func New(source, secret string, config ...*platformapi.APIConfig) *API {
|
func New(source, secret string, config ...*platformapi.APIConfig) *API {
|
||||||
// baseapi.SugarLogger.Debugf("token=%v, appKey=%v, secret=%v", token, appKey, secret)
|
// baseapi.SugarLogger.Debugf("token=%v, pay=%v, secret=%v", token, appKey, secret)
|
||||||
curConfig := platformapi.DefAPIConfig
|
curConfig := platformapi.DefAPIConfig
|
||||||
if len(config) > 0 {
|
if len(config) > 0 {
|
||||||
curConfig = *config[0]
|
curConfig = *config[0]
|
||||||
|
|||||||
@@ -568,9 +568,11 @@ func (a *API) OrderPartRefund(orderID string, removeSkuList []*RefundSku) (err e
|
|||||||
}
|
}
|
||||||
|
|
||||||
//售后 同意用户多次部分取消
|
//售后 同意用户多次部分取消
|
||||||
func (a *API) OrderAgreePartRefund(orderID string) (err error) {
|
func (a *API) OrderAgreePartRefund(orderID string, removeSkuList []*RefundSku, refundID string) (err error) {
|
||||||
_, err = a.AccessAPI("order.agreepartrefund", map[string]interface{}{
|
_, err = a.AccessAPI("order.agreepartrefund", map[string]interface{}{
|
||||||
"order_id": orderID,
|
"order_id": orderID,
|
||||||
|
"products": removeSkuList,
|
||||||
|
"refund_id": refundID,
|
||||||
})
|
})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user