Class StagedOrderSetOrderTotalTaxActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetOrderTotalTaxActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetOrderTotalTaxAction>
public class StagedOrderSetOrderTotalTaxActionBuilder
extends Object
implements Builder<StagedOrderSetOrderTotalTaxAction>
StagedOrderSetOrderTotalTaxActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetOrderTotalTaxAction stagedOrderSetOrderTotalTaxAction = StagedOrderSetOrderTotalTaxAction.builder()
.externalTotalGross(externalTotalGrossBuilder -> externalTotalGrossBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue to set.build()
builds StagedOrderSetOrderTotalTaxAction with checking for non-null required valuesbuilds StagedOrderSetOrderTotalTaxAction without checking for non-null required valuesexternalTaxPortions
(TaxPortionDraft... externalTaxPortions) Value to set.externalTaxPortions
(List<TaxPortionDraft> externalTaxPortions) Value to set.externalTotalGross
(Money externalTotalGross) Total gross amount of the Order (totalNet + taxes).externalTotalGross
(Function<MoneyBuilder, MoneyBuilder> builder) Total gross amount of the Order (totalNet + taxes).Value to set.Total gross amount of the Order (totalNet + taxes).of()
factory method for an instance of StagedOrderSetOrderTotalTaxActionBuilderof
(StagedOrderSetOrderTotalTaxAction template) create builder for StagedOrderSetOrderTotalTaxAction instanceplusExternalTaxPortions
(TaxPortionDraft... externalTaxPortions) Value to set.Value to set.Value to set.Value to set.withExternalTotalGross
(Function<MoneyBuilder, Money> builder) Total gross amount of the Order (totalNet + taxes).
-
Constructor Details
-
StagedOrderSetOrderTotalTaxActionBuilder
public StagedOrderSetOrderTotalTaxActionBuilder()
-
-
Method Details
-
externalTotalGross
public StagedOrderSetOrderTotalTaxActionBuilder externalTotalGross(Function<MoneyBuilder, MoneyBuilder> builder) Total gross amount of the Order (totalNet + taxes).
- Parameters:
builder
- function to build the externalTotalGross value- Returns:
- Builder
-
withExternalTotalGross
public StagedOrderSetOrderTotalTaxActionBuilder withExternalTotalGross(Function<MoneyBuilder, Money> builder) Total gross amount of the Order (totalNet + taxes).
- Parameters:
builder
- function to build the externalTotalGross value- Returns:
- Builder
-
externalTotalGross
Total gross amount of the Order (totalNet + taxes).
- Parameters:
externalTotalGross
- value to be set- Returns:
- Builder
-
externalTaxPortions
public StagedOrderSetOrderTotalTaxActionBuilder externalTaxPortions(@Nullable TaxPortionDraft... externalTaxPortions) Value to set.
- Parameters:
externalTaxPortions
- value to be set- Returns:
- Builder
-
externalTaxPortions
public StagedOrderSetOrderTotalTaxActionBuilder externalTaxPortions(@Nullable List<TaxPortionDraft> externalTaxPortions) Value to set.
- Parameters:
externalTaxPortions
- value to be set- Returns:
- Builder
-
plusExternalTaxPortions
public StagedOrderSetOrderTotalTaxActionBuilder plusExternalTaxPortions(@Nullable TaxPortionDraft... externalTaxPortions) Value to set.
- Parameters:
externalTaxPortions
- value to be set- Returns:
- Builder
-
plusExternalTaxPortions
public StagedOrderSetOrderTotalTaxActionBuilder plusExternalTaxPortions(Function<TaxPortionDraftBuilder, TaxPortionDraftBuilder> builder) Value to set.
- Parameters:
builder
- function to build the externalTaxPortions value- Returns:
- Builder
-
withExternalTaxPortions
public StagedOrderSetOrderTotalTaxActionBuilder withExternalTaxPortions(Function<TaxPortionDraftBuilder, TaxPortionDraftBuilder> builder) Value to set.
- Parameters:
builder
- function to build the externalTaxPortions value- Returns:
- Builder
-
addExternalTaxPortions
public StagedOrderSetOrderTotalTaxActionBuilder addExternalTaxPortions(Function<TaxPortionDraftBuilder, TaxPortionDraft> builder) Value to set.
- Parameters:
builder
- function to build the externalTaxPortions value- Returns:
- Builder
-
setExternalTaxPortions
public StagedOrderSetOrderTotalTaxActionBuilder setExternalTaxPortions(Function<TaxPortionDraftBuilder, TaxPortionDraft> builder) Value to set.
- Parameters:
builder
- function to build the externalTaxPortions value- Returns:
- Builder
-
getExternalTotalGross
Total gross amount of the Order (totalNet + taxes).
- Returns:
- externalTotalGross
-
getExternalTaxPortions
Value to set.
- Returns:
- externalTaxPortions
-
build
builds StagedOrderSetOrderTotalTaxAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetOrderTotalTaxAction>
- Returns:
- StagedOrderSetOrderTotalTaxAction
-
buildUnchecked
builds StagedOrderSetOrderTotalTaxAction without checking for non-null required values- Returns:
- StagedOrderSetOrderTotalTaxAction
-
of
factory method for an instance of StagedOrderSetOrderTotalTaxActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetOrderTotalTaxActionBuilder of(StagedOrderSetOrderTotalTaxAction template) create builder for StagedOrderSetOrderTotalTaxAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-