import type * as Whop from "../index.mjs"; export interface PaymentRuleField { /** The payment attribute this condition reads. */ field: PaymentRuleField.Field; /** The largest value this field accepts, or `null` when the field is not numeric. */ maximum: number | null; /** The smallest value this field accepts, or `null` when the field is not numeric. */ minimum: number | null; operators: PaymentRuleField.Operators.Item[]; options: Whop.PaymentRuleFieldOption[] | null; /** The type of value this field compares against. */ type: PaymentRuleField.Type; } export declare namespace PaymentRuleField { /** The payment attribute this condition reads. */ const Field: { readonly RiskScore: "risk_score"; readonly AmountInUsd: "amount_in_usd"; readonly CardCountry: "card_country"; readonly CardBrand: "card_brand"; readonly CardFunding: "card_funding"; readonly CardBin: "card_bin"; readonly BillingCountry: "billing_country"; readonly BillingPostalCode: "billing_postal_code"; readonly BillingCity: "billing_city"; readonly CustomerEmail: "customer_email"; readonly EmailDomain: "email_domain"; readonly IpAddress: "ip_address"; readonly IpCountry: "ip_country"; }; type Field = (typeof Field)[keyof typeof Field]; type Operators = Operators.Item[]; namespace Operators { /** The operators this field accepts. Any other operator is rejected. */ const Item: { readonly Eq: "eq"; readonly Neq: "neq"; readonly Gt: "gt"; readonly Gte: "gte"; readonly Lt: "lt"; readonly Lte: "lte"; readonly In: "in"; readonly NotIn: "not_in"; readonly StartsWith: "starts_with"; readonly Contains: "contains"; readonly EndsWith: "ends_with"; readonly InCidr: "in_cidr"; }; type Item = (typeof Item)[keyof typeof Item]; } /** The type of value this field compares against. */ const Type: { readonly Integer: "integer"; readonly Number: "number"; readonly String: "string"; }; type Type = (typeof Type)[keyof typeof Type]; }