GitHub

ShopifyCartCustomDiscountAllocation

Type

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

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

interface ShopifyCartCustomDiscountAllocation {
  __typename: "CartCustomDiscountAllocation"
  discountApplication: ShopifyCartDiscountApplication
  discountedAmount: ShopifyMoneyV2
  targetType: ShopifyDiscountApplicationTargetType
  title: string
}

Properties

__typename
"CartCustomDiscountAllocation"
discountApplication
ShopifyCartDiscountApplication

The discount that have been applied on the cart line.

discountedAmount
ShopifyMoneyV2

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

targetType
ShopifyDiscountApplicationTargetType

The type of line that the discount is applicable towards.

title
string

The title of the allocated discount.