Class SepaBalance
public sealed class SepaBalance : SepaObject
- Inheritance
-
SepaBalance
- Inherited Members
Constructors
SepaBalance()
public SepaBalance()
SepaBalance(decimal, string, DateTime, SepaBalanceType)
Contructs a new instance, initialized to the given values.
public SepaBalance(decimal nValue, string sCurrency, DateTime tDate, SepaBalanceType nType = SepaBalanceType.ClosingBooked)
Parameters
nValuedecimalThe signed balance value. If this is a negative value, then the Debit indicator will be set, and the absolute amount is stored.
sCurrencystringtDateDateTimeThe balance Date.
nTypeSepaBalanceTypeThe balance Type
Properties
Amount
The amount and currency of this balance.
public SepaAmount Amount { get; }
Property Value
CreditLineAmount
Amount of the credit line.
public SepaAmount CreditLineAmount { get; }
Property Value
CreditLineIncluded
Indicates whether the given CreditLineAmount is included in the balance, or not.
public bool CreditLineIncluded { get; set; }
Property Value
Remarks
Only if a nonempty CreditLineAmount was set, then this will actually
be written together with the credit line amount. The default value is false.
If this is true, then the credit line amount must be subtracted from the
balance value, in order to get the real balance value.
Date
The date of this balance.
public DateTime Date { get; set; }
Property Value
Remarks
It is recommended to use a pure date value where the time is 00:00:00.
IsEmpty
public override bool IsEmpty { get; }
Property Value
Type
public SepaBalanceType Type { get; set; }
Property Value
TypeCode
The type of this balance.
public string TypeCode { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a value that was not exactly four upper case characters.
TypeProprietary
Proprietary balance type.
public string TypeProprietary { get; set; }
Property Value
Remarks
Either TypeCode or TypeProprietary must be set, but not both.
Exceptions
- ArgumentException
An attempt was made to set a value that is not a syntactically valid code.
Methods
Clear()
public override void Clear()
Clone()
public SepaBalance Clone()
Returns
OnReadXml(XmlReader, SepaMessageInfo)
protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo)
Parameters
aXmlReaderXmlReaderaMessageInfoSepaMessageInfo
OnValidate(ICollection<SepaException>, string)
protected override void OnValidate(ICollection<SepaException> vErrors, string sPath)
Parameters
vErrorsICollection<SepaException>sPathstring
OnWriteXml(XmlWriter, SepaMessageInfo)
protected override void OnWriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
Parameters
aXmlWriterXmlWriteraMessageInfoSepaMessageInfo