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) 845 B
import { SimulationEventRequest, SimulationEventResponse } from '../shared/index.js'; export class SimulationRunEvent { constructor(simulationRunEventResponse) { this.id = simulationRunEventResponse.id; this.status = simulationRunEventResponse.status; this.eventType = simulationRunEventResponse.event_type; this.payload = simulationRunEventResponse.payload; this.request = simulationRunEventResponse.request ? new SimulationEventRequest(simulationRunEventResponse.request) : null; this.response = simulationRunEventResponse.response ? new SimulationEventResponse(simulationRunEventResponse.response) : null; this.createdAt = simulationRunEventResponse.created_at; this.updatedAt = simulationRunEventResponse.updated_at; } }