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.

21 lines (20 loc) 963 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Simulation = void 0; const index_js_1 = require("../index.js"); class Simulation { constructor(simulationResponse) { var _a, _b; this.id = simulationResponse.id; this.status = simulationResponse.status; this.notificationSettingId = simulationResponse.notification_setting_id; this.name = simulationResponse.name; this.type = simulationResponse.type; this.payload = (_a = simulationResponse.payload) !== null && _a !== void 0 ? _a : null; this.lastRunAt = (_b = simulationResponse.last_run_at) !== null && _b !== void 0 ? _b : null; this.createdAt = simulationResponse.created_at; this.updatedAt = simulationResponse.updated_at; this.config = simulationResponse.config ? new index_js_1.SimulationScenarioConfig(simulationResponse.config) : null; } } exports.Simulation = Simulation;