From 75cc024e2848ab772d97b656b8d39f84d79308b0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 21 Dec 2018 15:26:48 +0100 Subject: [PATCH] Expand account types to fix https://github.com/firefly-iii/api-docs-generator/issues/2 --- app/Support/Http/Api/AccountFilter.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/Support/Http/Api/AccountFilter.php b/app/Support/Http/Api/AccountFilter.php index 866cee14ae..4b257514a4 100644 --- a/app/Support/Http/Api/AccountFilter.php +++ b/app/Support/Http/Api/AccountFilter.php @@ -64,6 +64,20 @@ trait AccountFilter AccountType::MORTGAGE => [AccountType::MORTGAGE], AccountType::DEBT => [AccountType::DEBT], AccountType::CREDITCARD => [AccountType::CREDITCARD], + 'default account' => [AccountType::DEFAULT], + 'cash account' => [AccountType::CASH], + 'asset account' => [AccountType::ASSET], + 'expense account' => [AccountType::EXPENSE], + 'revenue account' => [AccountType::REVENUE], + 'initial balance account' => [AccountType::INITIAL_BALANCE], + 'reconciliation' => [AccountType::RECONCILIATION], + 'loan' => [AccountType::LOAN], + 'mortgage' => [AccountType::MORTGAGE], + 'debt' => [AccountType::DEBT], + 'credit card' => [AccountType::CREDITCARD], + 'credit-card' => [AccountType::CREDITCARD], + 'creditcard' => [AccountType::CREDITCARD], + 'cc' => [AccountType::CREDITCARD], ]; $return = $types['all'];