1
This commit is contained in:
@@ -28,13 +28,14 @@ func (a *API) AgreeUserCancel(req *request2.AlibabaTclsAelophyRefundAgreeRequest
|
|||||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||||
return fmt.Errorf(*data.Result.ReturnMsg)
|
return fmt.Errorf(*data.Result.ReturnMsg)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("进入AgreeUserCancel := %s", utils.Format4Output(data, false))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// DisAgreeUserCancel 拒绝用户售后申请
|
// DisAgreeUserCancel 拒绝用户售后申请
|
||||||
func (a *API) DisAgreeUserCancel(req *request2.AlibabaTclsAelophyRefundDisagreeRequest) error {
|
func (a *API) DisAgreeUserCancel(req *request2.AlibabaTclsAelophyRefundDisagreeRequest) error {
|
||||||
globals.SugarLogger.Debugf("进入 DisAgreeUserCancel")
|
globals.SugarLogger.Debugf("进入 DisAgreeUserCancel : %s", utils.Format4Output(req, false))
|
||||||
client := ability3156.NewAbility3156(&a.client)
|
client := ability3156.NewAbility3156(&a.client)
|
||||||
|
|
||||||
data, _ := client.AlibabaTclsAelophyRefundDisagree(req, a.token)
|
data, _ := client.AlibabaTclsAelophyRefundDisagree(req, a.token)
|
||||||
@@ -43,6 +44,7 @@ func (a *API) DisAgreeUserCancel(req *request2.AlibabaTclsAelophyRefundDisagreeR
|
|||||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||||
return fmt.Errorf(*data.Result.ReturnMsg)
|
return fmt.Errorf(*data.Result.ReturnMsg)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("进入 DisAgreeUserCancel : %s", utils.Format4Output(data, false))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@@ -58,13 +60,14 @@ func (a *API) PartialRefundReason(req *request2.AlibabaTclsAelophyRefundCsapplyr
|
|||||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||||
return nil, fmt.Errorf(*data.ApiResult.ErrMsg)
|
return nil, fmt.Errorf(*data.ApiResult.ErrMsg)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("PartialRefundReason := %s", utils.Format4Output(data, false))
|
||||||
|
|
||||||
return data.ApiResult.Model, nil
|
return data.ApiResult.Model, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// PartialRefund 商户逆向取消订单
|
// PartialRefund 商户逆向取消订单
|
||||||
func (a *API) PartialRefund(req *request2.AlibabaTclsAelophyRefundCsapplyRequest) error {
|
func (a *API) PartialRefund(req *request2.AlibabaTclsAelophyRefundCsapplyRequest) error {
|
||||||
globals.SugarLogger.Debugf("进入 PartialRefund")
|
globals.SugarLogger.Debugf("PartialRefund := %s", utils.Format4Output(req, false))
|
||||||
client := ability3156.NewAbility3156(&a.client)
|
client := ability3156.NewAbility3156(&a.client)
|
||||||
|
|
||||||
data, _ := client.AlibabaTclsAelophyRefundCsapply(req, a.token)
|
data, _ := client.AlibabaTclsAelophyRefundCsapply(req, a.token)
|
||||||
@@ -73,6 +76,7 @@ func (a *API) PartialRefund(req *request2.AlibabaTclsAelophyRefundCsapplyRequest
|
|||||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||||
return fmt.Errorf(*data.ApiResult.ErrMsg)
|
return fmt.Errorf(*data.ApiResult.ErrMsg)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("PartialRefund := %s", utils.Format4Output(data, false))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user