Home > @infiniteobjects/shopify-data-manager > AdminTypes > CalculatedScriptDiscountApplication
A discount created by a Shopify script for an order that is being edited.
Signature:
export interface CalculatedScriptDiscountApplication extends CalculatedDiscountApplication
Extends: CalculatedDiscountApplication
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. |