12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- /**
- * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
- */
- namespace Temando\Shipping\Api\Checkout;
- use Magento\Framework\Exception\CouldNotDeleteException;
- use Magento\Framework\Exception\CouldNotSaveException;
- use Temando\Shipping\Api\Data\Delivery\CollectionPointSearchRequestInterface;
- /**
- * Process "collection point" delivery option (guest checkout).
- *
- * @api
- * @package Temando\Shipping\Api
- * @author Benjamin Heuer <benjamin.heuer@netresearch.de>
- * @author Christoph Aßmann <christoph.assmann@netresearch.de>
- * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
- * @link https://www.temando.com/
- */
- interface GuestCartCollectionPointManagementInterface
- {
- /**
- * Save a customer's search for collection points.
- *
- * @param string $cartId
- * @param string $countryId
- * @param string $postcode
- * @return \Temando\Shipping\Api\Data\Delivery\CollectionPointSearchRequestInterface
- * @throws CouldNotSaveException
- */
- public function saveSearchRequest(
- string $cartId,
- string $countryId,
- string $postcode
- ): CollectionPointSearchRequestInterface;
- /**
- * Delete a customer's search for collection points.
- *
- * @param string $cartId
- * @return bool
- * @throws CouldNotDeleteException
- */
- public function deleteSearchRequest(string $cartId): bool;
- /**
- * Retrieve collection points matching the customer's search parameters.
- *
- * @param string $cartId
- * @return \Temando\Shipping\Api\Data\Delivery\QuoteCollectionPointInterface[]
- */
- public function getCollectionPoints(string $cartId): array;
- /**
- * Select a given collection point for checkout.
- *
- * @param string $cartId
- * @param string $collectionPointId
- * @return bool
- * @throws CouldNotSaveException
- */
- public function selectCollectionPoint(string $cartId, string $collectionPointId): bool;
- }
|