From a01b8b82daf96e2a3ad403beacd018794049a261 Mon Sep 17 00:00:00 2001 From: Zohaib Iqbal Kambrani <> Date: Sun, 19 Jun 2022 11:26:56 +0300 Subject: [PATCH] no message --- lib/analytics/flows/appointments.dart | 28 ++++++++++++------- .../MyAppointments/AppointmentDetails.dart | 2 +- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/lib/analytics/flows/appointments.dart b/lib/analytics/flows/appointments.dart index 50a02c76..6de4f48f 100644 --- a/lib/analytics/flows/appointments.dart +++ b/lib/analytics/flows/appointments.dart @@ -182,7 +182,7 @@ class Appointment{ // R049.1 // should be for appointment flow appointment_actions(AppoitmentAllHistoryResultList appointment, String action){ - logger('to_do_list_pay_now', parameters: { + logger('appointment_actions', parameters: { 'action_type' : action, 'flow_type' : GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE, 'appointment_type' : appointment.appointmentType, @@ -232,14 +232,16 @@ class Appointment{ // R036 payment_success({@required String appointment_type, clinic, hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){ - // appointment_type - // clinic_type_online - // payment_method - // payment_type: 'appointment' - // hospital_name - // transaction_number - // transaction_amount - // transaction_currency + logger('payment_success', parameters: { + 'appointment_type' : appointment_type, + 'payment_method' : payment_method, + 'payment_type' : payment_type, + 'hospital_name' : hospital, + 'clinic_type_online' : clinic, + 'transaction_number' : txn_number, + 'transaction_amount' : txn_amount, + 'transaction_currency' : txn_currency, + }); } @@ -260,7 +262,13 @@ class Appointment{ // R053 // Note : - Payment flow beyond this step are same as listed under ‘Advance Payment’ section of this document appointment_details_cancel({@required AppoitmentAllHistoryResultList appointment}){ - logger('appointment_details_cancel', parameters: { + logger('cancel_appointment', parameters: { + 'flow_type' : GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE, + 'appointment_type' : appointment.appointmentType, + 'clinic_type_online' : appointment.clinicName, + 'hospital_name' : appointment.projectName, + 'doctor_name' : (appointment.doctorName == null || appointment.doctorName == '') ? appointment.doctorNameObj : appointment.doctorName, + 'payment_type' : 'appointment', }); } diff --git a/lib/pages/MyAppointments/AppointmentDetails.dart b/lib/pages/MyAppointments/AppointmentDetails.dart index d4a1d367..01cbfacc 100644 --- a/lib/pages/MyAppointments/AppointmentDetails.dart +++ b/lib/pages/MyAppointments/AppointmentDetails.dart @@ -605,13 +605,13 @@ class _AppointmentDetailsState extends State with SingleTick GifLoaderDialogUtils.showMyDialog(context); DoctorsListService service = new DoctorsListService(); service.cancelAppointment(widget.appo, context).then((res) { - projectViewModel.analytics.appointment.appointment_details_cancel(appointment: widget.appo); GifLoaderDialogUtils.hideDialog(context); if (res['MessageStatus'] == 1) { checkIfHasReminder(); getToDoCount(); AppToast.showSuccessToast(message: res['ErrorEndUserMessage']); Navigator.of(context).pop(); + projectViewModel.analytics.appointment.appointment_details_cancel(appointment: widget.appo); } else { AppToast.showErrorToast(message: res['ErrorEndUserMessage']); }