This commit is contained in:
2025-12-11 13:50:38 +01:00
parent e4c1be628d
commit c7e5de40d6
212 changed files with 2965 additions and 763 deletions

View File

@@ -1,11 +1,12 @@
/**
* Value Object: SponsorshipPricing
*
*
* Represents the sponsorship slot configuration and pricing for any sponsorable entity.
* Used by drivers, teams, races, and leagues to define their sponsorship offerings.
*/
import { Money } from './Money';
import type { IValueObject } from '@gridpilot/shared/domain';
export interface SponsorshipSlotConfig {
tier: 'main' | 'secondary';
@@ -22,7 +23,7 @@ export interface SponsorshipPricingProps {
customRequirements?: string;
}
export class SponsorshipPricing {
export class SponsorshipPricing implements IValueObject<SponsorshipPricingProps> {
readonly mainSlot?: SponsorshipSlotConfig;
readonly secondarySlots?: SponsorshipSlotConfig;
readonly acceptingApplications: boolean;