Interface ShippingMethodRemoveZoneAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>,ShippingMethodUpdateAction
ShippingMethodRemoveZoneAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodRemoveZoneAction shippingMethodRemoveZoneAction = ShippingMethodRemoveZoneAction.builder()
.zone(zoneBuilder -> zoneBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodRemoveZoneAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodRemoveZoneActionbuilder(ShippingMethodRemoveZoneAction template) create builder for ShippingMethodRemoveZoneAction instancecopyDeep()deepCopy(ShippingMethodRemoveZoneAction template) factory method to create a deep copy of ShippingMethodRemoveZoneAction@NotNull @Valid ZoneResourceIdentifiergetZone()Value to remove fromzoneRates.of()factory methodof(ShippingMethodRemoveZoneAction template) factory method to create a shallow copy ShippingMethodRemoveZoneActionvoidValue to remove fromzoneRates.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodRemoveZoneAction>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.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
REMOVE_ZONE
discriminator value for ShippingMethodRemoveZoneAction- See Also:
-
-
Method Details
-
getZone
Value to remove from
zoneRates.Removes the entire ZoneRate entry for the specified Zone from the
zoneRatesarray. This action deletes both the Zone reference and all ShippingRates associated with that Zone.- Returns:
- zone
-
setZone
Value to remove from
zoneRates.Removes the entire ZoneRate entry for the specified Zone from the
zoneRatesarray. This action deletes both the Zone reference and all ShippingRates associated with that Zone.- Parameters:
zone- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodRemoveZoneAction
-
of
factory method to create a shallow copy ShippingMethodRemoveZoneAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodRemoveZoneAction copyDeep()- Specified by:
copyDeepin interfaceShippingMethodUpdateAction
-
deepCopy
@Nullable static ShippingMethodRemoveZoneAction deepCopy(@Nullable ShippingMethodRemoveZoneAction template) factory method to create a deep copy of ShippingMethodRemoveZoneAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodRemoveZoneAction- Returns:
- builder
-
builder
create builder for ShippingMethodRemoveZoneAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodRemoveZoneAction
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<ShippingMethodRemoveZoneAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-