public class OrderTotal extends AbstractResponse<OrderTotal>
optimisticData, responseData| Constructor and Description |
|---|
OrderTotal() |
OrderTotal(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Money |
getBaseGrandTotal()
The final base grand total amount in the base currency
|
List<Discount> |
getDiscounts()
The applied discounts to the order
|
Money |
getGrandTotal()
The final total amount, including shipping, discounts, and taxes
|
String |
getGraphQlTypeName() |
ShippingHandling |
getShippingHandling()
Contains details about the shipping and handling costs for the order
|
Money |
getSubtotal()
The subtotal of the order, excluding shipping, discounts, and taxes
|
List<TaxItem> |
getTaxes()
The order tax details
|
Money |
getTotalShipping()
The shipping amount for the order
|
Money |
getTotalTax()
The amount of tax applied to the order
|
OrderTotal |
setBaseGrandTotal(Money arg) |
OrderTotal |
setDiscounts(List<Discount> arg) |
OrderTotal |
setGrandTotal(Money arg) |
OrderTotal |
setShippingHandling(ShippingHandling arg) |
OrderTotal |
setSubtotal(Money arg) |
OrderTotal |
setTaxes(List<TaxItem> arg) |
OrderTotal |
setTotalShipping(Money arg) |
OrderTotal |
setTotalTax(Money arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic OrderTotal()
public OrderTotal(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
public Money getBaseGrandTotal()
public OrderTotal setBaseGrandTotal(Money arg)
public OrderTotal setDiscounts(List<Discount> arg)
public Money getGrandTotal()
public OrderTotal setGrandTotal(Money arg)
public ShippingHandling getShippingHandling()
public OrderTotal setShippingHandling(ShippingHandling arg)
public Money getSubtotal()
public OrderTotal setSubtotal(Money arg)
public OrderTotal setTaxes(List<TaxItem> arg)
public Money getTotalShipping()
public OrderTotal setTotalShipping(Money arg)
public Money getTotalTax()
public OrderTotal setTotalTax(Money arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<OrderTotal>Copyright © 2022 Adobe. All rights reserved.