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

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

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

import com.neovisionaries.i18n.CountryCode;
import io.sphere.sdk.models.Identifiable;
import io.sphere.sdk.orderedits.OrderEdit;
import io.sphere.sdk.queries.MetaModelGetDsl;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.shippingmethods.expansion.ShippingMethodExpansionModel;

import java.util.List;

/**
 * Retrieves all the shipping methods that can ship to the given orderEdit.
 *
 * {@include.example io.sphere.sdk.shippingmethods.queries.ShippingMethodsByOrderEditGetIntegrationTest#execution()}
 */
public interface ShippingMethodsByOrderEditGet extends MetaModelGetDsl, ShippingMethod, ShippingMethodsByCartGet, ShippingMethodExpansionModel> {
    static ShippingMethodsByOrderEditGet of(final Identifiable orderEdit, final CountryCode countryCode) {
        return of(orderEdit, countryCode, null);
    }

    static ShippingMethodsByOrderEditGet of(final Identifiable orderEdit, final CountryCode countryCode, final String state) {
        return new ShippingMethodsByOrderEditGetImpl(orderEdit, countryCode, state);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy