1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
*/
namespace Temando\Shipping\Model\ResourceModel\Repository;
use Magento\Framework\Api\SearchCriteriaInterface;
use Temando\Shipping\Model\PickupInterface;
/**
* Temando Pickup Fulfillment Repository Interface.
*
* @package Temando\Shipping\Model
* @author Sebastian Ertner <sebastian.ertner@netresearch.de>
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://www.temando.com/
*/
interface PickupRepositoryInterface
{
/**
* Load pickup fulfillment by entity id.
*
* @param string $pickupId
* @return \Temando\Shipping\Model\PickupInterface
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getById($pickupId);
/**
* Load pickup fulfillments.
*
* @param \Magento\Framework\Api\SearchCriteriaInterface $criteria
* @return \Temando\Shipping\Model\PickupInterface[]
*/
public function getList(SearchCriteriaInterface $criteria);
/**
* Save pickup fulfillment.
*
* @param \Temando\Shipping\Model\PickupInterface $pickup
* @return \Temando\Shipping\Model\PickupInterface
* @throws \Magento\Framework\Exception\CouldNotSaveException
*/
public function save(PickupInterface $pickup);
}