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) 546 B
import { AdjustmentItemTotals, AdjustmentProration } from '../adjustment/index.js'; export class NextTransactionAdjustmentItem { constructor(adjustmentItem) { this.itemId = adjustmentItem.item_id; this.type = adjustmentItem.type; this.amount = adjustmentItem.amount ? adjustmentItem.amount : null; this.proration = adjustmentItem.proration ? new AdjustmentProration(adjustmentItem.proration) : null; this.totals = adjustmentItem.totals ? new AdjustmentItemTotals(adjustmentItem.totals) : null; } }