@stigg/node-server-sdk - v4.30.0

    Class Stigg

    Stigg Node.js SDK client

    Implements

    Index

    Methods

    • Discards all network connections, background tasks, and other resources held by the client.

      Do not attempt to use the client after calling this method.

      Returns Promise<void>

    • Get entitlements per user

      Parameters

      • customerId: string
      • OptionalresourceId: string

      Returns Promise<Entitlement[]>

      use getEntitlementsState instead

    • Import a Customer from billing integration. Private information such as email and name are not imported and needs to be sent in order to be persisted in Stigg. Active billing integration is required for this functionality.

      Parameters

      • billingId: Omit<ImportCustomer, "updatedAt">

        the id of the customer in the billing system.

      Returns Promise<SlimCustomer>

      Newly created customer. Throw exception on errors.

    • Reload entitlements of a customer or customer resource. Note: this method skips the Edge API, so use it only when you need "read-after-write" consistency after entitlements presumably have changed.

      Parameters

      • customerId: string
      • OptionalresourceId: string

      Returns Promise<{ entitledEntityExists: boolean }>

    MMNEPVFCICPMFPCPTTAAATR