/// A single line item within an [Order].
class OrderItem {
  final String productName;
  final String sku;
  final int quantity;
  final double unitPrice;

  const OrderItem({
    required this.productName,
    required this.sku,
    required this.quantity,
    required this.unitPrice,
  });

  /// The total price for this line item.
  double get lineTotal => quantity * unitPrice;
}
