io.sphere.sdk.shippingmethods.queries.ShippingMethodsByCartGet Maven / Gradle / Ivy
package io.sphere.sdk.shippingmethods.queries;
import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.client.SphereRequest;
import io.sphere.sdk.models.Referenceable;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import java.util.List;
/**
* Retrieves all the shipping methods that can ship to the shipping address of the given cart.
*
* {@include.example io.sphere.sdk.shippingmethods.queries.ShippingMethodsByCartGetIntegrationTest#execution()}
*/
public interface ShippingMethodsByCartGet extends SphereRequest> {
static ShippingMethodsByCartGet of(final Referenceable cart) {
return of(cart.toReference().getId());
}
static ShippingMethodsByCartGet of(final String cartId) {
return new ShippingMethodsByCartGetImpl(cartId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy