ifnex/04_Laravel/app/Models
Kazem Alghasi abae820070 refactor(api): improve pricing logic and add test coverage
Refactor the pricing calculation service and shipping rate import logic to improve consistency and reliability. This includes updating direction naming conventions, enhancing model casting, and adding comprehensive test suites.

- Update `ShippingRatesImport` to use 'outbound' and 'inbound' instead of 'export' and 'import'
- Refactor `PriceCalculatorService` to use a more modular calculation structure
- Update `ShippingRate` model to use explicit property casting for zones
- Add `HasFactory` trait to `Country` and `ShippingRate` models
- Add new database factories for `Country` and `ShippingRate`
- Implement new feature tests for API endpoints and service logic
- Add new service tests for `PriceCalculatorService`
2026-08-07 04:39:14 +03:30
..
Country.php refactor(api): improve pricing logic and add test coverage 2026-08-07 04:39:14 +03:30
DiscountCode.php feat(logic): integrate discount code application and wallet services 2026-08-05 19:16:09 +03:30
Payment.php feat(api): implement payment gateway integration 2026-08-05 23:49:33 +03:30
Shipment.php ✅ ۱۰ مورد کامل شد (دیتابیس، مدل‌ها، API، Filament، Laravel 11، رفع باگ‌ها) 2026-08-04 01:59:08 +03:30
ShipmentCarrierMapping.php ✅ ۱۰ مورد کامل شد (دیتابیس، مدل‌ها، API، Filament، Laravel 11، رفع باگ‌ها) 2026-08-04 01:59:08 +03:30
ShipmentItem.php feat: Complete Phase 1 core logic and WP bridge setup 2026-08-01 04:01:22 +03:30
ShipmentTrackingEvent.php ✅ ۱۰ مورد کامل شد (دیتابیس، مدل‌ها، API، Filament، Laravel 11، رفع باگ‌ها) 2026-08-04 01:59:08 +03:30
ShippingRate.php refactor(api): improve pricing logic and add test coverage 2026-08-07 04:39:14 +03:30
SystemSetting.php ✅ ۱۰ مورد کامل شد (دیتابیس، مدل‌ها، API، Filament، Laravel 11، رفع باگ‌ها) 2026-08-04 01:59:08 +03:30
User.php feat(db): implement wallet and discount code systems 2026-08-05 17:35:58 +03:30
Wallet.php feat(db): implement wallet and discount code systems 2026-08-05 17:35:58 +03:30
WalletTransaction.php feat(db): implement wallet and discount code systems 2026-08-05 17:35:58 +03:30