// import 'package:siro_driver/env/env.dart'; import '../main.dart'; import 'box_name.dart'; class AppLink { static String get serverPHP => box.read('serverPHP'); 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'; } } static const String appDomain = 'siromove.com'; 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'; } } static String get locationServer => locationServerSide; 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': default: return 'https://location-jordan.siromove.com/siro/ride/location'; } } 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'; } } 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'; } } 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"; } } static String get currentCountry => box.read(BoxName.countryCode) ?? 'Jordan'; static String get endPoint { 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'; } } static String get syria => 'https://api-syria.siromove.com/siro'; static String get server => endPoint; ///=================ride==========================/// ///https://api.intaleq.xyz/siro/ride 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 'Jordan': default: return 'https://ride-jordan.siromove.com/siro/ride'; } } ///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'; } } static String get seferCairoServer => endPoint; static String get seferGizaServer => box.read('Giza') ?? box.read(BoxName.serverChosen); static String get seferAlexandriaServer => box.read('Alexandria') ?? box.read(BoxName.serverChosen); // static final String server = Env.serverPHP; static String get loginJwtDriver => "$server/loginJwtDriver.php"; static String get loginJwtWalletDriver => "$server/loginJwtWalletDriver.php"; static String get loginFirstTimeDriver => "$server/loginFirstTimeDriver.php"; static String get googleMapsLink => 'https://maps.googleapis.com/maps/api/'; static String get llama => 'https://api.llama-api.com/chat/completions'; static String get gemini => 'https://generativelanguage.googleapis.com/v1beta3/models/text-bison-001:generateText'; static String get test => "$server/test.php"; //===============contact========================== static String get savePhones => "$ride/egyptPhones/add.php"; static String get savePhonesSyria => "$ride/egyptPhones/syrianAdd.php"; static String get getPhones => "$ride/egyptPhones/get.php"; ////===============firebase========================== static String get getTokens => "$ride/firebase/get.php"; static String get getDriverToken => "$ride/firebase/getDriverToken.php"; static String get addTokens => "$ride/firebase/add.php"; static String get addTokensDriver => "$ride/firebase/addDriver.php"; static String get addTokensDriverWallet => "$paymentServer/ride/firebase/addDriver.php"; //=======================Wallet=================== static String get wallet => '$paymentServer/ride/passengerWallet'; static String get walletDriver => '$paymentServer/ride/driverWallet'; static String get getAllPassengerTransaction => "$wallet/getAllPassengerTransaction.php"; static String get payWithMTNConfirm => "$paymentServer/ride/mtn/driver/confirm_payment.php"; static String get payWithMTNStart => "$paymentServer/ride/mtn/driver/mtn_start.php"; static String get payWithSyriatelConfirm => "$paymentServer/ride/syriatel/driver/confirm_payment.php"; static String get payWithSyriatelStart => "$paymentServer/ride/syriatel/driver/start_payment.php"; static String get createMtnInvoice => "$paymentServer/ride/mtn_new/create_mtn_invoice.php"; static String get uploadMtnProof => "$paymentServer/ride/mtn_new/verify_payment_ai.php"; static String get checkMtnStatus => "$paymentServer/ride/mtn_new/check_status.php"; static String get createCliqInvoice => "$paymentServer/ride/cliq/create_cliq_invoice.php"; static String get uploadCliqProof => "$paymentServer/ride/cliq/verify_payment_ai.php"; static String get checkCliqStatus => "$paymentServer/ride/cliq/check_status.php"; static String get payWithEcashDriver => "$paymentServer/ride/ecash/driver/payWithEcash.php"; static String get payWithEcashPassenger => "$paymentServer/ride/ecash/passenger/payWithEcash.php"; // wl.tripz-egypt.com/v1/main/ride/ecash/driver static String get getWalletByPassenger => "$wallet/getWalletByPassenger.php"; static String get getPassengersWallet => "$wallet/get.php"; static String get getPassengerWalletArchive => "$wallet/getPassengerWalletArchive.php"; static String get addPassengersWallet => "$wallet/add.php"; static String get deletePassengersWallet => "$wallet/delete.php"; static String get updatePassengersWallet => "$wallet/update.php"; static String get getWalletByDriver => "$walletDriver/getWalletByDriver.php"; static String get transferWalletDriver => "$endPoint/ride/driverWallet/transfer.php"; static String get convertBudgetToPoints => "$walletDriver/convertBudgetToPoints.php"; static String get driverStatistic => "$endPoint/ride/driverWallet/driverStatistic.php"; static String get getDriverDetails => "$seferCairoServer/ride/driverWallet/getDriverDetails.php"; // ================= Gamification Endpoints ================= static String get getWeeklyAggregate => "$endPoint/ride/gamification/getWeeklyAggregate.php"; static String get getLeaderboard => "$endPoint/ride/gamification/getLeaderboard.php"; static String get claimChallengeReward => "$endPoint/ride/gamification/claimChallengeReward.php"; static String get getReferralStats => "$endPoint/ride/gamification/getReferralStats.php"; static String get getDriverBehavior => "$endPoint/ride/gamification/getDriverBehavior.php"; static String get getDriverWeekPaymentMove => "$walletDriver/getDriverWeekPaymentMove.php"; static String get getDriversWallet => "$walletDriver/get.php"; static String get addDriversWalletPoints => "$walletDriver/add.php"; static String get addpromotionDriver => "$walletDriver/promotionDriver.php"; static String get deleteDriversWallet => "$walletDriver/delete.php"; static String get updateDriversWallet => "$walletDriver/update.php"; //=======================promo===================ride.mobile-app.store/ride/promo/get.php static String get promo => '$server/ride/promo'; static String get getPassengersPromo => "$promo/get.php"; static String get getPromoBytody => "$promo/getPromoBytody.php"; static String get addPassengersPromo => "$promo/add.php"; static String get deletePassengersPromo => "$promo/delete.php"; static String get updatePassengersPromo => "$promo/update.php"; ////=======================cancelRide=================== static String get addCancelRideFromPassenger => "$rideServer/cancelRide/add.php"; static String get addCancelTripFromDriverAfterApplied => "$rideServer/cancelRide/addCancelTripFromDriverAfterApplied.php"; static String get cancelRide => "$rideServer/cancelRide/get.php"; //-----------------ridessss------------------ static String get addRides => "$rideServer/rides/add.php"; static String get getRides => "$rideServer/rides/get.php"; static String get getPlacesSyria => "$rideServer/places_syria/get.php"; static String get getMishwari => "$rideServer/mishwari/get.php"; static String get getMishwariDriver => "$rideServer/mishwari/getDriver.php"; static String get sendChatMessage => "$server/ride/chat/send_message.php"; static String get getTripCountByCaptain => "$rideServer/rides/getTripCountByCaptain.php"; static String get getRideOrderID => "$rideServer/rides/getRideOrderID.php"; static String get getRideStatus => "$rideServer/rides/getRideStatus.php"; static String get getOverLayStatus => "$ride/overLay/get.php"; static String get getArgumentAfterAppliedFromBackground => "$ride/overLay/getArgumentAfterAppliedFromBackground.php"; static String get addOverLayStatus => "$ride/overLay/add.php"; static String get getapiKey => "$ride/apiKey/get.php"; static String get getapiKeySefer => "$ride/apiKey/get.php"; static String get getRideStatusBegin => "$rideServer/rides/getRideStatusBegin.php"; static String get getRideStatusFromStartApp => "$rideServer/rides/getRideStatusFromStartApp.php"; static String get updateRides => "$rideServer/rides/update.php"; static String get updateRideAndCheckIfApplied => "$rideServer/rides/updateRideAndCheckIfApplied.php"; static String get updateStausFromSpeed => "$rideServer/rides/updateStausFromSpeed.php"; static String get deleteRides => "$rideServer/rides/delete.php"; //-----------------DriverPayment------------------ static String get addDriverScam => "$ride/driver_scam/add.php"; static String get getDriverScam => "$ride/driver_scam/get.php"; /////////---getKazanPercent===//////////// static String get getKazanPercent => "$ride/kazan/get.php"; static String get addKazanPercent => "$ride/kazan/add.php"; ////-----------------DriverPayment------------------ static String get addDrivePayment => "$paymentServer/ride/payment/add.php"; static String get payWithPayMobCardDriver => "$paymentServer/ride/payMob/paymob_driver/payWithCard.php"; static String get payWithWallet => "$paymentServer/ride/payMob/paymob_driver/payWithWallet.php"; static String get paymetVerifyDriver => "$paymentServer/ride/payMob/paymob_driver/paymet_verfy.php"; static String get updatePaymetToPaid => "$paymentServer/ride/payment/updatePaymetToPaid.php"; static String get paymobPayoutDriverWallet => "$paymentServer/ride/payMob/paymob_driver/paymob_payout.php'"; static String get addSeferWallet => "$paymentServer/ride/seferWallet/add.php"; static String get getSeferWallet => "$paymentServer/ride/seferWallet/get.php"; static String get addDriverPaymentPoints => "$paymentServer/ride/driverPayment/add.php"; static String get addPaymentTokenDriver => "$paymentServer/ride/driverWallet/addPaymentToken.php"; //driverWallet/addPaymentToken.php static String get addPaymentTokenPassenger => "$paymentServer/ride/passengerWallet/addPaymentTokenPassenger.php"; static String get getDriverPaymentPoints => "$paymentServer/ride/driverWallet/get.php"; static String get getDriverPaymentToday => "$paymentServer/ride/payment/get.php"; static String get getCountRide => "$rideServer/payment/getCountRide.php"; static String get getAllPaymentFromRide => "$paymentServer/ride/payment/getAllPayment.php"; static String get getAllPaymentVisa => "$paymentServer/ride/payment/getAllPaymentVisa.php"; //-----------------Passenger NotificationCaptain------------------ static String get addNotificationPassenger => "$ride/notificationPassenger/add.php"; static String get getNotificationPassenger => "$ride/notificationPassenger/get.php"; static String get updateNotificationPassenger => "$ride/notificationPassenger/update.php"; //-----------------Driver NotificationCaptain------------------ static String get addNotificationCaptain => "$ride/notificationCaptain/add.php"; static String get addWaitingRide => "$ride/notificationCaptain/addWaitingRide.php"; static String get deleteAvailableRide => "$ride/notificationCaptain/deleteAvailableRide.php"; static String get updateWaitingRide => "$ride/notificationCaptain/updateWaitingTrip.php"; static String get getRideWaiting => "$endPoint/ride/notificationCaptain/getRideWaiting.php"; static String get getNotificationCaptain => "$ride/notificationCaptain/get.php"; static String get updateNotificationCaptain => "$ride/notificationCaptain/update.php"; static String get deleteNotificationCaptain => "$ride/notificationCaptain/delete.php"; //-----------------Api Key------------------ static String get addApiKey => "$ride/apiKey/add.php"; static String get getApiKey => "$ride/apiKey/get.php"; static String get getCnMap => "$server/auth/cnMap.php"; static String get getPromptDriverDocumentsEgypt => "$server/auth/captin/getPromptDriverDocumentsEgypt.php"; static String get updateApiKey => "$ride/apiKey/update.php"; static String get deleteApiKey => "$ride/apiKey/delete.php"; static String get checkPhoneNumberISVerfiedDriver => "$auth/checkPhoneNumberISVerfiedDriver.php"; static String get getTesterApp => "$auth/Tester/getTesterApp.php"; static String get updateTesterApp => "$auth/Tester/updateTesterApp.php"; //-----------------healthInsuranceProvider------------------ static String get addHealthInsuranceProvider => "$server/driver_assurance/add.php"; static String get getHealthInsuranceProvider => "$server/driver_assurance/get.php"; //-----------------Feed Back------------------ static String get addFeedBack => "$ride/feedBack/add.php"; static String get getFeedBack => "$ride/feedBack/get.php"; static String get updateFeedBack => "$ride/feedBack/updateFeedBack.php"; static String get add_solve_all => "$server/ride/feedBack/add_solve_all.php"; static String get uploadAudio => "$server/upload_audio.php"; //-----------------Tips------------------ static String get addTips => "$ride/tips/add.php"; static String get getTips => "$ride/tips/get.php"; static String get updateTips => "$ride/tips/update.php"; //-----------------Help Center------------------ static String get addhelpCenter => "$ride/helpCenter/add.php"; static String get gethelpCenter => "$ride/helpCenter/get.php"; static String get getByIdhelpCenter => "$ride/helpCenter/getById.php"; static String get updatehelpCenter => "$ride/helpCenter/update.php"; static String get deletehelpCenter => "$ride/helpCenter/delete.php"; //-----------------license------------------ static String get addLicense => "$ride/license/add.php"; static String get getLicense => "$ride/license/get.php"; static String get updateLicense => "$ride/license/updateFeedBack.php"; //-----------------RegisrationCar------------------ static String get addRegisrationCar => "$ride/RegisrationCar/add.php"; static String get getRegisrationCar => "$endPoint/ride/RegisrationCar/get.php"; static String get updateRegisrationCar => "$ride/RegisrationCar/update.php"; static String get makeDefaultCar => "$ride/RegisrationCar/makeDefaultCar.php"; //-----------------DriverOrder------------------ static String get addDriverOrder => "$ride/driver_order/add.php"; static String get getDriverOrder => "$ride/driver_order/get.php"; static String get getOrderCancelStatus => "$ride/driver_order/getOrderCancelStatus.php"; static String get updateDriverOrder => "$ride/driver_order/update.php"; static String get deleteDriverOrder => "$ride/driver_order/delete.php"; // ===================================== static String get addRateToPassenger => "$ride/rate/add.php"; static String get addRateToDriver => "$ride/rate/addRateToDriver.php"; static String get addRateApp => "$ride/rate/add_rate_app.php"; static String get sendEmailRateingApp => "$ride/rate/sendEmailRateingApp.php"; static String get getDriverRate => "$ride/rate/getDriverRate.php"; static String get getPassengerRate => "$ride/rate/getPassengerRate.php"; ////////////////emails ============// static String get sendEmailToPassengerForTripDetails => "$ride/rides/emailToPassengerTripDetail.php"; static String get sendEmailToDrivertransaction => "$server/Admin/sendEmailToDrivertransaction.php"; // =========================================== static String get pathImage => "$server/upload/types/"; static String get uploadImage => "$server/uploadImage.php"; static String get uploadImage1 => "$server/uploadImage1.php"; static String get uploadImagePortrate => "$server/uploadImagePortrate.php"; static String get uploadSyrianDocs => "$syria/auth/syria/uploadSyrianDocs.php"; static String get uploadImageType => "$server/uploadImageType.php"; //=============egypt documents ============== static String get uploadEgyptidFront => "$server/EgyptDocuments/uploadEgyptidFront.php"; static String get uploadEgypt => "$server/uploadEgypt.php"; static String get uploadEgypt1 => "$server/uploadEgypt1.php"; //==================certifcate========== // static String location = '$endPoint/ride/location'; static String get getCarsLocationByPassenger => "$location/get.php"; static String get addpassengerLocation => "$locationServerSide/addpassengerLocation.php"; static String get getLocationAreaLinks => "$location/get_location_area_links.php"; static String get getLatestLocationPassenger => "$location/getLatestLocationPassenger.php"; static String get getFemalDriverLocationByPassenger => "$location/getFemalDriver.php"; static String get getDriverCarsLocationToPassengerAfterApplied => "$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 addCarsLocationAlexandriaEndpoint => "$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 getTotalDriverDurationToday => "$location/getTotalDriverDurationToday.php"; //==================get_driver_behavior.php============= static String get get_driver_behavior => '$ride/driver_behavior/get_driver_behavior.php'; //==================cars new drivers============= static String get addNewCarsDrivers => '$ride/carDrivers/add.php'; static String get getNewCarsDrivers => '$ride/carDrivers/get.php'; static String get deleteNewCarsDrivers => '$ride/carDrivers/delete.php'; //==================Blog============= static String get profile => '$ride/profile'; static String get getprofile => "$profile/get.php"; static String get getCaptainProfile => "$profile/getCaptainProfile.php"; static String get addprofile => "$profile/add.php"; static String get deleteprofile => "$profile/delete.php"; static String get updateprofile => "$profile/update.php"; static String get updateDriverEmail => "$profile/updateDriverEmail.php"; //===================Auth============ static String get getUnifiedCode => "$ride/invitor/get_unified_code.php"; static String get addUnifiedInvite => "$ride/invitor/add_unified_invite.php"; static String get claimDriverReward => "$ride/invitor/claim_driver_reward.php"; static String get getDriverReferrals => "$ride/invitor/get_driver_referrals.php"; static String get addInviteDriver => "$ride/invitor/add.php"; static String get addInvitationPassenger => "$ride/invitor/addInvitationPassenger.php"; static String get getInviteDriver => "$ride/invitor/get.php"; static String get getDriverInvitationToPassengers => "$ride/invitor/getDriverInvitationToPassengers.php"; static String get updateInviteDriver => "$ride/invitor/update.php"; static String get updatePassengerGift => "$server/ride/invitor/updatePassengerGift.php"; static String get claimInviteReward => "$server/ride/invitor/claim.php"; static String get updateInvitationCodeFromRegister => "$ride/invitor/updateInvitationCodeFromRegister.php"; static String get register_driver_and_car => "$auth/syria/driver/register_driver_and_car.php"; static String get updateDriverInvitationDirectly => "$ride/invitor/updateDriverInvitationDirectly.php"; static String get updatePassengersInvitation => "$ride/invitor/updatePassengersInvitation.php"; //===================Auth============ static String get auth => '$server/auth'; static String get login => "$auth/login.php"; static String get signUp => "$auth/signup.php"; static String get updateDriverClaim => "$auth/captin/updateDriverClaim.php"; static String get updateShamCashDriver => "$auth/captin/updateShamCashDriver.php"; static String get sendVerifyEmail => "$auth/sendVerifyEmail.php"; static String get passengerRemovedAccountEmail => "$auth/passengerRemovedAccountEmail.php"; static String get verifyEmail => "$auth/verifyEmail.php"; //===================Auth Captin============ static String get authCaptin => '$server/auth/captin'; static String get loginCaptin => "$authCaptin/login.php"; static String get loginFromGoogleCaptin => "$authCaptin/loginFromGoogle.php"; static String get loginUsingCredentialsWithoutGoogle => "$authCaptin/loginUsingCredentialsWithoutGoogle.php"; static String get packageInfo => "$server/auth/packageInfo.php"; static String get signUpCaptin => "$authCaptin/register.php"; 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 verifyOtpMessage => "$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 => "$authCaptin/deletecaptainAccounr.php"; static String get updateAccountBank => "$authCaptin/updateAccountBank.php"; static String get getAccount => "$authCaptin/getAccount.php"; static String get uploadImageToAi => "$auth/document_syria/ai_document.php"; static String get isPhoneVerified => "$auth/syria/driver/isPhoneVerified.php"; //===================Admin Captin============ 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 addAdminUser => "$server/Admin/adminUser/add.php"; static String get addError => "$server/Admin/errorApp.php"; static String get getAdminUser => "$server/Admin/adminUser/get.php"; static String get getCaptainDetailsByEmailOrIDOrPhone => "$server/Admin/AdminCaptain/getCaptainDetailsByEmailOrIDOrPhone.php"; static String get getCaptainDetails => "$server/Admin/AdminCaptain/get.php"; static String get getRidesPerMonth => "$server/Admin/AdminRide/getRidesPerMonth.php"; 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 senddlr => "https://sms.kazumi.me/api/sms/send-dlr"; 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 checkStatus => "https://sms.kazumi.me/api/sms/check-status"; static String get getSender => "$server/auth/sms/getSender.php"; static String get updatePhoneInvalidSMS => "$server/auth/sms/updatePhoneInvalidSMS.php"; //////////////service/////////// static String get serviceApp => "$server/serviceapp"; static String get getComplaintAllData => "$serviceApp/getComplaintAllData.php"; static String get getComplaintAllDataForDriver => "$serviceApp/getComplaintAllDataForDriver.php"; }