Interface StandalonePriceChangeValueChange
- All Superinterfaces:
Change
Change triggered by the Change Value update action.
Example to create an instance using the builder pattern
StandalonePriceChangeValueChange standalonePriceChangeValueChange = StandalonePriceChangeValueChange.builder()
.change("{change}")
.staged(true)
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StandalonePriceChangeValueChange -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StandalonePriceChangeValueChangebuilder(StandalonePriceChangeValueChange template) create builder for StandalonePriceChangeValueChange instancecopyDeep()deepCopy(StandalonePriceChangeValueChange template) factory method to create a deep copy of StandalonePriceChangeValueChange@NotNull StringType of change on a resource that is similar to the update action it relates to, where possible.@NotNull @Valid MoneyValue after the change.@NotNull @Valid MoneyValue before the change.@NotNull BooleanIndicates if the change was applied to the staged or current price.@NotNull StringgetType()Unique discriminator value to reliably deserialize the data type.of()factory methodof(StandalonePriceChangeValueChange template) factory method to create a shallow copy StandalonePriceChangeValueChangevoidset changevoidsetNextValue(Money nextValue) Value after the change.voidsetPreviousValue(Money previousValue) Value before the change.voidIndicates if the change was applied to the staged or current price.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceChangeValueChange>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.history.models.change.Change
withChange
-
Field Details
-
STANDALONE_PRICE_CHANGE_VALUE_CHANGE
discriminator value for StandalonePriceChangeValueChange- See Also:
-
-
Method Details
-
getChange
Description copied from interface:ChangeType of change on a resource that is similar to the update action it relates to, where possible. It is not a unique identifier for the data structure, for example, the
setDescriptionchange can occur with a localized and non-localized representation.Records can be filtered by this value using the
changesquery parameter. -
getType
Description copied from interface:ChangeUnique discriminator value to reliably deserialize the data type.
-
getStaged
Indicates if the change was applied to the staged or current price.
- Returns:
- staged
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
setChange
set change -
setStaged
Indicates if the change was applied to the staged or current price.
- Parameters:
staged- value to be set
-
setPreviousValue
Value before the change.
- Parameters:
previousValue- value to be set
-
setNextValue
Value after the change.
- Parameters:
nextValue- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceChangeValueChange
-
of
factory method to create a shallow copy StandalonePriceChangeValueChange- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StandalonePriceChangeValueChange copyDeep() -
deepCopy
@Nullable static StandalonePriceChangeValueChange deepCopy(@Nullable StandalonePriceChangeValueChange template) factory method to create a deep copy of StandalonePriceChangeValueChange- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceChangeValueChange- Returns:
- builder
-
builder
create builder for StandalonePriceChangeValueChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceChangeValueChange
default <T> T withStandalonePriceChangeValueChange(Function<StandalonePriceChangeValueChange, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceChangeValueChange> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-