GitHub

ShopifyManualDiscountApplication

interface

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

Manual discount applications capture the intentions of a discount that was manually created.

interface ShopifyManualDiscountApplication {
  __typename: "ManualDiscountApplication"
  allocationMethod: ShopifyDiscountApplicationAllocationMethod
  description: string
  targetSelection: ShopifyDiscountApplicationTargetSelection
  targetType: ShopifyDiscountApplicationTargetType
  title: string
  value: ShopifyPricingValue
}

Properties

__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.