@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
11 lines (10 loc) • 351 B
JavaScript
export class Event {
constructor(eventData) {
var _a;
this.eventId = eventData.event_id;
this.notificationId = (_a = eventData.notification_id) !== null && _a !== void 0 ? _a : null;
this.eventType = eventData.event_type;
this.occurredAt = eventData.occurred_at;
this.data = eventData.data;
}
}