feat: add edit recurring deposit account (#1023)

Fixes: #1017
This commit is contained in:
Muskan Khedia
2020-07-08 12:57:21 +05:30
committed by GitHub
parent 74b219fe00
commit fc2b352311
16 changed files with 438 additions and 18 deletions
@@ -83,4 +83,24 @@ export class RecurringDepositsService {
deleteRecurringDepositsAccount(accountId: string): Observable<any> {
return this.http.delete(`/recurringdepositaccounts/${accountId}`);
}
/**
* Get Recurring Deposits Account and Template Data
* @param accountId Account ID
*/
getRecurringDepositsAccountAndTemplate(accountId: any) {
const httpParams = new HttpParams().set('associations', 'charges')
.set('template', 'true');
return this.http.get(`/recurringdepositaccounts/${accountId}`, { params: httpParams });
}
/**
* @param {any} accountId Account Id
* @param {any} fixedDepositAccountData Recurring Deposit Account Data
* @returns {Observable<any>}
*/
updateRecurringDepositAccount(accountId: any, recurringDepositAccountData: any): Observable<any> {
return this.http.put(`/recurringdepositaccounts/${accountId}`, recurringDepositAccountData);
}
}