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) 783 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Report = void 0; const report_filters_js_1 = require("./report-filters.js"); class Report { constructor(reportResponse) { var _a, _b, _c; this.id = reportResponse.id; this.status = reportResponse.status; this.rows = (_a = reportResponse.rows) !== null && _a !== void 0 ? _a : null; this.type = reportResponse.type; this.filters = (_b = reportResponse.filters) === null || _b === void 0 ? void 0 : _b.map((filter) => new report_filters_js_1.ReportFilters(filter)); this.expiresAt = (_c = reportResponse.expires_at) !== null && _c !== void 0 ? _c : null; this.createdAt = reportResponse.created_at; } } exports.Report = Report;