Class FinDtaBase
Common base class for FinDtaBuilder and FinDtaParser.
public class FinDtaBase
- Inheritance
-
FinDtaBase
- Derived
- Inherited Members
Properties
AcctNoSum
The total sum of all account numbers of all C records since the last A record.
public long AcctNoSum { get; }
Property Value
Remarks
Each call to AppendRecordC(FinRemitt, string) or ReadRecordC(out string) adds the payee account number to this total sum. The AcctNoSum is reset to zero whenever a new logical file is begun AppendRecordA(FinAcct, DtausType, DateTime, string, DateTime), or ReadRecordA().
BankCodeSum
The total sum of all bank codes of all C records since the last A record.
public long BankCodeSum { get; }
Property Value
Remarks
Each call to AppendRecordC(FinRemitt, string) or ReadRecordC(out string) adds the payee bank code number to this total sum. The BankCodeSum is reset to zero whenever a new logical file is begun through AppendRecordA(FinAcct, DtausType, DateTime, string, DateTime), or ReadRecordA().
InitiatorName
Optional name of the sender of the DTA file.
public string InitiatorName { get; set; }
Property Value
Remarks
This value is stored in field A6 in a DTAUS file. If the value is not set, then the account holder name will be used when generating the file. This shall not be longer than 27 characters.
TotalCount
The total count of C or T records so far.
public int TotalCount { get; }
Property Value
Remarks
Each call to AppendRecordC(FinRemitt, string), AppendRecordT(FinIntRemitt, DateTime), or ReadRecordC(out string) increment this count by one. The TotalCount is reset to zero whenever a new logical file is begun through AppendRecordA(FinAcct, DtausType, DateTime, string, DateTime), AppendRecordQ(FinAcct, SwiftTextLines, DateTime, int, DateTime), or ReadRecordA().
TotalValue
The total sum of all monetary values so far.
public decimal TotalValue { get; }
Property Value
Remarks
When adding C records this value includes the fractional part. When adding T records only the whole number without its fractional part is added to the TotalValue.
The TotalValue is automatically reset to zero whenever a new logical file is begun through AppendRecordA(FinAcct, DtausType, DateTime, string, DateTime), AppendRecordQ(FinAcct, SwiftTextLines, DateTime, int, DateTime), or ReadRecordA().
Methods
AddCount(decimal, long, long)
Add the given values to the check sums
protected void AddCount(decimal dValue, long nAcctNo, long nBankCode)
Parameters
dValuedecimalThe value to be added to the TotalValue checksum. This must not be negative, but may be zero.
nAcctNolongThe value to be added to the AcctNoSum checksum. This must not be negative, but may be zero.
nBankCodelongThe value to be added to the BankCodeSum checksum. This must not be negative, but may be zero.
Remarks
In addition of adding to the check sums, this method also increments the TotalCount by one.
ResetCount()
Resets the check sums.
protected void ResetCount()
Remarks
This method resets the properties TotalValue, AcctNoSum, BankCodeSum, and TotalCount to zero.