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

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

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.customers.queries;

import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.models.Identifiable;
import io.sphere.sdk.queries.*;
import io.sphere.sdk.types.queries.CustomQueryModel;
import io.sphere.sdk.types.queries.CustomResourceQueryModelImpl;
import io.sphere.sdk.types.queries.WithCustomQueryModel;

public final class CustomerQueryModel extends CustomResourceQueryModelImpl implements WithCustomQueryModel {

    public static CustomerQueryModel of() {
        return new CustomerQueryModel(null, null);
    }

    private CustomerQueryModel(final QueryModel parent, final String pathSegment) {
        super(parent, pathSegment);
    }

    public StringQuerySortingModel firstName() {
        return stringModel("firstName");
    }

    public StringQuerySortingModel lastName() {
        return stringModel("lastName");
    }

    public StringQuerySortingModel email() {
        return stringModel("email");
    }

    public StringQuerySortingModel defaultShippingAddressId() {
        return stringModel("defaultShippingAddressId");
    }

    public StringQuerySortingModel defaultBillingAddressId() {
        return stringModel("defaultBillingAddressId");
    }

    public BooleanQueryModel isEmailVerified() {
        return booleanModel("isEmailVerified");
    }

    public StringQuerySortingModel externalId() {
        return stringModel("externalId");
    }

    public ReferenceQueryModel customerGroup() {
        return referenceModel("customerGroup");
    }

    @Override
    public CustomQueryModel custom() {
        return super.custom();
    }

    @Override
    public QueryPredicate is(final Identifiable identifiable) {
        return super.is(identifiable);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy