Interface StagedOrderSetLineItemTaxAmountAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetLineItemTaxAmountActionImpl
StagedOrderSetLineItemTaxAmountAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetLineItemTaxAmountAction stagedOrderSetLineItemTaxAmountAction = StagedOrderSetLineItemTaxAmountAction.builder()
.lineItemId("{lineItemId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetLineItemTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetLineItemTaxAmountActionbuilder
(StagedOrderSetLineItemTaxAmountAction template) create builder for StagedOrderSetLineItemTaxAmountAction instancefactory method to create a deep copy of StagedOrderSetLineItemTaxAmountAction@Valid ExternalTaxAmountDraft
Cannot be used in LineItemDraft or CustomLineItemDraft.@NotNull String
key
of the ShippingMethod used for this Line Item.``` This is required for Carts withMultiple
ShippingMode.of()
factory methodof
(StagedOrderSetLineItemTaxAmountAction template) factory method to create a shallow copy StagedOrderSetLineItemTaxAmountActionvoid
setExternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Cannot be used in LineItemDraft or CustomLineItemDraft.void
setLineItemId
(String lineItemId) set lineItemIdvoid
setShippingKey
(String shippingKey) key
of the ShippingMethod used for this Line Item.``` This is required for Carts withMultiple
ShippingMode.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetLineItemTaxAmountAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_LINE_ITEM_TAX_AMOUNT
discriminator value for StagedOrderSetLineItemTaxAmountAction- See Also:
-
-
Method Details
-
getLineItemId
- Returns:
- lineItemId
-
getExternalTaxAmount
Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Returns:
- externalTaxAmount
-
getShippingKey
key
of the ShippingMethod used for this Line Item.``` This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
setLineItemId
set lineItemId- Parameters:
lineItemId
- value to be set
-
setExternalTaxAmount
Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Parameters:
externalTaxAmount
- 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 StagedOrderSetLineItemTaxAmountAction
-
of
factory method to create a shallow copy StagedOrderSetLineItemTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetLineItemTaxAmountAction deepCopy(@Nullable StagedOrderSetLineItemTaxAmountAction template) factory method to create a deep copy of StagedOrderSetLineItemTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetLineItemTaxAmountAction- Returns:
- builder
-
builder
static StagedOrderSetLineItemTaxAmountActionBuilder builder(StagedOrderSetLineItemTaxAmountAction template) create builder for StagedOrderSetLineItemTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetLineItemTaxAmountAction
default <T> T withStagedOrderSetLineItemTaxAmountAction(Function<StagedOrderSetLineItemTaxAmountAction, 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<StagedOrderSetLineItemTaxAmountAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-