diff --git a/lib/core/api_consts.dart b/lib/core/api_consts.dart index 172f3278..82de820d 100644 --- a/lib/core/api_consts.dart +++ b/lib/core/api_consts.dart @@ -309,9 +309,11 @@ class ApiConsts { static final String appIpAddress = "10.20.10.20"; static final String appGeneralId = "Cs2020@2016\$2958"; static final String sessionID = 'TMRhVmkGhOsvamErw'; +} // PACKAGES and OFFERS var EXA_CART_API_BASE_URL = 'https://mdlaboratories.com/offersdiscounts'; + // var EXA_CART_API_BASE_URL = 'http://10.200.101.75:9000'; var PACKAGES_CATEGORIES = '/api/categories'; var PACKAGES_STORES = '/api/stores'; @@ -322,9 +324,11 @@ var PACKAGES_SHOPPING_CART = '/api/shopping_cart_items'; var PACKAGES_ORDERS = '/api/orders'; var PACKAGES_ORDER_HISTORY = '/api/orders/items'; var PACKAGES_TAMARA_OPT = '/api/orders/paymentoptions/tamara'; + // var BASE_URL = 'http://10.50.100.198:2018/'; // var BASE_URL = 'https://uat.hmgwebservices.com/'; var BASE_URL = 'https://hmgwebservices.com/'; + // var BASE_URL = 'http://10.201.204.103/'; // var BASE_URL = 'https://orash.cloudsolutions.com.sa/'; // var BASE_URL = 'https://vidauat.cloudsolutions.com.sa/'; @@ -420,6 +424,7 @@ var SEND_RAD_REPORT_EMAIL = 'Services/Notifications.svc/REST/SendRadReportEmail' ///Feedback var SEND_FEEDBACK = 'Services/COCWS.svc/REST/InsertCOCItemInSPList'; var GET_STATUS_FOR_COCO = 'Services/COCWS.svc/REST/GetStatusforCOC'; + // var GET_PATIENT_AppointmentHistory = 'Services' // '/Doctors.svc/REST/PateintHasAppoimentHistory'; @@ -664,6 +669,7 @@ var GENERAL_ID = 'Cs2020@2016\$2958'; var IP_ADDRESS = '10.20.10.20'; var SETUP_ID = '91877'; var LANGUAGE = 2; + // var PATIENT_OUT_SA = 0; var SESSION_ID = 'TMRhVmkGhOsvamErw'; var IS_DENTAL_ALLOWED_BACKEND = false; @@ -672,6 +678,7 @@ var PATIENT_TYPE_ID = 1; var DEVICE_TOKEN = ""; var IS_VOICE_COMMAND_CLOSED = true; var IS_TEXT_COMPLETED = false; + // var DeviceTypeID = Platform.isIOS ? 1 : 2; // var LANGUAGE_ID = 2; @@ -690,6 +697,7 @@ var UPLOAD_INSURANCE_CARD = 'Services/Patients.svc/REST/PatientER_PatientInfoFor var GET_VACCINES = "Services/Patients.svc/REST/GetDoneVaccinesByPatientID"; var GET_VACCINES_EMAIL = "Services/Notifications.svc/REST/SendVaccinesEmail"; var GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus_Async"; + // var GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus"; var SEARCH_BOT = 'HabibiChatBotApi/BotInterface/GetVoiceCommandResponse'; @@ -783,6 +791,7 @@ var GET_ANCILLARY_ORDERS_DETAILS = 'Services/Doctors.svc/REST/GetOnlineAncillary var PHARMACY_AUTORZIE_CUSTOMER = "AutorizeCustomer"; var PHARMACY_VERIFY_CUSTOMER = "VerifyCustomer"; var PHARMACY_GET_COUNTRY = "countries"; + // var PHARMACY_CREATE_CUSTOMER = "epharmacy/api/CreateCustomer"; var PHARMACY_CREATE_CUSTOMER = "getorcreateCustomer"; var GET_PHARMACY_BANNER = "promotionbanners"; diff --git a/lib/features/blood_donation/blood_donation_repo.dart b/lib/features/blood_donation/blood_donation_repo.dart index 2cbcd916..c709b038 100644 --- a/lib/features/blood_donation/blood_donation_repo.dart +++ b/lib/features/blood_donation/blood_donation_repo.dart @@ -116,7 +116,7 @@ class BloodDonationRepoImp implements BloodDonationRepo { GenericApiModel>? apiResponse; Failure? failure; await apiClient.post( - ApiConsts.getProjectsList, + GET_PROJECT_LIST, body: request, onFailure: (error, statusCode, {messageStatus, failureType}) { failure = failureType; diff --git a/lib/features/book_appointments/book_appointments_repo.dart b/lib/features/book_appointments/book_appointments_repo.dart index b8c797f6..e5200f67 100644 --- a/lib/features/book_appointments/book_appointments_repo.dart +++ b/lib/features/book_appointments/book_appointments_repo.dart @@ -273,7 +273,7 @@ class BookAppointmentsRepoImp implements BookAppointmentsRepo { GenericApiModel? apiResponse; Failure? failure; await apiClient.post( - ApiConsts.getDoctorProfiles, + GET_DOCTOR_PROFILE, body: mapDevice, onFailure: (error, statusCode, {messageStatus, failureType}) { failure = failureType; @@ -529,7 +529,7 @@ class BookAppointmentsRepoImp implements BookAppointmentsRepo { GenericApiModel>? apiResponse; Failure? failure; await apiClient.post( - ApiConsts.getProjectsList, + GET_PROJECT_LIST, body: request, onFailure: (error, statusCode, {messageStatus, failureType}) { failure = failureType; diff --git a/lib/features/emergency_services/emergency_services_repo.dart b/lib/features/emergency_services/emergency_services_repo.dart index 5fca01a8..582c4a58 100644 --- a/lib/features/emergency_services/emergency_services_repo.dart +++ b/lib/features/emergency_services/emergency_services_repo.dart @@ -189,7 +189,7 @@ class EmergencyServicesRepoImp implements EmergencyServicesRepo { GenericApiModel>? apiResponse; Failure? failure; await apiClient.post( - ApiConsts.getProjectsList, + GET_PROJECT_LIST, body: request, onFailure: (error, statusCode, {messageStatus, failureType}) { failure = failureType; diff --git a/lib/features/habib_wallet/habib_wallet_repo.dart b/lib/features/habib_wallet/habib_wallet_repo.dart index c4a356bd..5a20e9d1 100644 --- a/lib/features/habib_wallet/habib_wallet_repo.dart +++ b/lib/features/habib_wallet/habib_wallet_repo.dart @@ -93,7 +93,7 @@ class HabibWalletRepoImp implements HabibWalletRepo { GenericApiModel>? apiResponse; Failure? failure; await apiClient.post( - ApiConsts.getProjectsList, + GET_PROJECT_LIST, body: request, onFailure: (error, statusCode, {messageStatus, failureType}) { failure = failureType; diff --git a/lib/features/my_appointments/my_appointments_repo.dart b/lib/features/my_appointments/my_appointments_repo.dart index c89e3776..d7a025fc 100644 --- a/lib/features/my_appointments/my_appointments_repo.dart +++ b/lib/features/my_appointments/my_appointments_repo.dart @@ -525,7 +525,7 @@ class MyAppointmentsRepoImp implements MyAppointmentsRepo { GenericApiModel>? apiResponse; Failure? failure; await apiClient.post( - ApiConsts.getMyDoctor, + GET_MY_DOCTOR, body: mapDevice, onFailure: (error, statusCode, {messageStatus, failureType}) { failure = failureType; diff --git a/lib/features/weather/weather_repo.dart b/lib/features/weather/weather_repo.dart index 4777713f..26bf0a32 100644 --- a/lib/features/weather/weather_repo.dart +++ b/lib/features/weather/weather_repo.dart @@ -25,7 +25,7 @@ class WeatherRepoImp implements WeatherRepo { GenericApiModel>? apiResponse; Failure? failure; await apiClient.post( - ApiConsts.weatherIndicator, + WEATHER_INDICATOR, body: request, onFailure: (error, statusCode, {messageStatus, failureType}) { failure = failureType; diff --git a/lib/presentation/home/lakum_wallet_details.dart b/lib/presentation/home/lakum_wallet_details.dart index 10de8eac..d2ef15f4 100644 --- a/lib/presentation/home/lakum_wallet_details.dart +++ b/lib/presentation/home/lakum_wallet_details.dart @@ -250,7 +250,7 @@ class LakumWalletDetails extends StatelessWidget { padding: EdgeInsets.fromLTRB(4, 0, 12, 0), fontSize: 14.f, onPressed: () { - Uri uri = Uri.parse(ApiConsts.pharmacyRedirectUrl); + Uri uri = Uri.parse(PHARMACY_REDIRECT_URL); launchUrl(uri, mode: LaunchMode.externalApplication); }, ); diff --git a/lib/presentation/home/widgets/lakum_wallet_card.dart b/lib/presentation/home/widgets/lakum_wallet_card.dart index f2ee7a26..3645a2d3 100644 --- a/lib/presentation/home/widgets/lakum_wallet_card.dart +++ b/lib/presentation/home/widgets/lakum_wallet_card.dart @@ -137,7 +137,7 @@ class LakumWalletCard extends StatelessWidget { padding: EdgeInsets.fromLTRB(4, 0, 12, 0), fontSize: 14.f, onPressed: () { - Uri uri = Uri.parse(ApiConsts.pharmacyRedirectUrl); + Uri uri = Uri.parse(PHARMACY_REDIRECT_URL); launchUrl(uri, mode: LaunchMode.externalApplication); // Navigator.of(context).push(CustomPageRoute(page: RechargeWalletPage())); }, diff --git a/lib/presentation/home/widgets/large_service_card.dart b/lib/presentation/home/widgets/large_service_card.dart index 57c2dbbd..7c037604 100644 --- a/lib/presentation/home/widgets/large_service_card.dart +++ b/lib/presentation/home/widgets/large_service_card.dart @@ -165,7 +165,7 @@ class LargeServiceCard extends StatelessWidget { } case "pharmacy": { - Uri uri = Uri.parse(ApiConsts.pharmacyRedirectUrl); + Uri uri = Uri.parse(PHARMACY_REDIRECT_URL); launchUrl(uri, mode: LaunchMode.externalApplication); } } @@ -312,7 +312,7 @@ class FadedLargeServiceCard extends StatelessWidget { } case "pharmacy": { - Uri uri = Uri.parse(ApiConsts.pharmacyRedirectUrl); + Uri uri = Uri.parse(PHARMACY_REDIRECT_URL); launchUrl(uri, mode: LaunchMode.externalApplication); } }