Class DtazvBuilder
Simple utility class for easy building of German DTA files and records.
Inherited Members
Namespace: Subsembly.Dtazv
Assembly: Subsembly.Sepa.dll
Syntax
public class DtazvBuilder : DtazvBase
Constructors
DtazvBuilder(Int32)
Contructs a Dtazv
Declaration
public DtazvBuilder(int nCapacity)
Parameters
Type | Name | Description |
---|---|---|
System. |
nCapacity | The suggested initial capacity. This should be chosen according to the expected resulting data size. |
Exceptions
Type | Condition |
---|---|
System. |
The parameter |
Properties
Size
Provides the byte size of the DTA data collected so far.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
AppendRecordQ(String, String, DtazvNameAndAddress, DateTime, Int32, DateTime)
Appends a complete DTAZV record Q to this DTA data buffer.
Declaration
public void AppendRecordQ(string sBankCode, string sCustomerNumber, DtazvNameAndAddress aInitiator, DateTime tBuildDate, int nDailySeqNo, DateTime tScheduleDate)
Parameters
Type | Name | Description |
---|---|---|
System. |
sBankCode | The bank code of the bank that shall receive the DTAZV. |
System. |
sCustomerNumber | The customer number, usually the 10 digit account number of the ordering customer account. |
Dtazv |
aInitiator | The name of the initiator of this DTAZV order, perhaps including the address in
additional lines. This must not be |
System. |
tBuildDate | |
System. |
nDailySeqNo | |
System. |
tScheduleDate |
Exceptions
Type | Condition |
---|---|
System. |
The parameter aOrderingCustAcct or sOrderingCustName was |
System. |
The parameter sOrderingCustName was an empty string, or a required property of the given aOrderingCustAcct was not set. |
AppendRecordT(SepaCreditTransferPaymentInformation, SepaCreditTransferTransactionInformation)
Appends a complete DTAZV record T for a simple international remittance.
Declaration
public void AppendRecordT(SepaCreditTransferPaymentInformation aPmtInf, SepaCreditTransferTransactionInformation aTxInf)
Parameters
Type | Name | Description |
---|---|---|
Sepa |
aPmtInf | |
Sepa |
aTxInf |
AppendRecordZ()
Adds the final DTAZV record Z.
Declaration
public void AppendRecordZ()
Remarks
The required check values are taken from the current values of the properties
Total
GenerateDTAZV(SepaDocument, String, String)
Generates a complete DTAZV from a SEPA PAIN 001 document.
Declaration
public static DtazvBuilder GenerateDTAZV(SepaDocument aSepaDoc, string sBankCode, string sCustomerNumber)
Parameters
Type | Name | Description |
---|---|---|
Sepa |
aSepaDoc | The SEPA PAIN 001 document. |
System. |
sBankCode | The bank code of the bank that shall receive the DTAZV. |
System. |
sCustomerNumber | The customer number, usually the 10 digit account number of the ordering customer account. |
Returns
Type | Description |
---|---|
Dtazv |
A new Dtazv |
Exceptions
Type | Condition |
---|---|
System. |
The parameter |
System. |
The given SEPA document was not a
Credit
|
ToBytes()
Convert the collected DTA data to a byte array.
Declaration
public byte[] ToBytes()
Returns
Type | Description |
---|---|
System. |
This method returns the complete collected data as a DTA conforming byte array. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |