* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @link https://www.temando.com/ */ interface ShipmentRepositoryInterface { /** * Load external shipment entity from platform. * * @param string $shipmentId * @return ShipmentInterface * @throws LocalizedException */ public function getById(string $shipmentId): ShipmentInterface; /** * Cancel external shipment at the platform. * * @param string $shipmentId * @return ShipmentInterface * @throws CouldNotDeleteException */ public function cancel(string $shipmentId): ShipmentInterface; }