C# Class BudgetAnalyser.Engine.Statement.AnzVisaStatementImporterV1

Inheritance: IBankStatementImporter
Mostra file Open project: Benrnz/BudgetAnalyser

Public Methods

Method Description
AnzVisaStatementImporterV1 ( [ importUtilities, [ logger, [ readerWriterSelector ) : System
LoadAsync ( string fileName, Account account ) : Task

Load the given file into a StatementModel.

TasteTestAsync ( string fileName ) : Task

Test the given file to see if this importer implementation can read and import it. This will open and read some of the contents of the file.

Protected Methods

Method Description
ReadLinesAsync ( string fileName ) : Task>

Reads the lines from the file asynchronously.

ReadTextChunkAsync ( string filePath ) : Task

Reads a chunk of text asynchronously.

Private Methods

Method Description
FetchAmount ( string array, NamedTransaction transaction ) : decimal
FetchTransactionType ( string array ) : NamedTransaction
ReadFirstTwoLinesAsync ( string fileName ) : Task
VerifyColumnHeaderLine ( string line ) : bool
VerifyFirstDataLine ( string line ) : bool

Method Details

AnzVisaStatementImporterV1() public method

public AnzVisaStatementImporterV1 ( [ importUtilities, [ logger, [ readerWriterSelector ) : System
importUtilities [
logger [
readerWriterSelector [
return System

LoadAsync() public method

Load the given file into a StatementModel.
public LoadAsync ( string fileName, Account account ) : Task
fileName string The file to load.
account Account /// The account to classify these transactions. This is useful when merging one statement to another. For example, /// merging a cheque account /// export with visa account export, each can be classified using an account. ///
return Task

ReadLinesAsync() protected method

Reads the lines from the file asynchronously.
protected ReadLinesAsync ( string fileName ) : Task>
fileName string
return Task>

ReadTextChunkAsync() protected method

Reads a chunk of text asynchronously.
protected ReadTextChunkAsync ( string filePath ) : Task
filePath string
return Task

TasteTestAsync() public method

Test the given file to see if this importer implementation can read and import it. This will open and read some of the contents of the file.
public TasteTestAsync ( string fileName ) : Task
fileName string
return Task