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