import type { Salutation } from "../../../../enums/salutation";

export interface MembershipViewModel {
  id: number;
  start: Date;
  end?: Date;
  terminationReason?: string;
  status: string;
  statusId: number;
}

export interface MembershipStatisticsViewModel {
  durationInDays: number;
  durationInYears: string;
  status: string;
  statusId: number;
  memberId: number;
  memberSalutation: Salutation;
  memberFirstname: string;
  memberLastname: string;
  memberNameaffix: string;
  memberBirthdate: Date;
}

export interface CreateMembershipViewModel {
  start: Date;
  statusId: number;
}

export interface UpdateMembershipViewModel {
  id: number;
  start: Date;
  end?: Date;
  terminationReason?: string;
  statusId: number;
}
