WEB-642: Add Loan Originators management (#3095)
Co-authored-by: Jose Alberto Hernandez <alberto@black-box.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
bd2408fcc4
commit
0bc1926199
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user