feat: savings account actions (post-interest-as-on) (#923)

Fixes: #922
This commit is contained in:
Karan Takalkar
2020-06-26 15:40:35 +05:30
committed by GitHub
parent 2eea9574f2
commit 3e04657c54
9 changed files with 161 additions and 3 deletions
+11
View File
@@ -194,4 +194,15 @@ export class SavingsService {
return this.http.post(`/savingsaccounts/${accountId}`, data, { params: httpParams });
}
/**
* @param {string} accountId Savings Account Id
* @param {string} command Command
* @param {any} data Data
* @returns {Observable<any>} Savings data.
*/
executeSavingsAccountTransactionsCommand(accountId: string, command: string, data: any): Observable<any> {
const httpParams = new HttpParams().set('command', command);
return this.http.post(`/savingsaccounts/${accountId}/transactions`, data, { params: httpParams });
}
}