Files
firefly-iii/config/import.php

121 lines
3.7 KiB
PHP
Raw Normal View History

<?php
2018-04-02 14:43:06 +02:00
declare(strict_types=1);
use FireflyIII\Import\Configuration\BunqConfigurator;
use FireflyIII\Import\Configuration\FileConfigurator;
use FireflyIII\Import\Configuration\SpectreConfigurator;
use FireflyIII\Import\FileProcessor\CsvProcessor;
use FireflyIII\Import\Prerequisites\BunqPrerequisites;
use FireflyIII\Import\Prerequisites\FilePrerequisites;
use FireflyIII\Import\Prerequisites\SpectrePrerequisites;
use FireflyIII\Import\Routine\BunqRoutine;
use FireflyIII\Import\Routine\FileRoutine;
use FireflyIII\Import\Routine\SpectreRoutine;
2017-12-17 14:44:46 +01:00
/**
* import.php
* Copyright (c) 2017 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
return [
2017-12-16 19:47:14 +01:00
'enabled' => [
2018-04-29 18:03:55 +02:00
'fake' => false,
'file' => true,
2018-03-10 07:16:38 +01:00
'bunq' => true,
2018-01-08 19:19:17 +01:00
'spectre' => true,
2017-12-17 19:24:43 +01:00
'plaid' => false,
2018-04-29 18:03:55 +02:00
'quovo' => false,
'yodlee' => false,
],
'has_prereq' => [
'fake' => true,
'file' => false,
'bunq' => true,
'spectre' => true,
'plaid' => true,
'quovo' => true,
'yodlee' => true,
],
2017-12-16 19:47:14 +01:00
'prerequisites' => [
2018-04-29 18:03:55 +02:00
'fake' => false,
2018-04-02 14:43:06 +02:00
'file' => FilePrerequisites::class,
'bunq' => BunqPrerequisites::class,
'spectre' => SpectrePrerequisites::class,
'plaid' => 'FireflyIII\Import\Prerequisites\PlaidPrerequisites',
2018-04-29 18:03:55 +02:00
'quovo' => false,
'yodlee' => false,
],
'has_config' => [
'fake' => true,
'file' => true,
'bunq' => true,
'spectre' => true,
'plaid' => true,
'quovo' => true,
'yodlee' => true,
],
2017-12-16 19:47:14 +01:00
'configuration' => [
2018-04-02 14:43:06 +02:00
'file' => FileConfigurator::class,
'bunq' => BunqConfigurator::class,
'spectre' => SpectreConfigurator::class,
'plaid' => 'FireflyIII\Import\Configuration\PlaidConfigurator',
],
2017-12-16 19:47:14 +01:00
'routine' => [
2018-04-02 14:43:06 +02:00
'file' => FileRoutine::class,
'bunq' => BunqRoutine::class,
'spectre' => SpectreRoutine::class,
2017-12-16 19:47:14 +01:00
'plaid' => 'FireflyIII\Import\Routine\PlaidRoutine',
],
'options' => [
2018-04-29 18:03:55 +02:00
'file' => [
'import_formats' => ['csv'], // mt940
'default_import_format' => 'csv',
2018-03-10 07:16:38 +01:00
'processors' => [
2018-04-02 14:43:06 +02:00
'csv' => CsvProcessor::class,
],
],
2018-04-29 18:03:55 +02:00
'bunq' => [
'server' => 'sandbox.public.api.bunq.com', // sandbox.public.api.bunq.com - api.bunq.com
2018-03-10 07:16:38 +01:00
'version' => 'v1',
],
2018-04-28 15:35:43 +02:00
'spectre' => [
'server' => 'www.saltedge.com',
],
],
'default_config' => [
'file' => [
'has-config-file' => true,
'auto-start' => false,
],
'bunq' => [
'has-config-file' => false,
'auto-start' => true,
],
'spectre' => [
'has-config-file' => false,
'auto-start' => true,
],
'plaid' => [
'has-config-file' => false,
'auto-start' => true,
],
],
2017-12-27 22:29:25 +01:00
];