Update: 2026-06-23 16:17:20

This commit is contained in:
Hamza-Ayed
2026-06-23 16:17:20 +03:00
parent bea94ed617
commit c54a8f43fe
4 changed files with 560 additions and 377 deletions

View File

@@ -1,6 +1,8 @@
import '../env/env.dart'; import '../env/env.dart';
import '../main.dart'; import '../main.dart';
import 'box_name.dart';class AppLink { import 'box_name.dart';
class AppLink {
static String seferPaymentServer = static String seferPaymentServer =
'https://walletintaleq.intaleq.xyz/v1/main'; 'https://walletintaleq.intaleq.xyz/v1/main';
static final String tripzPaymentServer0 = seferPaymentServer; static final String tripzPaymentServer0 = seferPaymentServer;
@@ -15,62 +17,93 @@ import 'box_name.dart';class AppLink {
static String get server { static String get server {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3'; case 'Syria':
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3'; return 'https://api-syria.siromove.com/siro_v3';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3'; case 'Egypt':
default: return 'https://api.siromove.com/siro_v3'; return 'https://api-egypt.siromove.com/siro_v3';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend';
default:
return 'https://api.siromove.com/siro_v3';
} }
} }
static String get endPoint => server; static String get endPoint => server;
static String get syria => 'https://api-syria.siromove.com/siro'; static String get syria => 'https://api-syria.siromove.com/siro';
static String get paymentServer { static String get paymentServer {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main'; case 'Syria':
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main'; return 'https://wallet-syria.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main'; case 'Egypt':
default: return 'https://wallet.siromove.com/v1/main'; return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://walletintaleq.intaleq.xyz/v2/main';
default:
return 'https://wallet.siromove.com/v1/main';
} }
} }
static String get locationServer { static String get locationServer {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location'; case 'Syria':
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location'; return 'https://location-syria.siromove.com/siro/ride/location';
case 'Jordan': return 'https://location-jordan.siromove.com/siro/ride/location'; case 'Egypt':
default: return 'https://location.siromove.com/siro/ride/location'; return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://location.intaleq.xyz/intaleq/ride/location';
default:
return 'https://location.siromove.com/siro/ride/location';
} }
} }
static String get locationServerSide => locationServer; static String get locationServerSide => locationServer;
static String get mapSaasRoute { static String get mapSaasRoute {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route'; return 'https://map-syria.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/maps/route'; return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://map-saas.intaleqapp.com/api/maps/route';
default:
return 'https://map-saas.intaleqapp.com/api/maps/route';
} }
} }
static String get mapSaasPlaces { static String get mapSaasPlaces {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places'; return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places'; return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
default:
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
} }
} }
static String get routeApiBaseUrl { static String get routeApiBaseUrl {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com/route/v1/driving'; case 'Syria':
case 'Egypt': return 'https://routes-egypt.siromove.com/route/v1/driving'; return 'https://routes-syria.siromove.com/route/v1/driving';
case 'Jordan': return 'https://routes-jordan.siromove.com/route/v1/driving'; case 'Egypt':
default: return 'https://routes.siromove.com/route/v1/driving'; return 'https://routes-egypt.siromove.com/route/v1/driving';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://routesjo.intaleq.xyz';
default:
return 'https://routes.siromove.com/route/v1/driving';
} }
} }
static String loginJwtDriver =
"https://api.intaleq.xyz/siro/loginAdmin.php"; static String loginJwtDriver = "https://api.intaleq.xyz/siro/loginAdmin.php";
//============================= //=============================
//============================= //=============================
static final getAllFingerprints = static final getAllFingerprints =
@@ -340,29 +373,45 @@ import 'box_name.dart';class AppLink {
static String getdashbord = "$server/Admin/dashbord.php"; static String getdashbord = "$server/Admin/dashbord.php";
// Marketing & Price Anomalies Endpoints // Marketing & Price Anomalies Endpoints
static String getMarketAnomalies = "$server/Admin/marketing/get_market_anomalies.php"; static String getMarketAnomalies =
static String triggerCampaign = "$server/Admin/marketing/trigger_campaign.php"; "$server/Admin/marketing/get_market_anomalies.php";
static String getCampaignsLog = "$server/Admin/marketing/get_campaigns_log.php"; static String triggerCampaign =
"$server/Admin/marketing/trigger_campaign.php";
static String getCampaignsLog =
"$server/Admin/marketing/get_campaigns_log.php";
static String getTelemetry = "$server/Admin/marketing/get_telemetry.php"; static String getTelemetry = "$server/Admin/marketing/get_telemetry.php";
static String getPriceComparison = "$server/Admin/marketing/get_price_comparison.php"; static String getPriceComparison =
static String whatIfSimulator = "$server/Admin/marketing/what_if_simulator.php"; "$server/Admin/marketing/get_price_comparison.php";
static String getPriceGapHeatmap = "$server/Admin/marketing/get_price_gap_heatmap.php"; static String whatIfSimulator =
static String winbackHotspotTargets = "$server/Admin/marketing/winback_hotspot_targets.php"; "$server/Admin/marketing/what_if_simulator.php";
static String getMarketShareAnalytics = "$server/Admin/marketing/get_market_share_analytics.php"; static String getPriceGapHeatmap =
static String aiPricePrediction = "$server/Admin/marketing/ai_price_prediction.php"; "$server/Admin/marketing/get_price_gap_heatmap.php";
static String saveDriverDestination = "$server/ride/location/save_driver_destination.php"; static String winbackHotspotTargets =
"$server/Admin/marketing/winback_hotspot_targets.php";
static String getMarketShareAnalytics =
"$server/Admin/marketing/get_market_share_analytics.php";
static String aiPricePrediction =
"$server/Admin/marketing/ai_price_prediction.php";
static String saveDriverDestination =
"$server/ride/location/save_driver_destination.php";
static String paymentServerV2 = 'https://walletintaleq.intaleq.xyz/v2/main'; static String paymentServerV2 = 'https://walletintaleq.intaleq.xyz/v2/main';
static String realtimeDashboardV2 = "$server/Admin/v2/realtime_dashboard.php"; static String realtimeDashboardV2 = "$server/Admin/v2/realtime_dashboard.php";
static String smartAlertsV2 = "$server/Admin/v2/smart_alerts.php"; static String smartAlertsV2 = "$server/Admin/v2/smart_alerts.php";
static String growthV2 = "$server/Admin/v2/analytics/growth.php"; static String growthV2 = "$server/Admin/v2/analytics/growth.php";
static String revenueV2 = "$server/Admin/v2/analytics/revenue.php"; static String revenueV2 = "$server/Admin/v2/analytics/revenue.php";
static String driverRankingV2 = "$server/Admin/v2/analytics/driver_ranking.php"; static String driverRankingV2 =
static String settlementsV2 = "$paymentServerV2/Admin/v2/financial/settlements.php"; "$server/Admin/v2/analytics/driver_ranking.php";
static String financialStatsV2 = "$paymentServerV2/Admin/v2/financial/stats.php"; static String settlementsV2 =
static String dashboardWalletV2 = "$paymentServerV2/Admin/v2/financial/dashboard_wallet.php"; "$paymentServerV2/Admin/v2/financial/settlements.php";
static String financialStatsV2 =
"$paymentServerV2/Admin/v2/financial/stats.php";
static String dashboardWalletV2 =
"$paymentServerV2/Admin/v2/financial/dashboard_wallet.php";
static String auditLogsV2 = "$server/Admin/v2/security/audit_logs.php"; static String auditLogsV2 = "$server/Admin/v2/security/audit_logs.php";
static String blacklistManager = "$server/Admin/v2/quality/blacklist_manager.php"; static String blacklistManager =
static String driverScorecard = "$server/Admin/v2/quality/driver_scorecard.php"; "$server/Admin/v2/quality/blacklist_manager.php";
static String driverScorecard =
"$server/Admin/v2/quality/driver_scorecard.php";
static String getEmployee = "$server/Admin/employee/get.php"; static String getEmployee = "$server/Admin/employee/get.php";
static String getBestDriver = "$server/Admin/driver/getBestDriver.php"; static String getBestDriver = "$server/Admin/driver/getBestDriver.php";
static String getBestDriverGiza = static String getBestDriverGiza =

View File

@@ -8,10 +8,14 @@ class AppLink {
static String get paymentServer { static String get paymentServer {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main'; case 'Syria':
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main'; return 'https://wallet-syria.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main'; case 'Egypt':
default: return 'https://wallet.siromove.com/v1/main'; return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan':
return 'https://walletintaleq.intaleq.xyz/v2/main';
default:
return 'https://wallet.siromove.com/v1/main';
} }
} }
@@ -26,10 +30,14 @@ class AppLink {
static String get location { static String get location {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3/ride/location'; case 'Syria':
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3/ride/location'; return 'https://api-syria.siromove.com/siro_v3/ride/location';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3/ride/location'; case 'Egypt':
default: return 'https://api.siromove.com/siro_v3/ride/location'; return 'https://api-egypt.siromove.com/siro_v3/ride/location';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
default:
return 'https://api.siromove.com/siro_v3/ride/location';
} }
} }
@@ -37,46 +45,66 @@ class AppLink {
static String get locationServerSide { static String get locationServerSide {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location'; case 'Syria':
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location'; return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt':
return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan': case 'Jordan':
default: return 'https://location-jordan.siromove.com/siro/ride/location'; return 'https://location.intaleq.xyz/intaleq/ride/location';
default:
return 'https://location-jordan.siromove.com/siro/ride/location';
} }
} }
static String get locationSocketUrl { static String get locationSocketUrl {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com'; case 'Syria':
case 'Egypt': return 'https://location-egypt.siromove.com'; return 'https://location-syria.siromove.com';
case 'Egypt':
return 'https://location-egypt.siromove.com';
case 'Jordan': case 'Jordan':
default: return 'https://location-jordan.siromove.com'; // You can change the default to location.intaleq.xyz if needed return 'https://location.intaleq.xyz';
default:
return 'https://location-jordan.siromove.com'; // You can change the default to location.intaleq.xyz if needed
} }
} }
static String get mapSaasRoute { static String get mapSaasRoute {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route'; return 'https://map-syria.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/maps/route'; return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/maps/route';
default:
return 'https://map-saas.intaleqapp.com/api/maps/route';
} }
} }
static String get mapSaasPlaces { static String get mapSaasPlaces {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places'; return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places'; return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
default:
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
} }
} }
static String get routeApiBaseUrl { static String get routeApiBaseUrl {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return "https://routes-syria.siromove.com/route/v1/driving"; case 'Syria':
case 'Egypt': return "https://routes-egypt.siromove.com/route/v1/driving"; return "https://routes-syria.siromove.com/route/v1/driving";
case 'Jordan': return "https://routes-jordan.siromove.com/route/v1/driving"; case 'Egypt':
default: return "https://routes.siromove.com/route/v1/driving"; return "https://routes-egypt.siromove.com/route/v1/driving";
case 'Jordan':
return "https://routesjo.intaleq.xyz/route/v1/driving";
default:
return "https://routes.siromove.com/route/v1/driving";
} }
} }
@@ -89,7 +117,7 @@ class AppLink {
case 'Egypt': case 'Egypt':
return 'https://api-egypt.siromove.com/siro'; return 'https://api-egypt.siromove.com/siro';
case 'Jordan': case 'Jordan':
return 'https://api-jordan.siromove.com/siro'; return 'https://jordan-siro.intaleqapp.com/backend';
default: default:
return 'https://api.siromove.com/siro'; return 'https://api.siromove.com/siro';
} }
@@ -103,21 +131,31 @@ class AppLink {
static String get ride => '$server/ride'; static String get ride => '$server/ride';
static String get rideServer { static String get rideServer {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://ride-syria.siromove.com/siro/ride'; case 'Syria':
case 'Egypt': return 'https://ride-egypt.siromove.com/siro/ride'; return 'https://ride-syria.siromove.com/siro/ride';
case 'Egypt':
return 'https://ride-egypt.siromove.com/siro/ride';
case 'Jordan': case 'Jordan':
default: return 'https://ride-jordan.siromove.com/siro/ride'; return 'https://rides.intaleq.xyz/intaleq';
default:
return 'https://ride-jordan.siromove.com/siro/ride';
} }
} }
static String get getSurgeHeatmap => "$server/ride/heatmap/get_surge_heatmap.php";
static String get getSurgeHeatmap =>
"$server/ride/heatmap/get_surge_heatmap.php";
///mapOSM = 'https://routesy.intaleq.xyz' ///mapOSM = 'https://routesy.intaleq.xyz'
static String get mapOSM { static String get mapOSM {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com'; case 'Syria':
case 'Egypt': return 'https://routes-egypt.siromove.com'; return 'https://routes-syria.siromove.com';
case 'Jordan': return 'https://routes-jordan.siromove.com'; case 'Egypt':
default: return 'https://routes.siromove.com'; return 'https://routes-egypt.siromove.com';
case 'Jordan':
return 'https://routesjo.intaleq.xyz';
default:
return 'https://routes.siromove.com';
} }
} }
@@ -339,14 +377,19 @@ class AppLink {
static String get getPromptDriverDocumentsEgypt => static String get getPromptDriverDocumentsEgypt =>
"$server/auth/captin/getPromptDriverDocumentsEgypt.php"; "$server/auth/captin/getPromptDriverDocumentsEgypt.php";
static String get saveDriverDestination => "$ride/location/save_driver_destination.php"; static String get saveDriverDestination =>
"$ride/location/save_driver_destination.php";
static String get reverseGeocoding { static String get reverseGeocoding {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/reverse'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/reverse'; return 'https://map-syria.siromove.com/api/geocoding/reverse';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/reverse'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/geocoding/reverse'; return 'https://map-egypt.siromove.com/api/geocoding/reverse';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
default:
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
} }
} }
@@ -445,18 +488,19 @@ class AppLink {
"$location/getDriverCarsLocationToPassengerAfterApplied.php"; "$location/getDriverCarsLocationToPassengerAfterApplied.php";
static String get addCarsLocationByPassenger => "$locationServerSide/add.php"; static String get addCarsLocationByPassenger => "$locationServerSide/add.php";
static String get saveBehavior => "$locationServerSide/save_behavior.php"; static String get saveBehavior => "$locationServerSide/save_behavior.php";
static String get addCarsLocationGizaEndpoint => "$locationServerSide/add.php"; static String get addCarsLocationGizaEndpoint =>
"$locationServerSide/add.php";
static String get addCarsLocationAlexandriaEndpoint => static String get addCarsLocationAlexandriaEndpoint =>
"$locationServerSide/add.php"; "$locationServerSide/add.php";
static String get addCarsLocationCairoEndpoint => "$locationServerSide/add.php"; static String get addCarsLocationCairoEndpoint =>
"$locationServerSide/add.php";
static String get deleteCarsLocationByPassenger => static String get deleteCarsLocationByPassenger =>
"$locationServerSide/delete.php"; "$locationServerSide/delete.php";
static String get updateCarsLocationByPassenger => static String get updateCarsLocationByPassenger =>
"$locationServerSide/update.php"; "$locationServerSide/update.php";
static String get getTotalDriverDuration => static String get getTotalDriverDuration =>
"$location/getTotalDriverDuration.php"; "$location/getTotalDriverDuration.php";
static String get getRidesDriverByDay => static String get getRidesDriverByDay => "$location/getRidesDriverByDay.php";
"$location/getRidesDriverByDay.php";
static String get getTotalDriverDurationToday => static String get getTotalDriverDurationToday =>
"$location/getTotalDriverDurationToday.php"; "$location/getTotalDriverDurationToday.php";
@@ -529,11 +573,9 @@ class AppLink {
static String get addCriminalDocuments => static String get addCriminalDocuments =>
"$authCaptin/addCriminalDocuments.php"; "$authCaptin/addCriminalDocuments.php";
static String get sendVerifyEmailCaptin => "$authCaptin/sendVerifyEmail.php"; static String get sendVerifyEmailCaptin => "$authCaptin/sendVerifyEmail.php";
static String get sendVerifyOtpMessage => static String get sendVerifyOtpMessage => "$server/auth/otp/request.php";
"$server/auth/otp/request.php";
static String get verifyOtpMessage => "$server/auth/otp/verify.php"; static String get verifyOtpMessage => "$server/auth/otp/verify.php";
static String get verifyOtpDriver => static String get verifyOtpDriver => "$server/auth/otp/verify.php";
"$server/auth/otp/verify.php";
static String get verifyEmailCaptin => "$authCaptin/verifyEmail.php"; static String get verifyEmailCaptin => "$authCaptin/verifyEmail.php";
static String get removeUser => "$authCaptin/removeAccount.php"; static String get removeUser => "$authCaptin/removeAccount.php";
static String get deletecaptainAccounr => static String get deletecaptainAccounr =>

View File

@@ -15,73 +15,105 @@ class AppLink {
static String get paymentServer { static String get paymentServer {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main'; case 'Syria':
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main'; return 'https://wallet-syria.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main'; case 'Egypt':
default: return 'https://wallet.siromove.com/v1/main'; return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan':
return 'https://walletintaleq.intaleq.xyz/v2/main';
default:
return 'https://wallet.siromove.com/v1/main';
} }
} }
static String get location { static String get location {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3/ride/location'; case 'Syria':
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3/ride/location'; return 'https://api-syria.siromove.com/siro_v3/ride/location';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3/ride/location'; case 'Egypt':
default: return 'https://api.siromove.com/siro_v3/ride/location'; return 'https://api-egypt.siromove.com/siro_v3/ride/location';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
default:
return 'https://api.siromove.com/siro_v3/ride/location';
} }
} }
static String get locationServerSide { static String get locationServerSide {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location'; case 'Syria':
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location'; return 'https://location-syria.siromove.com/siro/ride/location';
case 'Jordan': return 'https://location-jordan.siromove.com/siro/ride/location'; case 'Egypt':
default: return 'https://location.siromove.com/siro/ride/location'; return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan':
return 'https://location.intaleq.xyz/intaleq/ride/location';
default:
return 'https://location.siromove.com/siro/ride/location';
} }
} }
static String get routesOsm { static String get routesOsm {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com'; case 'Syria':
case 'Egypt': return 'https://routes-egypt.siromove.com'; return 'https://routes-syria.siromove.com';
case 'Jordan': return 'https://routes-jordan.siromove.com'; case 'Egypt':
default: return 'https://routes.siromove.com'; return 'https://routes-egypt.siromove.com';
case 'Jordan':
return 'https://routesjo.intaleq.xyz';
default:
return 'https://routes.siromove.com';
} }
} }
static String get mapSaasRoute { static String get mapSaasRoute {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route'; return 'https://map-syria.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/maps/route'; return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/maps/route';
default:
return 'https://map-saas.intaleqapp.com/api/maps/route';
} }
} }
static String get reverseGeocoding { static String get reverseGeocoding {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/reverse'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/reverse'; return 'https://map-syria.siromove.com/api/geocoding/reverse';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/reverse'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/geocoding/reverse'; return 'https://map-egypt.siromove.com/api/geocoding/reverse';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
default:
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
} }
} }
static String get searchGeocoding { static String get searchGeocoding {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/search'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/search'; return 'https://map-syria.siromove.com/api/geocoding/search';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/search'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/geocoding/search'; return 'https://map-egypt.siromove.com/api/geocoding/search';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/search';
default:
return 'https://map-saas.intaleqapp.com/api/geocoding/search';
} }
} }
static String get mapSaasPlaces { static String get mapSaasPlaces {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places'; return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places'; return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
default:
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
} }
} }
@@ -89,28 +121,40 @@ class AppLink {
static String get rideServerSide { static String get rideServerSide {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://ride-syria.siromove.com/siro'; case 'Syria':
case 'Egypt': return 'https://ride-egypt.siromove.com/siro'; return 'https://ride-syria.siromove.com/siro';
case 'Egypt':
return 'https://ride-egypt.siromove.com/siro';
case 'Jordan': case 'Jordan':
default: return 'https://ride-jordan.siromove.com/siro'; return 'https://rides.intaleq.xyz/intaleq';
default:
return 'https://ride-jordan.siromove.com/siro';
} }
} }
static String get server { static String get server {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3'; case 'Syria':
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3'; return 'https://api-syria.siromove.com/siro_v3';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3'; case 'Egypt':
default: return 'https://api.siromove.com/siro_v3'; return 'https://api-egypt.siromove.com/siro_v3';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend';
default:
return 'https://api.siromove.com/siro_v3';
} }
} }
static String get serverSocket { static String get serverSocket {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com'; case 'Syria':
case 'Egypt': return 'https://api-egypt.siromove.com'; return 'https://api-syria.siromove.com';
case 'Jordan': return 'https://api-jordan.siromove.com'; case 'Egypt':
default: return 'https://api.siromove.com'; return 'https://api-egypt.siromove.com';
case 'Jordan':
return 'https://rides.intaleq.xyz';
default:
return 'https://api.siromove.com';
} }
} }
@@ -124,7 +168,8 @@ static String get searcMaps =>
static String get test => "$server/test.php"; static String get test => "$server/test.php";
//===============firebase========================== //===============firebase==========================
static String get getTokens => "$server/ride/firebase/getTokensPassenger.php"; static String get getTokens => "$server/ride/firebase/getTokensPassenger.php";
static String get getTokenParent => "$server/ride/firebase/getTokenParent.php"; static String get getTokenParent =>
"$server/ride/firebase/getTokenParent.php";
static String get addTokens => "$server/ride/firebase/add.php"; static String get addTokens => "$server/ride/firebase/add.php";
static String get addFingerPrint => "$paymentServer/ride/firebase/add.php"; static String get addFingerPrint => "$paymentServer/ride/firebase/add.php";
static String get addTokensDriver => "$server/ride/firebase/addDriver.php"; static String get addTokensDriver => "$server/ride/firebase/addDriver.php";
@@ -183,7 +228,8 @@ static String get addRides => "$rideServerSide/ride/rides/add.php";
static String get getRides => "$rideServerSide/ride/rides/get.php"; static String get getRides => "$rideServerSide/ride/rides/get.php";
static String get getRideOrderID => static String get getRideOrderID =>
"$rideServerSide/ride/rides/getRideOrderID.php"; "$rideServerSide/ride/rides/getRideOrderID.php";
static String get getRideStatus => "$rideServerSide/ride/rides/getRideStatus.php"; static String get getRideStatus =>
"$rideServerSide/ride/rides/getRideStatus.php";
static String get getRideStatusBegin => static String get getRideStatusBegin =>
"$rideServerSide/ride/rides/getRideStatusBegin.php"; "$rideServerSide/ride/rides/getRideStatusBegin.php";
static String get getRideStatusFromStartApp => static String get getRideStatusFromStartApp =>
@@ -221,8 +267,10 @@ static String get payWithSyriatelConfirm =>
"$paymentServer/ride/syriatel/passenger/confirm_payment.php"; "$paymentServer/ride/syriatel/passenger/confirm_payment.php";
static String get payWithSyriatelStart => static String get payWithSyriatelStart =>
"$paymentServer/ride/syriatel/passenger/start_payment.php"; "$paymentServer/ride/syriatel/passenger/start_payment.php";
static String get getDriverpaymentToday => "$paymentServer/ride/payment/get.php"; static String get getDriverpaymentToday =>
static String get getCountRide => "$paymentServer/ride/payment/getCountRide.php"; "$paymentServer/ride/payment/get.php";
static String get getCountRide =>
"$paymentServer/ride/payment/getCountRide.php";
static String get getAllPaymentFromRide => static String get getAllPaymentFromRide =>
"$paymentServer/ride/payment/getAllPayment.php"; "$paymentServer/ride/payment/getAllPayment.php";
static String get getAllPaymentVisa => static String get getAllPaymentVisa =>
@@ -232,10 +280,14 @@ static String get createMtnInvoice =>
static String get createCliqInvoice => static String get createCliqInvoice =>
"$paymentServer/ride/cliq/create_cliq_invoice.php"; "$paymentServer/ride/cliq/create_cliq_invoice.php";
static String get checkMtnStatus => "$paymentServer/ride/mtn_new/check_status.php"; static String get checkMtnStatus =>
static String get checkCliqStatus => "$paymentServer/ride/cliq/check_status.php"; "$paymentServer/ride/mtn_new/check_status.php";
static String get uploadMtnProof => "$paymentServer/ride/mtn_new/verify_payment_ai.php"; static String get checkCliqStatus =>
static String get uploadCliqProof => "$paymentServer/ride/cliq/verify_payment_ai.php"; "$paymentServer/ride/cliq/check_status.php";
static String get uploadMtnProof =>
"$paymentServer/ride/mtn_new/verify_payment_ai.php";
static String get uploadCliqProof =>
"$paymentServer/ride/cliq/verify_payment_ai.php";
//-----------------Passenger NotificationCaptain------------------ //-----------------Passenger NotificationCaptain------------------
static String get addNotificationPassenger => static String get addNotificationPassenger =>
@@ -260,9 +312,12 @@ static String get updateNotificationCaptain =>
static String get deleteNotificationCaptain => static String get deleteNotificationCaptain =>
"$server/ride/notificationCaptain/delete.php"; "$server/ride/notificationCaptain/delete.php";
//-----------------invitor------------------ //-----------------invitor------------------
static String get getUnifiedCode => "$server/ride/invitor/get_unified_code.php"; static String get getUnifiedCode =>
static String get addUnifiedInvite => "$server/ride/invitor/add_unified_invite.php"; "$server/ride/invitor/get_unified_code.php";
static String get getPassengerReferrals => "$server/ride/invitor/get_passenger_referrals.php"; static String get addUnifiedInvite =>
"$server/ride/invitor/add_unified_invite.php";
static String get getPassengerReferrals =>
"$server/ride/invitor/get_passenger_referrals.php";
static String get addInviteDriver => "$server/ride/invitor/add.php"; static String get addInviteDriver => "$server/ride/invitor/add.php";
static String get addInvitationPassenger => static String get addInvitationPassenger =>
"$server/ride/invitor/addInvitationPassenger.php"; "$server/ride/invitor/addInvitationPassenger.php";
@@ -286,7 +341,8 @@ static String get addFeedBack => "$server/ride/feedBack/add.php";
static String get add_solve_all => "$server/ride/feedBack/add_solve_all.php"; static String get add_solve_all => "$server/ride/feedBack/add_solve_all.php";
static String get uploadAudio => "$server/ride/feedBack/upload_audio.php"; static String get uploadAudio => "$server/ride/feedBack/upload_audio.php";
static String get getFeedBack => "$server/ride/feedBack/get.php"; static String get getFeedBack => "$server/ride/feedBack/get.php";
static String get updateFeedBack => "$server/ride/feedBack/updateFeedBack.php"; static String get updateFeedBack =>
"$server/ride/feedBack/updateFeedBack.php";
//-----------------Tips------------------ //-----------------Tips------------------
static String get addTips => "$server/ride/tips/add.php"; static String get addTips => "$server/ride/tips/add.php";
@@ -310,7 +366,8 @@ static String get getRegisrationCar =>
"${box.read(BoxName.serverChosen)}/server/ride/RegisrationCar/get.php"; "${box.read(BoxName.serverChosen)}/server/ride/RegisrationCar/get.php";
static String get selectDriverAndCarForMishwariTrip => static String get selectDriverAndCarForMishwariTrip =>
"$server/ride/RegisrationCar/selectDriverAndCarForMishwariTrip.php"; "$server/ride/RegisrationCar/selectDriverAndCarForMishwariTrip.php";
static String get updateRegisrationCar => "$server/ride/RegisrationCar/update.php"; static String get updateRegisrationCar =>
"$server/ride/RegisrationCar/update.php";
//-----------------mishwari------------------ //-----------------mishwari------------------
@@ -338,7 +395,8 @@ static String get addRateToPassenger => "$server/ride/rate/add.php";
static String get addRateToDriver => "$server/ride/rate/addRateToDriver.php"; static String get addRateToDriver => "$server/ride/rate/addRateToDriver.php";
static String get getDriverRate => "$server/ride/rate/getDriverRate.php"; static String get getDriverRate => "$server/ride/rate/getDriverRate.php";
static String get getPassengerRate => "$server/ride/rate/getPassengerRate.php"; static String get getPassengerRate =>
"$server/ride/rate/getPassengerRate.php";
////////////////emails ============// ////////////////emails ============//
static String get sendEmailToPassengerForTripDetails => static String get sendEmailToPassengerForTripDetails =>
@@ -364,8 +422,10 @@ static String get getLocationAreaLinks =>
static String get addpassengerLocation => static String get addpassengerLocation =>
"$locationServerSide/addpassengerLocation.php"; "$locationServerSide/addpassengerLocation.php";
static String get getCarsLocationByPassengerSpeed => "$location/getSpeed.php"; static String get getCarsLocationByPassengerSpeed => "$location/getSpeed.php";
static String get getCarsLocationByPassengerComfort => "$location/getComfort.php"; static String get getCarsLocationByPassengerComfort =>
static String get getCarsLocationByPassengerBalash => "$location/getBalash.php"; "$location/getComfort.php";
static String get getCarsLocationByPassengerBalash =>
"$location/getBalash.php";
static String get getCarsLocationByPassengerElectric => static String get getCarsLocationByPassengerElectric =>
"$location/getElectric.php"; "$location/getElectric.php";
static String get getCarsLocationByPassengerPinkBike => static String get getCarsLocationByPassengerPinkBike =>
@@ -404,10 +464,13 @@ static String get loginFirstTime => "$server/loginFirstTime.php";
static String get getTesterApp => "$auth/Tester/getTesterApp.php"; static String get getTesterApp => "$auth/Tester/getTesterApp.php";
static String get updateTesterApp => "$auth/Tester/updateTesterApp.php"; static String get updateTesterApp => "$auth/Tester/updateTesterApp.php";
static String get signUp => "$auth/signup.php"; static String get signUp => "$auth/signup.php";
static String get savePassengerLocation => "$auth/save_passenger_location.php"; static String get savePassengerLocation =>
"$auth/save_passenger_location.php";
static String get sendVerifyEmail => "$auth/sendVerifyEmail.php"; static String get sendVerifyEmail => "$auth/sendVerifyEmail.php";
static String get loginFromGooglePassenger => "$auth/loginFromGooglePassenger.php"; static String get loginFromGooglePassenger =>
static String get loginUsingCredentialsWithoutGooglePassenger => "$auth/loginUsingCredentialsWithoutGooglePassenger.php"; "$auth/loginFromGooglePassenger.php";
static String get loginUsingCredentialsWithoutGooglePassenger =>
"$auth/loginUsingCredentialsWithoutGooglePassenger.php";
static String get checkPhoneNumberISVerfiedPassenger => static String get checkPhoneNumberISVerfiedPassenger =>
"$auth/checkPhoneNumberISVerfiedPassenger.php"; "$auth/checkPhoneNumberISVerfiedPassenger.php";
@@ -424,7 +487,8 @@ static String get sendVerifyOtpMessage => "$server/auth/otp/request.php";
static String get verifyOtpMessage => "$server/auth/otp/verify.php"; static String get verifyOtpMessage => "$server/auth/otp/verify.php";
static String get verifyEmailCaptin => "$authCaptin/verifyEmail.php"; static String get verifyEmailCaptin => "$authCaptin/verifyEmail.php";
static String get removeUser => "$authCaptin/removeAccount.php"; static String get removeUser => "$authCaptin/removeAccount.php";
static String get deletecaptainAccounr => "$authCaptin/deletecaptainAccounr.php"; static String get deletecaptainAccounr =>
"$authCaptin/deletecaptainAccounr.php";
static String get updateAccountBank => "$authCaptin/updateAccountBank.php"; static String get updateAccountBank => "$authCaptin/updateAccountBank.php";
static String get getAccount => "$authCaptin/getAccount.php"; static String get getAccount => "$authCaptin/getAccount.php";
static String get updatePassengersInvitation => static String get updatePassengersInvitation =>
@@ -435,8 +499,10 @@ static String get updateDriverInvitationDirectly =>
static String get getPassengerDetailsByPassengerID => static String get getPassengerDetailsByPassengerID =>
"$server/Admin/getPassengerDetailsByPassengerID.php"; "$server/Admin/getPassengerDetailsByPassengerID.php";
static String get getPassengerDetails => "$server/Admin/getPassengerDetails.php"; static String get getPassengerDetails =>
static String get getPassengerbyEmail => "$server/Admin/getPassengerbyEmail.php"; "$server/Admin/getPassengerDetails.php";
static String get getPassengerbyEmail =>
"$server/Admin/getPassengerbyEmail.php";
static String get addAdminUser => "$server/Admin/adminUser/add.php"; static String get addAdminUser => "$server/Admin/adminUser/add.php";
static String get getAdminUser => "$server/Admin/adminUser/get.php"; static String get getAdminUser => "$server/Admin/adminUser/get.php";
static String get addError => "$server/Admin/errorApp.php"; static String get addError => "$server/Admin/errorApp.php";
@@ -449,12 +515,11 @@ static String get getRidesDetails => "$server/Admin/AdminRide/get.php";
//////////Sms egypt/////////// //////////Sms egypt///////////
static String get sendSms => "https://sms.kazumi.me/api/sms/send-sms"; static String get sendSms => "https://sms.kazumi.me/api/sms/send-sms";
static String get sendSmsFromPHP => static String get sendSmsFromPHP => '$server/auth/otp/request.php';
'$server/auth/otp/request.php'; static String get verifyOtpPassenger => '$server/auth/otp/verify.php';
static String get verifyOtpPassenger =>
'$server/auth/otp/verify.php';
static String get senddlr => "https://sms.kazumi.me/api/sms/send-dlr"; static String get senddlr => "https://sms.kazumi.me/api/sms/send-dlr";
static String get sendvalidity => "https://sms.kazumi.me/api/sms/send-validity"; static String get sendvalidity =>
"https://sms.kazumi.me/api/sms/send-validity";
static String get sendmany => "https://sms.kazumi.me/api/sms/send-many"; static String get sendmany => "https://sms.kazumi.me/api/sms/send-many";
static String get checkCredit => "https://sms.kazumi.me/api/sms/check-credit"; static String get checkCredit => "https://sms.kazumi.me/api/sms/check-credit";
static String get getSender => "$server/auth/sms/getSender.php"; static String get getSender => "$server/auth/sms/getSender.php";

View File

@@ -13,19 +13,27 @@ class AppLink {
static String get paymentServer { static String get paymentServer {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main'; case 'Syria':
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main'; return 'https://wallet-syria.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main'; case 'Egypt':
default: return 'https://wallet.siromove.com/v1/main'; return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan':
return 'https://walletintaleq.intaleq.xyz/v2/main';
default:
return 'https://wallet.siromove.com/v1/main';
} }
} }
static String get locationServer { static String get locationServer {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location'; case 'Syria':
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location'; return 'https://location-syria.siromove.com/siro/ride/location';
case 'Jordan': return 'https://location-jordan.siromove.com/siro/ride/location'; case 'Egypt':
default: return 'https://location.siromove.com/siro/ride/location'; return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan':
return 'https://location.intaleq.xyz/intaleq/ride/location';
default:
return 'https://location.siromove.com/siro/ride/location';
} }
} }
@@ -34,28 +42,40 @@ class AppLink {
static String get mapSaasRoute { static String get mapSaasRoute {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route'; return 'https://map-syria.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/maps/route'; return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/maps/route';
default:
return 'https://map-saas.intaleqapp.com/api/maps/route';
} }
} }
static String get mapSaasPlaces { static String get mapSaasPlaces {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places'; case 'Syria':
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places'; return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places'; case 'Egypt':
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places'; return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
default:
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
} }
} }
static String get routeApiBaseUrl { static String get routeApiBaseUrl {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com/route/v1/driving'; case 'Syria':
case 'Egypt': return 'https://routes-egypt.siromove.com/route/v1/driving'; return 'https://routes-syria.siromove.com/route/v1/driving';
case 'Jordan': return 'https://routes-jordan.siromove.com/route/v1/driving'; case 'Egypt':
default: return 'https://routes.siromove.com/route/v1/driving'; return 'https://routes-egypt.siromove.com/route/v1/driving';
case 'Jordan':
return 'https://routesjo.intaleq.xyz/route/v1/driving';
default:
return 'https://routes.siromove.com/route/v1/driving';
} }
} }
@@ -65,19 +85,27 @@ class AppLink {
static String get endPoint { static String get endPoint {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3'; case 'Syria':
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3'; return 'https://api-syria.siromove.com/siro_v3';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3'; case 'Egypt':
default: return 'https://api.siromove.com/siro_v3'; return 'https://api-egypt.siromove.com/siro_v3';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend';
default:
return 'https://api.siromove.com/siro_v3';
} }
} }
static String get rideServer { static String get rideServer {
switch (currentCountry) { switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro'; case 'Syria':
case 'Egypt': return 'https://api-egypt.siromove.com/siro'; return 'https://api-syria.siromove.com/siro';
case 'Jordan': return 'https://api-jordan.siromove.com/siro'; case 'Egypt':
default: return 'https://api.siromove.com/siro'; return 'https://api-egypt.siromove.com/siro';
case 'Jordan':
return 'https://rides.intaleq.xyz/intaleq';
default:
return 'https://api.siromove.com/siro';
} }
} }
@@ -86,7 +114,6 @@ class AppLink {
static final String jwtService = '$server/jwtService.php'; static final String jwtService = '$server/jwtService.php';
static String addError = "$server/Admin/errorApp.php"; static String addError = "$server/Admin/errorApp.php";
// static final String endPoint = box.read(BoxName.serverChosen); // static final String endPoint = box.read(BoxName.serverChosen);
// static final String server = Env.seferCairoServer; // static final String server = Env.seferCairoServer;
// static const String server = "https://sefer.click/sefer/sefer"; // static const String server = "https://sefer.click/sefer/sefer";