Closed jonathanfallon closed 2 months ago
The changes introduce documentation and parameter updates for the perKm
and perSeat
functions, adjustments to the SMTC2024
policy including a new passenger-specific handler with detailed rules and limits, and corresponding test cases. The campaign's financial limit is halved, and a new policy handler for passengers is added to the system. These updates enhance clarity, functionality, and testing for carpooling incentives.
File Path | Change Summary |
---|---|
api/src/pdc/services/policy/engine/helpers/per.ts |
Added documentation and examples for perKm and perSeat functions; updated PerKmParams interface. |
api/src/pdc/services/policy/engine/policies/SMTC2024.html.ts |
Reduced campaign limit from €30,000 to €15,000. |
api/src/pdc/services/policy/engine/policies/SMTC2024.ts |
Updated id property of SMTC2024 class. |
api/src/pdc/services/policy/engine/policies/SMTC2024Passenger.html.ts |
Introduced a new campaign description for passenger incentives. |
api/src/pdc/services/policy/engine/policies/SMTC2024Passenger.spec.ts |
Added test cases for SMTC2024Passenger policy handling. |
api/src/pdc/services/policy/engine/policies/SMTC2024Passenger.ts |
Introduced SMTC2024Passenger policy handler with new rules and limits for passenger trips. |
api/src/pdc/services/policy/engine/policies/index.ts |
Added SMTC2024Passenger to policy imports and map. |
In code's vast and winding lanes,
New policies take the reins.
For passengers, a fresh new start,
Incentives now play their part.
Limits set and rules defined,
In carpooling, joy we'll find.
🌟🚗✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
La campagne SMTC 2024 est appliquée aux conducteurs La campagne SMTC 2024 (passager) est ajoutée pour inciter les km parcourus par les passagers.
Séparation de l'enveloppe SMTC en 2 (50/50).
Summary by CodeRabbit
New Features
SMTC2024Passenger
for carpooling incentives, detailing specific rules and limitations.SMTC2024Passenger
policy handler to validate carpooling data.Updates
SMTC2024
from €30,000 to €15,000.id
of theSMTC2024
policy tosmtc_2024_driver
.Documentation
perKm
andperSeat
functions, clarifying their usage and parameters.