@os1-platform/dispatch-mobile 2.1.22 → 2.1.24
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 -4
- 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 -16
- 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/constants.js +1 -1
- package/lib/commonjs/manager/syncmanager/constants.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 +7 -10
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +13 -47
- 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 +14 -10
- 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 -62
- 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/firebase/FirebaseLogging.js +0 -3
- package/lib/module/analytics/firebase/FirebaseLogging.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 -14
- 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/constants.js +1 -1
- package/lib/module/manager/syncmanager/constants.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +6 -9
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +11 -45
- 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 +12 -8
- 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 -61
- 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/CustomContactsModal.d.ts +0 -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/manager/syncmanager/constants.d.ts +1 -1
- 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 +5 -4
- package/src/analytics/firebase/FirebaseLogging.ts +2 -11
- package/src/analytics/sentry/SentryAnalyticsUtils.ts +0 -7
- 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/CustomContactsModal.tsx +0 -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/manager/syncmanager/constants.ts +1 -1
- package/src/manager/syncmanager/document/DocumentManager.ts +6 -8
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +8 -43
- 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 +16 -1
- 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/Logger.ts +1 -58
- 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/lib/commonjs/icons/circleMark.svg +0 -3
- package/lib/module/icons/circleMark.svg +0 -3
- package/src/icons/circleMark.svg +0 -3
|
@@ -59,6 +59,17 @@ export interface startEvent {
|
|
|
59
59
|
[key: string]: any;
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
+
export interface clickEvent {
|
|
63
|
+
timestamp: number;
|
|
64
|
+
taskId: string;
|
|
65
|
+
customData?: any;
|
|
66
|
+
etData: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
69
|
+
additionalData: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
62
73
|
export interface stateParams {
|
|
63
74
|
next_states: IDispatch.IExecutionTaskQueryResponse;
|
|
64
75
|
rootMetaData: {
|
|
@@ -17,7 +17,8 @@ export declare enum ExecutionTaskID {
|
|
|
17
17
|
VERIFY_INPUT = "etask:6fc10a60-a144-5798-97f3-1f12e77f56e2",
|
|
18
18
|
DELIVER_CASH = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe",
|
|
19
19
|
HTTP_REQUEST_ET = "etask:e148b862-8368-5586-b29d-1eda95ffc8c4",
|
|
20
|
-
VALIDATE_OTP_ET = "etask:8d5b96f3-7342-5e25-a57f-30004f53de17"
|
|
20
|
+
VALIDATE_OTP_ET = "etask:8d5b96f3-7342-5e25-a57f-30004f53de17",
|
|
21
|
+
COLLECT_PAYMENT_ET = "etask:c014eb65-8944-5320-8e51-dccad861a086"
|
|
21
22
|
}
|
|
22
23
|
export declare enum ExecutionTaskName {
|
|
23
24
|
DELIVER = "Deliver",
|
|
@@ -38,7 +39,8 @@ export declare enum ExecutionTaskName {
|
|
|
38
39
|
VERIFY_INPUT = "Verifying Input",
|
|
39
40
|
DELIVER_CASH = "Drop Cash",
|
|
40
41
|
HTTP_REQUEST_ET = "Network Request",
|
|
41
|
-
VALIDATE_OTP_ET = "Validate OTP"
|
|
42
|
+
VALIDATE_OTP_ET = "Validate OTP",
|
|
43
|
+
COLLECT_PAYMENT_ET = "Collect Payment"
|
|
42
44
|
}
|
|
43
45
|
export declare enum CustomScreens {
|
|
44
46
|
REMARK_SCREEN = "REMARKS_SCREEN"
|
|
@@ -62,7 +64,8 @@ export declare enum EntityCode {
|
|
|
62
64
|
VERIFY_INPUT = "0020",
|
|
63
65
|
DELIVER_CASH = "0022",
|
|
64
66
|
HTTP_REQUEST_ET = "0023",
|
|
65
|
-
VALIDATE_OTP_ET = "0052"
|
|
67
|
+
VALIDATE_OTP_ET = "0052",
|
|
68
|
+
COLLECT_PAYMENT_ET = "0055"
|
|
66
69
|
}
|
|
67
70
|
export declare enum BaseEventCodes {
|
|
68
71
|
ENTITY_SUCCESS = "E-010",
|
|
@@ -4,6 +4,8 @@ export interface DispatchSDKConfig {
|
|
|
4
4
|
userID: string;
|
|
5
5
|
userName: string;
|
|
6
6
|
tenantBaseURL: string;
|
|
7
|
+
domain: string;
|
|
8
|
+
env: ENV;
|
|
7
9
|
headers?: {
|
|
8
10
|
[key: string]: any;
|
|
9
11
|
};
|
|
@@ -20,6 +22,7 @@ export interface DispatchSDKConfig {
|
|
|
20
22
|
description: string;
|
|
21
23
|
interval: number;
|
|
22
24
|
};
|
|
25
|
+
paymentSuccessTimeout?: number;
|
|
23
26
|
eventMapping?: EventCodes[];
|
|
24
27
|
debugLevelLog?: Boolean;
|
|
25
28
|
callbacks?: {
|
|
@@ -30,9 +33,18 @@ export interface DispatchSDKConfig {
|
|
|
30
33
|
fetchDateTimeCallback?: () => Promise<string>;
|
|
31
34
|
tokenRefreshCallback?: () => Promise<string>;
|
|
32
35
|
};
|
|
36
|
+
etConfig: {
|
|
37
|
+
phoneCode: string;
|
|
38
|
+
mobilePhoneRegex: string;
|
|
39
|
+
currencySymbol: string;
|
|
40
|
+
appAbbr: string;
|
|
41
|
+
currencyCode: string;
|
|
42
|
+
goBackDisableTimer?: number;
|
|
43
|
+
};
|
|
33
44
|
}
|
|
34
45
|
export declare enum ENVIRONMENT {
|
|
35
46
|
DEV = "dev",
|
|
36
47
|
PRE_PROD = "preprod",
|
|
37
48
|
PROD = "prod"
|
|
38
49
|
}
|
|
50
|
+
export type ENV = 'DEV' | 'SANDBOX' | 'SHARED_P1' | 'DLV_INDIA_P2';
|
|
@@ -2,7 +2,9 @@ import HttpClient from './client';
|
|
|
2
2
|
import type { Headers } from '../models/auth';
|
|
3
3
|
export default class NetworkClient extends HttpClient {
|
|
4
4
|
constructor(baseURL: string);
|
|
5
|
-
requestGet(
|
|
5
|
+
requestGet(endpoint: string, headers: Headers, queryParams?: {
|
|
6
|
+
[key: string]: string | number | boolean;
|
|
7
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
8
|
requestPost(endpoint: string, requestBody: any, headers: Headers): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
9
|
requestPut(endpoint: string, requestBody: any, headers: Headers): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
10
|
}
|
|
@@ -129,6 +129,7 @@ export declare const CommonStyles: {
|
|
|
129
129
|
justifyContent: "center";
|
|
130
130
|
fontFamily: string;
|
|
131
131
|
fontStyle: "normal";
|
|
132
|
+
fontWeight: "400";
|
|
132
133
|
fontSize: number;
|
|
133
134
|
letterSpacing: number;
|
|
134
135
|
lineHeight: number;
|
|
@@ -136,6 +137,13 @@ export declare const CommonStyles: {
|
|
|
136
137
|
color: string;
|
|
137
138
|
marginBottom: number;
|
|
138
139
|
};
|
|
140
|
+
titleText: {
|
|
141
|
+
fontFamily: Fonts;
|
|
142
|
+
fontWeight: "500";
|
|
143
|
+
fontSize: number;
|
|
144
|
+
lineHeight: number;
|
|
145
|
+
color: string;
|
|
146
|
+
};
|
|
139
147
|
};
|
|
140
148
|
export declare const DeliverPickupStyles: {
|
|
141
149
|
itemTextStyle: {
|
|
@@ -161,11 +169,12 @@ export declare const DeliverPickupStyles: {
|
|
|
161
169
|
modalView: {
|
|
162
170
|
backgroundColor: string;
|
|
163
171
|
padding: number;
|
|
172
|
+
paddingVertical: number;
|
|
164
173
|
borderRadius: number;
|
|
165
174
|
};
|
|
166
175
|
titleText: {
|
|
167
176
|
justifyContent: "center";
|
|
168
|
-
fontFamily:
|
|
177
|
+
fontFamily: string;
|
|
169
178
|
fontStyle: "normal";
|
|
170
179
|
fontSize: number;
|
|
171
180
|
lineHeight: number;
|
|
@@ -14,4 +14,5 @@ import DropCashScreen from './DropCashScreen';
|
|
|
14
14
|
import ScanScreen from './ScanScreen';
|
|
15
15
|
import HttpRequestScreen from './HttpRequestScreen';
|
|
16
16
|
import ValidateOTPScreen from './ValidateOTPScreen';
|
|
17
|
-
|
|
17
|
+
import CollectPaymentScreen from './CollectPaymentScreen';
|
|
18
|
+
export { CancellationScreen, DeliverScreen, DoodleScreen, ImageCaptureScreen, FormsScreen, PickupScreen, StartWorkFlowScreen, CaptureInputScreen, GeofenceScreen, PaymentScreen, DisplayScreen, CompleteObjectiveScreen, DropCashScreen, ScanScreen, HttpRequestScreen, ValidateOTPScreen, CollectPaymentScreen, };
|
|
@@ -10,4 +10,6 @@ export declare function getEntityCodeByET(etId: string): string;
|
|
|
10
10
|
* @param eventData nextState: state | objRef: string | jobId: string
|
|
11
11
|
*/
|
|
12
12
|
export declare function onTaskStart(eventData: IDispatch.IExecutionTaskQueryResponse, customData: any, triggerEvent?: boolean): void;
|
|
13
|
+
export declare function onClickEvent(eventName: string, eventData: IDispatch.IExecutionTaskQueryResponse, customData: any, additionalData: any, triggerEvent?: boolean): void;
|
|
13
14
|
export declare function handleDynamicValues(jsonInput: any, dataBlob: any): any;
|
|
15
|
+
export declare const maskContact: (contact: string) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DispatchSDKConfig } from '../../models/sdk';
|
|
3
|
+
import NetworkClient from '../../network/NetworkClient';
|
|
4
|
+
export declare const PaymentContext: import("react").Context<{
|
|
5
|
+
sdkConfig: DispatchSDKConfig;
|
|
6
|
+
networkInstance: NetworkClient;
|
|
7
|
+
} | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os1-platform/dispatch-mobile",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.24",
|
|
4
4
|
"description": "Dispatch SDK React Native Package",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"scripts": {
|
|
34
34
|
"test": "jest",
|
|
35
35
|
"typescript": "tsc --noEmit",
|
|
36
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
36
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
|
|
37
37
|
"prepare": "bob build",
|
|
38
38
|
"release": "release-it",
|
|
39
39
|
"example": "yarn --cwd example",
|
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"root": true,
|
|
218
218
|
"extends": [
|
|
219
219
|
"@react-native-community",
|
|
220
|
-
"prettier"
|
|
220
|
+
"prettier",
|
|
221
|
+
"plugin:react-hooks/recommended"
|
|
221
222
|
],
|
|
222
223
|
"rules": {
|
|
223
224
|
"prettier/prettier": [
|
|
@@ -258,7 +259,7 @@
|
|
|
258
259
|
]
|
|
259
260
|
},
|
|
260
261
|
"dependencies": {
|
|
261
|
-
"@os1-platform/platform-coreos-execution-engine-sdk": "1.0.
|
|
262
|
+
"@os1-platform/platform-coreos-execution-engine-sdk": "1.0.15",
|
|
262
263
|
"@rjsf/core": "^2.0.0",
|
|
263
264
|
"apollo-link-timeout": "^4.0.0",
|
|
264
265
|
"decompress": "^4.2.1",
|
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
import analytics from '@react-native-firebase/analytics';
|
|
2
|
-
import {
|
|
3
|
-
createObjectWithoutNullValues,
|
|
4
|
-
flattenObject,
|
|
5
|
-
} from '../../utils/utils';
|
|
6
2
|
import { Event } from '@sentry/types';
|
|
7
3
|
import { SentryEventNameSdkConstants } from '../sentry/SentrySdkConstants';
|
|
8
|
-
import crashlytics from '@react-native-firebase/crashlytics';
|
|
9
|
-
import Logger, { LOG_TYPE } from '../../utils/Logger';
|
|
10
4
|
|
|
11
5
|
export async function fireFirebaseEvent(eventName: string, data: Event) {
|
|
12
6
|
let strEventVal = eventName;
|
|
13
|
-
console.log('fireFirebaseEvent:eventName', eventName);
|
|
14
|
-
console.log('fireFirebaseEvent:data', data.extra);
|
|
15
7
|
try {
|
|
16
8
|
if (
|
|
17
9
|
eventName === SentryEventNameSdkConstants.API_CALL ||
|
|
18
|
-
eventName === SentryEventNameSdkConstants.API_RESPONSE ||
|
|
10
|
+
eventName === SentryEventNameSdkConstants.API_RESPONSE ||
|
|
19
11
|
eventName === SentryEventNameSdkConstants.API_ERROR ||
|
|
20
12
|
eventName === SentryEventNameSdkConstants.APP_LOG
|
|
21
13
|
) {
|
|
22
|
-
if(data?.extra){
|
|
14
|
+
if (data?.extra) {
|
|
23
15
|
strEventVal = JSON.stringify(data?.extra);
|
|
24
16
|
}
|
|
25
17
|
}
|
|
26
|
-
console.log('fireFirebaseEvent:strEventVal', strEventVal);
|
|
27
18
|
analytics().logEvent(eventName, { eventNameData: strEventVal });
|
|
28
19
|
} catch (error: any) {
|
|
29
20
|
analytics().logEvent(eventName, { eventNameData: 'fireFirebaseEvent error' });
|
|
@@ -10,13 +10,6 @@ export async function fireEventWithScreenName({ severityLevel, eventName, cta =
|
|
|
10
10
|
|
|
11
11
|
//ignoring the button clicked event for now
|
|
12
12
|
if (eventName === SentryEventNameSdkConstants.BUTTON_CLICKED) return;
|
|
13
|
-
|
|
14
|
-
console.log("sentry::fireEventWithScreenName()", " called")
|
|
15
|
-
console.log("sentry::fireEventWithScreenName::severityLevel", severityLevel)
|
|
16
|
-
console.log("sentry::fireEventWithScreenName::eventName", eventName)
|
|
17
|
-
console.log("sentry::fireEventWithScreenName::cta", cta)
|
|
18
|
-
console.log("sentry::fireEventWithScreenName::screenName", screenName)
|
|
19
|
-
console.log("sentry::fireEventWithScreenName::extraParams", JSON.stringify(extraParams))
|
|
20
13
|
//
|
|
21
14
|
const singletonInstance = SentryAnalyticsSingleton.getInstance();
|
|
22
15
|
const tenantId = singletonInstance.getDispatchAndUserData()?.tenantId ?? "N/A"
|
|
@@ -87,6 +87,20 @@ const DispatchExecNavigator = ({ route }: { route: any }) => {
|
|
|
87
87
|
};
|
|
88
88
|
}}
|
|
89
89
|
/>
|
|
90
|
+
<Stack.Screen
|
|
91
|
+
name={ExecutionTaskID.COLLECT_PAYMENT_ET}
|
|
92
|
+
component={ETScreen.CollectPaymentScreen}
|
|
93
|
+
options={(rProps) => {
|
|
94
|
+
let taskTitle = getTaskTitle(rProps.route);
|
|
95
|
+
return {
|
|
96
|
+
title: taskTitle
|
|
97
|
+
? taskTitle
|
|
98
|
+
: ExecutionTaskName.COLLECT_PAYMENT_ET,
|
|
99
|
+
orientation: 'portrait',
|
|
100
|
+
headerBackVisible: false,
|
|
101
|
+
};
|
|
102
|
+
}}
|
|
103
|
+
/>
|
|
90
104
|
<Stack.Screen
|
|
91
105
|
name={ExecutionTaskID.FORMS}
|
|
92
106
|
component={ETScreen.FormsScreen}
|
|
@@ -66,11 +66,16 @@ import SLDropCash from './dropCash/SLDropCash';
|
|
|
66
66
|
import HttpRequestET from './httpRequest/HttpRequestET';
|
|
67
67
|
import ScanET from './scan/ScanET';
|
|
68
68
|
import ValidateOTPET from './validateOTP/ValidateOTPET';
|
|
69
|
+
import CollectPaymentET from './collectPayment/CollectPayment';
|
|
69
70
|
import type { ScannerInput, ScannerOutput } from './scan/ScanSchema';
|
|
70
71
|
import type {
|
|
71
72
|
ValidateOTPInput,
|
|
72
73
|
ValidateOTPOutput,
|
|
73
74
|
} from './validateOTP/ValidateOTPSchema';
|
|
75
|
+
import type {
|
|
76
|
+
CollectPaymentInput,
|
|
77
|
+
CollectPaymentOutput,
|
|
78
|
+
} from './collectPayment/CollectPaymentSchema';
|
|
74
79
|
|
|
75
80
|
export type {
|
|
76
81
|
CancellationInput,
|
|
@@ -110,6 +115,8 @@ export type {
|
|
|
110
115
|
ScannerOutput,
|
|
111
116
|
ValidateOTPInput,
|
|
112
117
|
ValidateOTPOutput,
|
|
118
|
+
CollectPaymentInput,
|
|
119
|
+
CollectPaymentOutput,
|
|
113
120
|
};
|
|
114
121
|
|
|
115
122
|
export {
|
|
@@ -134,4 +141,5 @@ export {
|
|
|
134
141
|
HttpRequestET,
|
|
135
142
|
ScanET,
|
|
136
143
|
ValidateOTPET,
|
|
144
|
+
CollectPaymentET,
|
|
137
145
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import {
|
|
5
|
+
CollectPaymentInput,
|
|
6
|
+
CollectPaymentOutput,
|
|
7
|
+
PAYMENT_SCREEN,
|
|
8
|
+
} from './CollectPaymentSchema';
|
|
9
|
+
import InitPayment from './components/InitPayment';
|
|
10
|
+
import { Provider } from 'react-native-paper';
|
|
11
|
+
import ProcessPayment from './components/ProcessPayment';
|
|
12
|
+
import CompletePayment from './components/CompletePayment';
|
|
13
|
+
import PaymentContactDetails from './components/PaymentContactDetails';
|
|
14
|
+
|
|
15
|
+
const CollectPaymentET = (props: CollectPaymentInput) => {
|
|
16
|
+
const [moveToNextData, setMoveToNextData] = useState<
|
|
17
|
+
CollectPaymentOutput & {
|
|
18
|
+
screen: PAYMENT_SCREEN;
|
|
19
|
+
sourceScreen: PAYMENT_SCREEN;
|
|
20
|
+
}
|
|
21
|
+
>();
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<Provider>
|
|
25
|
+
<View style={{ flex: 1 }}>
|
|
26
|
+
{!moveToNextData || moveToNextData.screen === PAYMENT_SCREEN.INIT ? (
|
|
27
|
+
<InitPayment
|
|
28
|
+
{...props}
|
|
29
|
+
{...moveToNextData}
|
|
30
|
+
onSubmitET={async (etOutput) => props.onSubmitET(etOutput)}
|
|
31
|
+
next={(etOutput) => setMoveToNextData(etOutput)}
|
|
32
|
+
/>
|
|
33
|
+
) : moveToNextData.screen === PAYMENT_SCREEN.CONTACTS ? (
|
|
34
|
+
<PaymentContactDetails
|
|
35
|
+
{...props}
|
|
36
|
+
{...moveToNextData}
|
|
37
|
+
onSubmitET={async (etOutput) => props.onSubmitET(etOutput)}
|
|
38
|
+
next={(etOutput) => setMoveToNextData(etOutput)}
|
|
39
|
+
/>
|
|
40
|
+
) : moveToNextData.screen === PAYMENT_SCREEN.PROCESS ? (
|
|
41
|
+
<ProcessPayment
|
|
42
|
+
{...props}
|
|
43
|
+
{...moveToNextData}
|
|
44
|
+
onSubmitET={async (etOutput) => props.onSubmitET(etOutput)}
|
|
45
|
+
next={(etOutput) => setMoveToNextData(etOutput)}
|
|
46
|
+
/>
|
|
47
|
+
) : moveToNextData.screen === PAYMENT_SCREEN.COMPLETE ? (
|
|
48
|
+
<CompletePayment
|
|
49
|
+
{...props}
|
|
50
|
+
{...moveToNextData}
|
|
51
|
+
onSubmitET={async (etOutput) => props.onSubmitET(etOutput)}
|
|
52
|
+
next={(etOutput) => setMoveToNextData(etOutput)}
|
|
53
|
+
/>
|
|
54
|
+
) : null}
|
|
55
|
+
</View>
|
|
56
|
+
</Provider>
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default CollectPaymentET;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseETRequest,
|
|
3
|
+
BaseETResponse,
|
|
4
|
+
} from '../../../models/execTasks/ETBaseModels';
|
|
5
|
+
import {
|
|
6
|
+
HTTPMethod,
|
|
7
|
+
HTTPRequestBody,
|
|
8
|
+
} from '../httpRequest/HttpRequestETSchema';
|
|
9
|
+
import { Headers, PathParams, QueryParams } from '../../../utils/ApiUtils';
|
|
10
|
+
|
|
11
|
+
export type AllowedModes = 'CASH' | 'QR_CODE' | 'PAYMENT_LINK' | 'ONLINE';
|
|
12
|
+
export type OnsiteLink = 'Phone Number' | 'Email';
|
|
13
|
+
|
|
14
|
+
export interface ETAmount {
|
|
15
|
+
value: number;
|
|
16
|
+
currencyCode: string;
|
|
17
|
+
// minorUnit?: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface API {
|
|
21
|
+
uri: string;
|
|
22
|
+
timeout?: number;
|
|
23
|
+
httpMethod: HTTPMethod;
|
|
24
|
+
headers?: Headers[];
|
|
25
|
+
requestBody?: HTTPRequestBody;
|
|
26
|
+
queryParams?: QueryParams[];
|
|
27
|
+
pathParams?: PathParams[];
|
|
28
|
+
responseJsonLogic: object;
|
|
29
|
+
errorJsonLogic: object;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type CollectPaymentInput = BaseETRequest & {
|
|
33
|
+
// amount: ETAmount;
|
|
34
|
+
allowedModes: AllowedModes[];
|
|
35
|
+
plModes?: string[];
|
|
36
|
+
expectedAmount: number;
|
|
37
|
+
onsiteLinkSharing?: OnsiteLink[];
|
|
38
|
+
onSubmitET: (output: CollectPaymentOutput) => void;
|
|
39
|
+
next: (
|
|
40
|
+
output: CollectPaymentOutput & {
|
|
41
|
+
screen: PAYMENT_SCREEN;
|
|
42
|
+
contactDetails?: string;
|
|
43
|
+
sourceScreen: PAYMENT_SCREEN;
|
|
44
|
+
}
|
|
45
|
+
) => void;
|
|
46
|
+
screen: PAYMENT_SCREEN;
|
|
47
|
+
sourceScreen: PAYMENT_SCREEN;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export interface ProcessPaymentInput {
|
|
51
|
+
paymentMode: AllowedModes;
|
|
52
|
+
contactDetails?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface CompletePaymentInput {
|
|
56
|
+
paymentMode: AllowedModes;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type CollectPaymentOutput = BaseETResponse & {
|
|
60
|
+
refId: string;
|
|
61
|
+
collectedAmount: ETAmount;
|
|
62
|
+
paymentMeta?: {};
|
|
63
|
+
paymentMode: AllowedModes;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export interface QrResponse {
|
|
67
|
+
data: {
|
|
68
|
+
qrCode?: string;
|
|
69
|
+
txnId?: string;
|
|
70
|
+
paymentCompleted?: boolean;
|
|
71
|
+
status?: STATUS;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface QR_REQUEST_BODY {
|
|
76
|
+
refId: string;
|
|
77
|
+
appAbbr: string;
|
|
78
|
+
money: {
|
|
79
|
+
amount: number;
|
|
80
|
+
currency: string;
|
|
81
|
+
};
|
|
82
|
+
userInfo?: {
|
|
83
|
+
phone?: {
|
|
84
|
+
countryCode: string;
|
|
85
|
+
mobileNumber: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
pgConfigId?: string;
|
|
89
|
+
description?: string;
|
|
90
|
+
meta?: { [key: string]: any };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface PaymentStatusResponse {
|
|
94
|
+
data: {
|
|
95
|
+
meta?: { totalCount?: number };
|
|
96
|
+
transactions?: {
|
|
97
|
+
refId: string;
|
|
98
|
+
status: STATUS;
|
|
99
|
+
subStatus: SUB_STATUS;
|
|
100
|
+
money: {
|
|
101
|
+
amount: number;
|
|
102
|
+
currency: string;
|
|
103
|
+
};
|
|
104
|
+
txnId: string;
|
|
105
|
+
txnType: TRANSACTION_TYPE;
|
|
106
|
+
appAbbr: string;
|
|
107
|
+
}[];
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface PaymentLinkResponse {
|
|
112
|
+
txnId: string;
|
|
113
|
+
refId: string;
|
|
114
|
+
status?: STATUS;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface notificationPaymentStatus {
|
|
118
|
+
refId: string;
|
|
119
|
+
status: STATUS;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export enum STATUS {
|
|
123
|
+
INITIATED = 'INITIATED',
|
|
124
|
+
FAILED = 'FAILED',
|
|
125
|
+
SUCCESS = 'SUCCESS',
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export enum SUB_STATUS {
|
|
129
|
+
completed = 'completed',
|
|
130
|
+
expired = 'expired',
|
|
131
|
+
created = 'created',
|
|
132
|
+
plFailed = 'plFailed',
|
|
133
|
+
qrFailed = 'qrFailed',
|
|
134
|
+
paymentFailed = 'paymentFailed',
|
|
135
|
+
closed = 'closed',
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export enum PAYMENT_SCREEN {
|
|
139
|
+
INIT = 'INIT',
|
|
140
|
+
CONTACTS = 'CONTACTS',
|
|
141
|
+
PROCESS = 'PROCESS',
|
|
142
|
+
COMPLETE = 'COMPLETE',
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface sharedPrefPaymentDataInterface {
|
|
146
|
+
paymentMode: AllowedModes;
|
|
147
|
+
amount: ETAmount;
|
|
148
|
+
// refId: string;
|
|
149
|
+
moIds: string[];
|
|
150
|
+
previousSelection?: AllowedModes[];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface PaymentEventDataInterface {
|
|
154
|
+
refId: string;
|
|
155
|
+
money: {
|
|
156
|
+
amount: number;
|
|
157
|
+
currency: string;
|
|
158
|
+
};
|
|
159
|
+
contactDetails?: string;
|
|
160
|
+
paymentLink?: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface PaymentConfigResponse {
|
|
164
|
+
data: {
|
|
165
|
+
configDetails: {
|
|
166
|
+
tenantId: string;
|
|
167
|
+
paymentMethods: PaymentMethods;
|
|
168
|
+
modesMapping: object;
|
|
169
|
+
}[];
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface PaymentMethods {
|
|
174
|
+
QR: boolean;
|
|
175
|
+
paymentLink: boolean;
|
|
176
|
+
modes?: object;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export enum TRANSACTION_TYPE {
|
|
180
|
+
LINK = 'link',
|
|
181
|
+
QRCODE = 'qrCode',
|
|
182
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { StyleSheet, Platform } from 'react-native';
|
|
2
|
+
import { Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
3
|
+
|
|
4
|
+
export const PaymentStyles = StyleSheet.create({
|
|
5
|
+
amountStyle: {
|
|
6
|
+
fontSize: 18,
|
|
7
|
+
fontWeight: '600',
|
|
8
|
+
fontStyle: 'normal',
|
|
9
|
+
// backgroundColor: 'white',
|
|
10
|
+
textAlign: 'center',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
paddingTop: 25,
|
|
13
|
+
paddingBottom: 25,
|
|
14
|
+
fontFamily: Platform.OS === 'android'
|
|
15
|
+
? Fonts.IBMPlexSans_600SemiBold
|
|
16
|
+
: 'IBMPlexSans-SemiBold',
|
|
17
|
+
},
|
|
18
|
+
messageStyle: {
|
|
19
|
+
fontFamily: Platform.OS === 'android'
|
|
20
|
+
? Fonts.IBMPlexSans_400Regular
|
|
21
|
+
: 'IBMPlexSans-Regular',
|
|
22
|
+
backgroundColor: '#FFFFFF',
|
|
23
|
+
color: '#111111',
|
|
24
|
+
padding: 20,
|
|
25
|
+
fontStyle: 'normal',
|
|
26
|
+
fontWeight: 'normal',
|
|
27
|
+
fontSize: 14,
|
|
28
|
+
},
|
|
29
|
+
textStyle1: {
|
|
30
|
+
fontFamily: Platform.OS === 'android'
|
|
31
|
+
? Fonts.IBMPlexSans_400Regular
|
|
32
|
+
: 'IBMPlexSans-Regular',
|
|
33
|
+
marginTop: 20,
|
|
34
|
+
marginStart: 20,
|
|
35
|
+
marginEnd: 20,
|
|
36
|
+
color: '#9D9D9D',
|
|
37
|
+
fontStyle: 'normal',
|
|
38
|
+
fontWeight: 'normal',
|
|
39
|
+
fontSize: 14,
|
|
40
|
+
},
|
|
41
|
+
reasonTextStyle: {
|
|
42
|
+
flex: 1,
|
|
43
|
+
flexWrap: 'wrap',
|
|
44
|
+
fontFamily: Platform.OS === 'android'
|
|
45
|
+
? Fonts.IBMPlexSans_400Regular
|
|
46
|
+
: 'IBMPlexSans-Regular',
|
|
47
|
+
fontStyle: 'normal',
|
|
48
|
+
fontSize: 14,
|
|
49
|
+
lineHeight: 21,
|
|
50
|
+
letterSpacing: 0.25,
|
|
51
|
+
textAlign: 'justify',
|
|
52
|
+
color: '#111111',
|
|
53
|
+
paddingTop: 5,
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
reasonItemStyle: {
|
|
57
|
+
flexDirection: 'row',
|
|
58
|
+
paddingTop: 10,
|
|
59
|
+
paddingStart: 20,
|
|
60
|
+
paddingEnd: 20,
|
|
61
|
+
backgroundColor: 'white',
|
|
62
|
+
},
|
|
63
|
+
heading: {
|
|
64
|
+
marginTop: 30,
|
|
65
|
+
marginStart: 25,
|
|
66
|
+
fontSize: 14,
|
|
67
|
+
lineHeight: 21,
|
|
68
|
+
letterSpacing: 0.25,
|
|
69
|
+
fontFamily: 'IBMPlexSans_400Regular',
|
|
70
|
+
color: '#9D9D9D',
|
|
71
|
+
},
|
|
72
|
+
item: {
|
|
73
|
+
margin: 10,
|
|
74
|
+
padding: 15,
|
|
75
|
+
borderWidth: 0.2,
|
|
76
|
+
},
|
|
77
|
+
btn: {
|
|
78
|
+
width: 240,
|
|
79
|
+
borderRadius: 4,
|
|
80
|
+
backgroundColor: '#62d1bc',
|
|
81
|
+
paddingHorizontal: 24,
|
|
82
|
+
paddingVertical: 12,
|
|
83
|
+
marginVertical: 8,
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
loader: { flex: 1, justifyContent: 'center', alignItems: 'center' },
|
|
87
|
+
flexCenter: {
|
|
88
|
+
width: 300,
|
|
89
|
+
height: 200,
|
|
90
|
+
flex: 1,
|
|
91
|
+
justifyContent: 'center',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
},
|
|
94
|
+
paymentWaitIcon: {
|
|
95
|
+
backgroundColor: '#ECF0FF',
|
|
96
|
+
width: 113,
|
|
97
|
+
height: 113,
|
|
98
|
+
borderRadius: 60,
|
|
99
|
+
justifyContent: 'center',
|
|
100
|
+
alignItems: 'center',
|
|
101
|
+
},
|
|
102
|
+
});
|