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) 563 B
import { AdjustmentTotalsBreakdown } from './adjustment-totals-breakdown.js'; export class AdjustmentTotals { constructor(adjustmentTotals) { this.subtotal = adjustmentTotals.subtotal; this.tax = adjustmentTotals.tax; this.total = adjustmentTotals.total; this.fee = adjustmentTotals.fee; this.earnings = adjustmentTotals.earnings; this.breakdown = adjustmentTotals.breakdown ? new AdjustmentTotalsBreakdown(adjustmentTotals.breakdown) : null; this.currencyCode = adjustmentTotals.currency_code; } }