import { EventEmitter } from '../../stencil-public-runtime'; import { BatchFeesGrandTotalDataI } from "../batch/interface"; import { BillingInfoData } from "../../api/payer/interface"; import { CreditcardData } from "../../utils/stored-cards/index"; export declare class PaycargoCcWidget { el: HTMLPaycargoCcWidgetElement; /** * Region that will be passed to hosted cc iframe */ region: string; /** * Country that will be passed to hosted cc iframe for ship and pay registration */ country: string; /** * CC Limit that will be passed to hosted cc iframe */ ccLimit: number; /** * CC Processing Fee Percentage that will be passed to hosted cc iframe */ ccProcessingFeePercentage: number; /** * Currency in which payment is being made on. */ currency: string; /** * CC Total after fees that will be pssed to hosted cc iframe */ batchFeesGrandTotal: BatchFeesGrandTotalDataI; /** * CC Total after fees that will be pssed to hosted cc iframe */ payerId: number | null; pcCCIFrame: HTMLIFrameElement; isLoading: boolean; storedCards: BillingInfoData[]; enterNewCard: boolean; selectedCard: BillingInfoData | null; isPayButtonDisabled: boolean; payButtonMessage: string; editingCard: BillingInfoData | null; editLabelValue: string; isProcessing: boolean; showDeleteConfirm: BillingInfoData | null; iframeHeight: number; /** *Event that will be called after user approves cc payment */ ccAttempt: EventEmitter<{ success: boolean; data: CreditcardData; }>; /** *Event that will be called after user approves cc payment */ ccIFrameLoaded: EventEmitter<{ success: boolean; }>; /** *Event that will be called when cardIssuingCountry updates */ ccUpdate: EventEmitter<{ success: boolean; data: { cardIssuingCountry: string; }; }>; /** * Event fired when user switches between stored cards view and new card entry form */ ccNewCardModeChange: EventEmitter<{ enterNewCard: boolean; }>; private port1; private appURL; private url; componentWillLoad(): void; payerIdChanged(newValue: number | null): Promise; private fetchStoredCards; private faIcon; private handleSelectCard; private handlePayNow; private handleDeleteCard; private confirmDeleteCard; private handleEditLabel; private saveEditLabel; private handleToggleDefault; private handleEnterNewCard; private handleBackToStoredCards; private onBSIFrameLoad; /** * Method to remotely disable iframe 'Pay Now' button. */ disableIframeButton({ disablePayButton, isRegisteredUser, isLoading }: { disablePayButton?: { disable: boolean; msg: string; }; isRegisteredUser?: boolean; isLoading?: boolean; }): Promise; /** * Method to remotely update fees after initial load */ updateFees({ batchFeesGrandTotalData }: { batchFeesGrandTotalData: BatchFeesGrandTotalDataI; }): Promise; render(): any; }