Files
cfw-autumn/shared/models/attachModels/attachPreviewModels.ts
2025-06-06 19:04:33 +01:00

27 lines
668 B
TypeScript

import { FreeTrial } from "../productModels/freeTrialModels/freeTrialModels.js";
import { UsageModel } from "../productV2Models/productItemModels/productItemModels.js";
import { AttachBranch } from "./attachEnums/AttachBranch.js";
export interface PreviewLineItem {
amount: number | undefined;
description: string;
price: string;
price_id: string;
usage_model?: UsageModel;
}
export interface AttachPreview {
branch: AttachBranch;
options: any;
new_items: any;
due_today: {
line_items: PreviewLineItem[];
total: string;
};
due_next_cycle: {
line_items: PreviewLineItem[];
due_at: number;
};
free_trial?: FreeTrial | null;
}