* @param order
* @return
*/
private OrderRepresentation createRepresentation(Order order) {
// Create a representation of the order
OrderRepresentation orderRep = new OrderRepresentation();
orderRep.setId(order.getId());
orderRep.setCustomer(order.getCustomer());
orderRep.setBillingAddress(order.getBillingAddress());
orderRep.setShippingAddress(order.getShippingAddress());
orderRep.setCreditCard(order.getCreditCard());
orderRep.setShippingCompany(order.getShippingCompany());
orderRep.setLines(order.getLines());
orderRep.setPaymentReceived(order.isPaymentReceived());
orderRep.setOrderState(order.getOrderState());
setLinks(orderRep);
return orderRep;
}