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.

13 lines (12 loc) 470 B
import { BaseResource, QueryParameters } from '../../internal/base/index.js'; import { EventCollection } from '../../entities/index.js'; const EventPaths = { list: '/events', }; export * from './operations/index.js'; export class EventsResource extends BaseResource { list(queryParams) { const queryParameters = new QueryParameters(queryParams); return new EventCollection(this.client, EventPaths.list + queryParameters.toQueryString()); } }