Interface CreateProductInput

The input object to the CreateProduct class constructor.

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

Properties

category_id?: string

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

description?: string

A description used to sell the product.

image?: string

An image used to sell a product, this should be a URL.

metadata?: any

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

name: string

The name of the product

payload?: any

The payload added to the NFT during minting.

prices?: {
    currency: string;
    price: number;
}[]

The price of the product in the currency denomination.

Type declaration

  • currency: string
  • price: number