Class CreateLoanRescheduleRequestCommandStrategy

java.lang.Object
org.apache.fineract.batch.command.internal.CreateLoanRescheduleRequestCommandStrategy
All Implemented Interfaces:
org.apache.fineract.batch.command.CommandStrategy

@Component public class CreateLoanRescheduleRequestCommandStrategy extends Object implements org.apache.fineract.batch.command.CommandStrategy
Implements CommandStrategy and applies a new reschedule loan request on an existing loan. It passes the contents of the body from the BatchRequest to RescheduleLoansApiResource and gets back the response. This class will also catch any errors raised by RescheduleLoansApiResource and map those errors to appropriate status codes in BatchResponse.
See Also:
  • CommandStrategy
  • BatchRequest
  • BatchResponse
  • Constructor Details

    • CreateLoanRescheduleRequestCommandStrategy

      public CreateLoanRescheduleRequestCommandStrategy()
  • Method Details

    • execute

      public org.apache.fineract.batch.domain.BatchResponse execute(org.apache.fineract.batch.domain.BatchRequest request, jakarta.ws.rs.core.UriInfo uriInfo)
      Specified by:
      execute in interface org.apache.fineract.batch.command.CommandStrategy