/** * Constructor to create a OppvDeliveryNonCancelledFindNoOpRequest * * @param id Unique request name * @param noOpIn Simulated response object */ public OppvDeliveryNonCancelledFindNoOpRequest(String id, OppvOrderItemObjDataList noOpIn) { super(id, "OppvDeliveryNonCancelledFindNoOpRequest"); if (noOpIn != null) { Map mapList = new HashMap(); Map[] mapArray = null; mapList.put("Count", noOpIn.getLength()); mapList.put("TotalCount", noOpIn.getTotalCount()); mapList.put("Index", noOpIn.getIndex()); mapArray = new HashMap[noOpIn.getLength()]; for (int i = 0; i < noOpIn.getLength(); i++) { mapArray[i] = OppvOrderItemObjHelper.toMap(noOpIn.getArray()[i], null); addInput("OppvDelivery", noOpIn); } addInput("OppvDelivery", mapList); } }
/** * Retrieves the OppvOrderItemObjDataList passed into the constructor * * @return Simulated response */ public OppvOrderItemObjDataList getOutput() { return OppvOrderItemObjHelper.fromMapList(outputMap, "OppvDeliveryList"); }