Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SubscriptionApi

Index

Constructors

constructor

Properties

Private api

Methods

get

  • Get a subscription object by ID.

    Parameters

    Returns Promise<Subscription>

    the subscription object corresponding to the provided ID, ObjectNotFoundError otherwise

getAllActiveByAuthor

  • Get a list of active (not expired) subscriptions by account (author).

    Parameters

    • author: ChainObject

      author account object id, 1.2.*

    • Default value count: number = 100

      maximum number of subscription objects to fetch (must not exceed 100)

    Returns Promise<Subscription[]>

    a list of active subscription objects

getAllActiveByConsumer

  • Get a list of active (not expired) subscriptions by account (consumer).

    Parameters

    • consumer: ChainObject

      consumer account object id, 1.2.*

    • Default value count: number = 100

      maximum number of subscription objects to fetch (must not exceed 100)

    Returns Promise<Subscription[]>

    a list of active subscription objects

getAllByAuthor

  • Get a list of subscriptions by account (author).

    Parameters

    • author: ChainObject

      author account object id, 1.2.*

    • Default value count: number = 100

      maximum number of subscription objects to fetch (must not exceed 100)

    Returns Promise<Subscription[]>

    a list of subscription objects

getAllByConsumer

  • Get a list of subscriptions by account (consumer).

    Parameters

    • consumer: ChainObject

      consumer account object id, 1.2.*

    • Default value count: number = 100

      maximum number of subscription objects to fetch (must not exceed 100)

    Returns Promise<Subscription[]>

    a list of subscription objects

Generated using TypeDoc