import 'package:equatable/equatable.dart';

/// Represents a financial addon/bonus/deduction applied to an Invoice or Payment.
class Addon extends Equatable {

  const Addon({
    required this.id,
    required this.name,
    required this.amount,
    required this.type,
  });
  /// Unique identifier.
  final String id;

  /// Description (e.g. "Travel Expense").
  final String name;

  /// Monetary value.
  final double amount;

  /// Type ('credit' or 'debit').
  final String type;

  @override
  List<Object?> get props => <Object?>[id, name, amount, type];
}