Class OverlappingStandalonePriceValidityErrorBuilder
- All Implemented Interfaces:
Builder<OverlappingStandalonePriceValidityError>
Example to create an instance using the builder pattern
OverlappingStandalonePriceValidityError overlappingStandalonePriceValidityError = OverlappingStandalonePriceValidityError.builder()
.message("{message}")
.conflictingStandalonePrice(conflictingStandalonePriceBuilder -> conflictingStandalonePriceBuilder)
.sku("{sku}")
.currency("{currency}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds OverlappingStandalonePriceValidityError with checking for non-null required valuesbuilds OverlappingStandalonePriceValidityError without checking for non-null required valueschannel
(ChannelResourceIdentifier channel) Channel for which the Standalone Price is valid.Channel for which the Standalone Price is valid.conflictingStandalonePrice
(StandalonePriceReference conflictingStandalonePrice) Reference to the conflicting Standalone Price.conflictingStandalonePrice
(Function<StandalonePriceReferenceBuilder, StandalonePriceReferenceBuilder> builder) Reference to the conflicting Standalone Price.conflictingValidFrom
(ZonedDateTime conflictingValidFrom) Date and time (UTC) from which the conflicting Standalone Price is valid.conflictingValidUntil
(ZonedDateTime conflictingValidUntil) Date and time (UTC) until which the conflicting Standalone Price is valid.Country code of the geographic location.Currency code of the country.customerGroup
(CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Standalone Price is valid.customerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) CustomerGroup for which the Standalone Price is valid.Channel for which the Standalone Price is valid.Reference to the conflicting Standalone Price.Date and time (UTC) from which the conflicting Standalone Price is valid.Date and time (UTC) until which the conflicting Standalone Price is valid.Country code of the geographic location.Currency code of the country.CustomerGroup for which the Standalone Price is valid.Two standalone prices have overlapping validity periods."
getSku()
SKU of the ProductVariant to which the conflicting Standalone Price is associated.Date and time (UTC) from which the Standalone Price is valid.Date and time (UTC) until which the Standalone Price is valid.Error-specific additional fields.Two standalone prices have overlapping validity periods."
of()
factory method for an instance of OverlappingStandalonePriceValidityErrorBuilderof
(OverlappingStandalonePriceValidityError template) create builder for OverlappingStandalonePriceValidityError instanceSKU of the ProductVariant to which the conflicting Standalone Price is associated.validFrom
(ZonedDateTime validFrom) Date and time (UTC) from which the Standalone Price is valid.validUntil
(ZonedDateTime validUntil) Date and time (UTC) until which the Standalone Price is valid.Error-specific additional fields.Channel for which the Standalone Price is valid.withConflictingStandalonePrice
(Function<StandalonePriceReferenceBuilder, StandalonePriceReference> builder) Reference to the conflicting Standalone Price.withCustomerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) CustomerGroup for which the Standalone Price is valid.
-
Constructor Details
-
OverlappingStandalonePriceValidityErrorBuilder
public OverlappingStandalonePriceValidityErrorBuilder()
-
-
Method Details
-
message
Two standalone 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
-
conflictingStandalonePrice
public OverlappingStandalonePriceValidityErrorBuilder conflictingStandalonePrice(Function<StandalonePriceReferenceBuilder, StandalonePriceReferenceBuilder> builder) Reference to the conflicting Standalone Price.
- Parameters:
builder
- function to build the conflictingStandalonePrice value- Returns:
- Builder
-
withConflictingStandalonePrice
public OverlappingStandalonePriceValidityErrorBuilder withConflictingStandalonePrice(Function<StandalonePriceReferenceBuilder, StandalonePriceReference> builder) Reference to the conflicting Standalone Price.
- Parameters:
builder
- function to build the conflictingStandalonePrice value- Returns:
- Builder
-
conflictingStandalonePrice
public OverlappingStandalonePriceValidityErrorBuilder conflictingStandalonePrice(StandalonePriceReference conflictingStandalonePrice) Reference to the conflicting Standalone Price.
- Parameters:
conflictingStandalonePrice
- value to be set- Returns:
- Builder
-
sku
SKU of the ProductVariant to which the conflicting Standalone Price is associated.
- Parameters:
sku
- 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 OverlappingStandalonePriceValidityErrorBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) CustomerGroup for which the Standalone Price is valid.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public OverlappingStandalonePriceValidityErrorBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) CustomerGroup for which the Standalone Price is valid.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public OverlappingStandalonePriceValidityErrorBuilder customerGroup(@Nullable CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Standalone Price is valid.
- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
channel
public OverlappingStandalonePriceValidityErrorBuilder channel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Channel for which the Standalone Price is valid.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
withChannel
public OverlappingStandalonePriceValidityErrorBuilder withChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Channel for which the Standalone Price is valid.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
channel
public OverlappingStandalonePriceValidityErrorBuilder channel(@Nullable ChannelResourceIdentifier channel) Channel for which the Standalone Price is valid.
- Parameters:
channel
- value to be set- Returns:
- Builder
-
validFrom
Date and time (UTC) from which the Standalone Price is valid.
- Parameters:
validFrom
- value to be set- Returns:
- Builder
-
validUntil
public OverlappingStandalonePriceValidityErrorBuilder validUntil(@Nullable ZonedDateTime validUntil) Date and time (UTC) until which the Standalone Price is valid.
- Parameters:
validUntil
- value to be set- Returns:
- Builder
-
conflictingValidFrom
public OverlappingStandalonePriceValidityErrorBuilder conflictingValidFrom(@Nullable ZonedDateTime conflictingValidFrom) Date and time (UTC) from which the conflicting Standalone Price is valid.
- Parameters:
conflictingValidFrom
- value to be set- Returns:
- Builder
-
conflictingValidUntil
public OverlappingStandalonePriceValidityErrorBuilder conflictingValidUntil(@Nullable ZonedDateTime conflictingValidUntil) Date and time (UTC) until which the conflicting Standalone Price is valid.
- Parameters:
conflictingValidUntil
- value to be set- Returns:
- Builder
-
getMessage
Two standalone prices have overlapping validity periods."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getConflictingStandalonePrice
Reference to the conflicting Standalone Price.
- Returns:
- conflictingStandalonePrice
-
getSku
SKU of the ProductVariant to which the conflicting Standalone Price is associated.
- Returns:
- sku
-
getCurrency
Currency code of the country.
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the Standalone Price is valid.
- Returns:
- customerGroup
-
getChannel
Channel for which the Standalone Price is valid.
- Returns:
- channel
-
getValidFrom
Date and time (UTC) from which the Standalone Price is valid.
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until which the Standalone Price is valid.
- Returns:
- validUntil
-
getConflictingValidFrom
Date and time (UTC) from which the conflicting Standalone Price is valid.
- Returns:
- conflictingValidFrom
-
getConflictingValidUntil
Date and time (UTC) until which the conflicting Standalone Price is valid.
- Returns:
- conflictingValidUntil
-
build
builds OverlappingStandalonePriceValidityError with checking for non-null required values- Specified by:
build
in interfaceBuilder<OverlappingStandalonePriceValidityError>
- Returns:
- OverlappingStandalonePriceValidityError
-
buildUnchecked
builds OverlappingStandalonePriceValidityError without checking for non-null required values- Returns:
- OverlappingStandalonePriceValidityError
-
of
factory method for an instance of OverlappingStandalonePriceValidityErrorBuilder- Returns:
- builder
-
of
public static OverlappingStandalonePriceValidityErrorBuilder of(OverlappingStandalonePriceValidityError template) create builder for OverlappingStandalonePriceValidityError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-