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

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

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

import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.customers.CustomerToken;
import io.sphere.sdk.customers.commands.CustomerPasswordResetCommand;
import io.sphere.sdk.customers.expansion.CustomerExpansionModel;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.queries.MetaModelGetDsl;

import java.util.List;

/**
 * Fetches a customer by a known email token.
 *
 * {@include.example io.sphere.sdk.customers.queries.CustomerByEmailTokenGetIntegrationTest#execution()}
 *
 * @see Customer
 * @see io.sphere.sdk.customers.commands.CustomerCreateEmailTokenCommand
 * @see CustomerPasswordResetCommand
 */
public interface CustomerByEmailTokenGet extends MetaModelGetDsl> {
    static CustomerByEmailTokenGet of(final String token) {
        return new CustomerByEmailTokenGetImpl(token);
    }

    static CustomerByEmailTokenGet of(final CustomerToken token) {
        return of(token.getValue());
    }

    @Override
    List> expansionPaths();

    @Override
    CustomerByEmailTokenGet plusExpansionPaths(final ExpansionPath expansionPath);

    @Override
    CustomerByEmailTokenGet withExpansionPaths(final ExpansionPath expansionPath);

    @Override
    CustomerByEmailTokenGet withExpansionPaths(final List> expansionPaths);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy