import type * as Whop from "../index.mjs"; export interface FinancingProvider { /** The merchant action that turns this provider on when `status` is `needs_action`; `null` otherwise. */ action: FinancingProvider.Action | null; currencies: Whop.FinancingProviderCurrency[]; /** The dispute rates behind a `dispute_rate_near_limit` or `dispute_rate_exceeded` reason; `null` for every other reason. */ details: Whop.FinancingProviderDetails | null; /** The financing provider. */ provider: FinancingProvider.Provider; /** When the provider received or decided on this account, as an ISO 8601 timestamp. Set only for providers that review merchants themselves (Splitit); `null` otherwise. */ provider_reviewed_at: string | null; /** Why the provider has this status, when known. On `active` it is `dispute_rate_near_limit` when the provider is close to being turned off. On `inactive` it names what keeps it off, including `not_included` when the account's approval doesn't cover it, `turned_off` when it was switched off after setup, `setup_failed`, and `declined` when the provider turned the account down without a reason Whop recognizes. More reasons may be added. */ reason: FinancingProvider.Reason | null; /** Where the provider stands for this account: `eligible` (included if the account applies), `needs_action` (waiting on the merchant, see `action`), `in_review` (waiting on Whop's review, or on the provider's own when `reason` is `provider_review`), `active` (offered at checkout), or `inactive` (not offered, see `reason`). */ status: FinancingProvider.Status; } export declare namespace FinancingProvider { /** The merchant action that turns this provider on when `status` is `needs_action`; `null` otherwise. */ const Action: { readonly VerifyBusiness: "verify_business"; readonly AddPayoutAccount: "add_payout_account"; }; type Action = (typeof Action)[keyof typeof Action]; /** The financing provider. */ const Provider: { readonly AfterpayClearpay: "afterpay_clearpay"; readonly Zip: "zip"; readonly Sezzle: "sezzle"; readonly Tabby: "tabby"; readonly Tamara: "tamara"; readonly Kueski: "kueski"; readonly Addi: "addi"; readonly Klarna: "klarna"; readonly Oney: "oney"; readonly Splitit: "splitit"; readonly Claritypay: "claritypay"; readonly FlexPay: "flex_pay"; }; type Provider = (typeof Provider)[keyof typeof Provider]; /** Why the provider has this status, when known. On `active` it is `dispute_rate_near_limit` when the provider is close to being turned off. On `inactive` it names what keeps it off, including `not_included` when the account's approval doesn't cover it, `turned_off` when it was switched off after setup, `setup_failed`, and `declined` when the provider turned the account down without a reason Whop recognizes. More reasons may be added. */ const Reason: { readonly AccountNotSupported: "account_not_supported"; readonly PayinAccountRequired: "payin_account_required"; readonly PaymentAccountRequired: "payment_account_required"; readonly ProcessorConnectionRequired: "processor_connection_required"; readonly MinimumVolumeNotMet: "minimum_volume_not_met"; readonly TurnedOffInCheckoutSettings: "turned_off_in_checkout_settings"; readonly ProviderReview: "provider_review"; readonly DisputeRateNearLimit: "dispute_rate_near_limit"; readonly DisputeRateExceeded: "dispute_rate_exceeded"; readonly WhopRiskControl: "whop_risk_control"; readonly NotIncluded: "not_included"; readonly TurnedOff: "turned_off"; readonly Declined: "declined"; readonly SetupFailed: "setup_failed"; readonly PayoutAccountCountryUnsupported: "payout_account_country_unsupported"; readonly SellerCountryUnsupported: "seller_country_unsupported"; readonly ApprovedDisputeRateTooHigh: "approved_dispute_rate_too_high"; readonly RestrictedIndustry: "restricted_industry"; readonly IncomeClaims: "income_claims"; readonly MissingStoreDetails: "missing_store_details"; readonly DuplicateAccount: "duplicate_account"; readonly InvalidWebsite: "invalid_website"; readonly Unspecified: "unspecified"; }; type Reason = (typeof Reason)[keyof typeof Reason]; /** Where the provider stands for this account: `eligible` (included if the account applies), `needs_action` (waiting on the merchant, see `action`), `in_review` (waiting on Whop's review, or on the provider's own when `reason` is `provider_review`), `active` (offered at checkout), or `inactive` (not offered, see `reason`). */ const Status: { readonly Eligible: "eligible"; readonly NeedsAction: "needs_action"; readonly InReview: "in_review"; readonly Active: "active"; readonly Inactive: "inactive"; }; type Status = (typeof Status)[keyof typeof Status]; }