Class StagedOrderSetLineItemTaxAmountActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetLineItemTaxAmountActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetLineItemTaxAmountAction>
public class StagedOrderSetLineItemTaxAmountActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderSetLineItemTaxAmountAction>
StagedOrderSetLineItemTaxAmountActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetLineItemTaxAmountAction stagedOrderSetLineItemTaxAmountAction = StagedOrderSetLineItemTaxAmountAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetLineItemTaxAmountAction with checking for non-null required valuesbuilds StagedOrderSetLineItemTaxAmountAction without checking for non-null required valuesexternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.Value to set.Value to set.id
of the LineItem to update.key
of the LineItem to update.key
of the ShippingMethod used for this Line Item.lineItemId
(String lineItemId) id
of the LineItem to update.lineItemKey
(String lineItemKey) key
of the LineItem to update.of()
factory method for an instance of StagedOrderSetLineItemTaxAmountActionBuilderof
(StagedOrderSetLineItemTaxAmountAction template) create builder for StagedOrderSetLineItemTaxAmountAction instanceshippingKey
(String shippingKey) key
of the ShippingMethod used for this Line Item.Value to set.
-
Constructor Details
-
StagedOrderSetLineItemTaxAmountActionBuilder
public StagedOrderSetLineItemTaxAmountActionBuilder()
-
-
Method Details
-
lineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
externalTaxAmount
public StagedOrderSetLineItemTaxAmountActionBuilder externalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraftBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
withExternalTaxAmount
public StagedOrderSetLineItemTaxAmountActionBuilder withExternalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraft> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
externalTaxAmount
public StagedOrderSetLineItemTaxAmountActionBuilder externalTaxAmount(@Nullable ExternalTaxAmountDraft externalTaxAmount) Value to set. If empty, any existing value will be removed.
- Parameters:
externalTaxAmount
- value to be set- Returns:
- Builder
-
shippingKey
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getExternalTaxAmount
Value to set. If empty, any existing value will be removed.
- Returns:
- externalTaxAmount
-
getShippingKey
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
build
builds StagedOrderSetLineItemTaxAmountAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetLineItemTaxAmountAction>
- Returns:
- StagedOrderSetLineItemTaxAmountAction
-
buildUnchecked
builds StagedOrderSetLineItemTaxAmountAction without checking for non-null required values- Returns:
- StagedOrderSetLineItemTaxAmountAction
-
of
factory method for an instance of StagedOrderSetLineItemTaxAmountActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetLineItemTaxAmountActionBuilder of(StagedOrderSetLineItemTaxAmountAction template) create builder for StagedOrderSetLineItemTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-