Class StagedOrderSetCustomLineItemTaxAmountActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetCustomLineItemTaxAmountAction>
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxAmountAction stagedOrderSetCustomLineItemTaxAmountAction = StagedOrderSetCustomLineItemTaxAmountAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderSetCustomLineItemTaxAmountAction with checking for non-null required valuesbuilds StagedOrderSetCustomLineItemTaxAmountAction without checking for non-null required valuescustomLineItemId(String customLineItemId) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.externalTaxAmount(ExternalTaxAmountDraft externalTaxAmount) Value to set.Value to set.idof the CustomLineItem to update.keyof the CustomLineItem to update.Value to set.keyof the ShippingMethod used for this Custom Line Item.of()factory method for an instance of StagedOrderSetCustomLineItemTaxAmountActionBuildercreate builder for StagedOrderSetCustomLineItemTaxAmountAction instanceshippingKey(String shippingKey) keyof the ShippingMethod used for this Custom Line Item.Value to set.
-
Constructor Details
-
StagedOrderSetCustomLineItemTaxAmountActionBuilder
public StagedOrderSetCustomLineItemTaxAmountActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderSetCustomLineItemTaxAmountActionBuilder customLineItemId(@Nullable String customLineItemId) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderSetCustomLineItemTaxAmountActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set- Returns:
- Builder
-
externalTaxAmount
public StagedOrderSetCustomLineItemTaxAmountActionBuilder externalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraftBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder- function to build the externalTaxAmount value- Returns:
- Builder
-
withExternalTaxAmount
public StagedOrderSetCustomLineItemTaxAmountActionBuilder withExternalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraft> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder- function to build the externalTaxAmount value- Returns:
- Builder
-
externalTaxAmount
public StagedOrderSetCustomLineItemTaxAmountActionBuilder externalTaxAmount(@Nullable ExternalTaxAmountDraft externalTaxAmount) Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxAmount- value to be set- Returns:
- Builder
-
shippingKey
keyof the ShippingMethod used for this Custom Line Item. This is required for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set- Returns:
- Builder
-
getCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
getShippingKey
keyof the ShippingMethod used for this Custom Line Item. This is required for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
build
builds StagedOrderSetCustomLineItemTaxAmountAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderSetCustomLineItemTaxAmountAction>- Returns:
- StagedOrderSetCustomLineItemTaxAmountAction
-
buildUnchecked
builds StagedOrderSetCustomLineItemTaxAmountAction without checking for non-null required values- Returns:
- StagedOrderSetCustomLineItemTaxAmountAction
-
of
factory method for an instance of StagedOrderSetCustomLineItemTaxAmountActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetCustomLineItemTaxAmountActionBuilder of(StagedOrderSetCustomLineItemTaxAmountAction template) create builder for StagedOrderSetCustomLineItemTaxAmountAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-