Loan Reschedule management in Loan Account (#1637)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-01-10 00:22:30 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 1bccd96c37
commit 08a327fdbf
15 changed files with 306 additions and 20 deletions
+16
View File
@@ -267,6 +267,22 @@ export class LoansService {
return this.http.get('/rescheduleloans/template');
}
/**
* Returns the Loan Reschedule request
*/
loanRescheduleRequests(loanId: any) {
const httpParams = new HttpParams().set('loanId', loanId);
return this.http.get('/rescheduleloans', { params: httpParams });
}
/**
* Returns the Loan Reschedule request
*/
applyCommandLoanRescheduleRequests(rescheduleId: any, command: string, data: any) {
const httpParams = new HttpParams().set('command', command);
return this.http.post(`/rescheduleloans/${rescheduleId}`, data, { params: httpParams });
}
/**
* Submits Reschedule Data
* @param {any} data Data