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.

10 lines (9 loc) 503 B
import { NextTransactionAdjustmentItem } from './next-transaction-adjustment-item.js'; import { TotalAdjustments } from '../shared/index.js'; export class NextTransactionAdjustmentPreview { constructor(adjustmentPreview) { this.transactionId = adjustmentPreview.transaction_id; this.items = adjustmentPreview.items.map((item) => new NextTransactionAdjustmentItem(item)); this.totals = adjustmentPreview.totals ? new TotalAdjustments(adjustmentPreview.totals) : null; } }