class DemandServiceRepository {

	public DemandResponse createDemand(List<Demand> demands, RequestInfo requestInfo) {
		log.info(" DemandServiceRepository createDemand requestInfo" + requestInfo);
		DemandRequest demandRequest = new DemandRequest();
		demandRequest.setRequestInfo(requestInfo);
		demandRequest.setDemands(demands);

		log.info("DemandServiceRepository createDemand(), demands --> " + demands);

		String url = propertiesManager.getBillingServiceHostName() + propertiesManager.getBillingServiceCreatedDemand();
		log.info("DemandServiceRepository createDemand(), URL - > " + url + " \n demandRequest --> " + demandRequest);

		return restTemplate.postForObject(url, demandRequest, DemandResponse.class);
	}

}