Interface PaywallInteractionEvent

A paywall control interaction, as passed to PaywallListener.onInteraction. Keys that do not apply are omitted.

See https://rev.cat/paywall-interaction-events for what each component type sends.

interface PaywallInteractionEvent {
    component_name?: string;
    component_type: string;
    component_url?: string;
    component_value: string;
    current_package_id?: string;
    current_product_id?: string;
    dark_mode?: boolean;
    default_index?: number;
    default_package_id?: string;
    default_product_id?: string;
    destination_context_name?: string;
    destination_index?: number;
    destination_package_id?: string;
    destination_product_id?: string;
    display_mode?: string;
    locale?: string;
    offering_id: string;
    origin_context_name?: string;
    origin_index?: number;
    origin_package_id?: string;
    origin_product_id?: string;
    paywall_id?: string;
    paywall_revision: number;
    resulting_package_id?: string;
    resulting_product_id?: string;
    session_id: string;
    timestamp: number;
}

Properties

component_name?: string
component_type: string
component_url?: string
component_value: string
current_package_id?: string
current_product_id?: string
dark_mode?: boolean
default_index?: number
default_package_id?: string
default_product_id?: string
destination_context_name?: string
destination_index?: number
destination_package_id?: string
destination_product_id?: string
display_mode?: string
locale?: string
offering_id: string
origin_context_name?: string
origin_index?: number
origin_package_id?: string
origin_product_id?: string
paywall_id?: string
paywall_revision: number
resulting_package_id?: string
resulting_product_id?: string
session_id: string
timestamp: number