OEM Incentive
OEM Incentive
Section titled “OEM Incentive”Quellverzeichnis: modules/oem-incentive/
Hersteller-Prämien, Bonusprogramme und Incentive-Abrechnung.
Services
Section titled “Services”Geschäftslogik des Moduls (src/services/):
IncentivePayoutIncentiveNotFoundErrorIncentivePayoutNotFoundErrorIncentivePayoutTerminalErrorIncentiveServiceOemIncentiveMetricNotFoundErrorOemIncentiveNotFoundErrorOemIncentiveTargetNotFoundErrorOemIncentiveTerminalErrorOemSubmissionRejectedErrorOemTargetDuplicateImportErrorOemTargetLocationRequiredErrorOemTargetMetricNotFoundErrorOemTargetNotFoundErrorOemTargetTerminalErrorPayoutServiceProgressClientNotConfiguredErrorProgressServiceTargetService
Repositories
Section titled “Repositories”Datenzugriffs-Ports (src/repositories/):
InMemoryIncentivePayoutRepositoryInMemoryOemIncentiveRepositoryInMemoryOemTargetRepositoryIncentivePayoutRepositoryOemIncentiveRepositoryOemTargetRepository
Domain Events
Section titled “Domain Events”Vom Modul emittierte Ereignisse (src/events.ts):
EventHandlerOEM_INCENTIVE_EVENT_TYPESincentiveActivatedincentiveCreatedincentiveExpiredincentivePaidOutincentiveStatusChangedpayoutCalculatedpayoutDistributedpayoutReceivedpayoutStatusChangedpayoutSubmittedqualifyingDealMatchedquarterlyCloseCompletedquarterlyCloseStartedtargetAchievedtargetActivatedtargetArchivedtargetImportedtargetMissedtargetStatusChanged
API-Endpunkte
Section titled “API-Endpunkte”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 |
Public API
Section titled “Public API”Ü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 TargetMetricAccountingBookingInputAccountingClientAddMetricInputAuditClientAuditEntryInputDateRangeDateRangeValidationErrorDealQualificationClientDealQueryDomainEventEventBusEventHandlerImportOemIncentiveInputImportOemTargetInputImportedOemTargetInMemoryEventBusInMemoryIncentivePayoutRepository- … und 168 weitere
Zurück zur Modul-Übersicht oder zur Startseite.