/**
 * Domain Entity: MembershipFee
 */

export enum MembershipFeeType {
  SEASON = 'season',
  MONTHLY = 'monthly',
  PER_RACE = 'per_race',
}

export interface MembershipFee {
  id: string;
  leagueId: string;
  seasonId?: string;
  type: MembershipFeeType;
  amount: number;
  enabled: boolean;
  createdAt: Date;
  updatedAt: Date;
}

export const MembershipFee = {
  rehydrate(props: MembershipFee): MembershipFee {
    return { ...props };
  },
};