public static class Storefront.DiscountAllocation
extends <any>
| 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) |
public 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)