public static class Storefront.CartAutomaticDiscountAllocation extends AbstractResponse<Storefront.CartAutomaticDiscountAllocation> implements Storefront.CartDiscountAllocation
optimisticData, responseData| Constructor and Description |
|---|
CartAutomaticDiscountAllocation() |
CartAutomaticDiscountAllocation(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getTitle()
The title of the allocated discount.
|
Storefront.CartAutomaticDiscountAllocation |
setDiscountedAmount(Storefront.MoneyV2 arg) |
Storefront.CartAutomaticDiscountAllocation |
setTargetType(Storefront.DiscountApplicationTargetType arg) |
Storefront.CartAutomaticDiscountAllocation |
setTitle(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CartAutomaticDiscountAllocation()
public CartAutomaticDiscountAllocation(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.CartDiscountAllocationpublic Storefront.MoneyV2 getDiscountedAmount()
getDiscountedAmount in interface Storefront.CartDiscountAllocationpublic Storefront.CartAutomaticDiscountAllocation setDiscountedAmount(Storefront.MoneyV2 arg)
public Storefront.DiscountApplicationTargetType getTargetType()
getTargetType in interface Storefront.CartDiscountAllocationpublic Storefront.CartAutomaticDiscountAllocation setTargetType(Storefront.DiscountApplicationTargetType arg)
public java.lang.String getTitle()
public Storefront.CartAutomaticDiscountAllocation setTitle(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CartAutomaticDiscountAllocation>