Mayson Monorepo Documentation
    Preparing search index...

    Represents the shape of an EventNotification that the SDK didn't know about when it was generated.

    interface UnknownEventNotification {
        id: string;
        object: "v2.core.event";
        changes?: Changes;
        created: string;
        livemode: boolean;
        reason?: Stripe.V2.Core.Event.Reason;
        type: string;
        related_object: RelatedObject;
        fetchRelatedObject: () => Promise<unknown>;
        fetchEvent: () => Promise<Stripe.V2.Core.EventBase>;
        context?: StripeContext;
    }

    Hierarchy (View Summary)

    Index

    Properties

    id: string

    Unique identifier for the event.

    object: "v2.core.event"

    String representing the object's type. Objects of the same type share the same value of the object field.

    changes?: Changes

    Before and after changes for the primary related object.

    created: string

    Time at which the object was created.

    livemode: boolean

    Has the value true if the object exists in live mode or the value false if the object exists in test mode.

    Reason for the event.

    type: string

    The type of the event.

    related_object: RelatedObject

    Object containing the reference to API resource relevant to the event.

    fetchRelatedObject: () => Promise<unknown>

    Fetches the full object corresponding to the related_object field. Returns null if there is no related_object.

    fetchEvent: () => Promise<Stripe.V2.Core.EventBase>

    Fetches the full Event object corresponding to this notification.

    context?: StripeContext