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.

15 lines (14 loc) 372 B
export class Event { eventId; notificationId; eventType; occurredAt; data; constructor(eventData) { this.eventId = eventData.event_id; this.notificationId = eventData.notification_id ?? null; this.eventType = eventData.event_type; this.occurredAt = eventData.occurred_at; this.data = eventData.data; } }