Class AssociateToken

Associate token takes a destinationAccount identifier (typically an email address), a quantity of tokens to associate and a serviceType. This information is used to invoke the associate-token api to add the quantity of tokens defined in the service type to the destination account, assuming the account exists.

Hierarchy (view full)

Constructors

Properties

_destinationAccount?: string
_quantity?: number
_serviceType?: string

Methods

  • getBody is used by the BambuClient to properly construct the request object body.

    Returns any

    Returns the expected body of the request utilizing the defined request attributes.

  • getRootPath is used by the BambuClient to properly construct the request call.

    Returns undefined | string

    The root path of the request

  • getURLPath is used by the BambuClient to properly construct the request call.

    Parameters

    • Optional tenantId: string

      the tenant id defined in the BambuClient

    Returns string

    request url

  • Parameters

    • options: {
          execute: ((executable) => Promise<any>);
      }
      • execute: ((executable) => Promise<any>)
          • (executable): Promise<any>
          • Parameters

            Returns Promise<any>

    Returns Promise<any>

  • Sets the quantity of tokens to transfer.

    Parameters

    • value: number

      The quantity of tokens. If BambuMeta is maintaining the account, the number can be positive or negative, if not only positive

    Returns AssociateToken