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.

12 lines (11 loc) 347 B
import { Discount } from '../discount/index.js'; export class PricingPreviewDiscounts { discount; total; formattedTotal; constructor(previewDiscount) { this.discount = new Discount(previewDiscount.discount); this.total = previewDiscount.total; this.formattedTotal = previewDiscount.formatted_total; } }