* @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); }