@@ -83,6 +83,13 @@ export class FixedDepositsService {
|
||||
return this.http.get('/fixeddepositaccounts/template', { params: httpParams });
|
||||
}
|
||||
|
||||
|
||||
getFixedDepositsAccountAndTemplate(accountId: any) {
|
||||
const httpParams = new HttpParams().set('associations', 'charges,+linkedAccount')
|
||||
.set('template', 'true');
|
||||
return this.http.get(`/fixeddepositaccounts/${accountId}`, { params: httpParams });
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fixedDepositAccount Fixed Deposit Account
|
||||
* @returns {Observable<any>}
|
||||
@@ -91,6 +98,15 @@ export class FixedDepositsService {
|
||||
return this.http.post(`/fixeddepositaccounts`, fixedDepositAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {any} accountId Account Id
|
||||
* @param {any} fixedDepositAccount Fixed Deposit Account
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
updateFixedDepositAccount(accountId: any, fixedDepositAccount: any): Observable<any> {
|
||||
return this.http.put(`/fixeddepositaccounts/${accountId}`, fixedDepositAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param clientId Client Id
|
||||
* @param clientName Client Name
|
||||
|
||||
Reference in New Issue
Block a user