import { CountryCodes, LanguageCodes } from './countries'; import { ExplicitAnyType, SovDebugLevel } from './general'; import { SovendusPageUrlParams } from './plugin-page'; import { SovendusAppSettings } from './plugin-settings'; import { SovCbVnApplicationType, VariableIdentifiersType } from './thank-you'; export declare const defaultSovendusThankyouPageConfig: SovendusThankYouPageConfig; export interface SovendusThankyouPageData { sovThankyouConfig: SovendusThankYouPageConfig; sovThankyouStatus: IntegrationData; } export interface SovendusThankyouWindow extends Window, SovendusThankyouPageData { } export interface SovendusThankYouPageConfig { settings: SovendusAppSettings; integrationType: string; iframeContainerQuerySelector?: IframeContainerQuerySelectorSettings | undefined; sovDebugLevel?: SovDebugLevel; orderData: SovendusConversionsData; customerData: SovendusConsumerData; } export interface IframeContainerQuerySelectorSettings { selector: string; where: "none" | InsertPosition; } export interface SovendusConversionsData { sessionId?: string | undefined; orderId?: string | undefined; orderValue?: OrderValueData; orderCurrency?: SovendusOrderCurrencies | undefined; usedCouponCodes?: string[] | undefined; usedCouponCode?: string | undefined; hasConsent?: boolean | undefined; } export interface OrderValueData { netOrderValue?: number | string | undefined; grossOrderValue?: number | string | undefined; shippingValue?: number | string | undefined; taxValue?: number | string | undefined; taxPercent?: number | string | undefined; } export interface IntegrationData { integrationScriptVersion: string; data: PublicThankYouCookieData | undefined; status: { integrationLoaderStarted: boolean; sovThankyouConfigFound: boolean; countryCodePassedOnByPlugin: boolean; integrationParametersLoaded: boolean; checkoutProductsPixelFired: boolean; loadedOptimize: boolean; voucherNetworkCookieBasedVoucherFound: boolean; voucherNetworkCouponCodeSent: boolean; voucherNetworkIframeContainerFound: boolean; voucherNetworkIframeContainerIdFound: boolean; integrationLoaderVnCbStarted: boolean; integrationLoaderDone: boolean; }; times: { integrationLoaderStart: number | undefined; integrationLoaderVnCbStart?: number; integrationLoaderDone?: number; }; } export interface SovendusThankYouPageStatus { loadedOptimize: boolean; loadedVoucherNetwork: boolean; executedCheckoutProducts: boolean; sovThankyouConfigFound: boolean; countryCodePassedOnByPlugin: boolean; } export interface SovendusVNConversion { trafficSourceNumber?: string | undefined | number; trafficMediumNumber?: string | undefined | number; sessionId?: string | undefined; orderId?: string | undefined | number; orderValue?: string | undefined | number; orderCurrency?: SovendusOrderCurrencies | undefined; couponCode?: string | undefined; usedCouponCode?: string | undefined; iframeContainerId?: string; integrationType?: string; hasConsent?: boolean | undefined; } export type RedemptionApiRequestData = { trafficSourceNumber: string; couponCode: string; orderValue: number | undefined; orderCurrency: SovendusOrderCurrencies | undefined; orderId: string | undefined; sessionId: string | undefined; }; export interface PublicThankYouCookieData extends SovendusPageUrlParams { orderValue: number | undefined; orderCurrency: SovendusOrderCurrencies | undefined; orderId: string | undefined; } export interface SovendusPublicConversionWindow extends Window { sovIframes?: SovendusVNConversion[]; sovConsumer?: SovendusConsumerData; AWIN?: AwinConversion; [VariableIdentifiersType.legacy_integrationIdentifier_sovAbo]?: SovendusVNConversion[] | SovendusVNConversion; [VariableIdentifiersType.legacy_integrationIdentifier_gconData]?: [ string, ExplicitAnyType ][]; sovApplication?: SovCbVnApplicationType; } export interface AwinConversion { Tracking?: { Sovendus?: { trafficSourceNumber?: string; trafficMediumNumber?: string; }; Sale?: object; iMerchantId: number; }; } export interface SovendusConsumerData { consumerSalutation?: SovendusSalutation | undefined; consumerFirstName?: string | undefined; consumerLastName?: string | undefined; consumerPhone?: string | undefined; consumerYearOfBirth?: number | string | undefined; consumerDateOfBirth?: string | undefined; consumerEmail?: string | undefined; consumerEmailHash?: string | undefined; consumerZipcode?: string | undefined; consumerStreet?: string | undefined; consumerStreetNumber?: string | undefined; consumerStreetWithNumber?: string | undefined; consumerCity?: string | undefined; consumerCountry?: undefined | CountryCodes | "UK"; consumerLanguage?: LanguageCodes | undefined; } export type SovendusSalutation = "Mr." | "Mrs."; export type SovendusOrderCurrencies = "EUR" | "GBP" | "CHF" | "SEK" | "DKK" | "PLN"; //# sourceMappingURL=plugin-thankyou.d.ts.map