import { ShopifyManualDiscountApplication } from '@daffodil/driver/shopify'
A discount created manually by a merchant, as opposed to automatic discounts or discount codes. Implements the DiscountApplication interface and includes a title, optional description, and the discount value as either a fixed amount or percentage.
interface ShopifyManualDiscountApplication {
__typename: "ManualDiscountApplication"
allocationMethod: ShopifyDiscountApplicationAllocationMethod
description: string
targetSelection: ShopifyDiscountApplicationTargetSelection
targetType: ShopifyDiscountApplicationTargetType
title: string
value: ShopifyPricingValue
}
__typename "ManualDiscountApplication" |
|---|
allocationMethod ShopifyDiscountApplicationAllocationMethod |
|---|
The method by which the discount's value is allocated to its entitled items. |
description string |
|---|
The description of the application. |
targetSelection ShopifyDiscountApplicationTargetSelection |
|---|
Which lines of targetType that the discount is allocated over. |
targetType ShopifyDiscountApplicationTargetType |
|---|
The type of line that the discount is applicable towards. |
title string |
|---|
The title of the application. |
value ShopifyPricingValue |
|---|
The value of the discount application. |