public interface LineItem extends LineItemLike
A line item is a snapshot of a product variant at the time it was added to the cart.
A LineItem can have custom fields.
String getProductId()
LocalizedString getName()
ProductVariant getVariant()
Price getPrice()
Set<ItemState> getState()
getState in interface LineItemLike@Nullable ZonedDateTime getAddedAt()
@Nullable LocalizedString getProductSlug()
String getId()
getId in interface LineItemLikeLong getQuantity()
getQuantity in interface LineItemLikeCustomFields getCustom()
javax.money.MonetaryAmount getTotalPrice()
getTotalPrice in interface LineItemLikeList<DiscountedLineItemPriceForQuantity> getDiscountedPricePerQuantity()
LineItemLikegetDiscountedPricePerQuantity in interface LineItemLike@Nullable TaxedItemPrice getTaxedPrice()
getTaxedPrice in interface LineItemLikeLineItemPriceMode getPriceMode()
@Nullable Reference<ProductType> getProductType()
LineItemMode getLineItemMode()
@Nullable ItemShippingDetails getShippingDetails()
@Nullable ZonedDateTime getLastModifiedAt()
static String resourceTypeId()
CustomFields.TypeDraft.getResourceTypeIds(),
Custom