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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.order_edit.StagedOrderAddDiscountCodeAction
ADD_DISCOUNT_CODE
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrderAddDiscountCodeAction
withStagedOrderAddDiscountCodeAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderAddDiscountCodeActionImpl
public StagedOrderAddDiscountCodeActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getCode
code
of a DiscountCode.- Specified by:
getCode
in interfaceStagedOrderAddDiscountCodeAction
- Returns:
- code
-
setCode
Description copied from interface:StagedOrderAddDiscountCodeAction
code
of a DiscountCode.- Specified by:
setCode
in interfaceStagedOrderAddDiscountCodeAction
- Parameters:
code
- value to be set
-
equals
-
hashCode
public int hashCode()
-