UNPKG

@paddle/paddle-node-sdk

Version:

A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.

16 lines (15 loc) 649 B
import { type PaddleOptions } from '../types/config.js'; import { type QueryParameters } from '../base/index.js'; import { type ErrorResponse } from '../types/response.js'; export declare class Client { private readonly apiKey; private readonly options; private readonly baseUrl; constructor(apiKey: string, options: PaddleOptions); private getBaseUrl; private getHeaders; get<Q, R>(url: string, queryParams?: QueryParameters<Q>): Promise<R>; post<B, R>(url: string, requestBody: B): Promise<R>; patch<B, R>(url: string, requestBody: B): Promise<R>; delete(url: string): Promise<ErrorResponse | undefined>; }