001 002package com.commercetools.api.predicates.query.me; 003 004import java.util.function.Function; 005 006import com.commercetools.api.predicates.query.*; 007 008public class MyPaymentUpdateQueryBuilderDsl { 009 public MyPaymentUpdateQueryBuilderDsl() { 010 } 011 012 public static MyPaymentUpdateQueryBuilderDsl of() { 013 return new MyPaymentUpdateQueryBuilderDsl(); 014 } 015 016 public LongComparisonPredicateBuilder<MyPaymentUpdateQueryBuilderDsl> version() { 017 return new LongComparisonPredicateBuilder<>( 018 BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), 019 p -> new CombinationQueryPredicate<>(p, MyPaymentUpdateQueryBuilderDsl::of)); 020 } 021 022 public CombinationQueryPredicate<MyPaymentUpdateQueryBuilderDsl> actions( 023 Function<com.commercetools.api.predicates.query.me.MyPaymentUpdateActionQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.me.MyPaymentUpdateActionQueryBuilderDsl>> fn) { 024 return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() 025 .parent(ConstantQueryPredicate.of().constant("actions")) 026 .inner(fn.apply(com.commercetools.api.predicates.query.me.MyPaymentUpdateActionQueryBuilderDsl.of())), 027 MyPaymentUpdateQueryBuilderDsl::of); 028 } 029 030 public CollectionPredicateBuilder<MyPaymentUpdateQueryBuilderDsl> actions() { 031 return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("actions")), 032 p -> new CombinationQueryPredicate<>(p, MyPaymentUpdateQueryBuilderDsl::of)); 033 } 034 035}