@square/web-payments-sdk-types
Version:
Types for Square's Web Payments SDK
23 lines (22 loc) • 712 B
TypeScript
import type { VerifyBuyerErrorDetails } from './types';
import { SqError } from './types';
/**
* Strong customer authentication error
*
* Thrown with an exception on the verifyBuyer method
*/
export declare class VerifyBuyerError extends SqError {
/**
* Creates a public error for the object returned from the Analytics library.
* @param {VerifyBuyerErrorDetails} error - Error details returned from the analytics library
*/
constructor(error: VerifyBuyerErrorDetails);
/**
* @private
*/
toJSON(): {
errors: Record<string, unknown>[];
name: string;
};
}
export declare function isVerifyBuyerErrorDetails(e: unknown): e is VerifyBuyerErrorDetails;