UNPKG

@sahabaplus/moyasar

Version:

A comprehensive TypeScript SDK for integrating with the Moyasar payment gateway

30 lines 923 B
import { BaseApiClient } from "./base-client"; import { WebhookService } from "../features/webhook/index"; import { InvoiceService } from "../features/invoice/index"; import type { ApiClientOptions } from "../shared/types/index"; import { PaymentService } from "../features/payment/index"; export interface MoyasarClientOptions extends ApiClientOptions { apiKey: string; } export declare class MoyasarClient extends BaseApiClient { readonly webhook: WebhookService; readonly invoice: InvoiceService; readonly payment: PaymentService; constructor(options: MoyasarClientOptions); /** * Test the API connection */ ping(): Promise<{ status: "ok"; timestamp: number; }>; /** * Get client information */ getClientInfo(): { baseUrl: string; userAgent: string; version: string; }; } //# sourceMappingURL=moyasar-client.d.ts.map