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.DiscountApplicationTargetType |
getTargetType()
The type of line that the discount is applicable towards.
|
Storefront.UnknownCartDiscountAllocation |
setDiscountedAmount(Storefront.MoneyV2 arg) |
Storefront.UnknownCartDiscountAllocation |
setTargetType(Storefront.DiscountApplicationTargetType 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 Storefront.DiscountApplicationTargetType getTargetType()
getTargetType in interface Storefront.CartDiscountAllocationpublic Storefront.UnknownCartDiscountAllocation setTargetType(Storefront.DiscountApplicationTargetType arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.UnknownCartDiscountAllocation>