Class OverlappingPriceValidityErrorBuilder
- All Implemented Interfaces:
Builder<OverlappingPriceValidityError>
Example to create an instance using the builder pattern
OverlappingPriceValidityError overlappingPriceValidityError = OverlappingPriceValidityError.builder()
.message("{message}")
.conflictingPrice("{conflictingPrice}")
.currency("{currency}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()builds OverlappingPriceValidityError with checking for non-null required valuesbuilds OverlappingPriceValidityError without checking for non-null required valueschannel(ChannelResourceIdentifier channel) Channel for which the Price is valid.Channel for which the Price is valid.conflictingPrice(String conflictingPrice) Unique identifier of the conflicting Embedded Price.conflictingValidFrom(ZonedDateTime conflictingValidFrom) Date and time (UTC) from which the conflicting Embedded Price is valid.conflictingValidUntil(ZonedDateTime conflictingValidUntil) Date and time (UTC) until which the conflicting Embedded Price is valid.Country code of the Price.Currency code of the Price.customerGroup(CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Price is valid.customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) CustomerGroup for which the Price is valid.Channel for which the Price is valid.Unique identifier of the conflicting Embedded Price.Date and time (UTC) from which the conflicting Embedded Price is valid.Date and time (UTC) until which the conflicting Embedded Price is valid.Country code of the Price.Currency code of the Price.CustomerGroup for which the Price is valid."Two prices have overlapping validity periods."Date and time (UTC) from which the Embedded Price is valid.Date and time (UTC) until which the Embedded Price is valid.Error-specific additional fields."Two prices have overlapping validity periods."of()factory method for an instance of OverlappingPriceValidityErrorBuilderof(OverlappingPriceValidityError template) create builder for OverlappingPriceValidityError instancevalidFrom(ZonedDateTime validFrom) Date and time (UTC) from which the Embedded Price is valid.validUntil(ZonedDateTime validUntil) Date and time (UTC) until which the Embedded Price is valid.Error-specific additional fields.Channel for which the Price is valid.withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) CustomerGroup for which the Price is valid.
-
Constructor Details
-
OverlappingPriceValidityErrorBuilder
public OverlappingPriceValidityErrorBuilder()
-
-
Method Details
-
message
"Two prices have overlapping validity periods."- 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
-
conflictingPrice
Unique identifier of the conflicting Embedded Price.
- Parameters:
conflictingPrice- value to be set- Returns:
- Builder
-
currency
Currency code of the Price.
- Parameters:
currency- value to be set- Returns:
- Builder
-
country
Country code of the Price.
- Parameters:
country- value to be set- Returns:
- Builder
-
customerGroup
public OverlappingPriceValidityErrorBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) CustomerGroup for which the Price is valid.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public OverlappingPriceValidityErrorBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) CustomerGroup for which the Price is valid.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public OverlappingPriceValidityErrorBuilder customerGroup(@Nullable CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Price is valid.
- Parameters:
customerGroup- value to be set- Returns:
- Builder
-
channel
public OverlappingPriceValidityErrorBuilder channel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Channel for which the Price is valid.
- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
withChannel
public OverlappingPriceValidityErrorBuilder withChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Channel for which the Price is valid.
- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
channel
Channel for which the Price is valid.
- Parameters:
channel- value to be set- Returns:
- Builder
-
validFrom
Date and time (UTC) from which the Embedded Price is valid.
- Parameters:
validFrom- value to be set- Returns:
- Builder
-
validUntil
Date and time (UTC) until which the Embedded Price is valid.
- Parameters:
validUntil- value to be set- Returns:
- Builder
-
conflictingValidFrom
public OverlappingPriceValidityErrorBuilder conflictingValidFrom(@Nullable ZonedDateTime conflictingValidFrom) Date and time (UTC) from which the conflicting Embedded Price is valid.
- Parameters:
conflictingValidFrom- value to be set- Returns:
- Builder
-
conflictingValidUntil
public OverlappingPriceValidityErrorBuilder conflictingValidUntil(@Nullable ZonedDateTime conflictingValidUntil) Date and time (UTC) until which the conflicting Embedded Price is valid.
- Parameters:
conflictingValidUntil- value to be set- Returns:
- Builder
-
getMessage
"Two prices have overlapping validity periods."- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getConflictingPrice
Unique identifier of the conflicting Embedded Price.
- Returns:
- conflictingPrice
-
getCurrency
Currency code of the Price.
- Returns:
- currency
-
getCountry
Country code of the Price.
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the Price is valid.
- Returns:
- customerGroup
-
getChannel
Channel for which the Price is valid.
- Returns:
- channel
-
getValidFrom
Date and time (UTC) from which the Embedded Price is valid.
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until which the Embedded Price is valid.
- Returns:
- validUntil
-
getConflictingValidFrom
Date and time (UTC) from which the conflicting Embedded Price is valid.
- Returns:
- conflictingValidFrom
-
getConflictingValidUntil
Date and time (UTC) until which the conflicting Embedded Price is valid.
- Returns:
- conflictingValidUntil
-
build
builds OverlappingPriceValidityError with checking for non-null required values- Specified by:
buildin interfaceBuilder<OverlappingPriceValidityError>- Returns:
- OverlappingPriceValidityError
-
buildUnchecked
builds OverlappingPriceValidityError without checking for non-null required values- Returns:
- OverlappingPriceValidityError
-
of
factory method for an instance of OverlappingPriceValidityErrorBuilder- Returns:
- builder
-
of
create builder for OverlappingPriceValidityError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-