GitHub

ShopifyCartAutomaticDiscountAllocation

interface

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

The discounts automatically applied to the cart line based on prerequisites that have been met.

interface ShopifyCartAutomaticDiscountAllocation {
  __typename: "CartAutomaticDiscountAllocation"
  discountedAmount: ShopifyMoneyV2
  title: string
}

Properties

__typename
"CartAutomaticDiscountAllocation"
discountedAmount
ShopifyMoneyV2

The discounted amount that has been applied to the cart line.

title
string

The title of the allocated discount.