@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
24 lines (23 loc) • 722 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Report = void 0;
const report_filters_js_1 = require("./report-filters.js");
class Report {
id;
status;
rows;
type;
filters;
expiresAt;
createdAt;
constructor(reportResponse) {
this.id = reportResponse.id;
this.status = reportResponse.status;
this.rows = reportResponse.rows ?? null;
this.type = reportResponse.type;
this.filters = reportResponse.filters?.map((filter) => new report_filters_js_1.ReportFilters(filter));
this.expiresAt = reportResponse.expires_at ?? null;
this.createdAt = reportResponse.created_at;
}
}
exports.Report = Report;