CumulativeCapPolicySchema
PQSafe AgentPay API Reference v0.1.0
PQSafe AgentPay API Reference / CumulativeCapPolicySchema
Variable: CumulativeCapPolicySchema
constCumulativeCapPolicySchema:ZodObject<{mode:ZodLiteral<"cumulative_cap">;resetWindowSeconds:ZodOptional<ZodNumber>; },"strip",ZodTypeAny, {mode:"cumulative_cap";resetWindowSeconds?:number; }, {mode:"cumulative_cap";resetWindowSeconds?:number; }>
Defined in: pqsafe/agent-pay/src/sprint2/policy.ts:73
cumulative_cap: payments are allowed until the running total reaches envelope.maxAmount. The hosted issuer service maintains the debit ledger. Settlement webhooks update the running balance atomically.