GitHub

DaffProductPrices

import { DaffProductPrices } from '@daffodil/product'

A model for product prices that holds discounts, discounted price, and original price for the associated product.

interface DaffProductPrices {
  discountedPrice: number
  discount: DaffProductDiscount
  originalPrice: number
}

Properties

discountedPrice
number

The discounted price of the product.

discount
DaffProductDiscount

The discount of the product.

originalPrice
number

The price of the product before discounts.