Class FinDtaBase
Common base class for FinDtaBuilder and FinDtaParser.
Inherited Members
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public class FinDtaBase
Properties
AcctNoSum
The total sum of all account numbers of all C records since the last A record.
Declaration
public long AcctNoSum { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
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, FinDtaBase.DtausType, DateTime, String, DateTime), or ReadRecordA().
BankCodeSum
The total sum of all bank codes of all C records since the last A record.
Declaration
public long BankCodeSum { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
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, FinDtaBase.DtausType, DateTime, String, DateTime), or ReadRecordA().
InitiatorName
Optional name of the sender of the DTA file.
Declaration
public string InitiatorName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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.
Declaration
public int TotalCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
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, FinDtaBase.DtausType, DateTime, String, DateTime), AppendRecordQ(FinAcct, SwiftTextLines, DateTime, Int32, DateTime), or ReadRecordA().
TotalValue
The total sum of all monetary values so far.
Declaration
public decimal TotalValue { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
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, FinDtaBase.DtausType, DateTime, String, DateTime), AppendRecordQ(FinAcct, SwiftTextLines, DateTime, Int32, DateTime), or ReadRecordA().
Methods
AddCount(Decimal, Int64, Int64)
Add the given values to the check sums
Declaration
protected void AddCount(decimal dValue, long nAcctNo, long nBankCode)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | dValue | The value to be added to the TotalValue checksum. This must not be negative, but may be zero. |
System.Int64 | nAcctNo | The value to be added to the AcctNoSum checksum. This must not be negative, but may be zero. |
System.Int64 | nBankCode | The 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.
Declaration
protected void ResetCount()
Remarks
This method resets the properties TotalValue, AcctNoSum, BankCodeSum, and TotalCount to zero.