Hierarchy

  • SaleDiscount

Properties

description: string

Internal description of discount

discount: number

Integer percentage discount

excludedProductTags?: string[]

Excluded product tags, if any. 'never-sale' and 'never-discount' will automatically be included.

itemProperties?: Properties

Item properties to set on items that are discounted.

maxOrderCount?: null | number

Maximum number of orders this discount can be applied to

name: string

Name is potentially customer-facing!

requiredProductTags?: string[]

Required product tags, if any

requiresMembership?: boolean

Whether this discount requires membership

saleCode: string

Code displayed as discount reason

storeDomainId?: null | number

Domain ID of store this discount applies to. Leave blank or null to enable discount in all stores.

timeConstraints: {
    end: Date;
    start: Date;
}

Time constraints of sale. Please consider your time zone when setting these.

Type declaration

  • end: Date
  • start: Date
utmConstraints?: UtmParams

UTM constraints, if any

Generated using TypeDoc