1 <?php
2
3 /* --------------------------------------------------------------
4 OrderTotalRepositoryReaderInterface.inc.php 2015-11-13 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 OrderTotalRepositoryReaderInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderTotalRepositoryReaderInterface
21 {
22 /**
23 * Returns an StoredOrderTotal object by the given ID.
24 *
25 * @param IdType $orderTotalId ID of order total item.
26 *
27 * @return StoredOrderTotal Fetched order total.
28 */
29 public function getTotalById(IdType $orderTotalId);
30
31
32 /**
33 * Returns a StoredOrderTotalCollection of StoredOrderTotal objects by the given order ID.
34 *
35 * @param IdType $orderOrderId ID of order item.
36 *
37 * @throws UnexpectedValueException If record does not exist.
38 * @return StoredOrderTotalCollection Fetched order total collection.
39 */
40 public function getTotalsByOrderId(IdType $orderOrderId);
41 }