Class StandalonePriceSetValidFromActionImpl
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceSetValidFromActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceSetValidFromAction
,StandalonePriceUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class StandalonePriceSetValidFromActionImpl
extends Object
implements StandalonePriceSetValidFromAction, io.vrap.rmf.base.client.ModelBase
Updating the validFrom
value generates the StandalonePriceValidFromSet 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.StandalonePriceSetValidFromAction
SET_VALID_FROM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.int
hashCode()
void
setValidFrom
(ZonedDateTime validFrom) 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.StandalonePriceSetValidFromAction
withStandalonePriceSetValidFromAction
Methods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
withStandalonePriceUpdateAction
-
Constructor Details
-
StandalonePriceSetValidFromActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StandalonePriceUpdateAction>
- Specified by:
getAction
in interfaceStandalonePriceUpdateAction
- Returns:
- action
-
getValidFrom
Value to set. If empty, any existing value is removed.
- Specified by:
getValidFrom
in interfaceStandalonePriceSetValidFromAction
- Returns:
- validFrom
-
setValidFrom
Description copied from interface:StandalonePriceSetValidFromAction
Value to set. If empty, any existing value is removed.
- Specified by:
setValidFrom
in interfaceStandalonePriceSetValidFromAction
- Parameters:
validFrom
- value to be set
-
equals
-
hashCode
-