Interface StagedOrderSetLineItemTaxRateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
Can be used if the Cart has the External TaxMode.
Example to create an instance using the builder pattern
StagedOrderSetLineItemTaxRateAction stagedOrderSetLineItemTaxRateAction = StagedOrderSetLineItemTaxRateAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderSetLineItemTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetLineItemTaxRateActionbuilder(StagedOrderSetLineItemTaxRateAction template) create builder for StagedOrderSetLineItemTaxRateAction instancecopyDeep()deepCopy(StagedOrderSetLineItemTaxRateAction template) factory method to create a deep copy of StagedOrderSetLineItemTaxRateAction@Valid ExternalTaxRateDraftValue to set.idof the LineItem to update.keyof the LineItem to update.keyof the ShippingMethod used for this Line Item.of()factory methodof(StagedOrderSetLineItemTaxRateAction template) factory method to create a shallow copy StagedOrderSetLineItemTaxRateActionvoidsetExternalTaxRate(ExternalTaxRateDraft externalTaxRate) Value to set.voidsetLineItemId(String lineItemId) idof the LineItem to update.voidsetLineItemKey(String lineItemKey) keyof the LineItem to update.voidsetShippingKey(String shippingKey) keyof the ShippingMethod used for this Line Item.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetLineItemTaxRateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_LINE_ITEM_TAX_RATE
discriminator value for StagedOrderSetLineItemTaxRateAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getExternalTaxRate
Value to set. If empty, any existing value will be removed.
- Returns:
- externalTaxRate
-
getShippingKey
String getShippingKey()keyof the ShippingMethod used for this Line Item. This is required for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
setLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set
-
setExternalTaxRate
Value to set. If empty, any existing value will be removed.
- Parameters:
externalTaxRate- value to be set
-
setShippingKey
keyof the ShippingMethod used for this Line Item. This is required for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetLineItemTaxRateAction
-
of
factory method to create a shallow copy StagedOrderSetLineItemTaxRateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderSetLineItemTaxRateAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderSetLineItemTaxRateAction deepCopy(@Nullable StagedOrderSetLineItemTaxRateAction template) factory method to create a deep copy of StagedOrderSetLineItemTaxRateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetLineItemTaxRateAction- Returns:
- builder
-
builder
static StagedOrderSetLineItemTaxRateActionBuilder builder(StagedOrderSetLineItemTaxRateAction template) create builder for StagedOrderSetLineItemTaxRateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetLineItemTaxRateAction
default <T> T withStagedOrderSetLineItemTaxRateAction(Function<StagedOrderSetLineItemTaxRateAction, 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<StagedOrderSetLineItemTaxRateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-