feat: create fixed deposit account page (#1001)

Fixes: #226
This commit is contained in:
Karan Takalkar
2020-07-07 00:56:52 +05:30
committed by GitHub
parent 4176882989
commit 3b7406057a
37 changed files with 2249 additions and 5 deletions
@@ -73,6 +73,24 @@ export class FixedDepositsService {
return this.http.get(`/fixeddepositaccounts/${accountId}/template`, { params: httpParams });
}
/**
* @param clientId Client Id assosciated with fixed deposits account.
* @returns {Observable<any>} Fixed Deposits account template.
*/
getFixedDepositsAccountTemplate(clientId: string, productId?: string): Observable<any> {
let httpParams = new HttpParams().set('clientId', clientId);
httpParams = productId ? httpParams.set('productId', productId) : httpParams;
return this.http.get('/fixeddepositaccounts/template', { params: httpParams });
}
/**
* @param fixedDepositAccount Fixed Deposit Account
* @returns {Observable<any>}
*/
createFixedDepositAccount(fixedDepositAccount: any): Observable<any> {
return this.http.post(`/fixeddepositaccounts`, fixedDepositAccount);
}
/**
* @param clientId Client Id
* @param clientName Client Name