Class CreateProduct

Creates a product for the provided tenant to be able to generate and mint NFTs from.

Hierarchy (view full)

Constructors

Properties

category_id?: string
description?: string
image?: string
metadata?: any
name?: string
payload?: any
prices?: {
    currency: string;
    price: number;
}[]

Type declaration

  • currency: string
  • price: number
productId?: number

Methods

  • The price of the product in the currency denomination.

    Parameters

    • price: number

      The price of the product in the currency denomination.

    • currency: string

      The currency used for the provided item.

    Returns void

  • 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 category identifier for the product used for grouping and display purposes.

    Parameters

    • value: string

      The category identifier for the product used for grouping and display purposes.

    Returns CreateProduct

  • Any additional JSON data to be stored against the product record for display purposes.

    Parameters

    • key: string

      Sets the attribute's key

    • value: string

      Sets the attribute's value

    Returns CreateProduct