public RenewedLapsedPoliciesDetailsAPIRequest MappingToRenewedlapsedServiceObject(PaymentServiceModel objPaymentModel) { RenewedLapsedPoliciesDetailsAPIRequest objInGraceObject = new RenewedLapsedPoliciesDetailsAPIRequest(); objInGraceObject.agentCode = "AGE000000004121"; objInGraceObject.companyCode = "00003"; //objInGraceObject.fromDate = "01-01-2014"; //objInGraceObject.toDate = "31-12-2017"; objInGraceObject.proposerCode = "IN0000001311079"; return(objInGraceObject); }
public RenewedLapsedPoliciesDetailsAPIResponse FetchRenewedlapsedPoliciesInfo(PaymentServiceModel objPaymentModel) { RenewedLapsedPoliciesDetailsAPIRequest objObject = new RenewedLapsedPoliciesDetailsAPIRequest(); objObject = MappingToRenewedlapsedServiceObject(objPaymentModel); string URl = "http://secure.AIA.com:8080/Lif_Ind_Rnwl_Sending/"; string result = GetPostParametersToAPI("jersey", "renewableAgentsClientsLapsed", URl, objObject); RenewedLapsedPoliciesDetailsAPIResponse objRenewedlapsedPoliciesResponse = new RenewedLapsedPoliciesDetailsAPIResponse(); Newtonsoft.Json.JsonSerializerSettings settings = new Newtonsoft.Json.JsonSerializerSettings(); objRenewedlapsedPoliciesResponse = Newtonsoft.Json.JsonConvert.DeserializeObject <RenewedLapsedPoliciesDetailsAPIResponse>(result, settings); return(objRenewedlapsedPoliciesResponse); }