import 'package:krow/features/profile/wages_forms/domain/entities/wage_form_entity.dart';
import 'package:krow/features/profile/wages_forms/domain/utils/wage_form_visitor.dart';

class EddFormEntity extends WageFormEntity {
  const EddFormEntity({
    required super.isSigned,
    required super.isSubmitted,
    required this.firstName,
    required this.lastName,
    required this.address,
    required this.aptNumber,
    required this.city,
    required this.state,
    required this.zipCode,
    required this.socialNumber,
  });

  const EddFormEntity.empty({
    super.isSigned = false,
    super.isSubmitted = false,
    this.firstName = '',
    this.lastName = '',
    this.address = '',
    this.aptNumber,
    this.city = '',
    this.state = '',
    this.zipCode = '',
    this.socialNumber = '',
  });

  final String firstName;
  final String lastName;
  final String address;
  final int? aptNumber;
  final String city;
  final String state;
  final String zipCode;
  final String socialNumber;

  @override
  String get name => 'EDD';

  @override
  T visit<T>(WageFormVisitor<T> visitor) {
    return visitor.visitEddForm(this);
  }

  EddFormEntity copyWith({
    bool? isSigned,
    bool? isSubmitted,
    String? firstName,
    String? lastName,
    String? address,
    int? aptNumber,
    String? city,
    String? state,
    String? zipCode,
    String? socialNumber,
  }) {
    return EddFormEntity(
      isSigned: isSigned ?? this.isSigned,
      isSubmitted: isSubmitted ?? this.isSubmitted,
      firstName: firstName ?? this.firstName,
      lastName: lastName ?? this.lastName,
      address: address ?? this.address,
      aptNumber: aptNumber ?? this.aptNumber,
      city: city ?? this.city,
      state: state ?? this.state,
      zipCode: zipCode ?? this.zipCode,
      socialNumber: socialNumber ?? this.socialNumber,
    );
  }
}
