using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api.Util; using Top.Api; using Top.Api.DingTalk; namespace DingTalk.Api.Request { /// /// TOP API: dingtalk.oapi.alitrip.btrip.vehicle.order.search /// public class OapiAlitripBtripVehicleOrderSearchRequest : BaseDingTalkRequest { /// /// 请求对象 /// public string Rq { get; set; } public OpenSearchRqDomain Rq_ { set { this.Rq = TopUtils.ObjectToJson(value); } } #region IDingTalkRequest Members public override string GetApiName() { return "dingtalk.oapi.alitrip.btrip.vehicle.order.search"; } public override string GetApiCallType() { return DingTalkConstants.CALL_TYPE_OAPI; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("rq", this.Rq); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { RequestValidator.ValidateRequired("rq", this.Rq); } /// /// OpenSearchRqDomain Data Structure. /// [Serializable] public class OpenSearchRqDomain : TopObject { /// /// false:仅搜索未报销订单 /// [XmlElement("all_apply")] public Nullable AllApply { get; set; } /// /// 商旅审批单id /// [XmlElement("apply_id")] public Nullable ApplyId { get; set; } /// /// 企业id /// [XmlElement("corpid")] public string Corpid { get; set; } /// /// 部门id /// [XmlElement("deptid")] public string Deptid { get; set; } /// /// 创建结束时间 /// [XmlElement("end_time")] public Nullable EndTime { get; set; } /// /// 页数,从1开始 /// [XmlElement("page")] public Nullable Page { get; set; } /// /// 每页数量,默认10,最大50 /// [XmlElement("page_size")] public Nullable PageSize { get; set; } /// /// 创建开始时间 /// [XmlElement("start_time")] public Nullable StartTime { get; set; } /// /// 第三方申请单ID /// [XmlElement("thirdpart_apply_id")] public string ThirdpartApplyId { get; set; } /// /// 更新结束时间 /// [XmlElement("update_end_time")] public Nullable UpdateEndTime { get; set; } /// /// 更新开始时间 /// [XmlElement("update_start_time")] public Nullable UpdateStartTime { get; set; } /// /// 用户id /// [XmlElement("userid")] public string Userid { get; set; } } #endregion } }