This commit is contained in:
2025-12-10 00:38:59 +01:00
parent a4a732ddc5
commit 0f7fe67d3c
25 changed files with 1914 additions and 0 deletions

View File

@@ -74,4 +74,25 @@ export class Season {
endDate: props.endDate,
});
}
/**
* Domain rule: Wallet withdrawals are only allowed when season is completed
*/
canWithdrawFromWallet(): boolean {
return this.status === 'completed';
}
/**
* Check if season is active
*/
isActive(): boolean {
return this.status === 'active';
}
/**
* Check if season is completed
*/
isCompleted(): boolean {
return this.status === 'completed';
}
}