ModelCheckouts module
Checkout
A model in the Checkouts module, with 45 members for templates, 45 API properties and 45 members for admin templates.
Templates view
Properties 45
Take no arguments.
-
#
isReadyForPayment() -
bool - Checks if the checkout is ready for payment. There is a billing address set, there is a person and their email. Each fulfillment with a selected unexpired shipping rate.
-
#
isFullyPaid() -
bool - Has the checkout been fully paid? This checks if there are payment/s, or at least pre-authorizations, covering the checkout total.
-
#
getSettledAmountAsMoney() -
Money - Gets the settled amount as a Money object. Represents the total committed across the checkout's invoices: full total for paid invoices, authorized amount for open invoices. Draft and voided invoices are excluded.
-
#
getSourceRecord() -
?Model - Gets the record the checkout was created from: a cart or a quote. Returns null when the checkout is split from its cart, or when the source record no longer exists.
-
#
getCart() -
?Cart - Gets the cart the checkout was created from. Returns null when the checkout is split from its cart or created from a quote.
-
#
getQuote() -
?Quote - Gets the quote the checkout was created from. Returns null when the checkout was created from a cart.
-
#
getItemTotalAsMoney() -
Money - Gets the item total as a Money object. Represents the sum of all items' Amount values.
-
#
getShippingTotalAsMoney() -
Money - Gets the shipping total as a Money object. Represents the net shipping total. Tax and discount on shipping are tracked in Tax Total and Discount Total.
-
#
getHandlingTotalAsMoney() -
Money - Gets the handling total as a Money object. Represents the net handling total. Tax and discount on handling are tracked in Tax Total and Discount Total.
-
#
getInsuranceTotalAsMoney() -
Money - Gets the insurance total as a Money object. Represents the net insurance total. Tax and discount on insurance are tracked in Tax Total and Discount Total.
-
#
getDiscountTotalAsMoney() -
Money - Gets the discount total as a Money object. Represents the sum of discount values across all line items, including shipping, handling, etc.
-
#
getTaxTotalAsMoney() -
Money - Gets the tax total as a Money object. Represents the sum of tax values across all line items, including shipping, handling, etc.
-
#
getSurchargeTotalAsMoney() -
Money - Gets the surcharge total as a Money object. Represents the surcharge total.
-
#
getTotalAsMoney() -
Money - Gets the grand total as a Money object. Represents the final value calculated as
Item Total + Shipping Total + Handling Total + Insurance Total - Discount Total + Tax Total + Surcharge Total. -
#
getId() -
?int -
#
getUuid() -
?string -
#
getExternalId() -
?string -
#
getComments() -
?string -
#
getShippingTotal() -
?string - Represents the net shipping total. Tax and discount on shipping are tracked in Tax Total and Discount Total.
-
#
getHandlingTotal() -
?string - Represents the net handling total. Tax and discount on handling are tracked in Tax Total and Discount Total.
-
#
getInsuranceTotal() -
?string - Represents the net insurance total. Tax and discount on insurance are tracked in Tax Total and Discount Total.
-
#
getDiscountTotal() -
?string - Represents the sum of discount values across all line items, including shipping, handling, etc.
-
#
getTaxTotal() -
?string - Represents the sum of tax values across all line items, including shipping, handling, etc.
-
#
getTotal() -
?string - Represents the final value calculated as
Item Total + Shipping Total + Handling Total + Insurance Total - Discount Total + Tax Total + Surcharge Total. -
#
getItems() -
?Collection<Item> -
#
getFulfillments() -
?Collection<Fulfillment> -
#
getMetadataFieldValues() -
?Collection<MetadataFieldValue> -
#
getDiscountLogs() -
?Collection<Log>
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 45
Read-only values on the record.
-
#
readyForPayment -
bool - Checks if the checkout is ready for payment. There is a billing address set, there is a person and their email. Each fulfillment with a selected unexpired shipping rate.
-
#
fullyPaid -
bool - Has the checkout been fully paid? This checks if there are payment/s, or at least pre-authorizations, covering the checkout total.
-
#
settledAmountAsMoney -
Money - Gets the settled amount as a Money object. Represents the total committed across the checkout's invoices: full total for paid invoices, authorized amount for open invoices. Draft and voided invoices are excluded.
-
#
sourceRecord -
?Model - Gets the record the checkout was created from: a cart or a quote. Returns null when the checkout is split from its cart, or when the source record no longer exists.
-
#
cart -
?Cart - Gets the cart the checkout was created from. Returns null when the checkout is split from its cart or created from a quote.
-
#
quote -
?Quote - Gets the quote the checkout was created from. Returns null when the checkout was created from a cart.
-
#
itemTotalAsMoney -
Money - Gets the item total as a Money object. Represents the sum of all items' Amount values.
-
#
shippingTotalAsMoney -
Money - Gets the shipping total as a Money object. Represents the net shipping total. Tax and discount on shipping are tracked in Tax Total and Discount Total.
-
#
handlingTotalAsMoney -
Money - Gets the handling total as a Money object. Represents the net handling total. Tax and discount on handling are tracked in Tax Total and Discount Total.
-
#
insuranceTotalAsMoney -
Money - Gets the insurance total as a Money object. Represents the net insurance total. Tax and discount on insurance are tracked in Tax Total and Discount Total.
-
#
discountTotalAsMoney -
Money - Gets the discount total as a Money object. Represents the sum of discount values across all line items, including shipping, handling, etc.
-
#
taxTotalAsMoney -
Money - Gets the tax total as a Money object. Represents the sum of tax values across all line items, including shipping, handling, etc.
-
#
surchargeTotalAsMoney -
Money - Gets the surcharge total as a Money object. Represents the surcharge total.
-
#
totalAsMoney -
Money - Gets the grand total as a Money object. Represents the final value calculated as
Item Total + Shipping Total + Handling Total + Insurance Total - Discount Total + Tax Total + Surcharge Total. -
#
id -
?int -
#
uuid -
?string -
#
externalId -
?string -
#
comments -
?string -
#
shippingTotal -
?string - Represents the net shipping total. Tax and discount on shipping are tracked in Tax Total and Discount Total.
-
#
handlingTotal -
?string - Represents the net handling total. Tax and discount on handling are tracked in Tax Total and Discount Total.
-
#
insuranceTotal -
?string - Represents the net insurance total. Tax and discount on insurance are tracked in Tax Total and Discount Total.
-
#
discountTotal -
?string - Represents the sum of discount values across all line items, including shipping, handling, etc.
-
#
taxTotal -
?string - Represents the sum of tax values across all line items, including shipping, handling, etc.
-
#
total -
?string - Represents the final value calculated as
Item Total + Shipping Total + Handling Total + Insurance Total - Discount Total + Tax Total + Surcharge Total. -
#
items -
?Collection<Item> -
#
fulfillments -
?Collection<Fulfillment> -
#
metadataFieldValues -
?Collection<MetadataFieldValue> -
#
discountLogs -
?Collection<Log>
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 45
Take no arguments.
-
#
isReadyForPayment() -
bool - Checks if the checkout is ready for payment. There is a billing address set, there is a person and their email. Each fulfillment with a selected unexpired shipping rate.
-
#
isFullyPaid() -
bool - Has the checkout been fully paid? This checks if there are payment/s, or at least pre-authorizations, covering the checkout total.
-
#
getSettledAmountAsMoney() -
Money - Gets the settled amount as a Money object. Represents the total committed across the checkout's invoices: full total for paid invoices, authorized amount for open invoices. Draft and voided invoices are excluded.
-
#
getSourceRecord() -
?Model - Gets the record the checkout was created from: a cart or a quote. Returns null when the checkout is split from its cart, or when the source record no longer exists.
-
#
getCart() -
?Cart - Gets the cart the checkout was created from. Returns null when the checkout is split from its cart or created from a quote.
-
#
getQuote() -
?Quote - Gets the quote the checkout was created from. Returns null when the checkout was created from a cart.
-
#
getItemTotalAsMoney() -
Money - Gets the item total as a Money object. Represents the sum of all items' Amount values.
-
#
getShippingTotalAsMoney() -
Money - Gets the shipping total as a Money object. Represents the net shipping total. Tax and discount on shipping are tracked in Tax Total and Discount Total.
-
#
getHandlingTotalAsMoney() -
Money - Gets the handling total as a Money object. Represents the net handling total. Tax and discount on handling are tracked in Tax Total and Discount Total.
-
#
getInsuranceTotalAsMoney() -
Money - Gets the insurance total as a Money object. Represents the net insurance total. Tax and discount on insurance are tracked in Tax Total and Discount Total.
-
#
getDiscountTotalAsMoney() -
Money - Gets the discount total as a Money object. Represents the sum of discount values across all line items, including shipping, handling, etc.
-
#
getTaxTotalAsMoney() -
Money - Gets the tax total as a Money object. Represents the sum of tax values across all line items, including shipping, handling, etc.
-
#
getSurchargeTotalAsMoney() -
Money - Gets the surcharge total as a Money object. Represents the surcharge total.
-
#
getTotalAsMoney() -
Money - Gets the grand total as a Money object. Represents the final value calculated as
Item Total + Shipping Total + Handling Total + Insurance Total - Discount Total + Tax Total + Surcharge Total. -
#
getId() -
?int -
#
getUuid() -
?string -
#
getExternalId() -
?string -
#
getComments() -
?string -
#
getShippingTotal() -
?string - Represents the net shipping total. Tax and discount on shipping are tracked in Tax Total and Discount Total.
-
#
getHandlingTotal() -
?string - Represents the net handling total. Tax and discount on handling are tracked in Tax Total and Discount Total.
-
#
getInsuranceTotal() -
?string - Represents the net insurance total. Tax and discount on insurance are tracked in Tax Total and Discount Total.
-
#
getDiscountTotal() -
?string - Represents the sum of discount values across all line items, including shipping, handling, etc.
-
#
getTaxTotal() -
?string - Represents the sum of tax values across all line items, including shipping, handling, etc.
-
#
getTotal() -
?string - Represents the final value calculated as
Item Total + Shipping Total + Handling Total + Insurance Total - Discount Total + Tax Total + Surcharge Total. -
#
getItems() -
?Collection<Item> -
#
getFulfillments() -
?Collection<Fulfillment> -
#
getMetadataFieldValues() -
?Collection<MetadataFieldValue> -
#
getDiscountLogs() -
?Collection<Log>
No members match the filter.