Refactor temporary account storage and fix a bug in the bunq import. #1607

This commit is contained in:
James Cole
2018-10-25 20:03:48 +02:00
parent e1402d5d8a
commit 3a427dd0f4
5 changed files with 85 additions and 20 deletions

View File

@@ -35,6 +35,7 @@ use Symfony\Component\HttpFoundation\File\UploadedFile;
*/
interface ImportJobRepositoryInterface
{
/**
* Add message to job.
*
@@ -55,6 +56,13 @@ interface ImportJobRepositoryInterface
*/
public function appendTransactions(ImportJob $job, array $transactions): ImportJob;
/**
* @param ImportJob $job
*
* @return int
*/
public function countTransactions(ImportJob $job): int;
/**
* @param string $importProvider
*
@@ -96,6 +104,15 @@ interface ImportJobRepositoryInterface
*/
public function getExtendedStatus(ImportJob $job): array;
/**
* Return transactions from attachment.
*
* @param ImportJob $job
*
* @return array
*/
public function getTransactions(ImportJob $job): array;
/**
* @param ImportJob $job
* @param array $configuration