WEB-642: Add Loan Originators management (#3095)

Co-authored-by: Jose Alberto Hernandez <alberto@black-box.local>
This commit is contained in:
Jose Alberto Hernandez
2026-02-06 12:15:52 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent bd2408fcc4
commit 0bc1926199
44 changed files with 1405 additions and 43 deletions
+10
View File
@@ -658,6 +658,16 @@ export class LoansService {
return this.http.post('/loans?command=calculateLoanSchedule', payload);
}
attachLoanOriginator(loanId: string, originatorId: string): Observable<any> {
const emptyBody = {};
return this.http.post(`/loans/${loanId}/originators/${originatorId}`, emptyBody);
}
dettachLoanOriginator(loanId: string, originatorId: string): Observable<any> {
const emptyBody = {};
return this.http.delete(`/loans/${loanId}/originators/${originatorId}`, emptyBody);
}
/**
* @param loansAccount Loan account data used for the request
* @param loansAccountTemplate Loan account template for getting product default values