Type Alias Subscription

Subscription: {
    effectiveAt?: string;
    interval: "DAY" | "WEEK" | "MONTH" | "YEAR";
    intervalCount: number;
    name: string;
    subscriptionPrice: number;
    subscriptionReference: string;
    type?: "PHYSICAL" | "DIGITAL";
}

Represents a single subscription.

Type declaration

  • OptionaleffectiveAt?: string

    When the subscription is effective, used to indicate a free trial period.

  • interval: "DAY" | "WEEK" | "MONTH" | "YEAR"

    Interval of the subscription.

  • intervalCount: number

    Number of intervals.

  • name: string

    Name of the subscription.

  • subscriptionPrice: number

    Price of the subscription.

  • subscriptionReference: string

    Unique reference for the subscription.

  • Optionaltype?: "PHYSICAL" | "DIGITAL"

    Type of subscription, either PHYSICAL or DIGITAL.