All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.customers.queries.CustomerQuery Maven / Gradle / Ivy

package io.sphere.sdk.customers.queries;

import com.fasterxml.jackson.core.type.TypeReference;
import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.customers.expansion.CustomerExpansionModel;
import io.sphere.sdk.queries.PagedQueryResult;
import io.sphere.sdk.queries.MetaModelQueryDsl;

/**
 * Fetches multiple customers.
 *
 * {@doc.gen summary customers}
 *
 * 

Example for fetching a customer by id and expand the customer group:

* {@include.example io.sphere.sdk.customers.queries.CustomerQueryTest#customerGroupReferenceExpansion()} */ public interface CustomerQuery extends MetaModelQueryDsl> { static TypeReference> resultTypeReference() { return new TypeReference>(){ @Override public String toString() { return "TypeReference>"; } }; } static CustomerQuery of() { return new CustomerQueryImpl(); } default CustomerQuery byEmail(final String email) { return withPredicates(m -> m.email().is(email)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy