Interface StagedOrderSetCustomLineItemTaxRateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
Can be used if the Cart has the External
TaxMode.
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxRateAction stagedOrderSetCustomLineItemTaxRateAction = StagedOrderSetCustomLineItemTaxRateAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetCustomLineItemTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetCustomLineItemTaxRateActioncreate builder for StagedOrderSetCustomLineItemTaxRateAction instancefactory method to create a deep copy of StagedOrderSetCustomLineItemTaxRateActionid
of the CustomLineItem to update.key
of the CustomLineItem to update.@Valid ExternalTaxRateDraft
Value to set.key
of the ShippingMethod used for this Custom Line Item.of()
factory methodof
(StagedOrderSetCustomLineItemTaxRateAction template) factory method to create a shallow copy StagedOrderSetCustomLineItemTaxRateActionvoid
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setCustomLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.void
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Value to set.void
setShippingKey
(String shippingKey) key
of the ShippingMethod used for this Custom Line Item.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomLineItemTaxRateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetCustomLineItemTaxRateAction
(Function<StagedOrderSetCustomLineItemTaxRateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_CUSTOM_LINE_ITEM_TAX_RATE
discriminator value for StagedOrderSetCustomLineItemTaxRateAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getExternalTaxRate
Value to set. If empty, an existing value is removed.
- Returns:
- externalTaxRate
-
getShippingKey
String getShippingKey()key
of the ShippingMethod used for this Custom Line Item. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
setCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set
-
setExternalTaxRate
Value to set. If empty, an existing value is removed.
- Parameters:
externalTaxRate
- value to be set
-
setShippingKey
key
of the ShippingMethod used for this Custom Line Item. This is required for Carts withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetCustomLineItemTaxRateAction
-
of
static StagedOrderSetCustomLineItemTaxRateAction of(StagedOrderSetCustomLineItemTaxRateAction template) factory method to create a shallow copy StagedOrderSetCustomLineItemTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetCustomLineItemTaxRateAction deepCopy(@Nullable StagedOrderSetCustomLineItemTaxRateAction template) factory method to create a deep copy of StagedOrderSetCustomLineItemTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetCustomLineItemTaxRateAction- Returns:
- builder
-
builder
static StagedOrderSetCustomLineItemTaxRateActionBuilder builder(StagedOrderSetCustomLineItemTaxRateAction template) create builder for StagedOrderSetCustomLineItemTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetCustomLineItemTaxRateAction
default <T> T withStagedOrderSetCustomLineItemTaxRateAction(Function<StagedOrderSetCustomLineItemTaxRateAction, 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<StagedOrderSetCustomLineItemTaxRateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-