public static class Storefront.ShopPayPaymentRequestDiscount extends AbstractResponse<Storefront.ShopPayPaymentRequestDiscount>
optimisticData, responseData| Constructor and Description |
|---|
ShopPayPaymentRequestDiscount() |
ShopPayPaymentRequestDiscount(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.MoneyV2 |
getAmount()
The amount of the discount.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getLabel()
The label of the discount.
|
Storefront.ShopPayPaymentRequestDiscount |
setAmount(Storefront.MoneyV2 arg) |
Storefront.ShopPayPaymentRequestDiscount |
setLabel(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic ShopPayPaymentRequestDiscount()
public ShopPayPaymentRequestDiscount(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.MoneyV2 getAmount()
public Storefront.ShopPayPaymentRequestDiscount setAmount(Storefront.MoneyV2 arg)
public java.lang.String getLabel()
public Storefront.ShopPayPaymentRequestDiscount setLabel(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.ShopPayPaymentRequestDiscount>