public static class Storefront.CartLineCost extends AbstractResponse<Storefront.CartLineCost>
optimisticData, responseData| Constructor and Description |
|---|
CartLineCost() |
CartLineCost(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.MoneyV2 |
getAmountPerQuantity()
The amount of the merchandise line.
|
Storefront.MoneyV2 |
getCompareAtAmountPerQuantity()
The compare at amount of the merchandise line.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.MoneyV2 |
getSubtotalAmount()
The cost of the merchandise line before line-level discounts.
|
Storefront.MoneyV2 |
getTotalAmount()
The total cost of the merchandise line.
|
Storefront.CartLineCost |
setAmountPerQuantity(Storefront.MoneyV2 arg) |
Storefront.CartLineCost |
setCompareAtAmountPerQuantity(Storefront.MoneyV2 arg) |
Storefront.CartLineCost |
setSubtotalAmount(Storefront.MoneyV2 arg) |
Storefront.CartLineCost |
setTotalAmount(Storefront.MoneyV2 arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CartLineCost()
public CartLineCost(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.MoneyV2 getAmountPerQuantity()
public Storefront.CartLineCost setAmountPerQuantity(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getCompareAtAmountPerQuantity()
public Storefront.CartLineCost setCompareAtAmountPerQuantity(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getSubtotalAmount()
public Storefront.CartLineCost setSubtotalAmount(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getTotalAmount()
public Storefront.CartLineCost setTotalAmount(Storefront.MoneyV2 arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CartLineCost>