WEB-331: Introduce loan reaging preview
This commit is contained in:
@@ -241,6 +241,24 @@ export class LoansService {
|
||||
return this.http.post(`/loans/${loanId}/transactions`, data, { params: httpParams });
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Re-Age preview with repayment schedule
|
||||
* @param loanId Loan Id
|
||||
* @param data Re-Age data
|
||||
* @returns Observable with repayment schedule preview
|
||||
*/
|
||||
getReAgePreview(loanId: string, data: any): Observable<any> {
|
||||
let httpParams = new HttpParams();
|
||||
|
||||
Object.keys(data).forEach((key) => {
|
||||
if (data[key] !== null && data[key] !== undefined && data[key] !== '') {
|
||||
httpParams = httpParams.set(key, data[key].toString());
|
||||
}
|
||||
});
|
||||
|
||||
return this.http.get(`/loans/${loanId}/transactions/reage-preview`, { params: httpParams });
|
||||
}
|
||||
|
||||
getLoanScreenReportsData(): Observable<any> {
|
||||
const httpParams = new HttpParams().set('entityId', '1').set('typeId', '0');
|
||||
return this.http.get(`/templates`, { params: httpParams });
|
||||
|
||||
Reference in New Issue
Block a user