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

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

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.carts;

import io.sphere.sdk.cartdiscounts.DiscountedLineItemPrice;
import io.sphere.sdk.cartdiscounts.DiscountedLineItemPriceForQuantity;
import io.sphere.sdk.types.Custom;

import javax.annotation.Nullable;
import javax.money.MonetaryAmount;
import java.util.List;
import java.util.Set;

/**
 * 

Interface for common stuff of {@link LineItem}s and {@link CustomLineItem}s.

*/ public interface LineItemLike extends Custom { String getId(); Set getState(); Long getQuantity(); /** * * @deprecated use {@link #getDiscountedPricePerQuantity()} instead * @return DiscountedLineItemPrice */ @Nullable @Deprecated DiscountedLineItemPrice getDiscountedPrice(); MonetaryAmount getTotalPrice(); List getDiscountedPricePerQuantity(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy