ScriptDiscountApplication

Script discount applications capture the intentions of a discount that was created by a Shopify Script.

Show definition

# Script discount applications capture the intentions of a discount that

was created by a Shopify Script.

type ScriptDiscountApplication implements DiscountApplication { # The method by which the discount's value is allocated to its entitled items. allocationMethod: DiscountApplicationAllocationMethod!

# The description of the application as defined by the Script. description: String!

# Which lines of targetType that the discount is allocated over. targetSelection: DiscountApplicationTargetSelection!

# The type of line that the discount is applicable towards. targetType: DiscountApplicationTargetType!

# The value of the discount application. value: PricingValue! }

Implements

Fields

allocationMethod   (DiscountApplicationAllocationMethod!)

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

description   (String!)

The description of the application as defined by the Script.

targetSelection   (DiscountApplicationTargetSelection!)

Which lines of targetType that the discount is allocated over.

targetType   (DiscountApplicationTargetType!)

The type of line that the discount is applicable towards.

value   (PricingValue!)

The value of the discount application.

Sign up for a Partner account to get started.

Sign up