import type * as Whop from "../index.mjs"; export interface AccountPreferences { /** The account's Whop Ads services and payment authorization agreement. `status` is `not_required`, `pending_signature` (a signature has been requested and campaign launch is blocked until it is provided), or `signed`. While pending, read the fields to answer from `GET /verifications/{id}` and sign by submitting them via `PATCH /verifications/{id}`. */ ads_agreement: Record; ads_certifications: Record[]; /** How the account pays for Whop Ads spend. `primary` is charged first; `backup` covers the charge when it fails. Each entry has a `type` of `platform_balance` (id `ldgr_`) or `card` (id `payt_`), plus display fields so the configured source renders even for a viewer who doesn't own it. `backup` is `null` when only one method is configured. `null` until ads billing has been configured. */ ads_payment_methods: Record | null; /** Lowercase ISO currency code, such as `usd` or `eur`, used to display ad spend and stats. Defaults to `usd`. */ ads_reporting_currency: string; /** IANA timezone (e.g. `America/New_York`) used to interpret campaign start/end times and to bucket reports. Defaults to `America/New_York` until explicitly overridden. */ ads_scheduling_timezone: string; /** The account's Triple Whale integration, which pushes Whop ad spend to Triple Whale's Data-In API so it reports as a `whop` channel, and tags ad click-through URLs with `tw_source`/`tw_adid` so Triple Whale's pixel attributes conversions back to the right ad. `status` is `connected`, `not_connected`, or `requires_shop_domain` (Triple Whale keys records by shop, so spend only flows once `shop_domain` is set). `masked_api_key` shows the leading characters of the stored key; the full key is never returned. `shop_domain` is the shop spend is reported for. */ ads_triple_whale_integration: Record; /** Whether incoming funds are automatically moved to the account's cards balance. `false` when the account has no cards balance. */ cards_auto_top_up: boolean; /** Whether Whop Card notifications reach this account's team. `true` by default, including when the account has no cards balance. Set it to `false` to stop every card email and push notification for the account — application status, verification and action-required alerts, card-ready alerts, declines, large charges, and cashback summaries. Cardholder onboarding invitations still send, because they carry the only link an invited cardholder can onboard with. Requesting a card is rejected while notifications are off, since the request reaches nobody. Cards on personal accounts are unaffected. */ cards_notifications: boolean; /** Whether this account covers its connected accounts' negative balances. When a connected account's balance drops below zero (from refunds, disputes, or fees), this account's available balance in the same currency pays it back, up to what is available. Refunds on its connected accounts may also take them negative by up to this account's available balance. `null` when the account has no connected accounts. */ covers_connected_account_negative_balances: boolean | null; /** The saved customer tracking settings for the hosted tracking page and Element, exactly as saved. `null` until set; tracking is off unless `enabled` is `true`. */ customer_tracking: Whop.CustomerTrackingPreferences | null; /** Whether Whop assembles and files the evidence response when this account's payments are disputed. Off by default; enabling it also opts the account into the success fee charged only on disputes it wins. */ dispute_fighter_enabled: boolean; /** Whether Economic Intelligence is on for the account. It turns off automatically at `economic_intelligence_ends_at`. */ economic_intelligence: boolean; /** Whether Economic Intelligence renews itself every week, with no end date. Turn it on with the `weekly` offer. Set it to `false` to stop renewing, which keeps Economic Intelligence on until the end of the current week, shown in `economic_intelligence_ends_at`; stopping before the first renewal charges the rest of that week at the `7_days` offer's fee. Set it back to `true` before then to keep renewing at the weekly fee. */ economic_intelligence_auto_renew: boolean; /** When the account's committed Economic Intelligence period ends, as an ISO 8601 timestamp. Economic Intelligence can't be turned off before then. `null` when Economic Intelligence is off or renews automatically. */ economic_intelligence_ends_at: string | null; /** Percentage of volume charged while Economic Intelligence is on, such as `1.5` for 1.5%. `null` when Economic Intelligence is off. */ economic_intelligence_fee_percentage: number | null; /** When auto-renew first renews, as an ISO 8601 timestamp. Turning auto-renew off before then charges the rest of that week at the `7_days` offer's fee. `null` when auto-renew is off. */ economic_intelligence_first_renewal_at: string | null; economic_intelligence_offers: Whop.AccountEconomicIntelligenceOffer[]; /** The account's last Economic Intelligence period, once it has ended. `null` while Economic Intelligence is on, or when it has never been on. */ economic_intelligence_previous_period: Whop.AccountEconomicIntelligencePreviousPeriod | null; feedback_options: Whop.FeedbackOption[]; /** Lowercase ISO currency code every new sale settles into, regardless of the plan's currency or what the buyer paid in. Sales converted this way carry an additional 0.5% FX fee. `null` when the account settles each sale in its plan's currency. */ preferred_settlement_currency: AccountPreferences.PreferredSettlementCurrency | null; /** When `preferred_settlement_currency` may next be changed or turned off, as an ISO 8601 timestamp. It can change at most once a day. `null` when it may change now. */ preferred_settlement_currency_changeable_at: string | null; /** What happens to a subscription once every retry of a renewal payment has failed. `cancel` (the default) cancels it. `none` leaves it past due and keeps billing it each period; access follows the account's past-due access setting. */ subscription_failure_behavior: AccountPreferences.SubscriptionFailureBehavior; } export declare namespace AccountPreferences { /** Lowercase ISO currency code every new sale settles into, regardless of the plan's currency or what the buyer paid in. Sales converted this way carry an additional 0.5% FX fee. `null` when the account settles each sale in its plan's currency. */ const PreferredSettlementCurrency: { readonly Usd: "usd"; readonly Eur: "eur"; readonly Gbp: "gbp"; readonly Cad: "cad"; readonly Aud: "aud"; }; type PreferredSettlementCurrency = (typeof PreferredSettlementCurrency)[keyof typeof PreferredSettlementCurrency]; /** What happens to a subscription once every retry of a renewal payment has failed. `cancel` (the default) cancels it. `none` leaves it past due and keeps billing it each period; access follows the account's past-due access setting. */ const SubscriptionFailureBehavior: { readonly Cancel: "cancel"; readonly None: "none"; }; type SubscriptionFailureBehavior = (typeof SubscriptionFailureBehavior)[keyof typeof SubscriptionFailureBehavior]; }