GitHub

DaffCompositeCartItemInputOption

import { DaffCompositeCartItemInputOption } from '@daffodil/cart'

Designates a particular option for the composite product to add to the cart.

interface DaffCompositeCartItemInputOption {
  code: string | number
  quantity: number
  value: string
}

Properties

code
string | number

An identifier of the option for which a value has been chosen.

quantity
number

How many of the specified option should be added to the cart.

value
string

The value identifying the chosen composite product option.