1
This commit is contained in:
@@ -2,7 +2,6 @@ package ebaiapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
@@ -660,9 +659,7 @@ func (a *API) EbaiRefundOrder(param *RefundOrderExamine) error {
|
||||
param.ReasonCode = "7001"
|
||||
}
|
||||
|
||||
globals.SugarLogger.Debugf("param := %s", utils.Format4Output(param, false))
|
||||
data, err := a.AccessAPI("order.reverse.process", utils.Struct2MapByJson(param))
|
||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
||||
_, err := a.AccessAPI("order.reverse.process", utils.Struct2MapByJson(param))
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -680,18 +677,18 @@ func (a *API) GetReverseOrder(orderId string) ([]interface{}, error) {
|
||||
|
||||
// RefundOrderExamine 商家审核是售后单
|
||||
type RefundOrderExamine struct {
|
||||
ReverseOrderId string `json:"reverse_order_id" required:"true"` // 逆向单ID
|
||||
OrderId string `json:"order_id" required:"true"` // 订单id
|
||||
IdempotentId string `json:"idempotent_id" required:"true"` // 请求唯一标示
|
||||
ActionType string `json:"action_type" required:"true"` // 逆向单审批操作类型,枚举值:【1-同意全单/部分退款申请 、 2-拒绝全单/部分退款申请、 3-同意退货申请 、 4-拒绝退货申请】
|
||||
ReasonCode string `json:"reason_code" required:"false"` // 当拒绝场景必填,即action_type = 2 or action_type =4 时 必填,枚举值: 7019-双方协商一致不再取消订单、 7020-商品已经备货完成、 7021-商品已送出、 7802-商品发出时完好、 7803-用户未举证/举证无效、 7804-商品影响二次销售、 7805-商品不符合7天无理由退款、 7302-未收到退货(仅退货单支持传入该code)、 7001-其他原因
|
||||
ReasonRemarks string `json:"reason_remarks" required:"false"` // 原因备注说明信息
|
||||
RefundProductList string `json:"refund_product_list" required:"false"` // 订单id
|
||||
ReverseOrderId string `json:"reverse_order_id" required:"true"` // 逆向单ID
|
||||
OrderId string `json:"order_id" required:"true"` // 订单id
|
||||
IdempotentId string `json:"idempotent_id" required:"true"` // 请求唯一标示
|
||||
ActionType string `json:"action_type" required:"true"` // 逆向单审批操作类型,枚举值:【1-同意全单/部分退款申请 、 2-拒绝全单/部分退款申请、 3-同意退货申请 、 4-拒绝退货申请】
|
||||
ReasonCode string `json:"reason_code" required:"false"` // 当拒绝场景必填,即action_type = 2 or action_type =4 时 必填,枚举值: 7019-双方协商一致不再取消订单、 7020-商品已经备货完成、 7021-商品已送出、 7802-商品发出时完好、 7803-用户未举证/举证无效、 7804-商品影响二次销售、 7805-商品不符合7天无理由退款、 7302-未收到退货(仅退货单支持传入该code)、 7001-其他原因
|
||||
ReasonRemarks string `json:"reason_remarks" required:"false"` // 原因备注说明信息
|
||||
RefundProductList []*RefundProductList `json:"refund_product_list" required:"false"` // 订单id
|
||||
}
|
||||
|
||||
type RefundProductList struct {
|
||||
SubBizOrderId string `json:"sub_biz_order_id" required:"false"` // 商品子单ID
|
||||
PlatformSkuId string `json:"platform_sku_id" required:"false"` // 平台商品ID
|
||||
//Number string `json:"number"`
|
||||
//RefundAmount string `json:"refund_amount"`
|
||||
Number string `json:"number"`
|
||||
RefundAmount string `json:"refund_amount"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user