public static void testDisplayOrder(CloverConnector cloverConnector, TestConnectorListener connListener) { DisplayOrder order = DisplayFactory.createDisplayOrder(); order.title = "Get Ready!"; order.note = "Here is the note field"; order.serviceChargeName = "Gonna Getcha"; order.serviceChargeAmount = "$2,123.34"; DisplayLineItem lineItem = DisplayFactory.createDisplayLineItem(); lineItem.name = "My Item Name"; lineItem.price = "$123.43"; order.addDisplayLineItem(lineItem); DisplayDiscount discount = DisplayFactory.createDisplayDiscount(); discount.amount = "$543.21"; discount.name = "Nice Guy discount"; order.addDisplayDiscount(discount); cloverConnector.ShowDisplayOrder(order); DisplayLineItem line2 = DisplayFactory.createDisplayLineItem(); line2.name = "another item"; line2.price = "$4.68"; line2.quantity = "2"; line2.unitPrice = "$2.34"; cloverConnector.LineItemAddedToDisplayOrder(order, line2); }