Inital commit
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
namespace Thelia\Module;
|
||||
|
||||
use Thelia\Model\Country;
|
||||
use Thelia\Model\OrderPostage;
|
||||
use Thelia\Module\Exception\DeliveryException;
|
||||
|
||||
interface DeliveryModuleInterface extends BaseModuleInterface
|
||||
@@ -35,8 +36,16 @@ interface DeliveryModuleInterface extends BaseModuleInterface
|
||||
*
|
||||
* @param Country $country the country to deliver to.
|
||||
*
|
||||
* @return float the delivery price
|
||||
* @return OrderPostage|float the delivery price
|
||||
* @throws DeliveryException if the postage price cannot be calculated.
|
||||
*/
|
||||
public function getPostage(Country $country);
|
||||
|
||||
/**
|
||||
*
|
||||
* This method return true if your delivery manages virtual product delivery.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function handleVirtualProductDelivery();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user