public static class Storefront.DiscountAllocation extends AbstractResponse<Storefront.DiscountAllocation>
optimisticData, responseData| Constructor and Description |
|---|
DiscountAllocation() |
DiscountAllocation(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.MoneyV2 |
getAllocatedAmount()
Amount of discount allocated.
|
Storefront.DiscountApplication |
getDiscountApplication()
The discount this allocated amount originated from.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.DiscountAllocation |
setAllocatedAmount(Storefront.MoneyV2 arg) |
Storefront.DiscountAllocation |
setDiscountApplication(Storefront.DiscountApplication arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic DiscountAllocation()
public DiscountAllocation(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.MoneyV2 getAllocatedAmount()
public Storefront.DiscountAllocation setAllocatedAmount(Storefront.MoneyV2 arg)
public Storefront.DiscountApplication getDiscountApplication()
public Storefront.DiscountAllocation setDiscountApplication(Storefront.DiscountApplication arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.DiscountAllocation>