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

io.sphere.sdk.carts.LineItemPriceMode 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 LineItemPriceMode implements SphereEnumeration {
    /**
     * The price is selected from the product variant. This is the default mode.
     */
    PLATFORM,

    /**
     * The price was set externally. Cart discounts are disabled for the line items with this price mode. Any changes to the line item quantity will reset it back to the {@code PLATFORM} price mode.
     * @see io.sphere.sdk.carts.commands.updateactions.SetLineItemTotalPrice
     */
    EXTERNAL_TOTAL;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy