Class StagedOrderSetLineItemTaxAmountActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetLineItemTaxAmountAction>
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) Cannot be used in LineItemDraft or CustomLineItemDraft.Cannot be used in LineItemDraft or CustomLineItemDraft.Cannot be used in LineItemDraft or CustomLineItemDraft.id
of the LineItem to update.key
of the LineItem to update.key
of the ShippingMethod used for this Line Item.``` This is required for Carts withMultiple
ShippingMode.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.``` This is required for Carts withMultiple
ShippingMode.Cannot be used in LineItemDraft or CustomLineItemDraft.
-
Constructor Details
-
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) Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
withExternalTaxAmount
public StagedOrderSetLineItemTaxAmountActionBuilder withExternalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraft> builder) Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
externalTaxAmount
public StagedOrderSetLineItemTaxAmountActionBuilder externalTaxAmount(@Nullable ExternalTaxAmountDraft externalTaxAmount) Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- 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
Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- 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
-