using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api.Util; namespace Top.Api.Request { /// /// TOP API: cainiao.logisticscloud.isv.cpticket.create /// public class CainiaoLogisticscloudIsvCpticketCreateRequest : BaseTopRequest { /// /// 请求分装对象 /// public string Param0 { get; set; } public TicketOrderDomain Param0_ { set { this.Param0 = TopUtils.ObjectToJson(value); } } #region ITopRequest Members public override string GetApiName() { return "cainiao.logisticscloud.isv.cpticket.create"; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("param0", this.Param0); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { } /// /// QuestionInfoDomain Data Structure. /// [Serializable] public class QuestionInfoDomain : TopObject { /// /// 旧的地址 /// [XmlElement("address")] public string Address { get; set; } /// /// 快递单号 /// [XmlElement("mail_no")] public string MailNo { get; set; } /// /// 旧的手机 /// [XmlElement("mobile")] public string Mobile { get; set; } /// /// 旧的姓名 /// [XmlElement("name")] public string Name { get; set; } /// /// 新的地址 /// [XmlElement("new_address")] public string NewAddress { get; set; } /// /// 新的手机号 /// [XmlElement("new_mobile")] public string NewMobile { get; set; } /// /// 新的姓名 /// [XmlElement("new_name")] public string NewName { get; set; } /// /// 问题描述 /// [XmlElement("question")] public string Question { get; set; } /// /// 拦截件类型 /// [XmlElement("question_type")] public Nullable QuestionType { get; set; } /// /// 站点名称 /// [XmlElement("site_name")] public string SiteName { get; set; } } /// /// TicketOrderDomain Data Structure. /// [Serializable] public class TicketOrderDomain : TopObject { /// /// isv身份标识,由我们提供 /// [XmlElement("customer_code")] public string CustomerCode { get; set; } /// /// 请求列表 /// [XmlArray("question_info_list")] [XmlArrayItem("question_info")] public List QuestionInfoList { get; set; } /// /// 商家公司ID /// [XmlElement("seller_id")] public Nullable SellerId { get; set; } } #endregion } }