@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
16 lines (15 loc) • 607 B
JavaScript
import { AdjustmentItemTotals, AdjustmentProration } from '../adjustment/index.js';
export class NextTransactionAdjustmentItem {
itemId;
type;
amount;
proration;
totals;
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;
}
}