diff --git a/core/lib/Thelia/Module/AbstractDeliveryModule.php b/core/lib/Thelia/Module/AbstractDeliveryModule.php index 9e9710534..f38e1db9c 100644 --- a/core/lib/Thelia/Module/AbstractDeliveryModule.php +++ b/core/lib/Thelia/Module/AbstractDeliveryModule.php @@ -28,26 +28,5 @@ use Thelia\Module\Exception\DeliveryException; abstract class AbstractDeliveryModule extends BaseModule implements DeliveryModuleInterface { - /** - * This method is called by the Delivery loop, to check if the current module has to be displayed to the customer. - * Override it to implements your delivery rules/ - * - * If you return true, the delivery method will de displayed to the customer - * If you return false, the delivery method will not be displayed - * - * @param Country $country the country to deliver to. - * - * @return boolean - */ - public abstract function isValidDelivery(Country $country); - /** - * Calculate and return delivery price in the shop's default currency - * - * @param Country $country the country to deliver to. - * - * @return float the delivery price - * @throws DeliveryException if the postage price cannot be calculated. - */ - public abstract function getPostage(Country $country); } \ No newline at end of file diff --git a/core/lib/Thelia/Module/AbstractPaymentModule.php b/core/lib/Thelia/Module/AbstractPaymentModule.php index 5c2e4cec8..a6e3064f8 100644 --- a/core/lib/Thelia/Module/AbstractPaymentModule.php +++ b/core/lib/Thelia/Module/AbstractPaymentModule.php @@ -32,30 +32,6 @@ use Thelia\Tools\URL; abstract class AbstractPaymentModule extends BaseModule implements PaymentModuleInterface { - /** - * This method is called when the payment gateway needs to be invoked. - * - * If this method return a Response instance, this response is sent to the browser. Return null if you don't want to - * send a response and process the payment yourself. - * - * In many cases, it's necessary to send a form to the payment gateway. On your response you can return this form already - * completed, ready to be sent, instead of redirecting. The generateGatewayFormResponse() may help you in this case :) - * - * @param Order $order processed order - * @return null|Response - */ - abstract public function pay(Order $order); - - /** - * This method is called by the Payment loop, to check if the current module has to be displayed to the customer - * - * If you return true, the payment method will de displayed to the customed - * If you return false, the payment method will not be displayed - * - * @return boolean - */ - abstract public function isValidPayment(); - /** * Render the payment gateway template. The module should provide the gateway URL and the form fields names and values. *