@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
14 lines (13 loc) • 636 B
JavaScript
import { ReportFilters } from './report-filters.js';
export 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 ReportFilters(filter));
this.expiresAt = (_c = reportResponse.expires_at) !== null && _c !== void 0 ? _c : null;
this.createdAt = reportResponse.created_at;
}
}