public class GetInstallmentsPlan {
@Autowired
APSInstallmentsService installmentService;
public void getPlans() {
InstallmentPlanRequest request = new InstallmentPlanRequest();
request.setAmount(MonetaryUtils.toAmount(20000, "AED"));
InstallmentPlanResponse response = installmentService.getInstallmentPlans(request);
response.isSuccessful();//To check if get Installment plans call is successful
response.getResponse();//Response map containing Plan details
List<Map<String, Object>> issuerDetails = (List<Map<String, Object>>) issuerDetailsMap
.get(MessageConstants.APS_ISSUER_DETAILS); // Extracting issuer details from response map
}
}