API ReferenceEvent Referencepayment.dispute.closed.v1

payment.dispute.closed.v1

Constant

import { EVENT_NAMES } from "@platform/contracts";
 
EVENT_NAMES.PAYMENT_DISPUTE_CLOSED_V1;

Publishers

Subscribers

No service currently subscribes to this event.

Payload schema

z.object({
  dispute_id: z.string(),
  payment_id: z.string(),
  stripe_dispute_id: z.string(),
  amount_cents: z.number().int().positive(),
  currency: z.string(),
  outcome: z.enum(["won", "lost"]),
  closed_at: z.string().datetime(),
}

Delivery semantics

  • At-least-once delivery. Consumers must dedupe by event ID.
  • Fanned out to both NATS (in-cluster) and EventBridge (durable). See Events concept.