using System; using System.Collections.Generic; using Top.Api.Util; namespace Top.Api.Request { /// /// TOP API: taobao.openmall.refund.message.get /// public class OpenmallRefundMessageGetRequest : BaseTopRequest { /// /// 分销者身份 /// public string Distributor { get; set; } /// /// 翻页页码 /// public Nullable PageNo { get; set; } /// /// 翻页大小 /// public Nullable PageSize { get; set; } /// /// 退款单号 /// public Nullable RefundId { get; set; } #region ITopRequest Members public override string GetApiName() { return "taobao.openmall.refund.message.get"; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("distributor", this.Distributor); parameters.Add("page_no", this.PageNo); parameters.Add("page_size", this.PageSize); parameters.Add("refund_id", this.RefundId); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { RequestValidator.ValidateRequired("distributor", this.Distributor); RequestValidator.ValidateRequired("refund_id", this.RefundId); } #endregion } }