Interface RegistryCreateProductParams

Parameters required for creating a product.

interface RegistryCreateProductParams {
    coinID?: number;
    duration?: Duration;
    imageUrl?: string;
    lockerID: number;
    maxSubs?: number;
    parseWholeUnits?: boolean;
    price: number;
    productName: string;
    productType: ProductType;
    subscriptionName: string;
    unitName?: string;
}

Properties

coinID?: number

Optional coin ID

duration?: Duration

Optional duration of the product

imageUrl?: string

Optional image URL

lockerID: number

ID of the locker

maxSubs?: number

Optional maximum number of subscriptions

parseWholeUnits?: boolean

Optional flag to parse whole units

price: number

Price of the product

productName: string

Name of the product

productType: ProductType

Type of the product

subscriptionName: string

Name of the subscription

unitName?: string

Optional unit name