feat: savings account actions (delete) (#914)

Fixes: #913
This commit is contained in:
Karan Takalkar
2020-06-25 16:21:05 +05:30
committed by GitHub
parent a3891e7946
commit 9f7fcf7aeb
2 changed files with 37 additions and 1 deletions
+8
View File
@@ -175,6 +175,14 @@ export class SavingsService {
return this.http.put(`/savingsaccounts/${accountId}`, savingsAccount);
}
/**
* @param {string} accountId savings account Id
* @returns {Observable<any>}
*/
deleteSavingsAccount(accountId: string): Observable<any> {
return this.http.delete(`/savingsaccounts/${accountId}`);
}
/**
* @param {string} accountId Savings Account Id
* @param {string} command Command