import type * as Whop from "../index.mjs"; export interface PartnerReferralRequest { /** Business receiving the request, when one is assigned. */ account: Whop.AccountSummary | null; /** The partner's team membership this referral was created for, prefixed `ausr_`. `null` when the referral is personal. */ authorized_user_id: string | null; /** Unique referral code, when assigned. */ code: string | null; /** When the request was created, as an ISO 8601 timestamp. */ created_at: string; /** Partner referral request ID, prefixed `prfr_`. */ id: string; /** Maximum permitted redemptions, when limited. */ max_redemptions: number | null; /** The partner's member record this referral was created for, prefixed `mber_`, when their role on that business is held on their member record. `null` otherwise. */ member_id: string | null; /** Public profile of the requesting partner. */ partner: Whop.UserSummary; /** How the referral request was initiated. */ request_type: PartnerReferralRequest.RequestType; rewards: Whop.PartnerReferralReward[]; /** The approval state, or null for requests without an approval process. */ status: PartnerReferralRequest.Status | null; /** When the request last changed, as an ISO 8601 timestamp. */ updated_at: string; /** User receiving the attribution request, or null for a business request or referral link. */ user: Whop.UserSummary | null; } export declare namespace PartnerReferralRequest { /** How the referral request was initiated. */ const RequestType: { readonly Manual: "manual"; readonly OwnershipTransfer: "ownership_transfer"; readonly Link: "link"; }; type RequestType = (typeof RequestType)[keyof typeof RequestType]; /** The approval state, or null for requests without an approval process. */ const Status: { readonly Pending: "pending"; readonly Accepted: "accepted"; readonly Denied: "denied"; readonly Cancelled: "cancelled"; }; type Status = (typeof Status)[keyof typeof Status]; }