import { ReceiptItemDTO } from '@generated/swagger/inventory-api';
import { Product } from './product';

/**
 * Represents an individual item within a remission return receipt.
 * Extends the base ReceiptItemDTO with additional product information.
 * 
 * @interface ReceiptItem
 * @extends {ReceiptItemDTO}
 * 
 * @example
 * const receiptItem: ReceiptItem = {
 *   id: 123,
 *   product: {
 *     id: 456,
 *     name: 'Sample Product',
 *     // ... other product properties
 *   },
 *   // ... other ReceiptItemDTO properties
 * };
 */
export interface ReceiptItem extends ReceiptItemDTO {
  /**
   * Unique identifier for the receipt item.
   * @type {number}
   */
  id: number;
  
  /**
   * The product associated with this receipt item.
   * Contains detailed product information including name, SKU, and other attributes.
   * @type {Product}
   */
  product: Product;
}
