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