Examples of OrderConfirmation


Examples of com.arcbees.gwtpwebsite.shared.domain.OrderConfirmation

    @POST
    public Response processOrder(Order order) throws StripeException {
        DomainValidator<Order> validator = new DomainValidator<Order>();
        validator.validate(order);

        OrderConfirmation confirmation = orderProcessor.processOrder(order);

        return Response.ok(confirmation).build();
    }
View Full Code Here

Examples of com.arcbees.gwtpwebsite.shared.domain.OrderConfirmation

        String confirmationNumber = confirmationNumberGenerator.generateConfirmationNumber(customer);

        emailSender.sendOrderEmail(confirmationNumber);

        OrderConfirmation orderConfirmation = new OrderConfirmation();
        orderConfirmation.setConfirmationNumber(confirmationNumber);

        return orderConfirmation;
    }
View Full Code Here

Examples of org.fusesource.restygwt.examples.client.OrderConfirmation

            StringWriter sw = new StringWriter();
            mapper.writeValue(sw, order);
            System.out.println("Request: " + sw.toString());

            OrderConfirmation confirmation = new OrderConfirmation();
            confirmation.order_id = 123123;
            confirmation.order = order;
            confirmation.price = 27.54;
            confirmation.ready_time = System.currentTimeMillis() + 1000 * 60 * 30; // in
                                                                                   // 30
View Full Code Here

Examples of org.jabusuite.transaction.OrderConfirmation

        }
    }
   
    protected void createOrderConfirmation() {
        try {
            final OrderConfirmation orderConfirmation = new OrderConfirmation();
            String userNumber = getNextUserNumber(OrderConfirmation.class);
            orderConfirmation.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.msgToOrderConfirmation"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmOrderConfirmationEdit fmOrderConfirmationEdit = new FmOrderConfirmationEdit();
View Full Code Here

Examples of org.jabusuite.transaction.OrderConfirmation

    protected BtnToolbar btnToWorkOrder;
   
   
    public PnOrderConfirmationEdit() {
        super();
        this.setOrderConfirmation(new OrderConfirmation());
    }
View Full Code Here

Examples of org.jabusuite.transaction.OrderConfirmation

        this.setOrderConfirmation(new OrderConfirmation());
    }

    @Override
    public void setJbsBaseObject(JbsBaseObject jbsBaseObject) {
        OrderConfirmation orderConfirmation = (OrderConfirmation) jbsBaseObject;
        //We have to get the positions from the database also
        if ((orderConfirmation != null) && (this.getDlgState() == DlgState.dsEdit)) {
            logger.debug("Retrieving positions for order confirmation " + orderConfirmation.getId());
            try {
                OrderConfirmationsRemote orderConfirmations = (OrderConfirmationsRemote) ClientTools.getRemoteBean(OrderConfirmationsRemote.class);
                OrderConfirmation exDelivNote = orderConfirmations.findDataset(orderConfirmation.getId(), true);
                orderConfirmation = exDelivNote;
            } catch (NamingException e) {
                logger.error("Error retrieving order confirmation.", e);
            }
        }
View Full Code Here

Examples of org.jabusuite.transaction.OrderConfirmation

    /* (non-Javadoc)
     * @see org.jabusuite.webclient.dataediting.FmEditJbsBaseObject#createJbsBaseObject()
     */
    @Override
    public void createJbsBaseObject() {
        this.setJbsBaseObject(new OrderConfirmation());
    }
View Full Code Here

Examples of test.complex.model.OrderConfirmation

import test.complex.model.OrderConfirmation;

public class OrderServiceImpl implements OrderService {

    public OrderConfirmation order(Cart cart) {
        OrderConfirmation oc = new OrderConfirmation();
        oc.setCart(cart);
        oc.setPriceSum(100);
        return oc;
    }
View Full Code Here

Examples of test.complex.model.OrderConfirmation

        orderItem.setCount(2);
        orderItem.setItem("Book");
        cart.getItems().add(orderItem);

        // Call the service
        OrderConfirmation orderConfirmation = orderService.order(cart);
        orderConfirmation = orderService.order(cart);
        orderConfirmation = orderService.order(cart);

        // Check that we get the expected order confirmation
        assertNotNull(orderConfirmation);
        cart = orderConfirmation.getCart();
        assertNotNull(cart);
        assertEquals(1, cart.getItems().size());
        orderItem = cart.getItems().get(0);
        assertEquals(2, orderItem.getCount());
        assertEquals("Book", orderItem.getItem());
View Full Code Here

Examples of test.complex.model.OrderConfirmation


public class OrderServiceImpl implements OrderService {

  public OrderConfirmation order(Cart cart) {
    OrderConfirmation oc = new OrderConfirmation();
    oc.setCart(cart);
    oc.setPriceSum(100);
    return oc;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.