connect-sdk-nodejs
Version:
SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API
19 lines (18 loc) • 901 B
TypeScript
import { ObfuscationRule, SdkContext } from "../model";
/**
* @returns An obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with *.
*/
export declare function allButLast(count: number): ObfuscationRule;
/**
* @returns An obfuscation rule that will replace all characters with *.
*/
export declare function all(): ObfuscationRule;
/**
* @returns An obfuscation rule that will keep a fixed number of characters at the start, then replaces all other characters with *.
*/
export declare function allButFirst(count: number): ObfuscationRule;
/**
* @returns An obfuscation rule that will replace values with a fixed length string containing only *.
*/
export declare function withFixedLength(count: number): ObfuscationRule;
export declare function getObfuscated(input: any, context?: SdkContext | null, caseInsensitive?: boolean): string;