@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
20 lines (19 loc) • 653 B
JavaScript
import { AdjustmentTotalsBreakdown } from './adjustment-totals-breakdown.js';
export class AdjustmentTotals {
subtotal;
tax;
total;
fee;
earnings;
breakdown;
currencyCode;
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;
}
}