WEB-331: Introduce loan reaging preview

This commit is contained in:
Oleksii Novikov
2025-11-12 13:08:39 +02:00
parent 38faa475ba
commit 8514f996b6
24 changed files with 403 additions and 93 deletions
+18
View File
@@ -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 });