GitHub

ShopifyCartCost

interface

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

The costs that the buyer will pay at checkout. The cart cost uses CartBuyerIdentity to determine international pricing.

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.