UNPKG

ibc-payment-gateway

Version:

A modular payment gateway for Node.js applications with PostgreSQL and Sequelize

32 lines (27 loc) 740 B
// index.d.ts declare module "ibc-payment-gateway" { import { Router } from "express"; import { Sequelize } from "sequelize"; interface DatabaseConfig { host: string; port?: number; database: string; username: string; password: string; logging?: boolean | ((sql: string, timing?: number) => void); } interface PaymentGatewayOptions { database: DatabaseConfig; webhookUpdateQuery?: string; } class PaymentGateway { constructor(options: PaymentGatewayOptions); initialize(): Promise<this>; setupRoutes(): void; getRouter(): Router; getModels(): any; getPaymentService(): any; close(): Promise<void>; } export = PaymentGateway; }