import type * as Whop from "../index.mjs"; export interface PaymentRule { /** Account ID, prefixed `biz_`. */ account_id: string; /** What this account's rule requests when every condition matches. One applicable account-rule action wins, in this order: `allow`, `block`, `review`, `enforce_3ds`. An `allow` overrides this account's other rules, never Whop's own fraud controls. A `review` requests authorization without capture for an eligible on-session card payment through Whop Payments. Automatic capture is scheduled for 48 hours after authorization; capture or void the payment before then to decide sooner. Capture may complete later or fail. Review is skipped for unsupported methods, off-session payments, and payments already configured for manual capture. An `enforce_3ds` is skipped when the account rule cannot apply a challenge. Other 3DS requirements still apply. */ action: PaymentRule.Action; /** The conditions a payment is matched against. Up to 10 conditions, and 8 KiB once serialized. */ conditions: Whop.PaymentRuleConditions; /** When the rule was created, as an ISO 8601 timestamp. */ created_at: string; /** When the rule was deleted, as an ISO 8601 timestamp. `null` unless `status` is `deleted`. */ deleted_at: string | null; /** Payment rule ID, prefixed `prule_`. */ id: string; /** Custom string-to-string values for your integration. Maximum 50 keys, 40 characters per key, 500 characters per value. */ metadata: Record; /** A name for this rule. Up to 255 characters. */ name: string; /** Whether the rule is applied to payments. A `deleted` rule is kept so the payments it already decided still name it. */ status: PaymentRule.Status; /** When the rule was last changed, as an ISO 8601 timestamp. */ updated_at: string; } export declare namespace PaymentRule { /** What this account's rule requests when every condition matches. One applicable account-rule action wins, in this order: `allow`, `block`, `review`, `enforce_3ds`. An `allow` overrides this account's other rules, never Whop's own fraud controls. A `review` requests authorization without capture for an eligible on-session card payment through Whop Payments. Automatic capture is scheduled for 48 hours after authorization; capture or void the payment before then to decide sooner. Capture may complete later or fail. Review is skipped for unsupported methods, off-session payments, and payments already configured for manual capture. An `enforce_3ds` is skipped when the account rule cannot apply a challenge. Other 3DS requirements still apply. */ const Action: { readonly Allow: "allow"; readonly Block: "block"; readonly Review: "review"; readonly Enforce3Ds: "enforce_3ds"; }; type Action = (typeof Action)[keyof typeof Action]; /** Whether the rule is applied to payments. A `deleted` rule is kept so the payments it already decided still name it. */ const Status: { readonly Active: "active"; readonly Inactive: "inactive"; readonly Deleted: "deleted"; }; type Status = (typeof Status)[keyof typeof Status]; }