io.sphere.sdk.carts.LineItemLike Maven / Gradle / Ivy
package io.sphere.sdk.carts;
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();
MonetaryAmount getTotalPrice();
@Nullable
TaxedItemPrice getTaxedPrice();
/**
*
* Gets discount information for groups of line items.
*
* See also more infos at stackoverflow.
*
* @return discount infos
*/
List getDiscountedPricePerQuantity();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy