Class StandalonePriceSetDiscountedPriceActionImpl
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceSetDiscountedPriceActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceSetDiscountedPriceAction
,StandalonePriceUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class StandalonePriceSetDiscountedPriceActionImpl
extends Object
implements StandalonePriceSetDiscountedPriceAction, io.vrap.rmf.base.client.ModelBase
Discounts a Standalone Price. The referenced ProductDiscount in the discounted field must be of type external, active, and its predicate must match the referenced Price. Produces the StandalonePriceExternalDiscountSet Message.
-
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.standalone_price.StandalonePriceSetDiscountedPriceAction
SET_DISCOUNTED_PRICE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.int
hashCode()
void
setDiscounted
(DiscountedPriceDraft discounted) Value to set.toString()
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.standalone_price.StandalonePriceSetDiscountedPriceAction
withStandalonePriceSetDiscountedPriceAction
Methods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
withStandalonePriceUpdateAction
-
Constructor Details
-
StandalonePriceSetDiscountedPriceActionImpl
public StandalonePriceSetDiscountedPriceActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StandalonePriceUpdateAction>
- Specified by:
getAction
in interfaceStandalonePriceUpdateAction
- Returns:
- action
-
getDiscounted
Value to set. If empty, any existing value will be removed.
- Specified by:
getDiscounted
in interfaceStandalonePriceSetDiscountedPriceAction
- Returns:
- discounted
-
setDiscounted
Description copied from interface:StandalonePriceSetDiscountedPriceAction
Value to set. If empty, any existing value will be removed.
- Specified by:
setDiscounted
in interfaceStandalonePriceSetDiscountedPriceAction
- Parameters:
discounted
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-