Interface CreatePlanCreditsDto

interface CreatePlanCreditsDto {
    amountOfCredits: number;
    description: string;
    name: string;
    price: bigint;
    tags?: string[];
    tokenAddress: string;
}

Properties

amountOfCredits: number

The number of credits that are transferred to the user when purchases the plan.

description: string

A description of what the plan offers.

name: string

The name of the plan.

price: bigint

The price of the plan. It must be given in the lowest denomination of the currency.

tags?: string[]

An array of tags or keywords that best fit the subscription.

tokenAddress: string

The address of the ERC20 contract used for the payment. Using the ZeroAddress will use the chain's native currency instead.