public class Discount extends AbstractResponse<Discount>
optimisticData, responseData| Constructor and Description |
|---|
Discount() |
Discount(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Money |
getAmount()
The amount of the discount
|
String |
getGraphQlTypeName() |
String |
getLabel()
A description of the discount
|
Discount |
setAmount(Money arg) |
Discount |
setLabel(String arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic Discount()
public Discount(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
public Money getAmount()
public String getLabel()
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<Discount>Copyright © 2022 Adobe. All rights reserved.