@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 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","useLayoutEffect","useContext","FlatList","Platform","Text","TouchableOpacity","View","isEmptyOrBlank","PAYMENT_SHARED_PREF_KEY","getPaymentDataMO","getPaymentType","removeSharedPrefPaymentData","getBaseETResponse","EntityCode","ExecutionTaskID","getEventCodeByET","PaymentStyles","CommonStyles","Fonts","showToast","Button","Provider","RadioButton","Icon","GO_BACK_EVENT_CODE","PAYMENT_NOTIFICATION","hasGoBackConnector","GoBackModal","useFocusEffect","BackHandler","ProgressDialog","EventListener","PAYMENT_SCREEN","STATUS","Storage","PaymentContext","ENDPOINTS","RouteParams","Logger","LOG_TYPE","styles","storage","getInstance","InitPayment","props","_props$route$params$R","_paymentConfigContext8","paymentConfigContext","paymentStatus","setPaymentStatus","paymentMode","setPaymentMode","allowedModes","disableNext","setDisableNext","showBackModal","setShowBackModal","paymentRefId","route","params","ROOT_META_DATA","paymentConfig","handleOnProceedClick","_props$applicableReas","_paymentConfigContext","next","refId","COLLECT_PAYMENT_ET","applicableReasons","success","mergedObjectiveId","screen","PROCESS","CONTACTS","COMPLETE","sourceScreen","INIT","collectedAmount","value","expectedAmount","currencyCode","sdkConfig","etConfig","handleOnCancelClick","_props$applicableReas2","_paymentConfigContext2","onSubmitET","failure","getPaymentStatus","isProceed","_ps$data$transactions","_ps$data$meta","_ps$data$meta2","_ps$data$transactions2","sharedPrefPaymentData","paymentResp","networkInstance","requestGet","PAYMENT_STATUS","requestId","appAbbr","latest","_ps","data","console","log","JSON","stringify","transactions","length","txnType","meta","totalCount","status","SUCCESS","_sharedPrefPaymentDat","_sharedPrefPaymentDat2","_sharedPrefPaymentDat3","_paymentConfigContext3","_props$applicableReas3","amount","money","currency","FAILED","err","_err$response","_err$response2","logEvent","response","SDK_ERROR","error","message","undefined","on","_sharedPrefPaymentDat4","_sharedPrefPaymentDat5","_sharedPrefPaymentDat6","_paymentConfigContext4","_props$applicableReas4","remove","useCallback","onBackPress","_props$taskMeta","sharedPref","getSharedItem","paymentInProgress","taskMeta","enableGoBack","navigation","goBack","addEventListener","removeEventListener","setOptions","headerShown","title","headerLeft","createElement","onPress","_props$taskMeta2","name","color","size","style","paddingRight","paddingTop","renderModal","showModal","setShowModal","onSuccess","_paymentConfigContext5","onFailure","renderItem","item","_paymentConfigContext6","_paymentConfigContext7","_props$plModes","activeOpacity","reasonItemStyle","marginBottom","paddingVertical","display","flexDirection","reasonTextStyle","fontWeight","fontSize","lineHeight","fontFamily","IBMPlexSans_500Medium","plModes","join","customModalContentStyle","visible","label","labelStyle","OS","IBMPlexSans_400Regular","marginTop","mainContainer","backgroundColor","amountStyle","textStyle1","paddingBottom","margin","toUpperCase","flex","keyExtractor","justifyContent","padding","borderTopWidth","borderTopColor","elevation","cancelButton","marginEnd","cancelButtonLabel","textTransform","mode","disabled","nextButton","marginStart","nextButtonLabel"],"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":"AAAA;AACA;AACA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,EAAEC,eAAe,EAAEC,UAAU,QAAQ,OAAO;AAC/E,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC/E,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SACEC,uBAAuB,EACvBC,gBAAgB,EAChBC,cAAc,EACdC,2BAA2B,QACtB,iBAAiB;AACxB,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SACEC,UAAU,EACVC,eAAe,QACV,uCAAuC;AAC9C,SAASC,gBAAgB,QAAQ,sDAAsD;AACvF,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SACEC,YAAY,EACZC,KAAK,QACA,gDAAgD;AACvD,SAASC,SAAS,QAAQ,0BAA0B;AACpD,SAASC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,oBAAoB;AAClE,OAAOC,IAAI,MAAM,yCAAyC;AAC1D,SACEC,kBAAkB,EAClBC,oBAAoB,QACf,iCAAiC;AACxC,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,OAAOC,WAAW,MAAM,4CAA4C;AACpE,SAASC,cAAc,Q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AW;IACjB1D,OAAO,EAAE,MAAAA,CAAA,KAAY;MACnB,MAAMrE,gBAAgB,CAAC,KAAK,CAAC;IAC/B;EAAE,GACH,QAEO,CAAC,eACT3F,KAAA,CAAA+J,aAAA,CAACxI,MAAM;IACLoM,QAAQ,EAAEnK,WAAY;IACtB6G,KAAK,EAAE,CACLjJ,YAAY,CAACwM,UAAU,EACvB;MACEb,IAAI,EAAE,CAAC;MACPc,WAAW,EAAE;IACf,CAAC,CACD;IACFzB,UAAU,EAAE;MACV,GAAGhL,YAAY,CAAC0M,eAAe;MAC/BL,aAAa,EAAE;IACjB,CAAE;IACFC,IAAI,EAAE,WAAY;IAClB1D,OAAO,EAAE,MAAAA,CAAA,KAAY;MACnB;MACA,MAAMrE,gBAAgB,CAAC,IAAI,CAAC;IAC9B;EAAE,GACH,SAEO,CACJ,CACF,CACF,CAEA,CAAC;AAEf,CAAC;AACD,eAAe7C,WAAW","ignoreList":[]}
|
package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js
ADDED
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
import React, { useEffect, useState, useLayoutEffect, useContext } from 'react';
|
|
2
|
+
import { BackHandler, FlatList, Platform, StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import {
|
|
4
|
+
// PAYMENT_SHARED_PREF_KEY,
|
|
5
|
+
getPaymentDataMO, getPaymentType, removeSharedPrefPaymentData } from '../PaymentUtils';
|
|
6
|
+
import { getBaseETResponse, maskContact } from '../../../../utils/ExecTaskUtils';
|
|
7
|
+
import { EntityCode, ExecutionTaskID } from '../../../../models/execTasks/ETConfig';
|
|
8
|
+
import { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';
|
|
9
|
+
import { CommonStyles, Fonts } from '../../../../styles/executionTasks/CommonStyles';
|
|
10
|
+
import { Button, Provider, RadioButton, TextInput } from 'react-native-paper';
|
|
11
|
+
import Icon from 'react-native-vector-icons/MaterialIcons';
|
|
12
|
+
import { EMAIL_REGEX, PAYMENT_NOTIFICATION } from '../../../../constants/constants';
|
|
13
|
+
import EventListener from '../../../../events';
|
|
14
|
+
import { PAYMENT_SCREEN, STATUS } from '../CollectPaymentSchema';
|
|
15
|
+
import { useFocusEffect } from '@react-navigation/native';
|
|
16
|
+
import { RouteParams } from '../../../../ui/uiConfig/RouteParams';
|
|
17
|
+
import { DispatchExecutor as dispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
18
|
+
import callbackHandler from '../../../../manager/sdk/callbacksHandler';
|
|
19
|
+
import ModalWidget from '../../../../components/widgets/ModalWidget';
|
|
20
|
+
import Storage from '../../../../utils/storage';
|
|
21
|
+
import { PaymentContext } from '../../../../utils/context/paymentContext';
|
|
22
|
+
import { ENDPOINTS } from '../../../../constants/apiConstants';
|
|
23
|
+
import { PROGRESS_GROUP } from '../../../../utils/Constants';
|
|
24
|
+
import Logger, { LOG_TYPE } from '../../../../utils/Logger';
|
|
25
|
+
let storage = Storage.getInstance();
|
|
26
|
+
const PaymentContactDetails = props => {
|
|
27
|
+
var _props$route$params$R, _props$onsiteLinkShar;
|
|
28
|
+
const paymentConfigContext = useContext(PaymentContext);
|
|
29
|
+
const [selectedContact, setSelectedContact] = useState('');
|
|
30
|
+
const [displayContactModal, setDisplayContactModal] = useState(false);
|
|
31
|
+
const [manualContactDetails, setManualContactDetails] = useState();
|
|
32
|
+
const [displayError, setErrorDisplay] = useState(false);
|
|
33
|
+
const [manualContact, setManualContact] = useState('');
|
|
34
|
+
const [contactList, setContactList] = useState([]);
|
|
35
|
+
const paymentRefId = (_props$route$params$R = props.route.params[RouteParams.ROOT_META_DATA].paymentConfig) === null || _props$route$params$R === void 0 ? void 0 : _props$route$params$R.paymentRefId;
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
(async () => {
|
|
38
|
+
if (props.route.params[RouteParams.ROOT_META_DATA]) {
|
|
39
|
+
var _phoneNumbers$value;
|
|
40
|
+
//Call objectiveDetails fn and fetch sds ids
|
|
41
|
+
let progressGroup = null;
|
|
42
|
+
try {
|
|
43
|
+
progressGroup = await Storage.getInstance().getSharedItem(PROGRESS_GROUP, false);
|
|
44
|
+
} catch (error) {
|
|
45
|
+
var _error$response;
|
|
46
|
+
Logger.getInstance().logEvent('~ getPaymentStatus triggered ', JSON.stringify((error === null || error === void 0 || (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.data) || error), LOG_TYPE.SDK_ERROR);
|
|
47
|
+
progressGroup = null;
|
|
48
|
+
}
|
|
49
|
+
const {
|
|
50
|
+
contact
|
|
51
|
+
} = await dispatchExecutor.getObjectiveTaskDetails(props.mergedObjectiveId[0], progressGroup, props.route.params[RouteParams.ROOT_META_DATA].statusFilter);
|
|
52
|
+
|
|
53
|
+
// run callback to get corresponding phone numbers
|
|
54
|
+
const phoneNumbers = await callbackHandler.getPhoneNumbers(contact);
|
|
55
|
+
if (phoneNumbers && (_phoneNumbers$value = phoneNumbers.value) !== null && _phoneNumbers$value !== void 0 && _phoneNumbers$value.length) {
|
|
56
|
+
setContactList(phoneNumbers.value);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
})();
|
|
60
|
+
EventListener.on(PAYMENT_NOTIFICATION, async data => {
|
|
61
|
+
console.log("PaymentCollectDetail:", JSON.stringify(data));
|
|
62
|
+
let sharedPrefPaymentData = null;
|
|
63
|
+
if (data && (data.status === STATUS.SUCCESS || data.status === STATUS.FAILED)) {
|
|
64
|
+
sharedPrefPaymentData = await getPaymentDataMO(props.mergedObjectiveId, data.refId, storage);
|
|
65
|
+
}
|
|
66
|
+
if (sharedPrefPaymentData && data && data.status === STATUS.SUCCESS) {
|
|
67
|
+
var _sharedPrefPaymentDat, _sharedPrefPaymentDat2, _sharedPrefPaymentDat3, _paymentConfigContext, _props$applicableReas;
|
|
68
|
+
props.next({
|
|
69
|
+
paymentMode: ((_sharedPrefPaymentDat = sharedPrefPaymentData) === null || _sharedPrefPaymentDat === void 0 ? void 0 : _sharedPrefPaymentDat.paymentMode) || props.paymentMode,
|
|
70
|
+
collectedAmount: {
|
|
71
|
+
value: ((_sharedPrefPaymentDat2 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat2 === void 0 ? void 0 : _sharedPrefPaymentDat2.amount.value) || props.expectedAmount,
|
|
72
|
+
currencyCode: ((_sharedPrefPaymentDat3 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat3 === void 0 ? void 0 : _sharedPrefPaymentDat3.amount.currencyCode) || (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext = paymentConfigContext.sdkConfig) === null || _paymentConfigContext === void 0 || (_paymentConfigContext = _paymentConfigContext.etConfig) === null || _paymentConfigContext === void 0 ? void 0 : _paymentConfigContext.currencyCode) || ''
|
|
73
|
+
},
|
|
74
|
+
refId: data.refId,
|
|
75
|
+
screen: PAYMENT_SCREEN.COMPLETE,
|
|
76
|
+
sourceScreen: PAYMENT_SCREEN.CONTACTS,
|
|
77
|
+
...(await getBaseETResponse(EntityCode.COLLECT_PAYMENT_ET, true, getEventCodeByET(ExecutionTaskID.COLLECT_PAYMENT_ET, true, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.success), '', props.mergedObjectiveId, ExecutionTaskID.COLLECT_PAYMENT_ET))
|
|
78
|
+
});
|
|
79
|
+
} else if (sharedPrefPaymentData && data && data.status === STATUS.FAILED) {
|
|
80
|
+
/* const _sharedPrefPaymentData = JSON.parse(
|
|
81
|
+
JSON.stringify(sharedPrefPaymentData)
|
|
82
|
+
); */
|
|
83
|
+
/* await storage.removeSharedItems(
|
|
84
|
+
props.mergedObjectiveId.map((_id) => PAYMENT_SHARED_PREF_KEY + _id)
|
|
85
|
+
); */
|
|
86
|
+
await removeSharedPrefPaymentData(data.refId, storage);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
return () => EventListener.remove(PAYMENT_NOTIFICATION);
|
|
90
|
+
}, []);
|
|
91
|
+
const handleOnCancelClick = async () => {
|
|
92
|
+
var _props$applicableReas2, _paymentConfigContext2;
|
|
93
|
+
props.onSubmitET({
|
|
94
|
+
paymentMode: props.paymentMode,
|
|
95
|
+
refId: paymentRefId,
|
|
96
|
+
...(await getBaseETResponse(EntityCode.COLLECT_PAYMENT_ET, false, getEventCodeByET(ExecutionTaskID.COLLECT_PAYMENT_ET, false, (_props$applicableReas2 = props.applicableReasons) === null || _props$applicableReas2 === void 0 ? void 0 : _props$applicableReas2.failure), '', props.mergedObjectiveId, ExecutionTaskID.COLLECT_PAYMENT_ET)),
|
|
97
|
+
collectedAmount: {
|
|
98
|
+
value: props.expectedAmount,
|
|
99
|
+
currencyCode: (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext2 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext2 === void 0 || (_paymentConfigContext2 = _paymentConfigContext2.etConfig) === null || _paymentConfigContext2 === void 0 ? void 0 : _paymentConfigContext2.currencyCode) || ''
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
const getPaymentStatus = async isProceed => {
|
|
104
|
+
try {
|
|
105
|
+
var _ps$data$transactions, _ps$data$meta, _ps$data$meta2, _ps$data$transactions2;
|
|
106
|
+
let sharedPrefPaymentData = null;
|
|
107
|
+
const paymentResp = await (paymentConfigContext === null || paymentConfigContext === void 0 ? void 0 : paymentConfigContext.networkInstance.requestGet(ENDPOINTS.PAYMENT_STATUS + paymentRefId, {
|
|
108
|
+
requestId: 'payment:' + paymentRefId
|
|
109
|
+
}, {
|
|
110
|
+
appAbbr: paymentConfigContext.sdkConfig.etConfig.appAbbr,
|
|
111
|
+
latest: true
|
|
112
|
+
}));
|
|
113
|
+
// const paymentResp = {
|
|
114
|
+
// data: {
|
|
115
|
+
// data: {
|
|
116
|
+
// meta: { totalCount: 1 },
|
|
117
|
+
// transactions: [
|
|
118
|
+
// {
|
|
119
|
+
// refId: paymentRefId,
|
|
120
|
+
// status: STATUS.FAILED,
|
|
121
|
+
// subStatus: SUB_STATUS.completed,
|
|
122
|
+
// money: {
|
|
123
|
+
// amount: 1000,
|
|
124
|
+
// currency: 'INR',
|
|
125
|
+
// },
|
|
126
|
+
// txnId: '123',
|
|
127
|
+
// txnType: TRANSACTION_TYPE.LINK,
|
|
128
|
+
// appAbbr: 'testApp31',
|
|
129
|
+
// },
|
|
130
|
+
// ],
|
|
131
|
+
// },
|
|
132
|
+
// },
|
|
133
|
+
// };
|
|
134
|
+
const _ps = paymentResp === null || paymentResp === void 0 ? void 0 : paymentResp.data;
|
|
135
|
+
console.log('Contact getPaymentStatus _ps: ', JSON.stringify(_ps));
|
|
136
|
+
sharedPrefPaymentData = await getPaymentDataMO(props.mergedObjectiveId, paymentRefId, storage);
|
|
137
|
+
if (_ps !== null && _ps !== void 0 && (_ps$data$transactions = _ps.data.transactions) !== null && _ps$data$transactions !== void 0 && _ps$data$transactions.length && (sharedPrefPaymentData || 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) === STATUS.SUCCESS) {
|
|
138
|
+
var _sharedPrefPaymentDat4, _sharedPrefPaymentDat5, _sharedPrefPaymentDat6, _paymentConfigContext3, _props$applicableReas3;
|
|
139
|
+
props.next({
|
|
140
|
+
paymentMode: ((_sharedPrefPaymentDat4 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat4 === void 0 ? void 0 : _sharedPrefPaymentDat4.paymentMode) || getPaymentType(_ps === null || _ps === void 0 ? void 0 : _ps.data.transactions[0].txnType) || props.paymentMode,
|
|
141
|
+
collectedAmount: {
|
|
142
|
+
value: ((_sharedPrefPaymentDat5 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat5 === void 0 ? void 0 : _sharedPrefPaymentDat5.amount.value) || (_ps === null || _ps === void 0 ? void 0 : _ps.data.transactions[0].money.amount) || props.expectedAmount,
|
|
143
|
+
currencyCode: ((_sharedPrefPaymentDat6 = sharedPrefPaymentData) === null || _sharedPrefPaymentDat6 === void 0 ? void 0 : _sharedPrefPaymentDat6.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) || ''
|
|
144
|
+
},
|
|
145
|
+
refId: _ps.data.transactions[0].refId,
|
|
146
|
+
screen: PAYMENT_SCREEN.COMPLETE,
|
|
147
|
+
sourceScreen: PAYMENT_SCREEN.CONTACTS,
|
|
148
|
+
...(await getBaseETResponse(EntityCode.COLLECT_PAYMENT_ET, true, getEventCodeByET(ExecutionTaskID.COLLECT_PAYMENT_ET, true, (_props$applicableReas3 = props.applicableReasons) === null || _props$applicableReas3 === void 0 ? void 0 : _props$applicableReas3.success), '', props.mergedObjectiveId, ExecutionTaskID.COLLECT_PAYMENT_ET))
|
|
149
|
+
});
|
|
150
|
+
return;
|
|
151
|
+
} 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) === STATUS.FAILED) {
|
|
152
|
+
await removeSharedPrefPaymentData(paymentRefId, storage);
|
|
153
|
+
}
|
|
154
|
+
if (isProceed) await sendPaymentLink(selectedContact);else if (isProceed === false) await handleOnCancelClick();
|
|
155
|
+
} catch (err) {
|
|
156
|
+
var _err$response, _err$response2;
|
|
157
|
+
Logger.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), LOG_TYPE.SDK_ERROR);
|
|
158
|
+
console.error('STATUS: ', (err === null || err === void 0 || (_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : _err$response2.data) || err.message);
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
// Handle back-button click
|
|
163
|
+
useFocusEffect(React.useCallback(() => {
|
|
164
|
+
const onBackPress = () => {
|
|
165
|
+
(async (_props$applicableReas4, _paymentConfigContext4) => props.next({
|
|
166
|
+
paymentMode: props.paymentMode,
|
|
167
|
+
refId: paymentRefId,
|
|
168
|
+
...(await getBaseETResponse(EntityCode.COLLECT_PAYMENT_ET, true, getEventCodeByET(ExecutionTaskID.COLLECT_PAYMENT_ET, true, (_props$applicableReas4 = props.applicableReasons) === null || _props$applicableReas4 === void 0 ? void 0 : _props$applicableReas4.success), '', props.mergedObjectiveId, ExecutionTaskID.COLLECT_PAYMENT_ET)),
|
|
169
|
+
screen: PAYMENT_SCREEN.INIT,
|
|
170
|
+
sourceScreen: PAYMENT_SCREEN.CONTACTS,
|
|
171
|
+
collectedAmount: {
|
|
172
|
+
value: props.expectedAmount,
|
|
173
|
+
currencyCode: (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext4 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext4 === void 0 || (_paymentConfigContext4 = _paymentConfigContext4.etConfig) === null || _paymentConfigContext4 === void 0 ? void 0 : _paymentConfigContext4.currencyCode) || ''
|
|
174
|
+
}
|
|
175
|
+
}))();
|
|
176
|
+
return true;
|
|
177
|
+
};
|
|
178
|
+
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
179
|
+
return () => BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
180
|
+
}, []));
|
|
181
|
+
useLayoutEffect(() => {
|
|
182
|
+
props.navigation.setOptions({
|
|
183
|
+
headerShown: true,
|
|
184
|
+
title: 'Payment Link',
|
|
185
|
+
headerLeft: () => {
|
|
186
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
187
|
+
onPress: async () => {
|
|
188
|
+
var _props$applicableReas5, _paymentConfigContext5;
|
|
189
|
+
props.next({
|
|
190
|
+
paymentMode: props.paymentMode,
|
|
191
|
+
refId: paymentRefId,
|
|
192
|
+
...(await getBaseETResponse(EntityCode.COLLECT_PAYMENT_ET, true, getEventCodeByET(ExecutionTaskID.COLLECT_PAYMENT_ET, true, (_props$applicableReas5 = props.applicableReasons) === null || _props$applicableReas5 === void 0 ? void 0 : _props$applicableReas5.success), '', props.mergedObjectiveId, ExecutionTaskID.COLLECT_PAYMENT_ET)),
|
|
193
|
+
screen: PAYMENT_SCREEN.INIT,
|
|
194
|
+
sourceScreen: PAYMENT_SCREEN.CONTACTS,
|
|
195
|
+
collectedAmount: {
|
|
196
|
+
value: props.expectedAmount,
|
|
197
|
+
currencyCode: (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext5 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext5 === void 0 || (_paymentConfigContext5 = _paymentConfigContext5.etConfig) === null || _paymentConfigContext5 === void 0 ? void 0 : _paymentConfigContext5.currencyCode) || ''
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
},
|
|
201
|
+
name: "arrow-back",
|
|
202
|
+
color: 'black',
|
|
203
|
+
size: 25,
|
|
204
|
+
style: {
|
|
205
|
+
paddingRight: 15,
|
|
206
|
+
paddingTop: 5
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}, [props.navigation, props.title]);
|
|
212
|
+
const renderItem = ({
|
|
213
|
+
item
|
|
214
|
+
}) => {
|
|
215
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
216
|
+
style: styles.reasonItemStyle
|
|
217
|
+
}, /*#__PURE__*/React.createElement(RadioButton, {
|
|
218
|
+
color: '#5B80F7',
|
|
219
|
+
value: item,
|
|
220
|
+
status: selectedContact === item ? 'checked' : 'unchecked',
|
|
221
|
+
onPress: () => {
|
|
222
|
+
setSelectedContact(item);
|
|
223
|
+
}
|
|
224
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
225
|
+
style: [styles.reasonTextStyle, {
|
|
226
|
+
fontWeight: 'bold'
|
|
227
|
+
}],
|
|
228
|
+
onPress: () => {
|
|
229
|
+
setSelectedContact(item);
|
|
230
|
+
}
|
|
231
|
+
}, maskContact(item)));
|
|
232
|
+
};
|
|
233
|
+
const inputValidation = (data, _regex) => {
|
|
234
|
+
if (_regex) {
|
|
235
|
+
const regex = new RegExp(_regex);
|
|
236
|
+
return regex.test(data);
|
|
237
|
+
}
|
|
238
|
+
return false;
|
|
239
|
+
};
|
|
240
|
+
const sendPaymentLink = async contactDetails => {
|
|
241
|
+
var _props$applicableReas6, _paymentConfigContext6;
|
|
242
|
+
props.next({
|
|
243
|
+
paymentMode: props.paymentMode,
|
|
244
|
+
refId: paymentRefId,
|
|
245
|
+
...(await getBaseETResponse(EntityCode.COLLECT_PAYMENT_ET, true, getEventCodeByET(ExecutionTaskID.COLLECT_PAYMENT_ET, true, (_props$applicableReas6 = props.applicableReasons) === null || _props$applicableReas6 === void 0 ? void 0 : _props$applicableReas6.success), '', props.mergedObjectiveId, ExecutionTaskID.COLLECT_PAYMENT_ET)),
|
|
246
|
+
screen: PAYMENT_SCREEN.PROCESS,
|
|
247
|
+
sourceScreen: PAYMENT_SCREEN.CONTACTS,
|
|
248
|
+
collectedAmount: {
|
|
249
|
+
value: props.expectedAmount,
|
|
250
|
+
currencyCode: (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext6 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext6 === void 0 || (_paymentConfigContext6 = _paymentConfigContext6.etConfig) === null || _paymentConfigContext6 === void 0 ? void 0 : _paymentConfigContext6.currencyCode) || ''
|
|
251
|
+
},
|
|
252
|
+
contactDetails
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
const onModalSubmit = () => {
|
|
256
|
+
var _paymentConfigContext7;
|
|
257
|
+
const regex = (manualContactDetails === null || manualContactDetails === void 0 ? void 0 : manualContactDetails.type) === 'PHONE' ? (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext7 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext7 === void 0 || (_paymentConfigContext7 = _paymentConfigContext7.etConfig) === null || _paymentConfigContext7 === void 0 ? void 0 : _paymentConfigContext7.mobilePhoneRegex) || '' : EMAIL_REGEX;
|
|
258
|
+
if (inputValidation(manualContact, regex)) {
|
|
259
|
+
setErrorDisplay(false);
|
|
260
|
+
(async _paymentConfigContext8 => {
|
|
261
|
+
const contact = (manualContactDetails === null || manualContactDetails === void 0 ? void 0 : manualContactDetails.type) === 'PHONE' ? (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext8 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext8 === void 0 || (_paymentConfigContext8 = _paymentConfigContext8.etConfig) === null || _paymentConfigContext8 === void 0 ? void 0 : _paymentConfigContext8.phoneCode) + manualContact : manualContact;
|
|
262
|
+
await sendPaymentLink(contact);
|
|
263
|
+
})();
|
|
264
|
+
} else {
|
|
265
|
+
setErrorDisplay(true);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
const renderManualContactsModal = () => {
|
|
269
|
+
return /*#__PURE__*/React.createElement(ModalWidget, {
|
|
270
|
+
title: {
|
|
271
|
+
label: (manualContactDetails === null || manualContactDetails === void 0 ? void 0 : manualContactDetails.title) || ''
|
|
272
|
+
},
|
|
273
|
+
contentContainerStyle: {
|
|
274
|
+
marginBottom: 120
|
|
275
|
+
},
|
|
276
|
+
showModal: displayContactModal,
|
|
277
|
+
renderChildren: () => {
|
|
278
|
+
var _paymentConfigContext9, _paymentConfigContext10, _paymentConfigContext11;
|
|
279
|
+
return (manualContactDetails === null || manualContactDetails === void 0 ? void 0 : manualContactDetails.type) === 'PHONE' ? /*#__PURE__*/React.createElement(View, {
|
|
280
|
+
style: {
|
|
281
|
+
marginVertical: 10
|
|
282
|
+
}
|
|
283
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
284
|
+
style: [styles.inputLabel, {
|
|
285
|
+
marginBottom: 8
|
|
286
|
+
}]
|
|
287
|
+
}, "Phone Number")), /*#__PURE__*/React.createElement(View, {
|
|
288
|
+
style: [{
|
|
289
|
+
justifyContent: 'flex-start',
|
|
290
|
+
display: 'flex',
|
|
291
|
+
flexDirection: 'row'
|
|
292
|
+
}]
|
|
293
|
+
}, paymentConfigContext !== null && paymentConfigContext !== void 0 && (_paymentConfigContext9 = paymentConfigContext.sdkConfig) !== null && _paymentConfigContext9 !== void 0 && (_paymentConfigContext9 = _paymentConfigContext9.etConfig) !== null && _paymentConfigContext9 !== void 0 && _paymentConfigContext9.phoneCode ? /*#__PURE__*/React.createElement(TextInput, {
|
|
294
|
+
style: [styles.input, {
|
|
295
|
+
borderTopEndRadius: 0,
|
|
296
|
+
borderBottomEndRadius: 0
|
|
297
|
+
}, displayError ? {
|
|
298
|
+
borderColor: 'red'
|
|
299
|
+
} : {}],
|
|
300
|
+
disabled: true,
|
|
301
|
+
value: '(' + (paymentConfigContext === null || paymentConfigContext === void 0 || (_paymentConfigContext10 = paymentConfigContext.sdkConfig) === null || _paymentConfigContext10 === void 0 || (_paymentConfigContext10 = _paymentConfigContext10.etConfig) === null || _paymentConfigContext10 === void 0 ? void 0 : _paymentConfigContext10.phoneCode) + ')'
|
|
302
|
+
}) : null, /*#__PURE__*/React.createElement(TextInput, {
|
|
303
|
+
style: [styles.input, {
|
|
304
|
+
flexGrow: 1,
|
|
305
|
+
flex: 1
|
|
306
|
+
}, paymentConfigContext !== null && paymentConfigContext !== void 0 && (_paymentConfigContext11 = paymentConfigContext.sdkConfig) !== null && _paymentConfigContext11 !== void 0 && (_paymentConfigContext11 = _paymentConfigContext11.etConfig) !== null && _paymentConfigContext11 !== void 0 && _paymentConfigContext11.phoneCode ? {
|
|
307
|
+
borderLeftWidth: 0,
|
|
308
|
+
borderTopStartRadius: 0,
|
|
309
|
+
borderBottomStartRadius: 0
|
|
310
|
+
} : {}, displayError ? {
|
|
311
|
+
borderColor: 'red'
|
|
312
|
+
} : {}],
|
|
313
|
+
autoFocus: true,
|
|
314
|
+
placeholder: "Add Phone Number",
|
|
315
|
+
onChangeText: setManualContact,
|
|
316
|
+
activeUnderlineColor: "transparent"
|
|
317
|
+
})), displayError ? /*#__PURE__*/React.createElement(Text, {
|
|
318
|
+
style: {
|
|
319
|
+
color: 'red'
|
|
320
|
+
}
|
|
321
|
+
}, "Enter valid phone number.") : null) : /*#__PURE__*/React.createElement(View, {
|
|
322
|
+
style: {
|
|
323
|
+
marginVertical: 10
|
|
324
|
+
}
|
|
325
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
326
|
+
style: [styles.inputLabel, {
|
|
327
|
+
marginBottom: 8
|
|
328
|
+
}]
|
|
329
|
+
}, "Email Address")), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
330
|
+
style: [styles.input, displayError ? {
|
|
331
|
+
borderColor: 'red'
|
|
332
|
+
} : {}],
|
|
333
|
+
autoFocus: true,
|
|
334
|
+
placeholder: "Add Email Address",
|
|
335
|
+
onChangeText: setManualContact,
|
|
336
|
+
activeUnderlineColor: 'transparent'
|
|
337
|
+
})), displayError ? /*#__PURE__*/React.createElement(Text, {
|
|
338
|
+
style: {
|
|
339
|
+
color: 'red'
|
|
340
|
+
}
|
|
341
|
+
}, "Enter valid email address.") : null);
|
|
342
|
+
},
|
|
343
|
+
primaryButton: {
|
|
344
|
+
label: 'Send Payment Link',
|
|
345
|
+
onPress: () => {
|
|
346
|
+
onModalSubmit();
|
|
347
|
+
},
|
|
348
|
+
labelStyles: {
|
|
349
|
+
...CommonStyles.nextButtonLabel
|
|
350
|
+
},
|
|
351
|
+
styles: {
|
|
352
|
+
...CommonStyles.nextButton,
|
|
353
|
+
padding: 8,
|
|
354
|
+
borderRadius: 5,
|
|
355
|
+
marginVertical: 10,
|
|
356
|
+
marginTop: 15
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
secondaryButton: {
|
|
360
|
+
label: 'Cancel',
|
|
361
|
+
onPress: () => {
|
|
362
|
+
setErrorDisplay(false);
|
|
363
|
+
setDisplayContactModal(false);
|
|
364
|
+
},
|
|
365
|
+
labelStyles: {
|
|
366
|
+
...CommonStyles.cancelButtonLabel
|
|
367
|
+
},
|
|
368
|
+
styles: {
|
|
369
|
+
...CommonStyles.cancelButton,
|
|
370
|
+
padding: 8,
|
|
371
|
+
borderRadius: 5
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
};
|
|
376
|
+
return /*#__PURE__*/React.createElement(Provider, null, renderManualContactsModal(), /*#__PURE__*/React.createElement(View, {
|
|
377
|
+
style: CommonStyles.mainContainer
|
|
378
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
379
|
+
style: [styles.title, {
|
|
380
|
+
paddingBottom: 0
|
|
381
|
+
}]
|
|
382
|
+
}, "Select or add contact details to send the payment link"), contactList.length ? /*#__PURE__*/React.createElement(View, {
|
|
383
|
+
style: {
|
|
384
|
+
marginBottom: 16,
|
|
385
|
+
maxHeight: 500
|
|
386
|
+
}
|
|
387
|
+
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
388
|
+
data: contactList,
|
|
389
|
+
renderItem: renderItem,
|
|
390
|
+
keyExtractor: item => item
|
|
391
|
+
})) : null, (_props$onsiteLinkShar = props.onsiteLinkSharing) !== null && _props$onsiteLinkShar !== void 0 && _props$onsiteLinkShar.length ? /*#__PURE__*/React.createElement(View, {
|
|
392
|
+
style: [{
|
|
393
|
+
backgroundColor: 'white',
|
|
394
|
+
padding: 16,
|
|
395
|
+
flexDirection: 'row',
|
|
396
|
+
justifyContent: 'space-evenly'
|
|
397
|
+
}, props.onsiteLinkSharing.includes('Email') && props.onsiteLinkSharing.includes('Phone Number') ? {} : {
|
|
398
|
+
justifyContent: 'flex-start',
|
|
399
|
+
paddingStart: 55
|
|
400
|
+
}]
|
|
401
|
+
}, props.onsiteLinkSharing.includes('Email') ? /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
402
|
+
style: [styles.link],
|
|
403
|
+
onPress: () => {
|
|
404
|
+
setDisplayContactModal(true);
|
|
405
|
+
setManualContactDetails({
|
|
406
|
+
title: 'Add Email Address',
|
|
407
|
+
type: 'EMAIL'
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}, "Add Email Address")) : null, props.onsiteLinkSharing.includes('Email') && props.onsiteLinkSharing.includes('Phone Number') ? /*#__PURE__*/React.createElement(View, {
|
|
411
|
+
style: {
|
|
412
|
+
borderLeftWidth: 1,
|
|
413
|
+
borderColor: '#cccccc'
|
|
414
|
+
}
|
|
415
|
+
}) : null, props.onsiteLinkSharing.includes('Phone Number') ? /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
416
|
+
style: [styles.link],
|
|
417
|
+
onPress: () => {
|
|
418
|
+
setDisplayContactModal(true);
|
|
419
|
+
setManualContactDetails({
|
|
420
|
+
title: 'Add Phone Number',
|
|
421
|
+
type: 'PHONE'
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
}, "Add Phone Number")) : null) : null, /*#__PURE__*/React.createElement(View, {
|
|
425
|
+
style: styles.btnContainer
|
|
426
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
427
|
+
style: styles.buttonParentContainer
|
|
428
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
429
|
+
style: [CommonStyles.cancelButton, {
|
|
430
|
+
marginEnd: 5,
|
|
431
|
+
flex: 1
|
|
432
|
+
}],
|
|
433
|
+
labelStyle: {
|
|
434
|
+
...CommonStyles.cancelButtonLabel,
|
|
435
|
+
color: '#5B80F7',
|
|
436
|
+
textTransform: 'capitalize'
|
|
437
|
+
},
|
|
438
|
+
mode: 'outlined',
|
|
439
|
+
onPress: async () => {
|
|
440
|
+
await getPaymentStatus(false);
|
|
441
|
+
}
|
|
442
|
+
}, "Cancel"), /*#__PURE__*/React.createElement(Button, {
|
|
443
|
+
style: [CommonStyles.nextButton, {
|
|
444
|
+
flex: 1,
|
|
445
|
+
marginStart: 5
|
|
446
|
+
}, !selectedContact ? {
|
|
447
|
+
backgroundColor: '#E0E3EB'
|
|
448
|
+
} : {}],
|
|
449
|
+
labelStyle: [CommonStyles.nextButtonLabel, {
|
|
450
|
+
textTransform: 'capitalize'
|
|
451
|
+
}, !selectedContact ? {
|
|
452
|
+
color: '#A3AAC2'
|
|
453
|
+
} : {}],
|
|
454
|
+
disabled: !selectedContact,
|
|
455
|
+
mode: 'contained',
|
|
456
|
+
onPress: async () => {
|
|
457
|
+
await getPaymentStatus(true);
|
|
458
|
+
}
|
|
459
|
+
}, "Send Payment Link")))));
|
|
460
|
+
};
|
|
461
|
+
export default PaymentContactDetails;
|
|
462
|
+
const styles = StyleSheet.create({
|
|
463
|
+
title: {
|
|
464
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
|
|
465
|
+
fontWeight: '400',
|
|
466
|
+
fontSize: 16,
|
|
467
|
+
lineHeight: 24,
|
|
468
|
+
color: '#3D445C',
|
|
469
|
+
margin: 20
|
|
470
|
+
},
|
|
471
|
+
reasonItemStyle: {
|
|
472
|
+
flexDirection: 'row',
|
|
473
|
+
paddingVertical: 5,
|
|
474
|
+
paddingStart: 20,
|
|
475
|
+
paddingEnd: 20,
|
|
476
|
+
backgroundColor: 'white',
|
|
477
|
+
marginBottom: 5
|
|
478
|
+
},
|
|
479
|
+
reasonTextStyle: {
|
|
480
|
+
flex: 1,
|
|
481
|
+
flexWrap: 'wrap',
|
|
482
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
|
|
483
|
+
fontStyle: 'normal',
|
|
484
|
+
fontSize: 14,
|
|
485
|
+
lineHeight: 21,
|
|
486
|
+
letterSpacing: 0.25,
|
|
487
|
+
textAlign: 'justify',
|
|
488
|
+
color: '#111111',
|
|
489
|
+
paddingTop: 5
|
|
490
|
+
},
|
|
491
|
+
link: {
|
|
492
|
+
color: '#5B80F7',
|
|
493
|
+
fontSize: 14,
|
|
494
|
+
fontWeight: '500',
|
|
495
|
+
lineHeight: 20
|
|
496
|
+
},
|
|
497
|
+
inputLabel: {
|
|
498
|
+
fontSize: 14,
|
|
499
|
+
lineHeight: 20,
|
|
500
|
+
fontWeight: '500',
|
|
501
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
502
|
+
color: '#3D445C'
|
|
503
|
+
},
|
|
504
|
+
input: {
|
|
505
|
+
// flex: 1,
|
|
506
|
+
fontSize: 14,
|
|
507
|
+
lineHeight: 24,
|
|
508
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
|
|
509
|
+
borderColor: '#E0E3EB',
|
|
510
|
+
borderWidth: 1,
|
|
511
|
+
height: 22,
|
|
512
|
+
borderRadius: 6,
|
|
513
|
+
paddingHorizontal: 13,
|
|
514
|
+
paddingVertical: 9,
|
|
515
|
+
backgroundColor: '#ffffff'
|
|
516
|
+
},
|
|
517
|
+
buttonParentContainer: {
|
|
518
|
+
flexDirection: 'row',
|
|
519
|
+
padding: 10,
|
|
520
|
+
paddingTop: 16,
|
|
521
|
+
backgroundColor: 'white',
|
|
522
|
+
borderTopWidth: 1,
|
|
523
|
+
borderTopColor: '#eeeeee'
|
|
524
|
+
},
|
|
525
|
+
btnContainer: {
|
|
526
|
+
justifyContent: 'flex-end',
|
|
527
|
+
marginBottom: 10,
|
|
528
|
+
flexGrow: 1
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
//# sourceMappingURL=PaymentContactDetails.js.map
|