All API routes seem to work.

This commit is contained in:
James Cole
2018-03-04 08:22:32 +01:00
parent 2ab44fb33a
commit 7171e69715
7 changed files with 12 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ class AccountRequest extends Request
'name' => $this->string('name'),
'active' => $this->boolean('active'),
'accountType' => $this->string('type'),
'account_type_id' => null,
'currency_id' => $this->integer('currency_id'),
'currency_code' => $this->string('currency_code'),
'virtualBalance' => $this->string('virtual_balance'),
@@ -97,6 +98,7 @@ class AccountRequest extends Request
$account = $this->route()->parameter('account');
$rules['name'] .= ':' . $account->id;
$rules['account_number'] .= ':' . $account->id;
$rules['type'] = 'in:' . $types;
break;
}