public static class Storefront.UnknownCartDiscountAllocation extends AbstractResponse<Storefront.UnknownCartDiscountAllocation> implements Storefront.CartDiscountAllocation
optimisticData, responseData| Constructor and Description |
|---|
UnknownCartDiscountAllocation() |
UnknownCartDiscountAllocation(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.CartDiscountAllocation |
create(JsonObject fields) |
Storefront.MoneyV2 |
getDiscountedAmount()
The discounted amount that has been applied to the cart line.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.UnknownCartDiscountAllocation |
setDiscountedAmount(Storefront.MoneyV2 arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic UnknownCartDiscountAllocation()
public UnknownCartDiscountAllocation(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic static Storefront.CartDiscountAllocation create(JsonObject fields) throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.CartDiscountAllocationpublic Storefront.MoneyV2 getDiscountedAmount()
getDiscountedAmount in interface Storefront.CartDiscountAllocationpublic Storefront.UnknownCartDiscountAllocation setDiscountedAmount(Storefront.MoneyV2 arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.UnknownCartDiscountAllocation>