Class SepaBankToCustomerMessage
Generic base class for all UNIFI Cash Management Messages (camt).
public class SepaBankToCustomerMessage : SepaMessage
- Inheritance
-
SepaBankToCustomerMessage
- Derived
- Inherited Members
Remarks
This class provides the complete implementation of "camt.052", "camt.053", and "camt.054". Differences are handled when reading or writing XML by switching according to the actual message type.
Constructors
SepaBankToCustomerMessage(string, SepaMessageType)
public SepaBankToCustomerMessage(string sMessageTagName, SepaMessageType nMessageType)
Parameters
sMessageTagName
stringnMessageType
SepaMessageType
Fields
STMTTAG_ACCOUNTREPORT
The XML statement tag for messages of type BankToCustomerAccountReport.
public const string STMTTAG_ACCOUNTREPORT = "Rpt"
Field Value
STMTTAG_DEBITCREDITNOTIFICATION
The XML statement tag for messages of type BankToCustomerDebitCreditNotification.
public const string STMTTAG_DEBITCREDITNOTIFICATION = "Ntfctn"
Field Value
STMTTAG_STATEMENT
The XML statement tag for messages of type BankToCustomerStatement.
public const string STMTTAG_STATEMENT = "Stmt"
Field Value
Properties
AdditionalInformation
Additional information text pertaining to the message.
public string AdditionalInformation { get; set; }
Property Value
- string
The additional information is optional and may be
null
.
MessageRecipient
The intended recipient for this message.
public SepaPartyIdentification MessageRecipient { get; }
Property Value
Remarks
Only the properties Name, BIC, and EBICSPartnerId may be used.
Statement
Convenience accessor to the first statement of this bank to customer message.
public SepaStatement Statement { get; }
Property Value
Remarks
If the Statements collection is empty, then reading this property will automatically create and add a new SepaStatement object to it. This is done in order to remain backward compatble with previous versions.
StatementTag
The XML tag used by the contained SepaStatement objects.
public string StatementTag { get; }
Property Value
Statements
The statement sequence of this SEPA document.
public SepaStatements Statements { get; }
Property Value
- SepaStatements
This property is never
null
, but the SepaStatements instance may be empty.
Methods
Clear()
public override void Clear()
GetStatementTag(SepaMessageType)
public static string GetStatementTag(SepaMessageType nMessageType)
Parameters
nMessageType
SepaMessageType
Returns
NewStatement()
Creates a new SepaStatement of a type that is appropriate to this container.
public SepaStatement NewStatement()
Returns
OnReadXml(XmlReader, SepaMessageInfo)
protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo)
Parameters
aXmlReader
XmlReaderaMessageInfo
SepaMessageInfo
OnValidate(ICollection<SepaException>, string)
protected override void OnValidate(ICollection<SepaException> vErrors, string sPath)
Parameters
vErrors
ICollection<SepaException>sPath
string
OnWriteXml(XmlWriter, SepaMessageInfo)
protected override void OnWriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
Parameters
aXmlWriter
XmlWriteraMessageInfo
SepaMessageInfo