GitHub

ShopifyCartAutomaticDiscountAllocation

Type

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

A discount allocation that applies automatically to a cart line when configured conditions are met. Unlike CartCodeDiscountAllocation, automatic discounts don't require customers to enter a code.

interface ShopifyCartAutomaticDiscountAllocation {
  __typename: "CartAutomaticDiscountAllocation"
  discountApplication: ShopifyCartDiscountApplication
  discountedAmount: ShopifyMoneyV2
  targetType: ShopifyDiscountApplicationTargetType
  title: string
}

Properties

__typename
"CartAutomaticDiscountAllocation"
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.