feat: fixed deposit account actions (close) (#997)

Fixes: #996
This commit is contained in:
Karan Takalkar
2020-07-05 17:54:27 +05:30
committed by GitHub
parent 1a89f0a4cb
commit efac58fc68
8 changed files with 236 additions and 6 deletions
@@ -16,7 +16,7 @@ export class FixedDepositsService {
constructor(private http: HttpClient) {}
/**
* @param accountId Account Id of group to get data for.
* @param accountId Account Id.
* @returns {Observable<any>} Fixed Deposits data.
*/
getFixedDepositsAccountData(accountId: string): Observable<any> {
@@ -44,7 +44,7 @@ export class FixedDepositsService {
}
/**
* @param {string} accountId Savings Account Id
* @param {string} accountId Fixed Deposits Account Id
* @param {string} transactionId Transaction Id
* @returns {Observable<any>}
*/
@@ -53,7 +53,7 @@ export class FixedDepositsService {
}
/**
* @param {string} accountId Savings Account Id
* @param {string} accountId Fixed Deposits Account Id
* @param {string} command Command
* @param {any} data Data
* @param {string} transactionId Transaction Id
@@ -64,6 +64,15 @@ export class FixedDepositsService {
return this.http.post(`/fixeddepositaccounts/${accountId}/transactions/${transactionId}`, data, { params: httpParams });
}
/**
* @param {string} accountId Fixed Deposits Account Id
* @returns {Observable<any>}
*/
getFixedDepositsAccountClosureTemplate(accountId: string): Observable<any> {
const httpParams = new HttpParams().set('command', 'close');
return this.http.get(`/fixeddepositaccounts/${accountId}/template`, { params: httpParams });
}
/**
* @param clientId Client Id
* @param clientName Client Name