UNPKG

react-native-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS

319 lines (283 loc) 12.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CheckScannerScreenTextLocalization = void 0; var _utils = require("../../utils/utils"); /// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from rtu-ui-v2/schemas/check/CheckScannerScreenTextLocalization.yaml /** Configuration of the all strings for check scanner screen. */ class CheckScannerScreenTextLocalization extends _utils.PartiallyConstructible { /** Title for the top bar. Default is "Check Scanner" */ topBarTitle = 'Check Scanner'; /** Cancel button text for the top bar. Default is "Cancel" */ topBarCancelButton = 'Cancel'; /** Text for the top user guidance caption. Default is "Point the camera at the check" */ topUserGuidance = 'Point the camera at the check'; /** Text for the user guidance caption below the finder view. Default is "Looking for check..." */ finderViewUserGuidance = 'Looking for check...'; /** Title for the introduction screen. Default is "How to scan a check" */ introScreenTitle = 'How to scan a check'; /** Start scanning button text for the introduction screen. Default is "Start Scanning" */ introScreenDoneButton = 'Start Scanning'; /** The text explanation of the introduction screen. Default is "This scanner reads the MICR (Magnetic Ink Character Recognition) line – the numbers and characters printed at the bottom of your check.\n\nTo scan, place the check on a flat, well-lit surface and position your camera so the entire check is within the frame. The check data will be automatically extracted.\nTap 'Start Scanning' to begin." */ introScreenText = "This scanner reads the MICR (Magnetic Ink Character Recognition) line – the numbers and characters printed at the bottom of your check.\n\nTo scan, place the check on a flat, well-lit surface and position your camera so the entire check is within the frame. The check data will be automatically extracted.\nTap 'Start Scanning' to begin."; /** Caption for the success overlay. Default is "Scanned successfully" */ completionOverlaySuccessMessage = 'Scanned successfully'; /** Accessibility description for the 'open introduction screen' button in top bar. Default is "Open Check Scanner introduction" */ accessibilityDescriptionOpenIntroScreenButton = 'Open Check Scanner introduction'; /** Accessibility description for the 'done'/'start scanning' button in the introduction screen. Default is "Start check scanning" */ accessibilityDescriptionIntroScreenDoneButton = 'Start check scanning'; /** Accessibility description for the 'cancel' button in the top bar. Default is "Cancel check scanning" */ accessibilityDescriptionCancelButton = 'Cancel check scanning'; /** Accessibility description for the 'retry' button in the alerts. Default is "Retry check scanning" */ accessibilityDescriptionRetryButton = 'Retry check scanning'; /** Accessibility description for the 'close scanner' button in the alerts. Default is "Close check scanner" */ accessibilityDescriptionCloseScannerButton = 'Close check scanner'; /** Try again button text for the alert. Default is "Retry" */ checkAlertRetryButton = 'Retry'; /** Close button text for the alert. Default is "Close Scanner" */ checkAlertCloseScannerButton = 'Close Scanner'; /** Title for the alert when Check is not detected. Default is "No check detected" */ checkNoCheckDetectedAlertTitle = 'No check detected'; /** Subtitle for the alert when Check is not detected. Default is "The scanner couldn't detect the check. Please ensure the check is valid, well-lit, and fully visible, then try again." */ checkNoCheckDetectedAlertSubtitle = "The scanner couldn't detect the check. Please ensure the check is valid, well-lit, and fully visible, then try again."; /** Title for the alert when the image is not good. Default is "Check not recognized" */ checkImageNotGoodAlertTitle = 'Check not recognized'; /** Subtitle for the alert when the image is not good. Default is "Make sure the check is valid, well-lit, and fully visible. Then try again." */ checkImageNotGoodAlertSubtitle = 'Make sure the check is valid, well-lit, and fully visible. Then try again.'; /** Accessibility description for the flash button. Default is "Toggle flash" */ accessibilityDescriptionFlashButton = 'Toggle flash'; /** Accessibility description for the zoom button. Default is "Toggle camera zoom" */ accessibilityDescriptionZoomButton = 'Toggle camera zoom'; /** Accessibility description for the flip camera button. Default is "Flip camera" */ accessibilityDescriptionFlipCameraButton = 'Flip camera'; /** The title of the camera permission dialog. Default is "Camera permission denied!" */ cameraPermissionEnableCameraTitle = 'Camera permission denied!'; /** The explanation text of the camera permission dialog. Default is "Please allow the usage of the camera to start the scanning process." */ cameraPermissionEnableCameraExplanation = 'Please allow the usage of the camera to start the scanning process.'; /** The 'enable' button title of the camera permission dialog. Default is "Grant permission" */ cameraPermissionEnableCameraButton = 'Grant permission'; /** The 'close' button title of the camera permission dialog. Default is "Close" */ cameraPermissionCloseButton = 'Close'; /** The accessibility hint for the 'enable' button of the camera permission dialog. Default is "Tap to grant camera permission" */ accessibilityDescriptionCameraPermissionEnableCameraButton = 'Tap to grant camera permission'; /** The accessibility hint for the 'close' button of the camera permission dialog. Default is "Close screen without granting permission" */ accessibilityDescriptionCameraPermissionCloseButton = 'Close screen without granting permission'; /** The user guidance text displayed when no check is found. Default is "Looking for check..." */ checkUserGuidanceNoCheckFound = 'Looking for check...'; /** The user guidance text displayed when a check presence was detected. Default is "Scanning the check..." */ checkUserGuidanceScanningProgress = 'Scanning the check...'; /** The user guidance text displayed when it is too dark to capture an adequate image. Default is "Too dark. Please turn on a light." */ checkUserGuidanceTooDark = 'Too dark. Please turn on a light.'; /** The user guidance text displayed when the detected check is too far away and appears too small. Default is "Please move closer to the check." */ checkUserGuidanceTooSmall = 'Please move closer to the check.'; /** The user guidance text displayed when the detected check is not in a good perspective (device tilted). Default is "Please hold your device straight over the check." */ checkUserGuidanceBadPerspective = 'Please hold your device straight over the check.'; /** @param source {@displayType `DeepPartial<CheckScannerScreenTextLocalization>`} */ constructor(source = {}) { super(); if (source.topBarTitle !== undefined) { this.topBarTitle = source.topBarTitle; } if (source.topBarCancelButton !== undefined) { this.topBarCancelButton = source.topBarCancelButton; } if (source.topUserGuidance !== undefined) { this.topUserGuidance = source.topUserGuidance; } if (source.finderViewUserGuidance !== undefined) { this.finderViewUserGuidance = source.finderViewUserGuidance; } if (source.introScreenTitle !== undefined) { this.introScreenTitle = source.introScreenTitle; } if (source.introScreenDoneButton !== undefined) { this.introScreenDoneButton = source.introScreenDoneButton; } if (source.introScreenText !== undefined) { this.introScreenText = source.introScreenText; } if (source.completionOverlaySuccessMessage !== undefined) { this.completionOverlaySuccessMessage = source.completionOverlaySuccessMessage; } if (source.accessibilityDescriptionOpenIntroScreenButton !== undefined) { this.accessibilityDescriptionOpenIntroScreenButton = source.accessibilityDescriptionOpenIntroScreenButton; } if (source.accessibilityDescriptionIntroScreenDoneButton !== undefined) { this.accessibilityDescriptionIntroScreenDoneButton = source.accessibilityDescriptionIntroScreenDoneButton; } if (source.accessibilityDescriptionCancelButton !== undefined) { this.accessibilityDescriptionCancelButton = source.accessibilityDescriptionCancelButton; } if (source.accessibilityDescriptionRetryButton !== undefined) { this.accessibilityDescriptionRetryButton = source.accessibilityDescriptionRetryButton; } if (source.accessibilityDescriptionCloseScannerButton !== undefined) { this.accessibilityDescriptionCloseScannerButton = source.accessibilityDescriptionCloseScannerButton; } if (source.checkAlertRetryButton !== undefined) { this.checkAlertRetryButton = source.checkAlertRetryButton; } if (source.checkAlertCloseScannerButton !== undefined) { this.checkAlertCloseScannerButton = source.checkAlertCloseScannerButton; } if (source.checkNoCheckDetectedAlertTitle !== undefined) { this.checkNoCheckDetectedAlertTitle = source.checkNoCheckDetectedAlertTitle; } if (source.checkNoCheckDetectedAlertSubtitle !== undefined) { this.checkNoCheckDetectedAlertSubtitle = source.checkNoCheckDetectedAlertSubtitle; } if (source.checkImageNotGoodAlertTitle !== undefined) { this.checkImageNotGoodAlertTitle = source.checkImageNotGoodAlertTitle; } if (source.checkImageNotGoodAlertSubtitle !== undefined) { this.checkImageNotGoodAlertSubtitle = source.checkImageNotGoodAlertSubtitle; } if (source.accessibilityDescriptionFlashButton !== undefined) { this.accessibilityDescriptionFlashButton = source.accessibilityDescriptionFlashButton; } if (source.accessibilityDescriptionZoomButton !== undefined) { this.accessibilityDescriptionZoomButton = source.accessibilityDescriptionZoomButton; } if (source.accessibilityDescriptionFlipCameraButton !== undefined) { this.accessibilityDescriptionFlipCameraButton = source.accessibilityDescriptionFlipCameraButton; } if (source.cameraPermissionEnableCameraTitle !== undefined) { this.cameraPermissionEnableCameraTitle = source.cameraPermissionEnableCameraTitle; } if (source.cameraPermissionEnableCameraExplanation !== undefined) { this.cameraPermissionEnableCameraExplanation = source.cameraPermissionEnableCameraExplanation; } if (source.cameraPermissionEnableCameraButton !== undefined) { this.cameraPermissionEnableCameraButton = source.cameraPermissionEnableCameraButton; } if (source.cameraPermissionCloseButton !== undefined) { this.cameraPermissionCloseButton = source.cameraPermissionCloseButton; } if (source.accessibilityDescriptionCameraPermissionEnableCameraButton !== undefined) { this.accessibilityDescriptionCameraPermissionEnableCameraButton = source.accessibilityDescriptionCameraPermissionEnableCameraButton; } if (source.accessibilityDescriptionCameraPermissionCloseButton !== undefined) { this.accessibilityDescriptionCameraPermissionCloseButton = source.accessibilityDescriptionCameraPermissionCloseButton; } if (source.checkUserGuidanceNoCheckFound !== undefined) { this.checkUserGuidanceNoCheckFound = source.checkUserGuidanceNoCheckFound; } if (source.checkUserGuidanceScanningProgress !== undefined) { this.checkUserGuidanceScanningProgress = source.checkUserGuidanceScanningProgress; } if (source.checkUserGuidanceTooDark !== undefined) { this.checkUserGuidanceTooDark = source.checkUserGuidanceTooDark; } if (source.checkUserGuidanceTooSmall !== undefined) { this.checkUserGuidanceTooSmall = source.checkUserGuidanceTooSmall; } if (source.checkUserGuidanceBadPerspective !== undefined) { this.checkUserGuidanceBadPerspective = source.checkUserGuidanceBadPerspective; } } } exports.CheckScannerScreenTextLocalization = CheckScannerScreenTextLocalization; //# sourceMappingURL=CheckScannerScreenTextLocalization.js.map