Class FinCamtStatementBuilder
Builder for an account statement inquiry using CAMT 052 format (HKCAZ).
public class FinCamtStatementBuilder : FinOrderBuilder
- Inheritance
-
FinCamtStatementBuilder
- Inherited Members
Constructors
FinCamtStatementBuilder(FinContact)
Creates a single account movements inquiry builder for the given bank parameter data.
public FinCamtStatementBuilder(FinContact aContact)
Parameters
aContactFinContactContact data of a fully initialised and synchronised contact for which to create the FinCamtStatementBuilder instance.
Properties
AcctMvmtDataCutoff
Number of days that account movement data is stored at the bank.
public int AcctMvmtDataCutoff { get; }
Property Value
SupportedCamtFormats
Array of supported CAMT formats. This is never null and should never be
empty.
public string[] SupportedCamtFormats { get; }
Property Value
- string[]
Methods
Build(FinAcct, SwiftDate, SwiftDate)
Builds a CAMT statement inquiry request from the given parameters.
public FinCamtStatement Build(FinAcct aOrderAcct, SwiftDate aStartDate, SwiftDate aEndDate)
Parameters
aOrderAcctFinAcctThe ordering customers account information. This must be specified as a valid ordering customers account.
aStartDateSwiftDateOptional starting date. Should not be older than today minus AcctMvmtDataCutoff days.
aEndDateSwiftDateOptional ending date. Must be after or equal to
aStartDate(if given).
Returns
- FinCamtStatement
Initialised instance of FinCamtStatement that is ready to be executed.
Exceptions
- InvalidOperationException
Thrown if the bank does not support this order type.
- See Also
Build(FinAcct, DateTime, DateTime)
Builds a CAMT statement inquiry request from the given parameters.
public FinCamtStatement Build(FinAcct aOrderAcct, DateTime tStartDate, DateTime tEndDate)
Parameters
aOrderAcctFinAccttStartDateDateTimeOptional starting date. Should not be older than today minus AcctMvmtDataCutoff days, and should not be a future date. Use the value
DateTime.MinValueto omit a starting date from the order. The date given will be converted to a German date using ConvertToGermanTime(DateTime) to ensure that it matches the time zone of the server.tEndDateDateTimeOptional ending date. Should be after or equal to
tStartDate(if given). This should not be a future date. Use the valueDateTime.MinValueto omit an ending date from the order and thus retrieve all current and future statement entries. The date given will be converted to a German date using ConvertToGermanTime(DateTime) to ensure that it matches the time zone of the server.
Returns
- FinCamtStatement
Initialised instance of FinCamtStatement that is ready to be executed.
Exceptions
- InvalidOperationException
Thrown if the bank does not support this order type.
- ArgumentNullException
Thrown if the parameter
aOrderAcctisnull.