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.

18 lines (17 loc) 567 B
import { SimulationRunEvent } from '../index.js'; export class SimulationRun { id; status; createdAt; updatedAt; type; events; constructor(simulationRunResponse) { this.id = simulationRunResponse.id; this.status = simulationRunResponse.status; this.createdAt = simulationRunResponse.created_at; this.updatedAt = simulationRunResponse.updated_at; this.type = simulationRunResponse.type; this.events = simulationRunResponse.events?.map((event) => new SimulationRunEvent(event)) ?? []; } }