react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
251 lines (222 loc) • 10.4 kB
text/typescript
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
/// Generated from rtu-ui-v2/schemas/creditcard/CreditCardScannerScreenTextLocalization.yaml
import { DeepPartial, PartiallyConstructible } from '../../utils/utils';
/**
Configuration of the all strings for credit card scanner screen.
*/
export class CreditCardScannerScreenTextLocalization extends PartiallyConstructible {
/**
Title for the top bar.
Default is "Credit Card Scanner"
*/
public topBarTitle: string = 'Credit Card Scanner';
/**
Cancel button text for the top bar.
Default is "Cancel"
*/
public topBarCancelButton: string = 'Cancel';
/**
Text for the top user guidance caption.
Default is "Scan the credit card"
*/
public topUserGuidance: string = 'Scan the credit card';
/**
Title for the introduction screen.
Default is "How to scan a credit card"
*/
public introScreenTitle: string = 'How to scan a credit card';
/**
Start scanning button text for the introduction screen.
Default is "Start Scanning"
*/
public introScreenDoneButton: string = 'Start Scanning';
/**
The text explanation of the introduction screen.
Default is "To quickly and securely input your credit card details, please hold your device over the credit card, so that the camera aligns with the numbers on the front of the card. \n\nThe scanner will guide you to the optimal scanning position. Once the scan is complete, your card details will automatically be extracted and processed.\n\nPress 'Start Scanning' to begin."
*/
public introScreenText: string =
"To quickly and securely input your credit card details, please hold your device over the credit card, so that the camera aligns with the numbers on the front of the card. \n\nThe scanner will guide you to the optimal scanning position. Once the scan is complete, your card details will automatically be extracted and processed.\n\nPress 'Start Scanning' to begin.";
/**
Caption for the success overlay.
Default is "Scanned successfully"
*/
public completionOverlaySuccessMessage: string = 'Scanned successfully';
/**
Caption for the success overlay when not all data from the card was scanned.
Default is "Incomplete scan"
*/
public completionOverlayIncompleteDataMessage: string = 'Incomplete scan';
/**
Accessibility description for the 'open introduction screen' button in top bar.
Default is "Open introduction screen."
*/
public accessibilityDescriptionOpenIntroScreenButton: string = 'Open introduction screen.';
/**
Accessibility description for the 'done'/'start scanning' button in the introduction screen.
Default is "Start scanning"
*/
public accessibilityDescriptionIntroScreenDoneButton: string = 'Start scanning';
/**
Accessibility description for the 'cancel' button in the top bar.
Default is "Cancel"
*/
public accessibilityDescriptionCancelButton: string = 'Cancel';
/**
Accessibility description for the flash button.
Default is "Toggle flash"
*/
public accessibilityDescriptionFlashButton: string = 'Toggle flash';
/**
Accessibility description for the zoom button.
Default is "Toggle camera zoom"
*/
public accessibilityDescriptionZoomButton: string = 'Toggle camera zoom';
/**
Accessibility description for the flip camera button.
Default is "Flip camera"
*/
public accessibilityDescriptionFlipCameraButton: string = 'Flip camera';
/**
The user guidance text displayed when no credit card is found.
Default is "Looking for credit card..."
*/
public creditCardUserGuidanceNoCardFound: string = 'Looking for credit card...';
/**
The user guidance text displayed when a card presence was detected.
Default is "Scanning the credit card..."
*/
public creditCardUserGuidanceScanningProgress: string = 'Scanning the credit card...';
/**
The user guidance text displayed when it is too dark to capture an adequate image.
Default is "Too dark. Please turn on a light."
*/
public creditCardUserGuidanceTooDark: string = 'Too dark. Please turn on a light.';
/**
The user guidance text displayed when the detected card is too far away and appears too small.
Default is "Please move closer to the credit card."
*/
public creditCardUserGuidanceTooSmall: string = 'Please move closer to the credit card.';
/**
The user guidance text displayed when the detected card is not in a good perspective (device tilted).
Default is "Please hold your device straight over the credit card."
*/
public creditCardUserGuidanceBadPerspective: string =
'Please hold your device straight over the credit card.';
/**
The title of the camera permission dialog.
Default is "Camera permission denied!"
*/
public cameraPermissionEnableCameraTitle: string = '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."
*/
public cameraPermissionEnableCameraExplanation: string =
'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"
*/
public cameraPermissionEnableCameraButton: string = 'Grant permission';
/**
The 'close' button title of the camera permission dialog.
Default is "Close"
*/
public cameraPermissionCloseButton: string = 'Close';
/**
The accessibility hint for the 'enable' button of the camera permission dialog.
Default is "Tap to grant camera permission"
*/
public accessibilityDescriptionCameraPermissionEnableCameraButton: string =
'Tap to grant camera permission';
/**
The accessibility hint for the 'close' button of the camera permission dialog.
Default is "Close screen without granting permission"
*/
public accessibilityDescriptionCameraPermissionCloseButton: string =
'Close screen without granting permission';
/** @param source {@displayType `DeepPartial<CreditCardScannerScreenTextLocalization>`} */
public constructor(source: DeepPartial<CreditCardScannerScreenTextLocalization> = {}) {
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.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.completionOverlayIncompleteDataMessage !== undefined) {
this.completionOverlayIncompleteDataMessage = source.completionOverlayIncompleteDataMessage;
}
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.accessibilityDescriptionFlashButton !== undefined) {
this.accessibilityDescriptionFlashButton = source.accessibilityDescriptionFlashButton;
}
if (source.accessibilityDescriptionZoomButton !== undefined) {
this.accessibilityDescriptionZoomButton = source.accessibilityDescriptionZoomButton;
}
if (source.accessibilityDescriptionFlipCameraButton !== undefined) {
this.accessibilityDescriptionFlipCameraButton =
source.accessibilityDescriptionFlipCameraButton;
}
if (source.creditCardUserGuidanceNoCardFound !== undefined) {
this.creditCardUserGuidanceNoCardFound = source.creditCardUserGuidanceNoCardFound;
}
if (source.creditCardUserGuidanceScanningProgress !== undefined) {
this.creditCardUserGuidanceScanningProgress = source.creditCardUserGuidanceScanningProgress;
}
if (source.creditCardUserGuidanceTooDark !== undefined) {
this.creditCardUserGuidanceTooDark = source.creditCardUserGuidanceTooDark;
}
if (source.creditCardUserGuidanceTooSmall !== undefined) {
this.creditCardUserGuidanceTooSmall = source.creditCardUserGuidanceTooSmall;
}
if (source.creditCardUserGuidanceBadPerspective !== undefined) {
this.creditCardUserGuidanceBadPerspective = source.creditCardUserGuidanceBadPerspective;
}
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;
}
}
}