37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
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[]>;
|
|
}
|