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.

11 lines (10 loc) 409 B
import { Event } from '../../../entities/events/event.js'; import { EventName } from '../../helpers/index.js'; import { TransactionNotification } from '../../entities/index.js'; export class TransactionBilledEvent extends Event { constructor(response) { super(response); this.eventType = EventName.TransactionBilled; this.data = new TransactionNotification(response.data); } }