UNPKG

@cardql/core

Version:

CardQL core SDK for payment processing - cross-platform shared logic, auth and data access

29 lines (23 loc) 653 B
import { CardQLClient } from "./client"; import { CardQLApi } from "./api"; import type { CardQLConfig } from "./types"; // Main CardQL SDK class export class CardQL { public client: CardQLClient; public api: CardQLApi; constructor(config: CardQLConfig) { this.client = new CardQLClient(config); this.api = new CardQLApi(this.client); } // Convenience method to update API key setApiKey(apiKey: string): void { this.client.setApiKey(apiKey); } } // Export all types and utilities export * from "./types"; export * from "./client"; export * from "./api"; export * from "./queries"; // Default export export default CardQL;