• API Overview
  • EBICS API
  • FinTS API
  • XS2A API
  • SEPA API
Search Results for

    Class SepaMessage

    Abstract base class for all SEPA XML messages.

    Inheritance
    System.Object
    SepaObject
    SepaMessage
    SepaBankToCustomerMessage
    SepaPaymentInitiation
    SepaPaymentStatusReport
    Inherited Members
    SepaObject.TagName
    SepaObject.IsMandatory
    SepaObject.WriteXml(XmlWriter, SepaMessageInfo)
    SepaObject.WriteXml(XmlWriter, SepaMessageInfo, String)
    SepaObject.ReadXml(XmlReader, SepaMessageInfo)
    SepaObject.ReadXml(XmlReader, SepaMessageInfo, String)
    SepaObject.IsValid
    SepaObject.Validate(ICollection<SepaException>, String)
    SepaObject.OnWriteObjectXml(XmlWriter, SepaMessageInfo, String)
    SepaObject.OnReadObjectXml(XmlReader, SepaMessageInfo, String)
    SepaObject.OnWriteXml(XmlWriter, SepaMessageInfo)
    SepaObject.OnReadXml(XmlReader, SepaMessageInfo)
    SepaObject.OnAfterXmlRead(SepaMessageInfo)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Subsembly.Sepa
    Assembly: Subsembly.Sepa.dll
    Syntax
    public abstract class SepaMessage : SepaObject
    Remarks

    Currently a SepaDocument contains a single SEPA message which must be a class derived from SepaMessage. Thus all instances derived from SepaMessage will have IsMandatory set to true.

    Constructors

    SepaMessage(String, SepaMessageType)

    Declaration
    protected SepaMessage(string sMessageTagName, SepaMessageType nMessageType)
    Parameters
    Type Name Description
    System.String sMessageTagName
    SepaMessageType nMessageType

    Properties

    CreationDateTime

    The local date and time when the message was created.

    Declaration
    public DateTime CreationDateTime { get; set; }
    Property Value
    Type Description
    System.DateTime

    By default this is initialized with the current local date and time. When setting this property any date and time may be given.

    IsEmpty

    Declaration
    public override bool IsEmpty { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    SepaObject.IsEmpty

    MessageIdentification

    Unique identification of the message passed to the bank.

    Declaration
    public string MessageIdentification { get; set; }
    Property Value
    Type Description
    System.String

    An arbitrary text with a maximum length of MaxIdLen (35) characters. By default this property is initialised with a suitable random identification string.

    Remarks

    The character set must match CheckCharset(String).

    Exceptions
    Type Condition
    System.ArgumentException

    An attempt was made to set a string longer than 35 characters, or a string that contains invalid characters.

    MessageName

    Returns the MessageType as a string such as "pain.001" or "camt.052".

    Declaration
    public string MessageName { get; }
    Property Value
    Type Description
    System.String

    MessageType

    Returns the fundamental type of this SEPA message.

    Declaration
    public SepaMessageType MessageType { get; }
    Property Value
    Type Description
    SepaMessageType
    Remarks

    If the type is CreditTransferPaymentInitiation, then the message object is actually a SepaCreditTransferPaymentInitiation.

    If the type is DirectDebitPaymentInitiation, then the message object is actually a SepaDirectDebitPaymentInitiation.

    If the type is PaymentStatusReport, then the message object is actually a SepaPaymentStatusReport.

    If the type is BankToCustomerAccountReport, then the message object is actually a SepaBankToCustomerAccountReport.

    If the type is BankToCustomerStatement, then the message object is actually a SepaBankToCustomerStatement.

    If the type is BankToCustomerDebitCreditNotification, then the message object is actually a SepaBankToCustomerDebitCreditNotification.

    Methods

    Clear()

    Declaration
    public override void Clear()
    Overrides
    SepaObject.Clear()

    OnValidate(ICollection<SepaException>, String)

    Declaration
    protected override void OnValidate(ICollection<SepaException> vErrors, string sPath)
    Parameters
    Type Name Description
    System.Collections.Generic.ICollection<SepaException> vErrors
    System.String sPath
    Overrides
    SepaObject.OnValidate(ICollection<SepaException>, String)

    ReadGroupHeaderFields(XmlReader, SepaMessageInfo)

    Declaration
    protected void ReadGroupHeaderFields(XmlReader aXmlReader, SepaMessageInfo aMessageInfo)
    Parameters
    Type Name Description
    System.Xml.XmlReader aXmlReader
    SepaMessageInfo aMessageInfo

    WriteGroupHeaderFields(XmlWriter, SepaMessageInfo)

    Declaration
    protected void WriteGroupHeaderFields(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
    Parameters
    Type Name Description
    System.Xml.XmlWriter aXmlWriter
    SepaMessageInfo aMessageInfo
    In This Article
    Back to top Copyright 2009-2025 Subsembly GmbH