GitHub

MagentoCartItem

An object for defining what the cart service requests and retrieves from a magento backend.

import { MagentoCartItem } from '@daffodil/cart/driver/magento'
interface MagentoCartItem {
  __typename: MagentoCartItemTypeEnum
  id: string
  prices: {
    price: MagentoMoney;
    row_total: MagentoMoney;
    discounts?: MagentoDiscount[];
}
  product: MagentoCartItemProduct
  quantity: number
}

Properties

Name Type Description
__typename MagentoCartItemTypeEnum
id string
prices { price: MagentoMoney; row_total: MagentoMoney; discounts?: MagentoDiscount[]; }
product MagentoCartItemProduct
quantity number