Class ProductPriceDiscountsSetUpdatedPriceBuilder
- All Implemented Interfaces:
Builder<ProductPriceDiscountsSetUpdatedPrice>
Example to create an instance using the builder pattern
ProductPriceDiscountsSetUpdatedPrice productPriceDiscountsSetUpdatedPrice = ProductPriceDiscountsSetUpdatedPrice.builder()
.variantId(1)
.priceId("{priceId}")
.staged(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductPriceDiscountsSetUpdatedPrice with checking for non-null required valuesbuilds ProductPriceDiscountsSetUpdatedPrice without checking for non-null required valuesdiscounted
(DiscountedPrice discounted) Discounted Price for the ProductVariant for which Discount was set.Discounted Price for the ProductVariant for which Discount was set.Discounted Price for the ProductVariant for which Discount was set.Unique identifier of the Price.getSku()
SKU of the ProductVariant for which Discount was set.Whether the update was only applied to the staged ProductProjection.Unique identifier of the ProductVariant for which the Discount was set.Key of the ProductVariant for which Discount was set.of()
factory method for an instance of ProductPriceDiscountsSetUpdatedPriceBuilderof
(ProductPriceDiscountsSetUpdatedPrice template) create builder for ProductPriceDiscountsSetUpdatedPrice instanceUnique identifier of the Price.SKU of the ProductVariant for which Discount was set.Whether the update was only applied to the staged ProductProjection.Unique identifier of the ProductVariant for which the Discount was set.variantKey
(String variantKey) Key of the ProductVariant for which Discount was set.Discounted Price for the ProductVariant for which Discount was set.
-
Constructor Details
-
ProductPriceDiscountsSetUpdatedPriceBuilder
public ProductPriceDiscountsSetUpdatedPriceBuilder()
-
-
Method Details
-
variantId
Unique identifier of the ProductVariant for which the Discount was set.
- Parameters:
variantId
- value to be set- Returns:
- Builder
-
variantKey
Key of the ProductVariant for which Discount was set.
- Parameters:
variantKey
- value to be set- Returns:
- Builder
-
sku
SKU of the ProductVariant for which Discount was set.
- Parameters:
sku
- value to be set- Returns:
- Builder
-
priceId
Unique identifier of the Price.
- Parameters:
priceId
- value to be set- Returns:
- Builder
-
discounted
public ProductPriceDiscountsSetUpdatedPriceBuilder discounted(Function<DiscountedPriceBuilder, DiscountedPriceBuilder> builder) Discounted Price for the ProductVariant for which Discount was set.
- Parameters:
builder
- function to build the discounted value- Returns:
- Builder
-
withDiscounted
public ProductPriceDiscountsSetUpdatedPriceBuilder withDiscounted(Function<DiscountedPriceBuilder, DiscountedPrice> builder) Discounted Price for the ProductVariant for which Discount was set.
- Parameters:
builder
- function to build the discounted value- Returns:
- Builder
-
discounted
Discounted Price for the ProductVariant for which Discount was set.
- Parameters:
discounted
- value to be set- Returns:
- Builder
-
staged
Whether the update was only applied to the staged ProductProjection.
- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
Unique identifier of the ProductVariant for which the Discount was set.
- Returns:
- variantId
-
getVariantKey
Key of the ProductVariant for which Discount was set.
- Returns:
- variantKey
-
getSku
SKU of the ProductVariant for which Discount was set.
- Returns:
- sku
-
getPriceId
Unique identifier of the Price.
- Returns:
- priceId
-
getDiscounted
Discounted Price for the ProductVariant for which Discount was set.
- Returns:
- discounted
-
getStaged
Whether the update was only applied to the staged ProductProjection.
- Returns:
- staged
-
build
builds ProductPriceDiscountsSetUpdatedPrice with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPriceDiscountsSetUpdatedPrice>
- Returns:
- ProductPriceDiscountsSetUpdatedPrice
-
buildUnchecked
builds ProductPriceDiscountsSetUpdatedPrice without checking for non-null required values- Returns:
- ProductPriceDiscountsSetUpdatedPrice
-
of
factory method for an instance of ProductPriceDiscountsSetUpdatedPriceBuilder- Returns:
- builder
-
of
public static ProductPriceDiscountsSetUpdatedPriceBuilder of(ProductPriceDiscountsSetUpdatedPrice template) create builder for ProductPriceDiscountsSetUpdatedPrice instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-