. */ /* */ /**********************************************************************************/ namespace Thelia\Coupon; /** * Created by JetBrains PhpStorm. * Date: 8/19/13 * Time: 3:24 PM * * Allow a CouponManager class to be fed with relevant Thelia data * * @package Coupon * @author Guillaume MOREL * */ interface CouponAdapterInterface { /** * Return a Cart a CouponManager can process * * @return \Thelia\Model\Cart */ public function getCart(); /** * Return an Address a CouponManager can process * * @return \Thelia\Model\Address */ public function getDeliveryAddress(); /** * Return an Customer a CouponManager can process * * @return \Thelia\Model\Customer */ public function getCustomer(); /** * Return Checkout total price * * @return float */ public function getCheckoutTotalPrice(); /** * Return Products total price * * @return float */ public function getCheckoutTotalPriceWithoutDiscountAndPostagePrice(); /** * Return Checkout total postage (only) price * * @return float */ public function getCheckoutPostagePrice(); /** * Return the number of Products in the Cart * * @return int */ public function getNbArticlesInTheCart(); /** * Return all Coupon given during the Checkout * * @return array Array of CouponInterface */ public function getCurrentCoupons(); }