/* * Copy Right 2016 to 2017 (PradeepIT Pvt Ltd) */ package de.hybris.merchandise.facades.order; import de.hybris.merchandise.core.voucher.VoucherCodeResult; import de.hybris.platform.commercefacades.order.CartFacade; import de.hybris.platform.order.exceptions.CalculationException; import java.util.Collection; /** * The Interface MerchandiseCartFacade. * * @author pc */ public interface MerchandiseCartFacade extends CartFacade { /** * Apply voucher code. * * @param voucherCode * the voucher code * @return the voucher code result * @throws CalculationException * the calculation exception */ public VoucherCodeResult applyVoucherCode(String voucherCode) throws CalculationException; /** * Releases the voucher code from the cart. * * @param voucherCode * the code to release * @return true, if successful */ public boolean releaseVoucherCode(String voucherCode); /** * Gets all applied voucher codes to a carts in the session. * * @return the applied voucher codes */ public Collection getAppliedVoucherCodes(); }