diff --git a/.env.docker b/.env.docker index 28b1973148..20f4436f77 100644 --- a/.env.docker +++ b/.env.docker @@ -95,4 +95,5 @@ DEMO_PASSWORD= IS_DOCKER=true IS_SANDSTORM=false IS_HEROKU=false +BUNQ_USE_SANDBOX=false TZ=${TZ} diff --git a/.env.example b/.env.example index 2f2f38771a..e45753a2ca 100644 --- a/.env.example +++ b/.env.example @@ -98,4 +98,5 @@ DEMO_USERNAME= DEMO_PASSWORD= IS_DOCKER=false IS_SANDSTORM=false +BUNQ_USE_SANDBOX=false IS_HEROKU=false diff --git a/.env.heroku b/.env.heroku index e25675664d..91e273659a 100644 --- a/.env.heroku +++ b/.env.heroku @@ -98,4 +98,5 @@ DEMO_USERNAME= DEMO_PASSWORD= IS_DOCKER=false IS_SANDSTORM=false +BUNQ_USE_SANDBOX=false IS_HEROKU=true diff --git a/.env.sandstorm b/.env.sandstorm index 8aa9358af8..c72676704c 100755 --- a/.env.sandstorm +++ b/.env.sandstorm @@ -98,4 +98,5 @@ DEMO_USERNAME= DEMO_PASSWORD= IS_DOCKER=false IS_SANDSTORM=true +BUNQ_USE_SANDBOX=false IS_HEROKU=false diff --git a/.env.testing b/.env.testing index 04b6a2b328..fa52a8da59 100644 --- a/.env.testing +++ b/.env.testing @@ -94,4 +94,5 @@ DEMO_USERNAME= DEMO_PASSWORD= IS_DOCKER=false IS_SANDSTORM=false +BUNQ_USE_SANDBOX=false IS_HEROKU=false diff --git a/app/Import/Prerequisites/SpectrePrerequisites.php b/app/Import/Prerequisites/SpectrePrerequisites.php index 35ef68b989..4dd96c6809 100644 --- a/app/Import/Prerequisites/SpectrePrerequisites.php +++ b/app/Import/Prerequisites/SpectrePrerequisites.php @@ -30,8 +30,6 @@ use Log; use Preferences; /** - * @deprecated - * @codeCoverageIgnore * This class contains all the routines necessary to connect to Spectre. */ class SpectrePrerequisites implements PrerequisitesInterface @@ -196,7 +194,7 @@ class SpectrePrerequisites implements PrerequisitesInterface */ public function getView(): string { - return ''; + return 'import.spectre.prerequisites'; } /** diff --git a/config/import.php b/config/import.php index 07df95bec1..958fbabf5e 100644 --- a/config/import.php +++ b/config/import.php @@ -25,6 +25,7 @@ declare(strict_types=1); use FireflyIII\Import\JobConfiguration\FakeJobConfiguration; use FireflyIII\Import\JobConfiguration\FileJobConfiguration; use FireflyIII\Import\Prerequisites\FakePrerequisites; +use FireflyIII\Import\Prerequisites\SpectrePrerequisites; use FireflyIII\Import\Routine\FakeRoutine; use FireflyIII\Import\Routine\FileRoutine; use FireflyIII\Support\Import\Routine\File\CSVProcessor; @@ -60,6 +61,7 @@ return [ 'quovo' => true, 'yodlee' => true, ], + // some providers have pre-requisites. 'has_prereq' => [ 'fake' => true, 'file' => false, @@ -69,15 +71,17 @@ return [ 'quovo' => true, 'yodlee' => true, ], + // if so, there must be a class to handle them. 'prerequisites' => [ 'fake' => FakePrerequisites::class, 'file' => false, - 'bunq' => false, + 'bunq' => SpectrePrerequisites::class, 'spectre' => false, 'plaid' => false, 'quovo' => false, 'yodlee' => false, ], + // some providers may have extra configuration per job. 'has_config' => [ 'fake' => true, 'file' => true, @@ -87,6 +91,7 @@ return [ 'quovo' => true, 'yodlee' => true, ], + // if so, this is the class that handles it. 'configuration' => [ 'fake' => FakeJobConfiguration::class, 'file' => FileJobConfiguration::class, @@ -96,6 +101,7 @@ return [ 'quovo' => false, 'yodlee' => false, ], + // this is the routine that runs the actual import. 'routine' => [ 'fake' => FakeRoutine::class, 'file' => FileRoutine::class, @@ -128,5 +134,8 @@ return [ 'spectre' => [ 'server' => 'www.saltedge.com', ], + 'plaid' => [], + 'quovo' => [], + 'yodlee' => [], ], ]; diff --git a/resources/views/import/index.twig b/resources/views/import/index.twig index b52d97f261..e1d542d513 100644 --- a/resources/views/import/index.twig +++ b/resources/views/import/index.twig @@ -71,6 +71,7 @@ + {#