Interface StandalonePriceRemovePriceTierAction
- All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceUpdateAction
Removing a PriceTier from a StandalonePrice produces the Standalone Price Tier Removed Message.
Example to create an instance using the builder pattern
StandalonePriceRemovePriceTierAction standalonePriceRemovePriceTierAction = StandalonePriceRemovePriceTierAction.builder()
.tierMinimumQuantity(0.3)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceRemovePriceTierAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceRemovePriceTierActionbuilder
(StandalonePriceRemovePriceTierAction template) create builder for StandalonePriceRemovePriceTierAction instancedeepCopy
(StandalonePriceRemovePriceTierAction template) factory method to create a deep copy of StandalonePriceRemovePriceTierAction@NotNull Long
TheminimumQuantity
of the PriceTier to be removed from thetiers
field of the StandalonePrice.of()
factory methodof
(StandalonePriceRemovePriceTierAction template) factory method to create a shallow copy StandalonePriceRemovePriceTierActionvoid
setTierMinimumQuantity
(Long tierMinimumQuantity) TheminimumQuantity
of the PriceTier to be removed from thetiers
field of the StandalonePrice.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceRemovePriceTierAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
getAction, withStandalonePriceUpdateAction
-
Field Details
-
REMOVE_PRICE_TIER
discriminator value for StandalonePriceRemovePriceTierAction- See Also:
-
-
Method Details
-
getTierMinimumQuantity
The
minimumQuantity
of the PriceTier to be removed from thetiers
field of the StandalonePrice.- Returns:
- tierMinimumQuantity
-
setTierMinimumQuantity
The
minimumQuantity
of the PriceTier to be removed from thetiers
field of the StandalonePrice.- Parameters:
tierMinimumQuantity
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceRemovePriceTierAction
-
of
factory method to create a shallow copy StandalonePriceRemovePriceTierAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceRemovePriceTierAction deepCopy(@Nullable StandalonePriceRemovePriceTierAction template) factory method to create a deep copy of StandalonePriceRemovePriceTierAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceRemovePriceTierAction- Returns:
- builder
-
builder
static StandalonePriceRemovePriceTierActionBuilder builder(StandalonePriceRemovePriceTierAction template) create builder for StandalonePriceRemovePriceTierAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceRemovePriceTierAction
default <T> T withStandalonePriceRemovePriceTierAction(Function<StandalonePriceRemovePriceTierAction, 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<StandalonePriceRemovePriceTierAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-