feat: view fixed deposit account transaction (#989)

Fixes: #988
This commit is contained in:
Karan Takalkar
2020-07-04 16:02:39 +05:30
committed by GitHub
parent 19c6dee1a5
commit 18a6e6f487
14 changed files with 379 additions and 4 deletions
@@ -43,6 +43,27 @@ export class FixedDepositsService {
return this.http.post(`/fixeddepositaccounts/${accountId}`, data, { params: httpParams });
}
/**
* @param {string} accountId Savings Account Id
* @param {string} transactionId Transaction Id
* @returns {Observable<any>}
*/
getFixedDepositsAccountTransaction(accountId: string, transactionId: string): Observable<any> {
return this.http.get(`/fixeddepositaccounts/${accountId}/transactions/${transactionId}`);
}
/**
* @param {string} accountId Savings Account Id
* @param {string} command Command
* @param {any} data Data
* @param {string} transactionId Transaction Id
* @returns {Observable<any>}
*/
executeFixedDepositsAccountTransactionsCommand(accountId: string, command: string, data: any, transactionId?: any): Observable<any> {
const httpParams = new HttpParams().set('command', command);
return this.http.post(`/fixeddepositaccounts/${accountId}/transactions/${transactionId}`, data, { params: httpParams });
}
/**
* @param clientId Client Id
* @param clientName Client Name