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