Interface ShippingMethodChangeTaxCategoryAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
,ShippingMethodUpdateAction
ShippingMethodChangeTaxCategoryAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodChangeTaxCategoryAction shippingMethodChangeTaxCategoryAction = ShippingMethodChangeTaxCategoryAction.builder()
.taxCategory(taxCategoryBuilder -> taxCategoryBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShippingMethodChangeTaxCategoryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShippingMethodChangeTaxCategoryActionbuilder
(ShippingMethodChangeTaxCategoryAction template) create builder for ShippingMethodChangeTaxCategoryAction instancefactory method to create a deep copy of ShippingMethodChangeTaxCategoryAction@NotNull @Valid TaxCategoryResourceIdentifier
Value to set.of()
factory methodof
(ShippingMethodChangeTaxCategoryAction template) factory method to create a shallow copy ShippingMethodChangeTaxCategoryActionvoid
setTaxCategory
(TaxCategoryResourceIdentifier taxCategory) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodChangeTaxCategoryAction>
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
-
CHANGE_TAX_CATEGORY
discriminator value for ShippingMethodChangeTaxCategoryAction- See Also:
-
-
Method Details
-
getTaxCategory
Value to set.
- Returns:
- taxCategory
-
setTaxCategory
Value to set.
- Parameters:
taxCategory
- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodChangeTaxCategoryAction
-
of
factory method to create a shallow copy ShippingMethodChangeTaxCategoryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShippingMethodChangeTaxCategoryAction deepCopy(@Nullable ShippingMethodChangeTaxCategoryAction template) factory method to create a deep copy of ShippingMethodChangeTaxCategoryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodChangeTaxCategoryAction- Returns:
- builder
-
builder
static ShippingMethodChangeTaxCategoryActionBuilder builder(ShippingMethodChangeTaxCategoryAction template) create builder for ShippingMethodChangeTaxCategoryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodChangeTaxCategoryAction
default <T> T withShippingMethodChangeTaxCategoryAction(Function<ShippingMethodChangeTaxCategoryAction, 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<ShippingMethodChangeTaxCategoryAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-