ifnex/04_Laravel/app/Http/Controllers/Api
Kazem Alghasi 563f89495c fix(pricing): restore array-based calculate() and harden pricing API
Restore the array-based signature of PriceCalculatorService::calculate()
to fix the TypeError thrown when PricingController and CustomerOrderController
called it with an array (the previous commit had switched to 4 separate
string params without updating the callers).

- PriceCalculatorService: support multiple input formats for direction
  (export|import|Outbound|Inbound) and type (DOC_NORMAL|DOC_ECONOMY|PARCEL|
  DOCUMENT|NON DOC) for backward compatibility with admin and customer flows.
- ExchangeRateService: add convertToIrr() for explicit AED→IRR conversion
  (was missing but referenced by the calculator).
- PricingController: expand validation rules to accept new shipment types
  and a discount_code string (was 'discount' numeric). Add 3-layer exception
  handling (422 validation / 400 business / 500 server).
- PriceTestPage: compute volumetric weight from dimensions (IATA: L×W×H/5000),
  resolve destination country by direction, and show errors as Filament
  notifications instead of crashing.
2026-10-29 14:40:58 +03:30
..
Customer feat(api): expand shipment data fields and enhance tracking security 2026-10-29 00:51:50 +03:30
AuthController.php feat: Complete customer ordering system (Phase 3) 2026-08-10 06:09:56 +03:30
BridgeAuthController.php feat: Complete customer ordering and payment system (Phases 1-4) 2026-08-10 13:08:52 +03:30
CommitmentFormController.php feat(commitment-forms): implement end-to-end management and secure file access 2026-10-03 05:58:59 +03:30
CustomerFinancialController.php feat(finance): rate approval + multi-currency credit system (درخواست ۹) 2026-09-30 05:14:31 +03:30
DiscountCodeController.php refactor(api): expose wallet and discount endpoints and cleanup project 2026-08-05 22:46:31 +03:30
MobileVerificationController.php feat(core): implement order approval flow, credit system, and import invoicing 2026-09-03 06:04:20 +03:30
MockGatewayController.php feat(wallet): complete online payment with Zarinpal + mock gateway 2026-08-08 00:46:54 +03:30
PaymentController.php feat(core): implement configuration-driven logic via SystemSetting 2026-09-10 02:25:21 +03:30
PricingController.php fix(pricing): restore array-based calculate() and harden pricing API 2026-10-29 14:40:58 +03:30
StaffOrderController.php refactor(api): relocate StaffApiMiddleware and update routes 2026-09-28 17:25:40 +03:30
TrackController.php feat(api): expand shipment data fields and enhance tracking security 2026-10-29 00:51:50 +03:30
WalletController.php feat(finance): implement Filament admin panel and expand wallet/discount features 2026-08-08 03:15:51 +03:30