async function create(account) {
  await validateAccountName(account.name);
  await validateCurrencyCode(account.currencyCode);

  return AccountModel.create(account);
}
/**
 * Create a new account
 * @param account { name: string, type: accountTypes, currencyCode: string } data for the new account
 * @returns Promise<AccountModel>
 */
Create a new account
@param account { name: string, type: accountTypes, currencyCode: string } data for the new account
@returns Promise
Create a new account @param account { name : string type : accountTypes currencyCode : string } data for the new account @returns Promise
async function create(account) {
  await validateAccountName(account.name);
  await validateCurrencyCode(account.currencyCode);
  return AccountModel.create(account);
}
async function create ( account ) { await validateAccountName ( account . name ) ; await validateCurrencyCode ( account . currencyCode ) ; return AccountModel . create ( account ) ; }
Create a new account
 @param account { name: string, type: accountTypes, currencyCode: string } data for the new account
 @returns Promise<AccountModel>
Create a new account @param account { name : string type : accountTypes currencyCode : string } data for the new account @returns Promise<AccountModel >