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

io.sphere.client.shop.ShippingMethodService Maven / Gradle / Ivy

package io.sphere.client.shop;

import java.util.Currency;
import java.util.List;
import io.sphere.client.FetchRequest;
import io.sphere.client.QueryRequest;
import io.sphere.client.shop.model.Location;
import io.sphere.client.shop.model.ShippingMethod;

/** Sphere HTTP API for querying shipping methods in a given project. The zone references of the shipping method
 * query results are expanded.*/
public interface ShippingMethodService {
    /** Finds a shipping method by id. */
    FetchRequest byId(String id);

    /** Queries all shipping methods in current project.
     *
     * @deprecated since 0.49.0. Use {@link #query()} instead.
     **/
    @Deprecated
    QueryRequest all();

    /** Queries shipping methods in current project. */
    QueryRequest query();

    /** Fetches all shipping methods by location and currency in the current project. */
    public FetchRequest> forLocation(Location location, Currency currency);

    /** Fetches all shipping methods for a cart in the current project. The cart must have
     * a shipping address set. */
    public FetchRequest> forCart(String cartId);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy