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

io.sphere.sdk.carts.ShippingMethodState Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.SphereEnumeration;

public enum ShippingMethodState implements SphereEnumeration {
    /**
     * The shippingMethod predicate does not match the cart.
     * Ordering this cart will fail with [ShippingMethodDoesNotMatchCart](/http-api-errors.html#orders-400-shipping-method-does-not-match-cart).
     */
    DOES_NOT_MATCH_CART,

    /**
     * Either the shippingMethod defines no predicate, or the predicate matches the cart.
     */
    MATCHES_CART;

    @JsonCreator
    public static ShippingMethodState ofSphereValue(final String value) {
        return SphereEnumeration.findBySphereName(values(), value).get();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy