stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > AutomaticDiscountApplication

AdminTypes.AutomaticDiscountApplication interface

Automatic discount applications capture the intentions of a discount that was automatically applied.

Signature:

export interface AutomaticDiscountApplication extends DiscountApplication 

Extends: DiscountApplication

Properties

Property Modifiers Type Description
allocationMethod   DiscountApplicationAllocationMethod | `${DiscountApplicationAllocationMethod}` The method by which the discount’s value is applied to its entitled items.
index   Scalars[‘Int’][‘output’] An ordered index that can be used to identify the discount application and indicate the precedence of the discount application for calculations.
targetSelection   DiscountApplicationTargetSelection | `${DiscountApplicationTargetSelection}` How the discount amount is distributed on the discounted lines.
targetType   DiscountApplicationTargetType | `${DiscountApplicationTargetType}` Whether the discount is applied on line items or shipping lines.
title   Scalars[‘String’][‘output’] The title of the discount application.
value   PricingValue The value of the discount application.