public class AddProductsToCartOutput extends AbstractResponse<AddProductsToCartOutput>
optimisticData, responseData| Constructor and Description |
|---|
AddProductsToCartOutput() |
AddProductsToCartOutput(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Cart |
getCart()
The cart after products have been added
|
String |
getGraphQlTypeName() |
List<CartUserInputError> |
getUserErrors()
An error encountered while adding an item to the cart.
|
AddProductsToCartOutput |
setCart(Cart arg) |
AddProductsToCartOutput |
setUserErrors(List<CartUserInputError> arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic AddProductsToCartOutput()
public AddProductsToCartOutput(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
public Cart getCart()
public AddProductsToCartOutput setCart(Cart arg)
public List<CartUserInputError> getUserErrors()
public AddProductsToCartOutput setUserErrors(List<CartUserInputError> arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<AddProductsToCartOutput>Copyright © 2022 Adobe. All rights reserved.