Skip to content

Commit

Permalink
CC-34830: Added request validator stack to cart reorder. (#11202)
Browse files Browse the repository at this point in the history
Add request validator plugin stack to cart reorder.
  • Loading branch information
dmiseev authored Nov 19, 2024
1 parent bb99458 commit 1546504
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/**
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace Spryker\Zed\CartReorderExtension\Dependency\Plugin;

use Generated\Shared\Transfer\CartReorderRequestTransfer;
use Generated\Shared\Transfer\CartReorderResponseTransfer;

/**
* Use this plugin interface to validate a reorder request that executes before transaction.
*/
interface CartReorderRequestValidatorPluginInterface
{
/**
* Specification:
* - Validates a reorder request.
*
* @api
*
* @param \Generated\Shared\Transfer\CartReorderRequestTransfer $cartReorderRequestTransfer
* @param \Generated\Shared\Transfer\CartReorderResponseTransfer $cartReorderResponseTransfer
*
* @return \Generated\Shared\Transfer\CartReorderResponseTransfer
*/
public function validate(
CartReorderRequestTransfer $cartReorderRequestTransfer,
CartReorderResponseTransfer $cartReorderResponseTransfer
): CartReorderResponseTransfer;
}

0 comments on commit 1546504

Please sign in to comment.