GitHub

DaffProductDiscount

import { DaffProductDiscount } from '@daffodil/product'

The discount for a product.

interface DaffProductDiscount {
  amount: number
  percent: number
}

Properties

amount
number

The discount represented as some amount of currency.

percent
number

The discount represented as a percent of the original product price.