public static class Storefront.CartLine extends AbstractResponse<Storefront.CartLine> implements Storefront.BaseCartLine, Storefront.Node
optimisticData, responseDatacollectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CartLine()
public CartLine(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.BaseCartLinegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic Storefront.Attribute getAttribute()
getAttribute in interface Storefront.BaseCartLinepublic Storefront.CartLine setAttribute(Storefront.Attribute arg)
public java.util.List<Storefront.Attribute> getAttributes()
getAttributes in interface Storefront.BaseCartLinepublic Storefront.CartLine setAttributes(java.util.List<Storefront.Attribute> arg)
public Storefront.CartLineCost getCost()
getCost in interface Storefront.BaseCartLinepublic Storefront.CartLine setCost(Storefront.CartLineCost arg)
public java.util.List<Storefront.CartDiscountAllocation> getDiscountAllocations()
getDiscountAllocations in interface Storefront.BaseCartLinepublic Storefront.CartLine setDiscountAllocations(java.util.List<Storefront.CartDiscountAllocation> arg)
public Storefront.CartLineEstimatedCost getEstimatedCost()
getEstimatedCost in interface Storefront.BaseCartLinepublic Storefront.CartLine setEstimatedCost(Storefront.CartLineEstimatedCost arg)
public ID getId()
getId in interface Storefront.BaseCartLinegetId in interface Storefront.NodegetId in interface Nodepublic Storefront.Merchandise getMerchandise()
getMerchandise in interface Storefront.BaseCartLinepublic Storefront.CartLine setMerchandise(Storefront.Merchandise arg)
public java.lang.Integer getQuantity()
getQuantity in interface Storefront.BaseCartLinepublic Storefront.CartLine setQuantity(java.lang.Integer arg)
public Storefront.SellingPlanAllocation getSellingPlanAllocation()
getSellingPlanAllocation in interface Storefront.BaseCartLinepublic Storefront.CartLine setSellingPlanAllocation(Storefront.SellingPlanAllocation arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CartLine>