Class StagedOrderSetCustomLineItemTaxAmountActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetCustomLineItemTaxAmountAction>
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxAmountAction stagedOrderSetCustomLineItemTaxAmountAction = StagedOrderSetCustomLineItemTaxAmountAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetCustomLineItemTaxAmountAction with checking for non-null required valuesbuilds StagedOrderSetCustomLineItemTaxAmountAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.externalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.Value to set.id
of the CustomLineItem to update.key
of the CustomLineItem to update.Value to set.key
of the ShippingMethod used for this Custom Line Item.of()
factory method for an instance of StagedOrderSetCustomLineItemTaxAmountActionBuildercreate builder for StagedOrderSetCustomLineItemTaxAmountAction instanceshippingKey
(String shippingKey) key
of 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) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderSetCustomLineItemTaxAmountActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is 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
key
of the ShippingMethod used for this Custom Line Item. This is required for Carts withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
getShippingKey
key
of the ShippingMethod used for this Custom Line Item. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
build
builds StagedOrderSetCustomLineItemTaxAmountAction with checking for non-null required values- Specified by:
build
in 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
-