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.

11 lines (10 loc) 611 B
import { SubscriptionTimePeriod } from './subscription-time-period.js'; import { TransactionDetailsPreview } from './transaction-details-preview.js'; import { NextTransactionAdjustmentPreview } from './next-transaction-adjustment-preview.js'; export class NextTransaction { constructor(nextTransaction) { this.billingPeriod = new SubscriptionTimePeriod(nextTransaction.billing_period); this.details = new TransactionDetailsPreview(nextTransaction.details); this.adjustments = nextTransaction.adjustments.map((adjustment) => new NextTransactionAdjustmentPreview(adjustment)); } }