Package com.google.checkout.notification

Examples of com.google.checkout.notification.Shipping


        // handle the adjustments
        OrderAdjustment adjustment = info.getOrderAdjustment();
        if (adjustment != null) {
            addAdjustments(cart, adjustment);
            // ship group info
            Shipping shipping = info.getOrderAdjustment().getShipping();
            addShipInfo(cart, shipping, partyInfo[1]);
        }

        // set the cart payment method
        cart.addPaymentAmount(PAYMENT_METHOD, new BigDecimal(info.getOrderTotal()));
View Full Code Here


        cart.setItemShipGroupQty(cartItem, qty, groupIdx);
    }

    protected void addAdjustments(ShoppingCart cart, OrderAdjustment adjustment) {
        // handle shipping
        Shipping shipping = adjustment.getShipping();
        BigDecimal shipAmount = new BigDecimal(shipping.getShippingCost());
        GenericValue shipAdj = delegator.makeValue("OrderAdjustment", FastMap.newInstance());
        shipAdj.set("orderAdjustmentTypeId", "SHIPPING_CHARGES");
        shipAdj.set("amount", shipAmount);
        cart.addAdjustment(shipAdj);
View Full Code Here

        // handle the adjustments
        OrderAdjustment adjustment = info.getOrderAdjustment();
        if (adjustment != null) {
            addAdjustments(cart, adjustment);
            // ship group info
            Shipping shipping = info.getOrderAdjustment().getShipping();
            addShipInfo(cart, shipping, partyInfo[1]);
        }

        // set the cart payment method
        cart.addPaymentAmount(PAYMENT_METHOD, new BigDecimal(info.getOrderTotal()));
View Full Code Here

        cart.setItemShipGroupQty(cartItem, qty, groupIdx);
    }

    protected void addAdjustments(ShoppingCart cart, OrderAdjustment adjustment) {
        // handle shipping
        Shipping shipping = adjustment.getShipping();
        BigDecimal shipAmount = new BigDecimal(shipping.getShippingCost());
        GenericValue shipAdj = delegator.makeValue("OrderAdjustment", FastMap.newInstance());
        shipAdj.set("orderAdjustmentTypeId", "SHIPPING_CHARGES");
        shipAdj.set("amount", shipAmount);
        cart.addAdjustment(shipAdj);
View Full Code Here

TOP

Related Classes of com.google.checkout.notification.Shipping

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.