Interface CartSetLineItemTaxRateAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Can be used if the Cart has the External
TaxMode.
Example to create an instance using the builder pattern
CartSetLineItemTaxRateAction cartSetLineItemTaxRateAction = CartSetLineItemTaxRateAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetLineItemTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetLineItemTaxRateActionbuilder
(CartSetLineItemTaxRateAction template) create builder for CartSetLineItemTaxRateAction instancestatic CartSetLineItemTaxRateAction
deepCopy
(CartSetLineItemTaxRateAction template) factory method to create a deep copy of CartSetLineItemTaxRateAction@Valid ExternalTaxRateDraft
Value to set.id
of the LineItem to update.key
of the LineItem to update.key
of the ShippingMethod used for this Line Item.static CartSetLineItemTaxRateAction
of()
factory methodstatic CartSetLineItemTaxRateAction
of
(CartSetLineItemTaxRateAction template) factory method to create a shallow copy CartSetLineItemTaxRateActionvoid
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Value to set.void
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
setShippingKey
(String shippingKey) key
of the ShippingMethod used for this Line Item.static com.fasterxml.jackson.core.type.TypeReference<CartSetLineItemTaxRateAction>
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_LINE_ITEM_TAX_RATE
discriminator value for CartSetLineItemTaxRateAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getExternalTaxRate
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxRate
-
getShippingKey
String getShippingKey()key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
setLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set
-
setLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set
-
setExternalTaxRate
Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxRate
- value to be set
-
setShippingKey
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set
-
of
factory method- Returns:
- instance of CartSetLineItemTaxRateAction
-
of
factory method to create a shallow copy CartSetLineItemTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetLineItemTaxRateAction deepCopy(@Nullable CartSetLineItemTaxRateAction template) factory method to create a deep copy of CartSetLineItemTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetLineItemTaxRateAction- Returns:
- builder
-
builder
create builder for CartSetLineItemTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetLineItemTaxRateAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-