graycoreio/daffodil

View on GitHub
libs/cart/src/models/cart-order-result.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ID } from '@daffodil/core';

/**
 * The result of placing an order for a cart.
 * Stores a reference to a cart and order object.
 */
export interface DaffCartOrderResult {
  /**
   * The ID of the cart for which this order was placed.
   */
  cartId: ID;
  /**
   * The ID of the order placed.
   */
  orderId: ID;
  /**
   * @deprecated Use DaffCartOrderResult#orderId instead. Deprecated in version 0.78.0. Will be removed in version 0.81.0.
   */
  id?: ID;
}