Interface ShippingMethodRemoveShippingRateAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
,ShippingMethodUpdateAction
ShippingMethodRemoveShippingRateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodRemoveShippingRateAction shippingMethodRemoveShippingRateAction = ShippingMethodRemoveShippingRateAction.builder()
.zone(zoneBuilder -> zoneBuilder)
.shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShippingMethodRemoveShippingRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShippingMethodRemoveShippingRateActioncreate builder for ShippingMethodRemoveShippingRateAction instancefactory method to create a deep copy of ShippingMethodRemoveShippingRateAction@NotNull @Valid ShippingRateDraft
Value to remove fromshippingRates
.@NotNull @Valid ZoneResourceIdentifier
getZone()
Zone from which the ShippingRate should be removed.of()
factory methodof
(ShippingMethodRemoveShippingRateAction template) factory method to create a shallow copy ShippingMethodRemoveShippingRateActionvoid
setShippingRate
(ShippingRateDraft shippingRate) Value to remove fromshippingRates
.void
Zone from which the ShippingRate should be removed.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodRemoveShippingRateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withShippingMethodRemoveShippingRateAction
(Function<ShippingMethodRemoveShippingRateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
REMOVE_SHIPPING_RATE
discriminator value for ShippingMethodRemoveShippingRateAction- See Also:
-
-
Method Details
-
getZone
Zone from which the ShippingRate should be removed.
- Returns:
- zone
-
getShippingRate
Value to remove from
shippingRates
.- Returns:
- shippingRate
-
setZone
Zone from which the ShippingRate should be removed.
- Parameters:
zone
- value to be set
-
setShippingRate
Value to remove from
shippingRates
.- Parameters:
shippingRate
- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodRemoveShippingRateAction
-
of
factory method to create a shallow copy ShippingMethodRemoveShippingRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShippingMethodRemoveShippingRateAction deepCopy(@Nullable ShippingMethodRemoveShippingRateAction template) factory method to create a deep copy of ShippingMethodRemoveShippingRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodRemoveShippingRateAction- Returns:
- builder
-
builder
static ShippingMethodRemoveShippingRateActionBuilder builder(ShippingMethodRemoveShippingRateAction template) create builder for ShippingMethodRemoveShippingRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodRemoveShippingRateAction
default <T> T withShippingMethodRemoveShippingRateAction(Function<ShippingMethodRemoveShippingRateAction, 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<ShippingMethodRemoveShippingRateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-