feat: implement billing, usage tracking, and administrative geocoding features in API with infrastructure updates

This commit is contained in:
Hamza-Ayed
2026-07-28 04:43:23 +03:00
parent 2f7c2066f7
commit dc9d546733
133 changed files with 3599 additions and 356 deletions
+36
View File
@@ -0,0 +1,36 @@
import { BillingService } from './billing.service';
import { PayMobProvider } from './providers/paymob.provider';
import { BinanceProvider } from './providers/binance.provider';
import { PaymentProvider } from './entities/transaction.entity';
export declare class BillingController {
private billingService;
private paymobProvider;
private binanceProvider;
private readonly logger;
constructor(billingService: BillingService, paymobProvider: PayMobProvider, binanceProvider: BinanceProvider);
getSubscription(req: any): Promise<import("./entities/subscription.entity").Subscription>;
checkout(req: any, body: {
plan: string;
provider: PaymentProvider;
}): Promise<{
checkoutUrl: any;
orderId: string;
prepayId: any;
} | {
checkoutUrl: string;
orderId: string;
}>;
handlePaymobCallback(query: any, req: any): Promise<string>;
handlePaymobWebhook(body: any, hmac: string): Promise<{
status: string;
message: string;
} | {
status: string;
message?: undefined;
}>;
handleBinanceWebhook(body: any, req: any): Promise<{
returnCode: string;
returnMessage: any;
}>;
getInvoices(req: any): Promise<import("./entities/transaction.entity").Transaction[]>;
}