- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
39 lines
1.5 KiB
TypeScript
39 lines
1.5 KiB
TypeScript
import { BillingService } from './billing.service';
|
|
export declare class BillingController {
|
|
private readonly billingService;
|
|
constructor(billingService: BillingService);
|
|
getPlans(): Promise<import("../subscriptions/entities/plan.entity").Plan[]>;
|
|
getTokenPackages(): Promise<import("./billing.service").TokenPackage[]>;
|
|
getBillingSummary(req: any): Promise<{
|
|
subscription: import("../subscriptions/entities/subscription.entity").Subscription | null;
|
|
plan: import("../subscriptions/entities/plan.entity").Plan | null;
|
|
tokenBalance: import("../subscriptions/entities/token-balance.entity").TokenBalance | null;
|
|
invoices: any[];
|
|
}>;
|
|
getTokenBalance(req: any): Promise<import("../subscriptions/entities/token-balance.entity").TokenBalance | {
|
|
availableTokens: number;
|
|
usedTokens: number;
|
|
totalTokens: number;
|
|
}>;
|
|
getTokenUsage(req: any, limit?: string): Promise<import("../subscriptions/entities/token-usage.entity").TokenUsage[]>;
|
|
createSubscriptionCheckout(req: any, body: {
|
|
planCode: string;
|
|
successUrl: string;
|
|
cancelUrl: string;
|
|
}): Promise<{
|
|
checkoutUrl: string;
|
|
}>;
|
|
createTokenCheckout(req: any, body: {
|
|
packageCode: string;
|
|
successUrl: string;
|
|
cancelUrl: string;
|
|
}): Promise<{
|
|
checkoutUrl: string;
|
|
}>;
|
|
createPortalSession(req: any, body: {
|
|
returnUrl: string;
|
|
}): Promise<{
|
|
portalUrl: string;
|
|
}>;
|
|
}
|