GitHub

ShopifyCartCodeDiscountAllocation

Type

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

A discount allocation applied to a cart line when a customer enters a discount code.

interface ShopifyCartCodeDiscountAllocation {
  __typename: "CartCodeDiscountAllocation"
  code: string
  discountApplication: ShopifyCartDiscountApplication
  discountedAmount: ShopifyMoneyV2
  targetType: ShopifyDiscountApplicationTargetType
}

Properties

__typename
"CartCodeDiscountAllocation"
code
string

The code used to apply the discount.

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.