GitHub

ShopifyCartEstimatedCost

Type

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

The estimated costs that the buyer pays at checkout. Uses CartBuyerIdentity to determine international pricing.

Includes the subtotal, total amount, duties, and taxes. The checkoutChargeAmount field excludes deferred payments that are charged later, making it useful for displaying what the customer pays immediately.

interface ShopifyCartEstimatedCost {
  __typename: "CartEstimatedCost"
  checkoutChargeAmount: ShopifyMoneyV2
  subtotalAmount: ShopifyMoneyV2
  totalAmount: ShopifyMoneyV2
  totalDutyAmount: ShopifyMoneyV2
  totalTaxAmount: ShopifyMoneyV2
}

Properties

__typename
"CartEstimatedCost"
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 tosubtotal_amount.

subtotalAmount
ShopifyMoneyV2

The estimated amount, before taxes and discounts, for the customer to pay.

totalAmount
ShopifyMoneyV2

The estimated total amount for the customer to pay.

totalDutyAmount
ShopifyMoneyV2

The estimated duty amount for the customer to pay at checkout.

totalTaxAmount
ShopifyMoneyV2

The estimated tax amount for the customer to pay at checkout.