io.sphere.sdk.customers.queries.CustomerByPasswordTokenGet Maven / Gradle / Ivy
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;
import java.util.function.Function;
/**
* Fetches a cusomter by a known passwort reset token.
*
* {@include.example io.sphere.sdk.customers.commands.CustomerPasswordResetCommandTest#execution()}
*
* @see io.sphere.sdk.types.Custom
* @see io.sphere.sdk.customers.commands.CustomerCreatePasswordTokenCommand
* @see CustomerPasswordResetCommand
*/
public interface CustomerByPasswordTokenGet extends MetaModelGetDsl> {
static CustomerByPasswordTokenGet of(final String token) {
return new CustomerByPasswordTokenGetImpl(token);
}
static CustomerByPasswordTokenGet of(final CustomerToken token) {
return of(token.getValue());
}
@Override
CustomerByPasswordTokenGet plusExpansionPaths(final Function, ExpansionPath> m);
@Override
CustomerByPasswordTokenGet withExpansionPaths(final Function, ExpansionPath> m);
@Override
List> expansionPaths();
@Override
CustomerByPasswordTokenGet plusExpansionPaths(final ExpansionPath expansionPath);
@Override
CustomerByPasswordTokenGet withExpansionPaths(final ExpansionPath expansionPath);
@Override
CustomerByPasswordTokenGet withExpansionPaths(final List> expansionPaths);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy