using AlibabaSDK.Api;
|
using AlibabaSDK.Response;
|
using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace AlibabaSDK.Request
|
{
|
public class AlibabaTradeCancelRequest : IAlibabaApiRequest<AlibabaTradeCancelResponse>
|
{
|
public object ErrorObj()
|
{
|
return new AlibabaTradeCancelResponse();
|
}
|
|
public string GetApiName()
|
{
|
return "/param2/1/com.alibaba.trade/alibaba.trade.cancel";
|
}
|
|
public Dictionary<string, object> GetParameters()
|
{
|
Dictionary<string, object> dic = new Dictionary<string, object>();
|
dic.Add("webSite", webSite);
|
dic.Add("tradeID", tradeID);
|
dic.Add("cancelReason", cancelReason);
|
// dic.Add("remark", remark);
|
return dic;
|
}
|
/// <summary>
|
/// 站点信息,指定调用的API是属于国际站(alibaba)还是1688网站(1688)
|
/// </summary>
|
public string webSite { get; set; }
|
/// <summary>
|
/// 交易id,订单号
|
/// </summary>
|
public string tradeID { get; set; }
|
/// <summary>
|
/// 原因描述;buyerCancel:买家取消订单;sellerGoodsLack:卖家库存不足;other:其它
|
/// </summary>
|
public string cancelReason { get; set; }
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string remark { get; set; }
|
|
public void Validate()
|
{
|
|
}
|
}
|
}
|