Class CustomLineItem
java.lang.Object
com.commercetools.graphql.api.types.CustomLineItem
A custom line item is a generic item that can be added to the cart but is not bound to a product. You can use it for discounts (negative money), vouchers, complex cart rules, additional services or fees. You control the lifecycle of this item.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCustomLineItem(String id, String key, String name, List<LocalizedString> nameAllLocales, BaseMoney money, Money totalPrice, String slug, Long quantity, List<ItemState> state, TaxCategory taxCategory, Reference taxCategoryRef, TaxRate taxRate, TaxedItemPrice taxedPrice, List<MethodTaxedPrice> taxedPricePortions, List<MethodTaxRate> perMethodTaxRate, List<DiscountedLineItemPriceForQuantity> discountedPricePerQuantity, CustomFieldsType custom, ItemShippingDetails shippingDetails, CustomLineItemPriceMode priceMode) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getKey()getMoney()getName()getSlug()getState()inthashCode()static CustomLineItem.BuildervoidsetCustom(CustomFieldsType custom) voidsetDiscountedPricePerQuantity(List<DiscountedLineItemPriceForQuantity> discountedPricePerQuantity) voidvoidvoidvoidvoidsetNameAllLocales(List<LocalizedString> nameAllLocales) voidsetPerMethodTaxRate(List<MethodTaxRate> perMethodTaxRate) voidsetPriceMode(CustomLineItemPriceMode priceMode) voidsetQuantity(Long quantity) voidsetShippingDetails(ItemShippingDetails shippingDetails) voidvoidvoidsetTaxCategory(TaxCategory taxCategory) voidsetTaxCategoryRef(Reference taxCategoryRef) voidsetTaxedPrice(TaxedItemPrice taxedPrice) voidsetTaxedPricePortions(List<MethodTaxedPrice> taxedPricePortions) voidsetTaxRate(TaxRate taxRate) voidsetTotalPrice(Money totalPrice) toString()
-
Constructor Details
-
CustomLineItem
public CustomLineItem() -
CustomLineItem
public CustomLineItem(String id, String key, String name, List<LocalizedString> nameAllLocales, BaseMoney money, Money totalPrice, String slug, Long quantity, List<ItemState> state, TaxCategory taxCategory, Reference taxCategoryRef, TaxRate taxRate, TaxedItemPrice taxedPrice, List<MethodTaxedPrice> taxedPricePortions, List<MethodTaxRate> perMethodTaxRate, List<DiscountedLineItemPriceForQuantity> discountedPricePerQuantity, CustomFieldsType custom, ItemShippingDetails shippingDetails, CustomLineItemPriceMode priceMode)
-
-
Method Details
-
getId
-
setId
-
getKey
-
setKey
-
getName
-
setName
-
getNameAllLocales
-
setNameAllLocales
-
getMoney
-
setMoney
-
getTotalPrice
-
setTotalPrice
-
getSlug
-
setSlug
-
getQuantity
-
setQuantity
-
getState
-
setState
-
getTaxCategory
-
setTaxCategory
-
getTaxCategoryRef
-
setTaxCategoryRef
-
getTaxRate
-
setTaxRate
-
getTaxedPrice
-
setTaxedPrice
-
getTaxedPricePortions
-
setTaxedPricePortions
-
getPerMethodTaxRate
-
setPerMethodTaxRate
-
getDiscountedPricePerQuantity
-
setDiscountedPricePerQuantity
public void setDiscountedPricePerQuantity(List<DiscountedLineItemPriceForQuantity> discountedPricePerQuantity) -
getCustom
-
setCustom
-
getShippingDetails
-
setShippingDetails
-
getPriceMode
-
setPriceMode
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-