@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
20 lines (19 loc) • 992 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotificationSettings = void 0;
const index_js_1 = require("../event-types/index.js");
class NotificationSettings {
constructor(notificationSettings) {
this.id = notificationSettings.id;
this.description = notificationSettings.description;
this.type = notificationSettings.type;
this.destination = notificationSettings.destination;
this.active = notificationSettings.active;
this.apiVersion = notificationSettings.api_version;
this.includeSensitiveFields = notificationSettings.include_sensitive_fields;
this.trafficSource = notificationSettings.traffic_source;
this.subscribedEvents = notificationSettings.subscribed_events.map((subscribed_event) => new index_js_1.EventType(subscribed_event));
this.endpointSecretKey = notificationSettings.endpoint_secret_key;
}
}
exports.NotificationSettings = NotificationSettings;