public static class Storefront.Checkout extends AbstractResponse<Storefront.Checkout> implements Storefront.Node
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
java.util.List<Storefront.AppliedGiftCard> |
getAppliedGiftCards()
The gift cards used on the checkout.
|
Storefront.AvailableShippingRates |
getAvailableShippingRates()
The available shipping rates for this Checkout.
|
Storefront.CheckoutBuyerIdentity |
getBuyerIdentity()
The identity of the customer associated with the checkout.
|
DateTime |
getCompletedAt()
The date and time when the checkout was completed.
|
DateTime |
getCreatedAt()
The date and time when the checkout was created.
|
Storefront.CurrencyCode |
getCurrencyCode()
The currency code for the checkout.
|
java.util.List<Storefront.Attribute> |
getCustomAttributes()
A list of extra information that is added to the checkout.
|
Storefront.DiscountApplicationConnection |
getDiscountApplications()
Discounts that have been applied on the checkout.
|
java.lang.String |
getEmail()
The email attached to this checkout.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
A globally-unique identifier.
|
Storefront.CheckoutLineItemConnection |
getLineItems()
A list of line item objects, each one containing information about an item in the checkout.
|
Storefront.MoneyV2 |
getLineItemsSubtotalPrice()
The sum of all the prices of all the items in the checkout.
|
java.lang.String |
getNote()
The note associated with the checkout.
|
Storefront.Order |
getOrder()
The resulting order from a paid checkout.
|
java.lang.String |
getOrderStatusUrl()
The Order Status Page for this Checkout, null when checkout is not completed.
|
Storefront.MoneyV2 |
getPaymentDue()
The amount left to be paid.
|
Storefront.MoneyV2 |
getPaymentDueV2()
Deprecated.
Use `paymentDue` instead.
|
java.lang.Boolean |
getReady()
Whether or not the Checkout is ready and can be completed.
|
java.lang.Boolean |
getRequiresShipping()
States whether or not the fulfillment requires shipping.
|
Storefront.MailingAddress |
getShippingAddress()
The shipping address to where the line items will be shipped.
|
java.util.List<Storefront.DiscountAllocation> |
getShippingDiscountAllocations()
The discounts that have been allocated onto the shipping line by discount applications.
|
Storefront.ShippingRate |
getShippingLine()
Once a shipping rate is selected by the customer it is transitioned to a `shipping_line` object.
|
Storefront.MoneyV2 |
getSubtotalPrice()
The price at checkout before shipping and taxes.
|
Storefront.MoneyV2 |
getSubtotalPriceV2()
Deprecated.
Use `subtotalPrice` instead.
|
java.lang.Boolean |
getTaxesIncluded()
Whether taxes are included in the line item and shipping line prices.
|
java.lang.Boolean |
getTaxExempt()
Whether the checkout is tax exempt.
|
Storefront.MoneyV2 |
getTotalDuties()
The sum of all the duties applied to the line items in the checkout.
|
Storefront.MoneyV2 |
getTotalPrice()
The sum of all the prices of all the items in the checkout, including taxes and duties.
|
Storefront.MoneyV2 |
getTotalPriceV2()
Deprecated.
Use `totalPrice` instead.
|
Storefront.MoneyV2 |
getTotalTax()
The sum of all the taxes applied to the line items and shipping lines in the checkout.
|
Storefront.MoneyV2 |
getTotalTaxV2()
Deprecated.
Use `totalTax` instead.
|
DateTime |
getUpdatedAt()
The date and time when the checkout was last updated.
|
java.lang.String |
getWebUrl()
The url pointing to the checkout accessible from the web.
|
Storefront.Checkout |
setAppliedGiftCards(java.util.List<Storefront.AppliedGiftCard> arg) |
Storefront.Checkout |
setAvailableShippingRates(Storefront.AvailableShippingRates arg) |
Storefront.Checkout |
setBuyerIdentity(Storefront.CheckoutBuyerIdentity arg) |
Storefront.Checkout |
setCompletedAt(DateTime arg) |
Storefront.Checkout |
setCreatedAt(DateTime arg) |
Storefront.Checkout |
setCurrencyCode(Storefront.CurrencyCode arg) |
Storefront.Checkout |
setCustomAttributes(java.util.List<Storefront.Attribute> arg) |
Storefront.Checkout |
setDiscountApplications(Storefront.DiscountApplicationConnection arg) |
Storefront.Checkout |
setEmail(java.lang.String arg) |
Storefront.Checkout |
setLineItems(Storefront.CheckoutLineItemConnection arg) |
Storefront.Checkout |
setLineItemsSubtotalPrice(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setNote(java.lang.String arg) |
Storefront.Checkout |
setOrder(Storefront.Order arg) |
Storefront.Checkout |
setOrderStatusUrl(java.lang.String arg) |
Storefront.Checkout |
setPaymentDue(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setPaymentDueV2(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setReady(java.lang.Boolean arg) |
Storefront.Checkout |
setRequiresShipping(java.lang.Boolean arg) |
Storefront.Checkout |
setShippingAddress(Storefront.MailingAddress arg) |
Storefront.Checkout |
setShippingDiscountAllocations(java.util.List<Storefront.DiscountAllocation> arg) |
Storefront.Checkout |
setShippingLine(Storefront.ShippingRate arg) |
Storefront.Checkout |
setSubtotalPrice(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setSubtotalPriceV2(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setTaxesIncluded(java.lang.Boolean arg) |
Storefront.Checkout |
setTaxExempt(java.lang.Boolean arg) |
Storefront.Checkout |
setTotalDuties(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setTotalPrice(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setTotalPriceV2(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setTotalTax(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setTotalTaxV2(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setUpdatedAt(DateTime arg) |
Storefront.Checkout |
setWebUrl(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Checkout()
public Checkout(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic java.util.List<Storefront.AppliedGiftCard> getAppliedGiftCards()
public Storefront.Checkout setAppliedGiftCards(java.util.List<Storefront.AppliedGiftCard> arg)
public Storefront.AvailableShippingRates getAvailableShippingRates()
public Storefront.Checkout setAvailableShippingRates(Storefront.AvailableShippingRates arg)
public Storefront.CheckoutBuyerIdentity getBuyerIdentity()
public Storefront.Checkout setBuyerIdentity(Storefront.CheckoutBuyerIdentity arg)
public DateTime getCompletedAt()
public Storefront.Checkout setCompletedAt(DateTime arg)
public DateTime getCreatedAt()
public Storefront.Checkout setCreatedAt(DateTime arg)
public Storefront.CurrencyCode getCurrencyCode()
public Storefront.Checkout setCurrencyCode(Storefront.CurrencyCode arg)
public java.util.List<Storefront.Attribute> getCustomAttributes()
public Storefront.Checkout setCustomAttributes(java.util.List<Storefront.Attribute> arg)
public Storefront.DiscountApplicationConnection getDiscountApplications()
public Storefront.Checkout setDiscountApplications(Storefront.DiscountApplicationConnection arg)
public java.lang.String getEmail()
public Storefront.Checkout setEmail(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic Storefront.CheckoutLineItemConnection getLineItems()
public Storefront.Checkout setLineItems(Storefront.CheckoutLineItemConnection arg)
public Storefront.MoneyV2 getLineItemsSubtotalPrice()
public Storefront.Checkout setLineItemsSubtotalPrice(Storefront.MoneyV2 arg)
public java.lang.String getNote()
public Storefront.Checkout setNote(java.lang.String arg)
public Storefront.Order getOrder()
public Storefront.Checkout setOrder(Storefront.Order arg)
public java.lang.String getOrderStatusUrl()
public Storefront.Checkout setOrderStatusUrl(java.lang.String arg)
public Storefront.MoneyV2 getPaymentDue()
public Storefront.Checkout setPaymentDue(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getPaymentDueV2()
public Storefront.Checkout setPaymentDueV2(Storefront.MoneyV2 arg)
public java.lang.Boolean getReady()
public Storefront.Checkout setReady(java.lang.Boolean arg)
public java.lang.Boolean getRequiresShipping()
public Storefront.Checkout setRequiresShipping(java.lang.Boolean arg)
public Storefront.MailingAddress getShippingAddress()
public Storefront.Checkout setShippingAddress(Storefront.MailingAddress arg)
public java.util.List<Storefront.DiscountAllocation> getShippingDiscountAllocations()
public Storefront.Checkout setShippingDiscountAllocations(java.util.List<Storefront.DiscountAllocation> arg)
public Storefront.ShippingRate getShippingLine()
public Storefront.Checkout setShippingLine(Storefront.ShippingRate arg)
public Storefront.MoneyV2 getSubtotalPrice()
public Storefront.Checkout setSubtotalPrice(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getSubtotalPriceV2()
public Storefront.Checkout setSubtotalPriceV2(Storefront.MoneyV2 arg)
public java.lang.Boolean getTaxExempt()
public Storefront.Checkout setTaxExempt(java.lang.Boolean arg)
public java.lang.Boolean getTaxesIncluded()
public Storefront.Checkout setTaxesIncluded(java.lang.Boolean arg)
public Storefront.MoneyV2 getTotalDuties()
public Storefront.Checkout setTotalDuties(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getTotalPrice()
public Storefront.Checkout setTotalPrice(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getTotalPriceV2()
public Storefront.Checkout setTotalPriceV2(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getTotalTax()
public Storefront.Checkout setTotalTax(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getTotalTaxV2()
public Storefront.Checkout setTotalTaxV2(Storefront.MoneyV2 arg)
public DateTime getUpdatedAt()
public Storefront.Checkout setUpdatedAt(DateTime arg)
public java.lang.String getWebUrl()
public Storefront.Checkout setWebUrl(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Checkout>