@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
17 lines (16 loc) • 980 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdjustmentItemNotification = void 0;
const adjustment_proration_notification_js_1 = require("./adjustment-proration-notification.js");
const adjustment_item_totals_notification_js_1 = require("./adjustment-item-totals-notification.js");
class AdjustmentItemNotification {
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 adjustment_proration_notification_js_1.AdjustmentProrationNotification(adjustmentItem.proration) : null;
this.totals = adjustmentItem.totals ? new adjustment_item_totals_notification_js_1.AdjustmentItemTotalsNotification(adjustmentItem.totals) : null;
}
}
exports.AdjustmentItemNotification = AdjustmentItemNotification;