Add user delete process
This commit is contained in:
@@ -382,6 +382,22 @@ export class SubscriptionService {
|
||||
}> {
|
||||
return apiClient.get(`/subscriptions/${tenantId}/status`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get invoice history for a tenant
|
||||
*/
|
||||
async getInvoices(tenantId: string): Promise<Array<{
|
||||
id: string;
|
||||
date: string;
|
||||
amount: number;
|
||||
currency: string;
|
||||
status: string;
|
||||
description: string | null;
|
||||
invoice_pdf: string | null;
|
||||
hosted_invoice_url: string | null;
|
||||
}>> {
|
||||
return apiClient.get(`/subscriptions/${tenantId}/invoices`);
|
||||
}
|
||||
}
|
||||
|
||||
export const subscriptionService = new SubscriptionService();
|
||||
|
||||
Reference in New Issue
Block a user