using System.Xml.Serialization; using BWP.ABCClient.Common; namespace BWP.ABCClient.Market { [XmlRoot(ElementName = "MSG")] public class PayRequest : MessageBase { public MessageContent Message { get; set; } public static PayRequest New() { return new PayRequest { Message = new MessageContent { Control = new ControlContent { MerchantTrxNo = string.Empty, Version = "Java_V1.0", ChannelType = "01", BusinessID = "MARKET", FunctionID = "0009", MerchantID = string.Empty }, Parameters = new ParametersContent { OrderMg = "实时支付", CustomerNo = string.Empty, CustSignInfo2 = null, PayAmount = string.Empty, CustSignInfo = 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 OrderMg { get; set; } public string CustomerNo { get; set; } public string CustSignInfo2 { get; set; } public string PayAmount { get; set; } public string CustSignInfo { get; set; } } } }