feat: add loan button (reschedule loan) (#875)

Fixes: #245
This commit is contained in:
Muskan Khedia
2020-06-27 15:15:24 +05:30
committed by GitHub
parent 30dafba546
commit 8e86ccab8f
9 changed files with 232 additions and 2 deletions
+10
View File
@@ -188,4 +188,14 @@ export class LoansService {
return this.http.post(`/loans/${loanId}/transactions`, data, {params: httpParams});
}
rescheduleLoanTemplate() {
return this.http.get('/rescheduleloans/template');
}
submitRescheduleData(data: any) {
// https://staging.mifos.io/fineract-provider/api/v1/rescheduleloans?command=reschedule
const httpParams = new HttpParams().set('command', 'reschedule');
return this.http.post('/rescheduleloans', data, {params: httpParams});
}
}