part of 'split_bill_form_bloc.dart';

@freezed
class SplitBillFormEvent with _$SplitBillFormEvent {
  const factory SplitBillFormEvent.setOrder(Order order) = _SetOrder;
  const factory SplitBillFormEvent.customerChanged(Customer? customer) =
      _CustomerChanged;
  const factory SplitBillFormEvent.customerNameChanged(String customerName) =
      _CustomerNameChanged;
  const factory SplitBillFormEvent.splitTypeChanged(SplitType splitType) =
      _SplitTypeChanged;
  const factory SplitBillFormEvent.itemQuantityChanged({
    required String itemId,
    required int quantity,
  }) = _ItemQuantityChanged;
  const factory SplitBillFormEvent.amountChanged(int amount) = _AmountChanged;
}
