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.

13 lines (12 loc) 598 B
import { SimulationRunEvent } from '../index.js'; export class SimulationRun { constructor(simulationRunResponse) { var _a, _b; this.id = simulationRunResponse.id; this.status = simulationRunResponse.status; this.createdAt = simulationRunResponse.created_at; this.updatedAt = simulationRunResponse.updated_at; this.type = simulationRunResponse.type; this.events = (_b = (_a = simulationRunResponse.events) === null || _a === void 0 ? void 0 : _a.map((event) => new SimulationRunEvent(event))) !== null && _b !== void 0 ? _b : []; } }