Interface ShippingMethodAddShippingRateAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
,ShippingMethodUpdateAction
ShippingMethodAddShippingRateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodAddShippingRateAction shippingMethodAddShippingRateAction = ShippingMethodAddShippingRateAction.builder()
.zone(zoneBuilder -> zoneBuilder)
.shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShippingMethodAddShippingRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShippingMethodAddShippingRateActionbuilder
(ShippingMethodAddShippingRateAction template) create builder for ShippingMethodAddShippingRateAction instancedeepCopy
(ShippingMethodAddShippingRateAction template) factory method to create a deep copy of ShippingMethodAddShippingRateAction@NotNull @Valid ShippingRateDraft
Value to add toshippingRates
.@NotNull @Valid ZoneResourceIdentifier
getZone()
Zone to which the ShippingRate should be added.of()
factory methodof
(ShippingMethodAddShippingRateAction template) factory method to create a shallow copy ShippingMethodAddShippingRateActionvoid
setShippingRate
(ShippingRateDraft shippingRate) Value to add toshippingRates
.void
Zone to which the ShippingRate should be added.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodAddShippingRateAction>
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.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
ADD_SHIPPING_RATE
discriminator value for ShippingMethodAddShippingRateAction- See Also:
-
-
Method Details
-
getZone
Zone to which the ShippingRate should be added.
- Returns:
- zone
-
getShippingRate
Value to add to
shippingRates
.- Returns:
- shippingRate
-
setZone
Zone to which the ShippingRate should be added.
- Parameters:
zone
- value to be set
-
setShippingRate
Value to add to
shippingRates
.- Parameters:
shippingRate
- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodAddShippingRateAction
-
of
factory method to create a shallow copy ShippingMethodAddShippingRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShippingMethodAddShippingRateAction deepCopy(@Nullable ShippingMethodAddShippingRateAction template) factory method to create a deep copy of ShippingMethodAddShippingRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodAddShippingRateAction- Returns:
- builder
-
builder
static ShippingMethodAddShippingRateActionBuilder builder(ShippingMethodAddShippingRateAction template) create builder for ShippingMethodAddShippingRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodAddShippingRateAction
default <T> T withShippingMethodAddShippingRateAction(Function<ShippingMethodAddShippingRateAction, 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<ShippingMethodAddShippingRateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-