@pwngh/economy-lab
    Preparing search index...

    Type Alias DisputeEvent

    DisputeEvent: WebhookBase & {
        amount: Amount;
        kind: "dispute";
        orderId?: string;
        reason?: string;
        userId: string;
    }

    A verified dispute / chargeback callback: the user's bank reversed a charge, so the credits that purchase issued must be reclaimed via clawback. Carries the disputed order when the provider names one, so the clawback and a refund of the same order stay mutually exclusive.

    Type Declaration

    • amount: Amount

      How much to reclaim, in the platform's CREDIT currency.

    • kind: "dispute"
    • OptionalorderId?: string

      The order the chargeback disputes, when the provider ties the dispute to one.

    • Optionalreason?: string

      Free-form reason recorded on the clawback (e.g. the network's chargeback reason code).

    • userId: string

      The user whose credits the chargeback reclaims.