Skip to content

OEM Incentive

Quellverzeichnis: modules/oem-incentive/

Hersteller-Prämien, Bonusprogramme und Incentive-Abrechnung.

Geschäftslogik des Moduls (src/services/):

  • IncentivePayoutIncentiveNotFoundError
  • IncentivePayoutNotFoundError
  • IncentivePayoutTerminalError
  • IncentiveService
  • OemIncentiveMetricNotFoundError
  • OemIncentiveNotFoundError
  • OemIncentiveTargetNotFoundError
  • OemIncentiveTerminalError
  • OemSubmissionRejectedError
  • OemTargetDuplicateImportError
  • OemTargetLocationRequiredError
  • OemTargetMetricNotFoundError
  • OemTargetNotFoundError
  • OemTargetTerminalError
  • PayoutService
  • ProgressClientNotConfiguredError
  • ProgressService
  • TargetService

Datenzugriffs-Ports (src/repositories/):

  • InMemoryIncentivePayoutRepository
  • InMemoryOemIncentiveRepository
  • InMemoryOemTargetRepository
  • IncentivePayoutRepository
  • OemIncentiveRepository
  • OemTargetRepository

Vom Modul emittierte Ereignisse (src/events.ts):

  • EventHandler
  • OEM_INCENTIVE_EVENT_TYPES
  • incentiveActivated
  • incentiveCreated
  • incentiveExpired
  • incentivePaidOut
  • incentiveStatusChanged
  • payoutCalculated
  • payoutDistributed
  • payoutReceived
  • payoutStatusChanged
  • payoutSubmitted
  • qualifyingDealMatched
  • quarterlyCloseCompleted
  • quarterlyCloseStarted
  • targetAchieved
  • targetActivated
  • targetArchived
  • targetImported
  • targetMissed
  • targetStatusChanged

HTTP-Endpunkte unter api/routes/oem-incentive/ — Details in der API-Referenz.

Methode Pfad Datei
GET /v1/oem/incentives incentives.ts
POST /v1/oem/incentives incentives.ts
GET /v1/oem/incentives/:id incentives.ts
DELETE /v1/oem/incentives/:id incentives.ts
POST /v1/oem/incentives/:id/activate incentives.ts
POST /v1/oem/incentives/:id/auto-apply-spiffs incentives.ts
POST /v1/oem/incentives/:id/expire incentives.ts
POST /v1/oem/incentives/:id/match-deals incentives.ts
POST /v1/oem/incentives/:id/pay-out incentives.ts
GET /v1/oem/incentives/active incentives.ts
POST /v1/oem/incentives/import incentives.ts
GET /v1/oem/payouts payouts.ts
POST /v1/oem/payouts payouts.ts
GET /v1/oem/payouts/:id payouts.ts
DELETE /v1/oem/payouts/:id payouts.ts
POST /v1/oem/payouts/:id/distribute payouts.ts
POST /v1/oem/payouts/:id/receive payouts.ts
POST /v1/oem/payouts/:id/submit payouts.ts
GET /v1/oem/payouts/summary payouts.ts
POST /v1/oem/quarterly-close payouts.ts
GET /v1/oem/targets targets.ts
POST /v1/oem/targets targets.ts
GET /v1/oem/targets/:id targets.ts
DELETE /v1/oem/targets/:id targets.ts
POST /v1/oem/targets/:id/achieved targets.ts
POST /v1/oem/targets/:id/activate targets.ts
POST /v1/oem/targets/:id/archive targets.ts
POST /v1/oem/targets/:id/metrics targets.ts
POST /v1/oem/targets/:id/missed targets.ts
GET /v1/oem/targets/:id/progress targets.ts
GET /v1/oem/targets/active-progress targets.ts
POST /v1/oem/targets/bulk-import targets.ts
POST /v1/oem/targets/import targets.ts

Über den Modul-Index (src/index.ts) exportierte Symbole — die einzige erlaubte Zugriffsart von außen:

  • // Aggregate Roots OEMTarget
  • // Condition-Matching matchesCondition
  • // DTOs - Incentive CreateOemIncentiveInput
  • // DTOs - Payout CalculatePayoutInput
  • // DTOs - Progress GetProgressQuery
  • // DTOs - Quarterly Close QuarterlyCloseInput
  • // DTOs - Target CreateOemTargetInput
  • // Enums - Incentive IncentiveType
  • // Enums - Payout PayoutRecipientType
  • // Enums - Target TargetScope
  • // Helpers now
  • // IncentivePayout transitions canTransitionPayout
  • // OEMIncentive transitions canTransitionIncentive
  • // OEMTarget transitions canTransitionTarget
  • // Result Types PayoutSummary
  • // Shared Value Objects Money
  • // Validations - Common isValidTimestamp
  • // Validations - Composite isValidTargetMetric
  • // Validations - Enums isValidTargetScope
  • // Validations - Money isValidMoney
  • // Validations - Quarter/Date/Name isValidQuarter
  • // Validations - Rate/Weight isValidRate
  • // Value Objects TargetMetric
  • AccountingBookingInput
  • AccountingClient
  • AddMetricInput
  • AuditClient
  • AuditEntryInput
  • DateRange
  • DateRangeValidationError
  • DealQualificationClient
  • DealQuery
  • DomainEvent
  • EventBus
  • EventHandler
  • ImportOemIncentiveInput
  • ImportOemTargetInput
  • ImportedOemTarget
  • InMemoryEventBus
  • InMemoryIncentivePayoutRepository
  • … und 168 weitere

Zurück zur Modul-Übersicht oder zur Startseite.