Class MatchingPriceNotFoundErrorBuilder
- All Implemented Interfaces:
Builder<MatchingPriceNotFoundError>
Example to create an instance using the builder pattern
MatchingPriceNotFoundError matchingPriceNotFoundError = MatchingPriceNotFoundError.builder()
.message("{message}")
.productId("{productId}")
.variantId(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds MatchingPriceNotFoundError with checking for non-null required valuesbuilds MatchingPriceNotFoundError without checking for non-null required valueschannel
(ChannelReference channel) Channel associated with the Price.Channel associated with the Price.Country code of the geographic location.Currency code of the country.customerGroup
(CustomerGroupReference customerGroup) Customer Group associated with the Price.Customer Group associated with the Price.Channel associated with the Price.Country code of the geographic location.Currency code of the country.Customer Group associated with the Price."The variant $variantId of product $productId does not contain a price for currency $currencyCode, $country, $customerGroup, $channel."
Unique identifier of a Product.Error-specific additional fields.Unique identifier of a ProductVariant in the Product."The variant $variantId of product $productId does not contain a price for currency $currencyCode, $country, $customerGroup, $channel."
of()
factory method for an instance of MatchingPriceNotFoundErrorBuilderof
(MatchingPriceNotFoundError template) create builder for MatchingPriceNotFoundError instanceUnique identifier of a Product.Error-specific additional fields.Unique identifier of a ProductVariant in the Product.Channel associated with the Price.Customer Group associated with the Price.
-
Constructor Details
-
MatchingPriceNotFoundErrorBuilder
public MatchingPriceNotFoundErrorBuilder()
-
-
Method Details
-
message
"The variant $variantId of product $productId does not contain a price for currency $currencyCode, $country, $customerGroup, $channel."
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
productId
Unique identifier of a Product.
- Parameters:
productId
- value to be set- Returns:
- Builder
-
variantId
Unique identifier of a ProductVariant in the Product.
- Parameters:
variantId
- value to be set- Returns:
- Builder
-
currency
Currency code of the country.
- Parameters:
currency
- value to be set- Returns:
- Builder
-
country
Country code of the geographic location.
- Parameters:
country
- value to be set- Returns:
- Builder
-
customerGroup
public MatchingPriceNotFoundErrorBuilder customerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReferenceBuilder> builder) Customer Group associated with the Price.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public MatchingPriceNotFoundErrorBuilder withCustomerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReference> builder) Customer Group associated with the Price.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public MatchingPriceNotFoundErrorBuilder customerGroup(@Nullable CustomerGroupReference customerGroup) Customer Group associated with the Price.
- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
channel
public MatchingPriceNotFoundErrorBuilder channel(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Channel associated with the Price.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
withChannel
public MatchingPriceNotFoundErrorBuilder withChannel(Function<ChannelReferenceBuilder, ChannelReference> builder) Channel associated with the Price.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
channel
Channel associated with the Price.
- Parameters:
channel
- value to be set- Returns:
- Builder
-
getMessage
"The variant $variantId of product $productId does not contain a price for currency $currencyCode, $country, $customerGroup, $channel."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getProductId
Unique identifier of a Product.
- Returns:
- productId
-
getVariantId
Unique identifier of a ProductVariant in the Product.
- Returns:
- variantId
-
getCurrency
Currency code of the country.
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Returns:
- country
-
getCustomerGroup
Customer Group associated with the Price.
- Returns:
- customerGroup
-
getChannel
Channel associated with the Price.
- Returns:
- channel
-
build
builds MatchingPriceNotFoundError with checking for non-null required values- Specified by:
build
in interfaceBuilder<MatchingPriceNotFoundError>
- Returns:
- MatchingPriceNotFoundError
-
buildUnchecked
builds MatchingPriceNotFoundError without checking for non-null required values- Returns:
- MatchingPriceNotFoundError
-
of
factory method for an instance of MatchingPriceNotFoundErrorBuilder- Returns:
- builder
-
of
create builder for MatchingPriceNotFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-