Mayson Monorepo Documentation
    Preparing search index...

    To share the contents of a File object with non-Stripe users, you can create a FileLink. FileLinks contain a URL that you can use to retrieve the contents of the file without authentication.

    interface FileLink {
        id: string;
        object: "file_link";
        created: number;
        expired: boolean;
        expires_at: number;
        file: string | Stripe.File;
        livemode: boolean;
        metadata: Metadata;
        url: string;
    }
    Index

    Properties

    id: string

    Unique identifier for the object.

    object: "file_link"

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

    created: number

    Time at which the object was created. Measured in seconds since the Unix epoch.

    expired: boolean

    Returns if the link is already expired.

    expires_at: number

    Time that the link expires.

    file: string | Stripe.File

    The file object this link points to.

    livemode: boolean

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

    metadata: Metadata

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

    url: string

    The publicly accessible URL to download the file.