feat; savings account actions (enable/disable-withhold-tax) (#945)

Fixes: #944
This commit is contained in:
Karan Takalkar
2020-06-29 01:09:36 +05:30
committed by GitHub
parent d800f05ae3
commit be0e7032a7
7 changed files with 120 additions and 9 deletions
+11
View File
@@ -184,6 +184,17 @@ 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.
*/
executeSavingsAccountUpdateCommand(accountId: string, command: string, data: any): Observable<any> {
const httpParams = new HttpParams().set('command', command);
return this.http.put(`/savingsaccounts/${accountId}`, data, { params: httpParams });
}
/**
* @param {string} accountId Savings Account Id
* @param {string} transactionId Transaction Id