Better Payment 0.11.1 API
    Preparing search index...

    Type Alias OperationContext

    OperationContext: {
        [K in PaymentOperation]: {
            operation: K;
            provider: string | undefined;
            request: PaymentOperations[K]["request"];
            routable: boolean;
        }
    }[PaymentOperation]

    An operation as hooks see it. Narrow it with ctx.operation: after if (ctx.operation === 'refund'), ctx.request is a RefundRequest.