async terminateLoan()

For terminating a loan you should use:

  • token:string - is the token that you will get from the authentication.
  • id:string - is the loanId of the loan you want to terminate
const response = await this.newBorrowingService.terminateLoan({token, id})