GitHub

DaffCartTotalTypeEnum

import { DaffCartTotalTypeEnum } from '@daffodil/cart'

An enum for the types of totals that can appear in a cart.

enum DaffCartTotalTypeEnum {
  grandTotal = DaffCartTotalTypeEnum.grandTotal,
  subtotalExcludingTax = DaffCartTotalTypeEnum.subtotalExcludingTax,
  subtotalIncludingTax = DaffCartTotalTypeEnum.subtotalIncludingTax,
  subtotalWithDiscountExcludingTax = DaffCartTotalTypeEnum.subtotalWithDiscountExcludingTax,
  subtotalWithDiscountIncludingTax = DaffCartTotalTypeEnum.subtotalWithDiscountIncludingTax,
  discount = DaffCartTotalTypeEnum.discount,
  tax = DaffCartTotalTypeEnum.tax,
  shipping = DaffCartTotalTypeEnum.shipping,
}