public static class Storefront.OrderLineItem extends AbstractResponse<Storefront.OrderLineItem>
optimisticData, responseData| Constructor and Description |
|---|
OrderLineItem() |
OrderLineItem(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getCurrentQuantity()
The number of entries associated to the line item minus the items that have been removed.
|
java.util.List<Storefront.Attribute> |
getCustomAttributes()
List of custom attributes associated to the line item.
|
java.util.List<Storefront.DiscountAllocation> |
getDiscountAllocations()
The discounts that have been allocated onto the order line item by discount applications.
|
Storefront.MoneyV2 |
getDiscountedTotalPrice()
The total price of the line item, including discounts, and displayed in the presentment currency.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.MoneyV2 |
getOriginalTotalPrice()
The total price of the line item, not including any discounts.
|
java.lang.Integer |
getQuantity()
The number of products variants associated to the line item.
|
java.lang.String |
getTitle()
The title of the product combined with title of the variant.
|
Storefront.ProductVariant |
getVariant()
The product variant object associated to the line item.
|
Storefront.OrderLineItem |
setCurrentQuantity(java.lang.Integer arg) |
Storefront.OrderLineItem |
setCustomAttributes(java.util.List<Storefront.Attribute> arg) |
Storefront.OrderLineItem |
setDiscountAllocations(java.util.List<Storefront.DiscountAllocation> arg) |
Storefront.OrderLineItem |
setDiscountedTotalPrice(Storefront.MoneyV2 arg) |
Storefront.OrderLineItem |
setOriginalTotalPrice(Storefront.MoneyV2 arg) |
Storefront.OrderLineItem |
setQuantity(java.lang.Integer arg) |
Storefront.OrderLineItem |
setTitle(java.lang.String arg) |
Storefront.OrderLineItem |
setVariant(Storefront.ProductVariant arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic OrderLineItem()
public OrderLineItem(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.lang.Integer getCurrentQuantity()
public Storefront.OrderLineItem setCurrentQuantity(java.lang.Integer arg)
public java.util.List<Storefront.Attribute> getCustomAttributes()
public Storefront.OrderLineItem setCustomAttributes(java.util.List<Storefront.Attribute> arg)
public java.util.List<Storefront.DiscountAllocation> getDiscountAllocations()
public Storefront.OrderLineItem setDiscountAllocations(java.util.List<Storefront.DiscountAllocation> arg)
public Storefront.MoneyV2 getDiscountedTotalPrice()
public Storefront.OrderLineItem setDiscountedTotalPrice(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getOriginalTotalPrice()
public Storefront.OrderLineItem setOriginalTotalPrice(Storefront.MoneyV2 arg)
public java.lang.Integer getQuantity()
public Storefront.OrderLineItem setQuantity(java.lang.Integer arg)
public java.lang.String getTitle()
public Storefront.OrderLineItem setTitle(java.lang.String arg)
public Storefront.ProductVariant getVariant()
public Storefront.OrderLineItem setVariant(Storefront.ProductVariant arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.OrderLineItem>