using AlibabaSDK.Api; using AlibabaSDK.Response; using System; using System.Collections.Generic; using System.Text; namespace AlibabaSDK.Request { public class AlibabaCreateRefundRequest : IAlibabaApiRequest { public object ErrorObj() { return new AlibabaCreateRefundResponse(); } public string GetApiName() { return "/param2/1/com.alibaba.trade/alibaba.trade.createRefund"; } public Dictionary GetParameters() { Dictionary dic = new Dictionary(); dic.Add("orderId", orderId); dic.Add("orderEntryIds", orderEntryIds); dic.Add("disputeRequest", disputeRequest); dic.Add("applyPayment", applyPayment); dic.Add("applyCarriage", applyCarriage); dic.Add("applyReasonId", applyReasonId); dic.Add("description", description); dic.Add("goodsStatus", goodsStatus); return dic; } /// /// 主订单 /// public long orderId { get; set; } /// /// 子订单 /// public long orderEntryIds { get; set; } /// /// 退款:"refund"; 退款退货:"returnRefund",退款/退款退货。只有已收到货,才可以选择退款退货。 /// public string disputeRequest { get; set; } /// /// 退款金额(单位:分)。不大于实际付款金额;等待卖家发货时,必须为商品的实际付款金额。 /// public long applyPayment { get; set; } /// /// 退运费金额(单位:分)。 /// public long applyCarriage { get; set; } /// /// 退款原因id(从API getRefundReasonList获取) /// public long applyReasonId { get; set; } /// /// 退款申请理由,2-150字 /// public string description { get; set; } /// /// 售中等待卖家发货:"refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived" /// public string goodsStatus { get; set; } /// /// 子订单退款数量。仅在售中买家已收货(退款退货)时,可指定退货数量;默认,全部退货。 /// public List orderEntryCountList { get; set; } public class AliRefundOrderEntryCountList { /// /// 子订单id /// public long id { get; set; } /// /// 子订单购买商品数量 /// public int count { get; set; } } public void Validate() { } } }