Interface StagedOrderSetCustomLineItemTaxRateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetCustomLineItemTaxRateActionImpl
StagedOrderSetCustomLineItemTaxRateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxRateAction stagedOrderSetCustomLineItemTaxRateAction = StagedOrderSetCustomLineItemTaxRateAction.builder()
.customLineItemId("{customLineItemId}")
.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 StagedOrderSetCustomLineItemTaxRateAction@NotNull String
@Valid ExternalTaxRateDraft
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.of()
factory methodof
(StagedOrderSetCustomLineItemTaxRateAction template) factory method to create a shallow copy StagedOrderSetCustomLineItemTaxRateActionvoid
setCustomLineItemId
(String customLineItemId) set customLineItemIdvoid
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.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
- Returns:
- customLineItemId
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
setCustomLineItemId
set customLineItemId- Parameters:
customLineItemId
- value to be set
-
setExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
externalTaxRate
- 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
-