Interface RescheduleLoansApi
public interface RescheduleLoansApi
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<PostCreateRescheduleLoansResponse> createLoanRescheduleRequest(PostCreateRescheduleLoansRequest postCreateRescheduleLoansRequest) Create loan reschedule request Create a loan reschedule request.retrofit2.Call<PostCreateRescheduleLoansResponse> createLoanRescheduleRequest(PostCreateRescheduleLoansRequest postCreateRescheduleLoansRequest, Map<String, String> headers) Create loan reschedule request Create a loan reschedule request.retrofit2.Call<GetLoanRescheduleRequestResponse> readLoanRescheduleRequest(Long scheduleId, String command) Retrieve loan reschedule request by schedule id Retrieve loan reschedule request by schedule idretrofit2.Call<GetLoanRescheduleRequestResponse> Retrieve loan reschedule request by schedule id Retrieve loan reschedule request by schedule idretrofit2.Call<List<GetLoanRescheduleRequestResponse>> retrieveAllRescheduleRequest(String command, Long loanId) Retrieve all reschedule requests Retrieve all reschedule requests.retrofit2.Call<List<GetLoanRescheduleRequestResponse>> Retrieve all reschedule requests Retrieve all reschedule requests.retrofit2.Call<GetRescheduleReasonsTemplateResponse> Retrieve all reschedule loan reasons Retrieve all reschedule loan reasons as a templateretrofit2.Call<GetRescheduleReasonsTemplateResponse> retrieveTemplate10(Map<String, String> headers) Retrieve all reschedule loan reasons Retrieve all reschedule loan reasons as a templateretrofit2.Call<PostUpdateRescheduleLoansResponse> updateLoanRescheduleRequest(Long scheduleId, PostUpdateRescheduleLoansRequest postUpdateRescheduleLoansRequest, String command) Update loan reschedule request Update a loan reschedule request by either approving/rejecting it.retrofit2.Call<PostUpdateRescheduleLoansResponse> updateLoanRescheduleRequest(Long scheduleId, PostUpdateRescheduleLoansRequest postUpdateRescheduleLoansRequest, String command, Map<String, String> headers) Update loan reschedule request Update a loan reschedule request by either approving/rejecting it.
-
Method Details
-
createLoanRescheduleRequest
@Headers("Content-Type:application/json") @POST("v1/rescheduleloans") retrofit2.Call<PostCreateRescheduleLoansResponse> createLoanRescheduleRequest(@Body PostCreateRescheduleLoansRequest postCreateRescheduleLoansRequest) Create loan reschedule request Create a loan reschedule request.- Parameters:
postCreateRescheduleLoansRequest- (required)- Returns:
- Call<PostCreateRescheduleLoansResponse>
-
readLoanRescheduleRequest
@GET("v1/rescheduleloans/{scheduleId}") retrofit2.Call<GetLoanRescheduleRequestResponse> readLoanRescheduleRequest(@Path("scheduleId") Long scheduleId, @Query("command") String command) Retrieve loan reschedule request by schedule id Retrieve loan reschedule request by schedule id- Parameters:
scheduleId- (required)command- (optional)- Returns:
- Call<GetLoanRescheduleRequestResponse>
-
retrieveAllRescheduleRequest
@GET("v1/rescheduleloans") retrofit2.Call<List<GetLoanRescheduleRequestResponse>> retrieveAllRescheduleRequest(@Query("command") String command, @Query("loanId") Long loanId) Retrieve all reschedule requests Retrieve all reschedule requests.- Parameters:
command- (optional)loanId- (optional)- Returns:
- Call<List<GetLoanRescheduleRequestResponse>>
-
retrieveTemplate10
@GET("v1/rescheduleloans/template") retrofit2.Call<GetRescheduleReasonsTemplateResponse> retrieveTemplate10()Retrieve all reschedule loan reasons Retrieve all reschedule loan reasons as a template- Returns:
- Call<GetRescheduleReasonsTemplateResponse>
-
updateLoanRescheduleRequest
@Headers("Content-Type:application/json") @POST("v1/rescheduleloans/{scheduleId}") retrofit2.Call<PostUpdateRescheduleLoansResponse> updateLoanRescheduleRequest(@Path("scheduleId") Long scheduleId, @Body PostUpdateRescheduleLoansRequest postUpdateRescheduleLoansRequest, @Query("command") String command) Update loan reschedule request Update a loan reschedule request by either approving/rejecting it.- Parameters:
scheduleId- (required)postUpdateRescheduleLoansRequest- (required)command- (optional)- Returns:
- Call<PostUpdateRescheduleLoansResponse>
-
createLoanRescheduleRequest
@Headers("Content-Type:application/json") @POST("v1/rescheduleloans") retrofit2.Call<PostCreateRescheduleLoansResponse> createLoanRescheduleRequest(@Body PostCreateRescheduleLoansRequest postCreateRescheduleLoansRequest, @HeaderMap Map<String, String> headers) Create loan reschedule request Create a loan reschedule request.- Parameters:
postCreateRescheduleLoansRequest- (required)- Returns:
- Call<PostCreateRescheduleLoansResponse>
-
readLoanRescheduleRequest
@GET("v1/rescheduleloans/{scheduleId}") retrofit2.Call<GetLoanRescheduleRequestResponse> readLoanRescheduleRequest(@Path("scheduleId") Long scheduleId, @Query("command") String command, @HeaderMap Map<String, String> headers) Retrieve loan reschedule request by schedule id Retrieve loan reschedule request by schedule id- Parameters:
scheduleId- (required)command- (optional)- Returns:
- Call<GetLoanRescheduleRequestResponse>
-
retrieveAllRescheduleRequest
@GET("v1/rescheduleloans") retrofit2.Call<List<GetLoanRescheduleRequestResponse>> retrieveAllRescheduleRequest(@Query("command") String command, @Query("loanId") Long loanId, @HeaderMap Map<String, String> headers) Retrieve all reschedule requests Retrieve all reschedule requests.- Parameters:
command- (optional)loanId- (optional)- Returns:
- Call<List<GetLoanRescheduleRequestResponse>>
-
retrieveTemplate10
@GET("v1/rescheduleloans/template") retrofit2.Call<GetRescheduleReasonsTemplateResponse> retrieveTemplate10(@HeaderMap Map<String, String> headers) Retrieve all reschedule loan reasons Retrieve all reschedule loan reasons as a template- Returns:
- Call<GetRescheduleReasonsTemplateResponse>
-
updateLoanRescheduleRequest
@Headers("Content-Type:application/json") @POST("v1/rescheduleloans/{scheduleId}") retrofit2.Call<PostUpdateRescheduleLoansResponse> updateLoanRescheduleRequest(@Path("scheduleId") Long scheduleId, @Body PostUpdateRescheduleLoansRequest postUpdateRescheduleLoansRequest, @Query("command") String command, @HeaderMap Map<String, String> headers) Update loan reschedule request Update a loan reschedule request by either approving/rejecting it.- Parameters:
scheduleId- (required)postUpdateRescheduleLoansRequest- (required)command- (optional)- Returns:
- Call<PostUpdateRescheduleLoansResponse>
-