public static class Storefront.CheckoutLineItem extends <any> implements Storefront.Node
| Constructor and Description |
|---|
CheckoutLineItem() |
CheckoutLineItem(ID id) |
CheckoutLineItem(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Storefront.Attribute> |
getCustomAttributes()
Extra information in the form of an array of Key-Value pairs about the line item.
|
java.util.List<Storefront.DiscountAllocation> |
getDiscountAllocations()
The discounts that have been allocated onto the checkout line item by discount applications.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
Globally unique identifier.
|
java.lang.Integer |
getQuantity()
The quantity of the line item.
|
java.lang.String |
getTitle()
Title of the line item.
|
Storefront.MoneyV2 |
getUnitPrice()
Unit price of the line item.
|
Storefront.ProductVariant |
getVariant()
Product variant of the line item.
|
Storefront.CheckoutLineItem |
setCustomAttributes(java.util.List<Storefront.Attribute> arg) |
Storefront.CheckoutLineItem |
setDiscountAllocations(java.util.List<Storefront.DiscountAllocation> arg) |
Storefront.CheckoutLineItem |
setQuantity(java.lang.Integer arg) |
Storefront.CheckoutLineItem |
setTitle(java.lang.String arg) |
Storefront.CheckoutLineItem |
setUnitPrice(Storefront.MoneyV2 arg) |
Storefront.CheckoutLineItem |
setVariant(Storefront.ProductVariant arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public CheckoutLineItem()
public CheckoutLineItem(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic CheckoutLineItem(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.Nodepublic java.util.List<Storefront.Attribute> getCustomAttributes()
public Storefront.CheckoutLineItem setCustomAttributes(java.util.List<Storefront.Attribute> arg)
public java.util.List<Storefront.DiscountAllocation> getDiscountAllocations()
public Storefront.CheckoutLineItem setDiscountAllocations(java.util.List<Storefront.DiscountAllocation> arg)
public ID getId()
getId in interface Storefront.Nodepublic java.lang.Integer getQuantity()
public Storefront.CheckoutLineItem setQuantity(java.lang.Integer arg)
public java.lang.String getTitle()
public Storefront.CheckoutLineItem setTitle(java.lang.String arg)
public Storefront.MoneyV2 getUnitPrice()
public Storefront.CheckoutLineItem setUnitPrice(Storefront.MoneyV2 arg)
public Storefront.ProductVariant getVariant()
public Storefront.CheckoutLineItem setVariant(Storefront.ProductVariant arg)
public boolean unwrapsToObject(java.lang.String key)