public static class Storefront.Checkout extends <any> implements Storefront.Node
| Constructor and Description |
|---|
Checkout() |
Checkout(ID id) |
Checkout(JsonObject fields) |
| 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.
|
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.Customer |
getCustomer()
Deprecated.
This field will always return null. If you have an authentication token for the customer, you can use the `customer` field on the query root to retrieve it.
|
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()
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.
|
java.math.BigDecimal |
getPaymentDue()
Deprecated.
Use `paymentDueV2` instead
|
Storefront.MoneyV2 |
getPaymentDueV2()
The amount left to be paid.
|
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.
|
java.math.BigDecimal |
getSubtotalPrice()
Deprecated.
Use `subtotalPriceV2` instead
|
Storefront.MoneyV2 |
getSubtotalPriceV2()
Price of the checkout before duties, shipping and taxes.
|
java.lang.Boolean |
getTaxesIncluded()
Specifies if taxes are included in the line item and shipping line prices.
|
java.lang.Boolean |
getTaxExempt()
Specifies if the Checkout is tax exempt.
|
Storefront.MoneyV2 |
getTotalDuties()
The sum of all the duties applied to the line items in the checkout.
|
java.math.BigDecimal |
getTotalPrice()
Deprecated.
Use `totalPriceV2` instead
|
Storefront.MoneyV2 |
getTotalPriceV2()
The sum of all the prices of all the items in the checkout, duties, taxes and discounts included.
|
java.math.BigDecimal |
getTotalTax()
Deprecated.
Use `totalTaxV2` instead
|
Storefront.MoneyV2 |
getTotalTaxV2()
The sum of all the taxes applied to the line items and shipping lines in the checkout.
|
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 |
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 |
setCustomer(Storefront.Customer 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(java.math.BigDecimal 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(java.math.BigDecimal 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(java.math.BigDecimal arg) |
Storefront.Checkout |
setTotalPriceV2(Storefront.MoneyV2 arg) |
Storefront.Checkout |
setTotalTax(java.math.BigDecimal 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) |
public Checkout()
public Checkout(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic Checkout(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.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 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.Customer getCustomer()
public Storefront.Checkout setCustomer(Storefront.Customer 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.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 java.math.BigDecimal getPaymentDue()
public Storefront.Checkout setPaymentDue(java.math.BigDecimal 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 java.math.BigDecimal getSubtotalPrice()
public Storefront.Checkout setSubtotalPrice(java.math.BigDecimal 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 java.math.BigDecimal getTotalPrice()
public Storefront.Checkout setTotalPrice(java.math.BigDecimal arg)
public Storefront.MoneyV2 getTotalPriceV2()
public Storefront.Checkout setTotalPriceV2(Storefront.MoneyV2 arg)
public java.math.BigDecimal getTotalTax()
public Storefront.Checkout setTotalTax(java.math.BigDecimal 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)