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.

13 lines (12 loc) 617 B
import { AdjustmentProration } from './adjustment-proration.js'; import { AdjustmentItemTotals } from './adjustment-item-totals.js'; export class AdjustmentItem { constructor(adjustmentItem) { this.id = adjustmentItem.id; 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; } }