public class ProductDiscount extends AbstractResponse<ProductDiscount>
optimisticData, responseData| Constructor and Description |
|---|
ProductDiscount() |
ProductDiscount(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAmountOff()
The actual value of the discount.
|
String |
getGraphQlTypeName() |
Double |
getPercentOff()
The discount expressed a percentage.
|
ProductDiscount |
setAmountOff(Double arg) |
ProductDiscount |
setPercentOff(Double arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic ProductDiscount()
public ProductDiscount(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
public Double getAmountOff()
public ProductDiscount setAmountOff(Double arg)
public Double getPercentOff()
public ProductDiscount setPercentOff(Double arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<ProductDiscount>Copyright © 2022 Adobe. All rights reserved.