GitHub

ShopifyDiscountApplicationAllocationMethod

Type

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

Controls how a discount's value is distributed across entitled lines. A discount can either spread its value across all entitled lines or apply the full value to each line individually.

Used by the DiscountApplication interface and its implementations to capture the intentions of a discount source at the time of application.

Properties

Across
ShopifyDiscountApplicationAllocationMethod.Across

The value is spread across all entitled lines.

Each
ShopifyDiscountApplicationAllocationMethod.Each

The value is applied onto every entitled line.

One
ShopifyDiscountApplicationAllocationMethod.One

The value is specifically applied onto a particular line.