stack

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

AdminTypes.DiscountCodeApp interface

A code app discount.

Signature:

export interface DiscountCodeApp 

Properties

Property Modifiers Type Description
appDiscountType   AppDiscountType The app discount type providing the discount type.
appliesOncePerCustomer   Scalars[‘Boolean’][‘output’] Whether the discount can be applied only once per customer.
asyncUsageCount   Scalars[‘Int’][‘output’] The number of times that the discount has been used.
codeCount   Scalars[‘Int’][‘output’] The number of redeem codes for the discount.
codes   DiscountRedeemCodeConnection A list of redeem codes for the discount.
combinesWith   DiscountCombinesWith Determines which discount classes the discount can combine with.
createdAt   Scalars[‘DateTime’][‘output’] The date and time when the discount was created.
customerSelection   DiscountCustomerSelection The customers that can use the discount.
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 discount.
hasTimelineComment   Scalars[‘Boolean’][‘output’] Indicates whether there are any timeline comments on the discount.
recurringCycleLimit?   Maybe<Scalars[‘Int’][‘output’]> (Optional) The number of times a discount applies on recurring purchases (subscriptions).
shareableUrls   Array<DiscountShareableUrl> URLs that can be used to share the 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.
totalSales?   Maybe<MoneyV2> (Optional) The total sales from orders where the discount was used.
updatedAt   Scalars[‘DateTime’][‘output’] The date and time when the discount was updated.
usageLimit?   Maybe<Scalars[‘Int’][‘output’]> (Optional) The maximum number of times that the discount can be used.