Interface StagedOrderSetCustomLineItemTaxAmountAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetCustomLineItemTaxAmountActionImpl
StagedOrderSetCustomLineItemTaxAmountAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxAmountAction stagedOrderSetCustomLineItemTaxAmountAction = StagedOrderSetCustomLineItemTaxAmountAction.builder()
.customLineItemId("{customLineItemId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetCustomLineItemTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetCustomLineItemTaxAmountActioncreate builder for StagedOrderSetCustomLineItemTaxAmountAction instancefactory method to create a deep copy of StagedOrderSetCustomLineItemTaxAmountAction@NotNull String
@Valid ExternalTaxAmountDraft
Cannot be used in LineItemDraft or CustomLineItemDraft.of()
factory methodfactory method to create a shallow copy StagedOrderSetCustomLineItemTaxAmountActionvoid
setCustomLineItemId
(String customLineItemId) set customLineItemIdvoid
setExternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Cannot be used in LineItemDraft or CustomLineItemDraft.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomLineItemTaxAmountAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetCustomLineItemTaxAmountAction
(Function<StagedOrderSetCustomLineItemTaxAmountAction, 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_AMOUNT
discriminator value for StagedOrderSetCustomLineItemTaxAmountAction- See Also:
-
-
Method Details
-
getCustomLineItemId
- Returns:
- customLineItemId
-
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
-
setCustomLineItemId
set customLineItemId- Parameters:
customLineItemId
- 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
-
of
factory method- Returns:
- instance of StagedOrderSetCustomLineItemTaxAmountAction
-
of
static StagedOrderSetCustomLineItemTaxAmountAction of(StagedOrderSetCustomLineItemTaxAmountAction template) factory method to create a shallow copy StagedOrderSetCustomLineItemTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetCustomLineItemTaxAmountAction deepCopy(@Nullable StagedOrderSetCustomLineItemTaxAmountAction template) factory method to create a deep copy of StagedOrderSetCustomLineItemTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetCustomLineItemTaxAmountAction- Returns:
- builder
-
builder
static StagedOrderSetCustomLineItemTaxAmountActionBuilder builder(StagedOrderSetCustomLineItemTaxAmountAction template) create builder for StagedOrderSetCustomLineItemTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetCustomLineItemTaxAmountAction
default <T> T withStagedOrderSetCustomLineItemTaxAmountAction(Function<StagedOrderSetCustomLineItemTaxAmountAction, 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<StagedOrderSetCustomLineItemTaxAmountAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-