Class ProductSetPricesActionBuilder
- All Implemented Interfaces:
Builder<ProductSetPricesAction>
Example to create an instance using the builder pattern
ProductSetPricesAction productSetPricesAction = ProductSetPricesAction.builder()
.plusPrices(pricesBuilder -> pricesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPrices
(Function<PriceDraftBuilder, PriceDraft> builder) The Embedded Prices to set.build()
builds ProductSetPricesAction with checking for non-null required valuesbuilds ProductSetPricesAction without checking for non-null required valuesThe Embedded Prices to set.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged ProductVariant is updated.Theid
of the ProductVariant to update.of()
factory method for an instance of ProductSetPricesActionBuilderof
(ProductSetPricesAction template) create builder for ProductSetPricesAction instanceplusPrices
(PriceDraft... prices) The Embedded Prices to set.plusPrices
(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Embedded Prices to set.prices
(PriceDraft... prices) The Embedded Prices to set.prices
(List<PriceDraft> prices) The Embedded Prices to set.setPrices
(Function<PriceDraftBuilder, PriceDraft> builder) The Embedded Prices to set.Thesku
of the ProductVariant to update.Iftrue
, only the staged ProductVariant is updated.Theid
of the ProductVariant to update.withPrices
(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Embedded Prices to set.
-
Constructor Details
-
ProductSetPricesActionBuilder
public ProductSetPricesActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
prices
The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
prices
The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
public ProductSetPricesActionBuilder plusPrices(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
withPrices
public ProductSetPricesActionBuilder withPrices(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
addPrices
The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
setPrices
The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
staged
If
true
, only the staged ProductVariant is updated. Iffalse
, both the current and staged ProductVariant are updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Returns:
- sku
-
getPrices
The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel,
validFrom
andvalidUntil
).- Returns:
- prices
-
getStaged
If
true
, only the staged ProductVariant is updated. Iffalse
, both the current and staged ProductVariant are updated.- Returns:
- staged
-
build
builds ProductSetPricesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetPricesAction>
- Returns:
- ProductSetPricesAction
-
buildUnchecked
builds ProductSetPricesAction without checking for non-null required values- Returns:
- ProductSetPricesAction
-
of
factory method for an instance of ProductSetPricesActionBuilder- Returns:
- builder
-
of
create builder for ProductSetPricesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-