import type * as Whop from "../index.js"; /** * An affiliate tracks a user's referral performance and commission earnings for a company, including retention rates, revenue metrics, and payout configurations. */ export interface Affiliate { /** The total active members of the affiliate */ active_members_count: number; /** The company attached to this affiliate */ company: Affiliate.Company; /** The datetime the affiliate was created. */ created_at: string; /** The percentage of referred customers who are still active members */ customer_retention_rate: string; /** The percentage of referred customers who remained active over the last 90 days */ customer_retention_rate_ninety_days: string; /** The unique identifier for the affiliate. */ id: string; /** The monthly recurring revenue generated by this affiliate's referrals, formatted as a USD currency string */ monthly_recurring_revenue_usd: string; /** The status of the affiliate */ status: Whop.Status | null; /** The total count of all overrides for this affiliate */ total_overrides_count: number; /** The total commission earnings paid to this affiliate, formatted as a USD currency string */ total_referral_earnings_usd: string; /** The total referrals of the affiliate */ total_referrals_count: number; /** The total revenue generated from this affiliate's referrals, formatted as a USD currency string */ total_revenue_usd: string; /** The datetime the affiliate was last updated. */ updated_at: string; /** The user attached to this affiliate */ user: Affiliate.User; } export declare namespace Affiliate { /** * The company attached to this affiliate */ interface Company { /** The unique identifier for the company. */ id: string; /** The written name of the company. */ title: string; } /** * The user attached to this affiliate */ interface User { /** The unique identifier for the user. */ id: string; /** The display name set on the user's Whop profile. Null if the user has not set a name. */ name: string | null; /** The unique username chosen by the user for their Whop profile. Null if the user has not set a username. */ username: string | null; } }