/* * Copy Right 2016 to 2017 (PradeepIT Pvt Ltd) */ package de.hybris.merchandise.core.voucher; import de.hybris.platform.order.exceptions.CalculationException; import java.util.Collection; /** * @author pc * */ public interface MerchandiseVoucherService { /** * Apply a voucher code to the cart. * * @param voucherCode * The code to apply * @throws CalculationException * */ public VoucherCodeResult applyVoucher(final String voucherCode) throws CalculationException; /** * Remove a voucher code from the cart. * * @param voucherCode * The code to remove * */ public boolean releaseVoucherCode(final String voucherCode); /** * Get list of voucher codes applied to the cart * * @return List list of applied */ public Collection getAppliedVoucherCodes(); }