GitHub

ShopifyCartCost

Type

import { ShopifyCartCost } from '@daffodil/driver/shopify'

The estimated costs that a buyer will pay at checkout. The Cart object's cost field returns this. The costs are subject to change and changes will be reflected at checkout. Costs reflect international pricing based on the buyer's context.

Amounts include the subtotal before taxes and cart-level discounts, the checkout charge amount excluding deferred payments, and the total. The subtotal and total amounts each include a corresponding boolean field indicating whether the value is an estimate.

interface ShopifyCartCost {
  __typename: "CartCost"
  checkoutChargeAmount: ShopifyMoneyV2
  subtotalAmount: ShopifyMoneyV2
  subtotalAmountEstimated: boolean
  totalAmount: ShopifyMoneyV2
  totalAmountEstimated: boolean
  totalDutyAmount: ShopifyMoneyV2
  totalDutyAmountEstimated: boolean
  totalTaxAmount: ShopifyMoneyV2
  totalTaxAmountEstimated: boolean
}

Properties

__typename
"CartCost"
checkoutChargeAmount
ShopifyMoneyV2

The estimated amount, before taxes and discounts, for the customer to pay at checkout. The checkout charge amount doesn't include any deferred payments that'll be paid at a later date. If the cart has no deferred payments, then the checkout charge amount is equivalent to subtotalAmount.

subtotalAmount
ShopifyMoneyV2

The amount, before taxes and cart-level discounts, for the customer to pay.

subtotalAmountEstimated
boolean

Whether the subtotal amount is estimated.

totalAmount
ShopifyMoneyV2

The total amount for the customer to pay.

totalAmountEstimated
boolean

Whether the total amount is estimated.

totalDutyAmount
ShopifyMoneyV2

The duty amount for the customer to pay at checkout.

totalDutyAmountEstimated
boolean

Whether the total duty amount is estimated.

totalTaxAmount
ShopifyMoneyV2

The tax amount for the customer to pay at checkout.

totalTaxAmountEstimated
boolean

Whether the total tax amount is estimated.