| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Collections.Generic;
- using Top.Api.Util;
- namespace Top.Api.Request
- {
- /// <summary>
- /// TOP API: taobao.openmall.trade.confirm
- /// </summary>
- public class OpenmallTradeConfirmRequest : BaseTopRequest<Top.Api.Response.OpenmallTradeConfirmResponse>
- {
- /// <summary>
- /// 分销者信息
- /// </summary>
- public string Distributor { get; set; }
- /// <summary>
- /// 淘宝订单号
- /// </summary>
- public Nullable<long> Tid { get; set; }
- #region ITopRequest Members
- public override string GetApiName()
- {
- return "taobao.openmall.trade.confirm";
- }
- public override IDictionary<string, string> GetParameters()
- {
- TopDictionary parameters = new TopDictionary();
- parameters.Add("distributor", this.Distributor);
- parameters.Add("tid", this.Tid);
- if (this.otherParams != null)
- {
- parameters.AddAll(this.otherParams);
- }
- return parameters;
- }
- public override void Validate()
- {
- RequestValidator.ValidateRequired("distributor", this.Distributor);
- RequestValidator.ValidateRequired("tid", this.Tid);
- }
- #endregion
- }
- }
|