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

io.sphere.sdk.orders.queries.OrderByIdGet Maven / Gradle / Ivy

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

import io.sphere.sdk.models.Identifiable;
import io.sphere.sdk.orders.Order;
import io.sphere.sdk.orders.expansion.OrderExpansionModel;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.queries.MetaModelGetDsl;

import java.util.List;
import java.util.function.Function;

/**
 Gets an order by ID.

 {@include.example io.sphere.sdk.orders.commands.OrderFromCartCreateCommandTest#execution()}
 */
public interface OrderByIdGet extends MetaModelGetDsl> {
    static OrderByIdGet of(final Identifiable order) {
        return of(order.getId());
    }

    static OrderByIdGet of(final String id) {
        return new OrderByIdGetImpl(id);
    }

    @Override
    OrderByIdGet plusExpansionPaths(final Function, ExpansionPath> m);

    @Override
    OrderByIdGet withExpansionPaths(final Function, ExpansionPath> m);

    @Override
    OrderByIdGet plusExpansionPaths(final ExpansionPath expansionPath);

    @Override
    List> expansionPaths();

    @Override
    OrderByIdGet withExpansionPaths(final ExpansionPath expansionPath);

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy