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,247 +121,272 @@ 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';
} }
} }
/// ///
static String get googleMapsLink => 'https://maps.googleapis.com/maps/api/'; static String get googleMapsLink => 'https://maps.googleapis.com/maps/api/';
/// here map link for searching for places /// here map link for searching for places
static String get searcMaps => static String get searcMaps =>
'https://autosuggest.search.hereapi.com/v1/autosuggest'; 'https://autosuggest.search.hereapi.com/v1/autosuggest';
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 =>
static String get addTokens => "$server/ride/firebase/add.php"; "$server/ride/firebase/getTokenParent.php";
static String get addFingerPrint => "$paymentServer/ride/firebase/add.php"; static String get addTokens => "$server/ride/firebase/add.php";
static String get addTokensDriver => "$server/ride/firebase/addDriver.php"; static String get addFingerPrint => "$paymentServer/ride/firebase/add.php";
static String get packageInfo => "$server/auth/packageInfo.php"; static String get addTokensDriver => "$server/ride/firebase/addDriver.php";
static String get packageInfo => "$server/auth/packageInfo.php";
//=======================Wallet=================== //=======================Wallet===================
static String get wallet => '$paymentServer/ride/passengerWallet'; static String get wallet => '$paymentServer/ride/passengerWallet';
static String get walletDriver => '$paymentServer/ride/driverWallet'; static String get walletDriver => '$paymentServer/ride/driverWallet';
static String get getAllPassengerTransaction => static String get getAllPassengerTransaction =>
"$wallet/getAllPassengerTransaction.php"; "$wallet/getAllPassengerTransaction.php";
static String get getWalletByPassenger => "$wallet/getWalletByPassenger.php"; static String get getWalletByPassenger => "$wallet/getWalletByPassenger.php";
static String get getPassengersWallet => "$wallet/get.php"; static String get getPassengersWallet => "$wallet/get.php";
static String get payWithPayMobWalletPasenger => static String get payWithPayMobWalletPasenger =>
'$paymentServer/ride/payMob/wallet/payWithPayMob.php'; '$paymentServer/ride/payMob/wallet/payWithPayMob.php';
static String get payWithPayMobCardPassenger => static String get payWithPayMobCardPassenger =>
'$paymentServer/ride/payMob/payWithPayMob.php'; '$paymentServer/ride/payMob/payWithPayMob.php';
static String get payWithEcash => "$paymentServer/ecash/payWithEcash.php"; static String get payWithEcash => "$paymentServer/ecash/payWithEcash.php";
static String get paymetVerifyPassenger => static String get paymetVerifyPassenger =>
"$paymentServer/ride/payMob/paymet_verfy.php"; "$paymentServer/ride/payMob/paymet_verfy.php";
static String get getPassengerWalletArchive => static String get getPassengerWalletArchive =>
"$wallet/getPassengerWalletArchive.php"; "$wallet/getPassengerWalletArchive.php";
static String get addDrivePayment => "$paymentServer/ride/payment/add.php"; static String get addDrivePayment => "$paymentServer/ride/payment/add.php";
static String get addSeferWallet => "$paymentServer/ride/seferWallet/add.php"; static String get addSeferWallet => "$paymentServer/ride/seferWallet/add.php";
static String get addPassengersWallet => "$wallet/add.php"; static String get addPassengersWallet => "$wallet/add.php";
static String get deletePassengersWallet => "$wallet/delete.php"; static String get deletePassengersWallet => "$wallet/delete.php";
static String get updatePassengersWallet => "$wallet/update.php"; static String get updatePassengersWallet => "$wallet/update.php";
static String get getWalletByDriver => "$walletDriver/getWalletByDriver.php"; static String get getWalletByDriver => "$walletDriver/getWalletByDriver.php";
static String get getDriversWallet => "$walletDriver/get.php"; static String get getDriversWallet => "$walletDriver/get.php";
static String get addDriversWalletPoints => "$walletDriver/add.php"; static String get addDriversWalletPoints => "$walletDriver/add.php";
static String get deleteDriversWallet => "$walletDriver/delete.php"; static String get deleteDriversWallet => "$walletDriver/delete.php";
static String get updateDriversWallet => "$walletDriver/update.php"; static String get updateDriversWallet => "$walletDriver/update.php";
//=======================promo===================ride.mobile-app.store/ride/promo/get.php //=======================promo===================ride.mobile-app.store/ride/promo/get.php
static String get promo => '$server/ride/promo'; static String get promo => '$server/ride/promo';
static String get getPassengersPromo => "$promo/get.php"; static String get getPassengersPromo => "$promo/get.php";
static String get getPromoFirst => "$promo/getPromoFirst.php"; static String get getPromoFirst => "$promo/getPromoFirst.php";
static String get getPromoBytody => "$promo/getPromoBytody.php"; static String get getPromoBytody => "$promo/getPromoBytody.php";
static String get addPassengersPromo => "$promo/add.php"; static String get addPassengersPromo => "$promo/add.php";
static String get deletePassengersPromo => "$promo/delete.php"; static String get deletePassengersPromo => "$promo/delete.php";
static String get updatePassengersPromo => "$promo/update.php"; static String get updatePassengersPromo => "$promo/update.php";
//===============contact========================== //===============contact==========================
static String get savePhones => "$server/ride/egyptPhones/add.php"; static String get savePhones => "$server/ride/egyptPhones/add.php";
static String get getPhones => "$server/ride/egyptPhones/get.php"; static String get getPhones => "$server/ride/egyptPhones/get.php";
////=======================cancelRide=================== ////=======================cancelRide===================
// static String ride = '$server/ride'; // static String ride = '$server/ride';
static String get addCancelRideFromPassenger => static String get addCancelRideFromPassenger =>
"$rideServerSide/cancelRide/add.php"; "$rideServerSide/cancelRide/add.php";
static String get cancelRide => "$rideServerSide/cancelRide/get.php"; static String get cancelRide => "$rideServerSide/cancelRide/get.php";
//-----------------ridessss------------------ //-----------------ridessss------------------
static String get addRides => "$rideServerSide/ride/rides/add.php"; 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 =>
static String get getRideStatusBegin => "$rideServerSide/ride/rides/getRideStatus.php";
static String get getRideStatusBegin =>
"$rideServerSide/ride/rides/getRideStatusBegin.php"; "$rideServerSide/ride/rides/getRideStatusBegin.php";
static String get getRideStatusFromStartApp => static String get getRideStatusFromStartApp =>
"$server/ride/rides/getRideStatusFromStartApp.php"; "$server/ride/rides/getRideStatusFromStartApp.php";
static String get updateRides => "$rideServerSide/ride/rides/update.php"; static String get updateRides => "$rideServerSide/ride/rides/update.php";
static String get updateStausFromSpeed => static String get updateStausFromSpeed =>
"$rideServerSide/ride/rides/updateStausFromSpeed.php"; "$rideServerSide/ride/rides/updateStausFromSpeed.php";
static String get deleteRides => "$rideServerSide/ride/rides/delete.php"; static String get deleteRides => "$rideServerSide/ride/rides/delete.php";
//-----------------DriverPayment------------------ //-----------------DriverPayment------------------
static String get adddriverScam => "$server/driver_scam/add.php"; static String get adddriverScam => "$server/driver_scam/add.php";
static String get getdriverScam => "$server/ride/driver_scam/get.php"; static String get getdriverScam => "$server/ride/driver_scam/get.php";
/////////---getKazanPercent===//////////// /////////---getKazanPercent===////////////
static String get getKazanPercent => "$server/ride/kazan/get.php"; static String get getKazanPercent => "$server/ride/kazan/get.php";
static String get addKazanPercent => "$server/ride/kazan/add.php"; static String get addKazanPercent => "$server/ride/kazan/add.php";
////-----------------DriverPayment------------------ ////-----------------DriverPayment------------------
static String get addDriverpayment => "$paymentServer/ride/payment/add.php"; static String get addDriverpayment => "$paymentServer/ride/payment/add.php";
static String get addDriverPaymentPoints => static String get addDriverPaymentPoints =>
"$paymentServer/ride/driverPayment/add.php"; "$paymentServer/ride/driverPayment/add.php";
static String get addPaymentTokenPassenger => static String get addPaymentTokenPassenger =>
"$paymentServer/ride/passengerWallet/addPaymentTokenPassenger.php"; "$paymentServer/ride/passengerWallet/addPaymentTokenPassenger.php";
static String get addPaymentTokenDriver => static String get addPaymentTokenDriver =>
"$paymentServer/ride/driverWallet/addPaymentToken.php"; "$paymentServer/ride/driverWallet/addPaymentToken.php";
static String get getDriverPaymentPoints => static String get getDriverPaymentPoints =>
"$paymentServer/ride/driverWallet/get.php"; "$paymentServer/ride/driverWallet/get.php";
static String get payWithEcashPassenger => static String get payWithEcashPassenger =>
"$paymentServer/ride/ecash/passenger/payWithEcash.php"; "$paymentServer/ride/ecash/passenger/payWithEcash.php";
static String get payWithMTNConfirm => static String get payWithMTNConfirm =>
"$paymentServer/ride/mtn/passenger/mtn_confirm.php"; "$paymentServer/ride/mtn/passenger/mtn_confirm.php";
static String get payWithMTNStart => static String get payWithMTNStart =>
"$paymentServer/ride/mtn/passenger/mtn_start.php"; "$paymentServer/ride/mtn/passenger/mtn_start.php";
static String get payWithSyriatelConfirm => 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 getAllPaymentFromRide => static String get getCountRide =>
"$paymentServer/ride/payment/getCountRide.php";
static String get getAllPaymentFromRide =>
"$paymentServer/ride/payment/getAllPayment.php"; "$paymentServer/ride/payment/getAllPayment.php";
static String get getAllPaymentVisa => static String get getAllPaymentVisa =>
"$paymentServer/ride/payment/getAllPaymentVisa.php"; "$paymentServer/ride/payment/getAllPaymentVisa.php";
static String get createMtnInvoice => static String get createMtnInvoice =>
"$paymentServer/ride/mtn_new/create_mtn_invoice.php"; "$paymentServer/ride/mtn_new/create_mtn_invoice.php";
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 =>
"$server/ride/notificationPassenger/add.php"; "$server/ride/notificationPassenger/add.php";
static String get getNotificationPassenger => static String get getNotificationPassenger =>
"$server/ride/notificationPassenger/get.php"; "$server/ride/notificationPassenger/get.php";
static String get updateNotificationPassenger => static String get updateNotificationPassenger =>
"$server/ride/notificationPassenger/update.php"; "$server/ride/notificationPassenger/update.php";
//-----------------Driver NotificationCaptain------------------ //-----------------Driver NotificationCaptain------------------
static String get addNotificationCaptain => static String get addNotificationCaptain =>
"$server/ride/notificationCaptain/add.php"; "$server/ride/notificationCaptain/add.php";
static String get addWaitingRide => static String get addWaitingRide =>
"$server/ride/notificationCaptain/addWaitingRide.php"; "$server/ride/notificationCaptain/addWaitingRide.php";
static String get updateWaitingTrip => static String get updateWaitingTrip =>
"$server/ride/notificationCaptain/updateWaitingTrip.php"; "$server/ride/notificationCaptain/updateWaitingTrip.php";
static String get getRideWaiting => static String get getRideWaiting =>
"$endPoint/ride/notificationCaptain/getRideWaiting.php"; "$endPoint/ride/notificationCaptain/getRideWaiting.php";
static String get getNotificationCaptain => static String get getNotificationCaptain =>
"$server/ride/notificationCaptain/get.php"; "$server/ride/notificationCaptain/get.php";
static String get updateNotificationCaptain => static String get updateNotificationCaptain =>
"$server/ride/notificationCaptain/update.php"; "$server/ride/notificationCaptain/update.php";
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 =>
static String get addInviteDriver => "$server/ride/invitor/add.php"; "$server/ride/invitor/add_unified_invite.php";
static String get addInvitationPassenger => static String get getPassengerReferrals =>
"$server/ride/invitor/get_passenger_referrals.php";
static String get addInviteDriver => "$server/ride/invitor/add.php";
static String get addInvitationPassenger =>
"$server/ride/invitor/addInvitationPassenger.php"; "$server/ride/invitor/addInvitationPassenger.php";
static String get getInviteDriver => "$server/ride/invitor/get.php"; static String get getInviteDriver => "$server/ride/invitor/get.php";
static String get getDriverInvitationToPassengers => static String get getDriverInvitationToPassengers =>
"$server/ride/invitor/getDriverInvitationToPassengers.php"; "$server/ride/invitor/getDriverInvitationToPassengers.php";
static String get updateInviteDriver => "$server/ride/invitor/update.php"; static String get updateInviteDriver => "$server/ride/invitor/update.php";
static String get updatePassengerGift => static String get updatePassengerGift =>
"$server/ride/invitor/updatePassengerGift.php"; "$server/ride/invitor/updatePassengerGift.php";
static String get claimInviteReward => "$server/ride/invitor/claim.php"; static String get claimInviteReward => "$server/ride/invitor/claim.php";
//-----------------Api Key------------------ //-----------------Api Key------------------
static String get addApiKey => "$server/ride/apiKey/add.php"; static String get addApiKey => "$server/ride/apiKey/add.php";
static String get getApiKey => "$server/ride/apiKey/get.php"; static String get getApiKey => "$server/ride/apiKey/get.php";
static String get getCnMap => "$server/auth/cnMap.php"; static String get getCnMap => "$server/auth/cnMap.php";
static String get updateApiKey => "$server/ride/apiKey/update.php"; static String get updateApiKey => "$server/ride/apiKey/update.php";
static String get deleteApiKey => "$server/ride/apiKey/delete.php"; static String get deleteApiKey => "$server/ride/apiKey/delete.php";
static String get getPlacesSyria => "$server/ride/places_syria/get.php"; static String get getPlacesSyria => "$server/ride/places_syria/get.php";
//-----------------Feed Back------------------ //-----------------Feed Back------------------
static String get addFeedBack => "$server/ride/feedBack/add.php"; 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";
static String get getTips => "$server/ride/tips/get.php"; static String get getTips => "$server/ride/tips/get.php";
static String get updateTips => "$server/ride/tips/update.php"; static String get updateTips => "$server/ride/tips/update.php";
//-----------------Help Center------------------ //-----------------Help Center------------------
static String get addhelpCenter => "$server/ride/helpCenter/add.php"; static String get addhelpCenter => "$server/ride/helpCenter/add.php";
static String get gethelpCenter => "$server/ride/helpCenter/get.php"; static String get gethelpCenter => "$server/ride/helpCenter/get.php";
static String get getByIdhelpCenter => "$server/ride/helpCenter/getById.php"; static String get getByIdhelpCenter => "$server/ride/helpCenter/getById.php";
static String get updatehelpCenter => "$server/ride/helpCenter/update.php"; static String get updatehelpCenter => "$server/ride/helpCenter/update.php";
static String get deletehelpCenter => "$server/ride/helpCenter/delete.php"; static String get deletehelpCenter => "$server/ride/helpCenter/delete.php";
//-----------------license------------------ //-----------------license------------------
static String get addLicense => "$server/ride/license/add.php"; static String get addLicense => "$server/ride/license/add.php";
static String get getLicense => "$server/ride/license/get.php"; static String get getLicense => "$server/ride/license/get.php";
static String get updateLicense => "$server/ride/license/updateFeedBack.php"; static String get updateLicense => "$server/ride/license/updateFeedBack.php";
//-----------------RegisrationCar------------------ //-----------------RegisrationCar------------------
static String get addRegisrationCar => "$server/ride/RegisrationCar/add.php"; static String get addRegisrationCar => "$server/ride/RegisrationCar/add.php";
static String get getRegisrationCar => 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------------------
static String get addMishwari => "$server/ride/mishwari/add.php"; static String get addMishwari => "$server/ride/mishwari/add.php";
static String get cancelMishwari => "$server/ride/mishwari/cancel.php"; static String get cancelMishwari => "$server/ride/mishwari/cancel.php";
static String get getMishwari => "$server/ride/mishwari/get.php"; static String get getMishwari => "$server/ride/mishwari/get.php";
static String get sendChatMessage => "$server/ride/chat/send_message.php"; static String get sendChatMessage => "$server/ride/chat/send_message.php";
//-----------------DriverOrder------------------ //-----------------DriverOrder------------------
static String get addDriverOrder => "$server/ride/driver_order/add.php"; static String get addDriverOrder => "$server/ride/driver_order/add.php";
static String get getDriverOrder => "$server/ride/driver_order/get.php"; static String get getDriverOrder => "$server/ride/driver_order/get.php";
static String get getOrderCancelStatus => static String get getOrderCancelStatus =>
"$server/ride/driver_order/getOrderCancelStatus.php"; "$server/ride/driver_order/getOrderCancelStatus.php";
static String get updateDriverOrder => "$server/ride/driver_order/update.php"; static String get updateDriverOrder => "$server/ride/driver_order/update.php";
static String get deleteDriverOrder => "$server/ride/driver_order/delete.php"; static String get deleteDriverOrder => "$server/ride/driver_order/delete.php";
// ===================================== // =====================================
static String get addRateToPassenger => "$server/ride/rate/add.php"; static String get addRateToPassenger => "$server/ride/rate/add.php";
static String get savePlacesServer => "$server/ride/places/add.php"; static String get savePlacesServer => "$server/ride/places/add.php";
static String get getapiKey => "$server/ride/apiKey/get.php"; static String get getapiKey => "$server/ride/apiKey/get.php";
@@ -337,47 +394,50 @@ static String get addRateToPassenger => "$server/ride/rate/add.php";
static String get getPrices => "$server/ride/pricing/get.php"; static String get getPrices => "$server/ride/pricing/get.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 =>
"$server/ride/rides/emailToPassengerTripDetail.php"; "$server/ride/rides/emailToPassengerTripDetail.php";
// =========================================== // ===========================================
static String get pathImage => "$server/upload/types/"; static String get pathImage => "$server/upload/types/";
static String get uploadImage => "$server/uploadImage.php"; static String get uploadImage => "$server/uploadImage.php";
static String get uploadImage1 => "$server/uploadImage1.php"; static String get uploadImage1 => "$server/uploadImage1.php";
static String get uploadImagePortrate => "$server/uploadImagePortrate.php"; static String get uploadImagePortrate => "$server/uploadImagePortrate.php";
static String get uploadImageType => "$server/uploadImageType.php"; static String get uploadImageType => "$server/uploadImageType.php";
//=============egypt documents ============== //=============egypt documents ==============
static String get uploadEgyptidFront => static String get uploadEgyptidFront =>
"$server/EgyptDocuments/uploadEgyptidFront.php"; "$server/EgyptDocuments/uploadEgyptidFront.php";
static String get uploadEgypt => "$server/uploadEgypt.php"; static String get uploadEgypt => "$server/uploadEgypt.php";
//==================certifcate========== //==================certifcate==========
// static String location = '${box.read(BoxName.serverChosen)}/ride/location'; // static String location = '${box.read(BoxName.serverChosen)}/ride/location';
static String get getCarsLocationByPassenger => "$location/get.php"; static String get getCarsLocationByPassenger => "$location/get.php";
static String get getLocationAreaLinks => static String get getLocationAreaLinks =>
'$server/ride/location/get_location_area_links.php'; '$server/ride/location/get_location_area_links.php';
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 getCarsLocationByPassengerElectric => static String get getCarsLocationByPassengerBalash =>
"$location/getBalash.php";
static String get getCarsLocationByPassengerElectric =>
"$location/getElectric.php"; "$location/getElectric.php";
static String get getCarsLocationByPassengerPinkBike => static String get getCarsLocationByPassengerPinkBike =>
"$location/getPinkBike.php"; "$location/getPinkBike.php";
static String get getCarsLocationByPassengerVan => static String get getCarsLocationByPassengerVan =>
"$location/getCarsLocationByPassengerVan.php"; "$location/getCarsLocationByPassengerVan.php";
static String get getCarsLocationByPassengerDelivery => static String get getCarsLocationByPassengerDelivery =>
"$location/getDelivery.php"; "$location/getDelivery.php";
static String get getLocationParents => "$location/getLocationParents.php"; static String get getLocationParents => "$location/getLocationParents.php";
static String get getFemalDriverLocationByPassenger => static String get getFemalDriverLocationByPassenger =>
"$location/getFemalDriver.php"; "$location/getFemalDriver.php";
static String get getDriverCarsLocationToPassengerAfterApplied => static String get getDriverCarsLocationToPassengerAfterApplied =>
"$location/getDriverCarsLocationToPassengerAfterApplied.php"; "$location/getDriverCarsLocationToPassengerAfterApplied.php";
// static String addCarsLocationByPassenger = "$location/add.php"; // static String addCarsLocationByPassenger = "$location/add.php";
// static String deleteCarsLocationByPassenger = "$location/delete.php"; // static String deleteCarsLocationByPassenger = "$location/delete.php";
@@ -387,78 +447,83 @@ static String get getDriverCarsLocationToPassengerAfterApplied =>
// "$location/getTotalDriverDurationToday.php"; // "$location/getTotalDriverDurationToday.php";
//==================Blog============= //==================Blog=============
static String get profile => '$server/ride/profile'; static String get profile => '$server/ride/profile';
static String get getprofile => "$profile/get.php"; static String get getprofile => "$profile/get.php";
static String get getCaptainProfile => "$profile/getCaptainProfile.php"; static String get getCaptainProfile => "$profile/getCaptainProfile.php";
static String get addprofile => "$profile/add.php"; static String get addprofile => "$profile/add.php";
static String get deleteprofile => "$profile/delete.php"; static String get deleteprofile => "$profile/delete.php";
static String get updateprofile => "$profile/update.php"; static String get updateprofile => "$profile/update.php";
//===================Auth============ //===================Auth============
static String get auth => '$server/auth'; static String get auth => '$server/auth';
static String get login => "$auth/login.php"; static String get login => "$auth/login.php";
static String get loginJwtRider => "$server/login.php"; static String get loginJwtRider => "$server/login.php";
static String get loginJwtWalletRider => "$server/loginWallet.php"; static String get loginJwtWalletRider => "$server/loginWallet.php";
static String get loginFirstTime => "$server/loginFirstTime.php"; 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 =>
static String get sendVerifyEmail => "$auth/sendVerifyEmail.php"; "$auth/save_passenger_location.php";
static String get loginFromGooglePassenger => "$auth/loginFromGooglePassenger.php"; static String get sendVerifyEmail => "$auth/sendVerifyEmail.php";
static String get loginUsingCredentialsWithoutGooglePassenger => "$auth/loginUsingCredentialsWithoutGooglePassenger.php"; static String get loginFromGooglePassenger =>
static String get checkPhoneNumberISVerfiedPassenger => "$auth/loginFromGooglePassenger.php";
static String get loginUsingCredentialsWithoutGooglePassenger =>
"$auth/loginUsingCredentialsWithoutGooglePassenger.php";
static String get checkPhoneNumberISVerfiedPassenger =>
"$auth/checkPhoneNumberISVerfiedPassenger.php"; "$auth/checkPhoneNumberISVerfiedPassenger.php";
static String get passengerRemovedAccountEmail => static String get passengerRemovedAccountEmail =>
"$auth/passengerRemovedAccountEmail.php"; "$auth/passengerRemovedAccountEmail.php";
static String get verifyEmail => "$auth/verifyEmail.php"; static String get verifyEmail => "$auth/verifyEmail.php";
//===================Auth Captin============ //===================Auth Captin============
static String get authCaptin => '$server/auth/captin'; static String get authCaptin => '$server/auth/captin';
static String get loginCaptin => "$authCaptin/login.php"; static String get loginCaptin => "$authCaptin/login.php";
static String get loginFromGoogleCaptin => "$authCaptin/loginFromGoogle.php"; static String get loginFromGoogleCaptin => "$authCaptin/loginFromGoogle.php";
static String get signUpCaptin => "$authCaptin/register.php"; static String get signUpCaptin => "$authCaptin/register.php";
static String get sendVerifyEmailCaptin => "$authCaptin/sendVerifyEmail.php"; static String get sendVerifyEmailCaptin => "$authCaptin/sendVerifyEmail.php";
static String get sendVerifyOtpMessage => "$server/auth/otp/request.php"; 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 =>
static String get updateAccountBank => "$authCaptin/updateAccountBank.php"; "$authCaptin/deletecaptainAccounr.php";
static String get getAccount => "$authCaptin/getAccount.php"; static String get updateAccountBank => "$authCaptin/updateAccountBank.php";
static String get updatePassengersInvitation => static String get getAccount => "$authCaptin/getAccount.php";
static String get updatePassengersInvitation =>
"$server/ride/invitor/updatePassengersInvitation.php"; "$server/ride/invitor/updatePassengersInvitation.php";
static String get updateDriverInvitationDirectly => static String get updateDriverInvitationDirectly =>
"$server/ride/invitor/updateDriverInvitationDirectly.php"; "$server/ride/invitor/updateDriverInvitationDirectly.php";
//===================Admin Captin============ //===================Admin Captin============
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 addAdminUser => "$server/Admin/adminUser/add.php"; static String get getPassengerbyEmail =>
static String get getAdminUser => "$server/Admin/adminUser/get.php"; "$server/Admin/getPassengerbyEmail.php";
static String get addError => "$server/Admin/errorApp.php"; static String get addAdminUser => "$server/Admin/adminUser/add.php";
static String get getCaptainDetailsByEmailOrIDOrPhone => static String get getAdminUser => "$server/Admin/adminUser/get.php";
static String get addError => "$server/Admin/errorApp.php";
static String get getCaptainDetailsByEmailOrIDOrPhone =>
"$server/Admin/AdminCaptain/getCaptainDetailsByEmailOrIDOrPhone.php"; "$server/Admin/AdminCaptain/getCaptainDetailsByEmailOrIDOrPhone.php";
static String get getCaptainDetails => "$server/Admin/AdminCaptain/get.php"; static String get getCaptainDetails => "$server/Admin/AdminCaptain/get.php";
static String get getRidesPerMonth => static String get getRidesPerMonth =>
"$server/Admin/AdminRide/getRidesPerMonth.php"; "$server/Admin/AdminRide/getRidesPerMonth.php";
static String get getRidesDetails => "$server/Admin/AdminRide/get.php"; 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 => static String get senddlr => "https://sms.kazumi.me/api/sms/send-dlr";
'$server/auth/otp/verify.php'; static String get sendvalidity =>
static String get senddlr => "https://sms.kazumi.me/api/sms/send-dlr"; "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"; static String get checkStatus => "https://sms.kazumi.me/api/sms/check-status";
static String get checkStatus => "https://sms.kazumi.me/api/sms/check-status"; static String get updatePhoneInvalidSMSPassenger =>
static String get updatePhoneInvalidSMSPassenger =>
"$server/auth/sms/updatePhoneInvalidSMSPassenger.php"; "$server/auth/sms/updatePhoneInvalidSMSPassenger.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";