feat: savings account actions (approve) (#906)

Fixes: #905
This commit is contained in:
Karan Takalkar
2020-06-24 22:30:18 +05:30
committed by GitHub
parent 9d64300137
commit a9cd990184
13 changed files with 279 additions and 125 deletions
+11
View File
@@ -175,4 +175,15 @@ export class SavingsService {
return this.http.put(`/savingsaccounts/${accountId}`, savingsAccount);
}
/**
* @param {string} accountId Savings Account Id
* @param {string} command Command
* @param {any} data Data
* @returns {Observable<any>} Savings data.
*/
executeSavingsAccountCommand(accountId: string, command: string, data: any): Observable<any> {
const httpParams = new HttpParams().set('command', command);
return this.http.post(`/savingsaccounts/${accountId}`, data, { params: httpParams });
}
}