| 
									
										
										
										
											2015-02-06 19:33:31 +01:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * firefly.php | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * Copyright (c) 2019 thegrumpydictator@gmail.com | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * This file is part of Firefly III (https://github.com/firefly-iii). | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * This program is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU Affero General Public License as | 
					
						
							|  |  |  |  * published by the Free Software Foundation, either version 3 of the | 
					
						
							|  |  |  |  * License, or (at your option) any later version. | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * This program is distributed in the hope that it will be useful, | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * GNU Affero General Public License for more details. | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * You should have received a copy of the GNU Affero General Public License | 
					
						
							|  |  |  |  * along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  | declare(strict_types=1); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  | use FireflyIII\Models\Account; | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  | use FireflyIII\Models\AccountType; | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  | use FireflyIII\Models\Attachment; | 
					
						
							|  |  |  | use FireflyIII\Models\AvailableBudget; | 
					
						
							|  |  |  | use FireflyIII\Models\Bill; | 
					
						
							|  |  |  | use FireflyIII\Models\Budget; | 
					
						
							|  |  |  | use FireflyIII\Models\BudgetLimit; | 
					
						
							|  |  |  | use FireflyIII\Models\Category; | 
					
						
							|  |  |  | use FireflyIII\Models\ImportJob; | 
					
						
							|  |  |  | use FireflyIII\Models\LinkType; | 
					
						
							|  |  |  | use FireflyIII\Models\PiggyBank; | 
					
						
							|  |  |  | use FireflyIII\Models\Preference; | 
					
						
							|  |  |  | use FireflyIII\Models\Recurrence; | 
					
						
							|  |  |  | use FireflyIII\Models\Rule; | 
					
						
							|  |  |  | use FireflyIII\Models\RuleGroup; | 
					
						
							|  |  |  | use FireflyIII\Models\Tag; | 
					
						
							|  |  |  | use FireflyIII\Models\TransactionCurrency; | 
					
						
							|  |  |  | use FireflyIII\Models\TransactionGroup; | 
					
						
							|  |  |  | use FireflyIII\Models\TransactionJournal; | 
					
						
							|  |  |  | use FireflyIII\Models\TransactionJournalLink; | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  | use FireflyIII\Models\TransactionType as TransactionTypeModel; | 
					
						
							| 
									
										
										
										
											2019-01-01 16:32:22 +01:00
										 |  |  | use FireflyIII\Services\Currency\FixerIOv2; | 
					
						
							|  |  |  | use FireflyIII\Services\Currency\RatesApiIOv1; | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  | use FireflyIII\Support\Binder\AccountList; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\BudgetList; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\CategoryList; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\CLIToken; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\ConfigurationName; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\CurrencyCode; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\Date; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\ImportProvider; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\JournalList; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\TagList; | 
					
						
							|  |  |  | use FireflyIII\Support\Binder\TagOrId; | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  | use FireflyIII\TransactionRules\Actions\AddTag; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\AppendDescription; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\AppendNotes; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\ClearBudget; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\ClearCategory; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\ClearNotes; | 
					
						
							| 
									
										
										
										
											2018-09-15 13:43:57 +02:00
										 |  |  | use FireflyIII\TransactionRules\Actions\ConvertToDeposit; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\ConvertToTransfer; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\ConvertToWithdrawal; | 
					
						
							| 
									
										
										
										
											2018-04-07 06:20:45 +02:00
										 |  |  | use FireflyIII\TransactionRules\Actions\LinkToBill; | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  | use FireflyIII\TransactionRules\Actions\PrependDescription; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\PrependNotes; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\RemoveAllTags; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\RemoveTag; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\SetBudget; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\SetCategory; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\SetDescription; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\SetDestinationAccount; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\SetNotes; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Actions\SetSourceAccount; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\AmountExactly; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\AmountLess; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\AmountMore; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\BudgetIs; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\CategoryIs; | 
					
						
							| 
									
										
										
										
											2018-04-08 16:27:52 +02:00
										 |  |  | use FireflyIII\TransactionRules\Triggers\CurrencyIs; | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  | use FireflyIII\TransactionRules\Triggers\DescriptionContains; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\DescriptionEnds; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\DescriptionIs; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\DescriptionStarts; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\FromAccountContains; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\FromAccountEnds; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\FromAccountIs; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\FromAccountStarts; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\HasAnyBudget; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\HasAnyCategory; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\HasAnyTag; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\HasAttachment; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\HasNoBudget; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\HasNoCategory; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\HasNoTag; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\NotesAny; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\NotesAre; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\NotesContain; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\NotesEmpty; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\NotesEnd; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\NotesStart; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\TagIs; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\ToAccountContains; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\ToAccountEnds; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\ToAccountIs; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\ToAccountStarts; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\TransactionType; | 
					
						
							|  |  |  | use FireflyIII\TransactionRules\Triggers\UserAction; | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  | use FireflyIII\User; | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-18 19:57:21 +02:00
										 |  |  | /* | 
					
						
							|  |  |  |  * DO NOT EDIT THIS FILE. IT IS AUTO GENERATED. | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  |  * ANY OPTIONS IN THIS FILE YOU CAN SAFELY EDIT CAN BE FOUND IN THE USER INTERFACE OF FIREFLY III. | 
					
						
							| 
									
										
										
										
											2016-09-18 19:57:21 +02:00
										 |  |  |  */ | 
					
						
							| 
									
										
										
										
											2016-05-20 08:57:45 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-06 19:33:31 +01:00
										 |  |  | return [ | 
					
						
							| 
									
										
										
										
											2019-07-31 16:53:09 +02:00
										 |  |  |     'configuration'          => [ | 
					
						
							| 
									
										
										
										
											2017-01-04 04:48:58 +01:00
										 |  |  |         'single_user_mode' => true, | 
					
						
							|  |  |  |         'is_demo_site'     => false, | 
					
						
							| 
									
										
										
										
											2016-09-01 18:31:39 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'encryption'                   => null === env('USE_ENCRYPTION') || env('USE_ENCRYPTION') === true, | 
					
						
							| 
									
										
										
										
											2019-11-25 18:43:36 +01:00
										 |  |  |     'version'                      => '4.8.2-beta.2', | 
					
						
							| 
									
										
										
										
											2019-10-26 07:57:40 +02:00
										 |  |  |     'api_version'                  => '0.10.5', | 
					
						
							| 
									
										
										
										
											2019-08-02 21:21:38 +02:00
										 |  |  |     'db_version'                   => 11, | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'maxUploadSize'                => 15242880, | 
					
						
							|  |  |  |     'send_error_message'           => env('SEND_ERROR_MESSAGE', true), | 
					
						
							|  |  |  |     'site_owner'                   => env('SITE_OWNER', ''), | 
					
						
							|  |  |  |     'send_registration_mail'       => env('SEND_REGISTRATION_MAIL', true), | 
					
						
							|  |  |  |     'demo_username'                => env('DEMO_USERNAME', ''), | 
					
						
							|  |  |  |     'demo_password'                => env('DEMO_PASSWORD', ''), | 
					
						
							|  |  |  |     'is_sandstorm'                 => env('IS_SANDSTORM', 'unknown'), | 
					
						
							|  |  |  |     'bunq_use_sandbox'             => env('BUNQ_USE_SANDBOX', false), | 
					
						
							|  |  |  |     'fixer_api_key'                => env('FIXER_API_KEY', ''), | 
					
						
							|  |  |  |     'mapbox_api_key'               => env('MAPBOX_API_KEY', ''), | 
					
						
							|  |  |  |     'trusted_proxies'              => env('TRUSTED_PROXIES', ''), | 
					
						
							|  |  |  |     'search_result_limit'          => env('SEARCH_RESULT_LIMIT', 50), | 
					
						
							|  |  |  |     'send_report_journals'         => envNonEmpty('SEND_REPORT_JOURNALS', true), | 
					
						
							|  |  |  |     'analytics_id'                 => env('ANALYTICS_ID', ''), | 
					
						
							|  |  |  |     'disable_frame_header'         => env('DISABLE_FRAME_HEADER', false), | 
					
						
							|  |  |  |     'login_provider'               => envNonEmpty('LOGIN_PROVIDER', 'eloquent'), | 
					
						
							| 
									
										
										
										
											2019-01-01 16:32:22 +01:00
										 |  |  |     'cer_provider'                 => envNonEmpty('CER_PROVIDER', 'fixer'), | 
					
						
							| 
									
										
										
										
											2019-10-30 20:02:38 +01:00
										 |  |  |     'update_endpoint'              => 'https://version.firefly-iii.org/index.json', | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'allowedMimes'                 => [ | 
					
						
							| 
									
										
										
										
											2018-01-25 18:41:51 +01:00
										 |  |  |         /* plain files */ | 
					
						
							| 
									
										
										
										
											2018-01-25 19:21:46 +01:00
										 |  |  |         'text/plain', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         /* images */ | 
					
						
							|  |  |  |         'image/jpeg', | 
					
						
							|  |  |  |         'image/svg+xml', | 
					
						
							|  |  |  |         'image/png', | 
					
						
							|  |  |  |         'image/heic', | 
					
						
							|  |  |  |         'image/heic-sequence', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         /* PDF */ | 
					
						
							|  |  |  |         'application/pdf', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-25 18:41:51 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |         /* MS word */ | 
					
						
							|  |  |  |         'application/msword', | 
					
						
							|  |  |  |         'application/vnd.openxmlformats-officedocument.wordprocessingml.document', | 
					
						
							|  |  |  |         'application/vnd.openxmlformats-officedocument.wordprocessingml.template', | 
					
						
							|  |  |  |         /* MS excel */ | 
					
						
							|  |  |  |         'application/vnd.ms-excel', | 
					
						
							|  |  |  |         'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', | 
					
						
							|  |  |  |         'application/vnd.openxmlformats-officedocument.spreadsheetml.template', | 
					
						
							|  |  |  |         /* MS powerpoint */ | 
					
						
							|  |  |  |         'application/vnd.ms-powerpoint', | 
					
						
							|  |  |  |         'application/vnd.openxmlformats-officedocument.presentationml.presentation', | 
					
						
							|  |  |  |         'application/vnd.openxmlformats-officedocument.presentationml.template', | 
					
						
							|  |  |  |         'application/vnd.openxmlformats-officedocument.presentationml.slideshow', | 
					
						
							|  |  |  |         /* iWork */ | 
					
						
							|  |  |  |         'application/x-iwork-pages-sffpages', | 
					
						
							|  |  |  |         /* open office */ | 
					
						
							|  |  |  |         'application/vnd.sun.xml.writer', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.writer.template', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.writer.global', | 
					
						
							|  |  |  |         'application/vnd.stardivision.writer', | 
					
						
							|  |  |  |         'application/vnd.stardivision.writer-global', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.calc', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.calc.template', | 
					
						
							|  |  |  |         'application/vnd.stardivision.calc', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.impress', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.impress.template', | 
					
						
							|  |  |  |         'application/vnd.stardivision.impress', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.draw', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.draw.template', | 
					
						
							|  |  |  |         'application/vnd.stardivision.draw', | 
					
						
							|  |  |  |         'application/vnd.sun.xml.math', | 
					
						
							|  |  |  |         'application/vnd.stardivision.math', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.text', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.text-template', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.text-web', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.text-master', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.graphics', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.graphics-template', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.presentation', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.presentation-template', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.spreadsheet', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.spreadsheet-template', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.chart', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.formula', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.database', | 
					
						
							|  |  |  |         'application/vnd.oasis.opendocument.image', | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'list_length'                  => 10, | 
					
						
							|  |  |  |     'default_import_format'        => 'csv', | 
					
						
							|  |  |  |     'bill_periods'                 => ['weekly', 'monthly', 'quarterly', 'half-year', 'yearly'], | 
					
						
							|  |  |  |     'accountRoles'                 => ['defaultAsset', 'sharedAsset', 'savingAsset', 'ccAsset', 'cashWalletAsset'], | 
					
						
							|  |  |  |     'ccTypes'                      => [ | 
					
						
							| 
									
										
										
										
											2016-02-04 17:16:16 +01:00
										 |  |  |         'monthlyFull' => 'Full payment every month', | 
					
						
							| 
									
										
										
										
											2015-04-03 22:54:21 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'range_to_repeat_freq'         => [ | 
					
						
							| 
									
										
										
										
											2015-02-06 19:33:31 +01:00
										 |  |  |         '1D'     => 'weekly', | 
					
						
							|  |  |  |         '1W'     => 'weekly', | 
					
						
							|  |  |  |         '1M'     => 'monthly', | 
					
						
							|  |  |  |         '3M'     => 'quarterly', | 
					
						
							|  |  |  |         '6M'     => 'half-year', | 
					
						
							| 
									
										
										
										
											2016-04-25 18:43:09 +02:00
										 |  |  |         '1Y'     => 'yearly', | 
					
						
							| 
									
										
										
										
											2016-04-28 10:59:36 +02:00
										 |  |  |         'custom' => 'custom', | 
					
						
							| 
									
										
										
										
											2015-02-06 19:33:31 +01:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'subTitlesByIdentifier'        => | 
					
						
							| 
									
										
										
										
											2015-02-07 23:19:28 +01:00
										 |  |  |         [ | 
					
						
							| 
									
										
										
										
											2018-08-04 17:30:47 +02:00
										 |  |  |             'asset'       => 'Asset accounts', | 
					
						
							|  |  |  |             'expense'     => 'Expense accounts', | 
					
						
							|  |  |  |             'revenue'     => 'Revenue accounts', | 
					
						
							|  |  |  |             'cash'        => 'Cash accounts', | 
					
						
							|  |  |  |             'liabilities' => 'Liabilities', | 
					
						
							| 
									
										
										
										
											2018-08-26 21:29:46 +02:00
										 |  |  |             'liability'   => 'Liabilities', | 
					
						
							| 
									
										
										
										
											2015-02-07 23:19:28 +01:00
										 |  |  |         ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'subIconsByIdentifier'         => | 
					
						
							| 
									
										
										
										
											2015-02-07 23:19:28 +01:00
										 |  |  |         [ | 
					
						
							|  |  |  |             'asset'               => 'fa-money', | 
					
						
							|  |  |  |             'Asset account'       => 'fa-money', | 
					
						
							|  |  |  |             'Default account'     => 'fa-money', | 
					
						
							|  |  |  |             'Cash account'        => 'fa-money', | 
					
						
							|  |  |  |             'expense'             => 'fa-shopping-cart', | 
					
						
							|  |  |  |             'Expense account'     => 'fa-shopping-cart', | 
					
						
							|  |  |  |             'Beneficiary account' => 'fa-shopping-cart', | 
					
						
							|  |  |  |             'revenue'             => 'fa-download', | 
					
						
							|  |  |  |             'Revenue account'     => 'fa-download', | 
					
						
							| 
									
										
										
										
											2016-07-16 07:58:25 +02:00
										 |  |  |             'import'              => 'fa-download', | 
					
						
							|  |  |  |             'Import account'      => 'fa-download', | 
					
						
							| 
									
										
										
										
											2018-08-04 17:30:47 +02:00
										 |  |  |             'liabilities'         => 'fa-ticket', | 
					
						
							| 
									
										
										
										
											2015-02-07 23:19:28 +01:00
										 |  |  |         ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'accountTypesByIdentifier'     => | 
					
						
							| 
									
										
										
										
											2015-02-07 23:19:28 +01:00
										 |  |  |         [ | 
					
						
							| 
									
										
										
										
											2018-08-03 16:35:55 +02:00
										 |  |  |             'asset'       => ['Default account', 'Asset account'], | 
					
						
							|  |  |  |             'expense'     => ['Expense account', 'Beneficiary account'], | 
					
						
							|  |  |  |             'revenue'     => ['Revenue account'], | 
					
						
							|  |  |  |             'import'      => ['Import account'], | 
					
						
							|  |  |  |             'liabilities' => ['Loan', 'Debt', 'Credit card', 'Mortgage'], | 
					
						
							| 
									
										
										
										
											2015-02-07 23:19:28 +01:00
										 |  |  |         ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'accountTypeByIdentifier'      => | 
					
						
							| 
									
										
										
										
											2015-02-09 07:23:39 +01:00
										 |  |  |         [ | 
					
						
							| 
									
										
										
										
											2018-08-04 17:30:47 +02:00
										 |  |  |             'asset'       => ['Asset account'], | 
					
						
							|  |  |  |             'expense'     => ['Expense account'], | 
					
						
							|  |  |  |             'revenue'     => ['Revenue account'], | 
					
						
							|  |  |  |             'opening'     => ['Initial balance account'], | 
					
						
							|  |  |  |             'initial'     => ['Initial balance account'], | 
					
						
							|  |  |  |             'import'      => ['Import account'], | 
					
						
							|  |  |  |             'reconcile'   => ['Reconciliation account'], | 
					
						
							|  |  |  |             'liabilities' => ['Loan', 'Debt', 'Mortgage', 'Credit card'], | 
					
						
							| 
									
										
										
										
											2018-08-26 21:29:46 +02:00
										 |  |  |             'liability'   => ['Loan', 'Debt', 'Mortgage', 'Credit card'], | 
					
						
							| 
									
										
										
										
											2015-02-09 07:23:39 +01:00
										 |  |  |         ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'shortNamesByFullName'         => | 
					
						
							| 
									
										
										
										
											2015-02-14 14:25:29 +01:00
										 |  |  |         [ | 
					
						
							| 
									
										
										
										
											2018-12-29 21:51:20 +01:00
										 |  |  |             'Default account'         => 'asset', | 
					
						
							|  |  |  |             'Asset account'           => 'asset', | 
					
						
							|  |  |  |             'Import account'          => 'import', | 
					
						
							|  |  |  |             'Expense account'         => 'expense', | 
					
						
							|  |  |  |             'Beneficiary account'     => 'expense', | 
					
						
							|  |  |  |             'Revenue account'         => 'revenue', | 
					
						
							|  |  |  |             'Cash account'            => 'cash', | 
					
						
							|  |  |  |             'Initial balance account' => 'initial-balance', | 
					
						
							| 
									
										
										
										
											2018-12-29 21:53:34 +01:00
										 |  |  |             'Reconciliation account'  => 'reconciliation', | 
					
						
							| 
									
										
										
										
											2018-12-29 21:51:20 +01:00
										 |  |  |             'Credit card'             => 'liabilities', | 
					
						
							|  |  |  |             'Loan'                    => 'liabilities', | 
					
						
							|  |  |  |             'Debt'                    => 'liabilities', | 
					
						
							|  |  |  |             'Mortgage'                => 'liabilities', | 
					
						
							| 
									
										
										
										
											2015-05-14 09:52:58 +02:00
										 |  |  |         ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'shortLiabilityNameByFullName' => [ | 
					
						
							|  |  |  |         'Credit card' => 'creditcard', | 
					
						
							|  |  |  |         'Loan'        => 'loan', | 
					
						
							|  |  |  |         'Debt'        => 'debt', | 
					
						
							|  |  |  |         'Mortgage'    => 'mortgage', | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     'languages'                    => [ | 
					
						
							| 
									
										
										
										
											2019-11-23 06:15:25 +01:00
										 |  |  |         'en_US' => ['name_locale' => 'English', 'name_english' => 'English'], | 
					
						
							|  |  |  |         'cs_CZ' => ['name_locale' => 'Czech', 'name_english' => 'Czech'], | 
					
						
							|  |  |  |         'es_ES' => ['name_locale' => 'Español', 'name_english' => 'Spanish'], | 
					
						
							|  |  |  |         'de_DE' => ['name_locale' => 'Deutsch', 'name_english' => 'German'], | 
					
						
							|  |  |  |         'fr_FR' => ['name_locale' => 'Français', 'name_english' => 'French'], | 
					
						
							|  |  |  |         'it_IT' => ['name_locale' => 'Italiano', 'name_english' => 'Italian'], | 
					
						
							|  |  |  |         'nb_NO' => ['name_locale' => 'Norsk', 'name_english' => 'Norwegian'], | 
					
						
							|  |  |  |         'nl_NL' => ['name_locale' => 'Nederlands', 'name_english' => 'Dutch'], | 
					
						
							|  |  |  |         'pl_PL' => ['name_locale' => 'Polski', 'name_english' => 'Polish '], | 
					
						
							|  |  |  |         'pt_BR' => ['name_locale' => 'Português do Brasil', 'name_english' => 'Portuguese (Brazil)'], | 
					
						
							|  |  |  |         'ro_RO' => ['name_locale' => 'Română', 'name_english' => 'Romanian'], | 
					
						
							|  |  |  |         'ru_RU' => ['name_locale' => 'Русский', 'name_english' => 'Russian'], | 
					
						
							|  |  |  |         'zh_TW' => ['name_locale' => 'Chinese Traditional', 'name_english' => 'Chinese Traditional'], | 
					
						
							|  |  |  |         'zh_CN' => ['name_locale' => 'Chinese Simplified', 'name_english' => 'Chinese Simplified'], | 
					
						
							|  |  |  |         'hu_HU' => ['name_locale' => 'Hungarian', 'name_english' => 'Hungarian'], | 
					
						
							|  |  |  |         'sv_SE' => ['name_locale' => 'Svenska', 'name_english' => 'Swedish'], | 
					
						
							|  |  |  |         //'el_GR' => ['name_locale' => 'Ελληνικά', 'name_english' => 'Greek'], // dropped to 65%
 | 
					
						
							| 
									
										
										
										
											2019-03-22 18:29:34 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-23 06:15:25 +01:00
										 |  |  |         //'id_ID' => ['name_locale' => 'Bahasa Indonesia', 'name_english' => 'Indonesian'],
 | 
					
						
							| 
									
										
										
										
											2019-02-23 14:32:24 +01:00
										 |  |  |         //'tr_TR' => ['name_locale' => 'Türkçe', 'name_english' => 'Turkish'], // 71%
 | 
					
						
							|  |  |  |         //'ca_ES' => ['name_locale' => 'Catalan', 'name_english' => 'Catalan'], // 0%
 | 
					
						
							|  |  |  |         //'ja_JA' => ['name_locale' => 'Japanese', 'name_english' => 'Japanese'], // 0%
 | 
					
						
							|  |  |  |         //'he_IL' => ['name_locale' => 'Hebrew', 'name_english' => 'Hebrew'], // 2%
 | 
					
						
							| 
									
										
										
										
											2019-11-23 06:15:25 +01:00
										 |  |  |         //
 | 
					
						
							| 
									
										
										
										
											2019-02-23 14:32:24 +01:00
										 |  |  |         //'sr_CS' => ['name_locale' => 'Serbian (Latin)', 'name_english' => 'Serbian (Latin)'], // 0%
 | 
					
						
							|  |  |  |         //'sl_SI' => ['name_locale' => 'Slovenian', 'name_english' => 'Slovenian'], // 10%
 | 
					
						
							|  |  |  |         //'uk_UA' => ['name_locale' => 'Ukranian', 'name_english' => 'Ukranian'], // 4%
 | 
					
						
							| 
									
										
										
										
											2018-12-23 18:19:19 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-24 08:20:47 +01:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'transactionTypesByWhat'       => [ | 
					
						
							| 
									
										
										
										
											2015-07-06 22:12:35 +02:00
										 |  |  |         'expenses'   => ['Withdrawal'], | 
					
						
							|  |  |  |         'withdrawal' => ['Withdrawal'], | 
					
						
							|  |  |  |         'revenue'    => ['Deposit'], | 
					
						
							|  |  |  |         'deposit'    => ['Deposit'], | 
					
						
							|  |  |  |         'transfer'   => ['Transfer'], | 
					
						
							|  |  |  |         'transfers'  => ['Transfer'], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2019-04-19 07:00:19 +02:00
										 |  |  |     'transactionTypesByType'       => [ | 
					
						
							|  |  |  |         'expenses'   => ['Withdrawal'], | 
					
						
							|  |  |  |         'withdrawal' => ['Withdrawal'], | 
					
						
							|  |  |  |         'revenue'    => ['Deposit'], | 
					
						
							|  |  |  |         'deposit'    => ['Deposit'], | 
					
						
							|  |  |  |         'transfer'   => ['Transfer'], | 
					
						
							|  |  |  |         'transfers'  => ['Transfer'], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-29 21:51:20 +01:00
										 |  |  |     'transactionTypesToShort'      => [ | 
					
						
							| 
									
										
										
										
											2018-12-20 20:50:05 +01:00
										 |  |  |         'Withdrawal'      => 'withdrawal', | 
					
						
							|  |  |  |         'Deposit'         => 'deposit', | 
					
						
							|  |  |  |         'Transfer'        => 'transfer', | 
					
						
							|  |  |  |         'Opening balance' => 'opening-balance', | 
					
						
							|  |  |  |         'Reconciliation'  => 'reconciliation', | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'transactionIconsByWhat'       => [ | 
					
						
							| 
									
										
										
										
											2015-07-06 22:12:35 +02:00
										 |  |  |         'expenses'   => 'fa-long-arrow-left', | 
					
						
							|  |  |  |         'withdrawal' => 'fa-long-arrow-left', | 
					
						
							|  |  |  |         'revenue'    => 'fa-long-arrow-right', | 
					
						
							|  |  |  |         'deposit'    => 'fa-long-arrow-right', | 
					
						
							|  |  |  |         'transfer'   => 'fa-exchange', | 
					
						
							|  |  |  |         'transfers'  => 'fa-exchange', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'bindables'                    => [ | 
					
						
							| 
									
										
										
										
											2017-12-25 08:45:23 +01:00
										 |  |  |         // models
 | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  |         'account'           => Account::class, | 
					
						
							|  |  |  |         'attachment'        => Attachment::class, | 
					
						
							|  |  |  |         'availableBudget'   => AvailableBudget::class, | 
					
						
							|  |  |  |         'bill'              => Bill::class, | 
					
						
							|  |  |  |         'budget'            => Budget::class, | 
					
						
							|  |  |  |         'budgetLimit'       => BudgetLimit::class, | 
					
						
							|  |  |  |         'category'          => Category::class, | 
					
						
							|  |  |  |         'linkType'          => LinkType::class, | 
					
						
							|  |  |  |         'transactionType'   => TransactionTypeModel::class, | 
					
						
							|  |  |  |         'journalLink'       => TransactionJournalLink::class, | 
					
						
							|  |  |  |         'currency'          => TransactionCurrency::class, | 
					
						
							|  |  |  |         'piggyBank'         => PiggyBank::class, | 
					
						
							|  |  |  |         'preference'        => Preference::class, | 
					
						
							|  |  |  |         'tj'                => TransactionJournal::class, | 
					
						
							|  |  |  |         'tag'               => Tag::class, | 
					
						
							|  |  |  |         'recurrence'        => Recurrence::class, | 
					
						
							|  |  |  |         'rule'              => Rule::class, | 
					
						
							|  |  |  |         'ruleGroup'         => RuleGroup::class, | 
					
						
							|  |  |  |         'importJob'         => ImportJob::class, | 
					
						
							|  |  |  |         'transactionGroup'  => TransactionGroup::class, | 
					
						
							|  |  |  |         'user'              => User::class, | 
					
						
							| 
									
										
										
										
											2017-12-25 08:45:23 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-10 07:51:47 +01:00
										 |  |  |         // strings
 | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  |         'import_provider'   => ImportProvider::class, | 
					
						
							|  |  |  |         'currency_code'     => CurrencyCode::class, | 
					
						
							| 
									
										
										
										
											2018-01-10 07:51:47 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // dates
 | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  |         'start_date'        => Date::class, | 
					
						
							|  |  |  |         'end_date'          => Date::class, | 
					
						
							|  |  |  |         'date'              => Date::class, | 
					
						
							| 
									
										
										
										
											2018-01-10 07:51:47 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // lists
 | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  |         'accountList'       => AccountList::class, | 
					
						
							| 
									
										
										
										
											2019-09-03 17:30:45 +02:00
										 |  |  |         'doubleList'       => AccountList::class, | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  |         'budgetList'        => BudgetList::class, | 
					
						
							|  |  |  |         'journalList'       => JournalList::class, | 
					
						
							|  |  |  |         'categoryList'      => CategoryList::class, | 
					
						
							|  |  |  |         'tagList'           => TagList::class, | 
					
						
							| 
									
										
										
										
											2018-01-10 07:51:47 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // others
 | 
					
						
							| 
									
										
										
										
											2019-04-06 08:10:50 +02:00
										 |  |  |         'fromCurrencyCode'  => CurrencyCode::class, | 
					
						
							|  |  |  |         'toCurrencyCode'    => CurrencyCode::class, | 
					
						
							|  |  |  |         'cliToken'          => CLIToken::class, | 
					
						
							|  |  |  |         'tagOrId'           => TagOrId::class, | 
					
						
							|  |  |  |         'configName'        => ConfigurationName::class, | 
					
						
							| 
									
										
										
										
											2018-01-10 07:51:47 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-12 20:38:19 +01:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'rule-triggers'                => [ | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  |         'user_action'           => UserAction::class, | 
					
						
							|  |  |  |         'from_account_starts'   => FromAccountStarts::class, | 
					
						
							|  |  |  |         'from_account_ends'     => FromAccountEnds::class, | 
					
						
							|  |  |  |         'from_account_is'       => FromAccountIs::class, | 
					
						
							|  |  |  |         'from_account_contains' => FromAccountContains::class, | 
					
						
							|  |  |  |         'to_account_starts'     => ToAccountStarts::class, | 
					
						
							|  |  |  |         'to_account_ends'       => ToAccountEnds::class, | 
					
						
							|  |  |  |         'to_account_is'         => ToAccountIs::class, | 
					
						
							|  |  |  |         'to_account_contains'   => ToAccountContains::class, | 
					
						
							|  |  |  |         'amount_less'           => AmountLess::class, | 
					
						
							|  |  |  |         'amount_exactly'        => AmountExactly::class, | 
					
						
							|  |  |  |         'amount_more'           => AmountMore::class, | 
					
						
							|  |  |  |         'description_starts'    => DescriptionStarts::class, | 
					
						
							|  |  |  |         'description_ends'      => DescriptionEnds::class, | 
					
						
							|  |  |  |         'description_contains'  => DescriptionContains::class, | 
					
						
							|  |  |  |         'description_is'        => DescriptionIs::class, | 
					
						
							|  |  |  |         'transaction_type'      => TransactionType::class, | 
					
						
							|  |  |  |         'category_is'           => CategoryIs::class, | 
					
						
							|  |  |  |         'budget_is'             => BudgetIs::class, | 
					
						
							|  |  |  |         'tag_is'                => TagIs::class, | 
					
						
							| 
									
										
										
										
											2018-04-08 16:27:52 +02:00
										 |  |  |         'currency_is'           => CurrencyIs::class, | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  |         'has_attachments'       => HasAttachment::class, | 
					
						
							|  |  |  |         'has_no_category'       => HasNoCategory::class, | 
					
						
							|  |  |  |         'has_any_category'      => HasAnyCategory::class, | 
					
						
							|  |  |  |         'has_no_budget'         => HasNoBudget::class, | 
					
						
							|  |  |  |         'has_any_budget'        => HasAnyBudget::class, | 
					
						
							|  |  |  |         'has_no_tag'            => HasNoTag::class, | 
					
						
							|  |  |  |         'has_any_tag'           => HasAnyTag::class, | 
					
						
							|  |  |  |         'notes_contain'         => NotesContain::class, | 
					
						
							|  |  |  |         'notes_start'           => NotesStart::class, | 
					
						
							|  |  |  |         'notes_end'             => NotesEnd::class, | 
					
						
							|  |  |  |         'notes_are'             => NotesAre::class, | 
					
						
							|  |  |  |         'no_notes'              => NotesEmpty::class, | 
					
						
							|  |  |  |         'any_notes'             => NotesAny::class, | 
					
						
							| 
									
										
										
										
											2016-01-12 21:09:28 +01:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'rule-actions'                 => [ | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  |         'set_category'            => SetCategory::class, | 
					
						
							|  |  |  |         'clear_category'          => ClearCategory::class, | 
					
						
							|  |  |  |         'set_budget'              => SetBudget::class, | 
					
						
							|  |  |  |         'clear_budget'            => ClearBudget::class, | 
					
						
							|  |  |  |         'add_tag'                 => AddTag::class, | 
					
						
							|  |  |  |         'remove_tag'              => RemoveTag::class, | 
					
						
							|  |  |  |         'remove_all_tags'         => RemoveAllTags::class, | 
					
						
							|  |  |  |         'set_description'         => SetDescription::class, | 
					
						
							|  |  |  |         'append_description'      => AppendDescription::class, | 
					
						
							|  |  |  |         'prepend_description'     => PrependDescription::class, | 
					
						
							|  |  |  |         'set_source_account'      => SetSourceAccount::class, | 
					
						
							|  |  |  |         'set_destination_account' => SetDestinationAccount::class, | 
					
						
							|  |  |  |         'set_notes'               => SetNotes::class, | 
					
						
							|  |  |  |         'append_notes'            => AppendNotes::class, | 
					
						
							|  |  |  |         'prepend_notes'           => PrependNotes::class, | 
					
						
							|  |  |  |         'clear_notes'             => ClearNotes::class, | 
					
						
							| 
									
										
										
										
											2018-04-07 06:20:45 +02:00
										 |  |  |         'link_to_bill'            => LinkToBill::class, | 
					
						
							| 
									
										
										
										
											2018-09-15 13:43:57 +02:00
										 |  |  |         'convert_withdrawal'      => ConvertToWithdrawal::class, | 
					
						
							|  |  |  |         'convert_deposit'         => ConvertToDeposit::class, | 
					
						
							|  |  |  |         'convert_transfer'        => ConvertToTransfer::class, | 
					
						
							| 
									
										
										
										
											2016-01-12 20:36:47 +01:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'context-rule-actions'         => [ | 
					
						
							| 
									
										
										
										
											2016-01-14 19:20:02 +01:00
										 |  |  |         'set_category', | 
					
						
							|  |  |  |         'set_budget', | 
					
						
							|  |  |  |         'add_tag', | 
					
						
							|  |  |  |         'remove_tag', | 
					
						
							|  |  |  |         'set_description', | 
					
						
							|  |  |  |         'append_description', | 
					
						
							|  |  |  |         'prepend_description', | 
					
						
							| 
									
										
										
										
											2018-10-14 17:38:26 +02:00
										 |  |  |         'set_source_account', | 
					
						
							|  |  |  |         'set_destination_account', | 
					
						
							|  |  |  |         'set_notes', | 
					
						
							|  |  |  |         'append_notes', | 
					
						
							|  |  |  |         'prepend_notes', | 
					
						
							|  |  |  |         'link_to_bill', | 
					
						
							| 
									
										
										
										
											2019-11-17 11:34:53 +01:00
										 |  |  |         //'convert_withdrawal',
 | 
					
						
							|  |  |  |         //'convert_deposit',
 | 
					
						
							| 
									
										
										
										
											2018-10-14 17:38:26 +02:00
										 |  |  |         'convert_transfer', | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-18 19:57:23 +01:00
										 |  |  |     'context-rule-triggers'        => [ | 
					
						
							| 
									
										
										
										
											2018-10-14 17:38:26 +02:00
										 |  |  |         'from_account_starts', | 
					
						
							|  |  |  |         'from_account_ends', | 
					
						
							|  |  |  |         'from_account_is', | 
					
						
							|  |  |  |         'from_account_contains', | 
					
						
							|  |  |  |         'to_account_starts', | 
					
						
							|  |  |  |         'to_account_ends', | 
					
						
							|  |  |  |         'to_account_is', | 
					
						
							|  |  |  |         'to_account_contains', | 
					
						
							|  |  |  |         'amount_less', | 
					
						
							|  |  |  |         'amount_exactly', | 
					
						
							|  |  |  |         'amount_more', | 
					
						
							|  |  |  |         'description_starts', | 
					
						
							|  |  |  |         'description_ends', | 
					
						
							|  |  |  |         'description_contains', | 
					
						
							|  |  |  |         'description_is', | 
					
						
							|  |  |  |         'transaction_type', | 
					
						
							|  |  |  |         'category_is', | 
					
						
							|  |  |  |         'budget_is', | 
					
						
							|  |  |  |         'tag_is', | 
					
						
							|  |  |  |         'currency_is', | 
					
						
							|  |  |  |         'notes_contain', | 
					
						
							|  |  |  |         'notes_start', | 
					
						
							|  |  |  |         'notes_end', | 
					
						
							|  |  |  |         'notes_are', | 
					
						
							| 
									
										
										
										
											2016-02-04 17:16:16 +01:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-10-14 17:38:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-04 20:58:11 +02:00
										 |  |  |     'test-triggers'             => [ | 
					
						
							| 
									
										
										
										
											2016-02-18 06:56:24 +01:00
										 |  |  |         'limit' => 10, | 
					
						
							| 
									
										
										
										
											2016-03-29 11:54:50 +02:00
										 |  |  |         'range' => 200, | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2019-05-04 20:58:11 +02:00
										 |  |  |     'default_currency'          => 'EUR', | 
					
						
							|  |  |  |     'default_language'          => 'en_US', | 
					
						
							|  |  |  |     'search_modifiers'          => ['amount_is', 'amount', 'amount_max', 'amount_min', 'amount_less', 'amount_more', 'source', 'destination', 'category', | 
					
						
							| 
									
										
										
										
											2019-10-10 20:50:40 +02:00
										 |  |  |                                     'budget', 'bill', 'type', 'date', 'date_before', 'date_after', 'on', 'before', 'after', 'from', 'to', 'tag', 'created_on', | 
					
						
							|  |  |  |                                     'updated_on'], | 
					
						
							| 
									
										
										
										
											2019-09-03 17:06:30 +02:00
										 |  |  |     // TODO notes has_attachments
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-04 20:58:11 +02:00
										 |  |  |     'cer_providers'             => [ | 
					
						
							| 
									
										
										
										
											2019-01-01 16:32:22 +01:00
										 |  |  |         'fixer'    => FixerIOv2::class, | 
					
						
							|  |  |  |         'ratesapi' => RatesApiIOv1::class, | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // expected source types for each transaction type, in order of preference.
 | 
					
						
							| 
									
										
										
										
											2019-05-04 20:58:11 +02:00
										 |  |  |     'expected_source_types'     => [ | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  |         'source'      => [ | 
					
						
							|  |  |  |             TransactionTypeModel::WITHDRAWAL      => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             TransactionTypeModel::DEPOSIT         => [AccountType::REVENUE, AccountType::CASH, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, | 
					
						
							|  |  |  |                                                       AccountType::INITIAL_BALANCE, AccountType::RECONCILIATION], | 
					
						
							|  |  |  |             TransactionTypeModel::TRANSFER        => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             TransactionTypeModel::OPENING_BALANCE => [AccountType::INITIAL_BALANCE, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, | 
					
						
							|  |  |  |                                                       AccountType::MORTGAGE], | 
					
						
							|  |  |  |             TransactionTypeModel::RECONCILIATION  => [AccountType::RECONCILIATION, AccountType::ASSET], | 
					
						
							| 
									
										
										
										
											2019-05-04 20:58:11 +02:00
										 |  |  |             // in case no transaction type is known yet, it could be anything.
 | 
					
						
							|  |  |  |             'none'                                => [ | 
					
						
							|  |  |  |                 AccountType::ASSET, | 
					
						
							|  |  |  |                 AccountType::EXPENSE, | 
					
						
							|  |  |  |                 AccountType::REVENUE, | 
					
						
							|  |  |  |                 AccountType::LOAN, | 
					
						
							|  |  |  |                 AccountType::DEBT, | 
					
						
							|  |  |  |                 AccountType::MORTGAGE, | 
					
						
							|  |  |  |             ], | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  |         ], | 
					
						
							|  |  |  |         'destination' => [ | 
					
						
							|  |  |  |             TransactionTypeModel::WITHDRAWAL      => [AccountType::EXPENSE, AccountType::CASH, AccountType::LOAN, AccountType::DEBT, | 
					
						
							|  |  |  |                                                       AccountType::MORTGAGE], | 
					
						
							|  |  |  |             TransactionTypeModel::DEPOSIT         => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             TransactionTypeModel::TRANSFER        => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             TransactionTypeModel::OPENING_BALANCE => [AccountType::INITIAL_BALANCE, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, | 
					
						
							|  |  |  |                                                       AccountType::MORTGAGE], | 
					
						
							|  |  |  |             TransactionTypeModel::RECONCILIATION  => [AccountType::RECONCILIATION, AccountType::ASSET], | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2019-05-04 20:58:11 +02:00
										 |  |  |     'allowed_opposing_types'    => [ | 
					
						
							|  |  |  |         'source'      => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => [AccountType::ASSET, AccountType::CASH, AccountType::DEBT, AccountType::EXPENSE, AccountType::INITIAL_BALANCE, | 
					
						
							|  |  |  |                                              AccountType::LOAN, AccountType::RECONCILIATION], | 
					
						
							|  |  |  |             AccountType::CASH            => [AccountType::ASSET], | 
					
						
							|  |  |  |             AccountType::DEBT            => [AccountType::ASSET, AccountType::DEBT, AccountType::EXPENSE, AccountType::INITIAL_BALANCE, AccountType::LOAN, | 
					
						
							|  |  |  |                                              AccountType::MORTGAGE], | 
					
						
							|  |  |  |             AccountType::EXPENSE         => [], // is not allowed as a source.
 | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => [AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             AccountType::LOAN            => [AccountType::ASSET, AccountType::DEBT, AccountType::EXPENSE, AccountType::INITIAL_BALANCE, AccountType::LOAN, | 
					
						
							|  |  |  |                                              AccountType::MORTGAGE], | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => [AccountType::ASSET, AccountType::DEBT, AccountType::EXPENSE, AccountType::INITIAL_BALANCE, AccountType::LOAN, | 
					
						
							|  |  |  |                                              AccountType::MORTGAGE], | 
					
						
							|  |  |  |             AccountType::RECONCILIATION  => [AccountType::ASSET], | 
					
						
							|  |  |  |             AccountType::REVENUE         => [AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         'destination' => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => [AccountType::ASSET, AccountType::CASH, AccountType::DEBT, AccountType::INITIAL_BALANCE, AccountType::LOAN, | 
					
						
							|  |  |  |                                              AccountType::MORTGAGE, AccountType::RECONCILIATION, AccountType::REVENUE], | 
					
						
							|  |  |  |             AccountType::CASH            => [AccountType::ASSET], | 
					
						
							|  |  |  |             AccountType::DEBT            => [AccountType::ASSET, AccountType::DEBT, AccountType::INITIAL_BALANCE, AccountType::LOAN, AccountType::MORTGAGE, | 
					
						
							|  |  |  |                                              AccountType::REVENUE], | 
					
						
							|  |  |  |             AccountType::EXPENSE         => [AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => [AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             AccountType::LOAN            => [AccountType::ASSET, AccountType::DEBT, AccountType::INITIAL_BALANCE, AccountType::LOAN, AccountType::MORTGAGE, | 
					
						
							|  |  |  |                                              AccountType::REVENUE], | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => [AccountType::ASSET, AccountType::DEBT, AccountType::INITIAL_BALANCE, AccountType::LOAN, AccountType::MORTGAGE, | 
					
						
							|  |  |  |                                              AccountType::REVENUE], | 
					
						
							|  |  |  |             AccountType::RECONCILIATION  => [AccountType::ASSET], | 
					
						
							|  |  |  |             AccountType::REVENUE         => [], // is not allowed as a destination
 | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     // depending on the account type, return the allowed transaction types:
 | 
					
						
							|  |  |  |     'allowed_transaction_types' => [ | 
					
						
							|  |  |  |         'source'      => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => [TransactionTypeModel::WITHDRAWAL, TransactionTypeModel::TRANSFER, TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |                                              TransactionTypeModel::RECONCILIATION], | 
					
						
							|  |  |  |             AccountType::EXPENSE         => [], // is not allowed as a source.
 | 
					
						
							|  |  |  |             AccountType::REVENUE         => [TransactionTypeModel::DEPOSIT], | 
					
						
							|  |  |  |             AccountType::LOAN            => [TransactionTypeModel::WITHDRAWAL, TransactionTypeModel::DEPOSIT, TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |                                              TransactionTypeModel::OPENING_BALANCE], | 
					
						
							|  |  |  |             AccountType::DEBT            => [TransactionTypeModel::WITHDRAWAL, TransactionTypeModel::DEPOSIT, TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |                                              TransactionTypeModel::OPENING_BALANCE], | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => [TransactionTypeModel::WITHDRAWAL, TransactionTypeModel::DEPOSIT, TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |                                              TransactionTypeModel::OPENING_BALANCE], | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => [], // todo fill me in.
 | 
					
						
							|  |  |  |             AccountType::RECONCILIATION  => [], // todo fill me in.
 | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         'destination' => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => [TransactionTypeModel::DEPOSIT, TransactionTypeModel::TRANSFER, TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |                                              TransactionTypeModel::RECONCILIATION], | 
					
						
							|  |  |  |             AccountType::EXPENSE         => [TransactionTypeModel::WITHDRAWAL], | 
					
						
							|  |  |  |             AccountType::REVENUE         => [], // is not allowed as destination.
 | 
					
						
							|  |  |  |             AccountType::LOAN            => [TransactionTypeModel::WITHDRAWAL, TransactionTypeModel::DEPOSIT, TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |                                              TransactionTypeModel::OPENING_BALANCE], | 
					
						
							|  |  |  |             AccountType::DEBT            => [TransactionTypeModel::WITHDRAWAL, TransactionTypeModel::DEPOSIT, TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |                                              TransactionTypeModel::OPENING_BALANCE], | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => [TransactionTypeModel::WITHDRAWAL, TransactionTypeModel::DEPOSIT, TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |                                              TransactionTypeModel::OPENING_BALANCE], | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => [], // todo fill me in.
 | 
					
						
							|  |  |  |             AccountType::RECONCILIATION  => [], // todo fill me in.
 | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // having the source + dest will tell you the transaction type.
 | 
					
						
							|  |  |  |     'account_to_transaction'    => [ | 
					
						
							|  |  |  |         AccountType::ASSET           => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |             AccountType::CASH            => TransactionTypeModel::WITHDRAWAL, | 
					
						
							|  |  |  |             AccountType::DEBT            => TransactionTypeModel::WITHDRAWAL, | 
					
						
							|  |  |  |             AccountType::EXPENSE         => TransactionTypeModel::WITHDRAWAL, | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |             AccountType::LOAN            => TransactionTypeModel::WITHDRAWAL, | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => TransactionTypeModel::WITHDRAWAL, | 
					
						
							|  |  |  |             AccountType::RECONCILIATION  => TransactionTypeModel::RECONCILIATION, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         AccountType::CASH            => [ | 
					
						
							|  |  |  |             AccountType::ASSET => TransactionTypeModel::DEPOSIT, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         AccountType::DEBT            => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => TransactionTypeModel::DEPOSIT, | 
					
						
							|  |  |  |             AccountType::DEBT            => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |             AccountType::EXPENSE         => TransactionTypeModel::WITHDRAWAL, | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |             AccountType::LOAN            => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         AccountType::INITIAL_BALANCE => [ | 
					
						
							|  |  |  |             AccountType::ASSET    => TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |             AccountType::DEBT     => TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |             AccountType::LOAN     => TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |             AccountType::MORTGAGE => TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         AccountType::LOAN            => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => TransactionTypeModel::DEPOSIT, | 
					
						
							|  |  |  |             AccountType::DEBT            => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |             AccountType::EXPENSE         => TransactionTypeModel::WITHDRAWAL, | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |             AccountType::LOAN            => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         AccountType::MORTGAGE        => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => TransactionTypeModel::DEPOSIT, | 
					
						
							|  |  |  |             AccountType::DEBT            => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |             AccountType::EXPENSE         => TransactionTypeModel::WITHDRAWAL, | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => TransactionTypeModel::OPENING_BALANCE, | 
					
						
							|  |  |  |             AccountType::LOAN            => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => TransactionTypeModel::TRANSFER, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         AccountType::RECONCILIATION  => [ | 
					
						
							|  |  |  |             AccountType::ASSET => TransactionTypeModel::RECONCILIATION, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         AccountType::REVENUE         => [ | 
					
						
							|  |  |  |             AccountType::ASSET    => TransactionTypeModel::DEPOSIT, | 
					
						
							|  |  |  |             AccountType::DEBT     => TransactionTypeModel::DEPOSIT, | 
					
						
							|  |  |  |             AccountType::LOAN     => TransactionTypeModel::DEPOSIT, | 
					
						
							|  |  |  |             AccountType::MORTGAGE => TransactionTypeModel::DEPOSIT, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // allowed source / destination accounts.
 | 
					
						
							| 
									
										
										
										
											2019-05-04 20:58:11 +02:00
										 |  |  |     'source_dests'              => [ | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  |         TransactionTypeModel::WITHDRAWAL      => [ | 
					
						
							|  |  |  |             AccountType::ASSET    => [AccountType::EXPENSE, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, AccountType::CASH], | 
					
						
							| 
									
										
										
										
											2019-11-07 06:10:46 +01:00
										 |  |  |             AccountType::LOAN     => [AccountType::EXPENSE, AccountType::CASH], | 
					
						
							|  |  |  |             AccountType::DEBT     => [AccountType::EXPENSE, AccountType::CASH], | 
					
						
							|  |  |  |             AccountType::MORTGAGE => [AccountType::EXPENSE, AccountType::CASH], | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  |         ], | 
					
						
							|  |  |  |         TransactionTypeModel::DEPOSIT         => [ | 
					
						
							|  |  |  |             AccountType::REVENUE  => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							| 
									
										
										
										
											2019-11-07 06:10:46 +01:00
										 |  |  |             AccountType::CASH     => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							| 
									
										
										
										
											2019-03-23 08:10:59 +01:00
										 |  |  |             AccountType::LOAN     => [AccountType::ASSET], | 
					
						
							|  |  |  |             AccountType::DEBT     => [AccountType::ASSET], | 
					
						
							|  |  |  |             AccountType::MORTGAGE => [AccountType::ASSET], | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         TransactionTypeModel::TRANSFER        => [ | 
					
						
							|  |  |  |             AccountType::ASSET    => [AccountType::ASSET], | 
					
						
							|  |  |  |             AccountType::LOAN     => [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             AccountType::DEBT     => [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							|  |  |  |             AccountType::MORTGAGE => [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         TransactionTypeModel::OPENING_BALANCE => [ | 
					
						
							|  |  |  |             AccountType::ASSET           => [AccountType::INITIAL_BALANCE], | 
					
						
							|  |  |  |             AccountType::LOAN            => [AccountType::INITIAL_BALANCE], | 
					
						
							|  |  |  |             AccountType::DEBT            => [AccountType::INITIAL_BALANCE], | 
					
						
							|  |  |  |             AccountType::MORTGAGE        => [AccountType::INITIAL_BALANCE], | 
					
						
							|  |  |  |             AccountType::INITIAL_BALANCE => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         TransactionTypeModel::RECONCILIATION  => [ | 
					
						
							|  |  |  |             AccountType::RECONCILIATION => [AccountType::ASSET], | 
					
						
							|  |  |  |             AccountType::ASSET          => [AccountType::RECONCILIATION], | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2015-02-06 19:33:31 +01:00
										 |  |  | ]; |