001
002package com.commercetools.api.predicates.query.error;
003
004import java.util.function.Function;
005
006import com.commercetools.api.predicates.query.*;
007
008public class MatchingPriceNotFoundErrorQueryBuilderDsl {
009    public MatchingPriceNotFoundErrorQueryBuilderDsl() {
010    }
011
012    public static MatchingPriceNotFoundErrorQueryBuilderDsl of() {
013        return new MatchingPriceNotFoundErrorQueryBuilderDsl();
014    }
015
016    public StringComparisonPredicateBuilder<MatchingPriceNotFoundErrorQueryBuilderDsl> code() {
017        return new StringComparisonPredicateBuilder<>(
018            BinaryQueryPredicate.of().left(new ConstantQueryPredicate("code")),
019            p -> new CombinationQueryPredicate<>(p, MatchingPriceNotFoundErrorQueryBuilderDsl::of));
020    }
021
022    public StringComparisonPredicateBuilder<MatchingPriceNotFoundErrorQueryBuilderDsl> message() {
023        return new StringComparisonPredicateBuilder<>(
024            BinaryQueryPredicate.of().left(new ConstantQueryPredicate("message")),
025            p -> new CombinationQueryPredicate<>(p, MatchingPriceNotFoundErrorQueryBuilderDsl::of));
026    }
027
028    public StringComparisonPredicateBuilder<MatchingPriceNotFoundErrorQueryBuilderDsl> productId() {
029        return new StringComparisonPredicateBuilder<>(
030            BinaryQueryPredicate.of().left(new ConstantQueryPredicate("productId")),
031            p -> new CombinationQueryPredicate<>(p, MatchingPriceNotFoundErrorQueryBuilderDsl::of));
032    }
033
034    public LongComparisonPredicateBuilder<MatchingPriceNotFoundErrorQueryBuilderDsl> variantId() {
035        return new LongComparisonPredicateBuilder<>(
036            BinaryQueryPredicate.of().left(new ConstantQueryPredicate("variantId")),
037            p -> new CombinationQueryPredicate<>(p, MatchingPriceNotFoundErrorQueryBuilderDsl::of));
038    }
039
040    public StringComparisonPredicateBuilder<MatchingPriceNotFoundErrorQueryBuilderDsl> currency() {
041        return new StringComparisonPredicateBuilder<>(
042            BinaryQueryPredicate.of().left(new ConstantQueryPredicate("currency")),
043            p -> new CombinationQueryPredicate<>(p, MatchingPriceNotFoundErrorQueryBuilderDsl::of));
044    }
045
046    public StringComparisonPredicateBuilder<MatchingPriceNotFoundErrorQueryBuilderDsl> country() {
047        return new StringComparisonPredicateBuilder<>(
048            BinaryQueryPredicate.of().left(new ConstantQueryPredicate("country")),
049            p -> new CombinationQueryPredicate<>(p, MatchingPriceNotFoundErrorQueryBuilderDsl::of));
050    }
051
052    public CombinationQueryPredicate<MatchingPriceNotFoundErrorQueryBuilderDsl> customerGroup(
053            Function<com.commercetools.api.predicates.query.customer_group.CustomerGroupReferenceQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.customer_group.CustomerGroupReferenceQueryBuilderDsl>> fn) {
054        return new CombinationQueryPredicate<>(ContainerQueryPredicate.of()
055                .parent(ConstantQueryPredicate.of().constant("customerGroup"))
056                .inner(fn.apply(
057                    com.commercetools.api.predicates.query.customer_group.CustomerGroupReferenceQueryBuilderDsl.of())),
058            MatchingPriceNotFoundErrorQueryBuilderDsl::of);
059    }
060
061    public CombinationQueryPredicate<MatchingPriceNotFoundErrorQueryBuilderDsl> channel(
062            Function<com.commercetools.api.predicates.query.channel.ChannelReferenceQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.channel.ChannelReferenceQueryBuilderDsl>> fn) {
063        return new CombinationQueryPredicate<>(ContainerQueryPredicate.of()
064                .parent(ConstantQueryPredicate.of().constant("channel"))
065                .inner(fn.apply(com.commercetools.api.predicates.query.channel.ChannelReferenceQueryBuilderDsl.of())),
066            MatchingPriceNotFoundErrorQueryBuilderDsl::of);
067    }
068
069}