import { DaffCart } from '@daffodil/cart'
A cart. Contains products in the form of cart items. Contains payment and shipping info used for checkout.
interface DaffCart {
  coupons: DaffCartCoupon[]
  items: DaffCartItem[]
  billing_address: DaffCartAddress
  shipping_address: DaffCartAddress
  payment: DaffCartPaymentMethod
  totals: Record<string, DaffCartTotal>
  shipping_information: DaffCartShippingRate
  available_shipping_methods: DaffCartShippingRate[]
  available_payment_methods: DaffCartPaymentMethod[]
  extra_attributes: any
}
coupons DaffCartCoupon[] | 
|---|
A list of coupons applied to the cart.  | 
items DaffCartItem[] | 
|---|
A list of cart items.  | 
billing_address DaffCartAddress | 
|---|
The billing address of the cart.  | 
shipping_address DaffCartAddress | 
|---|
The shipping address of the cart.  | 
payment DaffCartPaymentMethod | 
|---|
The selected payment method of the cart.  | 
totals Record | 
|---|
A list of totals for the cart.  | 
shipping_information DaffCartShippingRate | 
|---|
The selected shipping method.  | 
available_shipping_methods DaffCartShippingRate[] | 
|---|
A list of available shipping methods.  | 
available_payment_methods DaffCartPaymentMethod[] | 
|---|
A list of available payment methods.  | 
extra_attributes any | 
|---|
The field is set to the platform cart object returned by the most recent driver call. No fields are guaranteed here. Use this with care.  |