UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

52 lines 2.02 kB
import { IFrameEvent } from '../../components/iframe-event'; import type { ICheckout } from '../../external-checkout/builder'; import { EventEmitter } from '../../helper/event-emitter'; import { type IContextualRunner } from '../runner/contextual.runner'; import { ZipmoneyRunner } from './zipmoney.runner'; declare enum ZIPMONEY_STATE { APPROVED = "approved", DECLINED = "declined", CANCELLED = "cancelled", REFERRED = "referred" } declare const ZipmoneyContextualRunner_base: { new (...args: any[]): { background: import("../../components/background").Background; suspendedRedirectUri: string; continue(): void; stop(): void; error(error: string, code: string, callback: any): void; setSuspendedRedirectUri(uri: string): void; setBackgroundTitle(text: string): void; setBackgroundDescription(text: string): void; turnOffBackdrop(): void; widgetEnv: import("../../configs/env").Env; setEnv(env: string, alias?: string): void; }; } & typeof ZipmoneyRunner; export declare class ZipmoneyContextualRunner extends ZipmoneyContextualRunner_base implements IContextualRunner { protected checkout: ICheckout; protected runs: boolean; protected eventEmitter: EventEmitter; protected event: IFrameEvent; protected widgetId: string; protected checkoutTab: Window | null; protected checkInterval: ReturnType<typeof setInterval> | undefined; constructor(); run(): void; isRunning(): boolean; next(checkoutData: ICheckout): void; getSuccessRedirectUri(): string; getErrorRedirectUri(): string; stop(): void; onStop(cb: () => void): void; onCheckout(event: string, cb: (checkout: ICheckout) => void): void; protected eventHandler(args: { state: ZIPMONEY_STATE; }): void; private setCloseTabInterval; private setCompleteCheckoutListener; private getLoadingUrl; } export {}; //# sourceMappingURL=zipmoney-contextual.runner.d.ts.map