Mayson Monorepo Documentation
    Preparing search index...

    The DeletedDiscount object.

    interface DeletedDiscount {
        id: string;
        object: "discount";
        checkout_session: string;
        customer: string | Stripe.Customer | DeletedCustomer;
        customer_account: string;
        deleted: true;
        invoice: string;
        invoice_item: string;
        promotion_code: string | Stripe.PromotionCode;
        source: Stripe.DeletedDiscount.Source;
        start: number;
        subscription: string;
        subscription_item: string;
    }
    Index

    Properties

    id: string

    The ID of the discount object. Discounts cannot be fetched by ID. Use expand[]=discounts in API calls to expand discount IDs in an array.

    object: "discount"

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

    checkout_session: string

    The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.

    customer: string | Stripe.Customer | DeletedCustomer

    The ID of the customer associated with this discount.

    customer_account: string

    The ID of the account representing the customer associated with this discount.

    deleted: true

    Always true for a deleted object

    invoice: string

    The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.

    invoice_item: string

    The invoice item id (or invoice line item id for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.

    promotion_code: string | Stripe.PromotionCode

    The promotion code applied to create this discount.

    start: number

    Date that the coupon was applied.

    subscription: string

    The subscription that this coupon is applied to, if it is applied to a particular subscription.

    subscription_item: string

    The subscription item that this coupon is applied to, if it is applied to a particular subscription item.