-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CC-34830: Added request validator stack to cart reorder. (#11202)
Add request validator plugin stack to cart reorder.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...Zed/CartReorderExtension/Dependency/Plugin/CartReorderRequestValidatorPluginInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |