From 69d63bc3ba4d1c07e8923d877a20981543bfcbe2 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 24 Jul 2020 16:41:31 +0200 Subject: [PATCH] API allows order to be set. #3200 --- app/Api/V1/Requests/AccountStoreRequest.php | 2 ++ app/Api/V1/Requests/AccountUpdateRequest.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/Api/V1/Requests/AccountStoreRequest.php b/app/Api/V1/Requests/AccountStoreRequest.php index 44b6efa10c..1b476f4ee3 100644 --- a/app/Api/V1/Requests/AccountStoreRequest.php +++ b/app/Api/V1/Requests/AccountStoreRequest.php @@ -70,6 +70,7 @@ class AccountStoreRequest extends FormRequest 'account_type' => $this->string('type'), 'account_type_id' => null, 'currency_id' => $this->integer('currency_id'), + 'order' => $this->integer('order'), 'currency_code' => $this->string('currency_code'), 'virtual_balance' => $this->string('virtual_balance'), 'iban' => $this->string('iban'), @@ -116,6 +117,7 @@ class AccountStoreRequest extends FormRequest 'opening_balance' => 'numeric|required_with:opening_balance_date|nullable', 'opening_balance_date' => 'date|required_with:opening_balance|nullable', 'virtual_balance' => 'numeric|nullable', + 'order' => 'numeric|nullable', 'currency_id' => 'numeric|exists:transaction_currencies,id', 'currency_code' => 'min:3|max:3|exists:transaction_currencies,code', 'active' => [new IsBoolean], diff --git a/app/Api/V1/Requests/AccountUpdateRequest.php b/app/Api/V1/Requests/AccountUpdateRequest.php index 69e3c2ccff..c0976a5f38 100644 --- a/app/Api/V1/Requests/AccountUpdateRequest.php +++ b/app/Api/V1/Requests/AccountUpdateRequest.php @@ -69,6 +69,7 @@ class AccountUpdateRequest extends FormRequest 'account_type' => $this->nullableString('type'), 'account_type_id' => null, 'currency_id' => $this->nullableInteger('currency_id'), + 'order' => $this->integer('order'), 'currency_code' => $this->nullableString('currency_code'), 'virtual_balance' => $this->nullableString('virtual_balance'), 'iban' => $this->nullableString('iban'), @@ -117,6 +118,7 @@ class AccountUpdateRequest extends FormRequest 'opening_balance' => 'numeric|required_with:opening_balance_date|nullable', 'opening_balance_date' => 'date|required_with:opening_balance|nullable', 'virtual_balance' => 'numeric|nullable', + 'order' => 'numeric|nullable', 'currency_id' => 'numeric|exists:transaction_currencies,id', 'currency_code' => 'min:3|max:3|exists:transaction_currencies,code', 'active' => [new IsBoolean],