Class StagedOrderSetLineItemTaxRateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetLineItemTaxRateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetLineItemTaxRateAction>
public class StagedOrderSetLineItemTaxRateActionBuilder
extends Object
implements Builder<StagedOrderSetLineItemTaxRateAction>
StagedOrderSetLineItemTaxRateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetLineItemTaxRateAction stagedOrderSetLineItemTaxRateAction = StagedOrderSetLineItemTaxRateAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetLineItemTaxRateAction with checking for non-null required valuesbuilds StagedOrderSetLineItemTaxRateAction without checking for non-null required valuesexternalTaxRate
(ExternalTaxRateDraft externalTaxRate) 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 StagedOrderSetLineItemTaxRateActionBuilderof
(StagedOrderSetLineItemTaxRateAction template) create builder for StagedOrderSetLineItemTaxRateAction instanceshippingKey
(String shippingKey) key
of the ShippingMethod used for this Line Item.Value to set.
-
Constructor Details
-
StagedOrderSetLineItemTaxRateActionBuilder
public StagedOrderSetLineItemTaxRateActionBuilder()
-
-
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
-
externalTaxRate
public StagedOrderSetLineItemTaxRateActionBuilder externalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraftBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
withExternalTaxRate
public StagedOrderSetLineItemTaxRateActionBuilder withExternalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraft> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetLineItemTaxRateActionBuilder externalTaxRate(@Nullable ExternalTaxRateDraft externalTaxRate) Value to set. If empty, any existing value will be removed.
- Parameters:
externalTaxRate
- 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
-
getExternalTaxRate
Value to set. If empty, any existing value will be removed.
- Returns:
- externalTaxRate
-
getShippingKey
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
build
builds StagedOrderSetLineItemTaxRateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetLineItemTaxRateAction>
- Returns:
- StagedOrderSetLineItemTaxRateAction
-
buildUnchecked
builds StagedOrderSetLineItemTaxRateAction without checking for non-null required values- Returns:
- StagedOrderSetLineItemTaxRateAction
-
of
factory method for an instance of StagedOrderSetLineItemTaxRateActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetLineItemTaxRateActionBuilder of(StagedOrderSetLineItemTaxRateAction template) create builder for StagedOrderSetLineItemTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-