Home > @infiniteobjects/shopify-data-manager > AdminTypes > DiscountAutomaticApp
An automatic app discount.
Signature:
export interface DiscountAutomaticApp
Property | Modifiers | Type | Description |
---|---|---|---|
appDiscountType | AppDiscountType | The app discount type providing the discount type. | |
asyncUsageCount | Scalars[‘Int’][‘output’] | The number of times the discount has been used. This value is updated asynchronously and can be different than the actual usage count. | |
combinesWith | DiscountCombinesWith | Determines which discount classes the discount can combine with. | |
createdAt | Scalars[‘DateTime’][‘output’] | The date and time when the discount was created. | |
discountClass | DiscountClass | `${DiscountClass}` | The class of the discount for combining purposes. | |
discountId | Scalars[‘ID’][‘output’] | The ID for the discount. | |
endsAt? | Maybe<Scalars[‘DateTime’][‘output’]> | (Optional) The date and time when the discount ends. For open-ended discounts, use null . |
|
errorHistory? | Maybe<FunctionsErrorHistory> | (Optional) The error history on the most recent version of the app discount. | |
startsAt | Scalars[‘DateTime’][‘output’] | The date and time when the discount starts. | |
status | DiscountStatus | `${DiscountStatus}` | The status of the discount. | |
title | Scalars[‘String’][‘output’] | The title of the discount. | |
updatedAt | Scalars[‘DateTime’][‘output’] | The date and time when the discount was updated. |