Skip to content

CC-34508 Added missing plugins. #3109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ sales_order_amendment.validation.order_amendment_duplicated,An amendment is alre
sales_order_amendment.validation.order_amendment_duplicated,"Für diese Bestellung ist bereits eine Änderung in Bearbeitung. Diese Änderung muss abgeschlossen oder storniert sein, damit Sie eine neue Änderung beginnen können.",de_DE
sales_order_amendment.validation.cart_reorder.order_reference_not_match,"Another order is currently being amended. Complete or cancel the previous amendment before making changes to this order.",en_US
sales_order_amendment.validation.cart_reorder.order_reference_not_match,"Eine andere Bestellung wird gerade geändert. Diese Änderung muss abgeschlossen oder storniert sein, bevor Sie Änderungen an dieser Bestellung vornehmen können.",de_DE
sales_order_amendment.validation.cart.cart_cant_be_amended,"Current cart cannot be amended.",en_US
sales_order_amendment.validation.cart.cart_cant_be_amended,"Der aktuelle Warenkorb kann nicht geändert werden.",de_DE
oms.state.order-amendment,Editing in Progress,en_US
oms.state.order-amendment,Bestelländerung in Bearbeitung,de_DE
sales_order_amendment_oms.validation.order_not_being_amended,This order cannot be edited because the time limit for changes has expired.,en_US
Expand Down Expand Up @@ -608,8 +610,7 @@ Enable the following behaviors by registering the plugins:
| PaymentAuthorizationCheckoutPostSavePlugin | Checks whether the payment method selected for the given order requires authorization. | | Spryker\Zed\Payment\Communication\Plugin\Checkout |
| PaymentConfirmPreOrderPaymentCheckoutPostSavePlugin | Send a request to the used PSP App to confirm the preorder payment. | | Spryker\Zed\Payment\Communication\Plugin\Checkout |
| DisallowQuoteCheckoutPreSavePlugin | Disallows quote checkout for the configured amount of seconds. | | Spryker\Zed\QuoteCheckoutConnector\Communication\Plugin\Checkout |
| SalesOrderExpanderPlugin | Transforms the provided cart items according to the configured cart item transformer strategies.
| | Spryker\Zed\Sales\Communication\Plugin\Checkout |
| SalesOrderExpanderPlugin | Transforms the provided cart items according to the configured cart item transformer strategies.| | Spryker\Zed\Sales\Communication\Plugin\Checkout |
| OriginalOrderQuoteExpanderCheckoutPreSavePlugin | Sets `QuoteTransfer.originalOrder` with a found order entity. | | Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Checkout |
| ResetQuoteNameQuoteBeforeSavePlugin | Sets `QuoteTransfer.name` to `null` if quote has no items and `QuoteTransfer.amendmentOrderReference` is set. | Should be executed before `{@link \Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Quote\ResetAmendmentOrderReferenceBeforeQuoteSavePlugin}` | Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Quote |
| CancelOrderAmendmentBeforeQuoteSavePlugin | Triggers the OMS event defined in `{@link \Spryker\Zed\SalesOrderAmendmentOms\SalesOrderAmendmentOmsConfig::getCancelOrderAmendmentEvent()}` to cancel the order amendment process. | Should be executed before `{@link \Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Quote\ResetAmendmentOrderReferenceBeforeQuoteSavePlugin}`. | Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\Quote |
Expand All @@ -619,6 +620,11 @@ Enable the following behaviors by registering the plugins:
| SalesOrderAmendmentOrderExpanderPlugin | Expands `OrderTransfer.salesOrderAmendment` with a found sales order amendment. | | Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Sales |
| IsAmendableOrderExpanderPlugin | Checks if all order items are in the order item state that has a flag defined in `{@link \Spryker\Zed\SalesOrderAmendmentOms\SalesOrderAmendmentOmsConfig::getAmendableOmsFlag()}`. | | Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\Sales |
| CreateSalesOrderAmendmentOrderPostSavePlugin | Persists a sales order amendment entity. | | Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Sales |
| OrderAmendmentCartPreCheckPlugin | Validates if customer order with provided amendment order reference exists. | | Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Cart |
| ResetAmendmentOrderReferencePreReloadItemsPlugin | Resets `QuoteTransfer.amendmentOrderReference` before reloading cart items. | | Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Cart |
| ResetOriginalSalesOrderItemUnitPricesPreReloadItemsPlugin | Resets `QuoteTransfer.originalSalesOrderItemUnitPrices` before reloading cart items. | | Spryker\Zed\PriceProductSalesOrderAmendment\Communication\Plugin\Cart |
| ResetAmendmentQuoteProcessFlowQuotePostMergePlugin | If `PersistentQuoteTransfer.idQuote` is not equal to `CurrentQuoteTransfer.idQuote`, it will reset the `quoteProcessFlow` if it is set to `order-amendment`. | | Spryker\Zed\SalesOrderAmendment\Communication\Plugin\PersistentCart |
| DefaultQuoteCollectionFilterPlugin. | Filters out quotes that are not default. | | Spryker\Zed\MultiCart\Communication\Plugin\Quote |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| DefaultQuoteCollectionFilterPlugin. | Filters out quotes that are not default. | | Spryker\Zed\MultiCart\Communication\Plugin\Quote |
| DefaultQuoteCollectionFilterPlugin | Filters out quotes that are not default. | | Spryker\Zed\MultiCart\Communication\Plugin\Quote |

| IsAmendableOrderSearchOrderExpanderPlugin | Expands the `OrderTransfer.isAmendable` property. | | Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\Sales |
| OrderAmendmentDefaultOrderItemInitialStateProviderPlugin | Returns the initial OMS order item state for order items in the order amendment flow. | | Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\Sales |
| OrderAmendmentsByOrderResourceRelationshipPlugin | Adds the `order-amendments` resource as relationship if `OrderTransfer` and `OrderTransfer.salesOrderAmendment` are provided as a payload. | | Spryker\Glue\OrderAmendmentsRestApi\Plugin\GlueApplication |
Expand Down Expand Up @@ -959,6 +965,7 @@ class CheckoutDependencyProvider extends SprykerCheckoutDependencyProvider

namespace Pyz\Zed\Quote;

use Spryker\Zed\MultiCart\Communication\Plugin\Quote\DefaultQuoteCollectionFilterPlugin;
use Spryker\Zed\PriceProductSalesOrderAmendment\Communication\Plugin\Quote\ResetOriginalSalesOrderItemUnitPricesBeforeQuoteSavePlugin;
use Spryker\Zed\Quote\QuoteDependencyProvider as SprykerQuoteDependencyProvider;
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Quote\ResetAmendmentOrderReferenceBeforeQuoteSavePlugin;
Expand Down Expand Up @@ -991,6 +998,16 @@ class QuoteDependencyProvider extends SprykerQuoteDependencyProvider
new CancelOrderAmendmentQuoteDeleteAfterPlugin(),
];
}

/**
* @return list<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteCollectionFilterPluginInterface>
*/
protected function getQuoteCollectionFilterPlugins(): array
{
return [
new DefaultQuoteCollectionFilterPlugin(),
];
}
}
```

Expand Down Expand Up @@ -1298,11 +1315,14 @@ Make the Glue API call with a currency and price mode different from those in th
```php
<?php

namespace Pyz\Client\Price;
namespace Pyz\Zed\Cart;

use Spryker\Zed\Cart\CartDependencyProvider as SprykerCartDependencyProvider;
use Spryker\Zed\PriceCartConnector\Communication\Plugin\Cart\PriceItemExpanderPlugin;
use Spryker\Zed\PriceProductSalesOrderAmendment\Communication\Plugin\Cart\OriginalSalesOrderItemPriceItemExpanderPlugin;
use Spryker\Zed\PriceProductSalesOrderAmendment\Communication\Plugin\Cart\ResetOriginalSalesOrderItemUnitPricesPreReloadItemsPlugin;
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Cart\OrderAmendmentCartPreCheckPlugin;
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Cart\ResetAmendmentOrderReferencePreReloadItemsPlugin;

class CartDependencyProvider extends SprykerCartDependencyProvider
{
Expand All @@ -1326,15 +1346,27 @@ class CartDependencyProvider extends SprykerCartDependencyProvider
{
return [
// Plugins from getCartPreCheckPlugins() without CartItemPricePreCheckPlugin
new OrderAmendmentCartPreCheckPlugin(),
];
}

/**
* @param \Spryker\Zed\Kernel\Container $container
*
* @return list<\Spryker\Zed\CartExtension\Dependency\Plugin\PreReloadItemsPluginInterface>
*/
protected function getPreReloadPlugins(Container $container): array
{
new ResetAmendmentOrderReferencePreReloadItemsPlugin(),
new ResetOriginalSalesOrderItemUnitPricesPreReloadItemsPlugin(),
}

/**
* @param \Spryker\Zed\Kernel\Container $container
*
* @return list<\Spryker\Zed\CartExtension\Dependency\Plugin\PreReloadItemsPluginInterface>
*/
protected function getPreReloadPluginsForOrderAmendment(Container $container): array // phpcs:ignore SlevomatCodingStandard.Functions.UnusedParameter
protected function getPreReloadPluginsForOrderAmendment(Container $container): array
{
return [
// Plugins from getPreReloadPlugin() without FilterItemsWithoutPricePlugin
Expand All @@ -1345,6 +1377,30 @@ class CartDependencyProvider extends SprykerCartDependencyProvider

</details>

**src/Pyz/Zed/PersistentCart/PersistentCartDependencyProvider.php**

```php
<?php

namespace Pyz\Zed\PersistentCart;

use Spryker\Zed\PersistentCart\PersistentCartDependencyProvider as SprykerPersistentCartDependencyProvider;
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\PersistentCart\ResetAmendmentQuoteProcessFlowQuotePostMergePlugin;

class PersistentCartDependencyProvider extends SprykerPersistentCartDependencyProvider
{
/**
* @return list<\Spryker\Zed\PersistentCartExtension\Dependency\Plugin\QuotePostMergePluginInterface>
*/
protected function getQuotePostMergePlugins(): array
{
return [
new ResetAmendmentQuoteProcessFlowQuotePostMergePlugin(),
];
}
}
```

**src/Pyz/Client/PriceProduct/PriceProductDependencyProvider.php**

```php
Expand Down
Loading