using System;
using System.Collections.Generic;
using Top.Api.Util;
namespace Top.Api.Request
{
///
/// TOP API: taobao.openmall.trade.batch.get
///
public class OpenmallTradeBatchGetRequest : BaseTopRequest
{
///
/// 渠道商Nick
///
public string Distributor { get; set; }
///
/// 查询范围结束时间,闭区间
///
public Nullable EndCreated { get; set; }
///
/// 查询页码,从1开始
///
public Nullable PageIndex { get; set; }
///
/// 页面大小,不超过100
///
public Nullable PageSize { get; set; }
///
/// 查询范围开始时间,闭区间
///
public Nullable StartCreated { get; set; }
#region ITopRequest Members
public override string GetApiName()
{
return "taobao.openmall.trade.batch.get";
}
public override IDictionary GetParameters()
{
TopDictionary parameters = new TopDictionary();
parameters.Add("distributor", this.Distributor);
parameters.Add("end_created", this.EndCreated);
parameters.Add("page_index", this.PageIndex);
parameters.Add("page_size", this.PageSize);
parameters.Add("start_created", this.StartCreated);
if (this.otherParams != null)
{
parameters.AddAll(this.otherParams);
}
return parameters;
}
public override void Validate()
{
RequestValidator.ValidateRequired("distributor", this.Distributor);
RequestValidator.ValidateRequired("end_created", this.EndCreated);
RequestValidator.ValidateRequired("page_index", this.PageIndex);
RequestValidator.ValidateRequired("page_size", this.PageSize);
RequestValidator.ValidateRequired("start_created", this.StartCreated);
}
#endregion
}
}