Documents and Notes for Clients, Loans and Clients (#1632)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
28d5d7595f
commit
cafe8fa73d
@@ -322,6 +322,10 @@ export class LoansService {
|
||||
return this.http.get(`/loans/${loanId}/documents`);
|
||||
}
|
||||
|
||||
downloadLoanDocument(parentEntityId: string, documentId: string) {
|
||||
return this.http.get(`/loans/${parentEntityId}/documents/${documentId}/attachment`, { responseType: 'blob' });
|
||||
}
|
||||
|
||||
deleteLoanDocument(loanId: any, documentId: any): Observable<any> {
|
||||
return this.http.delete(`/loans/${loanId}/documents/${documentId}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user