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-M12
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.queries.*;

import java.util.Optional;

public final class CustomerQueryModel extends DefaultModelQueryModelImpl {

    static CustomerQueryModel get() {
        return new CustomerQueryModel(Optional.>empty(), Optional.empty());
    }

    private CustomerQueryModel(final Optional> parent, final Optional pathSegment) {
        super(parent, pathSegment);
    }

    public StringQuerySortingModel firstName() {
        return new StringQuerySortingModel<>(Optional.of(this), "firstName");
    }

    public StringQuerySortingModel lastName() {
        return new StringQuerySortingModel<>(Optional.of(this), "lastName");
    }

    public StringQuerySortingModel email() {
        return new StringQuerySortingModel<>(Optional.of(this), "email");
    }

    public StringQuerySortingModel defaultShippingAddressId() {
        return new StringQuerySortingModel<>(Optional.of(this), "defaultBillingAddressId");
    }

    public StringQuerySortingModel defaultBillingAddressId() {
        return new StringQuerySortingModel<>(Optional.of(this), "defaultBillingAddressId");
    }

    public BooleanQueryModel isEmailVerified() {
        return new BooleanQueryModel<>(Optional.of(this), "isEmailVerified");
    }


    public StringQuerySortingModel externalId() {
        return new StringQuerySortingModel<>(Optional.of(this), "externalId");
    }

    public ReferenceQueryModel customerGroup() {
        return new ReferenceQueryModel<>(Optional.of(this), "customerGroup");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy