@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
30 lines (29 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Simulation = void 0;
const index_js_1 = require("../index.js");
class Simulation {
id;
status;
notificationSettingId;
name;
type;
payload;
lastRunAt;
createdAt;
updatedAt;
config;
constructor(simulationResponse) {
this.id = simulationResponse.id;
this.status = simulationResponse.status;
this.notificationSettingId = simulationResponse.notification_setting_id;
this.name = simulationResponse.name;
this.type = simulationResponse.type;
this.payload = simulationResponse.payload ?? null;
this.lastRunAt = simulationResponse.last_run_at ?? 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;