feat: implement billing, usage tracking, and administrative geocoding features in API with infrastructure updates
This commit is contained in:
+36
@@ -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[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user