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) 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SubscriptionCreatedEvent = void 0; const event_js_1 = require("../../../entities/events/event.js"); const index_js_1 = require("../../helpers/index.js"); const index_js_2 = require("../../entities/index.js"); class SubscriptionCreatedEvent extends event_js_1.Event { eventType = index_js_1.EventName.SubscriptionCreated; data; constructor(response) { super(response); this.data = new index_js_2.SubscriptionCreatedNotification(response.data); } } exports.SubscriptionCreatedEvent = SubscriptionCreatedEvent;