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) 487 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PricingPreviewDiscounts = void 0; const index_js_1 = require("../discount/index.js"); class PricingPreviewDiscounts { constructor(previewDiscount) { this.discount = new index_js_1.Discount(previewDiscount.discount); this.total = previewDiscount.total; this.formattedTotal = previewDiscount.formatted_total; } } exports.PricingPreviewDiscounts = PricingPreviewDiscounts;