PluginProbe
Yatra – Travel Booking & Tour Operator Software / trunk
Yatra – Travel Booking & Tour Operator Software vtrunk
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
yatra / app / Services / DynamicPricingService.php

DynamicPricingService.php in Yatra – Travel Booking & Tour Operator Software trunk, at app/Services/DynamicPricingService.php

34 lines 973 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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