io.sphere.sdk.carts.queries.CartByIdGet Maven / Gradle / Ivy
package io.sphere.sdk.carts.queries;
import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.carts.expansion.CartExpansionModel;
import io.sphere.sdk.models.Identifiable;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.queries.MetaModelGetDsl;
import java.util.List;
import java.util.function.Function;
/**
Gets a cart by ID.
{@include.example io.sphere.sdk.carts.queries.CartByIdGetTest#fetchById()}
*/
public interface CartByIdGet extends MetaModelGetDsl> {
static CartByIdGet of(final Identifiable cart) {
return of(cart.getId());
}
static CartByIdGet of(final String id) {
return new CartByIdGetImpl(id);
}
@Override
CartByIdGet plusExpansionPaths(final Function, ExpansionPath> m);
@Override
CartByIdGet withExpansionPaths(final Function, ExpansionPath> m);
@Override
List> expansionPaths();
@Override
CartByIdGet plusExpansionPaths(final ExpansionPath expansionPath);
@Override
CartByIdGet withExpansionPaths(final ExpansionPath expansionPath);
@Override
CartByIdGet withExpansionPaths(final List> expansionPaths);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy