Class StagedOrderAddDiscountCodeActionImpl

java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderAddDiscountCodeActionImpl
All Implemented Interfaces:
StagedOrderAddDiscountCodeAction, StagedOrderUpdateAction, ResourceUpdateAction<StagedOrderUpdateAction>, io.vrap.rmf.base.client.ModelBase

public class StagedOrderAddDiscountCodeActionImpl extends Object implements StagedOrderAddDiscountCodeAction, io.vrap.rmf.base.client.ModelBase

Adds a DiscountCode to the Cart to activate the related Cart Discounts. Adding a Discount Code is only possible if no DirectDiscount has been applied to the Order.

The maximum number of Discount Codes in a Cart is restricted by a limit.

Specific Error Code: MatchingPriceNotFound