@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
20 lines (19 loc) • 624 B
JavaScript
import { ReportFiltersNotification } from './report-filters-notification.js';
export class ReportNotification {
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 ReportFiltersNotification(filter));
this.expiresAt = reportResponse.expires_at ?? null;
this.createdAt = reportResponse.created_at;
}
}