stack

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

AdminTypes.CalculatedAutomaticDiscountApplication interface

A discount that is automatically applied to an order that is being edited.

Signature:

export interface CalculatedAutomaticDiscountApplication extends CalculatedDiscountApplication 

Extends: CalculatedDiscountApplication

Properties

Property Modifiers Type Description
allocationMethod   DiscountApplicationAllocationMethod | `${DiscountApplicationAllocationMethod}` The method by which the discount’s value is allocated to its entitled items.
appliedTo   DiscountApplicationLevel | `${DiscountApplicationLevel}` The level at which the discount was applied.
description?   Maybe<Scalars[‘String’][‘output’]> (Optional) The description of discount application. Indicates the reason why the discount was applied.
id   Scalars[‘ID’][‘output’] A globally-unique ID.
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.
value   PricingValue The value of the discount application.