Skip to content

ClearRugbyLeaguePlayerProjectionsImporter

Clears player projections for NRL SuperCoach participant stats. Supports clearing all participants for a given season and round, or a specific subset of participants.

Note: This importer clears sporting event projections only. Player ratings are managed separately via SetPlayerRatingCommand and are not affected.

Importer Details

Property Value
Importer Name ClearRugbyLeaguePlayerProjectionsImport
Module SuperCoach
Authorization Requires Admin role
Command ClearRugbyLeaguePlayerProjectionsCommand
Event Raised RugbyLeaguePlayerProjectionsClearedEvent

Input Contract

Field Type Required Description
Season string Yes Season year e.g. "2025", "2026"
Round int Yes Round number e.g. 1-27
ParticipantIds List<ParticipantId> No Optional list of participant IDs to clear. When empty, all participants for the round are cleared.

Behaviour

  1. Queries all NrlSuperCoachPlayerStatsContract records matching the given Season and Round
  2. If ParticipantIds is provided (non-empty), filters to only those participants
  3. Generates a ClearRugbyLeaguePlayerProjectionsCommand for each matched record
  4. Commands are executed transactionally per aggregate root

Fields Cleared

Field Cleared
ProjectedPoints Yes
ProjectedMinutes Yes
ProjectedPrice Yes
ProjectedPriceDelta Yes
ProjectedBreakEven Yes
ProjectedOver60Points Yes
ProjectedOver100Points Yes
SportingEventProjections Yes
Rating No — managed separately via SetPlayerRatingCommand

API Examples

Clear all participants for a round

POST /api/import
Authorization: Bearer <token>
Content-Type: application/json

{
  "importerType": "ClearRugbyLeaguePlayerProjectionsImport",
  "priority": "High",
  "importData": {
    "season": "2025",
    "round": 16
  }
}

Clear specific participants only

POST /api/import
Authorization: Bearer <token>
Content-Type: application/json

{
  "importerType": "ClearRugbyLeaguePlayerProjectionsImport",
  "priority": "High",
  "importData": {
    "season": "2025",
    "round": 16,
    "participantIds": [
      "luckbox:participant:rugby_league:player-1",
      "luckbox:participant:rugby_league:player-2"
    ]
  }
}

Response

{
  "jobId": "550e8400-e29b-41d4-a716-446655440000",
  "status": "Pending",
  "message": "Import job queued successfully"
}
File Description
src/Integration/LBS.Fantasy.Integration/Importers/SuperCoach/ClearRugbyLeaguePlayerProjectionsImporter.cs Importer implementation and data contract
src/Domain/LBS.Domain.Fantasy/SuperCoachPlayerStats/Command/ClearRugbyLeaguePlayerProjectionsCommand.cs Domain command
src/Domain/LBS.Domain.Fantasy/SuperCoachPlayerStats/SuperCoachParticipantStatsAggregate.NRL.cs Aggregate handler and validation
src/Tests/LBS.UnitTests/EventSourcing/Stubs/Fantasy/ClearRugbyLeaguePlayerProjectionsCommandTests.cs Command unit tests