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

io.sphere.sdk.shippingmethods.queries.ShippingMethodByIdGet Maven / Gradle / Ivy

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

import io.sphere.sdk.models.Identifiable;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.queries.MetaModelGetDsl;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.shippingmethods.expansion.ShippingMethodExpansionModel;

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

/**
 * Fetches a shipping method by ID.
 *
 * {@include.example io.sphere.sdk.shippingmethods.queries.ShippingMethodByIdGetTest#execution()}
 */
public interface ShippingMethodByIdGet extends MetaModelGetDsl> {
    static ShippingMethodByIdGet of(final Identifiable shippingMethod) {
        return of(shippingMethod.getId());
    }

    static ShippingMethodByIdGet of(final String id) {
        return new ShippingMethodByIdGetImpl(id);
    }

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

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

    @Override
    List> expansionPaths();

    @Override
    ShippingMethodByIdGet plusExpansionPaths(final ExpansionPath expansionPath);

    @Override
    ShippingMethodByIdGet withExpansionPaths(final ExpansionPath expansionPath);

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy