using System.Xml.Serialization; using BWP.ABCClient.Common; namespace BWP.ABCClient.Market { [XmlRoot(ElementName = "MSG")] public class OrderApplyRequest : MessageBase { public MessageContent Message { get; set; } public static OrderApplyRequest New() { return new OrderApplyRequest { Message = new MessageContent { Control = new ControlContent { MerchantTrxNo = string.Empty, Version = "Java_V1.0", ChannelType = "01", BusinessID = "MARKET", FunctionID = "0025", MerchantID = string.Empty }, Parameters = new ParametersContent { OrderMg = "http://127.0.0.1:18080/marketclientCS/MerchantResult.jsp", FeeFlag = "0", OrderType = "C", PayAmount = string.Empty, OrderNo = string.Empty, BuyerCustName = string.Empty, BuyerCustomer = string.Empty, SalerCustName = string.Empty, SalerCustomer = string.Empty }, Resultsets = string.Empty }, SignatureAlgorithm = "SHA1withRSA", Signature = string.Empty }; } public class MessageContent { public ControlContent Control { get; set; } public ParametersContent Parameters { get; set; } public string Resultsets { get; set; } } public class ControlContent { public string MerchantTrxNo { get; set; } public string Version { get; set; } public string ChannelType { get; set; } public string BusinessID { get; set; } public string FunctionID { get; set; } public string MerchantID { get; set; } } public class ParametersContent { public string FeeFlag { get; set; } public string BuyerCustomer { get; set; } public string OrderMg { get; set; } public string PayAmount { get; set; } public string OrderType { get; set; } public string OrderNo { get; set; } public string SalerCustomer { get; set; } public string SalerCustName { get; set; } public string BuyerCustName { get; set; } } } }