UNPKG

sc-cobre-facil

Version:

Biblioteca TypeScript para consumir a API da Cobre Fácil

33 lines 1.46 kB
import { PlanItem } from "./PlanItem"; /** * Represents a subscription plan with details such as pricing, status, and associated items. * * @interface Plan * @property {string} id - Unique identifier for the plan. * @property {string} description - Description of the plan. * @property {number} [discount] - Optional discount percentage applied to the plan. * @property {number} [goal] - Optional sales goal for the number of plans to be sold. * @property {PlanItem[]} items - Array of items associated with the plan. * @property {string} name - Name of the plan. * @property {string | null} [notify_reactivation_at] - Optional date for system and email notifications to reactivate the plan. * @property {number} price - Price of the plan. * @property {number} [price_with_discount] - Optional price of the plan after applying the discount. * @property {"actived" | "paused" | "canceled"} status - Current status of the plan. * @property {string} created_at - Date when the plan was created. * @property {string} updated_at - Date when the plan was last updated. */ export interface Plan { id: string; description: string; discount?: number; goal?: number; items: PlanItem[]; name: string; notify_reactivation_at?: string | null; price: number; price_with_discount?: number; status: "actived" | "paused" | "canceled"; created_at: string; updated_at: string; } //# sourceMappingURL=Plan.d.ts.map