Class Subscription

The user's subscription information.

Constructors

  • Parameters

    • data: {
          active_subscriptions: {
              namespace: string;
              product_slug: string;
          }[];
          maybe_loyalty_program: boolean;
          success: boolean;
      }

      The raw subscription data from the FakeYou API.

      • active_subscriptions: {
            namespace: string;
            product_slug: string;
        }[]
      • maybe_loyalty_program: boolean
      • success: boolean

    Returns Subscription

Properties

activeSubscriptions: Map<string, string>

The key is the product namespace, and value is the product slug. The product name is an identifier for the product and the namespace is the type of product.

Example

Map(1) { 'fakeyou' => 'fakeyou_elite' }
inLoyaltyProgram: boolean

Whether the user is in the loyalty program. FakeYou has a free premium loyalty tier for contributors that upload 10 or more TTS or VC models.

webUrl: string

The URL to the pricing page.

Generated using TypeDoc