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) 573 B
import { MetricsTimeseriesRefundsDatapoint } from './metrics-timeseries-refunds-datapoint.js'; export class MetricsTimeseriesRefunds { currencyCode; endsAt; interval; startsAt; timeseries; updatedAt; constructor(data) { this.currencyCode = data.currency_code; this.endsAt = data.ends_at; this.interval = data.interval; this.startsAt = data.starts_at; this.timeseries = data.timeseries.map((datapoint) => new MetricsTimeseriesRefundsDatapoint(datapoint)); this.updatedAt = data.updated_at; } }