| 1 |
<?php |
| 2 |
/** |
| 3 |
* Dynamic Pricing — placeholder (Free plugin) |
| 4 |
* |
| 5 |
* This file used to ship a small example implementation that auto-enabled |
| 6 |
* dynamic pricing and applied hard-coded `*1.15` / `*0.9` math, which double- |
| 7 |
* applied or conflicted with the real engine in Yatra Pro |
| 8 |
* (`YatraPro\Modules\DynamicPricing`). It is now a no-op stub kept only to |
| 9 |
* preserve class-name back-compat. |
| 10 |
* |
| 11 |
* The Free plugin's role is purely to expose pricing filters — actual rule |
| 12 |
* evaluation lives in the Pro module: |
| 13 |
* - yatra_dynamic_pricing_enabled |
| 14 |
* - yatra_availability_price |
| 15 |
* - yatra_trip_display_price |
| 16 |
* - yatra_booking_trip_price |
| 17 |
* |
| 18 |
* @package Yatra\Services |
| 19 |
*/ |
| 20 |
|
| 21 |
namespace Yatra\Services; |
| 22 |
|
| 23 |
class DynamicPricingService |
| 24 |
{ |
| 25 |
/** |
| 26 |
* Intentionally a no-op. The Pro DynamicPricing module owns all rule |
| 27 |
* registration, calculation, and the `yatra_dynamic_pricing_enabled` flag. |
| 28 |
*/ |
| 29 |
public static function init(): void |
| 30 |
{ |
| 31 |
// no-op |
| 32 |
} |
| 33 |
} |
| 34 |
|