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.apply.get
///
public class OapiAlitripBtripApplyGetRequest : 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.apply.get";
}
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
{
///
/// 阿里商旅审批单id
///
[XmlElement("apply_id")]
public Nullable ApplyId { get; set; }
///
/// 阿里商旅审批单展示id
///
[XmlElement("apply_show_id")]
public string ApplyShowId { get; set; }
///
/// 企业id
///
[XmlElement("corpid")]
public string Corpid { get; set; }
///
/// 外部审批单id
///
[XmlElement("thirdpart_apply_id")]
public string ThirdpartApplyId { get; set; }
///
/// 申请单提交类型 1:代提交 2:本人提交 注意:当申请单为代提交时,申请单提交人自己无法为自己下单
///
[XmlElement("type")]
public Nullable Type { get; set; }
}
#endregion
}
}