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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StandalonePriceRemovePriceTierAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StandalonePriceRemovePriceTierActionbuilder(StandalonePriceRemovePriceTierAction template) create builder for StandalonePriceRemovePriceTierAction instancecopyDeep()deepCopy(StandalonePriceRemovePriceTierAction template) factory method to create a deep copy of StandalonePriceRemovePriceTierAction@NotNull Longof()factory methodof(StandalonePriceRemovePriceTierAction template) factory method to create a shallow copy StandalonePriceRemovePriceTierActionvoidsetTierMinimumQuantity(Long tierMinimumQuantity) static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceRemovePriceTierAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
minimumQuantityof the PriceTier to be removed from thetiersfield of the StandalonePrice.- Returns:
- tierMinimumQuantity
-
setTierMinimumQuantity
The
minimumQuantityof the PriceTier to be removed from thetiersfield 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
-
copyDeep
StandalonePriceRemovePriceTierAction copyDeep()- Specified by:
copyDeepin interfaceStandalonePriceUpdateAction
-
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
-