You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

50 lines
1.2 KiB

using System;
using System.Xml.Serialization;
using BWP.ABCClient.Common;
namespace BWP.ABCClient.B2C
{
[XmlRoot(ElementName = "MSG")]
public class SettleRequest : MessageBase
{
public MessageContent Message { get; set; }
public static SettleRequest New()
{
return new SettleRequest {
Message = new MessageContent {
Merchant = new MerchantContent {
ECMerchantType = "B2C",
MerchantID = string.Empty
},
TrxRequest = new TrxRequestContent {
TrxType = TrxType.Settle,
SettleDate = string.Empty,
SettleStartHour = "false",
SettleEndHour = string.Empty,
SettleType = string.Empty,
ZIP = "YES"
}
},
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 SettleDate { get; set; }
public string SettleStartHour { get; set; }
public string SettleEndHour { get; set; }
public string SettleType { get; set; }
public string ZIP { get; set; }
}
}
}