UNPKG

@muhammedaksam/sipay-node

Version:

Node.js TypeScript SDK for Sipay payment gateway

12 lines 798 B
import { SipayHttpClient } from '../utils/http-client'; import { SipayApiResponse, RequestOptions } from '../types'; export declare abstract class SipayResource { protected client: SipayHttpClient; constructor(client: SipayHttpClient); protected request<T = any>(method: 'GET' | 'POST', url: string, data?: any, options?: RequestOptions): Promise<SipayApiResponse<T>>; protected get<T = any>(url: string, params?: any, options?: RequestOptions): Promise<SipayApiResponse<T>>; protected post<T = any>(url: string, data?: any, options?: RequestOptions): Promise<SipayApiResponse<T>>; protected postForm<T = any>(url: string, data?: any, options?: RequestOptions): Promise<SipayApiResponse<T>>; protected addMerchantKey(data: any): any; } //# sourceMappingURL=base.d.ts.map