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
Constructors -
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.idof the LineItem to update.keyof the LineItem to update.keyof the ShippingMethod used for this Line Item.lineItemId(String lineItemId) idof the LineItem to update.lineItemKey(String lineItemKey) keyof the LineItem to update.of()factory method for an instance of StagedOrderSetLineItemTaxRateActionBuilderof(StagedOrderSetLineItemTaxRateAction template) create builder for StagedOrderSetLineItemTaxRateAction instanceshippingKey(String shippingKey) keyof the ShippingMethod used for this Line Item.Value to set.
-
Constructor Details
-
StagedOrderSetLineItemTaxRateActionBuilder
public StagedOrderSetLineItemTaxRateActionBuilder()
-
-
Method Details
-
lineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set- Returns:
- Builder
-
lineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis 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
keyof the ShippingMethod used for this Line Item. This is required for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set- Returns:
- Builder
-
getLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getExternalTaxRate
Value to set. If empty, any existing value will be removed.
- Returns:
- externalTaxRate
-
getShippingKey
keyof the ShippingMethod used for this Line Item. This is required for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
build
builds StagedOrderSetLineItemTaxRateAction with checking for non-null required values- Specified by:
buildin 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
-