feat: add create savings account page (#883)

Fixes: #882
This commit is contained in:
Karan Takalkar
2020-06-19 21:14:07 +05:30
committed by GitHub
parent 21c54d0baa
commit 2418e2ed02
28 changed files with 1424 additions and 16 deletions
+18
View File
@@ -138,4 +138,22 @@ export class SavingsService {
return this.http.delete(`/datatables/${datatableName}/${accountId}`, { params: httpParams });
}
/**
* @param clientId Client Id assosciated with savings account.
* @returns {Observable<any>} Savings account template.
*/
getSavingsAccountTemplate(clientId: string, productId?: string): Observable<any> {
let httpParams = new HttpParams().set('clientId', clientId);
httpParams = productId ? httpParams.set('productId', productId) : httpParams;
return this.http.get('/savingsaccounts/template', { params: httpParams });
}
/**
* @param {any} savingsAccount Savings Account
* @returns {Observable<any>}
*/
createSavingsAccount(savingsAccount: any): Observable<any> {
return this.http.post('/savingsaccounts', savingsAccount);
}
}