@os1-platform/dispatch-mobile 2.1.21 → 2.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -11
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js +1 -1
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js +5 -5
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +9 -10
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +16 -6
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +8 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +8 -10
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +2 -2
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js +40 -0
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPaymentSchema.js +35 -0
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPaymentSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentStyles.js +102 -0
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentStyles.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js +151 -0
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js +188 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/CustomContactsModal.js +2 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/CustomContactsModal.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +442 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +538 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +887 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +14 -20
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +24 -27
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +2 -3
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +9 -3
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +2 -2
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +13 -14
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +2 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +11 -12
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +3 -3
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +2 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +11 -13
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +11 -2
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +2 -2
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +2 -2
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +14 -20
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +18 -24
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +4 -6
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +4 -5
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +2 -4
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +3 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/utils.js +14 -8
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +2 -2
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +2 -2
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +2 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +2 -2
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +1 -2
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/GoBackModal.js +1 -1
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
- package/lib/commonjs/components/widgets/IconButton.js +20 -23
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +3 -1
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
- package/lib/commonjs/components/widgets/ProgressDialog.js +3 -3
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +22 -21
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +10 -11
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/components/widgets/Timer.js +40 -0
- package/lib/commonjs/components/widgets/Timer.js.map +1 -0
- package/lib/commonjs/constants/apiConstants.js +4 -1
- package/lib/commonjs/constants/apiConstants.js.map +1 -1
- package/lib/commonjs/constants/constants.js +4 -1
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js +3 -3
- package/lib/commonjs/events/EventDispatcher.js +5 -1
- package/lib/commonjs/events/EventDispatcher.js.map +1 -1
- package/lib/commonjs/events/constants.js +2 -1
- package/lib/commonjs/events/constants.js.map +1 -1
- package/lib/commonjs/events/index.js +1 -1
- package/lib/commonjs/events/index.js.map +1 -1
- package/lib/commonjs/events/interface.js.map +1 -1
- package/lib/commonjs/icons/CircleMark.js +27 -0
- package/lib/commonjs/icons/CircleMark.js.map +1 -0
- package/lib/commonjs/icons/FailedIcon.js +69 -0
- package/lib/commonjs/icons/FailedIcon.js.map +1 -0
- package/lib/commonjs/icons/FailureCloseIcon.js +42 -0
- package/lib/commonjs/icons/FailureCloseIcon.js.map +1 -0
- package/lib/commonjs/icons/ScanIcon.js +1 -1
- package/lib/commonjs/icons/ScanIcon.js.map +1 -1
- package/lib/commonjs/icons/SuccessCompleteIcon.js +42 -0
- package/lib/commonjs/icons/SuccessCompleteIcon.js.map +1 -0
- package/lib/commonjs/icons/file.js +1 -1
- package/lib/commonjs/icons/file.js.map +1 -1
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/locale/i18n.js +1 -1
- package/lib/commonjs/locale/i18n.js.map +1 -1
- package/lib/commonjs/locale/util.js +1 -1
- package/lib/commonjs/locale/util.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +11 -9
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +6 -6
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +6 -6
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +7 -7
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -6
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js +6 -6
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -8
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -6
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +4 -4
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +7 -7
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +2 -2
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +2 -2
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +6 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +8 -16
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +6 -7
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +7 -8
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +5 -9
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +3 -0
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +5 -5
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +15 -19
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js +30 -3
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js +2 -5
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js +5 -5
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/resources/Login.js +4 -4
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +4 -4
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +13 -3
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +7 -8
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +8 -9
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js +251 -0
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +7 -8
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +8 -9
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +8 -9
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +8 -9
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +43 -11
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +8 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +8 -9
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +8 -9
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +7 -8
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +8 -9
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +9 -9
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +8 -9
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +8 -10
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +13 -9
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +8 -9
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +3 -3
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +2 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +3 -1
- package/lib/commonjs/utils/ApiUtils.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +35 -5
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +6 -7
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +4 -4
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +2 -2
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +3 -3
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/context/paymentContext.js +9 -0
- package/lib/commonjs/utils/context/paymentContext.js.map +1 -0
- package/lib/commonjs/utils/fcm/FCM.js +22 -4
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +12 -2
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +6 -6
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +4 -3
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
- package/lib/commonjs/utils/loginHelper.js +1 -1
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +11 -17
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js +2 -3
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js +5 -5
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +7 -8
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/module/components/dispatch/DispatchExecNavigator.js +14 -4
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +2 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +6 -8
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/CollectPayment.js +32 -0
- package/lib/module/components/executiontasks/collectPayment/CollectPayment.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/CollectPaymentSchema.js +29 -0
- package/lib/module/components/executiontasks/collectPayment/CollectPaymentSchema.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/PaymentStyles.js +96 -0
- package/lib/module/components/executiontasks/collectPayment/PaymentStyles.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/PaymentUtils.js +132 -0
- package/lib/module/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js +179 -0
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/CustomContactsModal.js +2 -0
- package/lib/module/components/executiontasks/collectPayment/components/CustomContactsModal.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js +433 -0
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js +531 -0
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +880 -0
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +13 -19
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +21 -24
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +0 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +6 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +11 -12
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +9 -10
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +9 -11
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js +11 -2
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +3 -4
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +13 -19
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +15 -21
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +2 -4
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +3 -4
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +0 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +0 -2
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1 -4
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/scan/utils.js +11 -6
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -1
- package/lib/module/components/widgets/Card.js +0 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/IconButton.js +19 -22
- package/lib/module/components/widgets/IconButton.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +1 -0
- package/lib/module/components/widgets/ModalWidget.js.map +1 -1
- package/lib/module/components/widgets/ProgressDialog.js +2 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +21 -20
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +9 -10
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/Timer.js +32 -0
- package/lib/module/components/widgets/Timer.js.map +1 -0
- package/lib/module/constants/apiConstants.js +4 -1
- package/lib/module/constants/apiConstants.js.map +1 -1
- package/lib/module/constants/constants.js +3 -0
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/errors/BaseError.js +3 -3
- package/lib/module/events/EventDispatcher.js +3 -0
- package/lib/module/events/EventDispatcher.js.map +1 -1
- package/lib/module/events/constants.js +2 -1
- package/lib/module/events/constants.js.map +1 -1
- package/lib/module/events/interface.js.map +1 -1
- package/lib/module/icons/CircleMark.js +20 -0
- package/lib/module/icons/CircleMark.js.map +1 -0
- package/lib/module/icons/FailedIcon.js +62 -0
- package/lib/module/icons/FailedIcon.js.map +1 -0
- package/lib/module/icons/FailureCloseIcon.js +35 -0
- package/lib/module/icons/FailureCloseIcon.js.map +1 -0
- package/lib/module/icons/SuccessCompleteIcon.js +35 -0
- package/lib/module/icons/SuccessCompleteIcon.js.map +1 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js +10 -8
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +5 -5
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +5 -5
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +5 -5
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +5 -5
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js +5 -5
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +6 -6
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +5 -5
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +3 -3
- package/lib/module/manager/syncmanager/AppSyncManager.js +5 -5
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +1 -0
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -5
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +6 -14
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +5 -6
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +5 -6
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +3 -7
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +3 -0
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +4 -4
- package/lib/module/network/GraphQLClient.js +14 -18
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js +29 -2
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js +1 -4
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/Queries.js.map +1 -1
- package/lib/module/network/client.js +4 -4
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/resources/Login.js +3 -3
- package/lib/module/resources/network.js +3 -3
- package/lib/module/styles/executionTasks/CommonStyles.js +12 -2
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +5 -6
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +6 -7
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CollectPaymentScreen.js +244 -0
- package/lib/module/ui/screens/CollectPaymentScreen.js.map +1 -0
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +5 -6
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +6 -7
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +6 -7
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +6 -7
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +41 -10
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +2 -1
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +6 -7
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +6 -7
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +6 -7
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +6 -7
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +7 -7
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +6 -7
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +6 -8
- package/lib/module/ui/screens/ScanScreen.js.map +1 -1
- package/lib/module/ui/screens/StartWorkFlowScreen.js +11 -7
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +6 -7
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +2 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +2 -0
- package/lib/module/utils/ApiUtils.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +31 -4
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +5 -6
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +3 -3
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +1 -1
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/context/paymentContext.js +3 -0
- package/lib/module/utils/context/paymentContext.js.map +1 -0
- package/lib/module/utils/fcm/FCM.js +20 -2
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +10 -0
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +5 -5
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useModal.js +2 -1
- package/lib/module/utils/hooks/useModal.js.map +1 -1
- package/lib/module/utils/hooks/useTimer.js.map +1 -1
- package/lib/module/utils/storage.js +9 -15
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js +1 -2
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +4 -2
- package/lib/typescript/components/executiontasks/collectPayment/CollectPayment.d.ts +4 -0
- package/lib/typescript/components/executiontasks/collectPayment/CollectPaymentSchema.d.ts +155 -0
- package/lib/typescript/components/executiontasks/collectPayment/PaymentStyles.d.ts +92 -0
- package/lib/typescript/components/executiontasks/collectPayment/PaymentUtils.d.ts +16 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/CompletePayment.d.ts +4 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/InitPayment.d.ts +4 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/PaymentContactDetails.d.ts +4 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/ProcessPayment.d.ts +4 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +1 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +3 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +3 -2
- package/lib/typescript/components/widgets/Timer.d.ts +7 -0
- package/lib/typescript/constants/apiConstants.d.ts +3 -0
- package/lib/typescript/constants/constants.d.ts +3 -0
- package/lib/typescript/events/EventDispatcher.d.ts +1 -0
- package/lib/typescript/events/constants.d.ts +1 -0
- package/lib/typescript/events/interface.d.ts +1 -1
- package/lib/typescript/icons/CircleMark.d.ts +3 -0
- package/lib/typescript/icons/FailedIcon.d.ts +4 -0
- package/lib/typescript/icons/FailureCloseIcon.d.ts +4 -0
- package/lib/typescript/icons/SuccessCompleteIcon.d.ts +4 -0
- package/lib/typescript/models/DispatchModels.d.ts +11 -0
- package/lib/typescript/models/execTasks/ETConfig.d.ts +6 -3
- package/lib/typescript/models/sdk.d.ts +12 -0
- package/lib/typescript/network/NetworkClient.d.ts +3 -1
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +10 -1
- package/lib/typescript/ui/screens/CollectPaymentScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +2 -1
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +1 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +2 -0
- package/lib/typescript/utils/context/paymentContext.d.ts +7 -0
- package/package.json +6 -5
- package/src/components/dispatch/DispatchExecNavigator.tsx +14 -0
- package/src/components/executiontasks/ExecutionTasksIndex.ts +8 -0
- package/src/components/executiontasks/collectPayment/CollectPayment.tsx +60 -0
- package/src/components/executiontasks/collectPayment/CollectPaymentSchema.ts +182 -0
- package/src/components/executiontasks/collectPayment/PaymentStyles.ts +102 -0
- package/src/components/executiontasks/collectPayment/PaymentUtils.ts +200 -0
- package/src/components/executiontasks/collectPayment/components/CompletePayment.tsx +273 -0
- package/src/components/executiontasks/collectPayment/components/InitPayment.tsx +658 -0
- package/src/components/executiontasks/collectPayment/components/PaymentContactDetails.tsx +790 -0
- package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +1352 -0
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +132 -60
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +35 -12
- package/src/components/executiontasks/payments/PaymentUtils.ts +10 -2
- package/src/components/executiontasks/pickup/SLPickupET.tsx +6 -3
- package/src/components/executiontasks/scan/ScanET.tsx +1 -1
- package/src/components/executiontasks/scan/interfaces.ts +1 -1
- package/src/components/executiontasks/scan/utils.ts +16 -8
- package/src/components/widgets/ModalWidget.tsx +26 -8
- package/src/components/widgets/ProgressDialog.tsx +23 -3
- package/src/components/widgets/SnackBarCustom.tsx +8 -1
- package/src/components/widgets/SplitTextInput.tsx +1 -1
- package/src/components/widgets/Timer.tsx +53 -0
- package/src/constants/apiConstants.ts +3 -0
- package/src/constants/constants.ts +3 -0
- package/src/events/EventDispatcher.ts +4 -0
- package/src/events/constants.ts +1 -0
- package/src/events/interface.ts +7 -1
- package/src/icons/CircleMark.tsx +18 -0
- package/src/icons/FailedIcon.tsx +80 -0
- package/src/icons/FailureCloseIcon.tsx +35 -0
- package/src/icons/SuccessCompleteIcon.tsx +35 -0
- package/src/manager/dispatch/DispatchStateContainer.tsx +6 -4
- package/src/manager/sdk/DispatchSDKManager.ts +1 -0
- package/src/models/DispatchModels.ts +12 -0
- package/src/models/execTasks/ETConfig.ts +3 -0
- package/src/models/sdk.ts +13 -0
- package/src/network/NetworkClient.ts +34 -1
- package/src/network/client.ts +1 -0
- package/src/styles/executionTasks/CommonStyles.ts +32 -8
- package/src/ui/screens/CollectPaymentScreen.tsx +315 -0
- package/src/ui/screens/DropCashScreen.tsx +49 -2
- package/src/ui/screens/ETScreensIndex.ts +2 -0
- package/src/ui/screens/PaymentScreen.tsx +1 -0
- package/src/ui/screens/StartWorkFlowScreen.tsx +15 -0
- package/src/ui/uiConfig/RouteParams.ts +8 -1
- package/src/utils/ApiUtils.ts +1 -0
- package/src/utils/ExecTaskUtils.ts +44 -3
- package/src/utils/SyncManagerUtils.ts +1 -0
- package/src/utils/context/paymentContext.ts +8 -0
- package/src/utils/fcm/FCM.ts +30 -0
- package/src/utils/fcm/FcmUtils.ts +53 -29
- package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.5/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -18
- package/android/.idea/kotlinc.xml +0 -6
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/other.xml +0 -263
- package/android/.idea/vcs.xml +0 -6
- package/lib/commonjs/icons/circleMark.svg +0 -3
- package/lib/module/icons/circleMark.svg +0 -3
- package/src/icons/circleMark.svg +0 -3
- /package/{android/.gradle/6.8/gc.properties → lib/typescript/components/executiontasks/collectPayment/components/CustomContactsModal.d.ts} +0 -0
- /package/{android/.gradle/7.5/dependencies-accessors/gc.properties → src/components/executiontasks/collectPayment/components/CustomContactsModal.tsx} +0 -0
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _utils = require("../../../../utils/utils");
|
|
10
|
+
var _PaymentUtils = require("../PaymentUtils");
|
|
11
|
+
var _ExecTaskUtils = require("../../../../utils/ExecTaskUtils");
|
|
12
|
+
var _ETConfig = require("../../../../models/execTasks/ETConfig");
|
|
13
|
+
var _EventCodeContainer = require("../../../../manager/dispatchCodes/EventCodeContainer");
|
|
14
|
+
var _PaymentStyles = require("../PaymentStyles");
|
|
15
|
+
var _CommonStyles = require("../../../../styles/executionTasks/CommonStyles");
|
|
16
|
+
var _Toaster = require("../../../widgets/Toaster");
|
|
17
|
+
var _reactNativePaper = require("react-native-paper");
|
|
18
|
+
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
19
|
+
var _constants = require("../../../../constants/constants");
|
|
20
|
+
var _utils2 = require("../../../../components/utils");
|
|
21
|
+
var _GoBackModal = _interopRequireDefault(require("../../../../components/widgets/GoBackModal"));
|
|
22
|
+
var _native = require("@react-navigation/native");
|
|
23
|
+
var _ProgressDialog = _interopRequireDefault(require("../../../../components/widgets/ProgressDialog"));
|
|
24
|
+
var _events = _interopRequireDefault(require("../../../../events"));
|
|
25
|
+
var _CollectPaymentSchema = require("../CollectPaymentSchema");
|
|
26
|
+
var _storage = _interopRequireDefault(require("../../../../utils/storage"));
|
|
27
|
+
var _paymentContext = require("../../../../utils/context/paymentContext");
|
|
28
|
+
var _apiConstants = require("../../../../constants/apiConstants");
|
|
29
|
+
var _RouteParams = require("../../../../ui/uiConfig/RouteParams");
|
|
30
|
+
var _Logger = _interopRequireWildcard(require("../../../../utils/Logger"));
|
|
31
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
32
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
33
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
34
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
35
|
+
/* eslint-disable react-native/no-inline-styles */
|
|
36
|
+
|
|
37
|
+
const styles = _PaymentStyles.PaymentStyles;
|
|
38
|
+
let storage = _storage.default.getInstance();
|
|
39
|
+
const InitPayment = props => {
|
|
40
|
+
var _props$route$params$R, _paymentConfigContext8;
|
|
41
|
+
const paymentConfigContext = (0, _react.useContext)(_paymentContext.PaymentContext);
|
|
42
|
+
const [paymentStatus, setPaymentStatus] = (0, _react.useState)(null);
|
|
43
|
+
const [paymentMode, setPaymentMode] = (0, _react.useState)(props.allowedModes[0]);
|
|
44
|
+
const [disableNext, setDisableNext] = (0, _react.useState)(false);
|
|
45
|
+
const [showBackModal, setShowBackModal] = (0, _react.useState)(false);
|
|
46
|
+
const paymentRefId = (_props$route$params$R = props.route.params[_RouteParams.RouteParams.ROOT_META_DATA].paymentConfig) === null || _props$route$params$R === void 0 ? void 0 : _props$route$params$R.paymentRefId;
|
|
47
|
+
const handleOnProceedClick = async () => {
|
|
48
|
+
if (!(0, _utils.isEmptyOrBlank)(paymentMode)) {
|
|
49
|
+
var _props$applicableReas, _paymentConfigContext;
|
|
50
|
+
setDisableNext(true);
|
|
51
|
+
props.next({
|
|
52
|
+
paymentMode: paymentMode,
|
|
53
|
+
refId: paymentRefId,
|
|
54
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.COLLECT_PAYMENT_ET, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET, true, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.success), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET)),
|
|
55
|
+
screen: paymentMode === 'QR_CODE' ? _CollectPaymentSchema.PAYMENT_SCREEN.PROCESS : paymentMode === 'PAYMENT_LINK' ? _CollectPaymentSchema.PAYMENT_SCREEN.CONTACTS : _CollectPaymentSchema.PAYMENT_SCREEN.COMPLETE,
|
|
56
|
+
sourceScreen: _CollectPaymentSchema.PAYMENT_SCREEN.INIT,
|
|
57
|
+
collectedAmount: {
|
|
58
|
+
value: props.expectedAmount,
|
|
59
|
+
currencyCode: (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext = paymentConfigContext.sdkConfig) === null || _paymentConfigContext === void 0 || (_paymentConfigContext = _paymentConfigContext.etConfig) === null || _paymentConfigContext === void 0 ? void 0 : _paymentConfigContext.currencyCode) || ''
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
} else (0, _Toaster.showToast)('No payment mode selected');
|
|
63
|
+
};
|
|
64
|
+
const handleOnCancelClick = async () => {
|
|
65
|
+
var _props$applicableReas2, _paymentConfigContext2;
|
|
66
|
+
props.onSubmitET({
|
|
67
|
+
paymentMode: paymentMode,
|
|
68
|
+
refId: paymentRefId,
|
|
69
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.COLLECT_PAYMENT_ET, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET, false, (_props$applicableReas2 = props.applicableReasons) === null || _props$applicableReas2 === void 0 ? void 0 : _props$applicableReas2.failure), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET)),
|
|
70
|
+
collectedAmount: {
|
|
71
|
+
value: props.expectedAmount,
|
|
72
|
+
currencyCode: (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext2 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext2 === void 0 || (_paymentConfigContext2 = _paymentConfigContext2.etConfig) === null || _paymentConfigContext2 === void 0 ? void 0 : _paymentConfigContext2.currencyCode) || ''
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
const getPaymentStatus = async isProceed => {
|
|
77
|
+
try {
|
|
78
|
+
var _ps$data$transactions, _ps$data$meta, _ps$data$meta2, _ps$data$transactions2;
|
|
79
|
+
let sharedPrefPaymentData = null;
|
|
80
|
+
const paymentResp = await (paymentConfigContext === null || paymentConfigContext === void 0 ? void 0 : paymentConfigContext.networkInstance.requestGet(_apiConstants.ENDPOINTS.PAYMENT_STATUS + paymentRefId, {
|
|
81
|
+
requestId: 'payment:' + paymentRefId
|
|
82
|
+
}, {
|
|
83
|
+
appAbbr: paymentConfigContext.sdkConfig.etConfig.appAbbr,
|
|
84
|
+
latest: true
|
|
85
|
+
}));
|
|
86
|
+
// const paymentResp = {
|
|
87
|
+
// data: {
|
|
88
|
+
// data: {
|
|
89
|
+
// meta: { totalCount: 1 },
|
|
90
|
+
// transactions: [
|
|
91
|
+
// {
|
|
92
|
+
// refId: paymentRefId,
|
|
93
|
+
// status: STATUS.FAILED,
|
|
94
|
+
// subStatus: SUB_STATUS.completed,
|
|
95
|
+
// money: {
|
|
96
|
+
// amount: 1000,
|
|
97
|
+
// currency: 'INR',
|
|
98
|
+
// },
|
|
99
|
+
// txnId: '123',
|
|
100
|
+
// txnType: TRANSACTION_TYPE.LINK,
|
|
101
|
+
// appAbbr: 'testApp31',
|
|
102
|
+
// },
|
|
103
|
+
// ],
|
|
104
|
+
// },
|
|
105
|
+
// },
|
|
106
|
+
// };
|
|
107
|
+
const _ps = paymentResp === null || paymentResp === void 0 ? void 0 : paymentResp.data;
|
|
108
|
+
console.log('INIT getPaymentStatus _ps: ', JSON.stringify(_ps));
|
|
109
|
+
sharedPrefPaymentData = await (0, _PaymentUtils.getPaymentDataMO)(props.mergedObjectiveId, paymentRefId, storage);
|
|
110
|
+
/**
|
|
111
|
+
* TBD: For first time INIT Screen rendering, no data in shared Pref, meaning the payment was not initiated from mobile.
|
|
112
|
+
* For next time init screen rendering, refId should be associated with a MergedObjectiveId, if not then the payment won't be considered.
|
|
113
|
+
*/
|
|
114
|
+
if (_ps !== null && _ps !== void 0 && (_ps$data$transactions = _ps.data.transactions) !== null && _ps$data$transactions !== void 0 && _ps$data$transactions.length && (sharedPrefPaymentData || (0, _PaymentUtils.getPaymentType)(_ps === null || _ps === void 0 ? void 0 : _ps.data.transactions[0].txnType)) && (_ps$data$meta = _ps.data.meta) !== null && _ps$data$meta !== void 0 && _ps$data$meta.totalCount && (_ps === null || _ps === void 0 ? void 0 : _ps.data.transactions[0].status) === _CollectPaymentSchema.STATUS.SUCCESS) {
|
|
115
|
+
var _sharedPrefPaymentDat, _sharedPrefPaymentDat2, _sharedPrefPaymentDat3, _paymentConfigContext3, _props$applicableReas3;
|
|
116
|
+
props.next({
|
|
117
|
+
paymentMode: ((_sharedPrefPaymentDat = sharedPrefPaymentData) === null || _sharedPrefPaymentDat === void 0 ? void 0 : _sharedPrefPaymentDat.paymentMode) || (0, _PaymentUtils.getPaymentType)(_ps === null || _ps === void 0 ? void 0 : _ps.data.transactions[0].txnType) || paymentMode,
|
|
118
|
+
collectedAmount: {
|
|
119
|
+
value: ((_sharedPrefPaymentDat2 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat2 === void 0 ? void 0 : _sharedPrefPaymentDat2.amount.value) || (_ps === null || _ps === void 0 ? void 0 : _ps.data.transactions[0].money.amount) || props.expectedAmount,
|
|
120
|
+
currencyCode: ((_sharedPrefPaymentDat3 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat3 === void 0 ? void 0 : _sharedPrefPaymentDat3.amount.currencyCode) || (_ps === null || _ps === void 0 ? void 0 : _ps.data.transactions[0].money.currency) || (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext3 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext3 === void 0 || (_paymentConfigContext3 = _paymentConfigContext3.etConfig) === null || _paymentConfigContext3 === void 0 ? void 0 : _paymentConfigContext3.currencyCode) || ''
|
|
121
|
+
},
|
|
122
|
+
refId: _ps.data.transactions[0].refId,
|
|
123
|
+
screen: _CollectPaymentSchema.PAYMENT_SCREEN.COMPLETE,
|
|
124
|
+
sourceScreen: _CollectPaymentSchema.PAYMENT_SCREEN.INIT,
|
|
125
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.COLLECT_PAYMENT_ET, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET, true, (_props$applicableReas3 = props.applicableReasons) === null || _props$applicableReas3 === void 0 ? void 0 : _props$applicableReas3.success), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET))
|
|
126
|
+
});
|
|
127
|
+
setPaymentStatus(_ps);
|
|
128
|
+
return;
|
|
129
|
+
} else if (sharedPrefPaymentData && (_ps$data$meta2 = _ps.data.meta) !== null && _ps$data$meta2 !== void 0 && _ps$data$meta2.totalCount && _ps !== null && _ps !== void 0 && (_ps$data$transactions2 = _ps.data.transactions) !== null && _ps$data$transactions2 !== void 0 && _ps$data$transactions2.length && (_ps === null || _ps === void 0 ? void 0 : _ps.data.transactions[0].status) === _CollectPaymentSchema.STATUS.FAILED) {
|
|
130
|
+
/* const _sharedPrefPaymentData = JSON.parse(
|
|
131
|
+
JSON.stringify(sharedPrefPaymentData)
|
|
132
|
+
); */
|
|
133
|
+
await (0, _PaymentUtils.removeSharedPrefPaymentData)(paymentRefId, storage);
|
|
134
|
+
/* await storage.removeSharedItems(
|
|
135
|
+
props.mergedObjectiveId.map((_id) => PAYMENT_SHARED_PREF_KEY + _id)
|
|
136
|
+
); */
|
|
137
|
+
}
|
|
138
|
+
if (isProceed) await handleOnProceedClick();else if (isProceed === false) await handleOnCancelClick();
|
|
139
|
+
setPaymentStatus(_ps);
|
|
140
|
+
} catch (err) {
|
|
141
|
+
var _err$response, _err$response2;
|
|
142
|
+
_Logger.default.getInstance().logEvent('~ getPaymentStatus triggered ', JSON.stringify((err === null || err === void 0 || (_err$response = err.response) === null || _err$response === void 0 ? void 0 : _err$response.data) || err), _Logger.LOG_TYPE.SDK_ERROR);
|
|
143
|
+
console.error('STATUS: ', (err === null || err === void 0 || (_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : _err$response2.data) || err.message);
|
|
144
|
+
if (isProceed) await handleOnProceedClick();else if (isProceed === false) await handleOnCancelClick();
|
|
145
|
+
setPaymentStatus(undefined);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
(0, _react.useEffect)(() => {
|
|
149
|
+
(async () => {
|
|
150
|
+
await getPaymentStatus(null);
|
|
151
|
+
// setPaymentStatus(false); // FOR TESTING payment status on click
|
|
152
|
+
})();
|
|
153
|
+
_events.default.on(_constants.PAYMENT_NOTIFICATION, async data => {
|
|
154
|
+
console.log('InitPayment:', JSON.stringify(data));
|
|
155
|
+
let sharedPrefPaymentData = null;
|
|
156
|
+
if (data && (data.status === _CollectPaymentSchema.STATUS.SUCCESS || data.status === _CollectPaymentSchema.STATUS.FAILED)) {
|
|
157
|
+
sharedPrefPaymentData = await (0, _PaymentUtils.getPaymentDataMO)(props.mergedObjectiveId, data.refId, storage);
|
|
158
|
+
}
|
|
159
|
+
if (sharedPrefPaymentData && data && data.status === _CollectPaymentSchema.STATUS.SUCCESS) {
|
|
160
|
+
var _sharedPrefPaymentDat4, _sharedPrefPaymentDat5, _sharedPrefPaymentDat6, _paymentConfigContext4, _props$applicableReas4;
|
|
161
|
+
props.next({
|
|
162
|
+
paymentMode: ((_sharedPrefPaymentDat4 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat4 === void 0 ? void 0 : _sharedPrefPaymentDat4.paymentMode) || paymentMode,
|
|
163
|
+
collectedAmount: {
|
|
164
|
+
value: ((_sharedPrefPaymentDat5 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat5 === void 0 ? void 0 : _sharedPrefPaymentDat5.amount.value) || props.expectedAmount,
|
|
165
|
+
currencyCode: ((_sharedPrefPaymentDat6 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat6 === void 0 ? void 0 : _sharedPrefPaymentDat6.amount.currencyCode) || (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext4 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext4 === void 0 || (_paymentConfigContext4 = _paymentConfigContext4.etConfig) === null || _paymentConfigContext4 === void 0 ? void 0 : _paymentConfigContext4.currencyCode) || ''
|
|
166
|
+
},
|
|
167
|
+
refId: data.refId,
|
|
168
|
+
screen: _CollectPaymentSchema.PAYMENT_SCREEN.COMPLETE,
|
|
169
|
+
sourceScreen: _CollectPaymentSchema.PAYMENT_SCREEN.INIT,
|
|
170
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.COLLECT_PAYMENT_ET, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET, true, (_props$applicableReas4 = props.applicableReasons) === null || _props$applicableReas4 === void 0 ? void 0 : _props$applicableReas4.success), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET))
|
|
171
|
+
});
|
|
172
|
+
} else if (sharedPrefPaymentData && data && data.status === _CollectPaymentSchema.STATUS.FAILED /* &&
|
|
173
|
+
props.sourceScreen !== 'COMPLETE' */) {
|
|
174
|
+
/* const _sharedPrefPaymentData = JSON.parse(
|
|
175
|
+
JSON.stringify(sharedPrefPaymentData)
|
|
176
|
+
); */
|
|
177
|
+
/* await storage.removeSharedItems(
|
|
178
|
+
props.mergedObjectiveId.map((_id) => PAYMENT_SHARED_PREF_KEY + _id)
|
|
179
|
+
); */
|
|
180
|
+
await (0, _PaymentUtils.removeSharedPrefPaymentData)(data.refId, storage);
|
|
181
|
+
/* props.next({
|
|
182
|
+
paymentMode: _sharedPrefPaymentData?.paymentMode || paymentMode,
|
|
183
|
+
collectedAmount: {
|
|
184
|
+
value: data.amount,
|
|
185
|
+
currencyCode:
|
|
186
|
+
_sharedPrefPaymentData?.amount.currencyCode ||
|
|
187
|
+
props.amount.currencyCode,
|
|
188
|
+
minorUnit:
|
|
189
|
+
_sharedPrefPaymentData?.amount.minorUnit ||
|
|
190
|
+
props.amount.minorUnit,
|
|
191
|
+
},
|
|
192
|
+
txnId: data.txnId,
|
|
193
|
+
refId: data.refId,
|
|
194
|
+
transactionSuccess: false,
|
|
195
|
+
screen: PAYMENT_SCREEN.COMPLETE,
|
|
196
|
+
sourceScreen: PAYMENT_SCREEN.INIT,
|
|
197
|
+
...(await getBaseETResponse(
|
|
198
|
+
EntityCode.COLLECT_PAYMENT_ET,
|
|
199
|
+
false,
|
|
200
|
+
getEventCodeByET(
|
|
201
|
+
ExecutionTaskID.COLLECT_PAYMENT_ET,
|
|
202
|
+
false,
|
|
203
|
+
props.applicableReasons?.failure
|
|
204
|
+
),
|
|
205
|
+
'',
|
|
206
|
+
props.mergedObjectiveId,
|
|
207
|
+
ExecutionTaskID.COLLECT_PAYMENT_ET
|
|
208
|
+
)),
|
|
209
|
+
}); */
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
return () => _events.default.remove(_constants.PAYMENT_NOTIFICATION);
|
|
213
|
+
}, []);
|
|
214
|
+
|
|
215
|
+
// Handle back-button click
|
|
216
|
+
(0, _native.useFocusEffect)(_react.default.useCallback(() => {
|
|
217
|
+
const onBackPress = async () => {
|
|
218
|
+
var _props$taskMeta;
|
|
219
|
+
let sharedPref = null;
|
|
220
|
+
// (async () => {
|
|
221
|
+
sharedPref = await storage.getSharedItem(_PaymentUtils.PAYMENT_SHARED_PREF_KEY + paymentRefId);
|
|
222
|
+
// })();
|
|
223
|
+
|
|
224
|
+
const paymentInProgress =
|
|
225
|
+
/* props.mergedObjectiveId.some(
|
|
226
|
+
async (moId) =>
|
|
227
|
+
await storage.getSharedItem(PAYMENT_SHARED_PREF_KEY + moId)
|
|
228
|
+
) */
|
|
229
|
+
sharedPref || false;
|
|
230
|
+
if ((_props$taskMeta = props.taskMeta) !== null && _props$taskMeta !== void 0 && _props$taskMeta.enableGoBack && (0, _utils2.hasGoBackConnector)(props.applicableReasons) && !paymentInProgress) {
|
|
231
|
+
setShowBackModal(true);
|
|
232
|
+
return true;
|
|
233
|
+
} else {
|
|
234
|
+
props.navigation.goBack();
|
|
235
|
+
return true;
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
_reactNative.BackHandler.addEventListener('hardwareBackPress', () => {
|
|
239
|
+
onBackPress();
|
|
240
|
+
return true;
|
|
241
|
+
});
|
|
242
|
+
return () => _reactNative.BackHandler.removeEventListener('hardwareBackPress', () => {
|
|
243
|
+
onBackPress();
|
|
244
|
+
return true;
|
|
245
|
+
});
|
|
246
|
+
}, []));
|
|
247
|
+
(0, _react.useLayoutEffect)(() => {
|
|
248
|
+
props.navigation.setOptions({
|
|
249
|
+
headerShown: true,
|
|
250
|
+
title: 'Choose Payment Method',
|
|
251
|
+
headerLeft: () => {
|
|
252
|
+
return /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
253
|
+
onPress: async () => {
|
|
254
|
+
var _props$taskMeta2;
|
|
255
|
+
const sharedPref = await storage.getSharedItem(_PaymentUtils.PAYMENT_SHARED_PREF_KEY + paymentRefId);
|
|
256
|
+
const paymentInProgress =
|
|
257
|
+
/* props.mergedObjectiveId.some(
|
|
258
|
+
async (moId) =>
|
|
259
|
+
await storage.getSharedItem(PAYMENT_SHARED_PREF_KEY + moId)
|
|
260
|
+
) */
|
|
261
|
+
sharedPref || false;
|
|
262
|
+
if ((_props$taskMeta2 = props.taskMeta) !== null && _props$taskMeta2 !== void 0 && _props$taskMeta2.enableGoBack && (0, _utils2.hasGoBackConnector)(props.applicableReasons) && !paymentInProgress) setShowBackModal(true);else props.navigation.goBack();
|
|
263
|
+
},
|
|
264
|
+
name: "arrow-back",
|
|
265
|
+
color: 'black',
|
|
266
|
+
size: 25,
|
|
267
|
+
style: {
|
|
268
|
+
paddingRight: 15,
|
|
269
|
+
paddingTop: 5
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
}, [props.navigation]);
|
|
275
|
+
(0, _react.useEffect)(() => {
|
|
276
|
+
if (props.allowedModes && props.allowedModes.length > 0) {
|
|
277
|
+
setPaymentMode(props.allowedModes[0]);
|
|
278
|
+
}
|
|
279
|
+
}, [props.allowedModes]);
|
|
280
|
+
const renderModal = () => {
|
|
281
|
+
return /*#__PURE__*/_react.default.createElement(_GoBackModal.default, {
|
|
282
|
+
showModal: showBackModal,
|
|
283
|
+
setShowModal: setShowBackModal,
|
|
284
|
+
onSuccess: async () => {
|
|
285
|
+
var _paymentConfigContext5;
|
|
286
|
+
props.onSubmitET({
|
|
287
|
+
collectedAmount: {
|
|
288
|
+
value: props.expectedAmount,
|
|
289
|
+
currencyCode: (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext5 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext5 === void 0 || (_paymentConfigContext5 = _paymentConfigContext5.etConfig) === null || _paymentConfigContext5 === void 0 ? void 0 : _paymentConfigContext5.currencyCode) || ''
|
|
290
|
+
},
|
|
291
|
+
paymentMode: paymentMode,
|
|
292
|
+
refId: paymentRefId,
|
|
293
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.COLLECT_PAYMENT_ET, false, _constants.GO_BACK_EVENT_CODE, '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET))
|
|
294
|
+
});
|
|
295
|
+
setShowBackModal(false);
|
|
296
|
+
},
|
|
297
|
+
onFailure: () => setShowBackModal(false)
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
const renderItem = ({
|
|
301
|
+
item
|
|
302
|
+
}) => {
|
|
303
|
+
var _paymentConfigContext6, _paymentConfigContext7, _props$plModes;
|
|
304
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
305
|
+
activeOpacity: 1,
|
|
306
|
+
onPress: () => {
|
|
307
|
+
setPaymentMode(item);
|
|
308
|
+
},
|
|
309
|
+
style: [styles.reasonItemStyle, {
|
|
310
|
+
marginBottom: 4,
|
|
311
|
+
paddingVertical: 8
|
|
312
|
+
}]
|
|
313
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.RadioButton, {
|
|
314
|
+
color: '#5B80F7',
|
|
315
|
+
value: item,
|
|
316
|
+
status: paymentMode === item ? 'checked' : 'unchecked',
|
|
317
|
+
onPress: () => {
|
|
318
|
+
setPaymentMode(item);
|
|
319
|
+
}
|
|
320
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
321
|
+
style: {
|
|
322
|
+
display: 'flex',
|
|
323
|
+
flexDirection: 'column'
|
|
324
|
+
}
|
|
325
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
326
|
+
style: [styles.reasonTextStyle, {
|
|
327
|
+
fontWeight: 'bold',
|
|
328
|
+
paddingTop: 6,
|
|
329
|
+
fontSize: 14,
|
|
330
|
+
lineHeight: 20,
|
|
331
|
+
color: '#3D445C'
|
|
332
|
+
}],
|
|
333
|
+
onPress: () => {
|
|
334
|
+
setPaymentMode(item);
|
|
335
|
+
}
|
|
336
|
+
}, item === 'CASH' ? 'Cash' : item === 'QR_CODE' ? 'QR Code' : item === 'PAYMENT_LINK' ? 'Payment Link' : item), (item === 'QR_CODE' || item === 'PAYMENT_LINK') && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
337
|
+
style: [styles.reasonTextStyle, {
|
|
338
|
+
fontWeight: '500',
|
|
339
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_500Medium,
|
|
340
|
+
paddingTop: 2,
|
|
341
|
+
fontSize: 12,
|
|
342
|
+
lineHeight: 16,
|
|
343
|
+
color: '#525B7A'
|
|
344
|
+
}],
|
|
345
|
+
onPress: () => {
|
|
346
|
+
setPaymentMode(item);
|
|
347
|
+
}
|
|
348
|
+
}, item === 'QR_CODE' ? (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext6 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext6 === void 0 || (_paymentConfigContext6 = _paymentConfigContext6.etConfig) === null || _paymentConfigContext6 === void 0 ? void 0 : _paymentConfigContext6.currencyCode) === 'INR' ? 'UPI' : 'Scan to get a payment link' : item === 'PAYMENT_LINK' ? (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext7 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext7 === void 0 || (_paymentConfigContext7 = _paymentConfigContext7.etConfig) === null || _paymentConfigContext7 === void 0 ? void 0 : _paymentConfigContext7.currencyCode) === 'INR' ? (_props$plModes = props.plModes) === null || _props$plModes === void 0 ? void 0 : _props$plModes.join(', ') : 'Credit / Debit Cards, Netbanking …' : '')));
|
|
349
|
+
};
|
|
350
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, renderModal(), /*#__PURE__*/_react.default.createElement(_ProgressDialog.default, {
|
|
351
|
+
customModalContentStyle: {
|
|
352
|
+
paddingVertical: 40
|
|
353
|
+
},
|
|
354
|
+
visible: paymentStatus === null ? true : false,
|
|
355
|
+
label: "Loading",
|
|
356
|
+
labelStyle: {
|
|
357
|
+
fontWeight: '400',
|
|
358
|
+
fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
|
|
359
|
+
marginTop: 16,
|
|
360
|
+
color: '#3D445C'
|
|
361
|
+
}
|
|
362
|
+
}), paymentStatus === null ? null : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
363
|
+
style: _CommonStyles.CommonStyles.mainContainer
|
|
364
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
365
|
+
style: {
|
|
366
|
+
backgroundColor: 'white',
|
|
367
|
+
marginTop: 30
|
|
368
|
+
}
|
|
369
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
370
|
+
style: [styles.amountStyle, styles.textStyle1, {
|
|
371
|
+
paddingTop: 0,
|
|
372
|
+
paddingBottom: 0,
|
|
373
|
+
color: '#3D445C',
|
|
374
|
+
margin: 0,
|
|
375
|
+
fontSize: 16
|
|
376
|
+
}]
|
|
377
|
+
}, "Collect at Delivery"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
378
|
+
style: [styles.amountStyle, {
|
|
379
|
+
paddingTop: 0,
|
|
380
|
+
fontSize: 24
|
|
381
|
+
}]
|
|
382
|
+
}, (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext8 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext8 === void 0 || (_paymentConfigContext8 = _paymentConfigContext8.etConfig) === null || _paymentConfigContext8 === void 0 ? void 0 : _paymentConfigContext8.currencyCode) + ' ' + props.expectedAmount)), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
383
|
+
style: [styles.textStyle1, {
|
|
384
|
+
paddingBottom: 12
|
|
385
|
+
}]
|
|
386
|
+
}, 'Select a payment option'.toUpperCase()), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
387
|
+
style: {
|
|
388
|
+
flex: 1
|
|
389
|
+
}
|
|
390
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
391
|
+
data: props.allowedModes,
|
|
392
|
+
renderItem: renderItem,
|
|
393
|
+
keyExtractor: item => item
|
|
394
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
395
|
+
style: {
|
|
396
|
+
justifyContent: 'flex-end',
|
|
397
|
+
// marginBottom: 10,
|
|
398
|
+
padding: 16,
|
|
399
|
+
// paddingTop: 10,
|
|
400
|
+
borderTopWidth: 1,
|
|
401
|
+
borderTopColor: '#E0E3EB',
|
|
402
|
+
elevation: 0.5
|
|
403
|
+
}
|
|
404
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
405
|
+
style: {
|
|
406
|
+
flexDirection: 'row'
|
|
407
|
+
// marginStart: 10,
|
|
408
|
+
// marginEnd: 10,
|
|
409
|
+
}
|
|
410
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
411
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
412
|
+
marginEnd: 5,
|
|
413
|
+
flex: 1
|
|
414
|
+
}],
|
|
415
|
+
labelStyle: {
|
|
416
|
+
..._CommonStyles.CommonStyles.cancelButtonLabel,
|
|
417
|
+
color: '#5B80F7',
|
|
418
|
+
textTransform: 'capitalize'
|
|
419
|
+
},
|
|
420
|
+
mode: 'outlined',
|
|
421
|
+
onPress: async () => {
|
|
422
|
+
await getPaymentStatus(false);
|
|
423
|
+
}
|
|
424
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
425
|
+
disabled: disableNext,
|
|
426
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
427
|
+
flex: 1,
|
|
428
|
+
marginStart: 5
|
|
429
|
+
}],
|
|
430
|
+
labelStyle: {
|
|
431
|
+
..._CommonStyles.CommonStyles.nextButtonLabel,
|
|
432
|
+
textTransform: 'capitalize'
|
|
433
|
+
},
|
|
434
|
+
mode: 'contained',
|
|
435
|
+
onPress: async () => {
|
|
436
|
+
// Check payment status every time when moving away from init screen
|
|
437
|
+
await getPaymentStatus(true);
|
|
438
|
+
}
|
|
439
|
+
}, "Proceed")))));
|
|
440
|
+
};
|
|
441
|
+
var _default = exports.default = InitPayment;
|
|
442
|
+
//# sourceMappingURL=InitPayment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_utils","_PaymentUtils","_ExecTaskUtils","_ETConfig","_EventCodeContainer","_PaymentStyles","_CommonStyles","_Toaster","_reactNativePaper","_MaterialIcons","_interopRequireDefault","_constants","_utils2","_GoBackModal","_native","_ProgressDialog","_events","_CollectPaymentSchema","_storage","_paymentContext","_apiConstants","_RouteParams","_Logger","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","styles","PaymentStyles","storage","Storage","getInstance","InitPayment","props","_props$route$params$R","_paymentConfigContext8","paymentConfigContext","useContext","PaymentContext","paymentStatus","setPaymentStatus","useState","paymentMode","setPaymentMode","allowedModes","disableNext","setDisableNext","showBackModal","setShowBackModal","paymentRefId","route","params","RouteParams","ROOT_META_DATA","paymentConfig","handleOnProceedClick","isEmptyOrBlank","_props$applicableReas","_paymentConfigContext","next","refId","getBaseETResponse","EntityCode","COLLECT_PAYMENT_ET","getEventCodeByET","ExecutionTaskID","applicableReasons","success","mergedObjectiveId","screen","PAYMENT_SCREEN","PROCESS","CONTACTS","COMPLETE","sourceScreen","INIT","collectedAmount","value","expectedAmount","currencyCode","sdkConfig","etConfig","showToast","handleOnCancelClick","_props$applicableReas2","_paymentConfigContext2","onSubmitET","failure","getPaymentStatus","isProceed","_ps$data$transactions","_ps$data$meta","_ps$data$meta2","_ps$data$transactions2","sharedPrefPaymentData","paymentResp","networkInstance","requestGet","ENDPOINTS","PAYMENT_STATUS","requestId","appAbbr","latest","_ps","data","console","log","JSON","stringify","getPaymentDataMO","transactions","length","getPaymentType","txnType","meta","totalCount","status","STATUS","SUCCESS","_sharedPrefPaymentDat","_sharedPrefPaymentDat2","_sharedPrefPaymentDat3","_paymentConfigContext3","_props$applicableReas3","amount","money","currency","FAILED","removeSharedPrefPaymentData","err","_err$response","_err$response2","Logger","logEvent","response","LOG_TYPE","SDK_ERROR","error","message","undefined","useEffect","EventListener","on","PAYMENT_NOTIFICATION","_sharedPrefPaymentDat4","_sharedPrefPaymentDat5","_sharedPrefPaymentDat6","_paymentConfigContext4","_props$applicableReas4","remove","useFocusEffect","React","useCallback","onBackPress","_props$taskMeta","sharedPref","getSharedItem","PAYMENT_SHARED_PREF_KEY","paymentInProgress","taskMeta","enableGoBack","hasGoBackConnector","navigation","goBack","BackHandler","addEventListener","removeEventListener","useLayoutEffect","setOptions","headerShown","title","headerLeft","createElement","onPress","_props$taskMeta2","name","color","size","style","paddingRight","paddingTop","renderModal","showModal","setShowModal","onSuccess","_paymentConfigContext5","GO_BACK_EVENT_CODE","onFailure","renderItem","item","_paymentConfigContext6","_paymentConfigContext7","_props$plModes","TouchableOpacity","activeOpacity","reasonItemStyle","marginBottom","paddingVertical","RadioButton","View","display","flexDirection","Text","reasonTextStyle","fontWeight","fontSize","lineHeight","fontFamily","Fonts","IBMPlexSans_500Medium","plModes","join","Provider","customModalContentStyle","visible","label","labelStyle","Platform","OS","IBMPlexSans_400Regular","marginTop","CommonStyles","mainContainer","backgroundColor","amountStyle","textStyle1","paddingBottom","margin","toUpperCase","flex","FlatList","keyExtractor","justifyContent","padding","borderTopWidth","borderTopColor","elevation","Button","cancelButton","marginEnd","cancelButtonLabel","textTransform","mode","disabled","nextButton","marginStart","nextButtonLabel","_default","exports"],"sources":["InitPayment.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable react-native/no-inline-styles */\nimport React, { useEffect, useState, useLayoutEffect, useContext } from 'react';\nimport { FlatList, Platform, Text, TouchableOpacity, View } from 'react-native';\nimport { isEmptyOrBlank } from '../../../../utils/utils';\nimport {\n PAYMENT_SHARED_PREF_KEY,\n getPaymentDataMO,\n getPaymentType,\n removeSharedPrefPaymentData,\n} from '../PaymentUtils';\nimport { getBaseETResponse } from '../../../../utils/ExecTaskUtils';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../../models/execTasks/ETConfig';\nimport { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';\nimport { PaymentStyles } from '../PaymentStyles';\nimport {\n CommonStyles,\n Fonts,\n} from '../../../../styles/executionTasks/CommonStyles';\nimport { showToast } from '../../../widgets/Toaster';\nimport { Button, Provider, RadioButton } from 'react-native-paper';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport {\n GO_BACK_EVENT_CODE,\n PAYMENT_NOTIFICATION,\n} from '../../../../constants/constants';\nimport { hasGoBackConnector } from '../../../../components/utils';\nimport GoBackModal from '../../../../components/widgets/GoBackModal';\nimport { useFocusEffect } from '@react-navigation/native';\nimport { BackHandler } from 'react-native';\nimport ProgressDialog from '../../../../components/widgets/ProgressDialog';\nimport EventListener from '../../../../events';\nimport {\n AllowedModes,\n CollectPaymentInput,\n PAYMENT_SCREEN,\n PaymentStatusResponse,\n STATUS,\n SUB_STATUS,\n TRANSACTION_TYPE,\n notificationPaymentStatus,\n sharedPrefPaymentDataInterface,\n} from '../CollectPaymentSchema';\nimport Storage from '../../../../utils/storage';\nimport { PaymentContext } from '../../../../utils/context/paymentContext';\nimport { ENDPOINTS } from '../../../../constants/apiConstants';\nimport { RouteParams } from '../../../../ui/uiConfig/RouteParams';\nimport Logger, { LOG_TYPE } from '../../../../utils/Logger';\n\nconst styles = PaymentStyles;\nlet storage = Storage.getInstance();\n\nconst InitPayment = (props: CollectPaymentInput) => {\n const paymentConfigContext = useContext(PaymentContext);\n const [paymentStatus, setPaymentStatus] = useState<\n PaymentStatusResponse | null | undefined\n >(null);\n const [paymentMode, setPaymentMode] = useState<AllowedModes>(\n props.allowedModes[0]\n );\n const [disableNext, setDisableNext] = useState(false);\n const [showBackModal, setShowBackModal] = useState(false);\n const paymentRefId =\n props.route.params[RouteParams.ROOT_META_DATA].paymentConfig?.paymentRefId;\n\n const handleOnProceedClick = async () => {\n if (!isEmptyOrBlank(paymentMode)) {\n setDisableNext(true);\n props.next({\n paymentMode: paymentMode,\n refId: paymentRefId,\n ...(await getBaseETResponse(\n EntityCode.COLLECT_PAYMENT_ET,\n true,\n getEventCodeByET(\n ExecutionTaskID.COLLECT_PAYMENT_ET,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.COLLECT_PAYMENT_ET\n )),\n screen:\n paymentMode === 'QR_CODE'\n ? PAYMENT_SCREEN.PROCESS\n : paymentMode === 'PAYMENT_LINK'\n ? PAYMENT_SCREEN.CONTACTS\n : PAYMENT_SCREEN.COMPLETE,\n sourceScreen: PAYMENT_SCREEN.INIT,\n collectedAmount: {\n value: props.expectedAmount,\n currencyCode:\n paymentConfigContext?.sdkConfig?.etConfig?.currencyCode || '',\n },\n });\n } else showToast('No payment mode selected');\n };\n\n const handleOnCancelClick = async () => {\n props.onSubmitET({\n paymentMode: paymentMode,\n refId: paymentRefId,\n ...(await getBaseETResponse(\n EntityCode.COLLECT_PAYMENT_ET,\n false,\n getEventCodeByET(\n ExecutionTaskID.COLLECT_PAYMENT_ET,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.COLLECT_PAYMENT_ET\n )),\n collectedAmount: {\n value: props.expectedAmount,\n currencyCode:\n paymentConfigContext?.sdkConfig?.etConfig?.currencyCode || '',\n },\n });\n };\n\n const getPaymentStatus = async (isProceed: boolean | null) => {\n try {\n let sharedPrefPaymentData: sharedPrefPaymentDataInterface | null = null;\n const paymentResp =\n await paymentConfigContext?.networkInstance.requestGet(\n ENDPOINTS.PAYMENT_STATUS + paymentRefId,\n {\n requestId: 'payment:' + paymentRefId,\n },\n {\n appAbbr: paymentConfigContext.sdkConfig.etConfig.appAbbr,\n latest: true,\n }\n );\n // const paymentResp = {\n // data: {\n // data: {\n // meta: { totalCount: 1 },\n // transactions: [\n // {\n // refId: paymentRefId,\n // status: STATUS.FAILED,\n // subStatus: SUB_STATUS.completed,\n // money: {\n // amount: 1000,\n // currency: 'INR',\n // },\n // txnId: '123',\n // txnType: TRANSACTION_TYPE.LINK,\n // appAbbr: 'testApp31',\n // },\n // ],\n // },\n // },\n // };\n const _ps: PaymentStatusResponse = paymentResp?.data;\n console.log('INIT getPaymentStatus _ps: ', JSON.stringify(_ps));\n\n sharedPrefPaymentData = await getPaymentDataMO(\n props.mergedObjectiveId,\n paymentRefId,\n storage\n );\n /**\n * TBD: For first time INIT Screen rendering, no data in shared Pref, meaning the payment was not initiated from mobile.\n * For next time init screen rendering, refId should be associated with a MergedObjectiveId, if not then the payment won't be considered.\n */\n if (\n _ps?.data.transactions?.length &&\n (sharedPrefPaymentData ||\n getPaymentType(_ps?.data.transactions[0].txnType)) &&\n _ps.data.meta?.totalCount &&\n _ps?.data.transactions[0].status === STATUS.SUCCESS\n ) {\n props.next({\n paymentMode:\n sharedPrefPaymentData?.paymentMode ||\n getPaymentType(_ps?.data.transactions[0].txnType) ||\n paymentMode,\n collectedAmount: {\n value:\n sharedPrefPaymentData?.amount.value ||\n _ps?.data.transactions[0].money.amount ||\n props.expectedAmount,\n currencyCode:\n sharedPrefPaymentData?.amount.currencyCode ||\n _ps?.data.transactions[0].money.currency ||\n paymentConfigContext?.sdkConfig?.etConfig?.currencyCode ||\n '',\n },\n refId: _ps.data.transactions[0].refId,\n screen: PAYMENT_SCREEN.COMPLETE,\n sourceScreen: PAYMENT_SCREEN.INIT,\n ...(await getBaseETResponse(\n EntityCode.COLLECT_PAYMENT_ET,\n true,\n getEventCodeByET(\n ExecutionTaskID.COLLECT_PAYMENT_ET,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.COLLECT_PAYMENT_ET\n )),\n });\n setPaymentStatus(_ps);\n return;\n } else if (\n sharedPrefPaymentData &&\n _ps.data.meta?.totalCount &&\n _ps?.data.transactions?.length &&\n _ps?.data.transactions[0].status === STATUS.FAILED\n ) {\n /* const _sharedPrefPaymentData = JSON.parse(\n JSON.stringify(sharedPrefPaymentData)\n ); */\n await removeSharedPrefPaymentData(paymentRefId, storage);\n /* await storage.removeSharedItems(\n props.mergedObjectiveId.map((_id) => PAYMENT_SHARED_PREF_KEY + _id)\n ); */\n }\n\n if (isProceed) await handleOnProceedClick();\n else if (isProceed === false) await handleOnCancelClick();\n setPaymentStatus(_ps);\n } catch (err: any) {\n Logger.getInstance().logEvent(\n '~ getPaymentStatus triggered ',\n JSON.stringify(err?.response?.data || err),\n LOG_TYPE.SDK_ERROR\n );\n console.error('STATUS: ', err?.response?.data || err.message);\n if (isProceed) await handleOnProceedClick();\n else if (isProceed === false) await handleOnCancelClick();\n setPaymentStatus(undefined);\n }\n };\n\n useEffect(() => {\n (async () => {\n await getPaymentStatus(null);\n // setPaymentStatus(false); // FOR TESTING payment status on click\n })();\n\n EventListener.on(\n PAYMENT_NOTIFICATION,\n async (data: notificationPaymentStatus) => {\n console.log('InitPayment:', JSON.stringify(data));\n let sharedPrefPaymentData: sharedPrefPaymentDataInterface | null = null;\n if (\n data &&\n (data.status === STATUS.SUCCESS || data.status === STATUS.FAILED)\n ) {\n sharedPrefPaymentData = await getPaymentDataMO(\n props.mergedObjectiveId,\n data.refId,\n storage\n );\n }\n if (sharedPrefPaymentData && data && data.status === STATUS.SUCCESS) {\n props.next({\n paymentMode: sharedPrefPaymentData?.paymentMode || paymentMode,\n collectedAmount: {\n value:\n sharedPrefPaymentData?.amount.value || props.expectedAmount,\n currencyCode:\n sharedPrefPaymentData?.amount.currencyCode ||\n paymentConfigContext?.sdkConfig?.etConfig?.currencyCode ||\n '',\n },\n refId: data.refId,\n screen: PAYMENT_SCREEN.COMPLETE,\n sourceScreen: PAYMENT_SCREEN.INIT,\n ...(await getBaseETResponse(\n EntityCode.COLLECT_PAYMENT_ET,\n true,\n getEventCodeByET(\n ExecutionTaskID.COLLECT_PAYMENT_ET,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.COLLECT_PAYMENT_ET\n )),\n });\n } else if (\n sharedPrefPaymentData &&\n data &&\n data.status === STATUS.FAILED /* &&\n props.sourceScreen !== 'COMPLETE' */\n ) {\n /* const _sharedPrefPaymentData = JSON.parse(\n JSON.stringify(sharedPrefPaymentData)\n ); */\n /* await storage.removeSharedItems(\n props.mergedObjectiveId.map((_id) => PAYMENT_SHARED_PREF_KEY + _id)\n ); */\n await removeSharedPrefPaymentData(data.refId, storage);\n /* props.next({\n paymentMode: _sharedPrefPaymentData?.paymentMode || paymentMode,\n collectedAmount: {\n value: data.amount,\n currencyCode:\n _sharedPrefPaymentData?.amount.currencyCode ||\n props.amount.currencyCode,\n minorUnit:\n _sharedPrefPaymentData?.amount.minorUnit ||\n props.amount.minorUnit,\n },\n txnId: data.txnId,\n refId: data.refId,\n transactionSuccess: false,\n screen: PAYMENT_SCREEN.COMPLETE,\n sourceScreen: PAYMENT_SCREEN.INIT,\n ...(await getBaseETResponse(\n EntityCode.COLLECT_PAYMENT_ET,\n false,\n getEventCodeByET(\n ExecutionTaskID.COLLECT_PAYMENT_ET,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.COLLECT_PAYMENT_ET\n )),\n }); */\n }\n }\n );\n return () => EventListener.remove(PAYMENT_NOTIFICATION);\n }, []);\n\n // Handle back-button click\n useFocusEffect(\n React.useCallback(() => {\n const onBackPress = async () => {\n let sharedPref = null;\n // (async () => {\n sharedPref = await storage.getSharedItem(\n PAYMENT_SHARED_PREF_KEY + paymentRefId\n );\n // })();\n\n const paymentInProgress =\n /* props.mergedObjectiveId.some(\n async (moId) =>\n await storage.getSharedItem(PAYMENT_SHARED_PREF_KEY + moId)\n ) */ sharedPref || false;\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons) &&\n !paymentInProgress\n ) {\n setShowBackModal(true);\n return true;\n } else {\n props.navigation.goBack();\n return true;\n }\n };\n BackHandler.addEventListener('hardwareBackPress', () => {\n onBackPress();\n return true;\n });\n return () =>\n BackHandler.removeEventListener('hardwareBackPress', () => {\n onBackPress();\n return true;\n });\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n headerShown: true,\n title: 'Choose Payment Method',\n headerLeft: () => {\n return (\n <Icon\n onPress={async () => {\n const sharedPref = await storage.getSharedItem(\n PAYMENT_SHARED_PREF_KEY + paymentRefId\n );\n const paymentInProgress =\n /* props.mergedObjectiveId.some(\n async (moId) =>\n await storage.getSharedItem(PAYMENT_SHARED_PREF_KEY + moId)\n ) */ sharedPref || false;\n\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons) &&\n !paymentInProgress\n )\n setShowBackModal(true);\n else props.navigation.goBack();\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n }, [props.navigation]);\n\n useEffect(() => {\n if (props.allowedModes && props.allowedModes.length > 0) {\n setPaymentMode(props.allowedModes[0]);\n }\n }, [props.allowedModes]);\n\n const renderModal = () => {\n return (\n <GoBackModal\n showModal={showBackModal}\n setShowModal={setShowBackModal}\n onSuccess={async () => {\n props.onSubmitET({\n collectedAmount: {\n value: props.expectedAmount,\n currencyCode:\n paymentConfigContext?.sdkConfig?.etConfig?.currencyCode || '',\n },\n paymentMode: paymentMode,\n refId: paymentRefId,\n ...(await getBaseETResponse(\n EntityCode.COLLECT_PAYMENT_ET,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.COLLECT_PAYMENT_ET\n )),\n });\n setShowBackModal(false);\n }}\n onFailure={() => setShowBackModal(false)}\n />\n );\n };\n\n const renderItem = ({ item }: { item: AllowedModes }) => {\n return (\n <TouchableOpacity activeOpacity={1}\n onPress={() => {\n setPaymentMode(item);\n }}\n style={[\n styles.reasonItemStyle,\n { marginBottom: 4, paddingVertical: 8 },\n ]}\n >\n <RadioButton\n color={'#5B80F7'}\n value={item}\n status={paymentMode === item ? 'checked' : 'unchecked'}\n onPress={() => {\n setPaymentMode(item);\n }}\n />\n <View style={{ display: 'flex', flexDirection: 'column' }}>\n <Text\n style={[\n styles.reasonTextStyle,\n {\n fontWeight: 'bold',\n paddingTop: 6,\n fontSize: 14,\n lineHeight: 20,\n color: '#3D445C',\n },\n ]}\n onPress={() => {\n setPaymentMode(item);\n }}\n >\n {item === 'CASH'\n ? 'Cash'\n : item === 'QR_CODE'\n ? 'QR Code'\n : item === 'PAYMENT_LINK'\n ? 'Payment Link'\n : item}\n </Text>\n {(item === 'QR_CODE' || item === 'PAYMENT_LINK') && (\n <Text\n style={[\n styles.reasonTextStyle,\n {\n fontWeight: '500',\n fontFamily: Fonts.IBMPlexSans_500Medium,\n paddingTop: 2,\n fontSize: 12,\n lineHeight: 16,\n color: '#525B7A',\n },\n ]}\n onPress={() => {\n setPaymentMode(item);\n }}\n >\n {item === 'QR_CODE'\n ? paymentConfigContext?.sdkConfig?.etConfig?.currencyCode ===\n 'INR'\n ? 'UPI'\n : 'Scan to get a payment link'\n : item === 'PAYMENT_LINK'\n ? paymentConfigContext?.sdkConfig?.etConfig?.currencyCode ===\n 'INR'\n ? props.plModes?.join(', ')\n : 'Credit / Debit Cards, Netbanking …'\n : ''}\n </Text>\n )}\n </View>\n </TouchableOpacity>\n );\n };\n\n return (\n <Provider>\n {renderModal()}\n {/* PAYMENT STATUS DIALOG */}\n <ProgressDialog\n customModalContentStyle={{ paddingVertical: 40 }}\n visible={paymentStatus === null ? true : false}\n label=\"Loading\"\n labelStyle={{\n fontWeight: '400',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n marginTop: 16,\n color: '#3D445C',\n }}\n />\n {/* Payment method screen */}\n {paymentStatus === null ? null : (\n <View style={CommonStyles.mainContainer}>\n <View\n style={{\n backgroundColor: 'white',\n marginTop: 30,\n }}\n >\n <Text\n style={[\n styles.amountStyle,\n styles.textStyle1,\n {\n paddingTop: 0,\n paddingBottom: 0,\n color: '#3D445C',\n margin: 0,\n fontSize: 16,\n },\n ]}\n >\n Collect at Delivery\n </Text>\n <Text style={[styles.amountStyle, { paddingTop: 0, fontSize: 24 }]}>\n {paymentConfigContext?.sdkConfig?.etConfig?.currencyCode +\n ' ' +\n props.expectedAmount}\n </Text>\n </View>\n <Text style={[styles.textStyle1, { paddingBottom: 12 }]}>\n {'Select a payment option'.toUpperCase()}\n </Text>\n <View style={{ flex: 1 }}>\n <FlatList\n data={props.allowedModes}\n renderItem={renderItem}\n keyExtractor={(item) => item}\n />\n </View>\n <View\n style={{\n justifyContent: 'flex-end',\n // marginBottom: 10,\n padding: 16,\n // paddingTop: 10,\n borderTopWidth: 1,\n borderTopColor: '#E0E3EB',\n elevation: 0.5,\n }}\n >\n <View\n style={{\n flexDirection: 'row',\n // marginStart: 10,\n // marginEnd: 10,\n }}\n >\n <Button\n style={[\n CommonStyles.cancelButton,\n {\n marginEnd: 5,\n flex: 1,\n },\n ]}\n labelStyle={{\n ...CommonStyles.cancelButtonLabel,\n color: '#5B80F7',\n textTransform: 'capitalize',\n }}\n mode={'outlined'}\n onPress={async () => {\n await getPaymentStatus(false);\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={[\n CommonStyles.nextButton,\n {\n flex: 1,\n marginStart: 5,\n },\n ]}\n labelStyle={{\n ...CommonStyles.nextButtonLabel,\n textTransform: 'capitalize',\n }}\n mode={'contained'}\n onPress={async () => {\n // Check payment status every time when moving away from init screen\n await getPaymentStatus(true);\n }}\n >\n Proceed\n </Button>\n </View>\n </View>\n </View>\n )}\n </Provider>\n );\n};\nexport default InitPayment;\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAMA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAIA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AAIA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA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