1 <?php
2
3 /* --------------------------------------------------------------
4 OrderTotalRepositoryDeleterInterface.inc.php 2015-11-03 gm
5 Gambio GmbH
6 http://www.gambio.de
7 Copyright (c) 2015 Gambio GmbH
8 Released under the GNU General Public License (Version 2)
9 [http://www.gnu.org/licenses/gpl-2.0.html]
10 --------------------------------------------------------------
11 */
12
13 /**
14 * Interface OrderTotalRepositoryDeleterInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderTotalRepositoryDeleterInterface
21 {
22 /**
23 * Removes an order total item by the given order total ID.
24 *
25 * @param IdType $orderTotalId Order total ID.
26 *
27 * @return OrderTotalRepositoryDeleterInterface Same instance for method chaining.
28 */
29 public function deleteTotalById(IdType $orderTotalId);
30
31
32 /**
33 * Removes all order totals which are associated with the given order ID.
34 *
35 * @param IdType $orderId Order ID.
36 *
37 * @return OrderTotalRepositoryDeleterInterface Same instance for method chaining.
38 */
39 public function deleteTotalsByOrderId(IdType $orderId);
40 }