Interface CartSetCustomLineItemTaxAmountAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
- All Known Implementing Classes:
CartSetCustomLineItemTaxAmountActionImpl
Can be used if the Cart has the ExternalAmount
TaxMode.
Example to create an instance using the builder pattern
CartSetCustomLineItemTaxAmountAction cartSetCustomLineItemTaxAmountAction = CartSetCustomLineItemTaxAmountAction.builder()
.customLineItemId("{customLineItemId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetCustomLineItemTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetCustomLineItemTaxAmountActionbuilder
(CartSetCustomLineItemTaxAmountAction template) create builder for CartSetCustomLineItemTaxAmountAction instancedeepCopy
(CartSetCustomLineItemTaxAmountAction template) factory method to create a deep copy of CartSetCustomLineItemTaxAmountAction@NotNull String
id
of the CustomLineItem to update.@Valid ExternalTaxAmountDraft
Value to set.of()
factory methodof
(CartSetCustomLineItemTaxAmountAction template) factory method to create a shallow copy CartSetCustomLineItemTaxAmountActionvoid
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setExternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetCustomLineItemTaxAmountAction>
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_AMOUNT
discriminator value for CartSetCustomLineItemTaxAmountAction- See Also:
-
-
Method Details
-
getCustomLineItemId
id
of the CustomLineItem to update.- Returns:
- customLineItemId
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
setCustomLineItemId
id
of the CustomLineItem to update.- Parameters:
customLineItemId
- value to be set
-
setExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxAmount
- value to be set
-
of
factory method- Returns:
- instance of CartSetCustomLineItemTaxAmountAction
-
of
factory method to create a shallow copy CartSetCustomLineItemTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetCustomLineItemTaxAmountAction deepCopy(@Nullable CartSetCustomLineItemTaxAmountAction template) factory method to create a deep copy of CartSetCustomLineItemTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetCustomLineItemTaxAmountAction- Returns:
- builder
-
builder
static CartSetCustomLineItemTaxAmountActionBuilder builder(CartSetCustomLineItemTaxAmountAction template) create builder for CartSetCustomLineItemTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetCustomLineItemTaxAmountAction
default <T> T withCartSetCustomLineItemTaxAmountAction(Function<CartSetCustomLineItemTaxAmountAction, 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<CartSetCustomLineItemTaxAmountAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-