RTSDK
    Preparing search index...

    Class InventoryItem

    InventoryItem represents an item in a user's inventory.

    This class should be instantiated via InventoryFactory only.

    inventory, item, asset, object

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    created_at?: Date
    credentials: undefined | InteractiveCredentials
    description?: string
    id: string
    image_path?: string
    interactive_key_id?: string
    jwt?: string
    metadata?: null | object
    name?: string
    requestOptions: object
    status?: string
    topia: Topia
    type?: string
    updated_at?: Date

    Methods

    • Parameters

      • __namedParameters: { error?: unknown; message?: string; params?: object; sdkMethod?: string }

      Returns {
          data: {};
          message: string;
          method: string;
          params: object;
          sdkMethod: undefined | string;
          stack: string;
          stackTrace: Error;
          status: number;
          success: boolean;
          url: string;
      }

    • Fetches the inventory item details from the platform and assigns them to this instance.

      Returns Promise<InventoryItem>

      Returns when the item has been fetched and assigned.

      await item.fetchInventoryItemById();
      
    • Returns AxiosInstance