Package com.magento.api

Examples of com.magento.api.CatalogInventoryStockItemUpdateEntity


    @Test
    public void updateStockItem() throws Exception
    {

        CatalogInventoryStockItemUpdateEntity entity = new CatalogInventoryStockItemUpdateEntity();
        entity.setManage_stock(0);
        entity.setUse_config_manage_stock(0);

        connector.updateStockItem(String.valueOf(EXISTENT_PRODUCT_ID), entity);
    }
View Full Code Here


    @Test
    public void productInventory() throws Exception
    {
        Integer productId = null;
        CatalogProductCreateEntity entity = new CatalogProductCreateEntity();
        CatalogInventoryStockItemUpdateEntity stock = new CatalogInventoryStockItemUpdateEntity();
        stock.setQty("10");
        stock.setIs_in_stock(1);
        entity.setStock_data(stock);
        productId = connector.createProduct("simple", 4, "X8960", entity, null, null);
        try
        {
            List<CatalogInventoryStockItemEntity> stockItems = connector.listStockItems(Arrays.asList("X8960"));
View Full Code Here

TOP

Related Classes of com.magento.api.CatalogInventoryStockItemUpdateEntity

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.