Update codebase
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import 'package:tripz_rider/constant/box_name.dart';
|
||||
import 'package:tripz_rider/main.dart';
|
||||
import 'package:siro_rider/constant/box_name.dart';
|
||||
import 'package:siro_rider/main.dart';
|
||||
|
||||
class AppLink {
|
||||
static const String appDomain = 'tripzmove.com';
|
||||
static const String appDomain = 'siromove.com';
|
||||
|
||||
static String get inviteRedirectUrl {
|
||||
if (currentCountry == 'Syria') {
|
||||
return "https://tripzmove.com/inviteSyria.php";
|
||||
return "https://siromove.com/inviteSyria.php";
|
||||
}
|
||||
return "https://tripzmove.com/invite.php";
|
||||
return "https://siromove.com/invite.php";
|
||||
}
|
||||
|
||||
static String get currentCountry => box.read(BoxName.countryCode) ?? 'Jordan';
|
||||
@@ -16,104 +16,104 @@ class AppLink {
|
||||
static String get paymentServer {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://wallet-syria.tripzmove.com/v1/main';
|
||||
return 'https://wallet-syria.siromove.com/v1/main';
|
||||
case 'Egypt':
|
||||
return 'https://wallet-egypt.tripzmove.com/v1/main';
|
||||
return 'https://wallet-egypt.siromove.com/v1/main';
|
||||
case 'Jordan':
|
||||
return 'https://wallettripz.tripz.xyz/v2/main';
|
||||
return 'https://jordan-siro.intaleqapp.com/v2/main';
|
||||
default:
|
||||
return 'https://wallet.tripzmove.com/v1/main';
|
||||
return 'https://wallet.siromove.com/v1/main';
|
||||
}
|
||||
}
|
||||
|
||||
static String get location {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://api-syria.tripzmove.com/tripz_v3/ride/location';
|
||||
return 'https://api-syria.siromove.com/siro_v3/ride/location';
|
||||
case 'Egypt':
|
||||
return 'https://api-egypt.tripzmove.com/tripz_v3/ride/location';
|
||||
return 'https://api-egypt.siromove.com/siro_v3/ride/location';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-tripz.tripzapp.com/backend/ride/location';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
|
||||
default:
|
||||
return 'https://api.tripzmove.com/tripz_v3/ride/location';
|
||||
return 'https://api.siromove.com/siro_v3/ride/location';
|
||||
}
|
||||
}
|
||||
|
||||
static String get locationServerSide {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://location-syria.tripzmove.com/tripz/ride/location';
|
||||
return 'https://location-syria.siromove.com/siro/ride/location';
|
||||
case 'Egypt':
|
||||
return 'https://location-egypt.tripzmove.com/tripz/ride/location';
|
||||
return 'https://location-egypt.siromove.com/siro/ride/location';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-tripz.tripzapp.com/backend/ride/location';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
|
||||
default:
|
||||
return 'https://location.tripzmove.com/tripz/ride/location';
|
||||
return 'https://location.siromove.com/siro/ride/location';
|
||||
}
|
||||
}
|
||||
|
||||
static String get routesOsm {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://routes-syria.tripzmove.com';
|
||||
return 'https://routes-syria.siromove.com';
|
||||
case 'Egypt':
|
||||
return 'https://routes-egypt.tripzmove.com';
|
||||
return 'https://routes-egypt.siromove.com';
|
||||
case 'Jordan':
|
||||
return 'https://routesjo.tripz.xyz';
|
||||
return 'https://routesjo.intaleq.xyz';
|
||||
default:
|
||||
return 'https://routes.tripzmove.com';
|
||||
return 'https://routes.siromove.com';
|
||||
}
|
||||
}
|
||||
|
||||
static String get mapSaasRoute {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://map-syria.tripzmove.com/api/maps/route';
|
||||
return 'https://map-syria.siromove.com/api/maps/route';
|
||||
case 'Egypt':
|
||||
return 'https://map-egypt.tripzmove.com/api/maps/route';
|
||||
return 'https://map-egypt.siromove.com/api/maps/route';
|
||||
case 'Jordan':
|
||||
return 'https://map-saas.tripzapp.com/api/maps/route';
|
||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||
default:
|
||||
return 'https://map-saas.tripzapp.com/api/maps/route';
|
||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||
}
|
||||
}
|
||||
|
||||
static String get reverseGeocoding {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://map-syria.tripzmove.com/api/geocoding/reverse';
|
||||
return 'https://map-syria.siromove.com/api/geocoding/reverse';
|
||||
case 'Egypt':
|
||||
return 'https://map-egypt.tripzmove.com/api/geocoding/reverse';
|
||||
return 'https://map-egypt.siromove.com/api/geocoding/reverse';
|
||||
case 'Jordan':
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/reverse';
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
||||
default:
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/reverse';
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
||||
}
|
||||
}
|
||||
|
||||
static String get searchGeocoding {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://map-syria.tripzmove.com/api/geocoding/search';
|
||||
return 'https://map-syria.siromove.com/api/geocoding/search';
|
||||
case 'Egypt':
|
||||
return 'https://map-egypt.tripzmove.com/api/geocoding/search';
|
||||
return 'https://map-egypt.siromove.com/api/geocoding/search';
|
||||
case 'Jordan':
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/search';
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/search';
|
||||
default:
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/search';
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/search';
|
||||
}
|
||||
}
|
||||
|
||||
static String get mapSaasPlaces {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://map-syria.tripzmove.com/api/geocoding/places';
|
||||
return 'https://map-syria.siromove.com/api/geocoding/places';
|
||||
case 'Egypt':
|
||||
return 'https://map-egypt.tripzmove.com/api/geocoding/places';
|
||||
return 'https://map-egypt.siromove.com/api/geocoding/places';
|
||||
case 'Jordan':
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/places';
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||
default:
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/places';
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,39 +122,39 @@ class AppLink {
|
||||
static String get rideServerSide {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://ride-syria.tripzmove.com/tripz';
|
||||
return 'https://ride-syria.siromove.com/siro';
|
||||
case 'Egypt':
|
||||
return 'https://ride-egypt.tripzmove.com/tripz';
|
||||
return 'https://ride-egypt.siromove.com/siro';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-tripz.tripzapp.com/backend';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
default:
|
||||
return 'https://jordan-tripz.tripzapp.com/backend';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
}
|
||||
}
|
||||
|
||||
static String get server {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://api-syria.tripzmove.com/tripz_v3';
|
||||
return 'https://api-syria.siromove.com/siro_v3';
|
||||
case 'Egypt':
|
||||
return 'https://api-egypt.tripzmove.com/tripz_v3';
|
||||
return 'https://api-egypt.siromove.com/siro_v3';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-tripz.tripzapp.com/backend';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
default:
|
||||
return 'https://api.tripzmove.com/tripz_v3';
|
||||
return 'https://api.siromove.com/siro_v3';
|
||||
}
|
||||
}
|
||||
|
||||
static String get serverSocket {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://api-syria.tripzmove.com';
|
||||
return 'https://api-syria.siromove.com';
|
||||
case 'Egypt':
|
||||
return 'https://api-egypt.tripzmove.com';
|
||||
return 'https://api-egypt.siromove.com';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-tripz.tripzapp.com:3030';
|
||||
return 'https://jordan-siro.intaleqapp.com:3030';
|
||||
default:
|
||||
return 'https://jordan-tripz.tripzapp.com:3030';
|
||||
return 'https://jordan-siro.intaleqapp.com:3030';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ class AppLink {
|
||||
static String get deletePassengersWallet => "$wallet/delete.php";
|
||||
static String get updatePassengersWallet => "$wallet/update.php";
|
||||
|
||||
//=======================Tripz Prime===================
|
||||
//=======================Siro Prime===================
|
||||
static String get initiatePrime => "$server/api/payments/initiate_prime.php";
|
||||
static String get getPrimeStatus =>
|
||||
"$server/api/payments/get_prime_status.php";
|
||||
@@ -228,6 +228,16 @@ class AppLink {
|
||||
static String get addCancelRideFromPassenger =>
|
||||
"$rideServerSide/cancelRide/add.php";
|
||||
static String get cancelRide => "$rideServerSide/cancelRide/get.php";
|
||||
|
||||
/// معاينة رسم الإلغاء قبل تنفيذه — قراءة خالصة لا تلغي شيئاً.
|
||||
/// تستخدم نفس دالة الحساب التي يستخدمها الإلغاء الفعلي، فما يُعرض
|
||||
/// للراكب هو ما سيُخصم منه بالضبط.
|
||||
static String get previewCancelFee => "$server/ride/rides/preview_cancel_fee.php";
|
||||
|
||||
/// تسجيل بلاغ سلامة لدى الشركة. يُستدعى **بالتوازي** مع رسالة الواتساب
|
||||
/// لجهة الاتصال الشخصية، لا بدلاً منها: الواتساب أسرع وصولاً لمن يهمّه
|
||||
/// الأمر، وهذه النقطة هي الأثر الذي تملكه الشركة وتستطيع التدخل به.
|
||||
static String get safetyIncident => "$server/safety/incident.php";
|
||||
//-----------------ridessss------------------
|
||||
static String get addRides => "$rideServerSide/ride/rides/add.php";
|
||||
static String get getRides => "$rideServerSide/ride/rides/get.php";
|
||||
@@ -401,6 +411,16 @@ class AppLink {
|
||||
"$server/api/ride/get_competitor_context.php";
|
||||
|
||||
static String get addRateToDriver => "$server/ride/rate/addRateToDriver.php";
|
||||
|
||||
/// هل على المستخدم تقييم متأخر؟ نقطة مستقلة عن حالة الرحلة الجارية.
|
||||
/// needsReview في getRideStatusFromStartApp محصور بنافذة ساعة مقصودة
|
||||
/// لاستئناف رحلة قائمة، فمن يغلق التطبيق بعد نزوله لا يُطلب منه تقييم.
|
||||
static String get pendingRating => "$server/ride/rate/pending_rating.php";
|
||||
|
||||
// ── الحجز المسبق ──
|
||||
static String get scheduledAdd => "$server/ride/scheduled/add.php";
|
||||
static String get scheduledList => "$server/ride/scheduled/list.php";
|
||||
static String get scheduledCancel => "$server/ride/scheduled/cancel.php";
|
||||
static String get getDriverRate => "$server/ride/rate/getDriverRate.php";
|
||||
static String get getPassengerRate =>
|
||||
"$server/ride/rate/getPassengerRate.php";
|
||||
|
||||
Reference in New Issue
Block a user