GitHub

ShopifyCartDiscountApplication

Type

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

Captures the intent of a discount source at the time it was applied to a cart. This includes the discount value, how it's allocated across entitled items, and which line types it targets.

The actual discounted amounts on specific cart lines are represented by CartDiscountAllocation objects, which reference this application.

Properties

__typename
"CartDiscountApplication"
allocationMethod
ShopifyDiscountApplicationAllocationMethod

The method by which the discount's value is allocated to its entitled items.

targetSelection
ShopifyDiscountApplicationTargetSelection

Which lines of targetType that the discount is allocated over.

targetType
ShopifyDiscountApplicationTargetType

The type of line that the discount is applicable towards.

value
ShopifyPricingValue

The value of the discount application.