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