using System.Xml.Serialization;
|
|
using BWP.ABCClient.Common;
|
|
|
|
namespace BWP.ABCClient.B2B
|
|
{
|
|
[XmlRoot(ElementName = "MSG")]
|
|
public class QueryTrnxRequest : MessageBase
|
|
{
|
|
public MessageContent Message { get; set; }
|
|
|
|
public static QueryTrnxRequest New()
|
|
{
|
|
return new QueryTrnxRequest {
|
|
Message = new MessageContent {
|
|
Merchant = new MerchantContent {
|
|
ECMerchantType = "B2B",
|
|
MerchantID = string.Empty
|
|
},
|
|
TrxRequest = new TrxRequestContent {
|
|
TrxType = TrxType.QueryTrnx,
|
|
MerchantTrnxNo = string.Empty,
|
|
MerchantRemarks = string.Empty
|
|
}
|
|
},
|
|
SignatureAlgorithm = "SHA1withRSA",
|
|
Signature = string.Empty
|
|
};
|
|
}
|
|
|
|
public class MessageContent
|
|
{
|
|
public MerchantContent Merchant { get; set; }
|
|
public TrxRequestContent TrxRequest { get; set; }
|
|
}
|
|
|
|
public class TrxRequestContent
|
|
{
|
|
public string TrxType { get; set; }
|
|
public string MerchantTrnxNo { get; set; }
|
|
public string MerchantRemarks { get; set; }
|
|
}
|
|
}
|
|
}
|