@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
19 lines (18 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionLineItemPreview = void 0;
const index_js_1 = require("../shared/index.js");
const index_js_2 = require("../product/index.js");
const proration_js_1 = require("../transaction/proration.js");
class TransactionLineItemPreview {
constructor(transactionLineItemPreview) {
this.priceId = transactionLineItemPreview.price_id;
this.quantity = transactionLineItemPreview.quantity;
this.taxRate = transactionLineItemPreview.tax_rate;
this.unitTotals = new index_js_1.UnitTotals(transactionLineItemPreview.unit_totals);
this.totals = new index_js_1.Totals(transactionLineItemPreview.totals);
this.product = new index_js_2.Product(transactionLineItemPreview.product);
this.proration = transactionLineItemPreview.proration ? new proration_js_1.Proration(transactionLineItemPreview.proration) : null;
}
}
exports.TransactionLineItemPreview = TransactionLineItemPreview;