Examples of Order


Examples of com.ib.client.Order

        this.interactiveBrokers.client().reqAutoOpenOrders(autoBind);
    }

    public void open(String action, int quantity, String timeInForce, String type) {

        Order order = new Order();
        order.m_orderType = type;
        order.m_totalQuantity = quantity;
        order.m_tif = timeInForce;
        order.m_action = action;
View Full Code Here

Examples of com.ibatis.jpetstore.domain.Order

      daoManager.endTransaction();
    }
  }

  public Order getOrder(int orderId) {
    Order order = null;

    try {
      daoManager.startTransaction();

      order = orderDao.getOrder(orderId);

      for (int i = 0; i < order.getLineItems().size(); i++) {
        LineItem lineItem = (LineItem) order.getLineItems().get(i);
        lineItem.setItem(itemDao.getItem(lineItem.getItemId()));
      }

      daoManager.commitTransaction();
    } finally {
View Full Code Here

Examples of com.jada.xml.psigate.Order

  }
 
  public void voidCredit(Long creditHeaderId) throws AuthorizationException, PaymentException, Exception {
      CreditHeader creditHeader = CreditHeaderDAO.load(site.getSiteId(), creditHeaderId);

    Order order = new Order();
    order.setStoreID(storeId);
    order.setPassphrase(passphrase);
    order.setBname(bname);
    PaymentTran payment = creditHeader.getPaymentTran();
    order.setTransRefNumber(payment.getPaymentReference2());
    order.setOrderID(payment.getPaymentReference3());
    order.setPaymentType(PAYMENT_TYPE);
    order.setCardAction(CARDACTION_VOID);
   
    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
View Full Code Here

Examples of com.jboss.dvd.seam.Order

            protected void invokeApplication() throws Exception {
                invokeAction("#{checkout.createOrder}");
            }
            @Override
            protected void renderResponse() throws Exception {
                Order order = (Order) getValue("#{order}");
                assert order != null;
               
            }
        }.run();   
       
        id = new FacesRequest("/checkout.xhtml", id) {
            @Override
            protected void invokeApplication() throws Exception {
                try {
                    invokeAction("#{checkout.submitOrder}");
                    assert false; // should fail
                } catch (ELException e) {
                    assert e.getCause() instanceof NotLoggedInException;
                }
            }
            @Override
            protected void renderResponse() throws Exception {
                Order order = (Order) getValue("#{order}");
                assert order != null;
            }
        }.run();   
       
        id = new FacesRequest("/checkout.xhtml", id) {
View Full Code Here

Examples of com.jpoweredcart.common.entity.sale.Order

    String storeUrl = null;
    String image = voucherTheme.getImage();
    image = mediaService.getImageUrl(image);
    String amount = null;
    Integer orderId = voucher.getOrderId();
    Order order = orderAdminModel.get(orderId, Order.class);
    // If voucher belongs to an order
    if(order!=null){
      Integer languageId = order.getLanguageId();
      amount = currencyService.format(voucher.getAmount(), order.getCurrencyCode(),
          order.getCurrencyValue(), languageId);
      storeName = order.getStoreName();
      storeUrl = order.getStoreUrl();
    }else{
     
      //get default language and currency code TODO: these data should be kept in customer table?
      Integer languageId = getSettingService().getConfig(SettingKey.LANGUAGE_ID, Integer.class);
      String currencyCode = getSettingService().getConfig(SettingKey.CFG_CURRENCY);
View Full Code Here

Examples of com.liferay.portal.kernel.dao.orm.Order

     
      DynamicQuery locationQuery = DynamicQueryFactoryUtil.forClass(Location.class)
          .add(RestrictionsFactoryUtil.eq("name", locationName))
          .setProjection(ProjectionFactoryUtil.property("locationId"));
     
      Order order = OrderFactoryUtil.desc("modifiedDate");
     
      DynamicQuery eventQuery = DynamicQueryFactoryUtil.forClass(Event.class)
          .add(RestrictionsFactoryUtil.eq("name", eventName))
          .add(RestrictionsFactoryUtil.eq("description", eventDescription))
          .add(PropertyFactoryUtil.forName("locationId").in(locationQuery))
View Full Code Here

Examples of com.mcorrigal.matchingEngine.order.interfaces.Order

    this.orderBook = orderBook;
  }
 
  public void newOrderRequest(Order newOrder) {
    LOGGER.info("received new order: " + newOrder);
        Order matchedOrder = newOrder.findMatch(orderBook);
        if (matchedOrder == null) {
            newOrder.work(orderBook);
        newOrderEvent();
        } else {
            matchedOrder.remove(orderBook);
        }
  }
View Full Code Here

Examples of com.openbravo.ws.externalsales.Order

    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Order)) {
            return false;
        }
        Order other = (Order) obj;
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true &&
                ((this.businessPartner == null && other.getBusinessPartner() == null) ||
                (this.businessPartner != null &&
                this.businessPartner.equals(other.getBusinessPartner()))) &&
                ((this.lines == null && other.getLines() == null) ||
                (this.lines != null &&
                java.util.Arrays.equals(this.lines, other.getLines()))) &&
                ((this.orderId == null && other.getOrderId() == null) ||
                (this.orderId != null &&
                this.orderId.equals(other.getOrderId()))) &&
                ((this.payment == null && other.getPayment() == null) ||
                (this.payment != null &&
                java.util.Arrays.equals(this.payment, other.getPayment()))) &&
                this.state == other.getState();
        __equalsCalc = null;
        return _equals;
    }
View Full Code Here

Examples of com.prancingdonkey.domain.Order

        return "src/main/app/routeToDLQ.xml";
    }

    @Test
    public void testCanRouteOnUnaccepted() throws Exception {
        muleContext.getClient().dispatch("jms://topic:orders", new Order(),null);
        MuleMessage result = muleContext.getClient().request("jms://DLQ",15000);
        Assert.assertNotNull(result);
    }
View Full Code Here

Examples of com.prancingdonkey.model.Order

    // ToDo something broke in 3.4 need to fix
    @Ignore
    @Test
    public void testCanEvaluateRules() throws Exception {

        Order order = new Order();

        Customer customer = new Customer();
        customer.setFirstName("John");
        customer.setLastName("Foo");
        customer.setTotalOrders(1200);
        customer.setTotalSpendForYear(new BigDecimal(50000));

        Address address = new Address();
        address.setAddress1("Foo Street");
        address.setCity("Brooklyn");
        address.setState("NY");

        customer.setAddress(address);

        customer.setBirthday(new SimpleDateFormat("dd-MM-yyyy").parse("01-01-1978"));

        order.setCustomer(customer);

        muleContext.getClient().dispatch("vm://order.processing.loyalty", order, null);
        MuleMessage response = muleContext.getClient().request("vm://loyalty",15000);
        Assert.assertNotNull(response);

        Order result = (Order) response.getPayload();
        Assert.assertEquals(2,result.getRewards().size());
    }
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.