public class VirtualCartItem extends AbstractResponse<VirtualCartItem> implements CartItemInterface
optimisticData, responseData| Constructor and Description |
|---|
VirtualCartItem() |
VirtualCartItem(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
List<SelectedCustomizableOption> |
getCustomizableOptions() |
String |
getGraphQlTypeName() |
String |
getId()
Deprecated.
Use `uid` instead
|
CartItemPrices |
getPrices() |
ProductInterface |
getProduct() |
Double |
getQuantity() |
ID |
getUid()
The unique ID for a `CartItemInterface` object
|
VirtualCartItem |
setCustomizableOptions(List<SelectedCustomizableOption> arg) |
VirtualCartItem |
setId(String arg) |
VirtualCartItem |
setPrices(CartItemPrices arg) |
VirtualCartItem |
setProduct(ProductInterface arg) |
VirtualCartItem |
setQuantity(Double arg) |
VirtualCartItem |
setUid(ID arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsStringpublic VirtualCartItem()
public VirtualCartItem(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
getGraphQlTypeName in interface CartItemInterfacepublic List<SelectedCustomizableOption> getCustomizableOptions()
public VirtualCartItem setCustomizableOptions(List<SelectedCustomizableOption> arg)
@Deprecated public String getId()
getId in interface CartItemInterfacepublic VirtualCartItem setId(String arg)
public CartItemPrices getPrices()
getPrices in interface CartItemInterfacepublic VirtualCartItem setPrices(CartItemPrices arg)
public ProductInterface getProduct()
getProduct in interface CartItemInterfacepublic VirtualCartItem setProduct(ProductInterface arg)
public Double getQuantity()
getQuantity in interface CartItemInterfacepublic VirtualCartItem setQuantity(Double arg)
public ID getUid()
getUid in interface CartItemInterfacepublic VirtualCartItem setUid(ID arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<VirtualCartItem>Copyright © 2022 Adobe. All rights reserved.