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 '../main.dart';
import 'box_name.dart';class AppLink {
import 'box_name.dart';
class AppLink {
static String seferPaymentServer =
'https://walletintaleq.intaleq.xyz/v1/main';
static final String tripzPaymentServer0 = seferPaymentServer;
@@ -15,62 +17,93 @@ import 'box_name.dart';class AppLink {
static String get server {
switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3';
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3';
default: return 'https://api.siromove.com/siro_v3';
case 'Syria':
return 'https://api-syria.siromove.com/siro_v3';
case 'Egypt':
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 syria => 'https://api-syria.siromove.com/siro';
static String get paymentServer {
switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main';
default: return 'https://wallet.siromove.com/v1/main';
case 'Syria':
return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan': return 'https://location-jordan.siromove.com/siro/ride/location';
default: return 'https://location.siromove.com/siro/ride/location';
case 'Syria':
return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt':
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 mapSaasRoute {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route';
default: return 'https://map-saas.intaleqapp.com/api/maps/route';
case 'Syria':
return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places';
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places';
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com/route/v1/driving';
case 'Egypt': return 'https://routes-egypt.siromove.com/route/v1/driving';
case 'Jordan': return 'https://routes-jordan.siromove.com/route/v1/driving';
default: return 'https://routes.siromove.com/route/v1/driving';
case 'Syria':
return 'https://routes-syria.siromove.com/route/v1/driving';
case 'Egypt':
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 =
@@ -340,29 +373,45 @@ import 'box_name.dart';class AppLink {
static String getdashbord = "$server/Admin/dashbord.php";
// Marketing & Price Anomalies Endpoints
static String getMarketAnomalies = "$server/Admin/marketing/get_market_anomalies.php";
static String triggerCampaign = "$server/Admin/marketing/trigger_campaign.php";
static String getCampaignsLog = "$server/Admin/marketing/get_campaigns_log.php";
static String getMarketAnomalies =
"$server/Admin/marketing/get_market_anomalies.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 getPriceComparison = "$server/Admin/marketing/get_price_comparison.php";
static String whatIfSimulator = "$server/Admin/marketing/what_if_simulator.php";
static String getPriceGapHeatmap = "$server/Admin/marketing/get_price_gap_heatmap.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 getPriceComparison =
"$server/Admin/marketing/get_price_comparison.php";
static String whatIfSimulator =
"$server/Admin/marketing/what_if_simulator.php";
static String getPriceGapHeatmap =
"$server/Admin/marketing/get_price_gap_heatmap.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 realtimeDashboardV2 = "$server/Admin/v2/realtime_dashboard.php";
static String smartAlertsV2 = "$server/Admin/v2/smart_alerts.php";
static String growthV2 = "$server/Admin/v2/analytics/growth.php";
static String revenueV2 = "$server/Admin/v2/analytics/revenue.php";
static String driverRankingV2 = "$server/Admin/v2/analytics/driver_ranking.php";
static String settlementsV2 = "$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 driverRankingV2 =
"$server/Admin/v2/analytics/driver_ranking.php";
static String settlementsV2 =
"$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 blacklistManager = "$server/Admin/v2/quality/blacklist_manager.php";
static String driverScorecard = "$server/Admin/v2/quality/driver_scorecard.php";
static String blacklistManager =
"$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 getBestDriver = "$server/Admin/driver/getBestDriver.php";
static String getBestDriverGiza =

View File

@@ -8,10 +8,14 @@ class AppLink {
static String get paymentServer {
switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main';
default: return 'https://wallet.siromove.com/v1/main';
case 'Syria':
return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3/ride/location';
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3/ride/location';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3/ride/location';
default: return 'https://api.siromove.com/siro_v3/ride/location';
case 'Syria':
return 'https://api-syria.siromove.com/siro_v3/ride/location';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Syria':
return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt':
return 'https://location-egypt.siromove.com/siro/ride/location';
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 {
switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com';
case 'Egypt': return 'https://location-egypt.siromove.com';
case 'Syria':
return 'https://location-syria.siromove.com';
case 'Egypt':
return 'https://location-egypt.siromove.com';
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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route';
default: return 'https://map-saas.intaleqapp.com/api/maps/route';
case 'Syria':
return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places';
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places';
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return "https://routes-syria.siromove.com/route/v1/driving";
case 'Egypt': return "https://routes-egypt.siromove.com/route/v1/driving";
case 'Jordan': return "https://routes-jordan.siromove.com/route/v1/driving";
default: return "https://routes.siromove.com/route/v1/driving";
case 'Syria':
return "https://routes-syria.siromove.com/route/v1/driving";
case 'Egypt':
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':
return 'https://api-egypt.siromove.com/siro';
case 'Jordan':
return 'https://api-jordan.siromove.com/siro';
return 'https://jordan-siro.intaleqapp.com/backend';
default:
return 'https://api.siromove.com/siro';
}
@@ -103,21 +131,31 @@ class AppLink {
static String get ride => '$server/ride';
static String get rideServer {
switch (currentCountry) {
case 'Syria': return 'https://ride-syria.siromove.com/siro/ride';
case 'Egypt': return 'https://ride-egypt.siromove.com/siro/ride';
case 'Syria':
return 'https://ride-syria.siromove.com/siro/ride';
case 'Egypt':
return 'https://ride-egypt.siromove.com/siro/ride';
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'
static String get mapOSM {
switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com';
case 'Egypt': return 'https://routes-egypt.siromove.com';
case 'Jordan': return 'https://routes-jordan.siromove.com';
default: return 'https://routes.siromove.com';
case 'Syria':
return 'https://routes-syria.siromove.com';
case 'Egypt':
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 =>
"$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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/reverse';
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/reverse';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/reverse';
default: return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/reverse';
case 'Egypt':
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";
static String get addCarsLocationByPassenger => "$locationServerSide/add.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 =>
"$locationServerSide/add.php";
static String get addCarsLocationCairoEndpoint => "$locationServerSide/add.php";
static String get addCarsLocationCairoEndpoint =>
"$locationServerSide/add.php";
static String get deleteCarsLocationByPassenger =>
"$locationServerSide/delete.php";
static String get updateCarsLocationByPassenger =>
"$locationServerSide/update.php";
static String get getTotalDriverDuration =>
"$location/getTotalDriverDuration.php";
static String get getRidesDriverByDay =>
"$location/getRidesDriverByDay.php";
static String get getRidesDriverByDay => "$location/getRidesDriverByDay.php";
static String get getTotalDriverDurationToday =>
"$location/getTotalDriverDurationToday.php";
@@ -529,11 +573,9 @@ class AppLink {
static String get addCriminalDocuments =>
"$authCaptin/addCriminalDocuments.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 verifyOtpDriver =>
"$server/auth/otp/verify.php";
static String get verifyOtpDriver => "$server/auth/otp/verify.php";
static String get verifyEmailCaptin => "$authCaptin/verifyEmail.php";
static String get removeUser => "$authCaptin/removeAccount.php";
static String get deletecaptainAccounr =>

View File

@@ -15,73 +15,105 @@ class AppLink {
static String get paymentServer {
switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main';
default: return 'https://wallet.siromove.com/v1/main';
case 'Syria':
return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3/ride/location';
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3/ride/location';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3/ride/location';
default: return 'https://api.siromove.com/siro_v3/ride/location';
case 'Syria':
return 'https://api-syria.siromove.com/siro_v3/ride/location';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan': return 'https://location-jordan.siromove.com/siro/ride/location';
default: return 'https://location.siromove.com/siro/ride/location';
case 'Syria':
return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com';
case 'Egypt': return 'https://routes-egypt.siromove.com';
case 'Jordan': return 'https://routes-jordan.siromove.com';
default: return 'https://routes.siromove.com';
case 'Syria':
return 'https://routes-syria.siromove.com';
case 'Egypt':
return 'https://routes-egypt.siromove.com';
case 'Jordan':
return 'https://routesjo.intaleq.xyz';
default:
return 'https://routes.siromove.com';
}
}
static String get mapSaasRoute {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route';
default: return 'https://map-saas.intaleqapp.com/api/maps/route';
case 'Syria':
return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/reverse';
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/reverse';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/reverse';
default: return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/reverse';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/search';
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/search';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/search';
default: return 'https://map-saas.intaleqapp.com/api/geocoding/search';
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/search';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places';
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places';
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://ride-syria.siromove.com/siro';
case 'Egypt': return 'https://ride-egypt.siromove.com/siro';
case 'Syria':
return 'https://ride-syria.siromove.com/siro';
case 'Egypt':
return 'https://ride-egypt.siromove.com/siro';
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 {
switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3';
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3';
default: return 'https://api.siromove.com/siro_v3';
case 'Syria':
return 'https://api-syria.siromove.com/siro_v3';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com';
case 'Egypt': return 'https://api-egypt.siromove.com';
case 'Jordan': return 'https://api-jordan.siromove.com';
default: return 'https://api.siromove.com';
case 'Syria':
return 'https://api-syria.siromove.com';
case 'Egypt':
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";
//===============firebase==========================
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 addFingerPrint => "$paymentServer/ride/firebase/add.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 getRideOrderID =>
"$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 =>
"$rideServerSide/ride/rides/getRideStatusBegin.php";
static String get getRideStatusFromStartApp =>
@@ -221,8 +267,10 @@ static String get payWithSyriatelConfirm =>
"$paymentServer/ride/syriatel/passenger/confirm_payment.php";
static String get payWithSyriatelStart =>
"$paymentServer/ride/syriatel/passenger/start_payment.php";
static String get getDriverpaymentToday => "$paymentServer/ride/payment/get.php";
static String get getCountRide => "$paymentServer/ride/payment/getCountRide.php";
static String get getDriverpaymentToday =>
"$paymentServer/ride/payment/get.php";
static String get getCountRide =>
"$paymentServer/ride/payment/getCountRide.php";
static String get getAllPaymentFromRide =>
"$paymentServer/ride/payment/getAllPayment.php";
static String get getAllPaymentVisa =>
@@ -232,10 +280,14 @@ static String get createMtnInvoice =>
static String get createCliqInvoice =>
"$paymentServer/ride/cliq/create_cliq_invoice.php";
static String get checkMtnStatus => "$paymentServer/ride/mtn_new/check_status.php";
static String get checkCliqStatus => "$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";
static String get checkMtnStatus =>
"$paymentServer/ride/mtn_new/check_status.php";
static String get checkCliqStatus =>
"$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------------------
static String get addNotificationPassenger =>
@@ -260,9 +312,12 @@ static String get updateNotificationCaptain =>
static String get deleteNotificationCaptain =>
"$server/ride/notificationCaptain/delete.php";
//-----------------invitor------------------
static String get getUnifiedCode => "$server/ride/invitor/get_unified_code.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 getUnifiedCode =>
"$server/ride/invitor/get_unified_code.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 addInvitationPassenger =>
"$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 uploadAudio => "$server/ride/feedBack/upload_audio.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------------------
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";
static String get selectDriverAndCarForMishwariTrip =>
"$server/ride/RegisrationCar/selectDriverAndCarForMishwariTrip.php";
static String get updateRegisrationCar => "$server/ride/RegisrationCar/update.php";
static String get updateRegisrationCar =>
"$server/ride/RegisrationCar/update.php";
//-----------------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 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 ============//
static String get sendEmailToPassengerForTripDetails =>
@@ -364,8 +422,10 @@ static String get getLocationAreaLinks =>
static String get addpassengerLocation =>
"$locationServerSide/addpassengerLocation.php";
static String get getCarsLocationByPassengerSpeed => "$location/getSpeed.php";
static String get getCarsLocationByPassengerComfort => "$location/getComfort.php";
static String get getCarsLocationByPassengerBalash => "$location/getBalash.php";
static String get getCarsLocationByPassengerComfort =>
"$location/getComfort.php";
static String get getCarsLocationByPassengerBalash =>
"$location/getBalash.php";
static String get getCarsLocationByPassengerElectric =>
"$location/getElectric.php";
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 updateTesterApp => "$auth/Tester/updateTesterApp.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 loginFromGooglePassenger => "$auth/loginFromGooglePassenger.php";
static String get loginUsingCredentialsWithoutGooglePassenger => "$auth/loginUsingCredentialsWithoutGooglePassenger.php";
static String get loginFromGooglePassenger =>
"$auth/loginFromGooglePassenger.php";
static String get loginUsingCredentialsWithoutGooglePassenger =>
"$auth/loginUsingCredentialsWithoutGooglePassenger.php";
static String get checkPhoneNumberISVerfiedPassenger =>
"$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 verifyEmailCaptin => "$authCaptin/verifyEmail.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 getAccount => "$authCaptin/getAccount.php";
static String get updatePassengersInvitation =>
@@ -435,8 +499,10 @@ static String get updateDriverInvitationDirectly =>
static String get getPassengerDetailsByPassengerID =>
"$server/Admin/getPassengerDetailsByPassengerID.php";
static String get getPassengerDetails => "$server/Admin/getPassengerDetails.php";
static String get getPassengerbyEmail => "$server/Admin/getPassengerbyEmail.php";
static String get getPassengerDetails =>
"$server/Admin/getPassengerDetails.php";
static String get getPassengerbyEmail =>
"$server/Admin/getPassengerbyEmail.php";
static String get addAdminUser => "$server/Admin/adminUser/add.php";
static String get getAdminUser => "$server/Admin/adminUser/get.php";
static String get addError => "$server/Admin/errorApp.php";
@@ -449,12 +515,11 @@ static String get getRidesDetails => "$server/Admin/AdminRide/get.php";
//////////Sms egypt///////////
static String get sendSms => "https://sms.kazumi.me/api/sms/send-sms";
static String get sendSmsFromPHP =>
'$server/auth/otp/request.php';
static String get verifyOtpPassenger =>
'$server/auth/otp/verify.php';
static String get sendSmsFromPHP => '$server/auth/otp/request.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 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 checkCredit => "https://sms.kazumi.me/api/sms/check-credit";
static String get getSender => "$server/auth/sms/getSender.php";

View File

@@ -13,19 +13,27 @@ class AppLink {
static String get paymentServer {
switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main';
default: return 'https://wallet.siromove.com/v1/main';
case 'Syria':
return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan': return 'https://location-jordan.siromove.com/siro/ride/location';
default: return 'https://location.siromove.com/siro/ride/location';
case 'Syria':
return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route';
default: return 'https://map-saas.intaleqapp.com/api/maps/route';
case 'Syria':
return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places';
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places';
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com/route/v1/driving';
case 'Egypt': return 'https://routes-egypt.siromove.com/route/v1/driving';
case 'Jordan': return 'https://routes-jordan.siromove.com/route/v1/driving';
default: return 'https://routes.siromove.com/route/v1/driving';
case 'Syria':
return 'https://routes-syria.siromove.com/route/v1/driving';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3';
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3';
default: return 'https://api.siromove.com/siro_v3';
case 'Syria':
return 'https://api-syria.siromove.com/siro_v3';
case 'Egypt':
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 {
switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro';
case 'Egypt': return 'https://api-egypt.siromove.com/siro';
case 'Jordan': return 'https://api-jordan.siromove.com/siro';
default: return 'https://api.siromove.com/siro';
case 'Syria':
return 'https://api-syria.siromove.com/siro';
case 'Egypt':
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 String addError = "$server/Admin/errorApp.php";
// static final String endPoint = box.read(BoxName.serverChosen);
// static final String server = Env.seferCairoServer;
// static const String server = "https://sefer.click/sefer/sefer";