Package com.magento.api

Examples of com.magento.api.ShoppingCartPaymentMethodEntity


      testObjects.put("quoteId", quoteId);

      ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
      List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.get("customerAddresses");
      String shippingMethod = testObjects.get("shippingMethod").toString();
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
     
      List<HashMap<String, Object>> products = (List<HashMap<String, Object>>) testObjects.get("products");
      List<ShoppingCartProductEntity> shoppingCartProducts = new ArrayList<ShoppingCartProductEntity>();
      List<Integer> productIds = new ArrayList<Integer>();
     
View Full Code Here


      // Set the shipping method
      String shippingMethod = testObjects.get("shippingMethod").toString();
      setShoppingCartShippingMethod(quoteId, shippingMethod);

      // Set the payment method
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
      setShoppingCartPaymentMethod(quoteId, paymentMethod);
    }
    catch (Exception e) {
      e.printStackTrace();
      fail();
View Full Code Here

      testObjects = (HashMap<String, Object>) context.getBean("captureOrderInvoice");
     
      ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
      List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.get("customerAddresses");
      String shippingMethod = testObjects.get("shippingMethod").toString();
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
     
      List<HashMap<String, Object>> products = (List<HashMap<String, Object>>) testObjects.get("products");
      List<ShoppingCartProductEntity> shoppingCartProducts = new ArrayList<ShoppingCartProductEntity>();
      List<Integer> productIds = new ArrayList<Integer>();
     
View Full Code Here

      testObjects = (HashMap<String, Object>) context.getBean("addOrderShipmentTrack");
     
      ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
      List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.get("customerAddresses");
      String shippingMethod = testObjects.get("shippingMethod").toString();
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
     
      List<HashMap<String, Object>> products = (List<HashMap<String, Object>>) testObjects.get("products");
      List<ShoppingCartProductEntity> shoppingCartProducts = new ArrayList<ShoppingCartProductEntity>();
      List<Integer> productIds = new ArrayList<Integer>();
     
View Full Code Here

      testObjects = (HashMap<String, Object>) context.getBean("getOrder");
     
      ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
      List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.get("customerAddresses");
      String shippingMethod = testObjects.get("shippingMethod").toString();
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
     
      List<HashMap<String, Object>> products = (List<HashMap<String, Object>>) testObjects.get("products");
      List<ShoppingCartProductEntity> shoppingCartProducts = new ArrayList<ShoppingCartProductEntity>();
      List<Integer> productIds = new ArrayList<Integer>();
     
View Full Code Here

  public void testGetOrder() {
    try {
      List<Integer> productIds = (List<Integer>) testObjects.get("productIds");
      String orderId = (String) testObjects.get("orderId");
      String shippingMethod = testObjects.get("shippingMethod").toString();
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
     
      MessageProcessor flow = lookupFlowConstruct("get-order");
      MuleEvent response = flow.process(getTestEvent(testObjects));
     
      SalesOrderEntity order = (SalesOrderEntity) response.getMessage().getPayload();
      assertNotNull(order);
     
      assertTrue(Integer.parseInt(order.getIncrement_id()) == Integer.parseInt(orderId));
      assertTrue(order.getShipping_method().equals(shippingMethod));
      assertTrue(order.getPayment().getMethod().equals(paymentMethod.getMethod()));
      SalesOrderItemEntity[] products = order.getItems();
      for (SalesOrderItemEntity product : products) {
        int productId = Integer.parseInt(product.getProduct_id());
        assertTrue(productIds.contains(productId));
      }
View Full Code Here

      testObjects = (HashMap<String, Object>) context.getBean("addOrderShipmentComment");
     
      ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
      List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.get("customerAddresses");
      String shippingMethod = testObjects.get("shippingMethod").toString();
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
     
      List<HashMap<String, Object>> products = (List<HashMap<String, Object>>) testObjects.get("products");
      List<ShoppingCartProductEntity> shoppingCartProducts = new ArrayList<ShoppingCartProductEntity>();
      List<Integer> productIds = new ArrayList<Integer>();
     
View Full Code Here

      testObjects = (HashMap<String, Object>) context.getBean("unholdOrder");
     
      ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
      List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.get("customerAddresses");
      String shippingMethod = testObjects.get("shippingMethod").toString();
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
     
      List<HashMap<String, Object>> products = (List<HashMap<String, Object>>) testObjects.get("products");
      List<ShoppingCartProductEntity> shoppingCartProducts = new ArrayList<ShoppingCartProductEntity>();
      List<Integer> productIds = new ArrayList<Integer>();
     
View Full Code Here

      String storeId = testObjects.get("storeId").toString();
     
      int quoteId = createShoppingCart(storeId);
      testObjects.put("quoteId", quoteId);
     
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
      List<ShoppingCartCustomerAddressEntity> customerAddresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.get("customerAddresses");
      setCustomerAddressesToShoppingCart(quoteId, customerAddresses);
      setShoppingCartPaymentMethod(quoteId, paymentMethod);
    }
    catch (Exception e) {
View Full Code Here

      testObjects = (HashMap<String, Object>) context.getBean("voidOrderInvoice");
     
      ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
      List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.get("customerAddresses");
      String shippingMethod = testObjects.get("shippingMethod").toString();
      ShoppingCartPaymentMethodEntity paymentMethod = (ShoppingCartPaymentMethodEntity) testObjects.get("paymentMethod");
     
      List<HashMap<String, Object>> products = (List<HashMap<String, Object>>) testObjects.get("products");
      List<ShoppingCartProductEntity> shoppingCartProducts = new ArrayList<ShoppingCartProductEntity>();
      List<Integer> productIds = new ArrayList<Integer>();
     
View Full Code Here

TOP

Related Classes of com.magento.api.ShoppingCartPaymentMethodEntity

Copyright © 2018 www.massapicom. 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.