Interface CartSetCustomLineItemTaxRateAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
- All Known Implementing Classes:
CartSetCustomLineItemTaxRateActionImpl
Can be used if the Cart has the External
TaxMode.
Example to create an instance using the builder pattern
CartSetCustomLineItemTaxRateAction cartSetCustomLineItemTaxRateAction = CartSetCustomLineItemTaxRateAction.builder()
.customLineItemId("{customLineItemId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetCustomLineItemTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetCustomLineItemTaxRateActionbuilder
(CartSetCustomLineItemTaxRateAction template) create builder for CartSetCustomLineItemTaxRateAction instancedeepCopy
(CartSetCustomLineItemTaxRateAction template) factory method to create a deep copy of CartSetCustomLineItemTaxRateAction@NotNull String
id
of the CustomLineItem to update.@Valid ExternalTaxRateDraft
Value to set.of()
factory methodof
(CartSetCustomLineItemTaxRateAction template) factory method to create a shallow copy CartSetCustomLineItemTaxRateActionvoid
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetCustomLineItemTaxRateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOM_LINE_ITEM_TAX_RATE
discriminator value for CartSetCustomLineItemTaxRateAction- See Also:
-
-
Method Details
-
getCustomLineItemId
id
of the CustomLineItem to update.- Returns:
- customLineItemId
-
getExternalTaxRate
Value to set. If empty, an existing value is removed.
- Returns:
- externalTaxRate
-
setCustomLineItemId
id
of the CustomLineItem to update.- Parameters:
customLineItemId
- value to be set
-
setExternalTaxRate
Value to set. If empty, an existing value is removed.
- Parameters:
externalTaxRate
- value to be set
-
of
factory method- Returns:
- instance of CartSetCustomLineItemTaxRateAction
-
of
factory method to create a shallow copy CartSetCustomLineItemTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetCustomLineItemTaxRateAction deepCopy(@Nullable CartSetCustomLineItemTaxRateAction template) factory method to create a deep copy of CartSetCustomLineItemTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetCustomLineItemTaxRateAction- Returns:
- builder
-
builder
static CartSetCustomLineItemTaxRateActionBuilder builder(CartSetCustomLineItemTaxRateAction template) create builder for CartSetCustomLineItemTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetCustomLineItemTaxRateAction
default <T> T withCartSetCustomLineItemTaxRateAction(Function<CartSetCustomLineItemTaxRateAction, 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<CartSetCustomLineItemTaxRateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-