@QueryParam("password") String password,
OrderRepresentation orderRequest) {
OrderActivity orderActivity = new OrderActivity();
CustomerActivity customerActivity = new CustomerActivity();
// If they're authorized, return the results
String customerId = customerActivity.authenticate(username, password);
if (customerId != null) {
return Response.ok(orderActivity.updateOrder(id, orderRequest.getCustomer(), orderRequest.getBillingAddress(),
orderRequest.getShippingAddress(), orderRequest.getCreditCard(), orderRequest.getShippingCompany(),
orderRequest.getLines(), orderRequest.isPaymentReceived(), orderRequest.getOrderState())).build();
}