gemtrack-backend/src/modules/billing/application/ports/payment-provider.port.ts

10 lines
324 B
TypeScript

export interface PaymentProviderPort {
createCustomer(tenantId: string, email: string): Promise<string>;
createSubscription(customerId: string, planCode: string): Promise<{
subscriptionId: string;
status: string;
currentPeriodEnd: Date;
}>;
cancelSubscription(subscriptionId: string): Promise<void>;
}