Class StandalonePriceSetValidUntilActionImpl
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceSetValidUntilActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceSetValidUntilAction
,StandalonePriceUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class StandalonePriceSetValidUntilActionImpl
extends Object
implements StandalonePriceSetValidUntilAction, io.vrap.rmf.base.client.ModelBase
Updating the validUntil
value generates the StandalonePriceValidUntilSet Message.
As the validity dates are part of the price scope and are not allowed to overlap, this update might return the DuplicateStandalonePriceScope and OverlappingStandalonePriceValidity errors, respectively. A Price without validity period does not conflict with a Price defined for a time period.
-
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.StandalonePriceSetValidUntilAction
SET_VALID_UNTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.int
hashCode()
void
setValidUntil
(ZonedDateTime validUntil) Value to set.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.standalone_price.StandalonePriceSetValidUntilAction
withStandalonePriceSetValidUntilAction
Methods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
withStandalonePriceUpdateAction
-
Constructor Details
-
StandalonePriceSetValidUntilActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StandalonePriceUpdateAction>
- Specified by:
getAction
in interfaceStandalonePriceUpdateAction
- Returns:
- action
-
getValidUntil
Value to set. If empty, any existing value is removed.
- Specified by:
getValidUntil
in interfaceStandalonePriceSetValidUntilAction
- Returns:
- validUntil
-
setValidUntil
Description copied from interface:StandalonePriceSetValidUntilAction
Value to set. If empty, any existing value is removed.
- Specified by:
setValidUntil
in interfaceStandalonePriceSetValidUntilAction
- Parameters:
validUntil
- value to be set
-
equals
-
hashCode
-