public static class Storefront.CartDiscountCode extends AbstractResponse<Storefront.CartDiscountCode>
optimisticData, responseData| Constructor and Description |
|---|
CartDiscountCode() |
CartDiscountCode(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getApplicable()
Whether the discount code is applicable to the cart's current contents.
|
java.lang.String |
getCode()
The code for the discount.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.CartDiscountCode |
setApplicable(java.lang.Boolean arg) |
Storefront.CartDiscountCode |
setCode(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CartDiscountCode()
public CartDiscountCode(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.lang.Boolean getApplicable()
public Storefront.CartDiscountCode setApplicable(java.lang.Boolean arg)
public java.lang.String getCode()
public Storefront.CartDiscountCode setCode(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CartDiscountCode>